=============================
[ BUG: Invalid wait context ]
6.17.0-rc1-syzkaller-00038-g0cc53520e68b #0 Not tainted
-----------------------------
syz.0.0/5352 is trying to lock:
ffff888052cb5410 (&gpc->lock){....}-{3:3}, at: kvm_xen_set_evtchn_fast+0x1fb/0x9b0 arch/x86/kvm/xen.c:1820
other info that might help us debug this:
context-{2:2}
1 lock held by syz.0.0/5352:
#0: ffff888052cb5960 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#0: ffff888052cb5960 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#0: ffff888052cb5960 (&kvm->srcu){.?.+}-{0:0}, at: kvm_xen_set_evtchn_fast+0x1c3/0x9b0 arch/x86/kvm/xen.c:1818
stack backtrace:
CPU: 0 UID: 0 PID: 5352 Comm: syz.0.0 Not tainted 6.17.0-rc1-syzkaller-00038-g0cc53520e68b #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_lvl+0x189/0x250 lib/dump_stack.c:120
print_lock_invalid_wait_context kernel/locking/lockdep.c:4830 [inline]
check_wait_context kernel/locking/lockdep.c:4902 [inline]
__lock_acquire+0xbcb/0xd20 kernel/locking/lockdep.c:5187
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
__raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline]
_raw_read_lock_irqsave+0xaf/0x100 kernel/locking/spinlock.c:236
kvm_xen_set_evtchn_fast+0x1fb/0x9b0 arch/x86/kvm/xen.c:1820
xen_timer_callback+0x109/0x220 arch/x86/kvm/xen.c:140
__run_hrtimer kernel/time/hrtimer.c:1761 [inline]
__hrtimer_run_queues+0x4dd/0xc60 kernel/time/hrtimer.c:1825
hrtimer_interrupt+0x45b/0xaa0 kernel/time/hrtimer.c:1887
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1039 [inline]
__sysvec_apic_timer_interrupt+0x108/0x410 arch/x86/kernel/apic/apic.c:1056
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__get_user_8+0x17/0x30 arch/x86/lib/getuser.S:108
Code: 03 04 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 ba 00 f0 ff ff ff 7f 00 00 48 39 d0 48 0f 47 c2 0f 01 cb 48 8b 10 <31> c0 0f 01 ca c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d457d98 EFLAGS: 00040287
RAX: 000055557bcefe28 RBX: ffff88800028ddf0 RCX: 35ecd9441c991400
RDX: 0000000000000000 RSI: ffffffff8dba9351 RDI: ffffffff8be34600
RBP: ffffc9000d457ec0 R08: 0000000000000000 R09: ffffffff820d0930
R10: dffffc0000000000 R11: fffffbfff1f473c7 R12: dffffc0000000000
R13: ffffc9000d457fd8 R14: 000055557bcefe28 R15: ffff88800028c880
rseq_get_rseq_cs_ptr_val kernel/rseq.c:248 [inline]
rseq_get_rseq_cs kernel/rseq.c:270 [inline]
rseq_ip_fixup kernel/rseq.c:390 [inline]
__rseq_handle_notify_resume+0x137/0x11f0 kernel/rseq.c:438
rseq_handle_notify_resume include/linux/rseq.h:38 [inline]
resume_user_mode_work include/linux/resume_user_mode.h:62 [inline]
exit_to_user_mode_loop+0xc2/0x110 kernel/entry/common.c:43
exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe6a73c14a5
Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 f6 54 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 4f 55 ff ff 48 8b 04 24 48 83 c4 28 f7 d8
RSP: 002b:00007fff8d6abd20 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: 0000000000000000 RBX: 00007fe6a75b5fa0 RCX: 00007fe6a73c14a5
RDX: 00007fff8d6abd60 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fe6a75b7da0 R08: 0000000000000000 R09: 7fffffffffffffff
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000013927
R13: 00007fe6a75b6090 R14: ffffffffffffffff R15: 00007fff8d6abea0
----------------
Code disassembly (best guess):
0: 03 04 00 add (%rax,%rax,1),%eax
3: 90 nop
4: 90 nop
5: 90 nop
6: 90 nop
7: 90 nop
8: 90 nop
9: 90 nop
a: 90 nop
b: 90 nop
c: 90 nop
d: 90 nop
e: 90 nop
f: 90 nop
10: 90 nop
11: 90 nop
12: 90 nop
13: 48 ba 00 f0 ff ff ff movabs $0x7ffffffff000,%rdx
1a: 7f 00 00
1d: 48 39 d0 cmp %rdx,%rax
20: 48 0f 47 c2 cmova %rdx,%rax
24: 0f 01 cb stac
27: 48 8b 10 mov (%rax),%rdx
* 2a: 31 c0 xor %eax,%eax <-- trapping instruction
2c: 0f 01 ca clac
2f: c3 ret
30: cc int3
31: cc int3
32: cc int3
33: cc int3
34: 90 nop
35: 90 nop
36: 90 nop
37: 90 nop
38: 90 nop
39: 90 nop
3a: 90 nop
3b: 90 nop
3c: 90 nop
3d: 90 nop
3e: 90 nop
3f: 90 nop