================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.1.356/6908 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888021b1a130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline] ffff888021b1a130 (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:3544 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: 144330 hardirqs last enabled at (144330): [] __local_bh_enable_ip+0x13a/0x1c0 kernel/softirq.c:411 hardirqs last disabled at (144329): [] __local_bh_enable_ip+0xdb/0x1c0 kernel/softirq.c:388 softirqs last enabled at (132646): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last enabled at (132646): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last enabled at (132646): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 softirqs last disabled at (144201): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last disabled at (144201): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last disabled at (144201): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 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 syz.1.356/6908: #0: ffff888019a94418 (sb_writers#5){.+.+}-{0:0}, at: do_sendfile+0x506/0xe80 fs/read_write.c:1253 #1: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #1: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #1: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: filemap_get_entry+0xce/0x3f0 mm/filemap.c:1849 #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:5670 stack backtrace: CPU: 0 PID: 6908 Comm: syz.1.356 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 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:3544 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:5646 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5671 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6650 napi_poll net/core/dev.c:6717 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6853 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:rcu_rnp_online_cpus kernel/rcu/tree.c:4182 [inline] RIP: 0010:rcu_rdp_cpu_online kernel/rcu/tree.c:4192 [inline] RIP: 0010:rcu_lockdep_current_cpu_online+0xbf/0x120 kernel/rcu/tree.c:4233 Code: 18 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 f4 6c 6e 00 48 8b 1b 48 83 c3 70 48 89 d8 48 c1 e8 03 42 80 3c 30 00 <74> 08 48 89 df e8 d7 6c 6e 00 4c 85 3b 75 1a 48 c7 c7 00 79 13 8d RSP: 0018:ffffc90005507718 EFLAGS: 00000246 RAX: 1ffffffff1a26e0e RBX: ffffffff8d137070 RCX: 3442837208ae8200 RDX: ffff88807c86da00 RSI: ffffffff8b1d32c0 RDI: ffff8880b8e3d1a0 RBP: 0000000000000000 R08: ffffea00015a72f7 R09: 1ffffd40002b4e5e R10: dffffc0000000000 R11: fffff940002b4e5f R12: ffff88807b26e200 R13: 1ffff92000aa0ef8 R14: dffffc0000000000 R15: 0000000000000001 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline] rcu_read_lock_held+0x1e/0x40 kernel/rcu/update.c:348 xa_entry include/linux/xarray.h:1216 [inline] xas_reload+0x19c/0x470 include/linux/xarray.h:1601 filemap_get_entry+0x271/0x3f0 mm/filemap.c:1865 shmem_get_folio_gfp+0x2a4/0x2b40 mm/shmem.c:1975 shmem_get_folio mm/shmem.c:2164 [inline] shmem_file_splice_read+0x257/0xc70 mm/shmem.c:2954 splice_direct_to_actor+0x261/0x8e0 fs/splice.c:1069 do_splice_direct+0x1d5/0x2f0 fs/splice.c:1194 do_sendfile+0x52b/0xe80 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x145/0x1a0 fs/read_write.c:1308 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 RIP: 0033:0x7feb48f9e0d9 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:00007feb49e5e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007feb49225fa0 RCX: 00007feb48f9e0d9 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007feb49035024 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000003ffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007feb49226038 R14: 00007feb49225fa0 R15: 00007ffdff3f0aa8 BUG: sleeping function called from invalid context at net/core/sock.c:3546 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6908, name: syz.1.356 preempt_count: 101, expected: 0 RCU nest depth: 2, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] is_module_text_address+0x1b/0x130 kernel/module/main.c:3347 CPU: 0 PID: 6908 Comm: syz.1.356 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 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:3546 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:5646 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5671 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6650 napi_poll net/core/dev.c:6717 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6853 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:rcu_rnp_online_cpus kernel/rcu/tree.c:4182 [inline] RIP: 0010:rcu_rdp_cpu_online kernel/rcu/tree.c:4192 [inline] RIP: 0010:rcu_lockdep_current_cpu_online+0xbf/0x120 kernel/rcu/tree.c:4233 Code: 18 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 f4 6c 6e 00 48 8b 1b 48 83 c3 70 48 89 d8 48 c1 e8 03 42 80 3c 30 00 <74> 08 48 89 df e8 d7 6c 6e 00 4c 85 3b 75 1a 48 c7 c7 00 79 13 8d RSP: 0018:ffffc90005507718 EFLAGS: 00000246 RAX: 1ffffffff1a26e0e RBX: ffffffff8d137070 RCX: 3442837208ae8200 RDX: ffff88807c86da00 RSI: ffffffff8b1d32c0 RDI: ffff8880b8e3d1a0 RBP: 0000000000000000 R08: ffffea00015a72f7 R09: 1ffffd40002b4e5e R10: dffffc0000000000 R11: fffff940002b4e5f R12: ffff88807b26e200 R13: 1ffff92000aa0ef8 R14: dffffc0000000000 R15: 0000000000000001 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline] rcu_read_lock_held+0x1e/0x40 kernel/rcu/update.c:348 xa_entry include/linux/xarray.h:1216 [inline] xas_reload+0x19c/0x470 include/linux/xarray.h:1601 filemap_get_entry+0x271/0x3f0 mm/filemap.c:1865 shmem_get_folio_gfp+0x2a4/0x2b40 mm/shmem.c:1975 shmem_get_folio mm/shmem.c:2164 [inline] shmem_file_splice_read+0x257/0xc70 mm/shmem.c:2954 splice_direct_to_actor+0x261/0x8e0 fs/splice.c:1069 do_splice_direct+0x1d5/0x2f0 fs/splice.c:1194 do_sendfile+0x52b/0xe80 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x145/0x1a0 fs/read_write.c:1308 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 RIP: 0033:0x7feb48f9e0d9 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:00007feb49e5e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007feb49225fa0 RCX: 00007feb48f9e0d9 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007feb49035024 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000003ffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007feb49226038 R14: 00007feb49225fa0 R15: 00007ffdff3f0aa8 ---------------- Code disassembly (best guess): 0: 18 48 89 sbb %cl,-0x77(%rax) 3: d8 48 c1 fmuls -0x3f(%rax) 6: e8 03 42 80 3c call 0x3c80420e b: 30 00 xor %al,(%rax) d: 74 08 je 0x17 f: 48 89 df mov %rbx,%rdi 12: e8 f4 6c 6e 00 call 0x6e6d0b 17: 48 8b 1b mov (%rbx),%rbx 1a: 48 83 c3 70 add $0x70,%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) * 2a: 74 08 je 0x34 <-- trapping instruction 2c: 48 89 df mov %rbx,%rdi 2f: e8 d7 6c 6e 00 call 0x6e6d0b 34: 4c 85 3b test %r15,(%rbx) 37: 75 1a jne 0x53 39: 48 c7 c7 00 79 13 8d mov $0xffffffff8d137900,%rdi