================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/1:2/1111 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888023c72120 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1744 [inline] ffff888023c72120 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 lock_sock_nested+0x44/0x100 net/core/sock.c:3258 lock_sock include/net/sock.h:1744 [inline] x25_bind+0x18a/0x3b0 net/x25/af_x25.c:698 __sys_bind+0x2e9/0x3e0 net/socket.c:1730 __do_sys_bind net/socket.c:1741 [inline] __se_sys_bind net/socket.c:1739 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1739 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 irq event stamp: 872326 hardirqs last enabled at (872326): [] __local_bh_enable_ip+0x136/0x1c0 kernel/softirq.c:406 hardirqs last disabled at (872325): [] __local_bh_enable_ip+0xd7/0x1c0 kernel/softirq.c:383 softirqs last enabled at (868330): [] nf_ct_ext_destroy+0x120/0x2a0 net/netfilter/nf_conntrack_extend.c:34 softirqs last disabled at (872193): [] __do_softirq kernel/softirq.c:610 [inline] softirqs last disabled at (872193): [] invoke_softirq kernel/softirq.c:450 [inline] softirqs last disabled at (872193): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 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/1:2/1111: #0: ffff888017871938 ((wq_completion)events_power_efficient){+.+.}-{0:0} , at: process_one_work+0x75c/0xff0 kernel/workqueue.c:-1 #1: ffffc90005057d00 ((work_completion)(&(&gc_work->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x79e/0xff0 kernel/workqueue.c:2285 #2: ffffffff8d11efa0 (rcu_read_lock ){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30 include/linux/rcupdate.h:313 stack backtrace: CPU: 1 PID: 1111 Comm: kworker/1:2 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: events_power_efficient gc_worker Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:3999 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4202 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4664 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xd77/0x7d40 kernel/locking/lockdep.c:5074 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737 lock_sock_nested+0x44/0x100 net/core/sock.c:3258 lock_sock include/net/sock.h:1744 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 x25_lapb_receive_frame+0x19d/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5552 [inline] netif_receive_skb_core+0x149/0x210 net/core/dev.c:5577 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x430 net/core/dev.c:7102 napi_poll net/core/dev.c:7169 [inline] net_rx_action+0x522/0xa80 net/core/dev.c:7259 handle_softirqs+0x336/0x830 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:lock_is_held_type+0x13a/0x190 kernel/locking/lockdep.c:5813 Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c5 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc90005057978 EFLAGS: 00000206 RAX: fe07427dbe73ea00 RBX: ffff88802246d940 RCX: fe07427dbe73ea00 RDX: 0000000000000000 RSI: ffffffff8a2b3e00 RDI: ffffffff8a7a5100 RBP: 0000000000000000 R08: ffffffff8e6d322f R09: 1ffffffff1cda645 R10: dffffc0000000000 R11: fffffbfff1cda646 R12: 0000000000000002 R13: 0000000000000246 R14: ffffffff8d11f000 R15: ffff88802246e480 lock_is_held include/linux/lockdep.h:292 [inline] ___might_sleep+0x9b/0x610 kernel/sched/core.c:9624 gc_worker+0xc7b/0x13d0 net/netfilter/nf_conntrack_core.c:1558 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 BUG: sleeping function called from invalid context at net/core/sock.c:3260 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1111, name: kworker/1:2 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:414 [inline] [] handle_softirqs+0xfd/0x830 kernel/softirq.c:552 CPU: 1 PID: 1111 Comm: kworker/1:2 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: events_power_efficient gc_worker Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 ___might_sleep+0x493/0x610 kernel/sched/core.c:9658 lock_sock_nested+0x5b/0x100 net/core/sock.c:3260 lock_sock include/net/sock.h:1744 [inline] x25_kill_by_neigh+0x109/0x250 net/x25/af_x25.c:1779 x25_lapb_receive_frame+0x19d/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5552 [inline] netif_receive_skb_core+0x149/0x210 net/core/dev.c:5577 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x430 net/core/dev.c:7102 napi_poll net/core/dev.c:7169 [inline] net_rx_action+0x522/0xa80 net/core/dev.c:7259 handle_softirqs+0x336/0x830 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] invoke_softirq kernel/softirq.c:450 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659 irq_exit_rcu+0x5/0x20 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:lock_is_held_type+0x13a/0x190 kernel/locking/lockdep.c:5813 Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c5 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc90005057978 EFLAGS: 00000206 RAX: fe07427dbe73ea00 RBX: ffff88802246d940 RCX: fe07427dbe73ea00 RDX: 0000000000000000 RSI: ffffffff8a2b3e00 RDI: ffffffff8a7a5100 RBP: 0000000000000000 R08: ffffffff8e6d322f R09: 1ffffffff1cda645 R10: dffffc0000000000 R11: fffffbfff1cda646 R12: 0000000000000002 R13: 0000000000000246 R14: ffffffff8d11f000 R15: ffff88802246e480 lock_is_held include/linux/lockdep.h:292 [inline] ___might_sleep+0x9b/0x610 kernel/sched/core.c:9624 gc_worker+0xc7b/0x13d0 net/netfilter/nf_conntrack_core.c:1558 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffff888079240c98 is addr:fe80::a8aa:aaff:feaa:aaaa for cmd:2 at entry:ffff88802aa6ba80 sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffff888079240c98 is addr:fe80::aa for cmd:2 at entry:ffff88802aa6b300 sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffff888079240c98 is addr:172.20.20.170 for cmd:2 at entry:ffff88802b161c80 virtqueue callback for ffff8880210aba00 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff888024712128 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff8880210aba00 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff8880226ea928 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff8880210aba00 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff888024712528 response 0 status 0x0 sense_len 0 No more buffers in queue nf_nat: Already setup manip DST for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip SRC for ct ffff888022237380 (status bits 0x188) virtqueue callback for ffff888147e73800 (ffffffff854eb430) No more buffers in queue Receiving skb proto 0x0806 len 28 type 1 No more buffers in queue No more buffers in queue eth0: xmit ffff88802603dc80 42:01:0a:80:00:01 Added buffer head 4 to ffff888147e73900 virtqueue callback for ffff888147e73900 (ffffffff854eb520) Sent skb ffff88802603dc80 No more buffers in queue net_ratelimit: 21 callbacks suppressed wireguard: wg0: Sending keepalive packet to peer 37 ([::1]:20002/0%0) wireguard: wg0: Sending keepalive packet to peer 13 ([::1]:20002/0%0) nf_nat: Already setup manip DST for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip SRC for ct ffff888022237380 (status bits 0x188) wireguard: wg0: Sending keepalive packet to peer 19 ([::1]:20002/0%0) wireguard: wg1: Receiving keepalive packet from peer 39 ([::1]:20001/0%0) sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffff88807711a718 is addr:::fe00:0:0 for cmd:0 at entry:ffff888147368700 sctp: sctp_addr_wq_timeout_handler: this is on DAD, trying 500 sec later sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffff88807711a718 is addr:::fe00:0:0 for cmd:0 at entry:ffff888147368700 sctp: sctp_addr_wq_timeout_handler: this is on DAD, trying 500 sec later wireguard: wg0: Sending keepalive packet to peer 13 ([::1]:20002/0%0) nf_nat: Already setup manip DST for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip SRC for ct ffff888022237380 (status bits 0x188) wireguard: wg1: Receiving keepalive packet from peer 15 ([::1]:20001/0%0) wireguard: wg1: Sending keepalive packet to peer 33 ([::1]:20001/0%0) wireguard: wg0: Sending keepalive packet to peer 37 ([::1]:20002/0%0) sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffff88807711a718 is addr:::fe00:0:0 for cmd:0 at entry:ffff888147368700 sctp: sctp_addr_wq_timeout_handler: this is on DAD, trying 500 sec later sctp: sctp_addr_wq_timeout_handler: the first ent in wq:ffff88807711a718 is addr:::fe00:0:0 for cmd:0 at entry:ffff888147368700 nf_nat: Already setup manip DST for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip SRC for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip DST for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip SRC for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip DST for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip SRC for ct ffff888022237380 (status bits 0x188) virtqueue callback for ffff8880210aba00 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff888024712928 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff8880210aba00 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff8880226ea928 response 0 status 0x0 sense_len 0 No more buffers in queue virtqueue callback for ffff8880210aba00 (ffffffff850c16e0) sd 0:0:1:0: cmd ffff888024712d28 response 0 status 0x0 sense_len 0 No more buffers in queue wireguard: wg2: Receiving keepalive packet from peer 17 ([::1]:20001/0%0) wireguard: wg0: Sending keepalive packet to peer 13 ([::1]:20002/0%0) nf_nat: Already setup manip DST for ct ffff888022237380 (status bits 0x188) nf_nat: Already setup manip SRC for ct ffff888022237380 (status bits 0x188) wireguard: wg0: Sending keepalive packet to peer 37 ([::1]:20002/0%0) wireguard: wg1: Receiving keepalive packet from peer 15 ([::1]:20001/0%0) wireguard: wg0: Sending keepalive packet to peer 19 ([::1]:20002/0%0) wireguard: wg1: Receiving keepalive packet from peer 21 ([::1]:20001/0%0) virtqueue callback for ffff888147e73800 (ffffffff854eb430) No more buffers in queue Receiving skb proto 0x0806 len 28 type 1 No more buffers in queue No more buffers in queue eth0: xmit ffff888021005500 42:01:0a:80:00:01 Added buffer head 4 to ffff888147e73900 virtqueue callback for ffff888147e73900 (ffffffff854eb520) Sent skb ffff888021005500 No more buffers in queue ---------------- Code disassembly (best guess): 0: 75 40 jne 0x42 2: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) 9: 00 a: 9c pushf b: 8f 04 24 pop (%rsp) e: f7 04 24 00 02 00 00 testl $0x200,(%rsp) 15: 75 46 jne 0x5d 17: 41 f7 c5 00 02 00 00 test $0x200,%r13d 1e: 74 01 je 0x21 20: fb sti 21: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 28: 00 00 * 2a: 48 3b 44 24 08 cmp 0x8(%rsp),%rax <-- trapping instruction 2f: 75 3c jne 0x6d 31: 89 e8 mov %ebp,%eax 33: 48 83 c4 10 add $0x10,%rsp 37: 5b pop %rbx 38: 41 5c pop %r12 3a: 41 5d pop %r13 3c: 41 5e pop %r14 3e: 41 5f pop %r15