kernel: protection fault trap, code=0 Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> show kasan No such command ddb{1}> trace in_ifdetach(ffff8000015df000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015df000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015df000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff800039bc5d70) at if_clone_destroy+0x205 sys/net/if.c:1480 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff800039bc5e30) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff1007bf3f610,7,fffff100097fd410,ffff80002a26aa80) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff1006cf120e0,ffff80002a26aa80) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff1006cf120e0,ffff80002a26aa80) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff1006cf120e0,ffff80002a26aa80) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff1006cf120e0,ffff80002a26aa80) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a26aa80) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a26aa80,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a26aa80,ffff800039bc61a0,ffff800039bc60f0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800039bc61a0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039bc61a0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a964582d0a0, count: -15 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800039bc5c60 rbx 0xffff80000160f580 rdx 0 rcx 0xffff80002a26aa80 rax 0xdeaf4152deaf4152 r8 0xffffffffffffffff r9 0x1 r10 0x4a597a7f97c142d6 r11 0xf696fec65386476 r12 0 r13 0xffff8000015df048 r14 0xffff8000015df000 r15 0xdeaf0036deaf4152 rip 0xffffffff81119e27 in_ifdetach+0x67 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff800039bc5c10 ss 0x10 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{1}> show proc PROC (syz-executor) tid=389517 pid=11470 tcnt=0 stat=onproc flags process=18 proc=2000 runpri=32, usrpri=72, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a22ad10,0xffff80002a26b788 process=0xffff800045fef560 user=0xffff800039bc1000, vmspace=0xfffff1006cf989b0 estcpu=22, cpticks=5, pctcpu=0.4, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 57818 358088 60419 0 3 0x2 0 clonelk ifconfig 60419 16699 55801 0 3 0x100002 0x88 sigsusp sh 55801 20626 84782 0 3 0 0x80 wait syz-executor 42055 416317 67070 0 3 0x2 0 clonelk ifconfig 84782 91731 90512 0 3 0x2 0x80 wait syz-executor 67070 420826 6824 0 3 0x100002 0x88 sigsusp sh 6824 143614 86848 0 3 0 0x80 wait syz-executor 86848 501177 90512 0 3 0x2 0x80 wait syz-executor 45178 392885 49583 0 3 0x2 0 clonelk ifconfig 49583 242208 82515 0 3 0x100002 0x88 sigsusp sh 82515 305220 76377 0 3 0 0x80 wait syz-executor 76377 158923 90512 0 3 0x2 0x80 wait syz-executor 11082 38688 59831 32767 3 0x10 0x80 piperd syz-executor 78810 65251 90512 0 3 0x2 0x80 wait syz-executor 19578 10194 90512 0 3 0x2 0x80 wait syz-executor 24898 428178 90512 0 3 0x2 0x80 wait syz-executor 59831 462124 90512 0 3 0x2 0x80 wait syz-executor 90512 415881 17134 0 3 0x2 0x80 nanoslp syz-executor 17134 93678 8186 0 3 0x100002 0x88 sigsusp ksh 8186 399692 82399 0 3 0x10 0x88 kqread sshd-session 82399 53600 64486 0 3 0x12 0x80 kqread sshd-session 80111 273055 1 0 3 0x100003 0x80 ttyin getty 64486 337885 1 0 3 0 0x88 kqread sshd 45488 150483 65725 73 3 0x1100010 0x80 kqread syslogd 65725 49067 1 0 3 0x100002 0x80 sbwait syslogd 42885 203748 1 0 3 0x100000 0x80 kqread resolvd 98504 66341 9067 77 3 0x100012 0x80 kqread dhcpleased 15637 206290 9067 77 3 0x100012 0x80 kqread dhcpleased 9067 107167 1 0 3 0 0x80 kqread dhcpleased 55658 130870 0 0 3 0x14000 0x200 bored smr 99650 495549 0 0 3 0x14000 0x200 pgzero zerothread 14243 455563 0 0 3 0x14000 0x200 aiodoned aiodoned 17549 434350 0 0 3 0x14000 0x200 syncer update 21163 384563 0 0 3 0x14000 0x200 cleaner cleaner 95491 45700 0 0 3 0x14000 0x200 reaper reaper 38661 18142 0 0 3 0x14000 0x200 pgdaemon pagedaemon 1688 387346 0 0 3 0x14000 0x200 bored viomb 43012 478651 0 0 3 0x14000 0x40000200 acpi0 acpi0 5375 89711 0 0 3 0x14000 0x40000200 idle1 42013 175029 0 0 3 0x14000 0x200 bored softnet1 1357 248246 0 0 3 0x14000 0x200 bored softnet0 70948 204532 0 0 3 0x14000 0x200 smrbar systqmp 29274 299570 0 0 3 0x14000 0x200 bored systq 8809 502223 0 0 3 0x14000 0x200 tmoslp softclockmp 61636 163786 0 0 3 0x14000 0x40000200 tmoslp softclock 51185 466664 0 0 7 0x14000 0x40000200 idle0 1 500493 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 70948 (systqmp) thread 0xffff800045ffe000 (204532) shared rwlock systqmp r = 0 (0xffffffff8391ed28) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11063 12012K 12034K 166960K 12168 0 pcb 17 12K 12K 166960K 17 0 rtable 149 4K 7K 166960K 355 0 pf 23 15K 16K 166960K 31 0 ifaddr 26 4K 7K 166960K 44 0 ifgroup 34 1K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 62 36K 37K 166960K 70 0 ioctlops 0 0K 4K 166960K 33 0 iov 0 0K 1K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1287 81K 81K 166960K 1436 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 22 81K 121K 166960K 234 0 sigio 0 0K 0K 166960K 2 0 proc 79 147K 147K 166960K 524 0 subproc 63 3K 4K 166960K 153 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 19 0 in_multi 55 3K 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 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 391 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 189 153K 170K 166960K 3717 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 43 86K 111K 166960K 1359 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 7 0K 2K 166960K 27 0 temp 31 9114K 9134K 166960K 3889 0 kqueue 13 20K 22K 166960K 33 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 45 0 42 1 0 1 1 0 8 0 rtentry 176 111 0 45 5 0 5 5 0 8 0 unpcb 144 75 0 60 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 58 0 54 4 0 4 4 0 8 3 arp 136 18 0 8 1 0 1 1 0 8 0 inpcb 328 173 0 163 4 0 4 4 0 8 3 nd6 152 24 0 12 1 0 1 1 0 8 0 kcovpl 48 17 0 10 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 132 29 0 29 29 0 8 5 art_table 40 453 0 132 5 0 5 5 0 8 0 art_node 32 111 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 72 1 0 0 1 0 1 1 0 8 0 shmpl 120 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1643 0 168 93 0 93 93 0 8 0 ffsino 296 1643 0 168 114 0 114 114 0 8 0 nchpl 144 1916 0 218 64 0 64 64 0 8 0 vnodes 216 1805 0 0 101 0 101 101 0 8 0 namei 1024 6792 0 6792 3 1 2 2 0 8 2 percpumem 16 51 0 4 1 0 1 1 0 8 0 kstatmem 264 25 0 8 2 0 2 2 0 8 0 scxspl 216 6904 0 6904 6 2 4 4 1 8 4 plimitpl 152 95 0 73 2 0 2 2 0 8 0 sigapl 424 518 0 468 7 0 7 7 0 8 0 knotepl 120 100 0 0 4 0 4 4 0 8 0 kqueuepl 224 37 0 28 1 0 1 1 0 8 0 pipepl 344 152 0 125 3 0 3 3 0 8 0 fdescpl 528 502 0 468 3 0 3 3 0 8 0 filepl 160 2057 0 1867 12 1 11 11 0 8 1 lockfpl 104 32 0 30 1 0 1 1 0 8 0 lockfspl 48 14 0 12 1 0 1 1 0 8 0 sessionpl 144 35 0 20 1 0 1 1 0 8 0 pgrppl 48 53 0 31 1 0 1 1 0 8 0 ucredpl 104 260 0 245 1 0 1 1 0 8 0 zombiepl 144 471 0 468 1 0 1 1 0 8 0 processpl 1240 518 0 468 5 0 5 5 0 8 0 procpl 664 618 0 568 6 0 6 6 0 8 0 sockpl 752 293 0 265 8 0 8 8 0 8 4 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 132 0 0 17 0 17 17 0 8 0 mcl2k 2048 22 0 0 3 0 3 3 0 8 0 mextrefs 64 21 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 250 0 0 16 0 16 16 0 8 0 bufpl 272 2371 0 102 152 0 152 152 0 8 0 anonpl 32 5112 0 0 42 0 42 42 0 247 0 amapchunkpl 152 10367 0 10024 26 0 26 26 0 158 7 amappl16 200 1783 0 1773 5 1 4 5 0 8 2 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 422 0 418 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 740 0 713 2 0 2 2 0 8 0 amappl11 160 9 0 9 1 1 0 1 0 8 0 amappl10 152 86 0 76 1 0 1 1 0 8 0 amappl9 144 283 0 283 1 1 0 1 0 8 0 amappl8 136 115 0 111 1 0 1 1 0 8 0 amappl7 128 141 0 130 1 0 1 1 0 8 0 amappl6 120 160 0 153 1 0 1 1 0 8 0 amappl5 112 95 0 87 1 0 1 1 0 8 0 amappl4 104 284 0 270 1 0 1 1 0 8 0 amappl3 96 1734 0 1668 4 1 3 3 0 8 0 amappl2 88 630 0 560 2 0 2 2 0 8 0 amappl1 80 10523 0 9958 14 0 14 14 0 8 1 amappl 88 2996 0 2872 5 0 5 5 0 92 0 uvmvnodes 80 96 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 502 0 468 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 502 0 468 1 0 1 1 0 8 0 vmmpekpl 168 6093 0 6046 3 0 3 3 0 8 0 vmmpepl 168 41356 0 39646 93 0 93 93 0 357 9 vmsppl 488 501 0 468 7 1 6 6 0 8 0 rwobjpl 80 15013 0 14106 23 0 23 23 0 8 0 pdppl 4096 1011 0 936 113 32 81 95 0 8 6 pvpl 32 10559 0 0 86 0 86 86 0 265 0 pmappl 256 501 0 468 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 444 0 36 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff839dfff0) 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 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffffffff839dfff0) at sched_idle+0x371 sys/kern/kern_sched.c:192 end trace frame: 0x0, count: -5 ddb{0}> machine ddbcpu 1 Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{1}> trace in_ifdetach(ffff8000015df000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015df000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015df000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff800039bc5d70) at if_clone_destroy+0x205 sys/net/if.c:1480 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff800039bc5e30) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff1007bf3f610,7,fffff100097fd410,ffff80002a26aa80) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff1006cf120e0,ffff80002a26aa80) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff1006cf120e0,ffff80002a26aa80) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff1006cf120e0,ffff80002a26aa80) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff1006cf120e0,ffff80002a26aa80) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a26aa80) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a26aa80,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a26aa80,ffff800039bc61a0,ffff800039bc60f0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800039bc61a0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039bc61a0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a964582d0a0, count: -15