[ 2.834205] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 2.834381] #PF: supervisor write access in kernel mode [ 2.834431] #PF: error_code(0x0002) - not-present page [ 2.834482] PGD 4937067 P4D 4937067 PUD 49e5067 PMD 0 [ 2.834543] Oops: Oops: 0002 [#1] SMP [ 2.834591] CPU: 3 UID: 0 PID: 230 Comm: packetdrill Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 2.834691] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.834763] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.834830] 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.835013] RSP: 0018:ffffc301005a7cb8 EFLAGS: 00010046 [ 2.835066] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb76b5 [ 2.835143] RDX: ffffc301005a7cf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.835221] RBP: ffffc301005a7cf0 R08: 0000000000000000 R09: 0000000000000391 [ 2.835299] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 2.835378] R13: ffffc301005a7de8 R14: 0000000000000020 R15: 0000000000000000 [ 2.835457] FS: 00000000017953c0(0000) GS:ffff9f4ae6966000(0000) knlGS:0000000000000000 [ 2.835542] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.835606] CR2: 0000000000000000 CR3: 0000000002de1005 CR4: 0000000000772ef0 [ 2.835686] PKRU: 55555554 [ 2.835709] Call Trace: [ 2.835737] [ 2.835772] __cancel_work+0x29/0xe0 [ 2.835818] ? dev_deactivate_many+0x2c9/0x300 [ 2.835875] __cancel_work_sync+0x16/0x80 [ 2.835914] __dev_close_many+0x11b/0x280 [ 2.835963] netif_close_many+0x98/0x160 [ 2.836007] unregister_netdevice_many_notify+0x1d8/0xa50 [ 2.836061] ? __queue_work+0x139/0x4e0 [ 2.836123] unregister_netdevice_queue+0xa0/0xe0 [ 2.836178] __tun_detach+0x45e/0x490 [ 2.836228] tun_chr_close+0x35/0xa0 [ 2.836271] __fput+0xda/0x290 [ 2.836323] __x64_sys_close+0x3d/0x80 [ 2.836366] do_syscall_64+0xa4/0xfd0 [ 2.836411] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 2.836471] RIP: 0033:0x4901eb [ 2.836515] Code: 03 00 00 00 0f 05 48 3d 00 f0 ff ff 77 41 c3 48 83 ec 18 89 7c 24 0c e8 c3 78 04 00 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 21 79 04 00 8b 44 [ 2.836696] RSP: 002b:00007ffcf4190ae0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 2.836774] RAX: ffffffffffffffda RBX: 00007ffcf4191038 RCX: 00000000004901eb [ 2.836851] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000005 [ 2.836929] RBP: 00007ffcf4190b20 R08: 0000000000000000 R09: 0000000000000000 [ 2.837006] R10: 0000000000000002 R11: 0000000000000293 R12: 00007ffcf4190fb8 [ 2.837083] R13: 0000000000000001 R14: 000000000054e030 R15: 0000000000000001 [ 2.837161] [ 2.837185] Modules linked in: [ 2.837230] CR2: 0000000000000000 [ 2.837271] ---[ end trace 0000000000000000 ]--- [ 2.837323] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.837376] 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.837557] RSP: 0018:ffffc301005a7cb8 EFLAGS: 00010046 [ 2.837610] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb76b5 [ 2.837688] RDX: ffffc301005a7cf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.837766] RBP: ffffc301005a7cf0 R08: 0000000000000000 R09: 0000000000000391 [ 2.837844] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 2.837922] R13: ffffc301005a7de8 R14: 0000000000000020 R15: 0000000000000000 [ 2.838001] FS: 00000000017953c0(0000) GS:ffff9f4ae6966000(0000) knlGS:0000000000000000 [ 2.838079] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.838142] CR2: 0000000000000000 CR3: 0000000002de1005 CR4: 0000000000772ef0 [ 2.838221] PKRU: 55555554 [ 2.838248] note: packetdrill[230] exited with irqs disabled WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr