================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.3.364/5859 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88805ff18120 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1744 [inline] ffff88805ff18120 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 lock_sock_nested+0x44/0x100 net/core/sock.c:3258 lock_sock include/net/sock.h:1744 [inline] x25_bind+0x18a/0x3b0 net/x25/af_x25.c:698 __sys_bind+0x2e9/0x3e0 net/socket.c:1730 __do_sys_bind net/socket.c:1741 [inline] __se_sys_bind net/socket.c:1739 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1739 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 irq event stamp: 88558 hardirqs last enabled at (88558): [] __local_bh_enable_ip+0x136/0x1c0 kernel/softirq.c:406 hardirqs last disabled at (88557): [] __local_bh_enable_ip+0xd7/0x1c0 kernel/softirq.c:383 softirqs last enabled at (87378): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last enabled at (87378): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last enabled at (87378): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 softirqs last disabled at (88481): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (88481): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last disabled at (88481): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 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.3.364/5859: #0: ffffffff8d11efa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30 include/linux/rcupdate.h:313 stack backtrace: CPU: 0 PID: 5859 Comm: syz.3.364 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:3999 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4202 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4664 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xd77/0x7d40 kernel/locking/lockdep.c:5074 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 lock_sock_nested+0x44/0x100 net/core/sock.c:3258 lock_sock include/net/sock.h:1744 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 x25_lapb_receive_frame+0x19d/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5552 [inline] netif_receive_skb_core+0x149/0x210 net/core/dev.c:5577 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x430 net/core/dev.c:7102 napi_poll net/core/dev.c:7169 [inline] net_rx_action+0x522/0xa80 net/core/dev.c:7259 handle_softirqs+0x336/0x830 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:apparmor_socket_sock_rcv_skb+0x47/0x100 security/apparmor/lsm.c:1056 Code: 49 81 c6 a0 00 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 9c 00 00 00 41 8b 2e 45 31 f6 31 ff 89 ee e8 69 8d c9 fd <85> ed 74 6b 4c 8d b3 a0 04 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 RSP: 0018:ffffc9000350f670 EFLAGS: 00000297 RAX: ffffffff83afa387 RBX: ffff88802bdf4800 RCX: ffff88802713bb80 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffff88802713bb87 R09: 1ffff11004e27770 R10: dffffc0000000000 R11: ffffed1004e27771 R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff8be66b28 security_sock_rcv_skb+0x67/0x90 security/security.c:2350 sk_filter_trim_cap+0x122/0x7d0 net/core/filter.c:142 sk_filter include/linux/filter.h:935 [inline] unix_dgram_sendmsg+0xbcd/0x19c0 net/unix/af_unix.c:1840 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2446 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2500 __sys_sendmmsg+0x2ba/0x500 net/socket.c:2586 __do_sys_sendmmsg net/socket.c:2615 [inline] __se_sys_sendmmsg net/socket.c:2612 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2612 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb5eea39559 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:00007fb5ecc86028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fb5eecb5fa0 RCX: 00007fb5eea39559 RDX: 0000000000000651 RSI: 0000200000000000 RDI: 0000000000000004 RBP: 00007fb5eeac8136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb5eecb6038 R14: 00007fb5eecb5fa0 R15: 00007ffdff744c18 BUG: sleeping function called from invalid context at net/core/sock.c:3260 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5859, name: syz.3.364 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:414 [inline] [] handle_softirqs+0xfd/0x830 kernel/softirq.c:552 CPU: 0 PID: 5859 Comm: syz.3.364 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 ___might_sleep+0x493/0x610 kernel/sched/core.c:9658 lock_sock_nested+0x5b/0x100 net/core/sock.c:3260 lock_sock include/net/sock.h:1744 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 x25_lapb_receive_frame+0x19d/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5552 [inline] netif_receive_skb_core+0x149/0x210 net/core/dev.c:5577 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x430 net/core/dev.c:7102 napi_poll net/core/dev.c:7169 [inline] net_rx_action+0x522/0xa80 net/core/dev.c:7259 handle_softirqs+0x336/0x830 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:apparmor_socket_sock_rcv_skb+0x47/0x100 security/apparmor/lsm.c:1056 Code: 49 81 c6 a0 00 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 9c 00 00 00 41 8b 2e 45 31 f6 31 ff 89 ee e8 69 8d c9 fd <85> ed 74 6b 4c 8d b3 a0 04 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 20 RSP: 0018:ffffc9000350f670 EFLAGS: 00000297 RAX: ffffffff83afa387 RBX: ffff88802bdf4800 RCX: ffff88802713bb80 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffff88802713bb87 R09: 1ffff11004e27770 R10: dffffc0000000000 R11: ffffed1004e27771 R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff8be66b28 security_sock_rcv_skb+0x67/0x90 security/security.c:2350 sk_filter_trim_cap+0x122/0x7d0 net/core/filter.c:142 sk_filter include/linux/filter.h:935 [inline] unix_dgram_sendmsg+0xbcd/0x19c0 net/unix/af_unix.c:1840 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2446 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2500 __sys_sendmmsg+0x2ba/0x500 net/socket.c:2586 __do_sys_sendmmsg net/socket.c:2615 [inline] __se_sys_sendmmsg net/socket.c:2612 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2612 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb5eea39559 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:00007fb5ecc86028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fb5eecb5fa0 RCX: 00007fb5eea39559 RDX: 0000000000000651 RSI: 0000200000000000 RDI: 0000000000000004 RBP: 00007fb5eeac8136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb5eecb6038 R14: 00007fb5eecb5fa0 R15: 00007ffdff744c18 ---------------- Code disassembly (best guess): 0: 49 81 c6 a0 00 00 00 add $0xa0,%r14 7: 4c 89 f0 mov %r14,%rax a: 48 c1 e8 03 shr $0x3,%rax e: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax 13: 84 c0 test %al,%al 15: 0f 85 9c 00 00 00 jne 0xb7 1b: 41 8b 2e mov (%r14),%ebp 1e: 45 31 f6 xor %r14d,%r14d 21: 31 ff xor %edi,%edi 23: 89 ee mov %ebp,%esi 25: e8 69 8d c9 fd call 0xfdc98d93 * 2a: 85 ed test %ebp,%ebp <-- trapping instruction 2c: 74 6b je 0x99 2e: 4c 8d b3 a0 04 00 00 lea 0x4a0(%rbx),%r14 35: 4c 89 f0 mov %r14,%rax 38: 48 c1 e8 03 shr $0x3,%rax 3c: 42 rex.X 3d: 80 .byte 0x80 3e: 3c 20 cmp $0x20,%al