o6irnndpcv7 writes via Kernel.org Bugzilla:
Hello and good day!
I think I found a missing dependency. In case of setting CONFIG_FIPS_SIGNATURE_SELFTEST, CONFIG_CRYPTO_SHA256 also needs to be set. But not as module. Failing to do so results in an early kernel panic during boot.
Tested on linux-6.1.12-gentoo and linux-6.1.19-gentoo.
Thanks, sephora
View: https://bugzilla.kernel.org/show_bug.cgi?id=217293#c0 You can reply to this message to join the discussion.
Hi sephora,
On 4/3/23 07:29, Kernel.org Bugbot wrote:
o6irnndpcv7 writes via Kernel.org Bugzilla:
Hello and good day!
I think I found a missing dependency. In case of setting CONFIG_FIPS_SIGNATURE_SELFTEST, CONFIG_CRYPTO_SHA256 also needs to be set. But not as module. Failing to do so results in an early kernel panic during boot.
Please tell us what the kernel panic message is.
Tested on linux-6.1.12-gentoo and linux-6.1.19-gentoo.
Have you tested this on a mainline kernel, without gentoo patches?
Does gentoo add any patches in this area?
Thanks.
Thanks, sephora
View: https://bugzilla.kernel.org/show_bug.cgi?id=217293#c0 You can reply to this message to join the discussion.
o6irnndpcv7 writes via Kernel.org Bugzilla:
Hi Randy!
(In reply to Bugbot from comment #1)
Randy Dunlap rdunlap@infradead.org writes:
Please tell us what the kernel panic message is.
There is no message. I'm sorry. I just get a black screen.
I'm using EFI to boot my machine. And I can get some output if I enable 'earlycon=efifb' via CMDLINE.
The output stops at: Console: colour dummy device 80x25 printk: console [tty0] enabled printk: bootconsole [efifb0] disabled
At this point the machine freezes. No error message.
And when I set: CONFIG_PANIC_ON_OOPS=y CONFIG_PANIC_ON_OOPS_VALUE=1 CONFIG_PANIC_TIMEOUT=-1
That gives me a reboot loop.
Have you tested this on a mainline kernel, without gentoo patches?
Does gentoo add any patches in this area?
Unfortunately I don't know if Gentoo is adding any patches that may affect this.
But I can confirm that the problem persists while using vanilla-sources for kernel 6.2.9.
Thanks, sephora
Thanks.
View: https://bugzilla.kernel.org/show_bug.cgi?id=217293#c2 You can reply to this message to join the discussion.
On 4/3/23 13:04, Kernel.org Bugbot wrote:
o6irnndpcv7 writes via Kernel.org Bugzilla:
Hi Randy!
(In reply to Bugbot from comment #1)
Randy Dunlap rdunlap@infradead.org writes:
Please tell us what the kernel panic message is.
There is no message. I'm sorry. I just get a black screen.
I'm using EFI to boot my machine. And I can get some output if I enable 'earlycon=efifb' via CMDLINE.
The output stops at: Console: colour dummy device 80x25 printk: console [tty0] enabled printk: bootconsole [efifb0] disabled
At this point the machine freezes. No error message.
And when I set: CONFIG_PANIC_ON_OOPS=y CONFIG_PANIC_ON_OOPS_VALUE=1 CONFIG_PANIC_TIMEOUT=-1
That gives me a reboot loop.
Have you tested this on a mainline kernel, without gentoo patches?
Does gentoo add any patches in this area?
Unfortunately I don't know if Gentoo is adding any patches that may affect this.
But I can confirm that the problem persists while using vanilla-sources for kernel 6.2.9.
Please put your kernel .config file on the bugzilla entry.
What makes you think that this is related to FIPS_SIGNATURE_SELFTEST?
thanks.
Hi again,
On 4/3/23 13:19, Randy Dunlap wrote:
On 4/3/23 13:04, Kernel.org Bugbot wrote:
o6irnndpcv7 writes via Kernel.org Bugzilla:
Hi Randy!
(In reply to Bugbot from comment #1)
Randy Dunlap rdunlap@infradead.org writes:
Please tell us what the kernel panic message is.
There is no message. I'm sorry. I just get a black screen.
I'm using EFI to boot my machine. And I can get some output if I enable 'earlycon=efifb' via CMDLINE.
The output stops at: Console: colour dummy device 80x25 printk: console [tty0] enabled printk: bootconsole [efifb0] disabled
At this point the machine freezes. No error message.
I can reproduce this or at least something very similar to it, but it doesn't matter if FIPS_SIGNATURE_SELFTEST is set or not.
And when I set: CONFIG_PANIC_ON_OOPS=y CONFIG_PANIC_ON_OOPS_VALUE=1 CONFIG_PANIC_TIMEOUT=-1
That gives me a reboot loop.
Have you tested this on a mainline kernel, without gentoo patches?
Does gentoo add any patches in this area?
Unfortunately I don't know if Gentoo is adding any patches that may affect this.
But I can confirm that the problem persists while using vanilla-sources for kernel 6.2.9.
Please put your kernel .config file on the bugzilla entry.
I'll test with your .config file...
What makes you think that this is related to FIPS_SIGNATURE_SELFTEST?
and still that question...
o6irnndpcv7 added a new attachment via Kernel.org Bugzilla. You can download it by following the link below.
File: .config_03042023 (text/plain) Size: 108.68 KiB Link: https://bugzilla.kernel.org/attachment.cgi?id=304083 --- Kernel config for 6.2.9
You can reply to this message to join the discussion.
o6irnndpcv7 writes via Kernel.org Bugzilla:
Hi Randy!
I submitted an example config. That config works fine for me, until I set:
CONFIG_FIPS_SIGNATURE_SELFTEST=y
And it starts working well again if I set:
CONFIG_FIPS_SIGNATURE_SELFTEST=y CONFIG_CRYPTO_SHA256=y
That's why I think it is related to FIPS_SIGNATURE_SELFTEST.
Thanks, sephora
View: https://bugzilla.kernel.org/show_bug.cgi?id=217293#c6 You can reply to this message to join the discussion.
[adding linux-crypto and dhowells]
On 4/3/23 23:17, Kernel.org Bugbot wrote:
o6irnndpcv7 writes via Kernel.org Bugzilla:
Hi Randy!
I submitted an example config. That config works fine for me, until I set:
CONFIG_FIPS_SIGNATURE_SELFTEST=y
And it starts working well again if I set:
CONFIG_FIPS_SIGNATURE_SELFTEST=y CONFIG_CRYPTO_SHA256=y
That's why I think it is related to FIPS_SIGNATURE_SELFTEST.
Thanks, sephora
View: https://bugzilla.kernel.org/show_bug.cgi?id=217293#c6 You can reply to this message to join the discussion.
I'm not making any progress on this bug, so asking others for help.
Is there anything in the FIPS_SIGNATURE_SELFTEST code (selftest.c) or code that it calls that requires CRYPTO_SHA256?
linux-kselftest-mirror@lists.linaro.org