================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u8:9/1123 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888079c5e260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1717 [inline] ffff888079c5e260 (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:3906 lock_sock include/net/sock.h:1717 [inline] x25_ioctl+0x4fa/0xff0 net/x25/af_x25.c:1396 sock_do_ioctl+0x101/0x320 net/socket.c:1328 sock_ioctl+0x57a/0x7e0 net/socket.c:1449 vfs_ioctl fs/ioctl.c:52 [inline] do_vfs_ioctl+0xf9d/0x1570 fs/ioctl.c:552 __do_sys_ioctl fs/ioctl.c:596 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 735238 hardirqs last enabled at (735238): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (735237): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (734858): [] spin_unlock_bh include/linux/spinlock.h:407 [inline] softirqs last enabled at (734858): [] nsim_dev_trap_report drivers/net/netdevsim/dev.c:816 [inline] softirqs last enabled at (734858): [] nsim_dev_trap_report_work+0x7a4/0xb30 drivers/net/netdevsim/dev.c:847 softirqs last disabled at (735035): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (735035): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (735035): [] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 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 kworker/u8:9/1123: 8, on CPU#1: #0: ffff88813fe4c148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffff88813fe4c148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffff88813fe4c148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3460 [inline] #0: ffff88813fe4c148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3578 #1: ffffc90005927c40 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffc90005927c40 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffc90005927c40 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3460 [inline] #1: ffffc90005927c40 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3578 #2: ffffffff8ffe6090 (cpu_hotplug_lock){++++}-{0:0}, at: static_key_disable+0x12/0x20 kernel/jump_label.c:247 #3: ffffffff9023cb80 (jump_label_mutex){+.+.}-{4:4}, at: jump_label_lock kernel/jump_label.c:27 [inline] #3: ffffffff9023cb80 (jump_label_mutex){+.+.}-{4:4}, at: static_key_disable_cpuslocked+0x8d/0x1a0 kernel/jump_label.c:238 #4: ffffffff8fffd0e0 (text_mutex){+.+.}-{4:4}, at: arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:145 #5: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #5: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #5: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:302 #6: ffff88813fe44618 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] #6: ffff88813fe44618 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: pte_offset_map_lock+0x13d/0x210 mm/pgtable-generic.c:423 #7: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #7: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #7: ffffffff9015a260 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6471 stack backtrace: CPU: 1 UID: 0 PID: 1123 Comm: kworker/u8:9 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: events_unbound toggle_allocation_gate 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:3906 lock_sock include/net/sock.h:1717 [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:6447 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6472 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7997 napi_poll net/core/dev.c:8060 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8217 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:rcu_is_watching_curr_cpu include/linux/context_tracking.h:128 [inline] RIP: 0010:rcu_is_watching+0x3b/0xb0 kernel/rcu/tree.c:753 Code: e8 ea 05 59 0a 89 c3 83 f8 08 73 66 49 bf 00 00 00 00 00 fc ff df 4c 8d 34 dd d0 e7 97 8e 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 <74> 08 4c 89 f7 e8 db 3b 93 00 48 c7 c3 98 bd e2 94 49 03 1e 48 89 RSP: 0018:ffffc900059276c8 EFLAGS: 00000246 RAX: 1ffffffff1d2fcfb RBX: 0000000000000001 RCX: 8000000000000002 RDX: 0000000000000000 RSI: ffffffff8c8e9860 RDI: ffffffff8c8e9820 RBP: ffffc90005927870 R08: ffffffff91be00bf R09: 1ffffffff237c017 R10: dffffc0000000000 R11: fffffbfff237c018 R12: dffffc0000000000 R13: ffffffff816cac74 R14: ffffffff8e97e7d8 R15: dffffc0000000000 trace_lock_release include/trace/events/lock.h:68 [inline] lock_release+0x4b/0x3c0 kernel/locking/lockdep.c:5954 __raw_spin_unlock include/linux/spinlock_api_smp.h:199 [inline] _raw_spin_unlock+0x16/0x50 kernel/locking/spinlock.c:213 spin_unlock include/linux/spinlock.h:401 [inline] __text_poke+0x814/0xa60 arch/x86/kernel/alternative.c:2517 text_poke arch/x86/kernel/alternative.c:2541 [inline] smp_text_poke_batch_finish+0x8ed/0x1110 arch/x86/kernel/alternative.c:2874 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_disable_cpuslocked+0xc5/0x1a0 kernel/jump_label.c:240 static_key_disable+0x1a/0x20 kernel/jump_label.c:248 toggle_allocation_gate+0x1f9/0x290 mm/kfence/core.c:909 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: sleeping function called from invalid context at net/core/sock.c:3908 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1123, name: kworker/u8:9 preempt_count: 102, expected: 0 RCU nest depth: 2, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 UID: 0 PID: 1123 Comm: kworker/u8:9 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: events_unbound toggle_allocation_gate Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9202 lock_sock_nested+0x56/0x100 net/core/sock.c:3908 lock_sock include/net/sock.h:1717 [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:6447 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6472 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7997 napi_poll net/core/dev.c:8060 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8217 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:rcu_is_watching_curr_cpu include/linux/context_tracking.h:128 [inline] RIP: 0010:rcu_is_watching+0x3b/0xb0 kernel/rcu/tree.c:753 Code: e8 ea 05 59 0a 89 c3 83 f8 08 73 66 49 bf 00 00 00 00 00 fc ff df 4c 8d 34 dd d0 e7 97 8e 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 <74> 08 4c 89 f7 e8 db 3b 93 00 48 c7 c3 98 bd e2 94 49 03 1e 48 89 RSP: 0018:ffffc900059276c8 EFLAGS: 00000246 RAX: 1ffffffff1d2fcfb RBX: 0000000000000001 RCX: 8000000000000002 RDX: 0000000000000000 RSI: ffffffff8c8e9860 RDI: ffffffff8c8e9820 RBP: ffffc90005927870 R08: ffffffff91be00bf R09: 1ffffffff237c017 R10: dffffc0000000000 R11: fffffbfff237c018 R12: dffffc0000000000 R13: ffffffff816cac74 R14: ffffffff8e97e7d8 R15: dffffc0000000000 trace_lock_release include/trace/events/lock.h:68 [inline] lock_release+0x4b/0x3c0 kernel/locking/lockdep.c:5954 __raw_spin_unlock include/linux/spinlock_api_smp.h:199 [inline] _raw_spin_unlock+0x16/0x50 kernel/locking/spinlock.c:213 spin_unlock include/linux/spinlock.h:401 [inline] __text_poke+0x814/0xa60 arch/x86/kernel/alternative.c:2517 text_poke arch/x86/kernel/alternative.c:2541 [inline] smp_text_poke_batch_finish+0x8ed/0x1110 arch/x86/kernel/alternative.c:2874 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_disable_cpuslocked+0xc5/0x1a0 kernel/jump_label.c:240 static_key_disable+0x1a/0x20 kernel/jump_label.c:248 toggle_allocation_gate+0x1f9/0x290 mm/kfence/core.c:909 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: e8 ea 05 59 0a call 0xa5905ef 5: 89 c3 mov %eax,%ebx 7: 83 f8 08 cmp $0x8,%eax a: 73 66 jae 0x72 c: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 13: fc ff df 16: 4c 8d 34 dd d0 e7 97 lea -0x71681830(,%rbx,8),%r14 1d: 8e 1e: 4c 89 f0 mov %r14,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) * 2a: 74 08 je 0x34 <-- trapping instruction 2c: 4c 89 f7 mov %r14,%rdi 2f: e8 db 3b 93 00 call 0x933c0f 34: 48 c7 c3 98 bd e2 94 mov $0xffffffff94e2bd98,%rbx 3b: 49 03 1e add (%r14),%rbx 3e: 48 rex.W 3f: 89 .byte 0x89