kernel: protection fault trap, code=0 Stopped at bpfdetach+0x40: movq 0(%r15),%r12 ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace bpfdetach(ffff80000147a800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff80000147a800) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff80000147a800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80003c99cff0) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80002a824fb8,ffff80003c99d1c0,ffff80003c99d110) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c99d1c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c99d1c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3c4269b3500, count: -7 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c99cee0 rbx 0 rdx 0 rcx 0x7d8d5523a132f0f9 rax 0xffff80002a824fb8 r8 0 r9 0 r10 0x1b706beb6187efe9 r11 0xed259ab7fccf0eef r12 0xdeaf0002deaf4152 r13 0xffff80000147ad60 r14 0xffff80000147a800 r15 0xdeaf0002deaf4152 rip 0xffffffff8161b020 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c99ceb0 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=308848 pid=30220 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=51, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7fed18,0xffff80002a825260 process=0xffff80003c9656f0 user=0xffff80003c998000, vmspace=0xfffffd806b983e78 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 48548 111096 40302 0 2 0 syz-executor 48548 336666 40302 0 3 0x4000080 fsleep syz-executor 30220 380922 19016 0 3 0x80 nanoslp syz-executor *30220 308848 19016 0 7 0x4000000 syz-executor 30220 249301 19016 0 3 0x4000080 fsleep syz-executor 30220 374148 19016 0 3 0x4000080 fsleep syz-executor 60937 275408 72085 0 2 0 syz-executor 60937 95421 72085 0 3 0x4000080 sbwait syz-executor 69395 395145 59245 0 2 0 syz-executor 69395 43767 59245 0 3 0x4000080 fsleep syz-executor 97542 71965 96717 0 2 0 syz-executor 97542 314581 96717 0 3 0x4000080 fsleep syz-executor 97542 464070 96717 0 3 0x4000080 fsleep syz-executor 91588 420294 0 0 3 0x14200 bored sosplice 59245 181164 97236 0 3 0x82 nanoslp syz-executor 72085 221861 97236 0 3 0x82 nanoslp syz-executor 19016 205029 97236 0 3 0x82 nanoslp syz-executor 96717 29821 97236 0 3 0x82 nanoslp syz-executor 40302 289089 97236 0 3 0x82 nanoslp syz-executor 88308 4436 97236 0 3 0x82 wait syz-executor 51388 393617 97236 0 2 0x2 syz-executor 93985 19794 97236 0 3 0x82 nanoslp syz-executor 97236 452719 66293 0 3 0x82 kqread syz-executor 66293 162539 95946 0 3 0x10008a sigsusp ksh 95946 218846 68406 0 3 0x98 kqread sshd-session 68406 418204 78046 0 3 0x92 kqread sshd-session 47488 71408 1 0 3 0x100083 ttyin getty 78046 109241 1 0 3 0x88 kqread sshd 76913 394732 1438 73 3 0x1100090 kqread syslogd 1438 17983 1 0 3 0x100082 sbwait syslogd 48571 199980 1 0 3 0x100080 kqread resolvd 61751 197437 23764 77 3 0x100092 kqread dhcpleased 7512 337623 23764 77 3 0x100092 kqread dhcpleased 23764 378783 1 0 3 0x80 kqread dhcpleased 15949 329174 0 0 3 0x14200 bored smr 57641 308073 0 0 2 0x14200 zerothread 98328 127029 0 0 3 0x14200 aiodoned aiodoned 92266 80226 0 0 3 0x14200 syncer update 99817 481548 0 0 3 0x14200 cleaner cleaner 57751 477135 0 0 2 0x14200 reaper 56012 7345 0 0 3 0x14200 pgdaemon pagedaemon 94619 23422 0 0 3 0x14200 bored viomb 10036 227929 0 0 3 0x40014200 acpi0 acpi0 20769 181668 0 0 3 0x14200 bored softnet7 40880 317885 0 0 3 0x14200 bored softnet6 62582 344275 0 0 3 0x14200 bored softnet5 18625 110633 0 0 3 0x14200 bored softnet4 50118 278207 0 0 3 0x14200 bored softnet3 41004 310612 0 0 3 0x14200 bored softnet2 99138 76778 0 0 3 0x14200 bored softnet1 20103 345129 0 0 3 0x14200 bored softnet0 72778 275413 0 0 3 0x14200 bored systqmp 47659 21690 0 0 3 0x14200 bored systq 23654 36894 0 0 3 0x40014200 tmoslp softclock 74418 138306 0 0 3 0x40014200 idle0 1 138742 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10195 11174K 11176K 166960K 11383 0 pcb 23 12K 12K 166960K 40 0 rtable 201 5K 6K 166960K 279 0 pf 30 12K 13K 166960K 47 0 ifaddr 40 7K 7K 166960K 53 0 ifgroup 50 2K 2K 166960K 70 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 18K 166960K 39 0 ioctlops 0 0K 2K 166960K 38 0 iov 1 4K 12K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1340 84K 85K 166960K 1479 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 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 97K 166960K 217 0 sigio 0 0K 0K 166960K 1 0 proc 60 59K 91K 166960K 479 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 14 0 in_multi 89 6K 6K 166960K 105 0 ether_multi 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 127 572K 572K 166960K 127 0 exec 0 0K 1K 166960K 356 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 218 159K 167K 166960K 3642 0 UVM aobj 6 4K 4K 166960K 6 0 pinsyscall 37 74K 96K 166960K 1249 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 11 0K 1K 166960K 34 0 temp 35 8630K 8695K 166960K 4088 0 kqueue 16 26K 26K 166960K 44 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 46 0 43 1 0 1 1 0 8 0 rtentry 136 96 0 7 4 0 4 4 0 8 0 unpcb 144 211 0 190 5 0 5 5 0 8 4 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 31 0 27 1 0 1 1 0 8 0 arp 88 10 0 0 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 2 0 2 1 0 1 1 0 8 1 inpcb 328 117 0 104 2 0 2 2 0 8 0 nd6 104 16 0 2 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 6 0 6 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 436 0 39 28 2 26 28 0 8 0 art_table 40 438 0 39 5 0 5 5 0 8 0 art_node 32 96 0 16 1 0 1 1 0 8 0 semapl 112 1 0 0 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1776 0 275 95 0 95 95 0 8 0 ffsino 256 1776 0 275 95 0 95 95 0 8 0 nchpl 144 2076 0 395 63 0 63 63 0 8 0 uvmvnodes 80 1893 0 0 39 0 39 39 0 8 0 vnodes 216 1893 0 0 106 0 106 106 0 8 0 namei 1024 6609 0 6609 3 2 1 2 0 8 1 kstatmem 264 36 0 14 2 0 2 2 0 8 0 scxspl 216 7106 0 7106 8 7 1 8 1 8 1 plimitpl 152 72 0 53 1 0 1 1 0 8 0 sigapl 424 502 0 452 7 1 6 7 0 8 0 knotepl 120 5829 0 5772 2 0 2 2 0 8 0 kqueuepl 184 53 0 40 1 0 1 1 0 8 0 pipepl 304 104 0 76 3 0 3 3 0 8 0 fdescpl 448 481 0 453 5 1 4 5 0 8 0 filepl 120 2397 0 2168 15 0 15 15 0 8 7 lockfpl 104 41 0 39 1 0 1 1 0 8 0 lockfspl 48 21 0 19 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 346 0 335 1 0 1 1 0 8 0 zombiepl 144 487 0 485 1 0 1 1 0 8 0 processpl 1168 502 0 452 5 1 4 5 0 8 0 procpl 664 644 0 586 6 0 6 6 0 8 0 sockpl 552 375 0 338 11 1 10 10 0 8 7 mcl64k 65536 9 0 9 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 4 0 4 1 1 0 1 0 8 0 mcl4k 4096 2525 0 2474 15 7 8 14 0 8 1 mcl2k 2048 261 0 260 3 2 1 2 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4628 0 4448 13 1 12 12 0 8 0 bufpl 280 2994 0 118 206 0 206 206 0 8 0 anonpl 24 104372 0 101304 29 3 26 26 0 187 6 amapchunkpl 152 10676 0 10226 23 0 23 23 0 158 2 amappl16 200 1940 0 1917 5 3 2 5 0 8 0 amappl15 192 4 0 3 2 1 1 1 0 8 0 amappl14 184 103 0 93 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 0 1 1 0 8 1 amappl12 168 1095 0 1067 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 7 0 6 1 0 1 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 27 0 26 1 0 1 1 0 8 0 amappl7 128 103 0 93 1 0 1 1 0 8 0 amappl6 120 173 0 170 1 0 1 1 0 8 0 amappl5 112 112 0 106 1 0 1 1 0 8 0 amappl4 104 265 0 251 1 0 1 1 0 8 0 amappl3 96 1734 0 1633 4 0 4 4 0 8 0 amappl2 88 613 0 558 2 0 2 2 0 8 0 amappl1 80 8277 0 7735 13 1 12 13 0 8 0 amappl 88 2988 0 2836 5 0 5 5 0 92 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 254 0 254 2 1 1 1 0 8 1 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 481 0 453 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 481 0 453 1 0 1 1 0 8 0 vmmpekpl 168 5309 0 5273 2 0 2 2 0 8 0 vmmpepl 168 37152 0 35381 85 1 84 84 0 357 1 vmsppl 368 480 0 452 4 1 3 4 0 8 0 rwobjpl 40 14852 0 12131 28 0 28 28 0 8 0 pdppl 4096 969 0 904 95 28 67 83 0 8 2 pvpl 32 238743 0 229985 89 0 89 89 0 265 11 pmappl 216 480 0 452 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 376 0 51 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff80000147a800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff80000147a800) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff80000147a800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80003c99cff0) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80002a824fb8,ffff80003c99d1c0,ffff80003c99d110) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c99d1c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c99d1c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3c4269b3500, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff80000147a800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff80000147a800) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff80000147a800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80003c99cff0) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80002a824fb8,ffff80003c99d1c0,ffff80003c99d110) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c99d1c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c99d1c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3c4269b3500, count: -7