================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.5.4445/20918 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807ed08260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1721 [inline] ffff88807ed08260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 lock_sock_nested+0x41/0x100 net/core/sock.c:3920 lock_sock include/net/sock.h:1721 [inline] x25_listen+0x47/0x180 net/x25/af_x25.c:477 __sys_listen_socket net/socket.c:2001 [inline] __sys_listen net/socket.c:2016 [inline] __do_sys_listen net/socket.c:2021 [inline] __se_sys_listen net/socket.c:2019 [inline] __x64_sys_listen+0x1c7/0x240 net/socket.c:2019 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 948 hardirqs last enabled at (948): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (947): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (566): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (566): [] rcu_read_lock_bh include/linux/rcupdate.h:902 [inline] softirqs last enabled at (566): [] __dev_queue_xmit+0x29b/0x3920 net/core/dev.c:5024 softirqs last disabled at (567): [] do_softirq+0x77/0xd0 kernel/softirq.c:569 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sk_lock-AF_X25); lock(sk_lock-AF_X25); *** DEADLOCK *** locks held by syz.5.4445/20918: 2, last CPU#0: #0: ffff88807ed08260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1721 [inline] #0: ffff88807ed08260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_connect+0x5c/0x8f0 net/x25/af_x25.c:748 #1: ffffffff9015ae60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffffff9015ae60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff9015ae60 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6503 stack backtrace: CPU: 0 UID: 0 PID: 20918 Comm: syz.5.4445 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28c/0x2e0 kernel/locking/lockdep.c:4086 valid_state+0xbe/0xf0 kernel/locking/lockdep.c:4100 mark_lock_irq+0x36/0x380 kernel/locking/lockdep.c:4311 mark_lock+0x117/0x190 kernel/locking/lockdep.c:4797 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x71e/0x2de0 kernel/locking/lockdep.c:5242 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 lock_sock_nested+0x41/0x100 net/core/sock.c:3920 lock_sock include/net/sock.h:1721 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 x25_link_control+0xa6/0xb70 net/x25/x25_link.c:85 x25_receive_data net/x25/x25_dev.c:43 [inline] x25_lapb_receive_frame+0x3fa/0xfb0 net/x25/x25_dev.c:127 __netif_receive_skb_one_core net/core/dev.c:6479 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6504 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:8029 napi_poll net/core/dev.c:8092 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8249 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 do_softirq+0x77/0xd0 kernel/softirq.c:569 __local_bh_enable_ip+0x100/0x140 kernel/softirq.c:473 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:923 [inline] __dev_queue_xmit+0x1efb/0x3920 net/core/dev.c:5145 x25_write_internal+0x9e7/0xe60 net/x25/x25_subr.c:255 x25_state1_machine net/x25/x25_in.c:156 [inline] x25_process_rx_frame+0x55e/0x27d0 net/x25/x25_in.c:430 x25_backlog_rcv+0x1e/0x60 net/x25/x25_in.c:453 sk_backlog_rcv include/net/sock.h:1198 [inline] __release_sock+0x289/0x390 net/core/sock.c:3355 release_sock+0x190/0x260 net/core/sock.c:3952 x25_wait_for_connection_establishment+0x2dc/0x5e0 net/x25/af_x25.c:728 x25_connect+0x587/0x8f0 net/x25/af_x25.c:817 connect_socket net/socket.c:2143 [inline] __sys_connect_file net/socket.c:2168 [inline] __sys_connect+0x316/0x450 net/socket.c:2185 __do_sys_connect net/socket.c:2191 [inline] __se_sys_connect net/socket.c:2188 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2188 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00007f838e9a94d9 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:00007f838f847028 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f838ec25fa0 RCX: 00007f838e9a94d9 RDX: 0000000000000012 RSI: 00002000000000c0 RDI: 0000000000000004 RBP: 00007f838ea38136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f838ec26038 R14: 00007f838ec25fa0 R15: 00007ffe914d8278 ------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] x25_wait_for_connection_establishment+0x120/0x5e0 net/x25/af_x25.c:-1 WARNING: kernel/sched/core.c:9148 at __might_sleep+0x92/0xf0 kernel/sched/core.c:9144, CPU#0: syz.5.4445/20918 Modules linked in: CPU: 0 UID: 0 PID: 20918 Comm: syz.5.4445 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:__might_sleep+0xac/0xf0 kernel/sched/core.c:9144 Code: 00 00 48 89 3c 24 41 89 f5 4c 8d 35 3e 32 2a 10 43 80 3c 3c 00 74 08 48 89 df e8 1f 6d b1 00 48 8b 0b 4c 89 f7 89 ee 48 89 ca <67> 48 0f b9 3a 44 89 ee 48 8b 3c 24 eb b5 44 89 f1 80 e1 07 80 c1 RSP: 0018:ffffc90000007b58 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88807bf57670 RCX: ffffffff8af88eb0 RDX: ffffffff8af88eb0 RSI: 0000000000000001 RDI: ffffffff91c1d010 RBP: 0000000000000001 R08: 0000000000000100 R09: 1ffff92000000ee8 R10: dffffc0000000000 R11: fffff52000000ee9 R12: 1ffff1100f7eaece R13: 0000000000000f52 R14: ffffffff91c1d010 R15: dffffc0000000000 FS: 00007f838f8476c0(0000) GS:ffff8881233cb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5b07bf2a90 CR3: 0000000034844000 CR4: 00000000003526f0 Call Trace: lock_sock_nested+0x56/0x100 net/core/sock.c:3922 lock_sock include/net/sock.h:1721 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 x25_link_control+0xa6/0xb70 net/x25/x25_link.c:85 x25_receive_data net/x25/x25_dev.c:43 [inline] x25_lapb_receive_frame+0x3fa/0xfb0 net/x25/x25_dev.c:127 __netif_receive_skb_one_core net/core/dev.c:6479 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6504 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:8029 napi_poll net/core/dev.c:8092 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8249 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 do_softirq+0x77/0xd0 kernel/softirq.c:569 __local_bh_enable_ip+0x100/0x140 kernel/softirq.c:473 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:923 [inline] __dev_queue_xmit+0x1efb/0x3920 net/core/dev.c:5145 x25_write_internal+0x9e7/0xe60 net/x25/x25_subr.c:255 x25_state1_machine net/x25/x25_in.c:156 [inline] x25_process_rx_frame+0x55e/0x27d0 net/x25/x25_in.c:430 x25_backlog_rcv+0x1e/0x60 net/x25/x25_in.c:453 sk_backlog_rcv include/net/sock.h:1198 [inline] __release_sock+0x289/0x390 net/core/sock.c:3355 release_sock+0x190/0x260 net/core/sock.c:3952 x25_wait_for_connection_establishment+0x2dc/0x5e0 net/x25/af_x25.c:728 x25_connect+0x587/0x8f0 net/x25/af_x25.c:817 connect_socket net/socket.c:2143 [inline] __sys_connect_file net/socket.c:2168 [inline] __sys_connect+0x316/0x450 net/socket.c:2185 __do_sys_connect net/socket.c:2191 [inline] __se_sys_connect net/socket.c:2188 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2188 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00007f838e9a94d9 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:00007f838f847028 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f838ec25fa0 RCX: 00007f838e9a94d9 RDX: 0000000000000012 RSI: 00002000000000c0 RDI: 0000000000000004 RBP: 00007f838ea38136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f838ec26038 R14: 00007f838ec25fa0 R15: 00007ffe914d8278 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 89 3c 24 mov %rdi,(%rsp) 6: 41 89 f5 mov %esi,%r13d 9: 4c 8d 35 3e 32 2a 10 lea 0x102a323e(%rip),%r14 # 0x102a324e 10: 43 80 3c 3c 00 cmpb $0x0,(%r12,%r15,1) 15: 74 08 je 0x1f 17: 48 89 df mov %rbx,%rdi 1a: e8 1f 6d b1 00 call 0xb16d3e 1f: 48 8b 0b mov (%rbx),%rcx 22: 4c 89 f7 mov %r14,%rdi 25: 89 ee mov %ebp,%esi 27: 48 89 ca mov %rcx,%rdx * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 44 89 ee mov %r13d,%esi 32: 48 8b 3c 24 mov (%rsp),%rdi 36: eb b5 jmp 0xffffffed 38: 44 89 f1 mov %r14d,%ecx 3b: 80 e1 07 and $0x7,%cl 3e: 80 .byte 0x80 3f: c1 .byte 0xc1