[ 8.356151] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 8.356238] #PF: supervisor write access in kernel mode [ 8.356274] #PF: error_code(0x0002) - not-present page [ 8.356308] PGD 2eec067 P4D 2eec067 PUD 4289067 PMD 0 [ 8.356343] Oops: Oops: 0002 [#1] SMP [ 8.356371] CPU: 2 UID: 0 PID: 229 Comm: packetdrill Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 8.356428] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.356465] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 8.356510] 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 [ 8.356617] RSP: 0018:ffffa6ba405cfcb8 EFLAGS: 00010046 [ 8.356652] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb8c49 [ 8.356701] RDX: ffffa6ba405cfcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 8.356750] RBP: ffffa6ba405cfcf0 R08: 0000000000000000 R09: 000000000000002b [ 8.356794] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 8.356845] R13: ffffa6ba405cfde8 R14: 0000000000000020 R15: 0000000000000000 [ 8.356898] FS: 00000000263663c0(0000) GS:ffff92eb1f6e6000(0000) knlGS:0000000000000000 [ 8.356951] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 8.356992] CR2: 0000000000000000 CR3: 0000000002f0e002 CR4: 0000000000772ef0 [ 8.357036] PKRU: 55555554 [ 8.357056] Call Trace: [ 8.357079] [ 8.357100] __cancel_work+0x29/0xe0 [ 8.357126] ? dev_deactivate_many+0x2c9/0x300 [ 8.357164] __cancel_work_sync+0x16/0x80 [ 8.357191] __dev_close_many+0x11b/0x280 [ 8.357219] netif_close_many+0x98/0x160 [ 8.357246] unregister_netdevice_many_notify+0x1d8/0xa50 [ 8.357281] ? __queue_work+0x139/0x4e0 [ 8.357308] unregister_netdevice_queue+0xa0/0xe0 [ 8.357343] __tun_detach+0x45e/0x490 [ 8.357371] tun_chr_close+0x35/0xa0 [ 8.357398] __fput+0xda/0x290 [ 8.357425] __x64_sys_close+0x3d/0x80 [ 8.357453] do_syscall_64+0xa4/0xfd0 [ 8.357487] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.357522] RIP: 0033:0x4901eb [ 8.357549] 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 [ 8.357656] RSP: 002b:00007fff1c4dd800 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 8.357706] RAX: ffffffffffffffda RBX: 00007fff1c4ddd58 RCX: 00000000004901eb [ 8.357755] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000005 [ 8.357798] RBP: 00007fff1c4dd840 R08: 0000000000000000 R09: 0000000000000000 [ 8.357849] R10: 0000000001000000 R11: 0000000000000293 R12: 00007fff1c4ddcd8 [ 8.357906] R13: 0000000000000001 R14: 000000000054e030 R15: 0000000000000001 [ 8.357955] [ 8.357975] Modules linked in: [ 8.358003] CR2: 0000000000000000 [ 8.358030] ---[ end trace 0000000000000000 ]--- [ 8.358059] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 8.358098] 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 [ 8.358206] RSP: 0018:ffffa6ba405cfcb8 EFLAGS: 00010046 [ 8.358240] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb8c49 [ 8.358289] RDX: ffffa6ba405cfcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 8.358333] RBP: ffffa6ba405cfcf0 R08: 0000000000000000 R09: 000000000000002b [ 8.358376] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 8.358420] R13: ffffa6ba405cfde8 R14: 0000000000000020 R15: 0000000000000000 [ 8.358472] FS: 00000000263663c0(0000) GS:ffff92eb1f6e6000(0000) knlGS:0000000000000000 [ 8.358521] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 8.358562] CR2: 0000000000000000 CR3: 0000000002f0e002 CR4: 0000000000772ef0 [ 8.358607] PKRU: 55555554 [ 8.358628] note: packetdrill[229] exited with irqs disabled WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr