================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syslogd/4987 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888057fbf720 (&r->consumer_lock#4){+.?.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] ffff888057fbf720 (&r->consumer_lock#4){+.?.}-{3:3}, at: ptr_ring_consume include/linux/ptr_ring.h:363 [inline] ffff888057fbf720 (&r->consumer_lock#4){+.?.}-{3:3}, at: ptr_ring_cleanup include/linux/ptr_ring.h:700 [inline] ffff888057fbf720 (&r->consumer_lock#4){+.?.}-{3:3}, at: tap_sock_destruct+0x35/0x4b0 drivers/net/tap.c:444 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ptr_ring_consume include/linux/ptr_ring.h:363 [inline] ptr_ring_cleanup include/linux/ptr_ring.h:700 [inline] tap_sock_destruct+0x35/0x4b0 drivers/net/tap.c:444 __sk_destruct+0x89/0xa30 net/core/sock.c:2373 sock_put include/net/sock.h:2050 [inline] tap_put_queue drivers/net/tap.c:179 [inline] tap_release+0x309/0x3a0 drivers/net/tap.c:517 __fput+0x408/0xa40 fs/file_table.c:513 fput_close_sync+0x11f/0x240 fs/file_table.c:619 filp_close_sync+0x6e/0xa0 fs/open.c:1951 __range_close fs/file.c:919 [inline] __do_sys_close_range fs/file.c:1003 [inline] __se_sys_close_range+0xa77/0xef0 fs/file.c:954 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 irq event stamp: 3505818 hardirqs last enabled at (3505818): [] rcu_do_enqueue+0x60d/0x870 kernel/rcu/tree.c:3208 hardirqs last disabled at (3505817): [] rcu_do_enqueue+0xd3/0x870 kernel/rcu/tree.c:3185 softirqs last enabled at (3498376): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (3498376): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (3498376): [] __irq_exit_rcu+0xce/0x250 kernel/softirq.c:794 softirqs last disabled at (3505761): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (3505761): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (3505761): [] __irq_exit_rcu+0xce/0x250 kernel/softirq.c:794 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&r->consumer_lock#4); lock(&r->consumer_lock#4); *** DEADLOCK *** locks held by syslogd/4987: 2, on CPU#0: #0: ffffc90000007ce0 ((&n->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x5f0 kernel/time/timer.c:1746 #1: ffff888056d97058 (&n->lock){++-.}-{3:3}, at: neigh_invalidate+0x24b/0x470 net/core/neighbour.c:1084 stack backtrace: CPU: 0 UID: 0 PID: 4987 Comm: syslogd 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_usage_bug+0x28c/0x2e0 kernel/locking/lockdep.c:4086 valid_state+0xbe/0xf0 kernel/locking/lockdep.c:4100 mark_lock_irq+0x36/0x380 kernel/locking/lockdep.c:4311 mark_lock+0x117/0x190 kernel/locking/lockdep.c:4797 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x71e/0x2de0 kernel/locking/lockdep.c:5242 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ptr_ring_consume include/linux/ptr_ring.h:363 [inline] ptr_ring_cleanup include/linux/ptr_ring.h:700 [inline] tap_sock_destruct+0x35/0x4b0 drivers/net/tap.c:444 __sk_destruct+0x89/0xa30 net/core/sock.c:2373 skb_release_head_state+0x310/0x370 net/core/skbuff.c:1170 skb_release_all net/core/skbuff.c:1189 [inline] __kfree_skb+0x24/0x210 net/core/skbuff.c:1205 kfree_skb_reason include/linux/skbuff.h:1335 [inline] __skb_queue_purge_reason include/linux/skbuff.h:3470 [inline] __skb_queue_purge include/linux/skbuff.h:3475 [inline] neigh_invalidate+0x3a7/0x470 net/core/neighbour.c:1086 neigh_timer_handler+0xc01/0x12b0 net/core/neighbour.c:1175 call_timer_fn+0x18d/0x5f0 kernel/time/timer.c:1749 expire_timers kernel/time/timer.c:1800 [inline] __run_timers kernel/time/timer.c:2375 [inline] __run_timer_base+0x652/0x8b0 kernel/time/timer.c:2387 run_timer_base kernel/time/timer.c:2396 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2406 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xce/0x250 kernel/softirq.c:794 irq_exit_rcu+0x9/0x30 kernel/softirq.c:817 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1073 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1073 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:get_current arch/x86/include/asm/current.h:25 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x80 kernel/kcov.c:222 Code: 8b 3d 2c 1a 07 0d 48 89 de 5b e9 43 40 74 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0d 98 79 48 13 65 48 8b 15 98 79 48 13 f7 c2 00 01 00 ff RSP: 0018:ffffc90003a17c28 EFLAGS: 00000293 RAX: ffffffff84abf22b RBX: 0000000000000004 RCX: ffff88807fa03e80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff84b7863b R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed100719acb1 R12: 1ffff92000742fa0 R13: ffff888038ee56c0 R14: ffff888038ee56c0 R15: 0000000000000000 arch_static_branch arch/x86/include/asm/jump_label.h:37 [inline] security_file_permission+0x6b/0x260 security/security.c:2415 rw_verify_area+0x1c2/0x600 fs/read_write.c:460 vfs_read+0x165/0xa80 fs/read_write.c:550 ksys_read+0x150/0x270 fs/read_write.c:701 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:0x00007f2eb15c6407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffd4a3827f0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f2eb1476c80 RCX: 00007f2eb15c6407 RDX: 00000000000000ff RSI: 0000555783cc4950 RDI: 0000000000000000 RBP: 0000555783cc4910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000555783cc49a4 R13: 0000000000000000 R14: 0000555783cc4950 R15: 000055576895ad98 virtqueue callback for ffff888027ebee00 (ffffffff86ed97e0) virtqueue callback for ffff888021fcc000 (ffffffff858b9e10) virtqueue interrupt with no work for ffff888021fcc200 virtqueue interrupt with no work for ffff888021fcc400 wireguard: wg0: Sending keepalive packet to peer 32 ([::1]:20003/0%0) wireguard: wg0: Sending keepalive packet to peer 26 ([::1]:20003/0%0) wireguard: wg2: Retrying handshake with peer 30 (127.0.0.1:20002) because we stopped hearing back after 15 seconds wireguard: wg1: Sending keepalive packet to peer 16 (127.0.0.1:20003) wireguard: wg0: Sending keepalive packet to peer 14 ([::1]:20003/0%0) wireguard: wg0: Sending keepalive packet to peer 20 ([::1]:20003/0%0) wireguard: wg0: Handshake for peer 26 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 6) wireguard: wg1: Handshake for peer 27 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 8) No more buffers in queue Receiving skb proto 0x0800 len 52 type 0 Receiving skb proto 0x0800 len 52 type 0 Receiving skb proto 0x0800 len 1676 type 0 Receiving skb proto 0x0800 len 268 type 0 Receiving skb proto 0x0800 len 1460 type 0 Receiving skb proto 0x0800 len 64 type 0 Receiving skb proto 0x0800 len 1460 type 0 Receiving skb proto 0x0800 len 64 type 0 eth0: xmit ffff88802ae76780 42:01:0a:80:00:01 Added buffer head 23 to ffff888027ebec00 virtqueue callback for ffff888027ebec00 (ffffffff86ed9920) kcov: kcov_move_area: ffffc90015132000 1048576 <= ffffc90002131000 17 ---------------- Code disassembly (best guess): 0: 8b 3d 2c 1a 07 0d mov 0xd071a2c(%rip),%edi # 0xd071a32 6: 48 89 de mov %rbx,%rsi 9: 5b pop %rbx a: e9 43 40 74 00 jmp 0x744052 f: cc int3 10: cc int3 11: cc int3 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: f3 0f 1e fa endbr64 26: 48 8b 04 24 mov (%rsp),%rax * 2a: 65 48 8b 0d 98 79 48 mov %gs:0x13487998(%rip),%rcx # 0x134879ca <-- trapping instruction 31: 13 32: 65 48 8b 15 98 79 48 mov %gs:0x13487998(%rip),%rdx # 0x134879d2 39: 13 3a: f7 c2 00 01 00 ff test $0xff000100,%edx