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(ffff800001476000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001476000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001476000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c957430) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002f4f14d8,ffff80003c957600,ffff80003c957550) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c957600) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c957600) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x74f9eb8d830, count: -7 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c957320 rbx 0 rdx 0 rcx 0xb89e965c36c8df8a rax 0xffff80002f4f14d8 r8 0 r9 0 r10 0x8f505b0e50c983ca r11 0xd25eb2c570e7c0f5 r12 0xdeaf0002deafbead r13 0xffff800001476560 r14 0xffff800001476000 r15 0xdeaf0002deafbead rip 0xffffffff823a14f0 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c9572f0 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=164960 pid=54500 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c934030,0xffff80002f4f0d20 process=0xffff80002f4eed18 user=0xffff80003c952000, vmspace=0xfffffd806cb16180 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 61450 371021 51045 0 2 0 syz-executor 61450 512729 51045 0 3 0x4000080 fsleep syz-executor 79380 132376 71687 0 2 0 syz-executor 79380 160141 71687 0 3 0x4000080 fsleep syz-executor 44605 41507 42741 0 2 0 syz-executor 44605 457713 42741 0 3 0x4000080 fsleep syz-executor 44605 91235 42741 0 3 0x4000080 fsleep syz-executor 59087 439717 10019 0 2 0 syz-executor 59087 364331 10019 0 3 0x4000080 fsleep syz-executor 59087 66889 10019 0 2 0x4000000 syz-executor 54500 419248 58667 0 2 0 syz-executor *54500 164960 58667 0 7 0x4000000 syz-executor 54500 293763 58667 0 2 0x4000000 syz-executor 54500 195920 58667 0 2 0x4000000 syz-executor 53137 65796 37201 0 2 0 syz-executor 53137 263538 37201 0 3 0x4000080 kqsel syz-executor 53137 274035 37201 0 2 0x4000000 syz-executor 28024 291062 0 0 3 0x14200 acct acct 97798 25247 1 0 3 0x100083 ttyin getty 10019 174198 768 0 3 0x82 nanoslp syz-executor 37201 426456 768 0 3 0x82 nanoslp syz-executor 75670 24807 768 0 2 0x2 syz-executor 58667 37240 768 0 3 0x82 nanoslp syz-executor 51045 306942 768 0 3 0x82 nanoslp syz-executor 42741 224222 768 0 3 0x82 nanoslp syz-executor 71687 335322 768 0 3 0x82 nanoslp syz-executor 52171 374342 768 0 3 0x82 wait syz-executor 768 357407 81412 0 3 0x82 kqread syz-executor 81412 333176 78566 0 3 0x10008a sigsusp ksh 78566 109218 53441 0 3 0x98 kqread sshd-session 53441 90666 75077 0 3 0x92 kqread sshd-session 75077 16902 1 0 3 0x88 kqread sshd 97437 297371 23771 73 3 0x1100090 kqread syslogd 23771 154881 1 0 3 0x100082 sbwait syslogd 61226 119831 1 0 3 0x100080 kqread resolvd 44264 481177 85023 77 3 0x100092 kqread dhcpleased 81723 36300 85023 77 3 0x100092 kqread dhcpleased 85023 509391 1 0 3 0x80 kqread dhcpleased 73736 201674 0 0 3 0x14200 bored smr 29164 463195 0 0 2 0x14200 zerothread 25501 380678 0 0 3 0x14200 aiodoned aiodoned 72962 184541 0 0 3 0x14200 syncer update 35143 208625 0 0 3 0x14200 cleaner cleaner 75591 53920 0 0 3 0x14200 reaper reaper 9104 463304 0 0 3 0x14200 pgdaemon pagedaemon 89533 330085 0 0 3 0x14200 bored viomb 86722 507741 0 0 3 0x40014200 acpi0 acpi0 67344 273889 0 0 3 0x14200 bored softnet0 78270 491413 0 0 3 0x14200 smrbar systqmp 59158 505511 0 0 3 0x14200 bored systq 31115 511150 0 0 3 0x40014200 tmoslp softclock 50295 460725 0 0 3 0x40014200 idle0 1 340622 0 0 3 0x80082 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 10194 11101K 11766K 166960K 12536 0 pcb 18 16K 17K 166960K 242 0 rtable 220 9K 10K 166960K 488 0 pf 25 12K 16K 166960K 101 0 ifaddr 31 5K 8K 166960K 78 0 ifgroup 38 1K 2K 166960K 118 0 sysctl 3 1K 9K 166960K 14 0 counters 30 17K 18K 166960K 140 0 ioctlops 0 0K 4K 166960K 238 0 iov 0 0K 24K 166960K 86 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1428 90K 91K 166960K 2241 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 18 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 25 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 756 0 sigio 0 0K 0K 166960K 8 0 proc 60 59K 83K 166960K 539 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 0 0K 0K 166960K 65 0 in_multi 66 4K 7K 166960K 121 0 ether_multi 1 0K 0K 166960K 7 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 405 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 1K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 229 159K 178K 166960K 8598 0 UVM aobj 26 2K 2K 166960K 29 0 pinsyscall 38 76K 92K 166960K 1833 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 53 0 NDP 8 0K 1K 166960K 54 0 temp 78 8668K 8750K 166960K 39074 0 kqueue 16 24K 28K 166960K 131 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 94 0 91 1 0 1 1 0 8 0 rtentry 136 132 0 47 5 0 5 5 0 8 0 unpcb 144 678 0 661 3 2 1 3 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 391 0 383 11 9 2 10 0 8 1 arp 96 21 0 7 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 1207 0 1195 11 2 9 10 0 8 7 ip6q 72 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 29 0 12 1 0 1 1 0 8 0 pkpcb 40 41 0 41 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 101 0 101 2 1 1 1 0 8 1 pppxif 1384 3 0 3 2 1 1 1 0 8 1 pfrule 1344 4 0 4 1 1 0 1 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 551 0 207 31 5 26 31 0 8 1 art_table 40 555 0 207 5 0 5 5 0 8 0 art_node 32 131 0 53 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 22 0 13 1 0 1 1 0 8 0 shmpl 112 26 0 3 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2862 0 1365 95 0 95 95 0 8 0 ffsino 256 2862 0 1365 95 0 95 95 0 8 0 nchpl 144 3974 0 2282 63 0 63 63 0 8 0 rtmask 32 8 0 8 1 1 0 1 0 8 0 vnodes 216 3469 0 0 193 0 193 193 0 8 0 namei 1024 13572 0 13572 3 2 1 2 0 8 1 kstatmem 264 74 0 58 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 16977 0 16977 8 7 1 8 1 8 1 plimitpl 152 295 0 278 1 0 1 1 0 8 0 sigapl 424 1046 0 1003 6 1 5 6 0 8 0 knotepl 120 26702 0 26405 18 8 10 10 0 8 0 kqueuepl 184 207 0 193 1 0 1 1 0 8 0 pipepl 304 259 0 231 3 0 3 3 0 8 0 fdescpl 448 1031 0 1002 5 1 4 5 0 8 0 filepl 120 7357 0 7134 12 3 9 12 0 8 1 lockfpl 104 266 0 264 1 0 1 1 0 8 0 lockfspl 48 117 0 115 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 37 0 21 1 0 1 1 0 8 0 ucredpl 104 1214 0 1203 1 0 1 1 0 8 0 zombiepl 144 1044 0 1043 1 0 1 1 0 8 0 processpl 1152 1046 0 1003 4 0 4 4 0 8 0 procpl 664 1988 0 1934 7 1 6 6 0 8 0 sosppl 176 9 0 9 2 1 1 1 0 8 1 sockpl 552 2040 0 2007 14 6 8 10 0 8 5 mcl64k 65536 145 0 145 2 1 1 1 0 8 1 mcl16k 16384 5 0 5 1 1 0 1 0 8 0 mcl8k 8192 11 0 11 2 1 1 1 0 8 1 mcl4k 4096 3327 0 3277 13 6 7 13 0 8 0 mcl2k 2048 1188 0 1183 5 4 1 5 0 8 0 mtagpl 96 43 0 20 1 0 1 1 0 8 0 mbufpl 256 14135 0 13983 144 130 14 144 0 8 0 bufpl 280 6683 0 462 445 0 445 445 0 8 0 anonpl 24 166396 0 163262 81 46 35 81 0 187 0 amapchunkpl 152 28380 0 27928 37 14 23 33 0 158 3 amappl16 200 2608 0 2578 31 28 3 28 0 8 0 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 2 0 2 1 1 0 1 0 8 0 amappl13 176 419 0 418 1 0 1 1 0 8 0 amappl12 168 1373 0 1335 2 0 2 2 0 8 0 amappl11 160 20 0 20 1 1 0 1 0 8 0 amappl10 152 40 0 30 1 0 1 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 78 0 76 1 0 1 1 0 8 0 amappl6 120 259 0 247 1 0 1 1 0 8 0 amappl5 112 106 0 98 1 0 1 1 0 8 0 amappl4 104 401 0 375 1 0 1 1 0 8 0 amappl3 96 5363 0 5264 4 1 3 4 0 8 0 amappl2 88 516 0 460 2 0 2 2 0 8 0 amappl1 80 11481 0 10942 13 1 12 13 0 8 0 amappl 88 7790 0 7632 5 0 5 5 0 92 0 uvmvnodes 80 122 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 7 0 7 1 1 0 1 0 8 0 dma128 128 287 0 287 1 1 0 1 0 8 0 dma64 64 7 0 7 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 28 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1031 0 1002 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1031 0 1002 1 0 1 1 0 8 0 vmmpekpl 168 9712 0 9682 2 0 2 2 0 8 0 vmmpepl 168 70137 0 68343 103 18 85 103 0 357 1 vmsppl 368 1030 0 1002 4 1 3 4 0 8 0 rwobjpl 40 20087 0 19111 15 1 14 15 0 8 0 pdppl 4096 2068 0 2004 94 28 66 78 0 8 2 pvpl 32 462662 0 453823 162 72 90 162 0 265 0 pmappl 216 1030 0 1002 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 516 0 192 14 1 13 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff800001476000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001476000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001476000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c957430) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002f4f14d8,ffff80003c957600,ffff80003c957550) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c957600) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c957600) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x74f9eb8d830, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff800001476000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001476000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001476000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c957430) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002f4f14d8,ffff80003c957600,ffff80003c957550) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c957600) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c957600) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x74f9eb8d830, count: -7