kernel: protection fault trap, code=0 Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> show kasan No such command ddb{0}> trace in_ifdetach(ffff8000015f0800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f0800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015f0800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003337bea0) at if_clone_destroy+0x205 sys/net/if.c:1480 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003337bf60) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff0806e2cd6e8,7,fffff080097fd7b8,ffff800045feefa8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff0806a0adcc0,ffff800045feefa8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff0806a0adcc0,ffff800045feefa8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff0806a0adcc0,ffff800045feefa8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff0806a0adcc0,ffff800045feefa8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff800045feefa8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff800045feefa8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff800045feefa8,ffff80003337c2d0,ffff80003337c220) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003337c2d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003337c2d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79cf36200a60, count: -15 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003337bd90 rbx 0xffff800001617c00 rdx 0 rcx 0xffff800045feefa8 rax 0xdeaf4152deaf4152 r8 0x7f7fffffc000 r9 0 r10 0x9102591df0124d6a r11 0x6ef58b2d7785cd89 r12 0 r13 0xffff8000015f0848 r14 0xffff8000015f0800 r15 0xdeaf0036deaf4152 rip 0xffffffff81f04527 in_ifdetach+0x67 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80003337bd40 ss 0x10 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{0}> show proc PROC (syz-executor) tid=436575 pid=12258 tcnt=0 stat=onproc flags process=18 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff800045fefa08,0xffff800045fee558 process=0xffff800045feb038 user=0xffff800033377000, vmspace=0xfffff0807ca689a0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 59197 133740 67323 32767 7 0x10 0 syz-executor 59197 154604 67323 32767 3 0x10 0x4000080 sbwait syz-executor 36897 490816 49252 0 3 0x2 0 clonelk ifconfig 49252 222621 95049 0 3 0x100002 0x88 sigsusp sh 95049 80587 44851 0 3 0 0x80 wait syz-executor 44851 405938 42141 0 3 0x2 0x80 wait syz-executor 9941 200377 58245 0 3 0 0 clonelk syz-executor 58245 269007 42141 0 3 0x2 0x80 wait syz-executor 13430 447004 45057 32767 3 0x11 0x80 nanoslp syz-executor 13430 432776 45057 32767 3 0x11 0x4000080 sbwait syz-executor 13430 55287 45057 32767 3 0x11 0x4000080 fsleep syz-executor 61367 273545 46434 0 3 0 0 clonelk syz-executor 46434 465490 42141 0 3 0x2 0x80 wait syz-executor 29921 245108 32468 32767 3 0x11 0x80 nanoslp syz-executor 29921 404519 32468 32767 3 0x11 0x4000080 semwait syz-executor 29921 238309 32468 32767 3 0x11 0x4000080 fsleep syz-executor 67323 104925 8780 32767 3 0x10 0x80 nanoslp syz-executor 32468 452455 12476 32767 3 0x10 0x80 nanoslp syz-executor 45057 236917 73374 32767 3 0x10 0x80 nanoslp syz-executor 24837 11361 42141 0 3 0x2 0x80 wait syz-executor 65025 339066 42141 0 3 0x2 0x80 wait syz-executor 73374 207000 42141 0 3 0x2 0x80 wait syz-executor 12476 227335 42141 0 3 0x2 0x80 wait syz-executor 8780 292986 42141 0 3 0x2 0x80 wait syz-executor 42141 319005 12665 0 3 0x2 0x80 kqread syz-executor 12665 223361 82047 0 3 0x100002 0x88 sigsusp ksh 82047 385786 60253 0 3 0x10 0x88 kqread sshd-session 60253 472882 34547 0 3 0x12 0x80 kqread sshd-session 9600 221281 1 0 3 0x100003 0x80 ttyin getty 34547 187423 1 0 3 0 0x88 kqread sshd 45333 351803 8773 73 3 0x1100010 0x80 kqread syslogd 8773 409450 1 0 3 0x100002 0x80 sbwait syslogd 70399 454506 1 0 3 0x100000 0x80 kqread resolvd 30468 165253 35761 77 3 0x100012 0x80 kqread dhcpleased 9822 31299 35761 77 3 0x100012 0x80 kqread dhcpleased 35761 504670 1 0 3 0 0x80 kqread dhcpleased 86205 72993 0 0 3 0x14000 0x200 bored smr 33581 376015 0 0 3 0x14000 0x200 pgzero zerothread 49764 112936 0 0 3 0x14000 0x200 aiodoned aiodoned 26645 434788 0 0 3 0x14000 0x200 syncer update 11114 425267 0 0 3 0x14000 0x200 cleaner cleaner 85651 524036 0 0 3 0x14000 0x200 reaper reaper 23374 109170 0 0 3 0x14000 0x200 pgdaemon pagedaemon 35185 408558 0 0 3 0x14000 0x200 bored viomb 90638 365239 0 0 3 0x14000 0x40000200 acpi0 acpi0 55768 458856 0 0 3 0x14000 0x40000200 idle1 29772 495740 0 0 3 0x14000 0x200 bored softnet1 36299 460949 0 0 3 0x14000 0x200 bored softnet0 97916 2673 0 0 3 0x14000 0x200 bored systqmp 34004 523167 0 0 3 0x14000 0x200 bored systq 16283 471738 0 0 3 0x14000 0x200 tmoslp softclockmp 85483 207629 0 0 3 0x14000 0x40000200 tmoslp softclock 25427 397368 0 0 3 0x14000 0x40000200 idle0 1 210657 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11038 12011K 12034K 166960K 12139 0 pcb 17 12K 12K 166960K 17 0 rtable 173 5K 7K 166960K 358 0 pf 25 16K 16K 166960K 31 0 ifaddr 30 5K 7K 166960K 44 0 ifgroup 38 1K 2K 166960K 50 0 sysctl 3 1K 9K 166960K 7 0 counters 64 36K 37K 166960K 70 0 ioctlops 0 0K 2K 166960K 29 0 iov 0 0K 12K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1287 81K 81K 166960K 1381 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 4 0K 1K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 23 85K 125K 166960K 205 0 proc 65 115K 147K 166960K 531 0 subproc 72 4K 4K 166960K 99 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 12 0 in_multi 66 4K 6K 166960K 104 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 379 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 213 168K 186K 166960K 3502 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 44 88K 112K 166960K 1327 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 8 0K 2K 166960K 27 0 temp 36 9114K 9134K 166960K 3636 0 kqueue 13 20K 24K 166960K 38 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 43 0 40 1 0 1 1 0 8 0 rtentry 176 112 0 34 6 0 6 6 0 8 0 unpcb 144 81 0 62 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpcb 736 31 0 25 1 0 1 1 0 8 0 arp 136 18 0 6 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 1 1 0 1 1 0 8 0 inpcb 328 116 0 104 2 0 2 2 0 8 0 nd6 152 25 0 9 1 0 1 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 467 0 132 30 0 30 30 0 8 4 art_table 40 468 0 132 5 0 5 5 0 8 0 art_node 32 112 0 41 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semupl 112 1 0 0 1 0 1 1 0 8 0 semapl 72 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1614 0 149 92 0 92 92 0 8 0 ffsino 296 1614 0 149 113 0 113 113 0 8 0 nchpl 144 1868 0 170 63 0 63 63 0 8 0 vnodes 216 1722 0 0 96 0 96 96 0 8 0 namei 1024 6334 0 6334 4 1 3 3 0 8 3 percpumem 16 51 0 3 1 0 1 1 0 8 0 kstatmem 264 25 0 6 2 0 2 2 0 8 0 scxspl 216 6432 0 6432 4 3 1 3 1 8 1 plimitpl 152 47 0 23 2 0 2 2 0 8 0 sigapl 424 499 0 448 7 0 7 7 0 8 0 knotepl 120 288 0 0 9 0 9 9 0 8 0 kqueuepl 224 39 0 30 1 0 1 1 0 8 0 pipepl 344 133 0 106 3 0 3 3 0 8 0 fdescpl 528 483 0 448 4 0 4 4 0 8 0 filepl 160 1748 0 1534 10 0 10 10 0 8 0 lockfpl 104 15 0 13 1 0 1 1 0 8 0 lockfspl 48 8 0 6 1 0 1 1 0 8 0 sessionpl 144 31 0 13 1 0 1 1 0 8 0 pgrppl 48 44 0 18 1 0 1 1 0 8 0 ucredpl 104 149 0 133 1 0 1 1 0 8 0 zombiepl 144 450 0 448 1 0 1 1 0 8 0 processpl 1232 499 0 448 5 0 5 5 0 8 0 procpl 664 589 0 533 7 0 7 7 0 8 1 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 752 242 0 208 5 0 5 5 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 128 0 0 16 0 16 16 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mextrefs 64 18 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 166 0 0 11 0 11 11 0 8 0 bufpl 272 2282 0 102 146 0 146 146 0 8 0 anonpl 32 3544 0 0 29 0 29 29 0 247 0 amapchunkpl 152 9625 0 9196 29 0 29 29 0 158 7 amappl16 200 1466 0 1452 5 1 4 5 0 8 2 amappl15 192 34 0 34 1 1 0 1 0 8 0 amappl14 184 420 0 418 1 0 1 1 0 8 0 amappl13 176 120 0 110 1 0 1 1 0 8 0 amappl12 168 722 0 692 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 60 0 48 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 1 0 1 0 8 0 amappl8 136 117 0 115 1 0 1 1 0 8 0 amappl7 128 142 0 131 1 0 1 1 0 8 0 amappl6 120 153 0 150 1 0 1 1 0 8 0 amappl5 112 103 0 95 1 0 1 1 0 8 0 amappl4 104 267 0 250 1 0 1 1 0 8 0 amappl3 96 1679 0 1598 4 1 3 3 0 8 0 amappl2 88 607 0 536 2 0 2 2 0 8 0 amappl1 80 10926 0 10368 15 0 15 15 0 8 0 amappl 88 2780 0 2632 5 0 5 5 0 92 0 uvmvnodes 80 97 0 0 2 0 2 2 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 483 0 448 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 483 0 448 1 0 1 1 0 8 0 vmmpekpl 168 6074 0 6031 3 0 3 3 0 8 0 vmmpepl 168 40774 0 38911 101 0 101 101 0 357 10 vmsppl 488 482 0 448 7 1 6 6 0 8 1 rwobjpl 80 14890 0 13976 24 0 24 24 0 8 1 pdppl 4096 973 0 896 111 22 89 97 0 8 12 pvpl 32 10841 0 0 88 0 88 88 0 265 0 pmappl 256 482 0 448 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 429 0 26 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace in_ifdetach(ffff8000015f0800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f0800) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015f0800) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003337bea0) at if_clone_destroy+0x205 sys/net/if.c:1480 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003337bf60) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff0806e2cd6e8,7,fffff080097fd7b8,ffff800045feefa8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff0806a0adcc0,ffff800045feefa8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff0806a0adcc0,ffff800045feefa8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff0806a0adcc0,ffff800045feefa8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff0806a0adcc0,ffff800045feefa8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff800045feefa8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff800045feefa8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff800045feefa8,ffff80003337c2d0,ffff80003337c220) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003337c2d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003337c2d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79cf36200a60, count: -15 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x718a4cb2d670, count: -3