================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G S -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.3.3538/19646 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888079306130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline] ffff888079306130 (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:5790 lock_sock_nested+0x48/0x100 net/core/sock.c:3543 lock_sock include/net/sock.h:1780 [inline] x25_release+0xa0/0x3a0 net/x25/af_x25.c:636 __sock_release net/socket.c:659 [inline] sock_close+0xa7/0x210 net/socket.c:1421 __fput+0x221/0x940 fs/file_table.c:418 task_work_run+0x1d4/0x260 kernel/task_work.c:245 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0x986/0x2530 kernel/exit.c:890 do_group_exit+0x22d/0x2f0 kernel/exit.c:1032 get_signal+0x12a6/0x1390 kernel/signal.c:2915 arch_do_signal_or_restart+0xc2/0x7b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 __syscall_exit_to_user_mode_work kernel/entry/common.c:294 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:305 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 1102 hardirqs last enabled at (1102): [] __local_bh_enable_ip+0x13a/0x1c0 kernel/softirq.c:411 hardirqs last disabled at (1101): [] __local_bh_enable_ip+0xdb/0x1c0 kernel/softirq.c:388 softirqs last enabled at (678): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (678): [] rcu_read_lock_bh include/linux/rcupdate.h:838 [inline] softirqs last enabled at (678): [] __dev_queue_xmit+0x272/0x37e0 net/core/dev.c:4399 softirqs last disabled at (679): [] do_softirq+0xfa/0x1a0 kernel/softirq.c:479 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.3.3538/19646: #0: ffff888079306130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline] #0: ffff888079306130 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_connect+0x5c/0x890 net/x25/af_x25.c:755 #1: ffffffff8df320e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #1: ffffffff8df320e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #1: ffffffff8df320e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_core+0x34/0x230 net/core/dev.c:5694 stack backtrace: CPU: 0 PID: 19646 Comm: syz.3.3538 Tainted: G S syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4041 mark_lock_irq+0xad/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+0xdf7/0x7eb0 kernel/locking/lockdep.c:5125 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790 lock_sock_nested+0x48/0x100 net/core/sock.c:3543 lock_sock include/net/sock.h:1780 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1782 x25_link_control+0xa6/0xb60 net/x25/x25_link.c:85 x25_receive_data net/x25/x25_dev.c:43 [inline] x25_lapb_receive_frame+0x3d3/0xef0 net/x25/x25_dev.c:127 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5695 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6674 napi_poll net/core/dev.c:6741 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6877 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 do_softirq+0xfa/0x1a0 kernel/softirq.c:479 __local_bh_enable_ip+0x184/0x1c0 kernel/softirq.c:406 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:856 [inline] __dev_queue_xmit+0x1329/0x37e0 net/core/dev.c:4514 x25_write_internal+0x9df/0xe40 net/x25/x25_subr.c:255 x25_state1_machine net/x25/x25_in.c:156 [inline] x25_process_rx_frame+0x55f/0x2780 net/x25/x25_in.c:430 x25_backlog_rcv+0x1e/0x50 net/x25/x25_in.c:453 sk_backlog_rcv include/net/sock.h:1142 [inline] __release_sock+0x1ea/0x460 net/core/sock.c:3019 release_sock+0x5f/0x1c0 net/core/sock.c:3558 x25_wait_for_connection_establishment+0x2b7/0x520 net/x25/af_x25.c:735 x25_connect+0x562/0x890 net/x25/af_x25.c:824 __sys_connect_file net/socket.c:2057 [inline] __sys_connect+0x3da/0x470 net/socket.c:2074 __do_sys_connect net/socket.c:2084 [inline] __se_sys_connect net/socket.c:2081 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2081 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:0x7f6ea3f9e1d9 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:00007f6ea4f32028 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f6ea4225fa0 RCX: 00007f6ea3f9e1d9 RDX: 0000000000000012 RSI: 0000200000000100 RDI: 0000000000000004 RBP: 00007f6ea4035888 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6ea4226038 R14: 00007f6ea4225fa0 R15: 00007ffdd1a04dd8 ------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] x25_wait_for_connection_establishment+0x115/0x520 net/x25/af_x25.c:-1 WARNING: CPU: 0 PID: 19646 at kernel/sched/core.c:10139 __might_sleep+0xa6/0xe0 kernel/sched/core.c:-1 Modules linked in: CPU: 0 PID: 19646 Comm: syz.3.3538 Tainted: G S syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:__might_sleep+0xa6/0xe0 kernel/sched/core.c:10135 Code: 5d e9 5e 00 00 00 c6 05 0f 22 f8 0d 01 48 89 fb 48 c7 c7 20 61 ca 8a 41 89 f6 89 ee 48 89 ca e8 90 96 f2 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:ffffc90000007b48 EFLAGS: 00010246 RAX: 68f32e8936267000 RBX: ffffffff8bc40340 RCX: ffff888066b61e00 RDX: 0000000000000100 RSI: 0000000000000dd9 RDI: ffffffff8bc40340 RBP: 0000000000000001 R08: ffffc90000007747 R09: 1ffff92000000ee8 R10: dffffc0000000000 R11: fffff52000000ee9 R12: dffffc0000000000 R13: ffff888079306538 R14: 0000000000000dd9 R15: dffffc0000000000 FS: 00007f6ea4f326c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31321ff8 CR3: 000000004add3000 CR4: 00000000003506f0 Call Trace: lock_sock_nested+0x5d/0x100 net/core/sock.c:3545 lock_sock include/net/sock.h:1780 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1782 x25_link_control+0xa6/0xb60 net/x25/x25_link.c:85 x25_receive_data net/x25/x25_dev.c:43 [inline] x25_lapb_receive_frame+0x3d3/0xef0 net/x25/x25_dev.c:127 __netif_receive_skb_one_core net/core/dev.c:5670 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5695 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6674 napi_poll net/core/dev.c:6741 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6877 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 do_softirq+0xfa/0x1a0 kernel/softirq.c:479 __local_bh_enable_ip+0x184/0x1c0 kernel/softirq.c:406 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:856 [inline] __dev_queue_xmit+0x1329/0x37e0 net/core/dev.c:4514 x25_write_internal+0x9df/0xe40 net/x25/x25_subr.c:255 x25_state1_machine net/x25/x25_in.c:156 [inline] x25_process_rx_frame+0x55f/0x2780 net/x25/x25_in.c:430 x25_backlog_rcv+0x1e/0x50 net/x25/x25_in.c:453 sk_backlog_rcv include/net/sock.h:1142 [inline] __release_sock+0x1ea/0x460 net/core/sock.c:3019 release_sock+0x5f/0x1c0 net/core/sock.c:3558 x25_wait_for_connection_establishment+0x2b7/0x520 net/x25/af_x25.c:735 x25_connect+0x562/0x890 net/x25/af_x25.c:824 __sys_connect_file net/socket.c:2057 [inline] __sys_connect+0x3da/0x470 net/socket.c:2074 __do_sys_connect net/socket.c:2084 [inline] __se_sys_connect net/socket.c:2081 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2081 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:0x7f6ea3f9e1d9 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:00007f6ea4f32028 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f6ea4225fa0 RCX: 00007f6ea3f9e1d9 RDX: 0000000000000012 RSI: 0000200000000100 RDI: 0000000000000004 RBP: 00007f6ea4035888 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6ea4226038 R14: 00007f6ea4225fa0 R15: 00007ffdd1a04dd8