Created attachment 1369 [details] the full guest kernel log Description of problem: kernel page fault when hibernate and resume for several times. This is random issue, reproduction rate is 1/3 on my side. Version-Release number of selected component (if applicable): 5.10.134-17.3.al8.x86_64 How reproducible: Steps to Reproduce: 1. start alinux3 libvirt VM and use 'virsh console --force vm_name' to view the guest kernel log. 2. run 'systemctl hibernate' in guest and wait hibernation done and VM off 3. start VM again 4. repeat step 2 Actual results: kernel page fault during hibernation. [ 184.898853] PM: Image saving progress: 0%^M [ 185.000802] BUG: unable to handle page fault for address: ffff9c150011c000^M [ 185.002128] #PF: supervisor write access in kernel mode^M [ 185.003213] #PF: error_code(0x0003) - permissions violation^M [ 185.004338] PGD 86e001067 P4D 86e001067 PUD 1001fa063 PMD 100244063 PTE 800000084011c061^M [ 185.005769] Oops: 0003 [#1] SMP NOPTI^M [ 185.006681] CPU: 6 PID: 6757 Comm: systemd-sleep Kdump: loaded Not tainted 5.10.134-17.3.al8.x86_64 #1^M [ 185.008273] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014^M [ 185.010115] RIP: 0010:copy_page+0x7/0x10^M [ 185.011088] Code: 48 ff c6 48 ff c7 ff c9 75 f2 31 c0 c3 cc cc cc cc 66 90 48 89 f8 48 89 d1 f3 a4 31 c0 c3 cc cc cc cc cc 66 90 b9 00 02 00 00 <f3> 48 a5 c3 cc cc cc cc 90 48 83 ec 10 48 89 1c 24 4c 89 64 24 08^M [ 185.014353] RSP: 0000:ffffb169c125bbd0 EFLAGS: 00010286^M [ 185.015514] RAX: ffff9c150011c000 RBX: ffffb169c125bcc8 RCX: 0000000000000200^M [ 185.016916] RDX: 0000000000012c00 RSI: ffff9c0e3ce84000 RDI: ffff9c150011c000^M [ 185.018305] RBP: ffff9c150011c000 R08: 0000000000000000 R09: ffffffffb7735834^M [ 185.019698] R10: 0000000000000003 R11: fffffffffff3809f R12: 00000000000009b1^M [ 185.021091] R13: ffff9c150011c000 R14: 0000000000000000 R15: ffffb169c1635058^M [ 185.022500] FS: 00007f33f5227e00(0000) GS:ffff9c153f900000(0000) knlGS:0000000000000000^M [ 185.024019] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033^M [ 185.025262] CR2: ffff9c150011c000 CR3: 000000017bbd4002 CR4: 0000000000770ee0^M [ 185.026675] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000^M [ 185.028089] DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400^M [ 185.029492] PKRU: 55555554^M [ 185.030371] Call Trace:^M [ 185.031221] write_page+0x44/0xa0^M [ 185.032170] swap_write_page+0x3b/0x120^M [ 185.033175] save_image_lzo+0x5a5/0x800^M [ 185.034177] ? add_wait_queue_exclusive+0x70/0x70^M [ 185.035278] swsusp_write+0x242/0x2c0^M [ 185.036257] hibernate+0x121/0x210^M [ 185.037198] state_store+0x49/0x50^M [ 185.038136] kernfs_fop_write_iter+0x125/0x1c0^M [ 185.039195] new_sync_write+0x119/0x1b0^M [ 185.040183] vfs_write+0x1ce/0x260^M [ 185.041111] ksys_write+0x5f/0xe0^M [ 185.042025] do_syscall_64+0x2e/0x50^M [ 185.042965] entry_SYSCALL_64_after_hwframe+0x62/0xc7^M [ 185.044078] RIP: 0033:0x7f33f5557bb7^M [ 185.045026] Code: 0a 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24^M [ 185.048295] RSP: 002b:00007fff1e3b41b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001^M [ 185.049735] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f33f5557bb7^M [ 185.051145] RDX: 0000000000000005 RSI: 000055a082f89310 RDI: 0000000000000004^M [ 185.052554] RBP: 000055a082f89310 R08: 000000000000000a R09: 00007f33f55f9a60^M [ 185.053982] R10: 0000000000000070 R11: 0000000000000246 R12: 0000000000000005^M [ 185.055409] R13: 000055a082f872a0 R14: 0000000000000005 R15: 00007f33f55fa720^M [ 185.056835] Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 rfkill scsi_transport_iscsi ip_set nf_tables nfnetlink uinput intel_rapl_msr intel_rapl_common intel_uncore_frequency_common nfit kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel rapl iTCO_wdt iTCO_vendor_support i2c_i801 joydev pcspkr i2c_smbus lpc_ich virtio_balloon xfs libcrc32c sd_mod t10_pi sg bochs_drm drm_vram_helper drm_kms_helper syscopyarea sysfillrect sysimgblt ahci fb_sys_fops drm_ttm_helper libahci ttm crc32c_intel libata serio_raw drm virtio_scsi virtio_net virtio_console net_failover failover i2c_core dm_mirror dm_region_hash dm_log dm_mod fuse^M Expected results: hibernation can succeed. Additional info: