------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 9386 Comm: syz-executor Not tainted 6.16.0-rc6-next-20250718-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__phys_addr+0x16b/0x180 arch/x86/mm/physaddr.c:28 Code: 89 ae 00 e9 45 ff ff ff e8 22 3a 4b 00 48 c7 c7 50 fe fa 8d 48 89 de 4c 89 f2 e8 20 f6 89 03 e9 4d ff ff ff e8 06 3a 4b 00 90 <0f> 0b e8 fe 39 4b 00 90 0f 0b e8 f6 39 4b 00 90 0f 0b 0f 1f 00 90 RSP: 0018:ffffc90000007b58 EFLAGS: 00010246 RAX: ffffffff8174770a RBX: 00007780ffff0000 RCX: ffff8880268ebc00 RDX: 0000000000000100 RSI: 000000017fff0000 RDI: 00007780ffff0000 RBP: ffffc90000007e30 R08: 0000000000000000 R09: ffffffff81a7fff4 R10: dffffc0000000000 R11: ffffffff89fd9550 R12: ffffffff89fd9550 R13: ffffffff81a7fff4 R14: 000000017fff0000 R15: dffffc0000000000 FS: 000055556cd46500(0000) GS:ffff888125be3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff64bdde97c CR3: 000000005b984000 CR4: 00000000003526f0 Call Trace: virt_to_folio include/linux/mm.h:1178 [inline] kfree+0x77/0x440 mm/slub.c:4871 in_dev_free_rcu+0x49/0x60 net/ipv4/devinet.c:245 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca5/0x1710 kernel/rcu/tree.c:2861 handle_softirqs+0x286/0x870 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0x175/0x360 kernel/locking/lockdep.c:5875 Code: 00 00 00 00 9c 8f 44 24 30 f7 44 24 30 00 02 00 00 0f 85 cd 00 00 00 f7 44 24 08 00 02 00 00 74 01 fb 65 48 8b 05 cb 6b 06 11 <48> 3b 44 24 58 0f 85 f2 00 00 00 48 83 c4 60 5b 41 5c 41 5d 41 5e RSP: 0018:ffffc9000b186bb8 EFLAGS: 00000206 RAX: ece982ac8f7f4100 RBX: 0000000000000000 RCX: ece982ac8f7f4100 RDX: 0000000000000000 RSI: ffffffff8db80ddc RDI: ffffffff8be34680 RBP: ffffffff8172b195 R08: 0000000000000000 R09: ffffffff8172b195 R10: ffffc9000b186d78 R11: ffffffff81ac4660 R12: 0000000000000002 R13: ffffffff8e13d8a0 R14: 0000000000000000 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:331 [inline] rcu_read_lock include/linux/rcupdate.h:841 [inline] class_rcu_constructor include/linux/rcupdate.h:1155 [inline] unwind_next_frame+0xc2/0x2390 arch/x86/kernel/unwind_orc.c:479 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:548 __call_rcu_common kernel/rcu/tree.c:3123 [inline] call_rcu+0x157/0x9c0 kernel/rcu/tree.c:3243 kernfs_put+0x19e/0x480 fs/kernfs/dir.c:591 device_del+0x251/0x8e0 drivers/base/core.c:3853 unregister_netdevice_many_notify+0x1a6b/0x1ff0 net/core/dev.c:12165 unregister_netdevice_many net/core/dev.c:12193 [inline] unregister_netdevice_queue+0x33c/0x380 net/core/dev.c:12037 unregister_netdevice include/linux/netdevice.h:3381 [inline] lapbeth_free_device drivers/net/wan/lapbether.c:439 [inline] lapbeth_device_event+0x656/0xa30 drivers/net/wan/lapbether.c:474 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2267 [inline] call_netdevice_notifiers net/core/dev.c:2281 [inline] unregister_netdevice_many_notify+0x14d7/0x1ff0 net/core/dev.c:12130 unregister_netdevice_many net/core/dev.c:12193 [inline] unregister_netdevice_queue+0x33c/0x380 net/core/dev.c:12037 unregister_netdevice include/linux/netdevice.h:3381 [inline] nsim_destroy+0x217/0x6a0 drivers/net/netdevsim/netdev.c:1116 __nsim_dev_port_del+0x14d/0x1b0 drivers/net/netdevsim/dev.c:1471 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1483 [inline] nsim_dev_reload_destroy+0x288/0x490 drivers/net/netdevsim/dev.c:1704 nsim_drv_remove+0x58/0x160 drivers/net/netdevsim/dev.c:1719 device_remove drivers/base/dd.c:569 [inline] __device_release_driver drivers/base/dd.c:1274 [inline] device_release_driver_internal+0x46c/0x800 drivers/base/dd.c:1297 bus_remove_device+0x34d/0x410 drivers/base/bus.c:579 device_del+0x511/0x8e0 drivers/base/core.c:3878 device_unregister+0x20/0xc0 drivers/base/core.c:3919 nsim_bus_dev_del drivers/net/netdevsim/bus.c:483 [inline] del_device_store+0x2aa/0x360 drivers/net/netdevsim/bus.c:244 kernfs_fop_write_iter+0x378/0x4f0 fs/kernfs/file.c:334 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x548/0xa90 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8fc238d45f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007fffb6852c40 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f8fc238d45f RDX: 0000000000000001 RSI: 00007fffb6852c90 RDI: 0000000000000005 RBP: 00007f8fc2411fbd R08: 0000000000000000 R09: 00007fffb6852a97 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001 R13: 00007fffb6852c90 R14: 00007f8fc30e4620 R15: 0000000000000003 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__phys_addr+0x16b/0x180 arch/x86/mm/physaddr.c:28 Code: 89 ae 00 e9 45 ff ff ff e8 22 3a 4b 00 48 c7 c7 50 fe fa 8d 48 89 de 4c 89 f2 e8 20 f6 89 03 e9 4d ff ff ff e8 06 3a 4b 00 90 <0f> 0b e8 fe 39 4b 00 90 0f 0b e8 f6 39 4b 00 90 0f 0b 0f 1f 00 90 RSP: 0018:ffffc90000007b58 EFLAGS: 00010246 RAX: ffffffff8174770a RBX: 00007780ffff0000 RCX: ffff8880268ebc00 RDX: 0000000000000100 RSI: 000000017fff0000 RDI: 00007780ffff0000 RBP: ffffc90000007e30 R08: 0000000000000000 R09: ffffffff81a7fff4 R10: dffffc0000000000 R11: ffffffff89fd9550 R12: ffffffff89fd9550 R13: ffffffff81a7fff4 R14: 000000017fff0000 R15: dffffc0000000000 FS: 000055556cd46500(0000) GS:ffff888125be3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff64bdde97c CR3: 000000005b984000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 00 add %al,(%rax) 4: 9c pushf 5: 8f 44 24 30 pop 0x30(%rsp) 9: f7 44 24 30 00 02 00 testl $0x200,0x30(%rsp) 10: 00 11: 0f 85 cd 00 00 00 jne 0xe4 17: f7 44 24 08 00 02 00 testl $0x200,0x8(%rsp) 1e: 00 1f: 74 01 je 0x22 21: fb sti 22: 65 48 8b 05 cb 6b 06 mov %gs:0x11066bcb(%rip),%rax # 0x11066bf5 29: 11 * 2a: 48 3b 44 24 58 cmp 0x58(%rsp),%rax <-- trapping instruction 2f: 0f 85 f2 00 00 00 jne 0x127 35: 48 83 c4 60 add $0x60,%rsp 39: 5b pop %rbx 3a: 41 5c pop %r12 3c: 41 5d pop %r13 3e: 41 5e pop %r14