[linux-azure] Panic when triggering hibernation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-azure (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
We backported several upstream commits in LP #1880032, but the following commit wasn't necessary and it's causing a panic when trying to hibernate an azure instance, as described by comment #8 in LP #1880032 (https:/
0a14dbaa0736 ("video: hyperv_fb: Fix hibernation for the deferred IO feature"):
https:/
We should include the patch only if the kernel also includes
a4ddb11d297e ("video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver"
I manage to reproduce the panic and I can confirm that reverting the offending commit solves the problem. I managed to test it on several D and E instances types and the system successfully hibernates. I also tried to test the scenarios where the system has high memory usage and on a 8GB VM hibernation worked up until 70% of memory utilization.
[ 67.736061] ------------[ cut here ]------------
[ 67.736068] WARNING: CPU: 5 PID: 1358 at kernel/
[ 67.736068] Modules linked in: xt_owner iptable_security xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bpfilter nls_iso8859_1 dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua sb_edac crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd cryptd glue_helper joydev hid_generic hyperv_fb cfbfillrect hid_hyperv intel_rapl_perf serio_raw hyperv_keyboard pata_acpi hv_netvsc hv_balloon hid cfbimgblt pci_hyperv cfbcopyarea hv_utils pci_hyperv_intf sch_fq_codel drm drm_panel_
[ 67.736088] CPU: 5 PID: 1358 Comm: bash Not tainted 5.4.0-1022-azure #22-Ubuntu
[ 67.736089] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090007 06/02/2017
[ 67.736091] RIP: 0010:__
[ 67.736092] Code: f0 eb e3 4d 8b 7c 24 20 e9 f3 fe ff ff 8b 0b 48 8b 53 08 83 e1 08 48 0f ba 2b 03 80 c9 f0 e9 4f ff ff ff 0f 0b e9 68 ff ff ff <0f> 0b 45 31 f6 e9 5e ff ff ff e8 ec e0 fd ff 66 66 2e 0f 1f 84 00
[ 67.736095] RSP: 0018:ffffa7ce8a
[ 67.736096] RAX: 0000000000000000 RBX: ffff8be3621f02a0 RCX: 0000000000000000
[ 67.736096] RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff8be3621f02a0
[ 67.736097] RBP: ffffa7ce8a8ffbf0 R08: 0000000000000000 R09: 00000000ff010101
[ 67.736098] R10: ffff8be363f7a320 R11: 0000000000000001 R12: ffff8be3621f02a0
[ 67.736098] R13: 0000000000000001 R14: 0000000000000001 R15: ffffffffbc390fd1
[ 67.736099] FS: 00007f6df35fe74
[ 67.736100] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 67.736100] CR2: 0000561eef2c1b50 CR3: 0000000e40a14004 CR4: 00000000001706e0
[ 67.736102] Call Trace:
[ 67.736108] __cancel_
[ 67.736119] cancel_
[ 67.736121] hvfb_suspend+
[ 67.736122] vmbus_suspend+
[ 67.736125] dpm_run_
[ 67.736127] __device_
[ 67.736128] dpm_suspend_
[ 67.736130] dpm_suspend_
[ 67.736132] hibernation_
[ 67.736133] hibernate.
[ 67.736135] state_store+
[ 67.736138] kobj_attr_
[ 67.736141] sysfs_kf_
[ 67.736142] kernfs_
[ 67.736145] __vfs_write+
[ 67.736147] vfs_write+
[ 67.736149] ksys_write+
[ 67.736150] __x64_sys_
[ 67.736152] do_syscall_
[ 67.736156] entry_SYSCALL_
[ 67.736157] RIP: 0033:0x7f6df3712057
[Test Case]
Follow the steps from https:/
[Regression Potential]
The revert touches the Hyper-V framebuffer driver and can potentially cause the VM to not boot or cause hibernation to fail (again). Although the risk is low.
Changed in linux-azure (Ubuntu Focal): | |
status: | New → In Progress |
Changed in linux-azure (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux-azure (Ubuntu): | |
status: | New → Invalid |
Changed in linux-azure (Ubuntu Focal): | |
importance: | Undecided → Medium |
Revert submitted for review: https:/ /lists. ubuntu. com/archives/ kernel- team/2020- August/ 112766. html