Kernel panic due to stack overflow (double-fault) in kvm_set_irq [kvm]

Solution Verified - Updated -

Issue

  • Kernel panics with the following messages:
[ 6932.427010] BUG: stack guard page was hit at 00000000182b894e (stack is 0000000031e90a73..00000000d798f80a)
[ 6932.427390] kernel stack overflow (double-fault): 0000 [#1] SMP NOPTI
[ 6932.427730] CPU: 20 PID: 60530 Comm: qemu-kvm Kdump: loaded Tainted: G          I      --------- -  - 4.18.0-240.10.1.el8_3.x86_64 #1
[ 6932.428498] Hardware name: Dell Inc. PowerEdge R740/0WXD1Y, BIOS 2.10.2 02/24/2021
[ 6932.429040] RIP: 0010:kvm_set_irq+0x46/0x130 [kvm]
[ 6932.429528] Code: f3 48 81 ec d0 00 00 00 65 48 8b 04 25 28 00 00 00 48 89 84 24 c8 00 00 00 31 c0 0f 1f 44 00 00 4d 8d bd 40 30 02 00 4c 89 ff <e8> 95 f6 85 f9 44 89 f2 4c 89 ef 48 8d 74 24 08 89 44 24 04 e8 11
[ 6932.430675] RSP: 0018:ffffab1800debf38 EFLAGS: 00010246
[ 6932.431246] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
[ 6932.431851] RDX: 000000000000000b RSI: 0000000000000001 RDI: ffffab17d9b64040
[ 6932.432419] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[ 6932.432825] R10: ffff8c3f31f28000 R11: 0000000000000000 R12: 0000000000000000
[ 6932.433157] R13: ffffab17d9b41000 R14: 000000000000000b R15: ffffab17d9b64040
[ 6932.433488] FS:  00007fcb72fcd680(0000) GS:ffff8bc2bfa80000(0000) knlGS:0000000000000000
[ 6932.433833] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6932.434173] CR2: ffffab1800debf28 CR3: 00000069fd808001 CR4: 00000000007626e0
[ 6932.434516] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 6932.434869] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 6932.435213] PKRU: 55555554
[ 6932.435556] Call Trace:
[ 6932.435930]  irqfd_resampler_ack+0x32/0x90 [kvm]
[ 6932.436295]  kvm_notify_acked_irq+0x5f/0xc0 [kvm]
[ 6932.436652]  kvm_ioapic_update_eoi_one.isra.10+0x3d/0x140 [kvm]
[ 6932.437011]  ioapic_set_irq+0x240/0x2d0 [kvm]
[ 6932.437358]  kvm_ioapic_set_irq+0x61/0x90 [kvm]
[ 6932.437715]  kvm_set_irq+0xa1/0x130 [kvm]
[ 6932.438072]  ? kvm_hv_set_sint+0x20/0x20 [kvm]
[ 6932.438433]  ? kvm_set_ioapic_irq+0x20/0x20 [kvm]
[ 6932.438803]  irqfd_resampler_ack+0x32/0x90 [kvm]
[ 6932.439157]  kvm_notify_acked_irq+0x5f/0xc0 [kvm]
[ 6932.439515]  kvm_ioapic_update_eoi_one.isra.10+0x3d/0x140 [kvm]
[ 6932.439886]  ioapic_set_irq+0x240/0x2d0 [kvm]
[ 6932.440246]  kvm_ioapic_set_irq+0x61/0x90 [kvm]
[ 6932.440647]  kvm_set_irq+0xa1/0x130 [kvm]
[ 6932.441242]  ? kvm_hv_set_sint+0x20/0x20 [kvm]
[ 6932.441827]  ? kvm_set_ioapic_irq+0x20/0x20 [kvm]
[ 6932.442336]  irqfd_resampler_ack+0x32/0x90 [kvm]
[ 6932.442702]  kvm_notify_acked_irq+0x5f/0xc0 [kvm]
[ 6932.443073]  kvm_ioapic_update_eoi_one.isra.10+0x3d/0x140 [kvm]
[--]
[ 6932.517071]  irqfd_resampler_ack+0x32/0x90 [kvm]
[ 6932.517333]  kvm_notify_acked_irq+0x5f/0xc0 [kvm]
[ 6932.517604]  kvm_ioapic_update_eoi_one.isra.10+0x3d/0x140 [kvm]
[ 6932.517875]  ioapic_set_irq+0x240/0x2d0 [kvm]
[ 6932.518142]  kvm_ioapic_set_irq+0x61/0x90 [kvm]
[ 6932.518451]  kvm_set_irq+0xa1/0x130 [kvm]
[ 6932.518723]  ? kvm_hv_set_sint+0x20/0x20 [kvm]
[ 6932.518987]  ? kvm_set_ioapic_irq+0x20/0x20 [kvm]
[ 6932.519241]  ? try_to_wake_up+0x1cd/0x540
[ 6932.519494]  ? __kmalloc_reserve.isra.52+0x2e/0x80
[ 6932.519765]  irqfd_resampler_ack+0x32/0x90 [kvm]
[ 6932.520028]  kvm_notify_acked_irq+0x5f/0xc0 [kvm]
[ 6932.520291]  kvm_ioapic_update_eoi_one.isra.10+0x3d/0x140 [kvm]
[ 6932.520565]  ioapic_set_irq+0x240/0x2d0 [kvm]
[ 6932.520834]  kvm_ioapic_set_irq+0x61/0x90 [kvm]
[ 6932.521098]  kvm_set_irq+0xa1/0x130 [kvm]
[ 6932.521370]  ? kvm_hv_set_sint+0x20/0x20 [kvm]
[ 6932.521713]  ? kvm_set_ioapic_irq+0x20/0x20 [kvm]
[ 6932.522167]  kvm_vm_ioctl_irq_line+0x23/0x30 [kvm]
[ 6932.522580]  kvm_vm_ioctl+0x3c2/0xc60 [kvm]
[ 6932.522863]  ? unix_stream_recvmsg+0x53/0x70
[ 6932.523309]  ? seccomp_run_filters+0x6b/0x120
[ 6932.523750]  ? pollwake+0x74/0x90
[ 6932.524207]  ? wake_up_q+0x80/0x80
[ 6932.524628]  ? __wake_up_common+0x7a/0x190
[ 6932.525049]  do_vfs_ioctl+0xa4/0x640
[ 6932.525494]  ksys_ioctl+0x60/0x90
[ 6932.525888]  __x64_sys_ioctl+0x16/0x20
[ 6932.526282]  do_syscall_64+0x5b/0x1a0
[ 6932.526703]  entry_SYSCALL_64_after_hwframe+0x65/0xca
[ 6932.527099] RIP: 0033:0x7fcb6dcbd88b
[ 6932.527493] Code: 0f 1e fa 48 8b 05 fd 95 2c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cd 95 2c 00 f7 d8 64 89 01 48
[ 6932.528233] RSP: 002b:00007ffc904196b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 6932.528655] RAX: ffffffffffffffda RBX: 000055721dcba5c0 RCX: 00007fcb6dcbd88b
[ 6932.528940] RDX: 00007ffc90419720 RSI: ffffffffc008ae67 RDI: 0000000000000017
[ 6932.529213] RBP: 0000000000000001 R08: 000000000000000b R09: 000000000000002c
[ 6932.529487] R10: 00007fcb6df87ba0 R11: 0000000000000246 R12: 000000000000000b
[ 6932.529772] R13: 0000000000000001 R14: 000055721c08f770 R15: 000055721dc23854

Environment

  • Red Hat Enterprise Linux 8
  • KVM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In