[ 2.029519] netconsole: network logging started [ 4.529292] netconsole selftest: netcons_rq2i5 [ 4.609345] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 4.609427] #PF: supervisor write access in kernel mode [ 4.609488] #PF: error_code(0x0002) - not-present page [ 4.609537] PGD 0 P4D 0 [ 4.609562] Oops: Oops: 0002 [#1] SMP [ 4.609598] CPU: 0 UID: 0 PID: 236 Comm: bash Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 4.609690] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 4.609754] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 4.609811] Code: 83 e6 01 41 57 41 56 4c 8d 77 20 41 55 41 54 41 89 f4 55 48 89 d5 53 48 89 fb 9c 58 fa 48 89 45 00 45 85 e4 0f 85 8a 00 00 00 48 0f ba 2b 00 41 0f 92 c5 72 0e 5b 44 89 e8 5d 41 5c 41 5d 41 [ 4.609982] RSP: 0018:ffffa606004a7ae8 EFLAGS: 00010046 [ 4.610033] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 0000000080100004 [ 4.610106] RDX: ffffa606004a7b20 RSI: 0000000000000000 RDI: 0000000000000000 [ 4.610180] RBP: ffffa606004a7b20 R08: 0000000000000001 R09: ffffffff8873c800 [ 4.610256] R10: ffff948603626000 R11: 0000000000000001 R12: 0000000000000000 [ 4.610332] R13: ffffa606004a7c18 R14: 0000000000000020 R15: 0000000000000000 [ 4.610409] FS: 00007f7610341000(0000) GS:ffff9486b4fd6000(0000) knlGS:0000000000000000 [ 4.610492] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4.610560] CR2: 0000000000000000 CR3: 000000000537e002 CR4: 0000000000772ef0 [ 4.610639] PKRU: 55555554 [ 4.610669] Call Trace: [ 4.610695] [ 4.610721] __cancel_work+0x29/0xe0 [ 4.610764] __cancel_work_sync+0x16/0x80 [ 4.610802] __dev_close_many+0x113/0x2b0 [ 4.610848] netif_close_many+0x98/0x160 [ 4.610886] unregister_netdevice_many_notify+0x10c/0xaa0 [ 4.610936] unregister_netdevice_queue+0xa0/0xe0 [ 4.610986] nsim_destroy+0x86/0x180 [netdevsim] [ 4.611043] __nsim_dev_port_del+0x47/0x70 [netdevsim] [ 4.611096] nsim_dev_reload_destroy+0x5b/0x110 [netdevsim] [ 4.611146] nsim_drv_remove+0x2f/0xb0 [netdevsim] [ 4.611197] device_release_driver_internal+0x193/0x200 [ 4.611247] bus_remove_device+0xc1/0x100 [ 4.611289] device_del+0x15f/0x480 [ 4.611326] device_unregister+0x12/0x30 [ 4.611363] del_device_store+0x117/0x1a0 [netdevsim] [ 4.611411] kernfs_fop_write_iter+0x12b/0x1c0 [ 4.611470] vfs_write+0x33a/0x470 [ 4.611514] ksys_write+0x65/0xe0 [ 4.611552] do_syscall_64+0xa4/0xfd0 [ 4.611588] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 4.611644] RIP: 0033:0x7f7610441257 [ 4.611688] Code: 0f 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 [ 4.611864] RSP: 002b:00007ffc85261578 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 4.611936] RAX: ffffffffffffffda RBX: 00007f761053d780 RCX: 00007f7610441257 [ 4.612011] RDX: 0000000000000004 RSI: 0000560525936410 RDI: 0000000000000001 [ 4.612089] RBP: 0000000000000004 R08: 0000000000000000 R09: 00007f76104f3d20 [ 4.612163] R10: 00007f76104f3c20 R11: 0000000000000246 R12: 0000000000000004 [ 4.612238] R13: 0000560525936410 R14: 0000000000000004 R15: 00007f76105389c0 [ 4.612315] [ 4.612339] Modules linked in: netconsole netdevsim [ 4.612391] CR2: 0000000000000000 [ 4.612428] ---[ end trace 0000000000000000 ]--- [ 4.612478] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 4.612528] Code: 83 e6 01 41 57 41 56 4c 8d 77 20 41 55 41 54 41 89 f4 55 48 89 d5 53 48 89 fb 9c 58 fa 48 89 45 00 45 85 e4 0f 85 8a 00 00 00 48 0f ba 2b 00 41 0f 92 c5 72 0e 5b 44 89 e8 5d 41 5c 41 5d 41 [ 4.612702] RSP: 0018:ffffa606004a7ae8 EFLAGS: 00010046 [ 4.612754] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 0000000080100004 [ 4.612829] RDX: ffffa606004a7b20 RSI: 0000000000000000 RDI: 0000000000000000 [ 4.612905] RBP: ffffa606004a7b20 R08: 0000000000000001 R09: ffffffff8873c800 [ 4.612982] R10: ffff948603626000 R11: 0000000000000001 R12: 0000000000000000 [ 4.613055] R13: ffffa606004a7c18 R14: 0000000000000020 R15: 0000000000000000 [ 4.613135] FS: 00007f7610341000(0000) GS:ffff9486b4fd6000(0000) knlGS:0000000000000000 [ 4.613216] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4.613277] CR2: 0000000000000000 CR3: 000000000537e002 CR4: 0000000000772ef0 [ 4.613349] PKRU: 55555554 [ 4.613374] note: bash[236] exited with irqs disabled