================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G L -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz.6.475/8262 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888029af8260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff888029af8260 (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_bind+0x209/0x450 net/x25/af_x25.c:694 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind+0x2e3/0x410 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1979 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 irq event stamp: 49710 hardirqs last enabled at (49710): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (49709): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (44470): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (44470): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (44470): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:767 softirqs last disabled at (49635): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (49635): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (49635): [] __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.6.475/8262: 4, last CPU#0: #0: ffff88801e77c460 (sb_writers#5){.+.+}-{0:0}, at: do_coredump fs/coredump.c:1126 [inline] #0: ffff88801e77c460 (sb_writers#5){.+.+}-{0:0}, at: vfs_coredump+0x3766/0x4530 fs/coredump.c:1195 #1: ffff8880212de9b8 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_lock_killable include/linux/mmap_lock.h:609 [inline] #1: ffff8880212de9b8 (&mm->mmap_lock){++++}-{4:4}, at: dump_user_range+0x1c5/0x12c0 fs/coredump.c:1349 #2: ffffffff8ed5ca60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #2: ffffffff8ed5ca60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8ed5ca60 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:290 #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: 0 UID: 0 PID: 8262 Comm: syz.6.475 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:__sanitizer_cov_trace_const_cmp8+0x9a/0xa0 kernel/kcov.c:319 Code: c1 e1 05 4c 8d 51 28 4d 39 ca 77 1e 49 ff c0 4c 89 02 48 c7 44 0a 08 07 00 00 00 48 89 7c 0a 10 48 89 74 0a 18 48 89 44 0a 20 d1 04 1f 0a cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc90007cd6900 EFLAGS: 00000293 RAX: ffffffff8223223c RBX: ffff88805eb93350 RCX: ffff8880531a0000 RDX: 0000000000000000 RSI: 0000000077bd3067 RDI: 0000000000000000 RBP: 0000000077bd3067 R08: d400000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8ed5ca60 R12: 1ffff1100bd7266a R13: ffff88807f223010 R14: ffffc90007cd6a00 R15: ffffea0000000000 __pte_needs_invert arch/x86/include/asm/pgtable-invert.h:18 [inline] protnone_mask arch/x86/include/asm/pgtable-invert.h:24 [inline] pmd_pfn arch/x86/include/asm/pgtable.h:266 [inline] pte_lockptr include/linux/mm.h:3864 [inline] pte_offset_map_lock+0xbc/0x210 mm/pgtable-generic.c:403 follow_page_pte+0xc9/0xf10 mm/gup.c:812 follow_pmd_mask mm/gup.c:-1 [inline] follow_pud_mask mm/gup.c:967 [inline] follow_p4d_mask mm/gup.c:984 [inline] follow_page_mask mm/gup.c:1023 [inline] __get_user_pages+0xa77/0x2750 mm/gup.c:1426 __get_user_pages_locked mm/gup.c:1692 [inline] get_dump_page+0x1b5/0x410 mm/gup.c:2192 dump_user_range+0x20a/0x12c0 fs/coredump.c:1361 elf_core_dump+0x3485/0x3a90 fs/binfmt_elf.c:2106 coredump_write+0x1290/0x1960 fs/coredump.c:1047 do_coredump fs/coredump.c:1126 [inline] vfs_coredump+0x3766/0x4530 fs/coredump.c:1195 get_signal+0x1094/0x12c0 kernel/signal.c:3024 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x2ba/0x910 kernel/entry/common.c:165 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f81eef9e0e1 Code: 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 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:fffffffffffffe70 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f81ef225fa0 RCX: 00007f81eef9e0d9 RDX: 0000000000000000 RSI: fffffffffffffe70 RDI: 0000000000008000 RBP: 00007f81ef035024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f81ef226038 R14: 00007f81ef225fa0 R15: 00007ffcae4f72c8 BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 8262, name: syz.6.475 preempt_count: 100, expected: 0 RCU nest depth: 2, 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: 0 UID: 0 PID: 8262 Comm: syz.6.475 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:__sanitizer_cov_trace_const_cmp8+0x9a/0xa0 kernel/kcov.c:319 Code: c1 e1 05 4c 8d 51 28 4d 39 ca 77 1e 49 ff c0 4c 89 02 48 c7 44 0a 08 07 00 00 00 48 89 7c 0a 10 48 89 74 0a 18 48 89 44 0a 20 d1 04 1f 0a cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc90007cd6900 EFLAGS: 00000293 RAX: ffffffff8223223c RBX: ffff88805eb93350 RCX: ffff8880531a0000 RDX: 0000000000000000 RSI: 0000000077bd3067 RDI: 0000000000000000 RBP: 0000000077bd3067 R08: d400000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8ed5ca60 R12: 1ffff1100bd7266a R13: ffff88807f223010 R14: ffffc90007cd6a00 R15: ffffea0000000000 __pte_needs_invert arch/x86/include/asm/pgtable-invert.h:18 [inline] protnone_mask arch/x86/include/asm/pgtable-invert.h:24 [inline] pmd_pfn arch/x86/include/asm/pgtable.h:266 [inline] pte_lockptr include/linux/mm.h:3864 [inline] pte_offset_map_lock+0xbc/0x210 mm/pgtable-generic.c:403 follow_page_pte+0xc9/0xf10 mm/gup.c:812 follow_pmd_mask mm/gup.c:-1 [inline] follow_pud_mask mm/gup.c:967 [inline] follow_p4d_mask mm/gup.c:984 [inline] follow_page_mask mm/gup.c:1023 [inline] __get_user_pages+0xa77/0x2750 mm/gup.c:1426 __get_user_pages_locked mm/gup.c:1692 [inline] get_dump_page+0x1b5/0x410 mm/gup.c:2192 dump_user_range+0x20a/0x12c0 fs/coredump.c:1361 elf_core_dump+0x3485/0x3a90 fs/binfmt_elf.c:2106 coredump_write+0x1290/0x1960 fs/coredump.c:1047 do_coredump fs/coredump.c:1126 [inline] vfs_coredump+0x3766/0x4530 fs/coredump.c:1195 get_signal+0x1094/0x12c0 kernel/signal.c:3024 arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x2ba/0x910 kernel/entry/common.c:165 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f81eef9e0e1 Code: 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 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:fffffffffffffe70 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f81ef225fa0 RCX: 00007f81eef9e0d9 RDX: 0000000000000000 RSI: fffffffffffffe70 RDI: 0000000000008000 RBP: 00007f81ef035024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f81ef226038 R14: 00007f81ef225fa0 R15: 00007ffcae4f72c8 ---------------- Code disassembly (best guess): 0: c1 e1 05 shl $0x5,%ecx 3: 4c 8d 51 28 lea 0x28(%rcx),%r10 7: 4d 39 ca cmp %r9,%r10 a: 77 1e ja 0x2a c: 49 ff c0 inc %r8 f: 4c 89 02 mov %r8,(%rdx) 12: 48 c7 44 0a 08 07 00 movq $0x7,0x8(%rdx,%rcx,1) 19: 00 00 1b: 48 89 7c 0a 10 mov %rdi,0x10(%rdx,%rcx,1) 20: 48 89 74 0a 18 mov %rsi,0x18(%rdx,%rcx,1) 25: 48 89 44 0a 20 mov %rax,0x20(%rdx,%rcx,1) * 2a: e9 d1 04 1f 0a jmp 0xa1f0500 <-- trapping instruction 2f: cc int3 30: 90 nop 31: 90 nop 32: 90 nop 33: 90 nop 34: 90 nop 35: 90 nop 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop