Linux Power Management development
 help / color / mirror / Atom feed
* Fwd: Kernel panic in 6.9.0 after changes in kernel/power/swap.c
@ 2024-05-16  2:30 Bagas Sanjaya
  2024-05-16  4:33 ` Petri Kaukasoina
  0 siblings, 1 reply; 2+ messages in thread
From: Bagas Sanjaya @ 2024-05-16  2:30 UTC (permalink / raw)
  To: Linux Kernel Mailing List, Linux Regressions,
	Linux Power Management, Linux Filesystems Development
  Cc: Christian Brauner, Christoph Hellwig, Jan Kara, Alexander Viro,
	Rafael J. Wysocki, Pavel Machek, Len Brown, Petri Kaukasoina

[-- Attachment #1: Type: text/plain, Size: 1315 bytes --]

Hi,

Petri Kaukasoina <petri.kaukasoina@tuni.fi> reported on Bugzilla
(https://bugzilla.kernel.org/show_bug.cgi?id=218845) VFS kernel panic
regression when reading hibernation image. He wrote:

> 6.9.0 crashes on boot while 6.8.0 is ok.
> 
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
> 
> bisect result:
> 
> 4379f91172f39d999919c8e8b2b5e1d665d8972d is the first bad commit
> commit 4379f91172f39d999919c8e8b2b5e1d665d8972d
> Author: Christian Brauner <brauner@kernel.org>
> Date:   Tue Jan 23 14:26:23 2024 +0100
> 
>     power: port block device access to file
>     
>     Link: https://lore.kernel.org/r/20240123-vfs-bdev-file-v2-6-adbd023e19cc@kernel.org
>     Reviewed-by: Christoph Hellwig <hch@lst.de>
>     Reviewed-by: Jan Kara <jack@suse.cz>
>     Signed-off-by: Christian Brauner <brauner@kernel.org>
> 
>  kernel/power/swap.c | 28 ++++++++++++++--------------
> 
> 6.9.0 with only this reverted did not compile. This has something to do with reading a hibernation image from disk. I use a swap file, not a partition. The system was not hibernated, though. After I removed resume= and resume_offset= from the kernel command line, even 6.9.0 boots without panic.
> 

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fwd: Kernel panic in 6.9.0 after changes in kernel/power/swap.c
  2024-05-16  2:30 Fwd: Kernel panic in 6.9.0 after changes in kernel/power/swap.c Bagas Sanjaya
@ 2024-05-16  4:33 ` Petri Kaukasoina
  0 siblings, 0 replies; 2+ messages in thread
From: Petri Kaukasoina @ 2024-05-16  4:33 UTC (permalink / raw)
  To: Bagas Sanjaya, Linux Kernel Mailing List, Linux Regressions,
	Linux Power Management, Linux Filesystems Development
  Cc: Christian Brauner, Christoph Hellwig, Jan Kara, Alexander Viro,
	Rafael J. Wysocki, Pavel Machek, Len Brown

Hi

Afterwards I noticed that after I managed to boot 6.9.0, it hibernates 
and even wakes up OK, so it can read the hibernation image. The panic is 
there only when the system is coming up after rebooted. Then I need to 
edit out resume= and resume_offset= from grub to not get the kernel 
panic. (grub with non-UEFI legacy boot.)

-Petri

On 16.5.2024 5.30, Bagas Sanjaya wrote:
> Hi,
>
> Petri Kaukasoina <petri.kaukasoina@tuni.fi> reported on Bugzilla
> (https://bugzilla.kernel.org/show_bug.cgi?id=218845) VFS kernel panic
> regression when reading hibernation image. He wrote:
>
>> 6.9.0 crashes on boot while 6.8.0 is ok.
>>
>> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
>>
>> bisect result:
>>
>> 4379f91172f39d999919c8e8b2b5e1d665d8972d is the first bad commit
>> commit 4379f91172f39d999919c8e8b2b5e1d665d8972d
>> Author: Christian Brauner <brauner@kernel.org>
>> Date:   Tue Jan 23 14:26:23 2024 +0100
>>
>>      power: port block device access to file
>>      
>>      Link: https://lore.kernel.org/r/20240123-vfs-bdev-file-v2-6-adbd023e19cc@kernel.org
>>      Reviewed-by: Christoph Hellwig <hch@lst.de>
>>      Reviewed-by: Jan Kara <jack@suse.cz>
>>      Signed-off-by: Christian Brauner <brauner@kernel.org>
>>
>>   kernel/power/swap.c | 28 ++++++++++++++--------------
>>
>> 6.9.0 with only this reverted did not compile. This has something to do with reading a hibernation image from disk. I use a swap file, not a partition. The system was not hibernated, though. After I removed resume= and resume_offset= from the kernel command line, even 6.9.0 boots without panic.
>>
> Thanks.
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-16  4:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16  2:30 Fwd: Kernel panic in 6.9.0 after changes in kernel/power/swap.c Bagas Sanjaya
2024-05-16  4:33 ` Petri Kaukasoina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox