A hard lockup occurs while a task is performing I/O accounting with siglock spinlock held inside do_io_accounting()
Issue
- A hard lockup occurs while a task is performing I/O accounting with siglock spinlock held inside do_io_accounting()
Kernel panic - not syncing: Hard LOCKUP
CPU: 185 PID: 4848 Comm: taskname Kdump: loaded Tainted: G X ------- --- 5.14.0-503.35.1.el9_5.x86_64 #1
Hardware name: Lenovo ThinkSystem SR850 V3/SB27B71097, BIOS RSE120E-8.10 02/10/2025
Call Trace:
<NMI>
dump_stack_lvl+0x34/0x48
panic+0x107/0x2bb
nmi_panic.cold+0xc/0xc
watchdog_overflow_callback.cold+0x5c/0x70
__perf_event_overflow+0x102/0x1e0
handle_pmi_common+0x128/0x410
? flush_tlb_one_kernel+0xa/0x20
? native_set_fixmap+0x5b/0x80
? ghes_copy_tofrom_phys+0x74/0x120
intel_pmu_handle_irq+0x103/0x2a0
perf_event_nmi_handler+0x28/0x50
nmi_handle+0x5b/0x120
default_do_nmi+0x40/0x130
exc_nmi+0x100/0x180
end_repeat_nmi+0xf/0x60
RIP: 0010:do_io_accounting+0x185/0x200
Code: 24 08 48 03 aa 98 02 00 00 48 8b 8a b0 02 00 00 48 01 4c 24 10 4c 89 f9 eb 4e 49 39 c7 74 6a 48 8b b0 48 0e 00 00 48 01 34 24 <48> 8b 90 50 0e 00 00 48 01 54 24 08 48 8b 90 08 0d 00 00 48 8b 88
RSP: 0018:ff5a497c283b7ac0 EFLAGS: 00000006
RAX: ff1b8b64c1258000 RBX: 00000007ff457461 RCX: ff1b8b64c1258000
RDX: ff1b8b0f313350d0 RSI: 0000000000000000 RDI: ff1b8b6052712340
RBP: 000065c2307c3a9b R08: ff5a497c283b7a2c R09: 0000000000000000
R10: 0000000000020000 R11: 0000000000000000 R12: 00000daf3e805f30
R13: 001a020578875010 R14: 0000000000000000 R15: ff1b8b613ff30000
? do_io_accounting+0x185/0x200
? do_io_accounting+0x185/0x200
</NMI>
<TASK>
proc_single_show+0x4a/0xc0
seq_read_iter+0x11d/0x4b0
? syscall_exit_to_user_mode+0x19/0x40
seq_read+0xe6/0x130
vfs_read+0xa4/0x330
? _copy_to_user+0x1a/0x30
? cp_new_stat+0x150/0x180
? __fget_light+0x9f/0x130
ksys_read+0x5f/0xe0
do_syscall_64+0x5c/0xf0
? __do_sys_newfstat+0x57/0x60
? syscall_exit_work+0x103/0x130
? syscall_exit_to_user_mode+0x19/0x40
? do_syscall_64+0x6b/0xf0
? vfs_read+0xa4/0x330
? syscall_exit_work+0x103/0x130
? syscall_exit_to_user_mode+0x19/0x40
? __fget_light+0x9f/0x130
? syscall_exit_work+0x103/0x130
? syscall_exit_to_user_mode+0x19/0x40
? do_syscall_64+0x6b/0xf0
? do_syscall_64+0x6b/0xf0
? sysvec_apic_timer_interrupt+0x3c/0x90
entry_SYSCALL_64_after_hwframe+0x78/0x80
RIP: 0033:0x7fa8fa2fd9ec
Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 69 86 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 bf 86 f8 ff 48
RSP: 002b:00007fa8dd7f5640 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fa8c8000df0 RCX: 00007fa8fa2fd9ec
RDX: 0000000000000400 RSI: 00007fa8c800cb90 RDI: 0000000000000007
RBP: 00007fa8fa3f75e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa8c8000df0
R13: 0000000000000d68 R14: 00007fa8fa3f69e0 R15: 0000000000000d68
</TASK>
Environment
- Issue observed in:
- Red Hat Enterprise Linux 9 - kernel-5.14.0-503.35.1.el9_5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.