[ 2.643140] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 2.643243] #PF: supervisor write access in kernel mode [ 2.643297] #PF: error_code(0x0002) - not-present page [ 2.643347] PGD 1b71067 P4D 1b71067 PUD 51de067 PMD 0 [ 2.643404] Oops: Oops: 0002 [#1] SMP [ 2.643448] CPU: 0 UID: 0 PID: 227 Comm: packetdrill Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 2.643541] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.643602] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.643667] 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.643848] RSP: 0018:ffffbd7580577cb8 EFLAGS: 00010046 [ 2.643899] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb75f7 [ 2.643973] RDX: ffffbd7580577cf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.644056] RBP: ffffbd7580577cf0 R08: 0000000000000000 R09: 00000000000002c0 [ 2.644127] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 2.644203] R13: ffffbd7580577de8 R14: 0000000000000020 R15: 0000000000000000 [ 2.644281] FS: 00000000374373c0(0000) GS:ffff984d54de6000(0000) knlGS:0000000000000000 [ 2.644362] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.644431] CR2: 0000000000000000 CR3: 0000000002ff1006 CR4: 0000000000772ef0 [ 2.644507] PKRU: 55555554 [ 2.644531] Call Trace: [ 2.644559] [ 2.644592] __cancel_work+0x29/0xe0 [ 2.644636] ? dev_deactivate_many+0x2c9/0x300 [ 2.644699] __cancel_work_sync+0x16/0x80 [ 2.644745] __dev_close_many+0x11b/0x280 [ 2.644791] netif_close_many+0x98/0x160 [ 2.644828] unregister_netdevice_many_notify+0x1d8/0xa50 [ 2.644886] ? __queue_work+0x139/0x4e0 [ 2.644929] unregister_netdevice_queue+0xa0/0xe0 [ 2.644981] __tun_detach+0x45e/0x490 [ 2.645024] tun_chr_close+0x35/0xa0 [ 2.645067] __fput+0xda/0x290 [ 2.645114] __x64_sys_close+0x3d/0x80 [ 2.645158] do_syscall_64+0xa4/0xfd0 [ 2.645207] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 2.645265] RIP: 0033:0x4901eb [ 2.645309] 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.645486] RSP: 002b:00007ffebc41cbe0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 2.645562] RAX: ffffffffffffffda RBX: 00007ffebc41d138 RCX: 00000000004901eb [ 2.645637] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000005 [ 2.645713] RBP: 00007ffebc41cc20 R08: 0000000000000000 R09: 0000000000000000 [ 2.645789] R10: 0000000000000007 R11: 0000000000000293 R12: 00007ffebc41d0b8 [ 2.645866] R13: 0000000000000001 R14: 000000000054e030 R15: 0000000000000001 [ 2.645942] [ 2.645973] Modules linked in: [ 2.646012] CR2: 0000000000000000 [ 2.646055] ---[ end trace 0000000000000000 ]--- [ 2.646106] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.646163] 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.646339] RSP: 0018:ffffbd7580577cb8 EFLAGS: 00010046 [ 2.646389] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb75f7 [ 2.646464] RDX: ffffbd7580577cf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.646540] RBP: ffffbd7580577cf0 R08: 0000000000000000 R09: 00000000000002c0 [ 2.646615] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 2.646691] R13: ffffbd7580577de8 R14: 0000000000000020 R15: 0000000000000000 [ 2.646766] FS: 00000000374373c0(0000) GS:ffff984d54de6000(0000) knlGS:0000000000000000 [ 2.646842] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.646903] CR2: 0000000000000000 CR3: 0000000002ff1006 CR4: 0000000000772ef0 [ 2.646980] PKRU: 55555554 [ 2.647012] note: packetdrill[227] exited with irqs disabled WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr