================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor/5628 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888035c40260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1717 [inline] ffff888035c40260 (sk_lock-AF_X25){+.?.}-{0:0}, at: x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 lock_sock_nested+0x41/0x100 net/core/sock.c:3909 lock_sock include/net/sock.h:1717 [inline] x25_release+0xa0/0x3d0 net/x25/af_x25.c:629 __sock_release+0xa0/0x1f0 net/socket.c:735 sock_close+0x1c/0x30 net/socket.c:1529 __fput+0x408/0xa40 fs/file_table.c:512 fput_close_sync+0x11f/0x240 fs/file_table.c:618 filp_close_sync+0x6e/0xa0 fs/open.c:1574 __range_close fs/file.c:919 [inline] __do_sys_close_range fs/file.c:1003 [inline] __se_sys_close_range+0xa77/0xef0 fs/file.c:954 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 650022 hardirqs last enabled at (650022): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (650021): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (649894): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last enabled at (649894): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last enabled at (649894): [] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 softirqs last disabled at (649963): [] __do_softirq kernel/softirq.c:703 [inline] softirqs last disabled at (649963): [] invoke_softirq kernel/softirq.c:542 [inline] softirqs last disabled at (649963): [] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 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-executor/5628: 8, on CPU#0: #0: ffffffff9023a910 (dup_mmap_sem){.+.+}-{0:0}, at: dup_mm kernel/fork.c:1536 [inline] #0: ffffffff9023a910 (dup_mmap_sem){.+.+}-{0:0}, at: copy_mm+0xf6/0x640 kernel/fork.c:1602 #1: ffff88802e05e540 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:566 [inline] #1: ffff88802e05e540 (&mm->mmap_lock){++++}-{4:4}, at: dup_mm kernel/fork.c:1537 [inline] #1: ffff88802e05e540 (&mm->mmap_lock){++++}-{4:4}, at: copy_mm+0x110/0x640 kernel/fork.c:1602 #2: ffff888036e0b440 (&mm->mmap_lock/1){+.+.}-{4:4}, at: mmap_write_lock_nested include/linux/mmap_lock.h:556 [inline] #2: ffff888036e0b440 (&mm->mmap_lock/1){+.+.}-{4:4}, at: dup_mmap+0x1f6/0x1c80 mm/mmap.c:1722 #3: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #3: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #3: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:302 #4: ffff88807c413cd8 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] #4: ffff88807c413cd8 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: pte_offset_map_lock+0x13d/0x210 mm/pgtable-generic.c:423 #5: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #5: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #5: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:302 #6: ffff88805d8f4498 (ptlock_ptr(ptdesc)#2/1){+.+.}-{3:3}, at: copy_pte_range mm/memory.c:1334 [inline] #6: ffff88805d8f4498 (ptlock_ptr(ptdesc)#2/1){+.+.}-{3:3}, at: copy_pmd_range+0x6f8/0x5e60 mm/memory.c:1470 #7: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #7: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #7: ffffffff9015a320 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6477 stack backtrace: CPU: 0 UID: 0 PID: 5628 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_usage_bug+0x28c/0x2e0 kernel/locking/lockdep.c:4086 valid_state+0xbe/0xf0 kernel/locking/lockdep.c:4100 mark_lock_irq+0x36/0x380 kernel/locking/lockdep.c:4311 mark_lock+0x117/0x190 kernel/locking/lockdep.c:4797 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0x71e/0x2de0 kernel/locking/lockdep.c:5242 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 lock_sock_nested+0x41/0x100 net/core/sock.c:3909 lock_sock include/net/sock.h:1717 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6453 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6478 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:8003 napi_poll net/core/dev.c:8066 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8223 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 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:_compound_head include/linux/page-flags.h:221 [inline] RIP: 0010:__folio_rmap_sanity_checks include/linux/rmap.h:351 [inline] RIP: 0010:__folio_dup_file_rmap include/linux/rmap.h:498 [inline] RIP: 0010:folio_dup_file_rmap_pte include/linux/rmap.h:544 [inline] RIP: 0010:copy_present_ptes mm/memory.c:1254 [inline] RIP: 0010:copy_pte_range mm/memory.c:1382 [inline] RIP: 0010:copy_pmd_range+0xc7e/0x5e60 mm/memory.c:1470 Code: 21 e3 4c 89 ff 48 89 de e8 7f e3 a1 ff 49 39 df 0f 85 a1 1c 00 00 e8 a1 e0 a1 ff 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 08 <80> 3c 01 00 74 0a 49 8d 7c 24 08 e8 72 ed 19 00 49 8b 44 24 08 89 RSP: 0018:ffffc90003aef300 EFLAGS: 00000293 RAX: dffffc0000000000 RBX: ffffea0001a6edc0 RCX: 1ffffd400034ddb9 RDX: 0000000000000000 RSI: ffffea0001a6edc0 RDI: ffffea0001a6edc0 RBP: ffffc90003aef590 R08: ffffea0001a6edf7 R09: 1ffffd400034ddbe R10: dffffc0000000000 R11: fffff9400034ddbf R12: ffffea0001a6edc0 R13: 1ffffd400034ddbb R14: 0000000000069bb7 R15: ffffea0001a6edc0 copy_pud_range mm/memory.c:1505 [inline] copy_p4d_range mm/memory.c:1529 [inline] copy_page_range+0xcf9/0x1320 mm/memory.c:1615 dup_mmap+0xdd7/0x1c80 mm/mmap.c:1813 dup_mm kernel/fork.c:1549 [inline] copy_mm+0x2ae/0x640 kernel/fork.c:1602 copy_process+0x1ecc/0x4510 kernel/fork.c:2328 kernel_clone+0x2d7/0x940 kernel/fork.c:2798 __do_sys_clone kernel/fork.c:2940 [inline] __se_sys_clone kernel/fork.c:2924 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2924 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5b053d5852 Code: 89 e7 e8 b1 c7 f6 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 89 c5 85 c0 75 3b 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffe2d675f10 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffe2d675f10 RCX: 00007f5b053d5852 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffe2d67609c R08: 0000000000000000 R09: 0000000000000001 R10: 000055556841e7d0 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000000927c0 R14: 00000000000256ba R15: 00007ffe2d6760f0 BUG: sleeping function called from invalid context at net/core/sock.c:3911 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5628, name: syz-executor preempt_count: 102, expected: 0 RCU nest depth: 3, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 5628 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x36a/0x4c0 kernel/sched/core.c:9202 lock_sock_nested+0x56/0x100 net/core/sock.c:3911 lock_sock include/net/sock.h:1717 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1775 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6453 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6478 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:8003 napi_poll net/core/dev.c:8066 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8223 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 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:_compound_head include/linux/page-flags.h:221 [inline] RIP: 0010:__folio_rmap_sanity_checks include/linux/rmap.h:351 [inline] RIP: 0010:__folio_dup_file_rmap include/linux/rmap.h:498 [inline] RIP: 0010:folio_dup_file_rmap_pte include/linux/rmap.h:544 [inline] RIP: 0010:copy_present_ptes mm/memory.c:1254 [inline] RIP: 0010:copy_pte_range mm/memory.c:1382 [inline] RIP: 0010:copy_pmd_range+0xc7e/0x5e60 mm/memory.c:1470 Code: 21 e3 4c 89 ff 48 89 de e8 7f e3 a1 ff 49 39 df 0f 85 a1 1c 00 00 e8 a1 e0 a1 ff 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 08 <80> 3c 01 00 74 0a 49 8d 7c 24 08 e8 72 ed 19 00 49 8b 44 24 08 89 RSP: 0018:ffffc90003aef300 EFLAGS: 00000293 RAX: dffffc0000000000 RBX: ffffea0001a6edc0 RCX: 1ffffd400034ddb9 RDX: 0000000000000000 RSI: ffffea0001a6edc0 RDI: ffffea0001a6edc0 RBP: ffffc90003aef590 R08: ffffea0001a6edf7 R09: 1ffffd400034ddbe R10: dffffc0000000000 R11: fffff9400034ddbf R12: ffffea0001a6edc0 R13: 1ffffd400034ddbb R14: 0000000000069bb7 R15: ffffea0001a6edc0 copy_pud_range mm/memory.c:1505 [inline] copy_p4d_range mm/memory.c:1529 [inline] copy_page_range+0xcf9/0x1320 mm/memory.c:1615 dup_mmap+0xdd7/0x1c80 mm/mmap.c:1813 dup_mm kernel/fork.c:1549 [inline] copy_mm+0x2ae/0x640 kernel/fork.c:1602 copy_process+0x1ecc/0x4510 kernel/fork.c:2328 kernel_clone+0x2d7/0x940 kernel/fork.c:2798 __do_sys_clone kernel/fork.c:2940 [inline] __se_sys_clone kernel/fork.c:2924 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2924 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5b053d5852 Code: 89 e7 e8 b1 c7 f6 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 89 c5 85 c0 75 3b 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffe2d675f10 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffe2d675f10 RCX: 00007f5b053d5852 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffe2d67609c R08: 0000000000000000 R09: 0000000000000001 R10: 000055556841e7d0 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000000927c0 R14: 00000000000256ba R15: 00007ffe2d6760f0 ---------------- Code disassembly (best guess): 0: 21 e3 and %esp,%ebx 2: 4c 89 ff mov %r15,%rdi 5: 48 89 de mov %rbx,%rsi 8: e8 7f e3 a1 ff call 0xffa1e38c d: 49 39 df cmp %rbx,%r15 10: 0f 85 a1 1c 00 00 jne 0x1cb7 16: e8 a1 e0 a1 ff call 0xffa1e0bc 1b: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 22: fc ff df 25: 48 8b 4c 24 08 mov 0x8(%rsp),%rcx * 2a: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) <-- trapping instruction 2e: 74 0a je 0x3a 30: 49 8d 7c 24 08 lea 0x8(%r12),%rdi 35: e8 72 ed 19 00 call 0x19edac 3a: 49 8b 44 24 08 mov 0x8(%r12),%rax 3f: 89 .byte 0x89