netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Shuah Khan <skhan@linuxfoundation.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	brendan.higgins@linux.dev, davidgow@google.com, rmoar@google.com,
	broonie@kernel.org, rf@opensource.cirrus.com, mic@digikod.net,
	linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com
Subject: Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
Date: Fri, 30 May 2025 18:07:50 -0700	[thread overview]
Message-ID: <20250530180750.4c722f71@kernel.org> (raw)
In-Reply-To: <9628c61e-234f-45af-bc30-ab6db90f09c6@linuxfoundation.org>

On Fri, 30 May 2025 10:59:54 -0600 Shuah Khan wrote:
> On 5/30/25 07:58, Jakub Kicinski wrote:
> > This reverts commit a571a9a1b120264e24b41eddf1ac5140131bfa84.
> > 
> > The commit in question breaks kunit for older compilers:  
> > > $ gcc --version  
> >   gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
> > 
> > $ ./tools/testing/kunit/kunit.py run  --alltests --json --arch=x86_64
> >   Configuring KUnit Kernel ...
> >   Regenerating .config ...
> >   Populating config with:
> >   $ make ARCH=x86_64 O=.kunit olddefconfig  
> 
> 
> >   ERROR:root:Not all Kconfig options selected in kunitconfig were in the generated .config.
> >   This is probably due to unsatisfied dependencies.
> >   Missing: CONFIG_INIT_STACK_ALL_PATTERN=y  
> 
> Does adding config option work for you?
> ./tools/testing/kunit/kunit.py run --kconfig_add CONFIG_INIT_STACK_ALL_PATTERN

Nope (with this patch applied):

$ ./tools/testing/kunit/kunit.py run --kconfig_add CONFIG_INIT_STACK_ALL_PATTERN=y
[18:02:47] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
ERROR:root:Not all Kconfig options selected in kunitconfig were in the generated .config.
This is probably due to unsatisfied dependencies.
Missing: CONFIG_INIT_STACK_ALL_PATTERN=y
Note: many Kconfig options aren't available on UML. You can try running on a different architecture with something like "--arch=x86_64".

> > Link: https://lore.kernel.org/20250529083811.778bc31b@kernel.org
> > Fixes: a571a9a1b120 ("kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests")
> > Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> > ---
> > I'd like to take this in via netdev since it fixes our CI.
> > We'll send it to Linus next week.
> >   
> 
> I am good with reverting it for now.
> 
> David, Brendan,
> We will have to enable this at a later time. Also we saw this problem
> before with other configs. Anyway way to fix this for alltests case?

FWIW Richard commented in the linked thread, IIUC this was just for
added coverage but not a hard requirement.

  parent reply	other threads:[~2025-05-31  1:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-30 13:58 [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests" Jakub Kicinski
2025-05-30 15:09 ` Mark Brown
2025-05-30 15:16   ` Mark Brown
2025-05-30 16:59 ` Shuah Khan
2025-05-30 17:03   ` Shuah Khan
2025-05-31  1:07   ` Jakub Kicinski [this message]
2025-06-02 13:34     ` Richard Fitzgerald
2025-06-02 22:24       ` Shuah Khan
2025-06-03  9:30 ` patchwork-bot+netdevbpf

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=20250530180750.4c722f71@kernel.org \
    --to=kuba@kernel.org \
    --cc=brendan.higgins@linux.dev \
    --cc=broonie@kernel.org \
    --cc=davem@davemloft.net \
    --cc=davidgow@google.com \
    --cc=kunit-dev@googlegroups.com \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=mic@digikod.net \
    --cc=netdev@vger.kernel.org \
    --cc=rf@opensource.cirrus.com \
    --cc=rmoar@google.com \
    --cc=skhan@linuxfoundation.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;
as well as URLs for NNTP newsgroup(s).