[ 5.346375] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 5.346520] #PF: supervisor write access in kernel mode [ 5.346571] #PF: error_code(0x0002) - not-present page [ 5.346616] PGD 1ead067 P4D 1ead067 PUD 2f95067 PMD 0 [ 5.346663] Oops: Oops: 0002 [#1] SMP [ 5.346723] CPU: 0 UID: 0 PID: 229 Comm: packetdrill Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 5.346790] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 5.346851] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 5.346907] 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 [ 5.347042] RSP: 0018:ffffaf4bc05afcb8 EFLAGS: 00010046 [ 5.347101] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb8085 [ 5.347176] RDX: ffffaf4bc05afcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 5.347226] RBP: ffffaf4bc05afcf0 R08: 0000000000000000 R09: 00000000000002c4 [ 5.347282] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 5.347344] R13: ffffaf4bc05afde8 R14: 0000000000000020 R15: 0000000000000000 [ 5.347411] FS: 0000000023f203c0(0000) GS:ffff8facefbe6000(0000) knlGS:0000000000000000 [ 5.347475] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 5.347530] CR2: 0000000000000000 CR3: 0000000005171001 CR4: 0000000000772ef0 [ 5.347584] PKRU: 55555554 [ 5.347604] Call Trace: [ 5.347624] [ 5.347651] __cancel_work+0x29/0xe0 [ 5.347687] ? dev_deactivate_many+0x2c9/0x300 [ 5.347735] __cancel_work_sync+0x16/0x80 [ 5.347765] __dev_close_many+0x11b/0x280 [ 5.347799] netif_close_many+0x98/0x160 [ 5.347831] unregister_netdevice_many_notify+0x1d8/0xa50 [ 5.347881] ? __queue_work+0x139/0x4e0 [ 5.347923] unregister_netdevice_queue+0xa0/0xe0 [ 5.347967] __tun_detach+0x45e/0x490 [ 5.348003] tun_chr_close+0x35/0xa0 [ 5.348044] __fput+0xda/0x290 [ 5.348080] __x64_sys_close+0x3d/0x80 [ 5.348116] do_syscall_64+0xa4/0xfd0 [ 5.348158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 5.348207] RIP: 0033:0x4901eb [ 5.348239] 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 [ 5.348400] RSP: 002b:00007ffff18b8bd0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 5.348466] RAX: ffffffffffffffda RBX: 00007ffff18b9128 RCX: 00000000004901eb [ 5.348531] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000005 [ 5.348603] RBP: 00007ffff18b8c10 R08: 0000000000000000 R09: 0000000000000000 [ 5.348668] R10: 0000000023f28000 R11: 0000000000000293 R12: 00007ffff18b90a8 [ 5.348735] R13: 0000000000000001 R14: 000000000054e030 R15: 0000000000000001 [ 5.348801] [ 5.348825] Modules linked in: [ 5.348871] CR2: 0000000000000000 [ 5.348907] ---[ end trace 0000000000000000 ]--- [ 5.348947] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 5.348994] 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 [ 5.349142] RSP: 0018:ffffaf4bc05afcb8 EFLAGS: 00010046 [ 5.349188] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb8085 [ 5.349253] RDX: ffffaf4bc05afcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 5.349313] RBP: ffffaf4bc05afcf0 R08: 0000000000000000 R09: 00000000000002c4 [ 5.349376] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 5.349429] R13: ffffaf4bc05afde8 R14: 0000000000000020 R15: 0000000000000000 [ 5.349488] FS: 0000000023f203c0(0000) GS:ffff8facefbe6000(0000) knlGS:0000000000000000 [ 5.349548] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 5.349596] CR2: 0000000000000000 CR3: 0000000005171001 CR4: 0000000000772ef0 [ 5.349655] PKRU: 55555554 [ 5.349678] note: packetdrill[229] exited with irqs disabled WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr