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(ffff800001600800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001600800) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001600800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff800035ccee10) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002a780fa8,ffff800035ccefe0,ffff800035ccef30) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800035ccefe0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035ccefe0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd4fe1e30cf0, count: -7 ddb> show registers rdi 0xffff8000380f2000 rsi 0x1236f __ALIGN_SIZE+0x1136f rbp 0xffff800035cced00 rbx 0 rdx 0xffff8000380f2000 rcx 0x1236e __ALIGN_SIZE+0x1136e rax 0xffffffff821dcad9 bpfdetach+0x89 r8 0 r9 0xffffffffffffffff r10 0x51991ea1fa9bdbd r11 0x1cd886008a123235 r12 0xdead0002deadbeef r13 0xffff800001600d60 r14 0xffff800001600800 r15 0xdead0002deadbeef rip 0xffffffff821dca90 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800035ccecd0 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=241800 pid=35901 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a781770,0xffff8000380f1cc0 process=0xffff8000380e8d98 user=0xffff800035cca000, vmspace=0xfffffd806c9fc8b0 estcpu=27, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 8627 199512 80518 0 2 0 syz-executor 8627 390430 80518 0 2 0x4000000 syz-executor 28598 81143 41745 0 2 0 syz-executor 28598 377891 41745 0 3 0x4000080 fsleep syz-executor 3737 184706 17481 0 2 0 syz-executor 3737 58538 17481 0 3 0x4000080 fsleep syz-executor 86649 290684 65432 0 2 0x4000000 syz-executor 86649 52377 65432 0 2 0x4000000 syz-executor 35901 1785 98941 0 2 0 syz-executor *35901 241800 98941 0 7 0x4000000 syz-executor 35901 277205 98941 0 3 0x4000080 fsleep syz-executor 44361 450404 60741 0 4 0x82004 syz-executor 44361 354721 60741 0 2 0x4002004 syz-executor 44361 175889 60741 0 4 0x4082004 syz-executor 25165 52636 0 0 3 0x14200 acct acct 47958 430912 68391 0 2 0x2 syz-executor 98941 334378 68391 0 2 0x2 syz-executor 65432 380381 68391 0 2 0x2 syz-executor 1702 280349 68391 0 2 0x2 syz-executor 60741 192521 68391 0 2 0x2 syz-executor 41745 169072 68391 0 2 0x2 syz-executor 17481 131330 68391 0 3 0x82 nanoslp syz-executor 80518 42406 68391 0 2 0x2 syz-executor 68391 492929 33607 0 3 0x2 netlock syz-executor 33607 430720 69488 0 3 0x10008a sigsusp ksh 69488 29218 15909 0 3 0x98 kqread sshd-session 15909 243709 55121 0 3 0x92 kqread sshd-session 46809 357992 1 0 3 0x100083 ttyopn getty 55121 89604 1 0 3 0x88 kqread sshd 32104 85623 46467 73 3 0x1100090 kqread syslogd 46467 82475 1 0 3 0x100082 sbwait syslogd 63329 285955 1 0 3 0x100080 kqread resolvd 23532 11170 69920 77 3 0x100092 kqread dhcpleased 69402 448259 69920 77 3 0x100092 kqread dhcpleased 69920 113701 1 0 3 0x80 kqread dhcpleased 85294 315266 0 0 3 0x14200 bored smr 50456 78535 0 0 2 0x14200 zerothread 73256 111113 0 0 3 0x14200 aiodoned aiodoned 79411 262500 0 0 3 0x14200 syncer update 42315 26297 0 0 3 0x14200 cleaner cleaner 21598 407759 0 0 3 0x14200 reaper reaper 63238 93014 0 0 3 0x14200 pgdaemon pagedaemon 48300 522229 0 0 3 0x14200 bored viomb 98898 63597 0 0 3 0x40014200 acpi0 acpi0 29122 222818 0 0 3 0x14200 bored softnet0 83109 144064 0 0 3 0x14200 bored systqmp 72995 383422 0 0 3 0x14200 bored systq 94911 515381 0 0 3 0x40014200 tmoslp softclock 81297 251669 0 0 3 0x40014200 idle0 1 204870 0 0 3 0x80082 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 11052 12308K 12418K 166960K 12630 0 pcb 21 13K 13K 166960K 78 0 rtable 255 9K 9K 166960K 474 0 pf 37 14K 16K 166960K 66 0 ifaddr 43 7K 8K 166960K 58 0 ifgroup 52 2K 2K 166960K 75 0 sysctl 1 1K 9K 166960K 6 0 counters 35 18K 18K 166960K 55 0 ioctlops 0 0K 4K 166960K 65 0 iov 0 0K 16K 166960K 11 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1336 84K 84K 166960K 1684 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 7 0K 0K 166960K 41 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 342 0 sigio 0 0K 0K 166960K 6 0 proc 60 59K 108K 166960K 528 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 28 0 in_multi 99 7K 7K 166960K 109 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 19 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 432 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 214 150K 168K 166960K 4965 0 UVM aobj 15 3K 3K 166960K 15 0 pinsyscall 38 76K 94K 166960K 1443 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 16 0 NDP 12 0K 2K 166960K 37 0 temp 41 9063K 9127K 166960K 6842 0 kqueue 13 20K 27K 166960K 66 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 54 0 51 1 0 1 1 0 8 0 rtentry 136 116 0 5 4 0 4 4 0 8 0 unpcb 144 288 0 270 6 0 6 6 0 8 5 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 99 0 95 4 0 4 4 0 8 3 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 297 0 285 7 0 7 7 0 8 5 nd6 112 25 0 1 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 20 0 18 1 0 1 1 0 8 0 pppxif 1384 2 0 2 1 0 1 1 0 8 1 pfrktable 1344 7 0 6 2 1 1 1 0 8 0 pfanchor 1288 1 0 1 1 1 0 1 0 8 0 pftag 88 3 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 0 1 0 1 1 0 8 0 pfrule 1360 3 0 2 2 1 1 1 0 8 0 rttmr 136 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 491 0 39 31 0 31 31 0 8 2 art_table 40 493 0 39 5 0 5 5 0 8 0 art_node 32 116 0 15 1 0 1 1 0 8 0 semapl 112 38 0 33 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2050 0 587 92 0 92 92 0 8 0 ffsino 256 2050 0 587 92 0 92 92 0 8 0 nchpl 144 2560 0 868 64 0 64 64 0 8 0 rtmask 32 7 0 6 1 0 1 1 0 8 0 vnodes 216 2283 0 0 127 0 127 127 0 8 0 namei 1024 8462 0 8462 1 0 1 1 0 8 1 pfiaddrpl 120 2 0 2 1 1 0 1 0 8 0 kstatmem 264 42 0 18 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 7773 0 7773 3 2 1 3 1 8 1 plimitpl 152 228 0 212 1 0 1 1 0 8 0 sigapl 424 638 0 595 6 1 5 6 0 8 0 knotepl 120 12220 0 12173 16 7 9 9 0 8 7 kqueuepl 184 85 0 76 1 0 1 1 0 8 0 pipepl 304 129 0 102 3 0 3 3 0 8 0 fdescpl 448 624 0 595 5 1 4 5 0 8 0 filepl 120 3478 0 3261 16 5 11 13 0 8 4 lockfpl 104 148 0 145 1 0 1 1 0 8 0 lockfspl 48 72 0 69 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 600 0 588 1 0 1 1 0 8 0 zombiepl 144 704 0 703 1 0 1 1 0 8 0 processpl 1152 638 0 595 4 0 4 4 0 8 0 procpl 664 1021 0 970 6 0 6 6 0 8 1 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 552 650 0 617 12 2 10 12 0 8 7 mcl64k 65536 85 0 85 2 1 1 1 0 8 1 mcl16k 16384 8 0 8 2 1 1 1 0 8 1 mcl8k 8192 7 0 7 2 1 1 1 0 8 1 mcl4k 4096 2771 0 2720 15 7 8 14 0 8 1 mcl2k 2048 375 0 373 5 0 5 5 0 8 4 mtagpl 96 10 0 6 1 0 1 1 0 8 0 mbufpl 256 7592 0 7423 15 0 15 15 0 8 2 bufpl 280 2624 0 102 181 0 181 181 0 8 0 anonpl 24 116413 0 113314 43 11 32 32 0 187 11 amapchunkpl 152 14938 0 14494 29 4 25 25 0 158 6 amappl16 200 1809 0 1785 5 3 2 5 0 8 0 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 408 0 407 1 0 1 1 0 8 0 amappl13 176 139 0 129 1 0 1 1 0 8 0 amappl12 168 877 0 849 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 72 0 61 1 0 1 1 0 8 0 amappl9 144 308 0 308 1 1 0 1 0 8 0 amappl8 136 122 0 121 1 0 1 1 0 8 0 amappl7 128 148 0 137 1 0 1 1 0 8 0 amappl6 120 148 0 147 1 0 1 1 0 8 0 amappl5 112 86 0 79 1 0 1 1 0 8 0 amappl4 104 254 0 238 1 0 1 1 0 8 0 amappl3 96 2880 0 2777 4 0 4 4 0 8 1 amappl2 88 530 0 477 2 0 2 2 0 8 0 amappl1 80 10262 0 9713 15 2 13 15 0 8 0 amappl 88 4233 0 4081 5 0 5 5 0 92 0 uvmvnodes 80 102 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 255 0 255 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 14 0 0 1 0 1 1 0 8 0 uaddrrnd 24 624 0 595 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 624 0 595 1 0 1 1 0 8 0 vmmpekpl 168 6804 0 6775 2 0 2 2 0 8 0 vmmpepl 168 47577 0 45814 91 9 82 89 0 357 2 vmsppl 368 623 0 595 4 1 3 4 0 8 0 rwobjpl 40 16005 0 15063 13 2 11 12 0 8 0 pdppl 4096 1254 0 1190 100 34 66 82 0 8 2 pvpl 32 295352 0 286668 114 14 100 100 0 265 24 pmappl 216 623 0 595 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 381 0 50 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff800001600800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001600800) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001600800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff800035ccee10) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002a780fa8,ffff800035ccefe0,ffff800035ccef30) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800035ccefe0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035ccefe0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd4fe1e30cf0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff800001600800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001600800) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001600800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff800035ccee10) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002a780fa8,ffff800035ccefe0,ffff800035ccef30) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff800035ccefe0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800035ccefe0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd4fe1e30cf0, count: -7