================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.3.4577/26158 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff88807c9ae260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff88807c9ae260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1778 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908 lock_sock_nested+0x41/0x100 net/core/sock.c:3827 lock_sock include/net/sock.h:1713 [inline] x25_release+0xa0/0x3d0 net/x25/af_x25.c:632 __sock_release+0xa0/0x1f0 net/socket.c:735 sock_close+0x1c/0x30 net/socket.c:1526 __fput+0x418/0xa50 fs/file_table.c:512 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 50750 hardirqs last enabled at (50750): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (50749): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (50340): [] local_bh_enable include/linux/bottom_half.h:33 [inline] softirqs last enabled at (50340): [] fpregs_unlock arch/x86/include/asm/fpu/api.h:77 [inline] softirqs last enabled at (50340): [] kernel_fpu_end+0x62/0x80 arch/x86/kernel/fpu/core.c:506 softirqs last disabled at (50707): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (50707): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (50707): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 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.3.4577/26158: 4, last CPU#1: #0: ffff88806424f0e0 (&sb->s_type->i_mutex_key#38){++++}-{4:4}, at: inode_lock_shared include/linux/fs.h:1039 [inline] #0: ffff88806424f0e0 (&sb->s_type->i_mutex_key#38){++++}-{4:4}, at: btrfs_inode_lock+0x65/0xe0 fs/btrfs/inode.c:358 #1: ffffffff8ee8fc80 (fs_reclaim){+.+.}-{0:0}, at: might_alloc include/linux/sched/mm.h:316 [inline] #1: ffffffff8ee8fc80 (fs_reclaim){+.+.}-{0:0}, at: slab_pre_alloc_hook mm/slub.c:4636 [inline] #1: ffffffff8ee8fc80 (fs_reclaim){+.+.}-{0:0}, at: slab_alloc_node mm/slub.c:4974 [inline] #1: ffffffff8ee8fc80 (fs_reclaim){+.+.}-{0:0}, at: __kmalloc_cache_noprof+0x61/0x600 mm/slub.c:5559 #2: ffffffff8eea58e0 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}, at: fs_reclaim_acquire+0x7c/0x100 mm/page_alloc.c:4392 #3: ffffffff8ed5ca60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #3: ffffffff8ed5ca60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #3: ffffffff8ed5ca60 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6288 stack backtrace: CPU: 1 UID: 0 PID: 26158 Comm: syz.3.4577 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28c/0x2e0 kernel/locking/lockdep.c:4058 valid_state+0xbe/0xf0 kernel/locking/lockdep.c:4072 mark_lock_irq+0x36/0x380 kernel/locking/lockdep.c:4283 mark_lock+0x117/0x190 kernel/locking/lockdep.c:4769 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x6b7/0x2e50 kernel/locking/lockdep.c:5208 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908 lock_sock_nested+0x41/0x100 net/core/sock.c:3827 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1778 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6264 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6289 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7787 napi_poll net/core/dev.c:7850 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8007 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 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:lock_acquire+0x232/0x350 kernel/locking/lockdep.c:5913 Code: ff ff ff e8 40 a0 40 0a f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 92 5b f1 11 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 8d 3d 37 5c da RSP: 0018:ffffc9000656f340 EFLAGS: 00000292 RAX: bcc24b1909426b00 RBX: 0000000000000001 RCX: 0000000000000046 RDX: 0000000000030000 RSI: ffffffff8e6ff314 RDI: ffffffff8c6d8d80 RBP: ffff88802bdc3e80 R08: 0000000000000000 R09: 0000000000000020 R10: 0000000000000000 R11: ffffffff81a394f0 R12: ffffffff8eea58e0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000246 fs_reclaim_acquire+0x98/0x100 mm/page_alloc.c:4392 might_alloc include/linux/sched/mm.h:316 [inline] slab_pre_alloc_hook mm/slub.c:4636 [inline] slab_alloc_node mm/slub.c:4974 [inline] __kmalloc_cache_noprof+0x61/0x600 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] __iomap_dio_rw+0x2b1/0x1c40 fs/iomap/direct-io.c:713 iomap_dio_rw+0x45/0xb0 fs/iomap/direct-io.c:910 btrfs_dio_read fs/btrfs/direct-io.c:824 [inline] btrfs_direct_read+0x363/0x650 fs/btrfs/direct-io.c:1117 btrfs_file_read_iter+0x16a/0x270 fs/btrfs/file.c:3798 copy_splice_read+0x5ff/0xaa0 fs/splice.c:362 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0x4b6/0xcb0 fs/splice.c:1084 do_splice_direct_actor fs/splice.c:1202 [inline] do_splice_direct+0x195/0x290 fs/splice.c:1228 do_sendfile+0x52e/0x7c0 fs/read_write.c:1371 __do_sys_sendfile64 fs/read_write.c:1426 [inline] __se_sys_sendfile64+0xdf/0x1a0 fs/read_write.c:1418 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7d6599e0d9 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:00007f7d668bd028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7d65c25fa0 RCX: 00007f7d6599e0d9 RDX: 0000200000000080 RSI: 0000000000000007 RDI: 0000000000000007 RBP: 00007f7d65a35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000007f03 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7d65c26038 R14: 00007f7d65c25fa0 R15: 00007fffd5d96e78 BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 26158, name: syz.3.4577 preempt_count: 100, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:486 [inline] [] handle_softirqs+0xab/0x860 kernel/softirq.c:621 CPU: 1 UID: 0 PID: 26158 Comm: syz.3.4577 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9236 lock_sock_nested+0x56/0x100 net/core/sock.c:3829 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1778 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6264 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6289 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7787 napi_poll net/core/dev.c:7850 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8007 handle_softirqs+0x226/0x860 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 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:lock_acquire+0x232/0x350 kernel/locking/lockdep.c:5913 Code: ff ff ff e8 40 a0 40 0a f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 92 5b f1 11 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 8d 3d 37 5c da RSP: 0018:ffffc9000656f340 EFLAGS: 00000292 RAX: bcc24b1909426b00 RBX: 0000000000000001 RCX: 0000000000000046 RDX: 0000000000030000 RSI: ffffffff8e6ff314 RDI: ffffffff8c6d8d80 RBP: ffff88802bdc3e80 R08: 0000000000000000 R09: 0000000000000020 R10: 0000000000000000 R11: ffffffff81a394f0 R12: ffffffff8eea58e0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000246 fs_reclaim_acquire+0x98/0x100 mm/page_alloc.c:4392 might_alloc include/linux/sched/mm.h:316 [inline] slab_pre_alloc_hook mm/slub.c:4636 [inline] slab_alloc_node mm/slub.c:4974 [inline] __kmalloc_cache_noprof+0x61/0x600 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] __iomap_dio_rw+0x2b1/0x1c40 fs/iomap/direct-io.c:713 iomap_dio_rw+0x45/0xb0 fs/iomap/direct-io.c:910 btrfs_dio_read fs/btrfs/direct-io.c:824 [inline] btrfs_direct_read+0x363/0x650 fs/btrfs/direct-io.c:1117 btrfs_file_read_iter+0x16a/0x270 fs/btrfs/file.c:3798 copy_splice_read+0x5ff/0xaa0 fs/splice.c:362 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0x4b6/0xcb0 fs/splice.c:1084 do_splice_direct_actor fs/splice.c:1202 [inline] do_splice_direct+0x195/0x290 fs/splice.c:1228 do_sendfile+0x52e/0x7c0 fs/read_write.c:1371 __do_sys_sendfile64 fs/read_write.c:1426 [inline] __se_sys_sendfile64+0xdf/0x1a0 fs/read_write.c:1418 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7d6599e0d9 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:00007f7d668bd028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7d65c25fa0 RCX: 00007f7d6599e0d9 RDX: 0000200000000080 RSI: 0000000000000007 RDI: 0000000000000007 RBP: 00007f7d65a35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000007f03 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7d65c26038 R14: 00007f7d65c25fa0 R15: 00007fffd5d96e78 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: ff ljmp (bad) 1: e8 40 a0 40 0a call 0xa40a046 6: f7 44 24 10 00 02 00 testl $0x200,0x10(%rsp) d: 00 e: 0f 84 38 ff ff ff je 0xffffff4c 14: 65 48 8b 05 92 5b f1 mov %gs:0x11f15b92(%rip),%rax # 0x11f15bae 1b: 11 1c: 48 3b 44 24 50 cmp 0x50(%rsp),%rax 21: 75 33 jne 0x56 23: fb sti 24: 48 83 c4 58 add $0x58,%rsp * 28: 5b pop %rbx <-- trapping instruction 29: 41 5c pop %r12 2b: 41 5d pop %r13 2d: 41 5e pop %r14 2f: 41 5f pop %r15 31: 5d pop %rbp 32: c3 ret 33: cc int3 34: cc int3 35: cc int3 36: cc int3 37: cc int3 38: 48 rex.W 39: 8d .byte 0x8d 3a: 3d .byte 0x3d 3b: 37 (bad) 3c: 5c pop %rsp 3d: da .byte 0xda