[ 4.761731] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 4.761839] #PF: supervisor write access in kernel mode [ 4.761883] #PF: error_code(0x0002) - not-present page [ 4.761928] PGD 5236067 P4D 5236067 PUD 5237067 PMD 0 [ 4.761980] Oops: Oops: 0002 [#1] SMP [ 4.762015] CPU: 0 UID: 0 PID: 229 Comm: packetdrill Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 4.762097] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 4.762154] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 4.762209] 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 [ 4.762366] RSP: 0018:ffffbf83c03cbcb8 EFLAGS: 00010046 [ 4.762418] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb7e3c [ 4.762491] RDX: ffffbf83c03cbcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 4.762557] RBP: ffffbf83c03cbcf0 R08: 0000000000000000 R09: 000000000000008b [ 4.762624] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 4.762692] R13: ffffbf83c03cbde8 R14: 0000000000000020 R15: 0000000000000000 [ 4.762762] FS: 00000000129f73c0(0000) GS:ffff9b19cd1e6000(0000) knlGS:0000000000000000 [ 4.762836] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4.762890] CR2: 0000000000000000 CR3: 00000000051dc004 CR4: 0000000000772ef0 [ 4.762958] PKRU: 55555554 [ 4.762987] Call Trace: [ 4.763011] [ 4.763040] __cancel_work+0x29/0xe0 [ 4.763078] ? dev_deactivate_many+0x2c9/0x300 [ 4.763135] __cancel_work_sync+0x16/0x80 [ 4.763175] __dev_close_many+0x11b/0x280 [ 4.763215] netif_close_many+0x98/0x160 [ 4.763254] unregister_netdevice_many_notify+0x1d8/0xa50 [ 4.763300] ? __queue_work+0x139/0x4e0 [ 4.763340] unregister_netdevice_queue+0xa0/0xe0 [ 4.763391] __tun_detach+0x45e/0x490 [ 4.763433] tun_chr_close+0x35/0xa0 [ 4.763472] __fput+0xda/0x290 [ 4.763514] __x64_sys_close+0x3d/0x80 [ 4.763553] do_syscall_64+0xa4/0xfd0 [ 4.763595] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 4.763648] RIP: 0033:0x4901eb [ 4.763682] 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 [ 4.763840] RSP: 002b:00007ffd0d83de70 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 4.763906] RAX: ffffffffffffffda RBX: 00007ffd0d83e3c8 RCX: 00000000004901eb [ 4.763979] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000005 [ 4.764046] RBP: 00007ffd0d83deb0 R08: 0000000000000000 R09: 0000000000000000 [ 4.764111] R10: 0000000000000010 R11: 0000000000000293 R12: 00007ffd0d83e348 [ 4.764179] R13: 0000000000000001 R14: 000000000054e030 R15: 0000000000000001 [ 4.764246] [ 4.764267] Modules linked in: [ 4.764303] CR2: 0000000000000000 [ 4.764335] ---[ end trace 0000000000000000 ]--- [ 4.764385] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 4.764437] 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 [ 4.764592] RSP: 0018:ffffbf83c03cbcb8 EFLAGS: 00010046 [ 4.764636] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb7e3c [ 4.764706] RDX: ffffbf83c03cbcf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 4.764772] RBP: ffffbf83c03cbcf0 R08: 0000000000000000 R09: 000000000000008b [ 4.764839] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 4.764907] R13: ffffbf83c03cbde8 R14: 0000000000000020 R15: 0000000000000000 [ 4.764982] FS: 00000000129f73c0(0000) GS:ffff9b19cd1e6000(0000) knlGS:0000000000000000 [ 4.765055] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4.765110] CR2: 0000000000000000 CR3: 00000000051dc004 CR4: 0000000000772ef0 [ 4.765179] PKRU: 55555554 [ 4.765202] note: packetdrill[229] exited with irqs disabled WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr