[ 2.744378] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 2.744467] #PF: supervisor write access in kernel mode [ 2.744513] #PF: error_code(0x0002) - not-present page [ 2.744559] PGD 5223067 P4D 5223067 PUD 3948067 PMD 0 [ 2.744610] Oops: Oops: 0002 [#1] SMP [ 2.744647] CPU: 2 UID: 0 PID: 227 Comm: packetdrill Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 2.744722] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.744778] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.744831] 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.744974] RSP: 0018:ffffb7a0805bfcb8 EFLAGS: 00010046 [ 2.745020] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb765b [ 2.745085] RDX: ffffb7a0805bfcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.745150] RBP: ffffb7a0805bfcf0 R08: 0000000000000000 R09: 00000000000000f1 [ 2.745216] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 2.745280] R13: ffffb7a0805bfde8 R14: 0000000000000020 R15: 0000000000000000 [ 2.745348] FS: 00000000133e13c0(0000) GS:ffff9afb12ae6000(0000) knlGS:0000000000000000 [ 2.745416] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.745470] CR2: 0000000000000000 CR3: 000000000399c005 CR4: 0000000000772ef0 [ 2.745538] PKRU: 55555554 [ 2.745562] Call Trace: [ 2.745584] [ 2.745610] __cancel_work+0x29/0xe0 [ 2.745648] ? dev_deactivate_many+0x2c9/0x300 [ 2.745700] __cancel_work_sync+0x16/0x80 [ 2.745736] __dev_close_many+0x11b/0x280 [ 2.745773] netif_close_many+0x98/0x160 [ 2.745808] unregister_netdevice_many_notify+0x1d8/0xa50 [ 2.745854] ? __queue_work+0x139/0x4e0 [ 2.745889] unregister_netdevice_queue+0xa0/0xe0 [ 2.745935] __tun_detach+0x45e/0x490 [ 2.745972] tun_chr_close+0x35/0xa0 [ 2.746007] __fput+0xda/0x290 [ 2.746050] __x64_sys_close+0x3d/0x80 [ 2.746086] do_syscall_64+0xa4/0xfd0 [ 2.746122] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 2.746169] RIP: 0033:0x4901eb [ 2.746204] 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.746347] RSP: 002b:00007ffc0b4df340 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 2.746412] RAX: ffffffffffffffda RBX: 00007ffc0b4df898 RCX: 00000000004901eb [ 2.746478] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000005 [ 2.746544] RBP: 00007ffc0b4df380 R08: 0000000000000000 R09: 0000000000000000 [ 2.746610] R10: 00000000133e9230 R11: 0000000000000293 R12: 00007ffc0b4df818 [ 2.746675] R13: 0000000000000001 R14: 000000000054e030 R15: 0000000000000001 [ 2.746743] [ 2.746767] Modules linked in: [ 2.746805] CR2: 0000000000000000 [ 2.746840] ---[ end trace 0000000000000000 ]--- [ 2.746885] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 2.746931] 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.747076] RSP: 0018:ffffb7a0805bfcb8 EFLAGS: 00010046 [ 2.747122] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb765b [ 2.747188] RDX: ffffb7a0805bfcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 2.747253] RBP: ffffb7a0805bfcf0 R08: 0000000000000000 R09: 00000000000000f1 [ 2.747318] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 2.747383] R13: ffffb7a0805bfde8 R14: 0000000000000020 R15: 0000000000000000 [ 2.747450] FS: 00000000133e13c0(0000) GS:ffff9afb12ae6000(0000) knlGS:0000000000000000 [ 2.747516] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.747570] CR2: 0000000000000000 CR3: 000000000399c005 CR4: 0000000000772ef0 [ 2.747638] PKRU: 55555554 [ 2.747664] note: packetdrill[227] exited with irqs disabled WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr