[ 2.515529] netconsole selftest: netcons_n0uQM [ 2.695717] netconsole selftest: netcons_n0uQM [ 2.766711] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 2.766807] #PF: supervisor write access in kernel mode [ 2.766844] #PF: error_code(0x0002) - not-present page [ 2.766881] PGD 0 P4D 0 [ 2.766904] Oops: Oops: 0002 [#1] SMP [ 2.766934] CPU: 2 UID: 0 PID: 234 Comm: bash Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 2.766992] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.767036] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.767081] 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 [ 2.767188] RSP: 0018:ffffb419005a7ae8 EFLAGS: 00010046 [ 2.767225] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 000000000010000c [ 2.767276] RDX: ffffb419005a7b20 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.767328] RBP: ffffb419005a7b20 R08: 0000000000000000 R09: ffffffffb873c800 [ 2.767379] R10: ffff9eea433fe000 R11: 0000000000000001 R12: 0000000000000000 [ 2.767430] R13: ffffb419005a7c18 R14: 0000000000000020 R15: 0000000000000000 [ 2.767490] FS: 00007efdc709a000(0000) GS:ffff9eeac50d6000(0000) knlGS:0000000000000000 [ 2.767540] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.767591] CR2: 0000000000000000 CR3: 0000000003627005 CR4: 0000000000772ef0 [ 2.767645] PKRU: 55555554 [ 2.767664] Call Trace: [ 2.767681] [ 2.767704] __cancel_work+0x29/0xe0 [ 2.767737] __cancel_work_sync+0x16/0x80 [ 2.767768] __dev_close_many+0x113/0x2b0 [ 2.767801] netif_close_many+0x98/0x160 [ 2.767836] unregister_netdevice_many_notify+0x10c/0xaa0 [ 2.767875] unregister_netdevice_queue+0xa0/0xe0 [ 2.767911] nsim_destroy+0x86/0x180 [netdevsim] [ 2.767953] __nsim_dev_port_del+0x47/0x70 [netdevsim] [ 2.767988] nsim_dev_reload_destroy+0x5b/0x110 [netdevsim] [ 2.768025] nsim_drv_remove+0x2f/0xb0 [netdevsim] [ 2.768062] device_release_driver_internal+0x193/0x200 [ 2.768103] bus_remove_device+0xc1/0x100 [ 2.768132] device_del+0x15f/0x480 [ 2.768161] device_unregister+0x12/0x30 [ 2.768189] del_device_store+0x117/0x1a0 [netdevsim] [ 2.768226] kernfs_fop_write_iter+0x12b/0x1c0 [ 2.768268] vfs_write+0x33a/0x470 [ 2.768301] ksys_write+0x65/0xe0 [ 2.768329] do_syscall_64+0xa4/0xfd0 [ 2.768359] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 2.768398] RIP: 0033:0x7efdc719a257 [ 2.768426] 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 [ 2.768538] RSP: 002b:00007ffcb8574eb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2.768596] RAX: ffffffffffffffda RBX: 00007efdc7296780 RCX: 00007efdc719a257 [ 2.768648] RDX: 0000000000000004 RSI: 0000556544ff6700 RDI: 0000000000000001 [ 2.768699] RBP: 0000000000000004 R08: 0000000000000000 R09: 00007efdc724cd20 [ 2.768745] R10: 00007efdc724cc20 R11: 0000000000000246 R12: 0000000000000004 [ 2.768796] R13: 0000556544ff6700 R14: 0000000000000004 R15: 00007efdc72919c0 [ 2.768842] [ 2.768862] Modules linked in: netdevsim [last unloaded: netconsole] [ 2.768908] CR2: 0000000000000000 [ 2.768935] ---[ end trace 0000000000000000 ]--- [ 2.768971] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.769007] 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 [ 2.769125] RSP: 0018:ffffb419005a7ae8 EFLAGS: 00010046 [ 2.769161] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 000000000010000c [ 2.769207] RDX: ffffb419005a7b20 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.769257] RBP: ffffb419005a7b20 R08: 0000000000000000 R09: ffffffffb873c800 [ 2.769309] R10: ffff9eea433fe000 R11: 0000000000000001 R12: 0000000000000000 [ 2.769356] R13: ffffb419005a7c18 R14: 0000000000000020 R15: 0000000000000000 [ 2.769410] FS: 00007efdc709a000(0000) GS:ffff9eeac50d6000(0000) knlGS:0000000000000000 [ 2.769473] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.769515] CR2: 0000000000000000 CR3: 0000000003627005 CR4: 0000000000772ef0 [ 2.769561] PKRU: 55555554 [ 2.769589] note: bash[234] exited with irqs disabled