================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.0.3840/23549 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88804360a260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1743 [inline] ffff88804360a260 (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:3911 lock_sock include/net/sock.h:1743 [inline] x25_release+0xa0/0x3d0 net/x25/af_x25.c:629 __sock_release+0xa0/0x1f0 net/socket.c:735 sock_close+0x1c/0x30 net/socket.c:1529 __fput+0x408/0xa40 fs/file_table.c:512 fput_close_sync+0x11f/0x240 fs/file_table.c:618 filp_close_sync+0x6e/0xa0 fs/open.c:1574 __range_close fs/file.c:919 [inline] __do_sys_close_range fs/file.c:1003 [inline] __se_sys_close_range+0xa77/0xef0 fs/file.c:954 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: 284 hardirqs last enabled at (284): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (283): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (128): [] spin_unlock_bh include/linux/spinlock.h:407 [inline] softirqs last enabled at (128): [] lapb_device_event+0x4f3/0x680 net/lapb/lapb_iface.c:527 softirqs last disabled at (129): [] 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.0.3840/23549: 2, on CPU#1: #0: ffffffff91694de0 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:134 [inline] #0: ffffffff91694de0 (rtnl_mutex){+.+.}-{4:4}, at: dev_ioctl+0x7a4/0x1150 net/core/dev_ioctl.c:809 #1: ffffffff9015a2e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffffff9015a2e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff9015a2e0 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6519 stack backtrace: CPU: 1 UID: 0 PID: 23549 Comm: syz.0.3840 Not tainted syzkaller #0 PREEMPT(full) 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:3911 lock_sock include/net/sock.h:1743 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6495 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6520 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:8045 napi_poll net/core/dev.c:8108 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8265 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 spin_unlock_bh include/linux/spinlock.h:407 [inline] lapb_device_event+0x4f3/0x680 net/lapb/lapb_iface.c:527 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2352 [inline] call_netdevice_notifiers net/core/dev.c:2366 [inline] __dev_close_many+0x114/0x6e0 net/core/dev.c:1808 netif_close_many+0x249/0x660 net/core/dev.c:1863 netif_close+0x160/0x220 net/core/dev.c:1881 dev_close+0xf7/0x210 net/core/dev_api.c:221 lapbeth_device_event+0x301/0x460 drivers/net/wan/lapbether.c:468 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2352 [inline] call_netdevice_notifiers net/core/dev.c:2366 [inline] __dev_close_many+0x114/0x6e0 net/core/dev.c:1808 __dev_close net/core/dev.c:1850 [inline] __dev_change_flags+0x3f5/0x820 net/core/dev.c:10071 netif_change_flags+0x7c/0x1b0 net/core/dev.c:10138 dev_change_flags+0x128/0x260 net/core/dev_api.c:68 dev_ioctl+0x7b4/0x1150 net/core/dev_ioctl.c:810 sock_do_ioctl+0x23e/0x320 net/socket.c:1342 sock_ioctl+0x57a/0x7e0 net/socket.c:1449 vfs_ioctl fs/ioctl.c:52 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584 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:0x7f4b19da9519 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:00007f4b17f93028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4b1a036360 RCX: 00007f4b19da9519 RDX: 00002000000007c0 RSI: 0000000000008914 RDI: 000000000000004c RBP: 00007f4b19e39136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4b1a0363f8 R14: 00007f4b1a036360 R15: 00007ffd3e5d8458 BUG: sleeping function called from invalid context at net/core/sock.c:3913 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 23549, name: syz.0.3840 preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 UID: 0 PID: 23549 Comm: syz.0.3840 Not tainted syzkaller #0 PREEMPT(full) 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 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9199 lock_sock_nested+0x56/0x100 net/core/sock.c:3913 lock_sock include/net/sock.h:1743 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6495 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6520 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:8045 napi_poll net/core/dev.c:8108 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8265 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 spin_unlock_bh include/linux/spinlock.h:407 [inline] lapb_device_event+0x4f3/0x680 net/lapb/lapb_iface.c:527 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2352 [inline] call_netdevice_notifiers net/core/dev.c:2366 [inline] __dev_close_many+0x114/0x6e0 net/core/dev.c:1808 netif_close_many+0x249/0x660 net/core/dev.c:1863 netif_close+0x160/0x220 net/core/dev.c:1881 dev_close+0xf7/0x210 net/core/dev_api.c:221 lapbeth_device_event+0x301/0x460 drivers/net/wan/lapbether.c:468 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2352 [inline] call_netdevice_notifiers net/core/dev.c:2366 [inline] __dev_close_many+0x114/0x6e0 net/core/dev.c:1808 __dev_close net/core/dev.c:1850 [inline] __dev_change_flags+0x3f5/0x820 net/core/dev.c:10071 netif_change_flags+0x7c/0x1b0 net/core/dev.c:10138 dev_change_flags+0x128/0x260 net/core/dev_api.c:68 dev_ioctl+0x7b4/0x1150 net/core/dev_ioctl.c:810 sock_do_ioctl+0x23e/0x320 net/socket.c:1342 sock_ioctl+0x57a/0x7e0 net/socket.c:1449 vfs_ioctl fs/ioctl.c:52 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584 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:0x7f4b19da9519 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:00007f4b17f93028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4b1a036360 RCX: 00007f4b19da9519 RDX: 00002000000007c0 RSI: 0000000000008914 RDI: 000000000000004c RBP: 00007f4b19e39136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4b1a0363f8 R14: 00007f4b1a036360 R15: 00007ffd3e5d8458