* [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
@ 2025-05-30 13:58 Jakub Kicinski
2025-05-30 15:09 ` Mark Brown
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Jakub Kicinski @ 2025-05-30 13:58 UTC (permalink / raw)
To: davem
Cc: netdev, Jakub Kicinski, brendan.higgins, davidgow, rmoar, broonie,
rf, mic, skhan, linux-kselftest, kunit-dev
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
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.
CC: brendan.higgins@linux.dev
CC: davidgow@google.com
CC: rmoar@google.com
CC: broonie@kernel.org
CC: rf@opensource.cirrus.com
CC: mic@digikod.net
CC: skhan@linuxfoundation.org
CC: linux-kselftest@vger.kernel.org
CC: kunit-dev@googlegroups.com
---
tools/testing/kunit/configs/all_tests.config | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/testing/kunit/configs/all_tests.config b/tools/testing/kunit/configs/all_tests.config
index 48b132cd9d2a..2f093048d985 100644
--- a/tools/testing/kunit/configs/all_tests.config
+++ b/tools/testing/kunit/configs/all_tests.config
@@ -10,7 +10,6 @@ CONFIG_KUNIT_EXAMPLE_TEST=y
CONFIG_KUNIT_ALL_TESTS=y
CONFIG_FORTIFY_SOURCE=y
-CONFIG_INIT_STACK_ALL_PATTERN=y
CONFIG_IIO=y
--
2.49.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
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-06-03 9:30 ` patchwork-bot+netdevbpf
2 siblings, 1 reply; 9+ messages in thread
From: Mark Brown @ 2025-05-30 15:09 UTC (permalink / raw)
To: Jakub Kicinski
Cc: davem, netdev, brendan.higgins, davidgow, rmoar, rf, mic, skhan,
linux-kselftest, kunit-dev
[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]
On Fri, May 30, 2025 at 06:58:00AM -0700, Jakub Kicinski wrote:
> This reverts commit a571a9a1b120264e24b41eddf1ac5140131bfa84.
Please include human readable descriptions of things like commits and
issues being discussed in e-mail in your mails, this makes them much
easier for humans to read especially when they have no internet access.
I do frequently catch up on my mail on flights or while otherwise
travelling so this is even more pressing for me than just being about
making things a bit easier to read.
> 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
This seems like there's a bigger issue here - this sort of thing will
keep happening if you're running with older compilers and it's also
going to be prevent the addition of any coverage that's specific to
architectures. It would seem better to fix this by warning only and not
erroring out, perhaps splitting the config fragments into must succeed
and can be dropped sections.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
2025-05-30 15:09 ` Mark Brown
@ 2025-05-30 15:16 ` Mark Brown
0 siblings, 0 replies; 9+ messages in thread
From: Mark Brown @ 2025-05-30 15:16 UTC (permalink / raw)
To: Jakub Kicinski
Cc: davem, netdev, brendan.higgins, davidgow, rmoar, rf, mic, skhan,
linux-kselftest, kunit-dev
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
On Fri, May 30, 2025 at 04:09:22PM +0100, Mark Brown wrote:
> On Fri, May 30, 2025 at 06:58:00AM -0700, Jakub Kicinski wrote:
> > $ 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
> This seems like there's a bigger issue here - this sort of thing will
> keep happening if you're running with older compilers and it's also
> going to be prevent the addition of any coverage that's specific to
> architectures. It would seem better to fix this by warning only and not
> erroring out, perhaps splitting the config fragments into must succeed
> and can be dropped sections.
Sorry, meant to also say:
Acked-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
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 16:59 ` Shuah Khan
2025-05-30 17:03 ` Shuah Khan
2025-05-31 1:07 ` Jakub Kicinski
2025-06-03 9:30 ` patchwork-bot+netdevbpf
2 siblings, 2 replies; 9+ messages in thread
From: Shuah Khan @ 2025-05-30 16:59 UTC (permalink / raw)
To: Jakub Kicinski, davem
Cc: netdev, brendan.higgins, davidgow, rmoar, broonie, rf, mic,
linux-kselftest, kunit-dev, Shuah Khan
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
>
> 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?
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
2025-05-30 16:59 ` Shuah Khan
@ 2025-05-30 17:03 ` Shuah Khan
2025-05-31 1:07 ` Jakub Kicinski
1 sibling, 0 replies; 9+ messages in thread
From: Shuah Khan @ 2025-05-30 17:03 UTC (permalink / raw)
To: Jakub Kicinski, davem
Cc: netdev, brendan.higgins, davidgow, rmoar, broonie, rf, mic,
linux-kselftest, kunit-dev, Shuah Khan
On 5/30/25 10:59, 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
>
>
>>
>> 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.
Meant to add Ack.
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
>
> 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?
>
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
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
1 sibling, 1 reply; 9+ messages in thread
From: Jakub Kicinski @ 2025-05-31 1:07 UTC (permalink / raw)
To: Shuah Khan
Cc: davem, netdev, brendan.higgins, davidgow, rmoar, broonie, rf, mic,
linux-kselftest, kunit-dev
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.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
2025-05-31 1:07 ` Jakub Kicinski
@ 2025-06-02 13:34 ` Richard Fitzgerald
2025-06-02 22:24 ` Shuah Khan
0 siblings, 1 reply; 9+ messages in thread
From: Richard Fitzgerald @ 2025-06-02 13:34 UTC (permalink / raw)
To: Jakub Kicinski, Shuah Khan
Cc: davem, netdev, brendan.higgins, davidgow, rmoar, broonie, mic,
linux-kselftest, kunit-dev
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.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
2025-06-02 13:34 ` Richard Fitzgerald
@ 2025-06-02 22:24 ` Shuah Khan
0 siblings, 0 replies; 9+ messages in thread
From: Shuah Khan @ 2025-06-02 22:24 UTC (permalink / raw)
To: Richard Fitzgerald, Jakub Kicinski
Cc: davem, netdev, brendan.higgins, davidgow, rmoar, broonie, mic,
linux-kselftest, kunit-dev, Shuah Khan
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
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 16:59 ` Shuah Khan
@ 2025-06-03 9:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 9+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-03 9:30 UTC (permalink / raw)
To: Jakub Kicinski
Cc: davem, netdev, brendan.higgins, davidgow, rmoar, broonie, rf, mic,
skhan, linux-kselftest, kunit-dev
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Fri, 30 May 2025 06:58:00 -0700 you 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)
>
> [...]
Here is the summary with links:
- [net] Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
https://git.kernel.org/netdev/net/c/f6695269dc52
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-06-03 9:29 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2025-06-03 9:30 ` patchwork-bot+netdevbpf
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).