From: Li Wang via ltp <ltp@lists.linux.it>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2] lib: tst_kconfig: Add runtime checks for CONFIG_*_NS
Date: Thu, 2 Apr 2026 10:38:24 +0800 [thread overview]
Message-ID: <ac3WoOMzL0pN4Tp7@redhat.com> (raw)
In-Reply-To: <20260401115147.11604-1-chrubis@suse.cz>
On Wed, Apr 01, 2026 at 01:51:47PM +0200, Cyril Hrubis wrote:
> Previously LTP Kconfig parsing logic only checked if a feature was
> enabled during kernel compilation (e.g., CONFIG_USER_NS=y). However,
> some kernel features can be compiled in but disabled at runtime via
> kernel command-line or sysctls. Tests relying only on Kconfig variables
> may have failed when features were runtime disabled.
>
> This patch introduces a runtime check mechanism for Kconfig variables.
> When a CONFIG_* variable is parsed as 'y' or 'm' and when runtime check
> has been associated with the variable we run the check and potentionaly
> print a message and override the variable value.
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
Reviewed-by: Li Wang <liwang@redhat.com>
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-04-02 2:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-01 11:51 [LTP] [PATCH v2] lib: tst_kconfig: Add runtime checks for CONFIG_*_NS Cyril Hrubis
2026-04-02 2:38 ` Li Wang via ltp [this message]
2026-04-02 12:10 ` Cyril Hrubis
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=ac3WoOMzL0pN4Tp7@redhat.com \
--to=ltp@lists.linux.it \
--cc=chrubis@suse.cz \
--cc=liwang@redhat.com \
/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