================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor/5618 [HC0[0]:SC1[1]:HE1:SE0] takes: ffff888055ae8260 (sk_lock-AF_X25){+.?.}-{0:0}, at: lock_sock include/net/sock.h:1713 [inline] ffff888055ae8260 (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:5942 lock_sock_nested+0x41/0x100 net/core/sock.c:3837 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:343 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f irq event stamp: 809070 hardirqs last enabled at (809070): [] __local_bh_enable_ip+0xd6/0x140 kernel/softirq.c:478 hardirqs last disabled at (809069): [] __local_bh_enable_ip+0x72/0x140 kernel/softirq.c:455 softirqs last enabled at (809010): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last enabled at (809010): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last enabled at (809010): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758 softirqs last disabled at (809023): [] __do_softirq kernel/softirq.c:679 [inline] softirqs last disabled at (809023): [] invoke_softirq kernel/softirq.c:519 [inline] softirqs last disabled at (809023): [] __irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758 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/5618: 8, last CPU#0: #0: ffffffff8ee36730 (dup_mmap_sem){.+.+}-{0:0}, at: dup_mm kernel/fork.c:1542 [inline] #0: ffffffff8ee36730 (dup_mmap_sem){.+.+}-{0:0}, at: copy_mm+0x10f/0x480 kernel/fork.c:1595 #1: ffff88803592c378 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:562 [inline] #1: ffff88803592c378 (&mm->mmap_lock){++++}-{4:4}, at: dup_mmap+0x195/0x1dc0 mm/mmap.c:1716 #2: ffff8880128ee9b8 (&mm->mmap_lock/1){+.+.}-{4:4}, at: mmap_write_lock_nested include/linux/mmap_lock.h:552 [inline] #2: ffff8880128ee9b8 (&mm->mmap_lock/1){+.+.}-{4:4}, at: dup_mmap+0x221/0x1dc0 mm/mmap.c:1723 #3: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #3: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #3: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:290 #4: ffff888032c76978 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] #4: ffff888032c76978 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: pte_offset_map_lock+0x13d/0x210 mm/pgtable-generic.c:404 #5: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #5: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #5: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x29/0x240 mm/pgtable-generic.c:290 #6: ffff8880718917f8 (ptlock_ptr(ptdesc)#2/1){+.+.}-{3:3}, at: copy_pte_range mm/memory.c:1354 [inline] #6: ffff8880718917f8 (ptlock_ptr(ptdesc)#2/1){+.+.}-{3:3}, at: copy_pmd_range+0x6fb/0x5c10 mm/memory.c:1490 #7: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #7: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #7: ffffffff8ed5c920 (rcu_read_lock){....}-{1:3}, at: netif_receive_skb_core+0x33/0x2b0 net/core/dev.c:6321 stack backtrace: CPU: 0 UID: 0 PID: 5618 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) 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: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:3837 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:6297 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6322 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7830 napi_poll net/core/dev.c:7893 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8050 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:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 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:page_table_check_pte_flags mm/page_table_check.c:202 [inline] RIP: 0010:__page_table_check_ptes_set+0x60/0x340 mm/page_table_check.c:218 Code: ff e8 34 19 84 ff 44 89 e8 44 89 ee 25 01 01 00 00 74 2b 81 e6 00 04 00 00 31 ff e8 1a 19 84 ff 44 89 e8 25 00 04 00 00 75 30 0b 14 84 ff e9 26 01 00 00 e8 01 14 84 ff e9 5f 02 00 00 83 e6 RSP: 0018:ffffc90004557290 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff8880128ee600 RCX: ffff888034698000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000001 R09: 1ffff1100e33936c R10: dffffc0000000000 R11: ffffed100e33936d R12: 00007fdb3b0e2000 R13: 80000000626e9007 R14: ffff8880758b2710 R15: ffff8880128ee600 page_table_check_ptes_set include/linux/page_table_check.h:83 [inline] set_ptes include/linux/pgtable.h:447 [inline] __copy_present_ptes mm/memory.c:1200 [inline] copy_present_ptes mm/memory.c:1279 [inline] copy_pte_range mm/memory.c:1402 [inline] copy_pmd_range+0x4adc/0x5c10 mm/memory.c:1490 copy_pud_range mm/memory.c:1527 [inline] copy_p4d_range mm/memory.c:1551 [inline] copy_page_range+0xc82/0x1290 mm/memory.c:1637 dup_mmap+0xf17/0x1dc0 mm/mmap.c:1819 dup_mm kernel/fork.c:1543 [inline] copy_mm+0x11a/0x480 kernel/fork.c:1595 copy_process+0x1e79/0x4400 kernel/fork.c:2310 kernel_clone+0x2d7/0x940 kernel/fork.c:2769 __do_sys_clone kernel/fork.c:2911 [inline] __se_sys_clone kernel/fork.c:2895 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2895 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:0x7fdb3c3c6bd2 Code: 89 e7 e8 71 8b f7 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:00007ffcd527e290 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffcd527e290 RCX: 00007fdb3c3c6bd2 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffcd527e41c R08: 0000000000000000 R09: 0000000000000001 R10: 000055558da227d0 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000000927c0 R14: 000000000002790b R15: 00007ffcd527e470 BUG: sleeping function called from invalid context at net/core/sock.c:3839 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5618, 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: 5618 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) 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:9264 lock_sock_nested+0x56/0x100 net/core/sock.c:3839 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:6297 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6322 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7830 napi_poll net/core/dev.c:7893 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:8050 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:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 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:page_table_check_pte_flags mm/page_table_check.c:202 [inline] RIP: 0010:__page_table_check_ptes_set+0x60/0x340 mm/page_table_check.c:218 Code: ff e8 34 19 84 ff 44 89 e8 44 89 ee 25 01 01 00 00 74 2b 81 e6 00 04 00 00 31 ff e8 1a 19 84 ff 44 89 e8 25 00 04 00 00 75 30 0b 14 84 ff e9 26 01 00 00 e8 01 14 84 ff e9 5f 02 00 00 83 e6 RSP: 0018:ffffc90004557290 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff8880128ee600 RCX: ffff888034698000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000001 R09: 1ffff1100e33936c R10: dffffc0000000000 R11: ffffed100e33936d R12: 00007fdb3b0e2000 R13: 80000000626e9007 R14: ffff8880758b2710 R15: ffff8880128ee600 page_table_check_ptes_set include/linux/page_table_check.h:83 [inline] set_ptes include/linux/pgtable.h:447 [inline] __copy_present_ptes mm/memory.c:1200 [inline] copy_present_ptes mm/memory.c:1279 [inline] copy_pte_range mm/memory.c:1402 [inline] copy_pmd_range+0x4adc/0x5c10 mm/memory.c:1490 copy_pud_range mm/memory.c:1527 [inline] copy_p4d_range mm/memory.c:1551 [inline] copy_page_range+0xc82/0x1290 mm/memory.c:1637 dup_mmap+0xf17/0x1dc0 mm/mmap.c:1819 dup_mm kernel/fork.c:1543 [inline] copy_mm+0x11a/0x480 kernel/fork.c:1595 copy_process+0x1e79/0x4400 kernel/fork.c:2310 kernel_clone+0x2d7/0x940 kernel/fork.c:2769 __do_sys_clone kernel/fork.c:2911 [inline] __se_sys_clone kernel/fork.c:2895 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2895 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:0x7fdb3c3c6bd2 Code: 89 e7 e8 71 8b f7 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:00007ffcd527e290 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffcd527e290 RCX: 00007fdb3c3c6bd2 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffcd527e41c R08: 0000000000000000 R09: 0000000000000001 R10: 000055558da227d0 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000000927c0 R14: 000000000002790b R15: 00007ffcd527e470 ---------------- Code disassembly (best guess): 0: ff ljmp (bad) 1: e8 34 19 84 ff call 0xff84193a 6: 44 89 e8 mov %r13d,%eax 9: 44 89 ee mov %r13d,%esi c: 25 01 01 00 00 and $0x101,%eax 11: 74 2b je 0x3e 13: 81 e6 00 04 00 00 and $0x400,%esi 19: 31 ff xor %edi,%edi 1b: e8 1a 19 84 ff call 0xff84193a 20: 44 89 e8 mov %r13d,%eax 23: 25 00 04 00 00 and $0x400,%eax 28: 75 30 jne 0x5a * 2a: e8 0b 14 84 ff call 0xff84143a <-- trapping instruction 2f: e9 26 01 00 00 jmp 0x15a 34: e8 01 14 84 ff call 0xff84143a 39: e9 5f 02 00 00 jmp 0x29d 3e: 83 .byte 0x83 3f: e6 .byte 0xe6