[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <YtR8tPTkL/L1kFkY@yury-laptop>
Date: Sun, 17 Jul 2022 14:18:44 -0700
From: Yury Norov <yury.norov@...il.com>
To: Alexander Viro <viro@...iv.linux.org.uk>,
linux-fsdevel@...r.kernel.org
Cc: yury.norov@...il.com, linux-kernel@...r.kernel.org
Subject: x86_64/kvm: kernel hangs on poweroff
Hi Alexander, all,
I found that the kernel hangs on poweroff for me on x86_64/kvm. I'm not
sure how to address this issue because there's no fresh code in do_exit().
This is reproduced on v5.19-rc6, rc3 and on v5.18.
The dmesg is below, and my config is attached.
My apologies if it's VFS-related.
Thanks,
Yury
[ 22.036466] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 22.071446] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 22.074137] systemd-journald[249]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 22.085763] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 22.091697] systemd-shutdown[1]: Unmounting file systems.
[ 22.093053] [473]: Remounting '/' read-only with options 'errors=remount-ro'.
[ 22.103722] EXT4-fs (vda1): re-mounted. Quota mode: none.
[ 22.105617] systemd-shutdown[1]: All filesystems unmounted.
[ 22.106359] systemd-shutdown[1]: Deactivating swaps.
[ 22.107056] systemd-shutdown[1]: All swaps deactivated.
[ 22.108041] systemd-shutdown[1]: Detaching loop devices.
[ 22.108888] systemd-shutdown[1]: All loop devices detached.
[ 22.109628] systemd-shutdown[1]: Stopping MD devices.
[ 22.110368] systemd-shutdown[1]: All MD devices stopped.
[ 22.111069] systemd-shutdown[1]: Detaching DM devices.
[ 22.112085] systemd-shutdown[1]: All DM devices detached.
[ 22.112955] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached.
[ 22.115825] systemd-shutdown[1]: Syncing filesystems and block devices.
[ 22.116738] systemd-shutdown[1]: Powering off.
[ 22.119564] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 22.157725] ACPI: PM: Preparing to enter system sleep state S5
[ 22.160354] reboot: Power down
[ 22.162259] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 22.163539] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.19.0-rc6 #198
[ 22.164327] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014
[ 22.164327] Call Trace:
[ 22.164327] <TASK>
[ 22.164327] dump_stack_lvl+0x34/0x44
[ 22.164327] panic+0x107/0x28a
[ 22.164327] do_exit.cold+0x15/0x15
[ 22.164327] ? sys_off_notify+0x3e/0x60
[ 22.164327] __do_sys_reboot+0x1df/0x220
[ 22.164327] ? vfs_writev+0xc7/0x190
[ 22.164327] ? virtio_crypto_ctrl_vq_request+0xd0/0xd0
[ 22.164327] ? fpregs_assert_state_consistent+0x1e/0x40
[ 22.164327] do_syscall_64+0x3b/0x90
[ 22.164327] entry_SYSCALL_64_after_hwframe+0x46/0xb0
[ 22.164327] RIP: 0033:0x7f42b4118443
[ 22.164327] Code: 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 89 fa be 69 19 12 28 bf ad de e1 fe b8 a9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 8b 15 f9 c9 0d 00 f7 d8
[ 22.164327] RSP: 002b:00007ffccf375768 EFLAGS: 00000202 ORIG_RAX: 00000000000000a9
[ 22.164327] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f42b4118443
[ 22.164327] RDX: 000000004321fedc RSI: 0000000028121969 RDI: 00000000fee1dead
[ 22.164327] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffccf374b70
[ 22.164327] R10: 00007f42b36547f0 R11: 0000000000000202 R12: 0000557af0fd649f
[ 22.164327] R13: 0000000000000000 R14: 0000000000000000 R15: 0000557af0fd612a
[ 22.164327] </TASK>
[ 22.164327] Kernel Offset: 0x2d800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 22.164327] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000 ]---
View attachment "config.x86" of type "text/plain" (256548 bytes)
Powered by blists - more mailing lists