[ 1.903371] netdevsim netdevsim496 eni496np1: renamed from eth0 [ 1.998719] netdevsim netdevsim649 eni649np1: renamed from eth1 [ 2.533531] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 2.533644] #PF: supervisor write access in kernel mode [ 2.533683] #PF: error_code(0x0002) - not-present page [ 2.533734] PGD 0 P4D 0 [ 2.533761] Oops: Oops: 0002 [#1] SMP [ 2.533796] CPU: 3 UID: 0 PID: 247 Comm: busy_poll_test. Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 2.533877] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.533941] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.533987] 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.534115] RSP: 0018:ffffbbf2805b7ae8 EFLAGS: 00010046 [ 2.534175] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 000000008010000d [ 2.534231] RDX: ffffbbf2805b7b20 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.534289] RBP: ffffbbf2805b7b20 R08: 0000000000000001 R09: ffffffff9a556300 [ 2.534343] R10: ffff9c81c6e8d000 R11: 0000000000000001 R12: 0000000000000000 [ 2.534393] R13: ffffbbf2805b7c18 R14: 0000000000000020 R15: 0000000000000000 [ 2.534450] FS: 00007f340c21e000(0000) GS:ffff9c8263311000(0000) knlGS:0000000000000000 [ 2.534523] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.534571] CR2: 0000000000000000 CR3: 0000000003308002 CR4: 0000000000772ef0 [ 2.534649] PKRU: 55555554 [ 2.534675] Call Trace: [ 2.534694] [ 2.534726] __cancel_work+0x29/0xe0 [ 2.534774] __cancel_work_sync+0x16/0x80 [ 2.534808] __dev_close_many+0x113/0x2b0 [ 2.534846] netif_close_many+0x98/0x160 [ 2.534881] unregister_netdevice_many_notify+0x10c/0xaa0 [ 2.534922] unregister_netdevice_queue+0xa0/0xe0 [ 2.534963] nsim_destroy+0x7e/0x180 [netdevsim] [ 2.535030] __nsim_dev_port_del+0x47/0x70 [netdevsim] [ 2.535077] nsim_dev_reload_destroy+0x5b/0x120 [netdevsim] [ 2.535122] nsim_drv_remove+0x2f/0xb0 [netdevsim] [ 2.535190] device_release_driver_internal+0x193/0x200 [ 2.535233] bus_remove_device+0xc1/0x100 [ 2.535262] device_del+0x15f/0x480 [ 2.535298] device_unregister+0x12/0x30 [ 2.535329] del_device_store+0x117/0x1a0 [netdevsim] [ 2.535372] kernfs_fop_write_iter+0x12b/0x1c0 [ 2.535422] vfs_write+0x33a/0x470 [ 2.535472] ksys_write+0x65/0xe0 [ 2.535506] do_syscall_64+0xa4/0xfd0 [ 2.535543] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 2.535587] RIP: 0033:0x7f340c31e257 [ 2.535632] 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.535760] RSP: 002b:00007fff8ea65618 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2.535818] RAX: ffffffffffffffda RBX: 00007f340c41a780 RCX: 00007f340c31e257 [ 2.535868] RDX: 0000000000000004 RSI: 0000564b6400a930 RDI: 0000000000000001 [ 2.535921] RBP: 0000000000000004 R08: 0000000000000000 R09: 00007f340c3d0d20 [ 2.535975] R10: 00007f340c3d0c20 R11: 0000000000000246 R12: 0000000000000004 [ 2.536029] R13: 0000564b6400a930 R14: 0000000000000004 R15: 00007f340c4159c0 [ 2.536085] [ 2.536106] Modules linked in: netdevsim psample [ 2.536161] CR2: 0000000000000000 [ 2.536188] ---[ end trace 0000000000000000 ]--- [ 2.536225] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.536272] 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.536390] RSP: 0018:ffffbbf2805b7ae8 EFLAGS: 00010046 [ 2.536429] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 000000008010000d [ 2.536484] RDX: ffffbbf2805b7b20 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.536564] RBP: ffffbbf2805b7b20 R08: 0000000000000001 R09: ffffffff9a556300 [ 2.536616] R10: ffff9c81c6e8d000 R11: 0000000000000001 R12: 0000000000000000 [ 2.536674] R13: ffffbbf2805b7c18 R14: 0000000000000020 R15: 0000000000000000 [ 2.536749] FS: 00007f340c21e000(0000) GS:ffff9c8263311000(0000) knlGS:0000000000000000 [ 2.536822] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.536867] CR2: 0000000000000000 CR3: 0000000003308002 CR4: 0000000000772ef0 [ 2.536923] PKRU: 55555554 [ 2.536945] note: busy_poll_test.[247] exited with irqs disabled