================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G S -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.6.2022/14311 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888050444130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline] ffff888050444130 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1782 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754 lock_sock_nested+0x48/0x100 net/core/sock.c:3544 lock_sock include/net/sock.h:1780 [inline] x25_bind+0x20a/0x460 net/x25/af_x25.c:698 __sys_bind+0x2f0/0x3f0 net/socket.c:1856 __do_sys_bind net/socket.c:1867 [inline] __se_sys_bind net/socket.c:1865 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1865 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 88398 hardirqs last enabled at (88398): [] __local_bh_enable_ip+0x13a/0x1c0 kernel/softirq.c:411 hardirqs last disabled at (88397): [] __local_bh_enable_ip+0xdb/0x1c0 kernel/softirq.c:388 softirqs last enabled at (75108): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last enabled at (75108): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last enabled at (75108): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 softirqs last disabled at (88275): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last disabled at (88275): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last disabled at (88275): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sk_lock-AF_X25); lock(sk_lock-AF_X25); *** DEADLOCK *** 1 lock held by syz.6.2022/14311: #0: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #0: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #0: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_core+0x34/0x230 net/core/dev.c:5670 stack backtrace: CPU: 0 PID: 14311 Comm: syz.6.2022 Tainted: G S syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4013 mark_lock_irq+0xad/0x900 kernel/locking/lockdep.c:4216 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4678 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xcfc/0x7d80 kernel/locking/lockdep.c:5091 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754 lock_sock_nested+0x48/0x100 net/core/sock.c:3544 lock_sock include/net/sock.h:1780 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1782 x25_lapb_receive_frame+0x1a7/0xef0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5646 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5671 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6650 napi_poll net/core/dev.c:6717 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6853 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x10/0x60 kernel/kcov.c:216 Code: 89 fb e8 13 00 00 00 48 8b 3d ac 0b 05 0d 48 89 de 5b e9 b3 b1 57 00 cc cc cc f3 0f 1e fa 48 8b 04 24 65 48 8b 0d b0 46 7c 7e <65> 8b 15 b1 46 7c 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 RSP: 0018:ffffc90004dffc40 EFLAGS: 00000282 RAX: ffffffff81cbb86c RBX: ffff88802b7e2340 RCX: ffff88802b7e1e00 RDX: ffff88802b7e223c RSI: ffffffff8acadd60 RDI: ffffffff8b1d0ca0 RBP: 0000000000000b8c R08: ffffc90004dff6a7 R09: 1ffff920009bfed4 R10: dffffc0000000000 R11: fffff520009bfed5 R12: dffffc0000000000 R13: 1ffff110056fc468 R14: ffffffff8bc35c40 R15: ffff88807af42f80 __might_fault+0x9c/0x120 mm/memory.c:5968 do_recvmmsg+0x3a0/0x810 net/socket.c:2956 __sys_recvmmsg net/socket.c:3029 [inline] __do_sys_recvmmsg net/socket.c:3052 [inline] __se_sys_recvmmsg net/socket.c:3045 [inline] __x64_sys_recvmmsg+0x199/0x250 net/socket.c:3045 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f88a239e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f88a3227028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f88a2626090 RCX: 00007f88a239e0d9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000006 RBP: 00007f88a2435024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f88a2626128 R14: 00007f88a2626090 R15: 00007ffc0b5e95a8 BUG: sleeping function called from invalid context at net/core/sock.c:3546 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14311, name: syz.6.2022 preempt_count: 100, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:419 [inline] [] handle_softirqs+0x101/0x820 kernel/softirq.c:554 CPU: 0 PID: 14311 Comm: syz.6.2022 Tainted: G S syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 __might_resched+0x48d/0x5f0 kernel/sched/core.c:10212 lock_sock_nested+0x5d/0x100 net/core/sock.c:3546 lock_sock include/net/sock.h:1780 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1782 x25_lapb_receive_frame+0x1a7/0xef0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5646 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5671 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6650 napi_poll net/core/dev.c:6717 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6853 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x10/0x60 kernel/kcov.c:216 Code: 89 fb e8 13 00 00 00 48 8b 3d ac 0b 05 0d 48 89 de 5b e9 b3 b1 57 00 cc cc cc f3 0f 1e fa 48 8b 04 24 65 48 8b 0d b0 46 7c 7e <65> 8b 15 b1 46 7c 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 RSP: 0018:ffffc90004dffc40 EFLAGS: 00000282 RAX: ffffffff81cbb86c RBX: ffff88802b7e2340 RCX: ffff88802b7e1e00 RDX: ffff88802b7e223c RSI: ffffffff8acadd60 RDI: ffffffff8b1d0ca0 RBP: 0000000000000b8c R08: ffffc90004dff6a7 R09: 1ffff920009bfed4 R10: dffffc0000000000 R11: fffff520009bfed5 R12: dffffc0000000000 R13: 1ffff110056fc468 R14: ffffffff8bc35c40 R15: ffff88807af42f80 __might_fault+0x9c/0x120 mm/memory.c:5968 do_recvmmsg+0x3a0/0x810 net/socket.c:2956 __sys_recvmmsg net/socket.c:3029 [inline] __do_sys_recvmmsg net/socket.c:3052 [inline] __se_sys_recvmmsg net/socket.c:3045 [inline] __x64_sys_recvmmsg+0x199/0x250 net/socket.c:3045 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f88a239e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f88a3227028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f88a2626090 RCX: 00007f88a239e0d9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000006 RBP: 00007f88a2435024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f88a2626128 R14: 00007f88a2626090 R15: 00007ffc0b5e95a8 ---------------- Code disassembly (best guess): 0: 89 fb mov %edi,%ebx 2: e8 13 00 00 00 call 0x1a 7: 48 8b 3d ac 0b 05 0d mov 0xd050bac(%rip),%rdi # 0xd050bba e: 48 89 de mov %rbx,%rsi 11: 5b pop %rbx 12: e9 b3 b1 57 00 jmp 0x57b1ca 17: cc int3 18: cc int3 19: cc int3 1a: f3 0f 1e fa endbr64 1e: 48 8b 04 24 mov (%rsp),%rax 22: 65 48 8b 0d b0 46 7c mov %gs:0x7e7c46b0(%rip),%rcx # 0x7e7c46da 29: 7e * 2a: 65 8b 15 b1 46 7c 7e mov %gs:0x7e7c46b1(%rip),%edx # 0x7e7c46e2 <-- trapping instruction 31: 81 e2 00 01 ff 00 and $0xff0100,%edx 37: 74 11 je 0x4a 39: 81 fa 00 01 00 00 cmp $0x100,%edx 3f: 75 .byte 0x75