netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shuah Khan <skhan@linuxfoundation.org>
To: Richard Fitzgerald <rf@opensource.cirrus.com>,
	Jakub Kicinski <kuba@kernel.org>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
	brendan.higgins@linux.dev, davidgow@google.com, rmoar@google.com,
	broonie@kernel.org, mic@digikod.net,
	linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com,
	Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
Date: Mon, 2 Jun 2025 16:24:42 -0600	[thread overview]
Message-ID: <1e36801d-7bf5-46dd-bcc5-669fba575806@linuxfoundation.org> (raw)
In-Reply-To: <74d3a550-a828-4666-8664-d08d06fc6f0f@opensource.cirrus.com>

On 6/2/25 07:34, Richard Fitzgerald wrote:
> On 31/05/2025 2:07 am, Jakub Kicinski wrote:
>> 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.
> Correct. It's not required (for me). It found a bug in my code, so it
> seemed useful to have enabled while testing. I thought this was safe to
> do, I didn't know that this only works with certain platforms and
> compilers.

Thanks for clarifying. Looks good to me.

thanks,
-- Shuah


  reply	other threads:[~2025-06-02 22:24 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
2025-06-02 13:34     ` Richard Fitzgerald
2025-06-02 22:24       ` Shuah Khan [this message]
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=1e36801d-7bf5-46dd-bcc5-669fba575806@linuxfoundation.org \
    --to=skhan@linuxfoundation.org \
    --cc=brendan.higgins@linux.dev \
    --cc=broonie@kernel.org \
    --cc=davem@davemloft.net \
    --cc=davidgow@google.com \
    --cc=kuba@kernel.org \
    --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 \
    /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).