================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u4:3/49 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88814dd08130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline] ffff88814dd08130 (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:5754 lock_sock_nested+0x48/0x100 net/core/sock.c:3543 lock_sock include/net/sock.h:1780 [inline] x25_bind+0x20a/0x460 net/x25/af_x25.c:698 __sys_bind+0x2f0/0x3f0 net/socket.c:1856 __do_sys_bind net/socket.c:1867 [inline] __se_sys_bind net/socket.c:1865 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1865 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 irq event stamp: 870330 hardirqs last enabled at (870330): [] __local_bh_enable_ip+0x13a/0x1c0 kernel/softirq.c:411 hardirqs last disabled at (870329): [] __local_bh_enable_ip+0xdb/0x1c0 kernel/softirq.c:388 softirqs last enabled at (870092): [] local_bh_disable include/linux/bottom_half.h:20 [inline] softirqs last enabled at (870092): [] rcu_read_lock_bh include/linux/rcupdate.h:838 [inline] softirqs last enabled at (870092): [] __dev_queue_xmit+0x275/0x3640 net/core/dev.c:4393 softirqs last disabled at (870093): [] 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 *** 3 locks held by kworker/u4:3/49: #0: ffff88814c852538 ((wq_completion)bat_events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #0: ffff88814c852538 ((wq_completion)bat_events){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #1: ffffc90000b9fd00 ((work_completion)(&(&forw_packet_aggr->delayed_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #1: ffffc90000b9fd00 ((work_completion)(&(&forw_packet_aggr->delayed_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #2: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #2: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #2: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_core+0x34/0x230 net/core/dev.c:5688 stack backtrace: CPU: 1 PID: 49 Comm: kworker/u4:3 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4013 mark_lock_irq+0xad/0x900 kernel/locking/lockdep.c:4216 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4678 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xcfc/0x7d80 kernel/locking/lockdep.c:5091 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754 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_lapb_receive_frame+0x1a7/0xef0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5664 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5689 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6668 napi_poll net/core/dev.c:6735 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6871 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+0x1bc2/0x3640 net/core/dev.c:4508 dev_queue_xmit include/linux/netdevice.h:3157 [inline] batadv_send_skb_packet+0x3dd/0x660 net/batman-adv/send.c:108 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:395 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:423 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x65b/0x800 net/batman-adv/bat_iv_ogm.c:1792 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 BUG: sleeping function called from invalid context at net/core/sock.c:3545 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 49, name: kworker/u4:3 preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] local_bh_disable include/linux/bottom_half.h:20 [inline] [] rcu_read_lock_bh include/linux/rcupdate.h:838 [inline] [] __dev_queue_xmit+0x282/0x3640 net/core/dev.c:4393 CPU: 1 PID: 49 Comm: kworker/u4:3 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 __might_resched+0x48d/0x5f0 kernel/sched/core.c:10212 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_lapb_receive_frame+0x1a7/0xef0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5664 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5689 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6668 napi_poll net/core/dev.c:6735 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6871 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+0x1bc2/0x3640 net/core/dev.c:4508 dev_queue_xmit include/linux/netdevice.h:3157 [inline] batadv_send_skb_packet+0x3dd/0x660 net/batman-adv/send.c:108 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:395 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:423 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0x65b/0x800 net/batman-adv/bat_iv_ogm.c:1792 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293