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(ffff8000015da800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff8000015da800) at if_detach+0x12b sys/net/if.c:1289 tun_clone_destroy(ffff8000015da800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c8fda50) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff800034cce028,ffff80003c8fdc20,ffff80003c8fdb70) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8fdc20) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8fdc20) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c62e7926e0, count: -7 ddb> show registers rdi 0xffff80003a4ec000 rsi 0x13867 __ALIGN_SIZE+0x12867 rbp 0xffff80003c8fd940 rbx 0 rdx 0xffff80003a4ec000 rcx 0x13866 __ALIGN_SIZE+0x12866 rax 0xffffffff82178909 bpfdetach+0x89 r8 0 r9 0xffffffffffffffff r10 0x8d38f4803ea9f522 r11 0x91e1fe0752f89a84 r12 0xdead0002dead4110 r13 0xffff8000015dad80 r14 0xffff8000015da800 r15 0xdead0002dead4110 rip 0xffffffff821788c0 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c8fd910 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=423902 pid=89327 tcnt=3 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f0c07e0,0xffff800034ccefc8 process=0xffff8000ffffad18 user=0xffff80003c8f8000, vmspace=0xfffffd806ab148b0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 57876 187296 97693 0 2 0 syz-executor 57876 502290 97693 0 2 0x4000000 syz-executor 57876 188637 97693 0 2 0x4000000 syz-executor 16753 387465 81508 0 2 0 syz-executor 16753 241691 81508 0 2 0x4000000 syz-executor 97036 342105 60854 0 2 0 syz-executor 97036 263076 60854 0 3 0x4000080 fsleep syz-executor 97036 299801 60854 0 3 0x4000080 fsleep syz-executor 89327 132036 97083 60929 2 0x10 syz-executor *89327 423902 97083 60929 7 0x4000010 syz-executor 89327 398092 97083 60929 2 0x4000010 syz-executor 31359 432014 96200 0 2 0 syz-executor 31359 264937 96200 0 3 0x4000080 fsleep syz-executor 31359 423956 96200 0 3 0x4000080 fsleep syz-executor 31979 214195 0 0 3 0x14280 nfsidl nfsio 15420 211265 0 0 3 0x14280 nfsidl nfsio 57259 158145 0 0 3 0x14280 nfsidl nfsio 24143 353018 0 0 3 0x14280 nfsidl nfsio 3188 455131 0 0 3 0x14280 nfsidl nfsio 60972 18348 0 0 3 0x14280 nfsidl nfsio 56043 207043 0 0 3 0x14280 nfsidl nfsio 5354 288763 0 0 3 0x14280 nfsidl nfsio 43106 98643 0 0 3 0x14280 nfsidl nfsio 49431 384912 0 0 3 0x14280 nfsidl nfsio 58478 41726 0 0 3 0x14280 nfsidl nfsio 3331 231044 0 0 3 0x14280 nfsidl nfsio 61234 143383 0 0 3 0x14280 nfsidl nfsio 67295 67868 0 0 3 0x14280 nfsidl nfsio 60650 3463 0 0 3 0x14280 nfsidl nfsio 31215 484189 0 0 3 0x14280 nfsidl nfsio 41626 367447 0 0 3 0x14280 nfsidl nfsio 34122 322532 0 0 3 0x14280 nfsidl nfsio 60195 410917 0 0 3 0x14280 nfsidl nfsio 32220 388666 0 0 3 0x14280 nfsidl nfsio 61388 85490 0 0 3 0x14200 acct acct 97083 358696 64505 0 3 0x82 nanoslp syz-executor 81508 67702 64505 0 3 0x82 nanoslp syz-executor 70284 390808 64505 0 3 0x82 nanoslp syz-executor 60854 237851 64505 0 3 0x82 nanoslp syz-executor 9673 417176 64505 0 3 0x82 nanoslp syz-executor 45490 103362 64505 0 2 0x2 syz-executor 96200 231357 64505 0 3 0x82 nanoslp syz-executor 97693 41739 64505 0 3 0x82 nanoslp syz-executor 64505 289936 43870 0 3 0x82 kqread syz-executor 43870 490870 67253 0 3 0x10008a sigsusp ksh 67253 160297 91565 0 3 0x98 kqread sshd-session 91565 356222 78623 0 3 0x92 kqread sshd-session 1952 54528 1 0 3 0x100083 ttyin getty 78623 17186 1 0 3 0x88 kqread sshd 88813 179522 27653 73 3 0x1100090 kqread syslogd 27653 58508 1 0 3 0x100082 sbwait syslogd 43418 77508 1 0 2 0x100001 resolvd 54724 42745 51654 77 2 0x100013 dhcpleased 51857 500132 51654 77 3 0x100092 kqread dhcpleased 51654 173734 1 0 3 0x80 kqread dhcpleased 95624 234282 0 0 3 0x14200 bored smr 82248 468212 0 0 2 0x14200 zerothread 20979 140508 0 0 3 0x14200 aiodoned aiodoned 26564 266835 0 0 3 0x14200 syncer update 24144 360225 0 0 3 0x14200 cleaner cleaner 90326 386951 0 0 2 0x14200 reaper 43596 492385 0 0 3 0x14200 pgdaemon pagedaemon 50186 347494 0 0 3 0x14200 bored viomb 41410 400632 0 0 3 0x40014200 acpi0 acpi0 27937 203415 0 0 3 0x14200 bored softnet0 7639 427309 0 0 3 0x14200 bored systqmp 5017 350310 0 0 3 0x14200 bored systq 11318 506645 0 0 3 0x40014200 tmoslp softclock 12525 42137 0 0 3 0x40014200 idle0 1 516660 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 11043 12308K 12435K 166960K 12593 0 pcb 17 12K 12K 166960K 72 0 rtable 265 9K 9K 166960K 460 0 pf 33 13K 20K 166960K 79 0 ifaddr 44 8K 8K 166960K 63 0 ifgroup 50 2K 2K 166960K 89 0 sysctl 3 1K 9K 166960K 7 0 counters 33 17K 18K 166960K 50 0 ioctlops 0 0K 4K 166960K 102 0 iov 0 0K 16K 166960K 24 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1355 85K 86K 166960K 1717 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 36 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 110K 166960K 530 0 sigio 0 0K 0K 166960K 6 0 proc 60 59K 83K 166960K 535 0 subproc 72 4K 4K 166960K 73 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 44 0 in_multi 103 7K 7K 166960K 124 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 22 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 412 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 206 142K 164K 166960K 6414 0 UVM aobj 7 4K 4K 166960K 8 0 pinsyscall 38 76K 95K 166960K 1637 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 28 0 NDP 11 0K 2K 166960K 38 0 temp 46 9074K 9142K 166960K 25548 0 kqueue 14 22K 30K 166960K 109 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 124 0 121 3 2 1 3 0 8 0 rtentry 136 124 0 8 4 0 4 4 0 8 0 unpcb 144 469 0 454 9 3 6 6 0 8 5 syncache 336 8 0 8 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 282 0 276 13 12 1 13 0 8 0 arp 96 20 0 0 1 0 1 1 0 8 0 ipq 40 5 0 1 1 0 1 1 0 8 0 ipqe 40 10 0 6 1 0 1 1 0 8 0 inpcb 328 768 0 756 17 10 7 12 0 8 5 ip6q 72 22 0 17 1 0 1 1 0 8 0 ip6af 40 39 0 34 1 0 1 1 0 8 0 nd6 112 26 0 1 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 11 0 11 2 1 1 1 0 8 1 pppxif 1416 4 0 4 1 1 0 1 0 8 0 pfstscr 40 7 0 7 1 1 0 1 0 8 0 pfstlim 224 1 0 0 1 0 1 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 8 1 1 0 1 0 8 0 pfstate 384 4 0 4 1 1 0 1 0 8 0 pfrule 1360 4 0 2 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 497 0 37 30 0 30 30 0 8 0 art_table 40 498 0 37 5 0 5 5 0 8 0 art_node 32 124 0 19 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 31 0 21 1 0 1 1 0 8 0 shmpl 112 5 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2228 0 770 92 0 92 92 0 8 0 ffsino 256 2228 0 770 92 0 92 92 0 8 0 nchpl 144 2974 0 1278 65 1 64 64 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 vnodes 216 2558 0 0 143 0 143 143 0 8 0 namei 1024 9872 0 9872 5 2 3 3 0 8 3 kstatmem 264 45 0 22 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 9574 0 9574 2 1 1 2 1 8 1 plimitpl 152 198 0 182 1 0 1 1 0 8 0 sigapl 424 842 0 778 9 1 8 8 0 8 0 knotepl 120 22701 0 22636 35 25 10 17 0 8 8 kqueuepl 184 141 0 131 1 0 1 1 0 8 0 pipepl 304 150 0 123 3 0 3 3 0 8 0 fdescpl 448 808 0 779 5 1 4 5 0 8 0 filepl 120 4705 0 4490 15 3 12 12 0 8 4 lockfpl 104 144 0 141 1 0 1 1 0 8 0 lockfspl 48 65 0 62 1 0 1 1 0 8 0 sessionpl 144 102 0 94 1 0 1 1 0 8 0 pgrppl 48 114 0 98 1 0 1 1 0 8 0 ucredpl 104 511 0 499 1 0 1 1 0 8 0 zombiepl 144 829 0 827 1 0 1 1 0 8 0 processpl 1152 842 0 778 5 0 5 5 0 8 0 procpl 664 1442 0 1369 7 0 7 7 0 8 0 sosppl 176 2 0 2 1 1 0 1 0 8 0 sockpl 552 1377 0 1347 20 8 12 12 0 8 8 mcl64k 65536 26 0 26 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 76 0 76 2 1 1 1 0 8 1 mcl4k 4096 3026 0 2970 15 7 8 15 0 8 0 mcl2k 2048 481 0 476 2 0 2 2 0 8 1 mtagpl 96 9 0 6 1 0 1 1 0 8 0 mbufpl 256 8975 0 8807 20 7 13 19 0 8 0 bufpl 280 3214 0 102 223 0 223 223 0 8 0 anonpl 24 157719 0 154393 64 31 33 59 0 187 5 amapchunkpl 152 20876 0 20456 35 10 25 31 0 158 7 amappl16 200 2997 0 2951 19 16 3 15 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 413 0 412 1 0 1 1 0 8 0 amappl13 176 118 0 108 1 0 1 1 0 8 0 amappl12 168 1049 0 1022 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 61 0 51 1 0 1 1 0 8 0 amappl9 144 258 0 258 1 1 0 1 0 8 0 amappl8 136 104 0 103 1 0 1 1 0 8 0 amappl7 128 142 0 130 1 0 1 1 0 8 0 amappl6 120 155 0 153 1 0 1 1 0 8 0 amappl5 112 100 0 93 1 0 1 1 0 8 0 amappl4 104 270 0 255 1 0 1 1 0 8 0 amappl3 96 3966 0 3870 5 1 4 4 0 8 1 amappl2 88 540 0 486 2 0 2 2 0 8 0 amappl1 80 11535 0 10990 15 2 13 15 0 8 0 amappl 88 5641 0 5496 5 0 5 5 0 92 0 uvmvnodes 80 115 0 0 3 0 3 3 0 8 0 dma65536 65536 1 0 1 1 1 0 1 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 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 7 0 1 1 0 1 1 0 8 0 uaddrrnd 24 808 0 779 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 808 0 779 1 0 1 1 0 8 0 vmmpekpl 168 8227 0 8192 2 0 2 2 0 8 0 vmmpepl 168 59193 0 57460 103 22 81 102 0 357 0 vmsppl 368 807 0 778 4 1 3 4 0 8 0 rwobjpl 40 19256 0 18297 15 3 12 15 0 8 0 pdppl 4096 1622 0 1556 110 44 66 80 0 8 0 pvpl 32 387630 0 379009 148 46 102 139 0 265 19 pmappl 216 807 0 778 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 405 0 82 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff8000015da800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff8000015da800) at if_detach+0x12b sys/net/if.c:1289 tun_clone_destroy(ffff8000015da800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c8fda50) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff800034cce028,ffff80003c8fdc20,ffff80003c8fdb70) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8fdc20) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8fdc20) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c62e7926e0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff8000015da800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff8000015da800) at if_detach+0x12b sys/net/if.c:1289 tun_clone_destroy(ffff8000015da800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c8fda50) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff800034cce028,ffff80003c8fdc20,ffff80003c8fdb70) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c8fdc20) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8fdc20) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c62e7926e0, count: -7