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(ffff8000015a4000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff8000015a4000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff8000015a4000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c9152a0) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff8000314f27f8,ffff80003c915470,ffff80003c9153c0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c915470) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c915470) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x210c5a770f0, count: -7 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c915190 rbx 0 rdx 0 rcx 0x2f1ce2e43f76104c rax 0xffff8000314f27f8 r8 0x7f7fffffc000 r9 0 r10 0xcb09f150536c110b r11 0xf2282f5bb28f9829 r12 0xdeaf0002deaf4152 r13 0xffff8000015a4560 r14 0xffff8000015a4000 r15 0xdeaf0002deaf4152 rip 0xffffffff8293ce00 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c915160 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=392326 pid=28162 tcnt=2 stat=onproc flags process=1000 proc=4080000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000314f2d28 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000314f2d28,0xffff8000314f3798 process=0xffff80003c950020 user=0xffff80003c910000, vmspace=0xfffffd806c9968b0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20121 225584 75555 0 2 0 syz-executor 20121 260011 75555 0 3 0x4000080 fsleep syz-executor 82403 105549 50465 0 2 0 syz-executor 82403 5593 50465 0 3 0x4000080 fsleep syz-executor 47784 117983 31411 0 2 0 syz-executor 47784 214910 31411 0 3 0x4000080 fsleep syz-executor 98972 522926 78034 0 2 0 syz-executor 98972 246993 78034 0 2 0x4000000 syz-executor 28162 357893 34341 0 3 0x3000 suspend syz-executor *28162 392326 34341 0 7 0x4081000 syz-executor 30924 338546 70687 0 2 0 syz-executor 30924 309158 70687 0 2 0x4000000 syz-executor 34341 122886 34838 0 3 0x82 nanoslp syz-executor 66244 17488 34838 0 3 0x82 wait syz-executor 85195 293416 0 0 3 0x14200 acct acct 39810 249288 0 0 3 0x14280 nfsidl nfsio 15067 421642 0 0 3 0x14280 nfsidl nfsio 33153 319629 0 0 3 0x14280 nfsidl nfsio 99243 56030 0 0 3 0x14280 nfsidl nfsio 47566 164739 0 0 3 0x14280 nfsidl nfsio 91724 472434 0 0 3 0x14280 nfsidl nfsio 81839 79630 0 0 3 0x14280 nfsidl nfsio 87538 335752 0 0 3 0x14280 nfsidl nfsio 39677 499409 0 0 3 0x14280 nfsidl nfsio 68608 302572 0 0 3 0x14280 nfsidl nfsio 4982 460266 0 0 3 0x14280 nfsidl nfsio 52242 485757 0 0 3 0x14280 nfsidl nfsio 95203 166666 0 0 3 0x14280 nfsidl nfsio 97329 366284 0 0 3 0x14280 nfsidl nfsio 84843 245280 0 0 3 0x14280 nfsidl nfsio 10002 372891 0 0 3 0x14280 nfsidl nfsio 10296 127872 0 0 3 0x14280 nfsidl nfsio 65245 385024 0 0 3 0x14280 nfsidl nfsio 46592 63 0 0 3 0x14280 nfsidl nfsio 33894 134707 0 0 3 0x14280 nfsidl nfsio 78034 276424 34838 0 3 0x82 nanoslp syz-executor 50465 443507 34838 0 3 0x82 nanoslp syz-executor 31446 335528 34838 0 2 0x2 syz-executor 70687 330281 34838 0 3 0x82 nanoslp syz-executor 75555 455063 34838 0 3 0x82 nanoslp syz-executor 31411 497550 34838 0 3 0x82 nanoslp syz-executor 34838 12166 37550 0 3 0x82 kqread syz-executor 37550 14684 62874 0 3 0x10008a sigsusp ksh 62874 84845 21131 0 3 0x98 kqread sshd-session 21131 137175 72283 0 3 0x92 kqread sshd-session 8645 33615 1 0 3 0x100083 ttyopn getty 72283 104344 1 0 3 0x88 kqread sshd 18268 267583 30162 73 3 0x1100090 kqread syslogd 30162 227992 1 0 3 0x100082 sbwait syslogd 9546 49741 1 0 3 0x100080 kqread resolvd 10630 297173 21871 77 3 0x100092 kqread dhcpleased 21481 122493 21871 77 3 0x100092 kqread dhcpleased 21871 361044 1 0 3 0x80 kqread dhcpleased 98069 510060 0 0 3 0x14200 bored smr 50638 19679 0 0 2 0x14200 zerothread 88485 252738 0 0 3 0x14200 aiodoned aiodoned 95454 510361 0 0 3 0x14200 syncer update 26374 7901 0 0 3 0x14200 cleaner cleaner 53309 396819 0 0 3 0x14200 reaper reaper 37114 493191 0 0 3 0x14200 pgdaemon pagedaemon 36775 60995 0 0 3 0x14200 bored viomb 85722 43690 0 0 3 0x40014200 acpi0 acpi0 68208 59079 0 0 3 0x14200 bored softnet0 61970 513349 0 0 3 0x14200 smrbar systqmp 94484 287636 0 0 3 0x14200 bored systq 66557 101612 0 0 3 0x40014200 tmoslp softclock 66440 360109 0 0 3 0x40014200 idle0 1 321589 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11062 12239K 14496K 166960K 14186 0 pcb 17 15K 16K 166960K 286 0 rtable 237 9K 9K 166960K 767 0 pf 32 13K 16K 166960K 121 0 ifaddr 42 7K 8K 166960K 96 0 ifgroup 47 1K 2K 166960K 139 0 sysctl 4 1K 9K 166960K 13 0 counters 33 17K 18K 166960K 84 0 ioctlops 0 0K 4K 166960K 261 0 iov 0 0K 24K 166960K 104 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1530 96K 96K 166960K 2338 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 127 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 882 0 sigio 0 0K 0K 166960K 8 0 proc 60 59K 124K 166960K 593 0 subproc 72 4K 4K 166960K 92 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 79 0 in_multi 89 6K 7K 166960K 157 0 ether_multi 1 0K 0K 166960K 9 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 211 943K 943K 166960K 211 0 exec 0 0K 1K 166960K 641 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 223 158K 175K 166960K 9283 0 UVM aobj 61 6K 6K 166960K 66 0 pinsyscall 38 76K 96K 166960K 2017 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 43 0 NDP 11 0K 2K 166960K 66 0 temp 78 8680K 8746K 166960K 22772 0 kqueue 14 20K 33K 166960K 186 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 156 0 152 3 0 3 3 0 8 2 rtentry 136 282 0 181 4 0 4 4 0 8 0 unpcb 144 514 0 499 4 0 4 4 0 8 3 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 3 0 3 1 0 1 1 0 8 1 tcpcb 736 265 0 255 7 0 7 7 0 8 6 arp 96 89 0 69 1 0 1 1 0 8 0 ipq 40 3 0 1 1 0 1 1 0 8 0 ipqe 40 5 0 3 1 0 1 1 0 8 0 inpcb 328 796 0 781 8 1 7 7 0 8 4 ip6q 72 3 0 1 2 1 1 1 0 8 0 ip6af 40 4 0 2 2 1 1 1 0 8 0 nd6 112 34 0 10 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 43 0 43 2 1 1 1 0 8 1 pppxif 1384 4 0 4 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 2 1 0 1 1 0 8 0 pfstate 384 3 0 1 1 0 1 1 0 8 0 pfrule 1360 4 0 4 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 720 0 300 34 4 30 30 0 8 3 art_table 40 722 0 300 5 0 5 5 0 8 0 art_node 32 279 0 189 2 0 2 2 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 125 0 115 1 0 1 1 0 8 0 shmpl 112 61 0 5 2 0 2 2 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3066 0 1566 95 0 95 95 0 8 0 ffsino 256 3066 0 1566 95 0 95 95 0 8 0 nchpl 144 4242 0 2549 64 0 64 64 0 8 0 rtmask 32 7 0 7 2 1 1 1 0 8 1 vnodes 216 3714 0 0 207 0 207 207 0 8 0 namei 1024 15229 0 15229 4 2 2 2 0 8 2 vcpupl 3904 2 0 0 1 0 1 1 0 8 0 vmpool 808 2 0 0 1 0 1 1 0 8 0 kstatmem 264 90 0 68 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 3 0 3 2 1 1 1 0 8 1 scxspl 216 18840 0 18840 10 2 8 8 1 8 8 plimitpl 152 280 0 264 1 0 1 1 0 8 0 sigapl 424 1190 0 1127 8 0 8 8 0 8 0 knotepl 120 35350 0 35302 53 42 11 25 0 8 8 kqueuepl 184 384 0 374 6 3 3 4 0 8 2 pipepl 304 222 0 195 3 0 3 3 0 8 0 fdescpl 448 1155 0 1126 5 1 4 5 0 8 0 filepl 120 7105 0 6887 13 0 13 13 0 8 5 lockfpl 104 511 0 507 2 0 2 2 0 8 1 lockfspl 48 104 0 100 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 38 0 22 1 0 1 1 0 8 0 ucredpl 104 1392 0 1381 1 0 1 1 0 8 0 zombiepl 144 1393 0 1391 1 0 1 1 0 8 0 processpl 1152 1190 0 1127 5 0 5 5 0 8 0 procpl 664 2343 0 2274 7 0 7 7 0 8 0 sosppl 176 3 0 3 2 1 1 1 0 8 1 sockpl 552 1496 0 1462 13 2 11 13 0 8 6 mcl64k 65536 99 0 98 2 1 1 1 0 8 0 mcl16k 16384 6 0 6 2 1 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 10 0 10 2 1 1 1 0 8 1 mcl4k 4096 3451 0 3400 17 9 8 16 0 8 1 mcl2k 2048 1177 0 1173 1 0 1 1 0 8 0 mtagpl 96 88 0 13 2 0 2 2 0 8 0 mbufpl 256 14075 0 13839 39 20 19 39 0 8 1 bufpl 280 8839 0 2618 445 0 445 445 0 8 0 anonpl 24 167581 0 164478 74 22 52 52 0 187 19 amapchunkpl 152 31367 0 30913 48 13 35 35 0 158 16 amappl16 200 3008 0 2977 25 13 12 19 0 8 8 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 1 0 1 1 1 0 1 0 8 0 amappl13 176 540 0 539 1 0 1 1 0 8 0 amappl12 168 1513 0 1475 2 0 2 2 0 8 0 amappl11 160 43 0 43 1 1 0 1 0 8 0 amappl10 152 41 0 31 1 0 1 1 0 8 0 amappl9 144 385 0 384 2 1 1 1 0 8 0 amappl8 136 29 0 28 1 0 1 1 0 8 0 amappl7 128 85 0 83 1 0 1 1 0 8 0 amappl6 120 283 0 271 1 0 1 1 0 8 0 amappl5 112 72 0 64 1 0 1 1 0 8 0 amappl4 104 390 0 366 1 0 1 1 0 8 0 amappl3 96 5431 0 5346 3 0 3 3 0 8 0 amappl2 88 1265 0 1195 2 0 2 2 0 8 0 amappl1 80 12271 0 11734 14 1 13 13 0 8 0 amappl 88 8430 0 8276 5 0 5 5 0 92 0 uvmvnodes 80 116 0 0 3 0 3 3 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 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 65 0 5 2 0 2 2 0 8 0 uaddrrnd 24 1155 0 1126 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1155 0 1126 1 0 1 1 0 8 0 vmmpekpl 168 10757 0 10715 3 0 3 3 0 8 0 vmmpepl 168 78310 0 76531 94 0 94 94 0 357 9 vmsppl 368 1154 0 1126 4 1 3 4 0 8 0 rwobjpl 40 22090 0 21082 15 1 14 14 0 8 1 pdppl 4096 2321 0 2254 105 36 69 83 0 8 2 pvpl 32 491763 0 483352 160 35 125 125 0 265 33 pmappl 216 1156 0 1126 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 425 0 80 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff8000015a4000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff8000015a4000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff8000015a4000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c9152a0) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff8000314f27f8,ffff80003c915470,ffff80003c9153c0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c915470) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c915470) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x210c5a770f0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff8000015a4000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff8000015a4000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff8000015a4000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c9152a0) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff8000314f27f8,ffff80003c915470,ffff80003c9153c0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c915470) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c915470) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x210c5a770f0, count: -7