[ 3.924286] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 3.924385] #PF: supervisor write access in kernel mode [ 3.924434] #PF: error_code(0x0002) - not-present page [ 3.924481] PGD 5290067 P4D 5290067 PUD 5294067 PMD 0 [ 3.924527] Oops: Oops: 0002 [#1] SMP [ 3.924565] CPU: 2 UID: 0 PID: 227 Comm: packetdrill Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 3.924649] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 3.924712] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 3.924764] 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 [ 3.924909] RSP: 0018:ffffa0580056fcb8 EFLAGS: 00010046 [ 3.924956] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb7af6 [ 3.925022] RDX: ffffa0580056fcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 3.925088] RBP: ffffa0580056fcf0 R08: 0000000000000000 R09: 00000000000001d9 [ 3.925153] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 3.925220] R13: ffffa0580056fde8 R14: 0000000000000020 R15: 0000000000000000 [ 3.925289] FS: 000000000f9ea3c0(0000) GS:ffff8bdffaee6000(0000) knlGS:0000000000000000 [ 3.925361] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 3.925416] CR2: 0000000000000000 CR3: 00000000052ad002 CR4: 0000000000772ef0 [ 3.925484] PKRU: 55555554 [ 3.925509] Call Trace: [ 3.925537] [ 3.925564] __cancel_work+0x29/0xe0 [ 3.925603] ? dev_deactivate_many+0x2c9/0x300 [ 3.925655] __cancel_work_sync+0x16/0x80 [ 3.925692] __dev_close_many+0x11b/0x280 [ 3.925733] netif_close_many+0x98/0x160 [ 3.925769] unregister_netdevice_many_notify+0x1d8/0xa50 [ 3.925815] ? __queue_work+0x139/0x4e0 [ 3.925851] unregister_netdevice_queue+0xa0/0xe0 [ 3.925898] __tun_detach+0x45e/0x490 [ 3.925934] tun_chr_close+0x35/0xa0 [ 3.925970] __fput+0xda/0x290 [ 3.926012] __x64_sys_close+0x3d/0x80 [ 3.926048] do_syscall_64+0xa4/0xfd0 [ 3.926084] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 3.926131] RIP: 0033:0x4901eb [ 3.926167] 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 [ 3.926312] RSP: 002b:00007ffdcf735340 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 3.926378] RAX: ffffffffffffffda RBX: 00007ffdcf735898 RCX: 00000000004901eb [ 3.926444] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000005 [ 3.926510] RBP: 00007ffdcf735380 R08: 0000000000000000 R09: 0000000000000000 [ 3.926576] R10: 000000000f9f1200 R11: 0000000000000293 R12: 00007ffdcf735818 [ 3.926642] R13: 0000000000000001 R14: 000000000054e030 R15: 0000000000000001 [ 3.926710] [ 3.926734] Modules linked in: [ 3.926772] CR2: 0000000000000000 [ 3.926808] ---[ end trace 0000000000000000 ]--- [ 3.926853] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 3.926900] 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 [ 3.927047] RSP: 0018:ffffa0580056fcb8 EFLAGS: 00010046 [ 3.927094] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb7af6 [ 3.927154] RDX: ffffa0580056fcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 3.927220] RBP: ffffa0580056fcf0 R08: 0000000000000000 R09: 00000000000001d9 [ 3.927286] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 3.927353] R13: ffffa0580056fde8 R14: 0000000000000020 R15: 0000000000000000 [ 3.927421] FS: 000000000f9ea3c0(0000) GS:ffff8bdffaee6000(0000) knlGS:0000000000000000 [ 3.927488] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 3.927542] CR2: 0000000000000000 CR3: 00000000052ad002 CR4: 0000000000772ef0 [ 3.927610] PKRU: 55555554 [ 3.927637] note: packetdrill[227] exited with irqs disabled WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr