================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.1.2178/19220 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888061af4130 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1784 [inline] ffff888061af4130 (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:5790 lock_sock_nested+0x48/0x100 net/core/sock.c:3566 lock_sock include/net/sock.h:1784 [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: 5360 hardirqs last enabled at (5360): [] __local_bh_enable_ip+0x13a/0x1c0 kernel/softirq.c:411 hardirqs last disabled at (5359): [] __local_bh_enable_ip+0xdb/0x1c0 kernel/softirq.c:388 softirqs last enabled at (3226): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last enabled at (3226): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last enabled at (3226): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 softirqs last disabled at (5283): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last disabled at (5283): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last disabled at (5283): [] __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 *** 6 locks held by syz.1.2178/19220: #0: ffff88806569ea20 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:146 [inline] #0: ffff88806569ea20 (&mm->mmap_lock){++++}-{3:3}, at: __mm_populate+0x183/0x390 mm/gup.c:1675 #1: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: handle_mm_fault+0xe6/0x4a40 mm/memory.c:5330 #2: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #2: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #2: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: filemap_map_pages+0x1d7/0x19c0 mm/filemap.c:3618 #3: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #3: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #3: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: __pte_offset_map+0x2c/0x280 mm/pgtable-generic.c:287 #4: ffff88801df43c18 (ptlock_ptr(ptdesc)#2){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #4: ffff88801df43c18 (ptlock_ptr(ptdesc)#2){+.+.}-{2:2}, at: __pte_offset_map_lock+0x106/0x1d0 mm/pgtable-generic.c:375 #5: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #5: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #5: ffffffff8e1322e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_core+0x34/0x230 net/core/dev.c:5734 stack backtrace: CPU: 1 PID: 19220 Comm: syz.1.2178 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4041 mark_lock_irq+0xad/0x900 kernel/locking/lockdep.c:4244 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4706 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xdf7/0x7eb0 kernel/locking/lockdep.c:5125 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790 lock_sock_nested+0x48/0x100 net/core/sock.c:3566 lock_sock include/net/sock.h:1784 [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:5710 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5735 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6714 napi_poll net/core/dev.c:6781 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6917 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:check_kcov_mode kernel/kcov.c:189 [inline] RIP: 0010:write_comp_data kernel/kcov.c:241 [inline] RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x36/0x90 kernel/kcov.c:309 Code: a0 d5 7b 7e 65 8b 0d a1 d5 7b 7e 81 e1 00 01 ff 00 74 11 81 f9 00 01 00 00 75 5b 83 ba 24 16 00 00 00 74 52 8b 8a 00 16 00 00 <83> f9 03 75 47 48 8b 8a 08 16 00 00 44 8b 8a 04 16 00 00 49 c1 e1 RSP: 0018:ffffc9000477f740 EFLAGS: 00000246 RAX: ffffffff81b7e808 RBX: ffffea0001018b00 RCX: 0000000000000002 RDX: ffff88802cf53c00 RSI: 0000000000000003 RDI: 0000000000000000 RBP: 1ffffd4000203160 R08: ffffea0001018b37 R09: 1ffffd4000203166 R10: dffffc0000000000 R11: fffff94000203167 R12: ffffc9000477f880 R13: 0000000000000003 R14: ffffea0001018b34 R15: 1ffffd4000203161 raw_atomic_fetch_add_unless include/linux/atomic/atomic-arch-fallback.h:2407 [inline] raw_atomic_add_unless include/linux/atomic/atomic-arch-fallback.h:2433 [inline] atomic_add_unless include/linux/atomic/atomic-instrumented.h:1508 [inline] page_ref_add_unless include/linux/page_ref.h:238 [inline] folio_ref_add_unless include/linux/page_ref.h:247 [inline] folio_try_get include/linux/page_ref.h:263 [inline] next_uptodate_folio+0x188/0xb20 mm/filemap.c:3484 filemap_map_pages+0x100c/0x19c0 mm/filemap.c:3665 do_fault_around mm/memory.c:4595 [inline] do_read_fault mm/memory.c:4628 [inline] do_fault mm/memory.c:4775 [inline] do_pte_missing mm/memory.c:3689 [inline] handle_pte_fault mm/memory.c:5047 [inline] __handle_mm_fault mm/memory.c:5190 [inline] handle_mm_fault+0x3845/0x4a40 mm/memory.c:5355 faultin_page mm/gup.c:868 [inline] __get_user_pages+0x604/0x1580 mm/gup.c:1167 populate_vma_page_range+0x2c1/0x380 mm/gup.c:1593 __mm_populate+0x260/0x390 mm/gup.c:1696 mm_populate include/linux/mm.h:3383 [inline] vm_mmap_pgoff+0x2da/0x3f0 mm/util.c:578 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:0x7fb5d559f559 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:00007fb5d6493028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fb5d5825fa0 RCX: 00007fb5d559f559 RDX: b635773f06ebbeeb RSI: 0000000000b36000 RDI: 0000200000000000 RBP: 00007fb5d5636b50 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb5d5826038 R14: 00007fb5d5825fa0 R15: 00007ffe13425ac8 BUG: sleeping function called from invalid context at net/core/sock.c:3568 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 19220, name: syz.1.2178 preempt_count: 101, expected: 0 RCU nest depth: 4, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 19220 Comm: syz.1.2178 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 __might_resched+0x48d/0x5f0 kernel/sched/core.c:10264 lock_sock_nested+0x5d/0x100 net/core/sock.c:3568 lock_sock include/net/sock.h:1784 [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:5710 [inline] netif_receive_skb_core+0x16a/0x230 net/core/dev.c:5735 lapbeth_napi_poll+0x42/0x80 drivers/net/wan/lapbether.c:99 __napi_poll+0xbb/0x460 net/core/dev.c:6714 napi_poll net/core/dev.c:6781 [inline] net_rx_action+0x65f/0xcc0 net/core/dev.c:6917 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:check_kcov_mode kernel/kcov.c:189 [inline] RIP: 0010:write_comp_data kernel/kcov.c:241 [inline] RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x36/0x90 kernel/kcov.c:309 Code: a0 d5 7b 7e 65 8b 0d a1 d5 7b 7e 81 e1 00 01 ff 00 74 11 81 f9 00 01 00 00 75 5b 83 ba 24 16 00 00 00 74 52 8b 8a 00 16 00 00 <83> f9 03 75 47 48 8b 8a 08 16 00 00 44 8b 8a 04 16 00 00 49 c1 e1 RSP: 0018:ffffc9000477f740 EFLAGS: 00000246 RAX: ffffffff81b7e808 RBX: ffffea0001018b00 RCX: 0000000000000002 RDX: ffff88802cf53c00 RSI: 0000000000000003 RDI: 0000000000000000 RBP: 1ffffd4000203160 R08: ffffea0001018b37 R09: 1ffffd4000203166 R10: dffffc0000000000 R11: fffff94000203167 R12: ffffc9000477f880 R13: 0000000000000003 R14: ffffea0001018b34 R15: 1ffffd4000203161 raw_atomic_fetch_add_unless include/linux/atomic/atomic-arch-fallback.h:2407 [inline] raw_atomic_add_unless include/linux/atomic/atomic-arch-fallback.h:2433 [inline] atomic_add_unless include/linux/atomic/atomic-instrumented.h:1508 [inline] page_ref_add_unless include/linux/page_ref.h:238 [inline] folio_ref_add_unless include/linux/page_ref.h:247 [inline] folio_try_get include/linux/page_ref.h:263 [inline] next_uptodate_folio+0x188/0xb20 mm/filemap.c:3484 filemap_map_pages+0x100c/0x19c0 mm/filemap.c:3665 do_fault_around mm/memory.c:4595 [inline] do_read_fault mm/memory.c:4628 [inline] do_fault mm/memory.c:4775 [inline] do_pte_missing mm/memory.c:3689 [inline] handle_pte_fault mm/memory.c:5047 [inline] __handle_mm_fault mm/memory.c:5190 [inline] handle_mm_fault+0x3845/0x4a40 mm/memory.c:5355 faultin_page mm/gup.c:868 [inline] __get_user_pages+0x604/0x1580 mm/gup.c:1167 populate_vma_page_range+0x2c1/0x380 mm/gup.c:1593 __mm_populate+0x260/0x390 mm/gup.c:1696 mm_populate include/linux/mm.h:3383 [inline] vm_mmap_pgoff+0x2da/0x3f0 mm/util.c:578 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:0x7fb5d559f559 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:00007fb5d6493028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fb5d5825fa0 RCX: 00007fb5d559f559 RDX: b635773f06ebbeeb RSI: 0000000000b36000 RDI: 0000200000000000 RBP: 00007fb5d5636b50 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb5d5826038 R14: 00007fb5d5825fa0 R15: 00007ffe13425ac8 ---------------- Code disassembly (best guess): 0: a0 d5 7b 7e 65 8b 0d movabs 0xd5a10d8b657e7bd5,%al 7: a1 d5 9: 7b 7e jnp 0x89 b: 81 e1 00 01 ff 00 and $0xff0100,%ecx 11: 74 11 je 0x24 13: 81 f9 00 01 00 00 cmp $0x100,%ecx 19: 75 5b jne 0x76 1b: 83 ba 24 16 00 00 00 cmpl $0x0,0x1624(%rdx) 22: 74 52 je 0x76 24: 8b 8a 00 16 00 00 mov 0x1600(%rdx),%ecx * 2a: 83 f9 03 cmp $0x3,%ecx <-- trapping instruction 2d: 75 47 jne 0x76 2f: 48 8b 8a 08 16 00 00 mov 0x1608(%rdx),%rcx 36: 44 8b 8a 04 16 00 00 mov 0x1604(%rdx),%r9d 3d: 49 rex.WB 3e: c1 .byte 0xc1 3f: e1 .byte 0xe1