================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.6.789/6773 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff0000d9e46130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline] ffff0000d9e46130 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x114/0x2a0 net/x25/af_x25.c:1783 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 lock_sock_nested+0x70/0x130 net/core/sock.c:3504 lock_sock include/net/sock.h:1805 [inline] x25_bind+0x1b4/0x3d4 net/x25/af_x25.c:698 __sys_bind+0x1f8/0x2a4 net/socket.c:1811 __do_sys_bind net/socket.c:1822 [inline] __se_sys_bind net/socket.c:1820 [inline] __arm64_sys_bind+0x7c/0x94 net/socket.c:1820 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 49442 hardirqs last enabled at (49442): [] __local_bh_enable_ip+0x1f8/0x37c kernel/softirq.c:426 hardirqs last disabled at (49441): [] __local_bh_enable_ip+0x178/0x37c kernel/softirq.c:403 softirqs last enabled at (38088): [] softirq_handle_end kernel/softirq.c:439 [inline] softirqs last enabled at (38088): [] handle_softirqs+0xb1c/0xc90 kernel/softirq.c:624 softirqs last disabled at (49259): [] __do_softirq+0x14/0x20 kernel/softirq.c:630 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sk_lock-AF_X25); lock(sk_lock-AF_X25); *** DEADLOCK *** 2 locks held by syz.6.789/6773: #0: ffff0000d9df5598 (&u->iolock){+.+.}-{3:3}, at: __unix_dgram_recvmsg+0x188/0xb24 net/unix/af_unix.c:2460 #1: ffff8000165f7500 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x18/0x54 include/linux/rcupdate.h:349 stack backtrace: CPU: 1 PID: 6773 Comm: syz.6.789 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 dump_backtrace(regs = 0000000000000000 tsk = 0000000000000000) Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 print_usage_bug+0x4cc/0x6e8 kernel/locking/lockdep.c:4029 valid_state kernel/locking/lockdep.c:4041 [inline] mark_lock_irq+0x858/0xab8 kernel/locking/lockdep.c:-1 mark_lock+0x224/0x320 kernel/locking/lockdep.c:4706 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xc70/0x7280 kernel/locking/lockdep.c:5125 lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 lock_sock_nested+0x70/0x130 net/core/sock.c:3504 lock_sock include/net/sock.h:1805 [inline] x25_kill_by_neigh+0x114/0x2a0 net/x25/af_x25.c:1783 x25_link_terminated+0x5c/0x78 net/x25/x25_link.c:257 x25_lapb_receive_frame+0x140/0xd0c net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5619 [inline] netif_receive_skb_core+0x160/0x244 net/core/dev.c:5644 lapbeth_napi_poll+0x48/0xa0 drivers/net/wan/lapbether.c:99 __napi_poll+0xb8/0x3f4 net/core/dev.c:6628 napi_poll net/core/dev.c:6695 [inline] net_rx_action+0x52c/0xb5c net/core/dev.c:6809 handle_softirqs+0x318/0xc90 kernel/softirq.c:596 __do_softirq+0x14/0x20 kernel/softirq.c:630 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:897 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:85 invoke_softirq kernel/softirq.c:477 [inline] __irq_exit_rcu+0x23c/0x430 kernel/softirq.c:679 irq_exit_rcu+0x14/0x84 kernel/softirq.c:691 __el1_irq arch/arm64/kernel/entry-common.c:472 [inline] el1_interrupt+0x38/0x54 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] _raw_spin_unlock_irqrestore+0x58/0xac kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] __wake_up_common_lock kernel/sched/wait.c:140 [inline] __wake_up_sync_key+0x120/0x184 kernel/sched/wait.c:208 __unix_dgram_recvmsg+0x38c/0xb24 net/unix/af_unix.c:2490 unix_dgram_recvmsg+0xd0/0xe8 net/unix/af_unix.c:2560 ____sys_recvmsg+0x270/0x754 net/socket.c:-1 ___sys_recvmsg net/socket.c:2780 [inline] do_recvmmsg+0x36c/0x9d8 net/socket.c:2874 __sys_recvmmsg net/socket.c:2953 [inline] __do_sys_recvmmsg net/socket.c:2976 [inline] __se_sys_recvmmsg net/socket.c:2969 [inline] __arm64_sys_recvmmsg+0x184/0x244 net/socket.c:2969 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 BUG: sleeping function called from invalid context at net/core/sock.c:3506 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6773, name: syz.6.789 preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] __wake_up_common_lock kernel/sched/wait.c:137 [inline] [] __wake_up_sync_key+0xf0/0x184 kernel/sched/wait.c:208 CPU: 1 PID: 6773 Comm: syz.6.789 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 dump_backtrace(regs = 0000000000000000 tsk = 0000000000000000) Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 __might_resched+0x354/0x4e0 kernel/sched/core.c:9970 __might_sleep+0x94/0x110 kernel/sched/core.c:9899 lock_sock_nested+0x80/0x130 net/core/sock.c:3506 lock_sock include/net/sock.h:1805 [inline] x25_kill_by_neigh+0x114/0x2a0 net/x25/af_x25.c:1783 x25_link_terminated+0x5c/0x78 net/x25/x25_link.c:257 x25_lapb_receive_frame+0x140/0xd0c net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5619 [inline] netif_receive_skb_core+0x160/0x244 net/core/dev.c:5644 lapbeth_napi_poll+0x48/0xa0 drivers/net/wan/lapbether.c:99 __napi_poll+0xb8/0x3f4 net/core/dev.c:6628 napi_poll net/core/dev.c:6695 [inline] net_rx_action+0x52c/0xb5c net/core/dev.c:6809 handle_softirqs+0x318/0xc90 kernel/softirq.c:596 __do_softirq+0x14/0x20 kernel/softirq.c:630 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:897 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:85 invoke_softirq kernel/softirq.c:477 [inline] __irq_exit_rcu+0x23c/0x430 kernel/softirq.c:679 irq_exit_rcu+0x14/0x84 kernel/softirq.c:691 __el1_irq arch/arm64/kernel/entry-common.c:472 [inline] el1_interrupt+0x38/0x54 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] _raw_spin_unlock_irqrestore+0x58/0xac kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] __wake_up_common_lock kernel/sched/wait.c:140 [inline] __wake_up_sync_key+0x120/0x184 kernel/sched/wait.c:208 __unix_dgram_recvmsg+0x38c/0xb24 net/unix/af_unix.c:2490 unix_dgram_recvmsg+0xd0/0xe8 net/unix/af_unix.c:2560 ____sys_recvmsg+0x270/0x754 net/socket.c:-1 ___sys_recvmsg net/socket.c:2780 [inline] do_recvmmsg+0x36c/0x9d8 net/socket.c:2874 __sys_recvmmsg net/socket.c:2953 [inline] __do_sys_recvmmsg net/socket.c:2976 [inline] __se_sys_recvmmsg net/socket.c:2969 [inline] __arm64_sys_recvmmsg+0x184/0x244 net/socket.c:2969 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 tcp_conntracks: syn=0 ack=1 fin=1 rst=0 old=3 new=4 tcp_conntracks: syn=0 ack=1 fin=1 rst=0 old=4 new=6 nf_conntrack: normal packet for 00000000c2cb2868 tcp_conntracks: syn=0 ack=1 fin=0 rst=0 old=6 new=7 nf_nat: Already setup manip DST for ct 0000000065175fb3 (status bits 0x188) nf_nat: Already setup manip SRC for ct 0000000065175fb3 (status bits 0x188) sctp: sctp_addr_wq_timeout_handler: the first ent in wq:00000000ffa6f901 is addr:169.254.185.103 for cmd:2 at entry:000000002323f932 wireguard: wg2: Handshake for peer 54 ([::1]:20001/0%0) did not complete after 5 seconds, retrying (try 2) nf_conntrack: new packet for 000000007dbda122 nf_conntrack: Confirming conntrack 000000007dbda122 nf_nat: Already setup manip DST for ct 000000007dbda122 (status bits 0x188) nf_nat: Already setup manip SRC for ct 000000007dbda122 (status bits 0x188) wireguard: wg0: Sending keepalive packet to peer 33 ([::1]:20003/0%0) wireguard: wg1: Receiving keepalive packet from peer 52 ([::1]:20001/0%0) sctp: sctp_addr_wq_timeout_handler: the first ent in wq:00000000ffa6f901 is addr:169.254.25.159 for cmd:0 at entry:0000000082098e4b wireguard: wg1: Sending keepalive packet to peer 35 (127.0.0.1:20003) wireguard: wg0: Handshake for peer 33 ([::1]:20003/0%0) did not complete after 5 seconds, retrying (try 4) sctp: sctp_addr_wq_timeout_handler: the first ent in wq:00000000ffa6f901 is addr:169.254.86.89 for cmd:0 at entry:00000000e2f3174f sctp: sctp_addr_wq_timeout_handler: the first ent in wq:00000000ffa6f901 is addr:169.254.155.150 for cmd:0 at entry:00000000607532b9 sctp: sctp_addr_wq_timeout_handler: the first ent in wq:00000000ffa6f901 is addr:169.254.96.198 for cmd:0 at entry:0000000033515093 sctp: sctp_addr_wq_timeout_handler: the first ent in wq:00000000ffa6f901 is addr:169.254.229.207 for cmd:0 at entry:000000004a9de7fe wireguard: wg1: Receiving keepalive packet from peer 52 ([::1]:20001/0%0) wireguard: wg0: Sending keepalive packet to peer 33 ([::1]:20003/0%0) bridge0: port 1(bridge_slave_0) forward delay timer bridge0: port 1(bridge_slave_0) event 16 bridge0: br_fill_info event 16 port bridge_slave_0 master bridge0 wireguard: wg2: Packet has unallowed src IP (fe80::42) from peer 54 ([::1]:20001/0%0)