From: Marcos Paulo de Souza <mpdesouza@suse.com>
To: Qiang Ma <maqianga@uniontech.com>,
jpoimboe@kernel.org, jikos@kernel.org, mbenes@suse.cz,
pmladek@suse.com, joe.lawrence@redhat.com, shuah@kernel.org
Cc: live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests: livepatch: set LC_ALL=C to fix locale-dependent test failure
Date: Wed, 27 May 2026 09:09:44 -0300 [thread overview]
Message-ID: <cd470b3b399aa01dfa54a758eca77e58c672d314.camel@suse.com> (raw)
In-Reply-To: <20260527095929.1504032-1-maqianga@uniontech.com>
On Wed, 2026-05-27 at 17:59 +0800, Qiang Ma wrote:
> When executing the command
> "make -C tools/testing/selftests TARGETS=livepatch run_tests",
> the following error message was reported.
>
> TEST: livepatch interaction with ftrace_enabled sysctl ... not ok
> ...
> livepatch: sysctlo
> : setting key "kernel.ftrace_enabled": Device or resource busy
> livepatch: sysctl: setting key "kernel.ftrace_enabled": 设备或资源忙
> ...
> ERROR: livepatch kselftest(s) failed
> not ok 5 selftests: livepatch: test-ftrace.sh # exit=1
>
> To fix it, set LC_ALL=C.
Would you mind adding more context here? Can you point exactly why is
this failing inside test-ftrace.sh script?
Have you double checked if you had any previous loaded livepatches why
trying to disable/enable livepatching?
I'll test in my environment, but I'm pretty sure that it used to work
not so long ago.
>
> Signed-off-by: Qiang Ma <maqianga@uniontech.com>
> ---
> tools/testing/selftests/livepatch/functions.sh | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tools/testing/selftests/livepatch/functions.sh
> b/tools/testing/selftests/livepatch/functions.sh
> index 8ec0cb64ad94..ecf27c1120f1 100644
> --- a/tools/testing/selftests/livepatch/functions.sh
> +++ b/tools/testing/selftests/livepatch/functions.sh
> @@ -4,6 +4,8 @@
>
> # Shell functions for the rest of the scripts.
>
> +export LC_ALL=C
> +
> MAX_RETRIES=600
> RETRY_INTERVAL=".1" # seconds
> SYSFS_KERNEL_DIR="/sys/kernel"
next prev parent reply other threads:[~2026-05-27 12:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-27 9:59 Qiang Ma
2026-05-27 12:09 ` Marcos Paulo de Souza [this message]
2026-05-27 13:19 ` Qiang Ma
2026-05-28 11:38 ` Petr Mladek
2026-05-28 11:43 ` Miroslav Benes
2026-06-03 13:12 ` Petr Mladek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cd470b3b399aa01dfa54a758eca77e58c672d314.camel@suse.com \
--to=mpdesouza@suse.com \
--cc=jikos@kernel.org \
--cc=joe.lawrence@redhat.com \
--cc=jpoimboe@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=live-patching@vger.kernel.org \
--cc=maqianga@uniontech.com \
--cc=mbenes@suse.cz \
--cc=pmladek@suse.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®