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(ffff80000147a000) at bpfdetach+0x40 sys/net/bpf.c:1778 if_detach(ffff80000147a000) at if_detach+0x153 sys/net/if.c:1200 tun_clone_destroy(ffff80000147a000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003c98f510) at if_clone_destroy+0x1d7 sys/net/if.c:1389 sys_ioctl(ffff80003c996548,ffff80003c98f6f0,ffff80003c98f640) at sys_ioctl+0x5bf syscall(ffff80003c98f6f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4fea1170320, count: -7 ddb> show registers rdi 0xffff800031518000 rsi 0x35972 acpi_pdirpa+0x217e3 rbp 0xffff80003c98f400 rbx 0xffff80003c98f6f0 rdx 0xffff800031518000 rcx 0x35971 acpi_pdirpa+0x217e2 rax 0xffffffff81ba7589 bpfdetach+0x89 r8 0xa0 r9 0 r10 0xbce3039ee8224e0c r11 0x14916fef45298908 r12 0xdeaf0002deaf4152 r13 0x800 r14 0xffff80000147a000 r15 0xdeaf0002deaf4152 rip 0xffffffff81ba7540 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c98f3d0 ss 0 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=190189 pid=74050 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=0xffff80003c996028,0xffff80003c997748 process=0xffff800035d248c8 user=0xffff80003c98a000, vmspace=0xfffffd8074370e20 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71746 474404 41993 0 2 0 syz-executor 71746 221116 41993 0 2 0x4000000 syz-executor 49113 309375 35666 0 2 0 syz-executor 49113 48324 35666 0 2 0x4000000 syz-executor 66376 84563 92654 0 3 0 futex syz-executor 66376 384024 92654 0 2 0x4000000 syz-executor 74050 221876 77854 0 2 0 syz-executor *74050 190189 77854 0 7 0x4000000 syz-executor 74050 70969 77854 0 2 0x4000000 syz-executor 74050 56367 77854 0 3 0x4000080 fsleep syz-executor 92188 152736 39731 0 2 0 syz-executor 92188 452545 39731 0 2 0x4000000 syz-executor 92188 500330 39731 0 3 0x4000080 fsleep syz-executor 92188 87126 39731 0 3 0x4000080 fsleep syz-executor 84842 90677 0 0 3 0x14280 nfsidl nfsio 59506 205739 0 0 3 0x14280 nfsidl nfsio 12954 495511 0 0 3 0x14280 nfsidl nfsio 58479 213379 0 0 3 0x14280 nfsidl nfsio 59707 457718 0 0 3 0x14280 nfsidl nfsio 82631 442755 0 0 3 0x14280 nfsidl nfsio 41994 29770 0 0 3 0x14280 nfsidl nfsio 42077 447850 0 0 3 0x14280 nfsidl nfsio 59757 167638 0 0 3 0x14280 nfsidl nfsio 46081 89245 0 0 3 0x14280 nfsidl nfsio 73011 153565 0 0 3 0x14280 nfsidl nfsio 4596 244655 0 0 3 0x14280 nfsidl nfsio 2572 214078 0 0 3 0x14280 nfsidl nfsio 32423 235457 0 0 3 0x14280 nfsidl nfsio 1096 441199 0 0 3 0x14280 nfsidl nfsio 35486 176603 0 0 3 0x14280 nfsidl nfsio 83370 85863 0 0 3 0x14280 nfsidl nfsio 69536 33015 0 0 3 0x14280 nfsidl nfsio 26888 403232 0 0 3 0x14280 nfsidl nfsio 32014 120102 0 0 3 0x14280 nfsidl nfsio 60926 220978 0 0 3 0x14200 acct acct 55908 440329 0 0 3 0x14200 bored sosplice 39731 405613 52721 0 3 0x82 nanoslp syz-executor 41993 103711 52721 0 3 0x82 nanoslp syz-executor 92654 52154 52721 0 3 0x82 nanoslp syz-executor 27079 236682 52721 0 3 0x82 nanoslp syz-executor 77854 475122 52721 0 3 0x82 nanoslp syz-executor 48084 427025 52721 0 3 0x2 kmmaplk syz-executor 25531 327112 52721 0 3 0x82 nanoslp syz-executor 35666 214251 52721 0 3 0x82 nanoslp syz-executor 52721 381167 12502 0 3 0x82 kqread syz-executor 12502 381058 1564 0 3 0x10008a sigsusp ksh 1564 221514 73567 0 3 0x98 kqread sshd-session 73567 70131 97811 0 3 0x92 kqread sshd-session 86556 195478 1 0 3 0x100083 ttyopn getty 97811 145718 1 0 3 0x88 kqread sshd 2115 353753 37078 73 3 0x1100090 kqread syslogd 37078 115424 1 0 3 0x100082 sbwait syslogd 73676 404507 1 0 3 0x100080 kqread resolvd 37906 508734 62067 77 2 0x100012 dhcpleased 65693 418350 62067 77 3 0x100092 kqread dhcpleased 62067 308528 1 0 3 0x80 kqread dhcpleased 7257 127059 0 0 3 0x14200 bored smr 53088 338452 0 0 2 0x14200 zerothread 12278 216070 0 0 3 0x14200 aiodoned aiodoned 27004 289739 0 0 3 0x14200 syncer update 60765 307171 0 0 3 0x14200 cleaner cleaner 2038 219144 0 0 2 0x14200 reaper 54253 427361 0 0 3 0x14200 pgdaemon pagedaemon 78908 277432 0 0 3 0x14200 bored viomb 93267 221512 0 0 3 0x40014200 acpi0 acpi0 96987 316550 0 0 3 0x14200 bored softnet3 17434 220486 0 0 3 0x14200 bored softnet2 91964 284481 0 0 3 0x14200 bored softnet1 34273 149132 0 0 3 0x14200 bored softnet0 71997 436380 0 0 3 0x14200 bored systqmp 16436 374618 0 0 3 0x14200 bored systq 36361 265531 0 0 3 0x40014200 tmoslp softclock 12536 138170 0 0 3 0x40014200 idle0 1 128110 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 10182 11117K 11440K 166960K 12295 0 pcb 17 15K 16K 166960K 198 0 rtable 240 9K 9K 166960K 471 0 pf 32 13K 15K 166960K 105 0 ifaddr 43 8K 8K 166960K 90 0 ifgroup 50 2K 2K 166960K 147 0 sysctl 3 1K 1K 166960K 3 0 counters 30 17K 18K 166960K 105 0 ioctlops 0 0K 4K 166960K 149 0 iov 0 0K 16K 166960K 48 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1397 88K 89K 166960K 2014 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 20 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 95 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 102K 166960K 868 0 sigio 0 0K 0K 166960K 7 0 proc 60 59K 100K 166960K 552 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 212 0 in_multi 102 7K 7K 166960K 130 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 495 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 229 152K 168K 166960K 9470 0 UVM aobj 87 3K 5K 166960K 92 0 pinsyscall 37 74K 91K 166960K 1903 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 50 0 NDP 11 0K 2K 166960K 56 0 temp 52 8674K 8744K 166960K 16410 0 kqueue 15 24K 32K 166960K 173 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 82 0 79 1 0 1 1 0 8 0 rtentry 136 146 0 40 4 0 4 4 0 8 0 unpcb 144 661 0 645 7 3 4 4 0 8 3 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 2 0 2 2 1 1 1 0 8 1 tcpcb 808 161 0 154 2 0 2 2 0 8 1 arp 88 22 0 2 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 4 0 3 1 0 1 1 0 8 0 inpcb 344 726 0 716 11 3 8 8 0 8 6 nd6 104 35 0 10 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1072 60 0 60 2 1 1 1 0 8 1 pppxif 1384 43 0 43 2 1 1 1 0 8 1 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 5 1 0 1 1 0 8 0 pfstate 344 4 0 2 1 0 1 1 0 8 0 pfrule 1344 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 565 0 111 31 1 30 30 0 8 0 art_table 32 568 0 111 4 0 4 4 0 8 0 art_node 16 140 0 45 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 4 1 0 1 1 0 8 0 semapl 112 91 0 81 1 0 1 1 0 8 0 shmpl 112 89 0 5 3 0 3 3 0 8 0 dirhash 1024 30 0 13 3 0 3 3 0 8 0 dino2pl 256 3004 0 1504 95 0 95 95 0 8 0 ffsino 248 3004 0 1504 95 0 95 95 0 8 0 nchpl 144 4311 0 2632 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 3442 0 0 71 0 71 71 0 8 0 vnodes 216 3442 0 0 192 0 192 192 0 8 0 namei 1024 15134 0 15133 4 1 3 3 0 8 2 kstatmem 264 80 0 58 3 1 2 3 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 12909 0 12909 10 2 8 8 1 8 8 plimitpl 152 139 0 122 1 0 1 1 0 8 0 sigapl 424 1166 0 1099 8 0 8 8 0 8 0 futexpl 64 11628 0 11624 1 0 1 1 0 8 0 knotepl 120 29617 0 29563 24 14 10 17 0 8 8 kqueuepl 184 410 0 399 4 0 4 4 0 8 3 pipepl 296 223 0 196 3 0 3 3 0 8 0 fdescpl 440 1127 0 1099 5 1 4 5 0 8 0 filepl 120 7341 0 7124 13 2 11 11 0 8 3 lockfpl 104 310 0 307 1 0 1 1 0 8 0 lockfspl 48 97 0 94 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 1399 0 1386 1 0 1 1 0 8 0 zombiepl 144 1431 0 1429 2 1 1 1 0 8 0 processpl 1112 1166 0 1099 5 0 5 5 0 8 0 procpl 656 2376 0 2300 9 0 9 9 0 8 1 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 528 1495 0 1466 12 4 8 8 0 8 5 mcl64k 65536 22 0 22 2 1 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 12 0 12 2 1 1 1 0 8 1 mcl4k 4096 3427 0 3377 13 5 8 12 0 8 1 mcl2k 2048 860 0 857 3 2 1 3 0 8 0 mtagpl 96 51 0 19 1 0 1 1 0 8 0 mbufpl 256 11779 0 11564 25 4 21 21 0 8 4 bufpl 280 3786 0 128 262 0 262 262 0 8 0 anonpl 24 177778 0 174587 56 12 44 44 0 187 17 amapchunkpl 152 31128 0 30645 41 7 34 34 0 158 13 amappl16 200 3008 0 2973 9 3 6 6 0 8 2 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 112 0 102 1 0 1 1 0 8 0 amappl13 176 6 0 6 2 1 1 1 0 8 1 amappl12 168 1743 0 1714 2 0 2 2 0 8 0 amappl11 160 49 0 38 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 242 0 242 1 1 0 1 0 8 0 amappl8 136 42 0 41 1 0 1 1 0 8 0 amappl7 128 98 0 87 1 0 1 1 0 8 0 amappl6 120 173 0 169 1 0 1 1 0 8 0 amappl5 112 126 0 119 1 0 1 1 0 8 0 amappl4 104 295 0 278 1 0 1 1 0 8 0 amappl3 96 6136 0 6027 4 0 4 4 0 8 0 amappl2 88 638 0 582 2 0 2 2 0 8 0 amappl1 80 11235 0 10694 13 0 13 13 0 8 0 amappl 88 8670 0 8506 6 1 5 5 0 92 0 dma8192 8192 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 1 0 1 1 0 1 1 0 8 1 dma256 256 7 0 7 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 91 0 5 2 0 2 2 0 8 0 uaddrrnd 24 1127 0 1098 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1127 0 1098 1 0 1 1 0 8 0 vmmpekpl 168 10344 0 10310 3 0 3 3 0 8 0 vmmpepl 168 75464 0 73611 94 4 90 90 0 357 6 vmsppl 360 1126 0 1098 4 1 3 4 0 8 0 rwobjpl 32 24576 0 20199 37 1 36 36 0 8 0 pdppl 4096 2260 0 2196 106 40 66 78 0 8 2 pvpl 32 497461 0 488134 125 22 103 103 0 265 20 pmappl 216 1126 0 1098 2 0 2 2 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 298 0 59 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff80000147a000) at bpfdetach+0x40 sys/net/bpf.c:1778 if_detach(ffff80000147a000) at if_detach+0x153 sys/net/if.c:1200 tun_clone_destroy(ffff80000147a000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003c98f510) at if_clone_destroy+0x1d7 sys/net/if.c:1389 sys_ioctl(ffff80003c996548,ffff80003c98f6f0,ffff80003c98f640) at sys_ioctl+0x5bf syscall(ffff80003c98f6f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4fea1170320, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff80000147a000) at bpfdetach+0x40 sys/net/bpf.c:1778 if_detach(ffff80000147a000) at if_detach+0x153 sys/net/if.c:1200 tun_clone_destroy(ffff80000147a000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003c98f510) at if_clone_destroy+0x1d7 sys/net/if.c:1389 sys_ioctl(ffff80003c996548,ffff80003c98f6f0,ffff80003c98f640) at sys_ioctl+0x5bf syscall(ffff80003c98f6f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4fea1170320, count: -7