Bug report: kernel paniced while booting

Conor Dooley conor at kernel.org
Mon Jun 5 03:58:57 PDT 2023


On Mon, Jun 05, 2023 at 10:52:14AM +0000, Song Shuai wrote:

> This report is not identical to my prior report -- "kernel paniced when system hibernates" [1], but both of them 
> are closely related with the commit (3335068f8721 "riscv: Use PUD/P4D/PGD pages for the linear mapping").
> 
> With this commit, hibernation is trapped with "access fault" while accessing the PMP-protected regions (mmode_resv0 at 80000000) 
> from OpenSbi (BTW, hibernation is marked as nonportable by Conor[2]).

Just to be clear, you enabled NONPORTABLE & hibernation, and then
hibernating panicked for you on a system that uses standard OpenSBI?
This is the existing, known, issue and not something you are trying to
report as a new problem here, right?
(Sorry, I am a bit slow today)

Cheers,
Conor.

> In this report, efi_init handoffs the memory mapping from Boot Services to memblock where reserves mmode_resv0 at 80000000, 
> so there is no "access fault" but "page fault".
> 
> And reverting commit 3335068f8721 indeed fixed this panic.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20230605/663010ea/attachment.sig>


More information about the linux-riscv mailing list