================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.4.3420/17975 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88804209e130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1813 [inline] ffff88804209e130 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1783 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 lock_sock_nested+0x44/0x100 net/core/sock.c:3528 lock_sock include/net/sock.h:1813 [inline] x25_bind+0x1aa/0x3e0 net/x25/af_x25.c:698 __sys_bind+0x2e9/0x3e0 net/socket.c:1811 __do_sys_bind net/socket.c:1822 [inline] __se_sys_bind net/socket.c:1820 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1820 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 1150 hardirqs last enabled at (1150): [] __local_bh_enable_ip+0x136/0x1c0 kernel/softirq.c:426 hardirqs last disabled at (1149): [] __local_bh_enable_ip+0xd7/0x1c0 kernel/softirq.c:403 softirqs last enabled at (732): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (732): [] rcu_read_lock_bh include/linux/rcupdate.h:843 [inline] softirqs last enabled at (732): [] __dev_queue_xmit+0x274/0x3a70 net/core/dev.c:4312 softirqs last disabled at (733): [] do_softirq+0x142/0x210 kernel/softirq.c:497 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.4.3420/17975: #0: ffff88804209e130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1813 [inline] #0: ffff88804209e130 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_connect+0x58/0x8a0 net/x25/af_x25.c:755 #1: ffffffff8db2daa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #1: ffffffff8db2daa0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #1: ffffffff8db2daa0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_core+0x30/0x230 net/core/dev.c:5662 stack backtrace: CPU: 0 PID: 17975 Comm: syz.4.3420 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4041 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4244 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4706 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xdf3/0x7ea0 kernel/locking/lockdep.c:5125 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 lock_sock_nested+0x44/0x100 net/core/sock.c:3528 lock_sock include/net/sock.h:1813 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1783 x25_link_control+0xa2/0xb60 net/x25/x25_link.c:85 x25_receive_data net/x25/x25_dev.c:43 [inline] x25_lapb_receive_frame+0x3cf/0xf20 net/x25/x25_dev.c:127 __netif_receive_skb_one_core net/core/dev.c:5638 [inline] netif_receive_skb_core+0x166/0x230 net/core/dev.c:5663 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6647 napi_poll net/core/dev.c:6714 [inline] net_rx_action+0x622/0xbc0 net/core/dev.c:6828 handle_softirqs+0x291/0x910 kernel/softirq.c:596 do_softirq+0x142/0x210 kernel/softirq.c:497 __local_bh_enable_ip+0x180/0x1c0 kernel/softirq.c:421 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:861 [inline] __dev_queue_xmit+0x1496/0x3a70 net/core/dev.c:4429 x25_write_internal+0x942/0xd80 net/x25/x25_subr.c:255 x25_state1_machine net/x25/x25_in.c:156 [inline] x25_process_rx_frame+0x28e/0x26a0 net/x25/x25_in.c:430 x25_backlog_rcv+0x1a/0x50 net/x25/x25_in.c:453 sk_backlog_rcv include/net/sock.h:1146 [inline] __release_sock+0x1e6/0x460 net/core/sock.c:2976 release_sock+0x5b/0x1b0 net/core/sock.c:3543 x25_wait_for_connection_establishment+0x2d4/0x5b0 net/x25/af_x25.c:735 x25_connect+0x573/0x8a0 net/x25/af_x25.c:824 __sys_connect_file net/socket.c:2011 [inline] __sys_connect+0x3cb/0x450 net/socket.c:2028 __do_sys_connect net/socket.c:2038 [inline] __se_sys_connect net/socket.c:2035 [inline] __x64_sys_connect+0x76/0x80 net/socket.c:2035 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f00bdf9fb19 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:00007f00bee8a028 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f00be225fa0 RCX: 00007f00bdf9fb19 RDX: 0000000000000012 RSI: 0000200000000880 RDI: 0000000000000005 RBP: 00007f00be037b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f00be226038 R14: 00007f00be225fa0 R15: 00007ffdddea6d28 ------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] x25_wait_for_connection_establishment+0x11d/0x5b0 net/x25/af_x25.c:-1 WARNING: CPU: 0 PID: 17975 at kernel/sched/core.c:9947 __might_sleep+0xa2/0xd0 kernel/sched/core.c:-1 Modules linked in: CPU: 0 PID: 17975 Comm: syz.4.3420 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 RIP: 0010:__might_sleep+0xa2/0xd0 kernel/sched/core.c:9943 Code: 5d e9 52 00 00 00 c6 05 ab 4e b3 0d 01 48 89 fb 48 c7 c7 c0 b0 ab 8a 41 89 f6 89 ee 48 89 ca e8 44 55 f3 ff 48 89 df 44 89 f6 <0f> 0b eb c9 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 77 ff ff ff 49 RSP: 0018:ffffc90000007b60 EFLAGS: 00010246 RAX: 8d7e27f4b18be100 RBX: ffffffff8baa07b8 RCX: ffff888042001e00 RDX: 0000000000000100 RSI: 0000000000000dca RDI: ffffffff8baa07b8 RBP: 0000000000000001 R08: ffffc900000077e7 R09: 1ffff92000000efc R10: dffffc0000000000 R11: fffff52000000efd R12: dffffc0000000000 R13: ffff88804209e538 R14: 0000000000000dca R15: dffffc0000000000 FS: 00007f00bee8a6c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faf93b4c000 CR3: 000000005f9f5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_sock_nested+0x59/0x100 net/core/sock.c:3530 lock_sock include/net/sock.h:1813 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1783 x25_link_control+0xa2/0xb60 net/x25/x25_link.c:85 x25_receive_data net/x25/x25_dev.c:43 [inline] x25_lapb_receive_frame+0x3cf/0xf20 net/x25/x25_dev.c:127 __netif_receive_skb_one_core net/core/dev.c:5638 [inline] netif_receive_skb_core+0x166/0x230 net/core/dev.c:5663 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6647 napi_poll net/core/dev.c:6714 [inline] net_rx_action+0x622/0xbc0 net/core/dev.c:6828 handle_softirqs+0x291/0x910 kernel/softirq.c:596 do_softirq+0x142/0x210 kernel/softirq.c:497 __local_bh_enable_ip+0x180/0x1c0 kernel/softirq.c:421 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:861 [inline] __dev_queue_xmit+0x1496/0x3a70 net/core/dev.c:4429 x25_write_internal+0x942/0xd80 net/x25/x25_subr.c:255 x25_state1_machine net/x25/x25_in.c:156 [inline] x25_process_rx_frame+0x28e/0x26a0 net/x25/x25_in.c:430 x25_backlog_rcv+0x1a/0x50 net/x25/x25_in.c:453 sk_backlog_rcv include/net/sock.h:1146 [inline] __release_sock+0x1e6/0x460 net/core/sock.c:2976 release_sock+0x5b/0x1b0 net/core/sock.c:3543 x25_wait_for_connection_establishment+0x2d4/0x5b0 net/x25/af_x25.c:735 x25_connect+0x573/0x8a0 net/x25/af_x25.c:824 __sys_connect_file net/socket.c:2011 [inline] __sys_connect+0x3cb/0x450 net/socket.c:2028 __do_sys_connect net/socket.c:2038 [inline] __se_sys_connect net/socket.c:2035 [inline] __x64_sys_connect+0x76/0x80 net/socket.c:2035 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f00bdf9fb19 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:00007f00bee8a028 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f00be225fa0 RCX: 00007f00bdf9fb19 RDX: 0000000000000012 RSI: 0000200000000880 RDI: 0000000000000005 RBP: 00007f00be037b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f00be226038 R14: 00007f00be225fa0 R15: 00007ffdddea6d28