Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
Subsystems (4)
Jakub Kicinski
maintainerPATCH 1/1 Revert "kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests"
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
---
I'd like to take this in via netdev since it fixes our CI. We'll send it to Linus next week.
--- tools/testing/kunit/configs/all_tests.config | 1 - 1 file changed, 1 deletion(-)
tools/testing/kunit/configs/all_tests.config +0 -1
@@ -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
Signature · 1 line
2.49.0
Quoted 1 line · Jakub Kicinski
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.
Quoted 5 lines
The commit in question breaks kunit for older compilers:
$ gcc --version gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
Quoted 8 lines
$ ./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.
Mark Brown
Acked-byQuoted 7 lines · Mark Brown
Quoted 4 lines · Jakub Kicinski
$ 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
Quoted 6 lines
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:
Shuah Khan
maintainerQuoted 13 lines · Jakub Kicinski
This reverts commit
a571a9a1b120264e24b41eddf1ac5140131bfa84.The commit in question breaks kunit for older compilers:
Quoted 1 line
$ gcc --versiongcc (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
Quoted 3 lines
ERROR:root:Not all
Kconfigoptions 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
Quoted 8 lines
Fixes a571a9a1b120 ("kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests")Signed-off-by Jakub Kicinski <[email protected]>---
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
Quoted 31 lines · Shuah Khan
Quoted 13 lines · Jakub Kicinski
This reverts commit
a571a9a1b120264e24b41eddf1ac5140131bfa84.The commit in question breaks kunit for older compilers:
Quoted 1 line
$ gcc --versiongcc (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 olddefconfigQuoted 3 lines
ERROR:root:Not all
Kconfigoptions selected in kunitconfig were in the generated .config. This is probably due to unsatisfied dependencies.
Missing:CONFIG_INIT_STACK_ALL_PATTERN=yDoes adding config option work for you?
./tools/testing/kunit/kunit.pyrun --kconfig_addCONFIG_INIT_STACK_ALL_PATTERNQuoted 8 lines
Fixes a571a9a1b120 ("kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests")Signed-off-by Jakub Kicinski <[email protected]>---
I'd like to take this in via netdev since it fixes our CI. We'll send it to Linus next week.
Quoted 1 line
I am good with reverting it for now.
Meant to add Ack.
Quoted 5 lines
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
Jakub Kicinski
maintainerQuoted 14 lines · On Fri, 30 May 2025 10:59:54 -0600 Shuah Khan wrote:
Quoted 11 lines · Jakub Kicinski
This reverts commit
a571a9a1b120264e24b41eddf1ac5140131bfa84.The commit in question breaks kunit for older compilers:
Quoted 1 line
$ gcc --versiongcc (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
Quoted 6 lines
Quoted 3 lines
ERROR:root:Not all
Kconfigoptions selected in kunitconfig were in the generated .config. This is probably due to unsatisfied dependencies.
Missing:CONFIG_INIT_STACK_ALL_PATTERN=yDoes adding config option work for you?
./tools/testing/kunit/kunit.pyrun --kconfig_addCONFIG_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".
Quoted 8 lines
Quoted 7 lines
Fixes a571a9a1b120 ("kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests")Signed-off-by Jakub Kicinski <[email protected]>---
I'd like to take this in via netdev since it fixes our CI. We'll send it to Linus next week.
Quoted 5 lines
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.
Quoted 42 lines · Jakub Kicinski
Quoted 14 lines · On Fri, 30 May 2025 10:59:54 -0600 Shuah Khan wrote:
Quoted 11 lines · Jakub Kicinski
This reverts commit
a571a9a1b120264e24b41eddf1ac5140131bfa84.The commit in question breaks kunit for older compilers:
Quoted 1 line
$ gcc --versiongcc (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 olddefconfigQuoted 6 lines
Quoted 3 lines
ERROR:root:Not all
Kconfigoptions selected in kunitconfig were in the generated .config. This is probably due to unsatisfied dependencies.
Missing:CONFIG_INIT_STACK_ALL_PATTERN=yDoes adding config option work for you?
./tools/testing/kunit/kunit.pyrun --kconfig_addCONFIG_INIT_STACK_ALL_PATTERNNope (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".Quoted 8 lines
Quoted 7 lines
Fixes a571a9a1b120 ("kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests")Signed-off-by Jakub Kicinski <[email protected]>---
I'd like to take this in via netdev since it fixes our CI. We'll send it to Linus next week.
Quoted 8 lines
Quoted 5 lines
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.
Shuah Khan
maintainerQuoted 48 lines · Richard Fitzgerald
Quoted 47 lines · Jakub Kicinski
Quoted 14 lines · On Fri, 30 May 2025 10:59:54 -0600 Shuah Khan wrote:
Quoted 11 lines · Jakub Kicinski
This reverts commit
a571a9a1b120264e24b41eddf1ac5140131bfa84.The commit in question breaks kunit for older compilers:
Quoted 1 line
$ gcc --versiongcc (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 olddefconfigQuoted 6 lines
Quoted 3 lines
ERROR:root:Not all
Kconfigoptions selected in kunitconfig were in the generated .config. This is probably due to unsatisfied dependencies.
Missing:CONFIG_INIT_STACK_ALL_PATTERN=yDoes adding config option work for you?
./tools/testing/kunit/kunit.pyrun --kconfig_addCONFIG_INIT_STACK_ALL_PATTERNNope (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".Quoted 12 lines
Quoted 6 lines
Fixes a571a9a1b120 ("kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests")Signed-off-by Jakub Kicinski <[email protected]>---
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?
Quoted 6 lines
Quoted 2 lines
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
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:
Quoted 8 lines · 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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html