kernel: protection fault trap, code=0 Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> show kasan No such command ddb> trace in_ifdetach(ffff8000015f8800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f8800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f8800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a7d5000) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d00,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a7d50c0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6007ef4bbf8,7,fffff60007ffd548,ffff80002a760010) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006ad049e8,ffff80002a760010) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006ad049e8,ffff80002a760010) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff6006ad049e8,ffff80002a760010) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff6006ad049e8,ffff80002a760010) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a760010) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a760010,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a760010,ffff80002a7d5420,ffff80002a7d5370) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a7d5420) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7d5420) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c5093c214b0, count: -15 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a7d4ef0 rbx 0xffff800001620600 rdx 0 rcx 0x7fc3e3d1de4ea200 rax 0xdeadbeefdeadbeef r8 0xffffffffffffffff r9 0 r10 0x158daab737ae1168 r11 0x52b90e8bbdafaff5 r12 0x5 r13 0xffff8000015f8848 r14 0xffff8000015f8800 r15 0xdead0036deadbeef rip 0xffffffff82169c97 in_ifdetach+0x67 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002a7d4ea0 ss 0x10 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb> show proc PROC (syz-executor) tid=123879 pid=86784 tcnt=0 stat=onproc flags process=a proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a760a70,0xffff80002a760fb0 process=0xffff80002a7a4910 user=0xffff80002a7d0000, vmspace=0xfffff6007f22c2e0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 50448 371710 99032 0 3 0x2 0 clonelk ifconfig 64884 8912 4382 0 3 0 0x80 nanoslp syz-executor 64884 218179 4382 0 2 0 0x4000000 syz-executor 64884 199848 4382 0 3 0 0x4000080 fsleep syz-executor 99032 213071 47557 0 3 0x100002 0x88 sigsusp sh 47557 351144 43656 0 3 0x2 0x80 wait syz-executor 4382 307017 43656 0 3 0x2 0x80 nanoslp syz-executor 14233 459780 0 0 3 0x14000 0x280 nfsidl nfsio 38506 132822 0 0 3 0x14000 0x280 nfsidl nfsio 31441 379235 0 0 3 0x14000 0x280 nfsidl nfsio 10627 407468 0 0 3 0x14000 0x280 nfsidl nfsio 49753 179294 0 0 3 0x14000 0x280 nfsidl nfsio 68775 337867 0 0 3 0x14000 0x280 nfsidl nfsio 9120 403465 0 0 3 0x14000 0x280 nfsidl nfsio 98411 144723 0 0 3 0x14000 0x280 nfsidl nfsio 8922 1114 0 0 3 0x14000 0x280 nfsidl nfsio 15655 452471 0 0 3 0x14000 0x280 nfsidl nfsio 8194 284208 0 0 3 0x14000 0x280 nfsidl nfsio 88623 479783 0 0 3 0x14000 0x280 nfsidl nfsio 78275 50444 0 0 3 0x14000 0x280 nfsidl nfsio 21430 490532 0 0 3 0x14000 0x280 nfsidl nfsio 41395 320214 0 0 3 0x14000 0x280 nfsidl nfsio 12549 447465 0 0 3 0x14000 0x280 nfsidl nfsio 52230 283002 0 0 3 0x14000 0x280 nfsidl nfsio 70407 231434 0 0 3 0x14000 0x280 nfsidl nfsio 70135 244447 0 0 3 0x14000 0x280 nfsidl nfsio 98489 366968 0 0 3 0x14000 0x280 nfsidl nfsio 18621 64928 43656 0 3 0x2 0x80 piperd syz-executor 46792 241532 43656 0 3 0x2 0x80 piperd syz-executor 59327 266017 43656 0 3 0x2 0x80 piperd syz-executor 76873 263287 43656 0 3 0x2 0x80 piperd syz-executor 43656 360515 21447 0 3 0x2 0x80 wait syz-executor 21447 156376 14010 0 3 0x100002 0x88 sigsusp ksh 14010 24887 99919 0 3 0x10 0x88 kqread sshd-session 99919 233773 44092 0 3 0x12 0x80 kqread sshd-session 43035 402547 1 0 3 0x100003 0x80 ttyin getty 44092 409575 1 0 3 0 0x88 kqread sshd 59017 303679 55875 73 3 0x1100010 0x80 kqread syslogd 55875 333050 1 0 3 0x100002 0x80 sbwait syslogd 53119 285234 1 0 3 0x100000 0x80 kqread resolvd 55537 119245 29531 77 3 0x100012 0x80 kqread dhcpleased 98127 388135 29531 77 3 0x100012 0x80 kqread dhcpleased 29531 359293 1 0 3 0 0x80 kqread dhcpleased 18217 263220 0 0 3 0x14000 0x200 bored smr 28974 217508 0 0 3 0x14000 0x200 pgzero zerothread 79532 104802 0 0 3 0x14000 0x200 aiodoned aiodoned 79616 399013 0 0 3 0x14000 0x200 syncer update 33715 282369 0 0 3 0x14000 0x200 cleaner cleaner 53481 312773 0 0 3 0x14000 0x200 reaper reaper 36648 444139 0 0 3 0x14000 0x200 pgdaemon pagedaemon 94069 94555 0 0 3 0x14000 0x200 bored viomb 58468 160184 0 0 3 0x14000 0x40000200 acpi0 acpi0 82815 401829 0 0 3 0x14000 0x200 bored softnet0 54110 397163 0 0 3 0x14000 0x200 bored systqmp 70023 355855 0 0 3 0x14000 0x200 bored systq 99899 408532 0 0 3 0x14000 0x40000200 tmoslp softclock 30066 188801 0 0 3 0x14000 0x40000200 idle0 1 445906 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11030 12103K 13187K 166960K 12720 0 pcb 17 12K 12K 166960K 34 0 rtable 225 7K 8K 166960K 502 0 pf 33 13K 19K 166960K 133 0 ifaddr 39 6K 7K 166960K 65 0 ifgroup 48 2K 2K 166960K 72 0 sysctl 1 1K 9K 166960K 5 0 counters 35 17K 18K 166960K 44 0 ioctlops 0 0K 4K 166960K 88 0 iov 0 0K 12K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1396 88K 88K 166960K 1665 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 13 45K 89K 166960K 267 0 proc 66 67K 108K 166960K 625 0 subproc 72 4K 4K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 8 0 in_multi 88 5K 6K 166960K 145 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 423 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 178 159K 172K 166960K 3845 0 UVM aobj 4 4K 4K 166960K 4 0 pinsyscall 34 68K 94K 166960K 1475 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 13 0K 2K 166960K 42 0 temp 34 9106K 9126K 166960K 4050 0 kqueue 14 22K 28K 166960K 39 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 51 0 48 1 0 1 1 0 8 0 rtentry 136 155 0 56 4 0 4 4 0 8 0 unpcb 144 93 0 78 2 0 2 2 0 8 1 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 21 0 17 1 0 1 1 0 8 0 arp 96 26 0 10 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 190 0 182 7 0 7 7 0 8 6 nd6 112 36 0 15 1 0 1 1 0 8 0 kcovpl 48 13 0 5 1 0 1 1 0 8 0 ppxss 1072 7 0 4 1 0 1 1 0 8 0 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 3 0 3 1 0 1 1 0 8 1 pfanchor 1288 3 0 2 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 3 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 1 1 0 1 1 0 8 0 pfstate 384 3 0 1 1 0 1 1 0 8 0 pfrule 1360 36 0 36 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 631 0 220 29 0 29 29 0 8 2 art_table 40 632 0 220 5 0 5 5 0 8 0 art_node 32 155 0 65 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 3 0 0 1 0 1 1 0 8 0 shmpl 112 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1757 0 286 93 0 93 93 0 8 0 ffsino 256 1757 0 286 93 0 93 93 0 8 0 nchpl 144 2039 0 328 64 0 64 64 0 8 0 vnodes 216 2049 0 0 114 0 114 114 0 8 0 namei 1024 7680 0 7680 3 0 3 3 0 8 3 pfiaddrpl 120 1 0 1 1 0 1 1 0 8 1 kstatmem 264 37 0 14 2 0 2 2 0 8 0 scxspl 216 6834 0 6834 8 0 8 8 1 8 8 plimitpl 152 139 0 123 1 0 1 1 0 8 0 sigapl 424 572 0 514 8 0 8 8 0 8 0 knotepl 120 14559 0 14512 9 0 9 9 0 8 6 kqueuepl 184 75 0 65 2 0 2 2 0 8 1 pipepl 304 138 0 111 3 0 3 3 0 8 0 fdescpl 448 539 0 514 5 0 5 5 0 8 1 filepl 120 2529 0 2327 11 0 11 11 0 8 3 lockfpl 104 56 0 54 1 0 1 1 0 8 0 lockfspl 48 23 0 21 1 0 1 1 0 8 0 sessionpl 144 94 0 86 1 0 1 1 0 8 0 pgrppl 48 107 0 91 1 0 1 1 0 8 0 ucredpl 104 381 0 370 1 0 1 1 0 8 0 zombiepl 144 516 0 514 1 0 1 1 0 8 0 processpl 1152 572 0 514 5 0 5 5 0 8 0 procpl 664 695 0 635 7 0 7 7 0 8 0 sockpl 552 335 0 309 7 0 7 7 0 8 4 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 2606 0 2550 14 0 14 14 0 8 6 mcl2k 2048 245 0 244 1 0 1 1 0 8 0 mextrefs 64 68 0 68 1 0 1 1 0 8 1 mtagpl 96 8 0 8 1 0 1 1 0 8 1 mbufpl 256 5147 0 5023 11 0 11 11 0 8 0 bufpl 272 2379 0 102 152 0 152 152 0 8 0 anonpl 24 95809 0 93030 31 0 31 31 0 187 9 amapchunkpl 152 10909 0 10590 23 0 23 23 0 158 6 amappl16 200 1385 0 1372 4 0 4 4 0 8 2 amappl15 192 2 0 2 1 0 1 1 0 8 1 amappl14 184 458 0 456 1 0 1 1 0 8 0 amappl13 176 123 0 113 1 0 1 1 0 8 0 amappl12 168 795 0 772 2 0 2 2 0 8 0 amappl11 160 28 0 28 1 0 1 1 0 8 1 amappl10 152 60 0 50 1 0 1 1 0 8 0 amappl9 144 274 0 273 1 0 1 1 0 8 0 amappl8 136 122 0 120 1 0 1 1 0 8 0 amappl7 128 146 0 135 1 0 1 1 0 8 0 amappl6 120 192 0 188 1 0 1 1 0 8 0 amappl5 112 93 0 86 1 0 1 1 0 8 0 amappl4 104 274 0 256 1 0 1 1 0 8 0 amappl3 96 1913 0 1851 3 0 3 3 0 8 0 amappl2 88 641 0 578 2 0 2 2 0 8 0 amappl1 80 11041 0 10503 14 0 14 14 0 8 2 amappl 88 3076 0 2963 4 0 4 4 0 92 0 uvmvnodes 80 97 0 0 2 0 2 2 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 539 0 514 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 539 0 514 1 0 1 1 0 8 0 vmmpekpl 168 6334 0 6285 3 0 3 3 0 8 0 vmmpepl 168 43422 0 41934 81 0 81 81 0 357 5 vmsppl 368 538 0 514 4 0 4 4 0 8 1 rwobjpl 40 15317 0 14422 11 0 11 11 0 8 0 pdppl 4096 1084 0 1028 94 26 68 78 0 8 12 pvpl 32 245589 0 238412 93 0 93 93 0 265 21 pmappl 216 538 0 514 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 511 0 26 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace in_ifdetach(ffff8000015f8800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f8800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f8800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a7d5000) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d00,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a7d50c0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6007ef4bbf8,7,fffff60007ffd548,ffff80002a760010) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006ad049e8,ffff80002a760010) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006ad049e8,ffff80002a760010) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff6006ad049e8,ffff80002a760010) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff6006ad049e8,ffff80002a760010) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a760010) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a760010,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a760010,ffff80002a7d5420,ffff80002a7d5370) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a7d5420) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7d5420) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c5093c214b0, count: -15 ddb> machine ddbcpu 1 No such command ddb> trace in_ifdetach(ffff8000015f8800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f8800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f8800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a7d5000) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d00,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a7d50c0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff6007ef4bbf8,7,fffff60007ffd548,ffff80002a760010) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff6006ad049e8,ffff80002a760010) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff6006ad049e8,ffff80002a760010) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff6006ad049e8,ffff80002a760010) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff6006ad049e8,ffff80002a760010) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a760010) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a760010,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a760010,ffff80002a7d5420,ffff80002a7d5370) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a7d5420) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7d5420) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c5093c214b0, count: -15