------------[ cut here ]------------ WARNING: CPU: 1 PID: 2972 at net/ipv4/route.c:1259 kfree_skb include/linux/skbuff.h:1206 [inline] WARNING: CPU: 1 PID: 2972 at net/ipv4/route.c:1259 ip_rt_bug+0x24/0x110 net/ipv4/route.c:1258 Modules linked in: CPU: 1 PID: 2972 Comm: udevd Not tainted 6.0.0-rc1-syzkaller-00162-ge82c649e851c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:ip_rt_bug+0x24/0x110 net/ipv4/route.c:1259 Code: 01 0f 1f 44 00 00 41 54 55 48 89 d5 53 48 83 ec 08 e8 90 06 a7 f9 66 90 e8 89 06 a7 f9 be 01 00 00 00 48 89 ef e8 8c 78 7a ff <0f> 0b 48 83 c4 08 31 c0 5b 5d 41 5c c3 e8 6a 06 a7 f9 48 8d 7d 10 RSP: 0018:ffffc900001e0898 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88804cf7b700 RCX: 0000000000000100 RDX: ffff88807d67d880 RSI: ffffffff87d504d4 RDI: 0000000000000000 RBP: ffff888076a58280 R08: 0000000000000000 R09: ffffffff908dd9df R10: 0000000000000001 R11: 0000000000000001 R12: ffff888020a07100 R13: ffff888076a58280 R14: 0000000000000000 R15: ffff888076a582d8 FS: 00007fe1b3f8e840(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5d8d7a0000 CR3: 0000000025e96000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dst_output include/net/dst.h:451 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb net/ipv4/ip_output.c:1589 [inline] ip_push_pending_frames+0x125/0x2b0 net/ipv4/ip_output.c:1609 icmp_push_reply+0x2da/0x400 net/ipv4/icmp.c:386 __icmp_send+0xb78/0x13e0 net/ipv4/icmp.c:762 ipv4_send_dest_unreach net/ipv4/route.c:1239 [inline] ipv4_link_failure+0x5a6/0x9a0 net/ipv4/route.c:1246 dst_link_failure include/net/dst.h:430 [inline] arp_error_report+0xc7/0x1c0 net/ipv4/arp.c:296 neigh_invalidate+0x20d/0x560 net/core/neighbour.c:1042 neigh_timer_handler+0xd28/0x10b0 net/core/neighbour.c:1129 call_timer_fn+0x1a0/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x674/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x1d3/0x9c6 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__raw_read_unlock_irqrestore include/linux/rwlock_api_smp.h:242 [inline] RIP: 0010:_raw_read_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:268 Code: 74 24 10 e8 6a f1 dc f7 48 89 ef e8 42 76 dd f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 f3 33 d0 f7 65 8b 05 bc e8 7f 76 85 c0 74 0a 5b 5d c3 e8 f0 fb RSP: 0018:ffffc90002d9fa80 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff211d42e RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffffff8d8455a0 R08: 0000000000000001 R09: ffffffff908dd967 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000293 R13: ffff888076a58a00 R14: ffff88814acbf000 R15: 0000000000000000 netlink_lock_table net/netlink/af_netlink.c:474 [inline] netlink_broadcast+0x9a/0xd90 net/netlink/af_netlink.c:1513 uevent_net_broadcast_untagged lib/kobject_uevent.c:331 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:409 [inline] kobject_uevent_env+0xbf7/0x1640 lib/kobject_uevent.c:593 kobject_synth_uevent+0x701/0x850 lib/kobject_uevent.c:208 uevent_store+0x20/0x50 drivers/base/core.c:2509 dev_attr_store+0x50/0x80 drivers/base/core.c:2211 sysfs_kf_write+0x110/0x160 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f8/0x610 fs/kernfs/file.c:354 call_write_iter include/linux/fs.h:2187 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:578 ksys_write+0x127/0x250 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe1b43749a3 ================================ WARNING: inconsistent lock state 6.0.0-rc1-syzkaller-00162-ge82c649e851c #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. udevd/2972 [HC0[0]:SC1[3]:HE1:SE0] takes: ffffffff8c0beef8 (vmap_area_lock){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline] ffffffff8c0beef8 (vmap_area_lock){+.?.}-{2:2}, at: find_vmap_area+0x1c/0x130 mm/vmalloc.c:1836 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] alloc_vmap_area+0xa0b/0x1d50 mm/vmalloc.c:1617 __get_vm_area_node+0x142/0x3f0 mm/vmalloc.c:2484 get_vm_area_caller+0x43/0x50 mm/vmalloc.c:2537 __ioremap_caller.constprop.0+0x292/0x600 arch/x86/mm/ioremap.c:280 acpi_os_ioremap include/acpi/acpi_io.h:13 [inline] acpi_map drivers/acpi/osl.c:296 [inline] acpi_os_map_iomem+0x463/0x550 drivers/acpi/osl.c:355 acpi_tb_acquire_table+0xd8/0x209 drivers/acpi/acpica/tbdata.c:142 acpi_tb_validate_table drivers/acpi/acpica/tbdata.c:317 [inline] acpi_tb_validate_table+0x50/0x8c drivers/acpi/acpica/tbdata.c:308 acpi_tb_verify_temp_table+0x84/0x674 drivers/acpi/acpica/tbdata.c:504 acpi_reallocate_root_table+0x374/0x3e0 drivers/acpi/acpica/tbxface.c:180 acpi_early_init+0x13a/0x438 drivers/acpi/bus.c:1214 start_kernel+0x3cf/0x48f init/main.c:1099 secondary_startup_64_no_verify+0xce/0xdb irq event stamp: 26726838 hardirqs last enabled at (26726838): [] __up_console_sem+0xae/0xc0 kernel/printk/printk.c:264 hardirqs last disabled at (26726837): [] __up_console_sem+0x93/0xc0 kernel/printk/printk.c:262 softirqs last enabled at (26724420): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (26724420): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (26725627): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (26725627): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(vmap_area_lock); lock(vmap_area_lock); *** DEADLOCK *** 6 locks held by udevd/2972: #0: ffff88807ee66460 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x127/0x250 fs/read_write.c:631 #1: ffff88801262ac88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x28c/0x610 fs/kernfs/file.c:345 #2: ffff88801dd1a748 (kn->active#32){++++}-{0:0}, at: kernfs_fop_write_iter+0x2b0/0x610 fs/kernfs/file.c:346 #3: ffffffff8c915388 (uevent_sock_mutex){+.+.}-{3:3}, at: kobject_uevent_env+0x99f/0x1640 lib/kobject_uevent.c:586 #4: ffffc900001e0d70 ((&n->timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:31 [inline] #4: ffffc900001e0d70 ((&n->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1464 #5: ffff888017d09430 (k-slock-AF_INET){+.-.}-{2:2}, at: spin_trylock include/linux/spinlock.h:359 [inline] #5: ffff888017d09430 (k-slock-AF_INET){+.-.}-{2:2}, at: icmp_xmit_lock net/ipv4/icmp.c:204 [inline] #5: ffff888017d09430 (k-slock-AF_INET){+.-.}-{2:2}, at: __icmp_send+0x621/0x13e0 net/ipv4/icmp.c:683 stack backtrace: CPU: 1 PID: 2972 Comm: udevd Not tainted 6.0.0-rc1-syzkaller-00162-ge82c649e851c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_usage_bug kernel/locking/lockdep.c:3961 [inline] valid_state kernel/locking/lockdep.c:3973 [inline] mark_lock_irq kernel/locking/lockdep.c:4176 [inline] mark_lock.part.0.cold+0x18/0xd8 kernel/locking/lockdep.c:4632 mark_lock kernel/locking/lockdep.c:4596 [inline] mark_usage kernel/locking/lockdep.c:4527 [inline] __lock_acquire+0x11d9/0x56d0 kernel/locking/lockdep.c:5007 lock_acquire kernel/locking/lockdep.c:5666 [inline] lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] find_vmap_area+0x1c/0x130 mm/vmalloc.c:1836 check_heap_object mm/usercopy.c:176 [inline] __check_object_size mm/usercopy.c:250 [inline] __check_object_size+0x1f8/0x700 mm/usercopy.c:212 check_object_size include/linux/thread_info.h:199 [inline] __copy_from_user_inatomic include/linux/uaccess.h:62 [inline] copy_from_user_nmi arch/x86/lib/usercopy.c:47 [inline] copy_from_user_nmi+0xcb/0x130 arch/x86/lib/usercopy.c:31 copy_code arch/x86/kernel/dumpstack.c:91 [inline] show_opcodes+0x59/0xb0 arch/x86/kernel/dumpstack.c:121 show_iret_regs+0xd/0x33 arch/x86/kernel/dumpstack.c:149 __show_regs+0x1e/0x60 arch/x86/kernel/process_64.c:74 show_trace_log_lvl+0x25b/0x2ba arch/x86/kernel/dumpstack.c:292 __warn+0xe2/0x190 kernel/panic.c:621 report_bug+0x1bc/0x210 lib/bug.c:198 handle_bug+0x3c/0x60 arch/x86/kernel/traps.c:316 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:336 asm_exc_invalid_op+0x16/0x20 arch/x86/include/asm/idtentry.h:568 RIP: 0010:ip_rt_bug+0x24/0x110 net/ipv4/route.c:1259 Code: 01 0f 1f 44 00 00 41 54 55 48 89 d5 53 48 83 ec 08 e8 90 06 a7 f9 66 90 e8 89 06 a7 f9 be 01 00 00 00 48 89 ef e8 8c 78 7a ff <0f> 0b 48 83 c4 08 31 c0 5b 5d 41 5c c3 e8 6a 06 a7 f9 48 8d 7d 10 RSP: 0018:ffffc900001e0898 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88804cf7b700 RCX: 0000000000000100 RDX: ffff88807d67d880 RSI: ffffffff87d504d4 RDI: 0000000000000000 RBP: ffff888076a58280 R08: 0000000000000000 R09: ffffffff908dd9df R10: 0000000000000001 R11: 0000000000000001 R12: ffff888020a07100 R13: ffff888076a58280 R14: 0000000000000000 R15: ffff888076a582d8 dst_output include/net/dst.h:451 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb net/ipv4/ip_output.c:1589 [inline] ip_push_pending_frames+0x125/0x2b0 net/ipv4/ip_output.c:1609 icmp_push_reply+0x2da/0x400 net/ipv4/icmp.c:386 __icmp_send+0xb78/0x13e0 net/ipv4/icmp.c:762 ipv4_send_dest_unreach net/ipv4/route.c:1239 [inline] ipv4_link_failure+0x5a6/0x9a0 net/ipv4/route.c:1246 dst_link_failure include/net/dst.h:430 [inline] arp_error_report+0xc7/0x1c0 net/ipv4/arp.c:296 neigh_invalidate+0x20d/0x560 net/core/neighbour.c:1042 neigh_timer_handler+0xd28/0x10b0 net/core/neighbour.c:1129 call_timer_fn+0x1a0/0x6b0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x674/0xa80 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x1d3/0x9c6 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__raw_read_unlock_irqrestore include/linux/rwlock_api_smp.h:242 [inline] RIP: 0010:_raw_read_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:268 Code: 74 24 10 e8 6a f1 dc f7 48 89 ef e8 42 76 dd f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 f3 33 d0 f7 65 8b 05 bc e8 7f 76 85 c0 74 0a 5b 5d c3 e8 f0 fb RSP: 0018:ffffc90002d9fa80 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff211d42e RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffffff8d8455a0 R08: 0000000000000001 R09: ffffffff908dd967 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000293 R13: ffff888076a58a00 R14: ffff88814acbf000 R15: 0000000000000000 netlink_lock_table net/netlink/af_netlink.c:474 [inline] netlink_broadcast+0x9a/0xd90 net/netlink/af_netlink.c:1513 uevent_net_broadcast_untagged lib/kobject_uevent.c:331 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:409 [inline] kobject_uevent_env+0xbf7/0x1640 lib/kobject_uevent.c:593 kobject_synth_uevent+0x701/0x850 lib/kobject_uevent.c:208 uevent_store+0x20/0x50 drivers/base/core.c:2509 dev_attr_store+0x50/0x80 drivers/base/core.c:2211 sysfs_kf_write+0x110/0x160 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f8/0x610 fs/kernfs/file.c:354 call_write_iter include/linux/fs.h:2187 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:578 ksys_write+0x127/0x250 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe1b43749a3 Code: 8b 15 d9 f4 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 RSP: 002b:00007ffcdfdec428 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007fe1b43749a3 RDX: 0000000000000007 RSI: 0000555bc81218f0 RDI: 000000000000000c RBP: 0000555bc81218f0 R08: 000000000000000a R09: 00007fe1b4444a60 R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000007 R13: 0000555bc814f5e0 R14: 0000000000000007 R15: 00007fe1b4440780 Code: 8b 15 d9 f4 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 RSP: 002b:00007ffcdfdec428 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007fe1b43749a3 RDX: 0000000000000007 RSI: 0000555bc81218f0 RDI: 000000000000000c RBP: 0000555bc81218f0 R08: 000000000000000a R09: 00007fe1b4444a60 R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000007 R13: 0000555bc814f5e0 R14: 0000000000000007 R15: 00007fe1b4440780 ---------------- Code disassembly (best guess): 0: 74 24 je 0x26 2: 10 e8 adc %ch,%al 4: 6a f1 pushq $0xfffffffffffffff1 6: dc f7 fdiv %st,%st(7) 8: 48 89 ef mov %rbp,%rdi b: e8 42 76 dd f7 callq 0xf7dd7652 10: 81 e3 00 02 00 00 and $0x200,%ebx 16: 75 25 jne 0x3d 18: 9c pushfq 19: 58 pop %rax 1a: f6 c4 02 test $0x2,%ah 1d: 75 2d jne 0x4c 1f: 48 85 db test %rbx,%rbx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 f3 33 d0 f7 callq 0xf7d03422 <-- trapping instruction 2f: 65 8b 05 bc e8 7f 76 mov %gs:0x767fe8bc(%rip),%eax # 0x767fe8f2 36: 85 c0 test %eax,%eax 38: 74 0a je 0x44 3a: 5b pop %rbx 3b: 5d pop %rbp 3c: c3 retq 3d: e8 .byte 0xe8 3e: f0 fb lock sti