=============================
[ BUG: Invalid wait context ]
6.15.0-rc1-syzkaller-00301-g3bde70a2c827 #0 Not tainted
-----------------------------
swapper/0/0 is trying to lock:
ffffc90006c8a410 (&gpc->lock){....}-{3:3}, at: kvm_xen_set_evtchn_fast+0x254/0xeb0 arch/x86/kvm/xen.c:1819
other info that might help us debug this:
context-{2:2}
1 lock held by swapper/0/0:
#0: ffffc90006c8a958 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#0: ffffc90006c8a958 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#0: ffffc90006c8a958 (&kvm->srcu){.?.+}-{0:0}, at: kvm_xen_set_evtchn_fast+0x23a/0xeb0 arch/x86/kvm/xen.c:1817
stack backtrace:
CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc1-syzkaller-00301-g3bde70a2c827 #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_lock_invalid_wait_context kernel/locking/lockdep.c:4831 [inline]
check_wait_context kernel/locking/lockdep.c:4903 [inline]
__lock_acquire+0x3ff/0x1ba0 kernel/locking/lockdep.c:5185
lock_acquire kernel/locking/lockdep.c:5866 [inline]
lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5823
__raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline]
_raw_read_lock_irqsave+0x46/0x90 kernel/locking/spinlock.c:236
kvm_xen_set_evtchn_fast+0x254/0xeb0 arch/x86/kvm/xen.c:1819
xen_timer_callback+0x1db/0x2a0 arch/x86/kvm/xen.c:140
__run_hrtimer kernel/time/hrtimer.c:1761 [inline]
__hrtimer_run_queues+0x5ea/0xad0 kernel/time/hrtimer.c:1825
hrtimer_interrupt+0x397/0x8e0 kernel/time/hrtimer.c:1887
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
__sysvec_apic_timer_interrupt+0x108/0x3f0 arch/x86/kernel/apic/apic.c:1055
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:flush_smp_call_function_queue+0x15f/0x1e0 kernel/smp.c:620
Code: 75 46 e8 d4 e9 0b 00 e8 1f ae 13 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 2d e5 0b 00 48 85 db 75 4a e8 b3 e9 0b 00 fb 5b <5d> e9 ab e9 0b 00 e8 a6 e9 0b 00 e8 a1 82 cd ff 31 f6 31 ff e8 08
RSP: 0018:ffffffff8e007e18 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81af5303
RDX: ffffffff8e097740 RSI: ffffffff81af530d RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff8e097740 R14: ffffffff90867410 R15: 0000000000000000
do_idle+0x2b1/0x510 kernel/sched/idle.c:352
cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:423
rest_init+0x16b/0x2b0 init/main.c:743
start_kernel+0x3e9/0x4d0 init/main.c:1099
x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:513
x86_64_start_kernel+0xb0/0xc0 arch/x86/kernel/head64.c:494
common_startup_64+0x13e/0x148
----------------
Code disassembly (best guess):
0: 75 46 jne 0x48
2: e8 d4 e9 0b 00 call 0xbe9db
7: e8 1f ae 13 00 call 0x13ae2b
c: 9c pushf
d: 5b pop %rbx
e: 81 e3 00 02 00 00 and $0x200,%ebx
14: 31 ff xor %edi,%edi
16: 48 89 de mov %rbx,%rsi
19: e8 2d e5 0b 00 call 0xbe54b
1e: 48 85 db test %rbx,%rbx
21: 75 4a jne 0x6d
23: e8 b3 e9 0b 00 call 0xbe9db
28: fb sti
29: 5b pop %rbx
* 2a: 5d pop %rbp <-- trapping instruction
2b: e9 ab e9 0b 00 jmp 0xbe9db
30: e8 a6 e9 0b 00 call 0xbe9db
35: e8 a1 82 cd ff call 0xffcd82db
3a: 31 f6 xor %esi,%esi
3c: 31 ff xor %edi,%edi
3e: e8 .byte 0xe8
3f: 08 .byte 0x8