============================= [ BUG: Invalid wait context ] syzkaller #0 Not tainted ----------------------------- syz-executor/5592 is trying to lock: ff110000582a5bc8 (&gpc->lock){....}-{3:3}, at: kvm_xen_set_evtchn_fast+0x208/0x8d0 arch/x86/kvm/xen.c:1872 other info that might help us debug this: context-{2:2} locks held by syz-executor/5592: 2, on CPU#0: #0: ffffffff909092d8 (tomoyo_ss){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:249 [inline] #0: ffffffff909092d8 (tomoyo_ss){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:365 [inline] #0: ffffffff909092d8 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_read_lock security/tomoyo/common.h:1112 [inline] #0: ffffffff909092d8 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_check_open_permission+0x1d3/0x470 security/tomoyo/file.c:772 #1: ff110000582a6118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:249 [inline] #1: ff110000582a6118 (&kvm->srcu){.?.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:365 [inline] #1: ff110000582a6118 (&kvm->srcu){.?.+}-{0:0}, at: kvm_xen_set_evtchn_fast+0x1d2/0x8d0 arch/x86/kvm/xen.c:1870 stack backtrace: CPU: 0 UID: 0 PID: 5592 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4874 [inline] check_wait_context kernel/locking/lockdep.c:4946 [inline] __lock_acquire+0xf5b/0x2de0 kernel/locking/lockdep.c:5238 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:174 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:271 kvm_xen_set_evtchn_fast+0x208/0x8d0 arch/x86/kvm/xen.c:1872 xen_timer_callback+0x109/0x220 arch/x86/kvm/xen.c:139 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x371/0xa10 kernel/time/hrtimer.c:2136 hrtimer_interrupt+0x4cd/0xaa0 kernel/time/hrtimer.c:2255 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline] __sysvec_apic_timer_interrupt+0x102/0x430 arch/x86/kernel/apic/apic.c:1068 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:check_preemption_disabled+0x15/0xd0 lib/smp_processor_id.c:16 Code: 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 56 53 65 8b 05 0b 6c d8 08 65 48 8b 0d db 6b d8 08 <85> c9 74 0c 5b 41 5e 41 5f 5d c3 cc cc cc cc cc 9c 59 f7 c1 00 02 RSP: 0018:ffa0000003437230 EFLAGS: 00000282 RAX: 0000000000000000 RBX: 00007f3908da8fbc RCX: 8000000000000001 RDX: 0000000000000000 RSI: ffffffff8c8eb360 RDI: ffffffff8c8eb320 RBP: 0000000000000001 R08: ffa0000003437f48 R09: 0000000000000000 R10: ffa0000003437318 R11: ffffffff81b3dd30 R12: ff1100007fa725c0 R13: ff1100007fa725c0 R14: dffffc0000000000 R15: 1ff4000000686e62 rcu_is_watching_curr_cpu include/linux/context_tracking.h:128 [inline] rcu_is_watching+0x16/0xb0 kernel/rcu/tree.c:753 kernel_text_address+0x80/0xe0 kernel/extable.c:113 __kernel_text_address+0xd/0x30 kernel/extable.c:79 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:385 arch_stack_walk+0xfb/0x150 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0xa9/0x100 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 poison_kmalloc_redzone mm/kasan/common.c:412 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:267 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_noprof+0x366/0x710 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x2ad/0x570 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x5fd/0x640 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x229/0x470 security/tomoyo/file.c:776 security_file_open+0xa9/0x240 security/security.c:2769 do_dentry_open+0x495/0x1360 fs/open.c:977 vfs_open_consume+0x4a/0x350 fs/open.c:1131 do_open fs/namei.c:4851 [inline] path_openat+0x16fc/0x20f0 fs/namei.c:5016 do_file_open+0x23e/0x4a0 fs/namei.c:5045 do_sys_openat2+0x115/0x200 fs/open.c:1443 do_sys_open fs/open.c:1449 [inline] __do_sys_openat fs/open.c:1465 [inline] __se_sys_openat fs/open.c:1460 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1460 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3908da8fbc Code: 4c 89 54 24 18 41 89 f2 41 83 e2 40 75 40 89 f0 f7 d0 a9 00 00 41 00 74 35 89 f2 b8 01 01 00 00 48 89 fe bf 9c ff ff ff 0f 05 <48> 3d 00 f0 ff ff 77 44 48 8b 54 24 18 64 48 2b 14 25 28 00 00 00 RSP: 002b:00007ffe92720b50 EFLAGS: 00000206 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f3908e3a55b RCX: 00007f3908da8fbc RDX: 0000000000090800 RSI: 00007ffe92721d00 RDI: 00000000ffffff9c RBP: 00007ffe92721cec R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffe92721d00 R13: 00007f3908e3a55b R14: 00000000000271a1 R15: 00007ffe92721d40 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 00 90 90 90 90 90 add %dl,-0x6f6f6f70(%rax) 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: 90 nop 14: 90 nop 15: 55 push %rbp 16: 41 57 push %r15 18: 41 56 push %r14 1a: 53 push %rbx 1b: 65 8b 05 0b 6c d8 08 mov %gs:0x8d86c0b(%rip),%eax # 0x8d86c2d 22: 65 48 8b 0d db 6b d8 mov %gs:0x8d86bdb(%rip),%rcx # 0x8d86c05 29: 08 * 2a: 85 c9 test %ecx,%ecx <-- trapping instruction 2c: 74 0c je 0x3a 2e: 5b pop %rbx 2f: 41 5e pop %r14 31: 41 5f pop %r15 33: 5d pop %rbp 34: c3 ret 35: cc int3 36: cc int3 37: cc int3 38: cc int3 39: cc int3 3a: 9c pushf 3b: 59 pop %rcx 3c: f7 .byte 0xf7 3d: c1 00 02 roll $0x2,(%rax)