* Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency
@ 2023-04-03 14:29 Kernel.org Bugbot
2023-04-03 16:33 ` Randy Dunlap
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Kernel.org Bugbot @ 2023-04-03 14:29 UTC (permalink / raw)
To: linux-kselftest, shuah, bugs, skhan
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.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency
2023-04-03 14:29 Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency Kernel.org Bugbot
@ 2023-04-03 16:33 ` Randy Dunlap
2023-04-03 20:04 ` Kernel.org Bugbot
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Randy Dunlap @ 2023-04-03 16:33 UTC (permalink / raw)
To: Kernel.org Bugbot, linux-kselftest, shuah, bugs, skhan
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.
--
~Randy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency
2023-04-03 14:29 Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency Kernel.org Bugbot
2023-04-03 16:33 ` Randy Dunlap
@ 2023-04-03 20:04 ` Kernel.org Bugbot
2023-04-03 20:19 ` Randy Dunlap
2023-04-04 6:06 ` Kernel.org Bugbot
2023-04-04 6:17 ` Kernel.org Bugbot
3 siblings, 1 reply; 8+ messages in thread
From: Kernel.org Bugbot @ 2023-04-03 20:04 UTC (permalink / raw)
To: shuah, linux-kselftest, bugs, rdunlap, skhan
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.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency
2023-04-03 20:04 ` Kernel.org Bugbot
@ 2023-04-03 20:19 ` Randy Dunlap
2023-04-04 4:43 ` Randy Dunlap
0 siblings, 1 reply; 8+ messages in thread
From: Randy Dunlap @ 2023-04-03 20:19 UTC (permalink / raw)
To: Kernel.org Bugbot, shuah, linux-kselftest, bugs, skhan
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.
--
~Randy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency
2023-04-03 20:19 ` Randy Dunlap
@ 2023-04-04 4:43 ` Randy Dunlap
0 siblings, 0 replies; 8+ messages in thread
From: Randy Dunlap @ 2023-04-04 4:43 UTC (permalink / raw)
To: Kernel.org Bugbot, shuah, linux-kselftest, bugs, skhan
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...
--
~Randy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency
2023-04-03 14:29 Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency Kernel.org Bugbot
2023-04-03 16:33 ` Randy Dunlap
2023-04-03 20:04 ` Kernel.org Bugbot
@ 2023-04-04 6:06 ` Kernel.org Bugbot
2023-04-04 6:17 ` Kernel.org Bugbot
3 siblings, 0 replies; 8+ messages in thread
From: Kernel.org Bugbot @ 2023-04-04 6:06 UTC (permalink / raw)
To: rdunlap, shuah, bugs, linux-kselftest, skhan
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.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency
2023-04-03 14:29 Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency Kernel.org Bugbot
` (2 preceding siblings ...)
2023-04-04 6:06 ` Kernel.org Bugbot
@ 2023-04-04 6:17 ` Kernel.org Bugbot
2023-04-05 3:15 ` Randy Dunlap
3 siblings, 1 reply; 8+ messages in thread
From: Kernel.org Bugbot @ 2023-04-04 6:17 UTC (permalink / raw)
To: bugs, rdunlap, linux-kselftest, skhan, shuah
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.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency
2023-04-04 6:17 ` Kernel.org Bugbot
@ 2023-04-05 3:15 ` Randy Dunlap
0 siblings, 0 replies; 8+ messages in thread
From: Randy Dunlap @ 2023-04-05 3:15 UTC (permalink / raw)
To: Kernel.org Bugbot, bugs, linux-kselftest, skhan, shuah
Cc: linux-crypto, David Howells
[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?
--
~Randy
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-04-05 3:15 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-03 14:29 Kernel panic, CONFIG_FIPS_SIGNATURE_SELFTEST, missing dependency Kernel.org Bugbot
2023-04-03 16:33 ` Randy Dunlap
2023-04-03 20:04 ` Kernel.org Bugbot
2023-04-03 20:19 ` Randy Dunlap
2023-04-04 4:43 ` Randy Dunlap
2023-04-04 6:06 ` Kernel.org Bugbot
2023-04-04 6:17 ` Kernel.org Bugbot
2023-04-05 3:15 ` Randy Dunlap
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).