================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.3.4639/24490 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888070b2c130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline] ffff888070b2c130 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x83/0x120 net/x25/af_x25.c:1781 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5676 lock_sock_nested+0x44/0x100 net/core/sock.c:3505 lock_sock include/net/sock.h:1805 [inline] x25_release+0x9c/0x380 net/x25/af_x25.c:636 __sock_release net/socket.c:654 [inline] sock_close+0xbf/0x210 net/socket.c:1400 __fput+0x20a/0x8b0 fs/file_table.c:320 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 156670 hardirqs last enabled at (156670): [] __local_bh_enable_ip+0x136/0x1c0 kernel/softirq.c:426 hardirqs last disabled at (156669): [] __local_bh_enable_ip+0xd7/0x1c0 kernel/softirq.c:403 softirqs last enabled at (154524): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last enabled at (154524): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last enabled at (154524): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 softirqs last disabled at (156581): [] __do_softirq kernel/softirq.c:630 [inline] softirqs last disabled at (156581): [] invoke_softirq kernel/softirq.c:470 [inline] softirqs last disabled at (156581): [] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sk_lock-AF_X25); lock(sk_lock-AF_X25); *** DEADLOCK *** 7 locks held by syz.3.4639/24490: #0: ffff88803b5c8460 (sb_writers#24){.+.+}-{0:0}, at: do_sendfile+0x4f6/0xe20 fs/read_write.c:1254 #1: ffff888071d809c8 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888071d809c8 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: ocfs2_file_write_iter+0x45a/0x1fc0 fs/ocfs2/file.c:2399 #2: ffff888071d80660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_dio_wr_get_block+0x90c/0x1810 fs/ocfs2/aops.c:2227 #3: ffff88803b5c8650 (sb_internal#4){.+.+}-{0:0}, at: ocfs2_write_begin_nolock+0x2995/0x4590 fs/ocfs2/aops.c:1772 #4: ffff888055bf40e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a4/0x6f0 fs/ocfs2/journal.c:374 #5: ffff88803a46a990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x2014/0x2240 fs/jbd2/transaction.c:463 #6: ffffffff8cb2db60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #6: ffffffff8cb2db60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #6: ffffffff8cb2db60 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_core+0x30/0x230 net/core/dev.c:5643 stack backtrace: CPU: 0 PID: 24490 Comm: syz.3.4639 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:3974 mark_lock_irq+0xa9/0x900 kernel/locking/lockdep.c:4177 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4633 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xce0/0x7c40 kernel/locking/lockdep.c:5017 lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5676 lock_sock_nested+0x44/0x100 net/core/sock.c:3505 lock_sock include/net/sock.h:1805 [inline] x25_kill_by_neigh+0x83/0x120 net/x25/af_x25.c:1781 x25_lapb_receive_frame+0x1a3/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5619 [inline] netif_receive_skb_core+0x166/0x230 net/core/dev.c:5644 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6628 napi_poll net/core/dev.c:6695 [inline] net_rx_action+0x622/0xbc0 net/core/dev.c:6809 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:arch_stack_walk+0x9d/0x140 arch/x86/kernel/stacktrace.c:18 Code: 00 00 48 c7 45 c0 00 00 00 00 48 c7 45 b8 00 00 00 00 48 c7 45 b0 00 00 00 00 48 c7 45 a8 00 00 00 00 48 c7 45 a0 00 00 00 00 <48> c7 45 98 00 00 00 00 48 c7 45 90 00 00 00 00 48 c7 45 88 00 00 RSP: 0018:ffffc900055ce348 EFLAGS: 00000246 RAX: ffff88813fec3c00 RBX: ffffc900055ce400 RCX: ffffc900055ce3d0 RDX: ffff88813fec3c00 RSI: ffffc900055ce400 RDI: ffffffff8170d890 RBP: ffffc900055ce3d0 R08: ffffc900055ce67f R09: ffffc900055ce480 R10: dffffc0000000000 R11: fffff52000ab9cd0 R12: ffff88813fec3c00 R13: ffffc900055ce760 R14: ffffffff8170d890 R15: 0000000000000000 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xb6/0x200 mm/slub.c:3700 ocfs2_write_begin_nolock+0x4504/0x4590 fs/ocfs2/aops.c:1827 ocfs2_dio_wr_get_block+0xba4/0x1810 fs/ocfs2/aops.c:2241 get_more_blocks fs/direct-io.c:659 [inline] do_direct_IO fs/direct-io.c:947 [inline] __blockdev_direct_IO+0x171f/0x34c0 fs/direct-io.c:1260 ocfs2_direct_IO+0x233/0x2a0 fs/ocfs2/aops.c:2488 generic_file_direct_write+0x112/0x330 mm/filemap.c:3787 __generic_file_write_iter+0x15f/0x2a0 mm/filemap.c:3945 ocfs2_file_write_iter+0x1731/0x1fc0 fs/ocfs2/file.c:2469 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x638/0xb10 fs/read_write.c:861 iter_file_splice_write+0x6be/0xcf0 fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:950 splice_direct_to_actor+0x4b8/0xbd0 fs/splice.c:896 do_splice_direct+0x1ce/0x2f0 fs/splice.c:1002 do_sendfile+0x51b/0xe20 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fbff7d9e0d9 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:00007fbff8d3f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbff8025fa0 RCX: 00007fbff7d9e0d9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fbff7e35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000fffe82 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbff8026038 R14: 00007fbff8025fa0 R15: 00007ffda01a2fb8 BUG: sleeping function called from invalid context at net/core/sock.c:3507 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 24490, name: syz.3.4639 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:434 [inline] [] handle_softirqs+0xfd/0x910 kernel/softirq.c:572 CPU: 0 PID: 24490 Comm: syz.3.4639 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 __might_resched+0x489/0x5f0 kernel/sched/core.c:9970 lock_sock_nested+0x59/0x100 net/core/sock.c:3507 lock_sock include/net/sock.h:1805 [inline] x25_kill_by_neigh+0x83/0x120 net/x25/af_x25.c:1781 x25_lapb_receive_frame+0x1a3/0xf20 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:5619 [inline] netif_receive_skb_core+0x166/0x230 net/core/dev.c:5644 lapbeth_napi_poll+0x3e/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6628 napi_poll net/core/dev.c:6695 [inline] net_rx_action+0x622/0xbc0 net/core/dev.c:6809 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:arch_stack_walk+0x9d/0x140 arch/x86/kernel/stacktrace.c:18 Code: 00 00 48 c7 45 c0 00 00 00 00 48 c7 45 b8 00 00 00 00 48 c7 45 b0 00 00 00 00 48 c7 45 a8 00 00 00 00 48 c7 45 a0 00 00 00 00 <48> c7 45 98 00 00 00 00 48 c7 45 90 00 00 00 00 48 c7 45 88 00 00 RSP: 0018:ffffc900055ce348 EFLAGS: 00000246 RAX: ffff88813fec3c00 RBX: ffffc900055ce400 RCX: ffffc900055ce3d0 RDX: ffff88813fec3c00 RSI: ffffc900055ce400 RDI: ffffffff8170d890 RBP: ffffc900055ce3d0 R08: ffffc900055ce67f R09: ffffc900055ce480 R10: dffffc0000000000 R11: fffff52000ab9cd0 R12: ffff88813fec3c00 R13: ffffc900055ce760 R14: ffffffff8170d890 R15: 0000000000000000 stack_trace_save+0xa6/0xf0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xb6/0x200 mm/slub.c:3700 ocfs2_write_begin_nolock+0x4504/0x4590 fs/ocfs2/aops.c:1827 ocfs2_dio_wr_get_block+0xba4/0x1810 fs/ocfs2/aops.c:2241 get_more_blocks fs/direct-io.c:659 [inline] do_direct_IO fs/direct-io.c:947 [inline] __blockdev_direct_IO+0x171f/0x34c0 fs/direct-io.c:1260 ocfs2_direct_IO+0x233/0x2a0 fs/ocfs2/aops.c:2488 generic_file_direct_write+0x112/0x330 mm/filemap.c:3787 __generic_file_write_iter+0x15f/0x2a0 mm/filemap.c:3945 ocfs2_file_write_iter+0x1731/0x1fc0 fs/ocfs2/file.c:2469 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x638/0xb10 fs/read_write.c:861 iter_file_splice_write+0x6be/0xcf0 fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:950 splice_direct_to_actor+0x4b8/0xbd0 fs/splice.c:896 do_splice_direct+0x1ce/0x2f0 fs/splice.c:1002 do_sendfile+0x51b/0xe20 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fbff7d9e0d9 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:00007fbff8d3f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbff8025fa0 RCX: 00007fbff7d9e0d9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fbff7e35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000fffe82 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbff8026038 R14: 00007fbff8025fa0 R15: 00007ffda01a2fb8 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 c7 45 c0 00 00 00 movq $0x0,-0x40(%rbp) 9: 00 a: 48 c7 45 b8 00 00 00 movq $0x0,-0x48(%rbp) 11: 00 12: 48 c7 45 b0 00 00 00 movq $0x0,-0x50(%rbp) 19: 00 1a: 48 c7 45 a8 00 00 00 movq $0x0,-0x58(%rbp) 21: 00 22: 48 c7 45 a0 00 00 00 movq $0x0,-0x60(%rbp) 29: 00 * 2a: 48 c7 45 98 00 00 00 movq $0x0,-0x68(%rbp) <-- trapping instruction 31: 00 32: 48 c7 45 90 00 00 00 movq $0x0,-0x70(%rbp) 39: 00 3a: 48 rex.W 3b: c7 .byte 0xc7 3c: 45 88 00 mov %r8b,(%r8)