[ 3.061951] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 3.062087] #PF: supervisor write access in kernel mode [ 3.062140] #PF: error_code(0x0002) - not-present page [ 3.062201] PGD 4287067 P4D 4287067 PUD 42ae067 PMD 0 [ 3.062268] Oops: Oops: 0002 [#1] SMP [ 3.062313] CPU: 3 UID: 0 PID: 228 Comm: packetdrill Not tainted 6.18.0-rc5-virtme #1 PREEMPT(voluntary) [ 3.062424] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 3.062499] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 3.062572] 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 [ 3.062780] RSP: 0018:ffffa20640587cb8 EFLAGS: 00010046 [ 3.062836] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb7799 [ 3.062926] RDX: ffffa20640587cf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 3.063010] RBP: ffffa20640587cf0 R08: 0000000000000000 R09: 0000000000000065 [ 3.063098] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 3.063190] R13: ffffa20640587de8 R14: 0000000000000020 R15: 0000000000000000 [ 3.063281] FS: 00000000072d63c0(0000) GS:ffff89a504b66000(0000) knlGS:0000000000000000 [ 3.063376] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 3.063455] CR2: 0000000000000000 CR3: 00000000042f6005 CR4: 0000000000772ef0 [ 3.063546] PKRU: 55555554 [ 3.063573] Call Trace: [ 3.063606] [ 3.063634] __cancel_work+0x29/0xe0 [ 3.063685] ? dev_deactivate_many+0x2c9/0x300 [ 3.063752] __cancel_work_sync+0x16/0x80 [ 3.063797] __dev_close_many+0x11b/0x280 [ 3.063841] netif_close_many+0x98/0x160 [ 3.063894] unregister_netdevice_many_notify+0x1d8/0xa50 [ 3.063953] ? __queue_work+0x139/0x4e0 [ 3.063998] unregister_netdevice_queue+0xa0/0xe0 [ 3.064057] __tun_detach+0x45e/0x490 [ 3.064102] tun_chr_close+0x35/0xa0 [ 3.064146] __fput+0xda/0x290 [ 3.064199] __x64_sys_close+0x3d/0x80 [ 3.064244] do_syscall_64+0xa4/0xfd0 [ 3.064297] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 3.064357] RIP: 0033:0x4901eb [ 3.064401] 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 [ 3.064611] RSP: 002b:00007ffd238ee270 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 3.064699] RAX: ffffffffffffffda RBX: 00007ffd238ee7c8 RCX: 00000000004901eb [ 3.064790] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000005 [ 3.064877] RBP: 00007ffd238ee2b0 R08: 0000000000000000 R09: 0000000000000000 [ 3.064966] R10: 0000000000100000 R11: 0000000000000293 R12: 00007ffd238ee748 [ 3.065054] R13: 0000000000000001 R14: 000000000054e030 R15: 0000000000000001 [ 3.065142] [ 3.065170] Modules linked in: [ 3.065216] CR2: 0000000000000000 [ 3.065260] ---[ end trace 0000000000000000 ]--- [ 3.065315] RIP: 0010:work_grab_pending+0x2f/0x1b0 [ 3.065371] 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 [ 3.065573] RSP: 0018:ffffa20640587cb8 EFLAGS: 00010046 [ 3.065631] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 00000000fffb7799 [ 3.065719] RDX: ffffa20640587cf0 RSI: 0000000000000000 RDI: 0000000000000000 [ 3.065809] RBP: ffffa20640587cf0 R08: 0000000000000000 R09: 0000000000000065 [ 3.065897] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 3.065986] R13: ffffa20640587de8 R14: 0000000000000020 R15: 0000000000000000 [ 3.066076] FS: 00000000072d63c0(0000) GS:ffff89a504b66000(0000) knlGS:0000000000000000 [ 3.066166] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 3.066235] CR2: 0000000000000000 CR3: 00000000042f6005 CR4: 0000000000772ef0 [ 3.066327] PKRU: 55555554 [ 3.066358] note: packetdrill[228] exited with irqs disabled WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr