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(ffff80000146b000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff80000146b000) at if_detach+0x1bb sys/net/if.c:1201 tun_clone_destroy(ffff80000146b000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:340 if_clone_destroy(ffff80003ca1f8d0) at if_clone_destroy+0x1d7 sys/net/if.c:1390 sys_ioctl(ffff80002a85f4b0,ffff80003ca1fab0,ffff80003ca1fa00) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003ca1fab0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca1fab0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5f12b40fc0, count: -7 ddb> show registers rdi 0xffff800030902000 rsi 0x122d4 __ALIGN_SIZE+0x112d4 rbp 0xffff80003ca1f7c0 rbx 0xffff80003ca1fab0 rdx 0xffff800030902000 rcx 0x122d3 __ALIGN_SIZE+0x112d3 rax 0xffffffff814f8be9 bpfdetach+0x89 r8 0 r9 0 r10 0xc2fd1a35c7d88d67 r11 0x6061a7bd0944773c r12 0xdeaf0002deaf4152 r13 0x800 r14 0xffff80000146b000 r15 0xdeaf0002deaf4152 rip 0xffffffff814f8ba0 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003ca1f790 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=11332 pid=55037 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=64, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a85e030,0xffff80002a8239e8 process=0xffff800033d14db0 user=0xffff80003ca1a000, vmspace=0xfffffd806c272718 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 73640 42816 77765 0 2 0 syz-executor 73640 64761 77765 0 3 0x4000080 fsleep syz-executor 33475 196002 68746 0 2 0 syz-executor 33475 54248 68746 0 3 0x4000080 fsleep syz-executor 55037 482287 46940 0 3 0x80 nanoslp syz-executor *55037 11332 46940 0 7 0x4000000 syz-executor 90246 20869 87242 0 2 0 syz-executor 90246 356381 87242 0 3 0x4000080 fifor syz-executor 90246 400122 87242 0 2 0x4000000 syz-executor 90246 138971 87242 0 3 0x4000080 fsleep syz-executor 46940 5679 57597 0 3 0x82 nanoslp syz-executor 14657 467859 82019 0 3 0x80 nanoslp syz-executor 14657 481207 82019 0 3 0x4000080 kqread syz-executor 14657 415416 82019 0 3 0x4000080 fsleep syz-executor 14657 358440 82019 0 3 0x4000080 fsleep syz-executor 57080 41880 57597 0 3 0x82 nanoslp syz-executor 16579 262949 34561 0 3 0x3000 suspend syz-executor 16579 427207 34561 0 3 0x4081000 inode syz-executor 16579 520867 34561 0 3 0x4081000 inode syz-executor 68746 69540 57597 0 3 0x82 nanoslp syz-executor 17040 142670 1 0 3 0x100083 ttyopn getty 73891 460488 57597 0 2 0x2 syz-executor 60290 181805 0 0 3 0x14280 nfsidl nfsio 35169 45841 0 0 3 0x14280 nfsidl nfsio 17205 462268 0 0 3 0x14280 nfsidl nfsio 31907 157465 0 0 3 0x14280 nfsidl nfsio 39878 231073 0 0 3 0x14280 nfsidl nfsio 20278 9946 0 0 3 0x14280 nfsidl nfsio 23059 422925 0 0 3 0x14280 nfsidl nfsio 81567 203211 0 0 3 0x14280 nfsidl nfsio 95656 416647 0 0 3 0x14280 nfsidl nfsio 14021 517031 0 0 3 0x14280 nfsidl nfsio 55107 124605 0 0 3 0x14280 nfsidl nfsio 83255 4259 0 0 3 0x14280 nfsidl nfsio 70968 378743 0 0 3 0x14280 nfsidl nfsio 21406 49135 0 0 3 0x14280 nfsidl nfsio 94473 24249 0 0 3 0x14280 nfsidl nfsio 54271 383785 0 0 3 0x14280 nfsidl nfsio 72654 331407 0 0 3 0x14280 nfsidl nfsio 53972 89167 0 0 3 0x14280 nfsidl nfsio 43080 362213 0 0 3 0x14280 nfsidl nfsio 47103 374980 0 0 3 0x14280 nfsidl nfsio 14732 175958 0 0 3 0x14200 bored sosplice 82019 408520 57597 0 3 0x82 nanoslp syz-executor 34561 221040 57597 0 3 0x82 wait syz-executor 87242 102100 57597 0 3 0x82 nanoslp syz-executor 77765 61234 57597 0 3 0x82 nanoslp syz-executor 57597 157415 45813 0 3 0x82 kqread syz-executor 45813 303486 48334 0 3 0x10008a sigsusp ksh 48334 285999 52235 0 3 0x98 kqread sshd-session 52235 91161 73006 0 3 0x92 kqread sshd-session 73006 106493 1 0 3 0x88 kqread sshd 41369 470115 68903 73 3 0x1100090 kqread syslogd 68903 57220 1 0 3 0x100082 sbwait syslogd 17565 211577 1 0 3 0x100080 kqread resolvd 36883 176447 5375 77 3 0x100092 kqread dhcpleased 53770 357660 5375 77 3 0x100092 kqread dhcpleased 5375 312957 1 0 3 0x80 kqread dhcpleased 47063 275362 0 0 3 0x14200 bored smr 6846 395694 0 0 2 0x14200 zerothread 82555 279450 0 0 3 0x14200 aiodoned aiodoned 12572 370970 0 0 3 0x14200 syncer update 31932 196690 0 0 3 0x14200 cleaner cleaner 95959 146978 0 0 2 0x14200 reaper 25222 498301 0 0 3 0x14200 pgdaemon pagedaemon 82756 378281 0 0 3 0x14200 bored viomb 97535 440257 0 0 3 0x40014200 acpi0 acpi0 13914 478824 0 0 3 0x14200 bored softnet3 2420 376515 0 0 3 0x14200 bored softnet2 95771 445833 0 0 3 0x14200 bored softnet1 661 60834 0 0 3 0x14200 bored softnet0 28302 924 0 0 3 0x14200 bored systqmp 34385 518489 0 0 3 0x14200 syncxs systq 70779 359262 0 0 3 0x40014200 tmoslp softclock 58421 167900 0 0 3 0x40014200 idle0 1 141332 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 10195 11188K 11707K 166960K 14601 0 pcb 19 18K 20K 166960K 453 0 rtable 248 12K 12K 166960K 800 0 pf 37 14K 131085K 166960K 315 0 ifaddr 41 7K 8K 166960K 135 0 ifgroup 54 2K 2K 166960K 207 0 sysctl 4 1K 9K 166960K 12 0 counters 33 17K 18K 166960K 144 0 ioctlops 0 0K 4K 166960K 530 0 iov 0 0K 24K 166960K 168 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1459 92K 92K 166960K 3432 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 25 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 156 0 dirhash 12 2K 2K 166960K 36 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 240K 166960K 2096 0 sigio 0 0K 0K 166960K 137 0 proc 61 59K 83K 166960K 880 0 subproc 72 4K 4K 166960K 126 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 234 0 in_multi 88 6K 7K 166960K 248 0 ether_multi 1 0K 0K 166960K 24 0 mrt 1 0K 0K 166960K 15 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 572 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 6 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 227 151K 170K 166960K 19564 0 UVM aobj 116 7K 7K 166960K 120 0 pinsyscall 37 74K 92K 166960K 3307 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 114 0 NDP 14 0K 2K 166960K 92 0 temp 79 8676K 8797K 166960K 86964 0 kqueue 16 22K 30K 166960K 365 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 vscsiccb 40 1 0 0 1 0 1 1 0 8 0 rtpcb 120 310 0 307 3 0 3 3 0 8 2 rtentry 136 235 0 141 4 0 4 4 0 8 0 unpcb 144 1768 0 1746 7 5 2 6 0 8 1 syncache 336 10 0 10 2 1 1 1 0 8 1 tcpqe 32 7 0 7 2 1 1 1 0 8 1 tcpcb 736 650 0 639 8 6 2 7 0 8 0 arp 88 36 0 20 1 0 1 1 0 8 0 ipq 40 7 0 6 1 0 1 1 0 8 0 ipqe 40 76 0 75 1 0 1 1 0 8 0 inpcb 328 2264 0 2246 15 8 7 10 0 8 5 ip6q 72 8 0 5 1 0 1 1 0 8 0 ip6af 40 12 0 9 1 0 1 1 0 8 0 nd6 104 53 0 29 1 0 1 1 0 8 0 pkpcb 40 10 0 10 2 1 1 1 0 8 1 kcovpl 48 14 0 6 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 1 0 1 0 8 0 ppxss 1072 92 0 92 2 1 1 1 0 8 1 pppxif 1384 9 0 9 1 1 0 1 0 8 0 pfrktable 1344 2 0 1 1 0 1 1 0 8 0 pftag 88 5 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 0 1 0 1 1 0 8 0 pfstate 384 2 0 0 1 0 1 1 0 8 0 pfrule 1344 75 0 74 1 0 1 1 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 4 0 1 4 1 3 4 0 8 0 art_heap4 256 999 0 585 35 9 26 31 0 8 0 art_table 40 1003 0 586 5 0 5 5 0 8 0 art_node 32 231 0 147 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 7 1 0 1 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 112 146 0 136 1 0 1 1 0 8 0 shmpl 112 117 0 4 4 0 4 4 0 8 0 dirhash 1024 33 0 16 3 0 3 3 0 8 0 dino2pl 256 5225 0 3715 95 0 95 95 0 8 0 ffsino 248 5225 0 3715 95 0 95 95 0 8 0 nchpl 144 8080 0 6374 64 0 64 64 0 8 0 rtmask 32 10 0 10 1 1 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 27866 0 27863 3 1 2 2 0 8 1 kstatmem 264 126 0 102 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 9 0 9 2 1 1 1 0 8 1 scxspl 216 26286 0 26285 8 7 1 8 1 8 0 plimitpl 152 471 0 454 1 0 1 1 0 8 0 sigapl 424 2377 0 2311 8 0 8 8 0 8 0 knotepl 120 356252 0 356202 51 41 10 24 0 8 7 kqueuepl 184 771 0 759 4 3 1 4 0 8 0 pipepl 296 384 0 356 3 0 3 3 0 8 0 fdescpl 440 2337 0 2309 5 1 4 5 0 8 0 filepl 120 16153 0 15925 16 5 11 14 0 8 2 lockfpl 104 1219 0 1217 2 1 1 2 0 8 0 lockfspl 48 494 0 492 1 0 1 1 0 8 0 sessionpl 144 36 0 28 1 0 1 1 0 8 0 pgrppl 48 96 0 80 1 0 1 1 0 8 0 ucredpl 104 2705 0 2693 1 0 1 1 0 8 0 zombiepl 144 2471 0 2469 1 0 1 1 0 8 0 processpl 1160 2377 0 2311 5 0 5 5 0 8 0 procpl 656 5211 0 5134 8 0 8 8 0 8 0 sosppl 168 8 0 8 1 1 0 1 0 8 0 sockpl 528 4532 0 4489 23 11 12 13 0 8 8 mcl64k 65536 114 0 114 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 5 0 5 1 1 0 1 0 8 0 mcl8k 8192 23 0 23 1 0 1 1 0 8 1 mcl4k 4096 4962 0 4912 16 8 8 15 0 8 1 mcl2k 2048 3232 0 3224 4 2 2 4 0 8 0 mtagpl 96 186 0 134 3 1 2 3 0 8 0 mbufpl 256 24790 0 24614 23 5 18 23 0 8 0 bufpl 280 7579 0 1352 445 0 445 445 0 8 0 anonpl 24 304269 0 295989 77 1 76 77 0 187 1 amapchunkpl 152 66082 0 65530 43 11 32 36 0 158 8 amappl16 200 5503 0 5244 31 4 27 28 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 132 0 122 1 0 1 1 0 8 0 amappl13 176 4 0 3 1 0 1 1 0 8 0 amappl12 168 3056 0 3027 3 0 3 3 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 31 0 31 1 1 0 1 0 8 0 amappl9 144 259 0 257 1 0 1 1 0 8 0 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 123 0 112 1 0 1 1 0 8 0 amappl6 120 236 0 232 1 0 1 1 0 8 0 amappl5 112 138 0 130 1 0 1 1 0 8 0 amappl4 104 339 0 322 1 0 1 1 0 8 0 amappl3 96 13690 0 13585 4 0 4 4 0 8 0 amappl2 88 777 0 719 2 0 2 2 0 8 0 amappl1 80 17889 0 17342 14 0 14 14 0 8 0 amappl 88 18393 0 18229 5 0 5 5 0 92 0 dma16384 16384 33 0 33 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 257 0 257 2 1 1 1 0 8 1 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 119 0 4 3 0 3 3 0 8 0 uaddrrnd 24 2337 0 2309 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2337 0 2309 1 0 1 1 0 8 0 vmmpekpl 168 19131 0 19086 3 0 3 3 0 8 0 vmmpepl 168 149557 0 147495 107 3 104 106 0 357 0 vmsppl 360 2336 0 2308 4 1 3 4 0 8 0 rwobjpl 32 42446 0 35314 59 0 59 59 0 8 0 pdppl 4096 4680 0 4616 114 46 68 80 0 8 4 pvpl 32 951876 0 938358 164 15 149 164 0 265 0 pmappl 216 2336 0 2308 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 317 0 84 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff80000146b000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff80000146b000) at if_detach+0x1bb sys/net/if.c:1201 tun_clone_destroy(ffff80000146b000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:340 if_clone_destroy(ffff80003ca1f8d0) at if_clone_destroy+0x1d7 sys/net/if.c:1390 sys_ioctl(ffff80002a85f4b0,ffff80003ca1fab0,ffff80003ca1fa00) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003ca1fab0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca1fab0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5f12b40fc0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff80000146b000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff80000146b000) at if_detach+0x1bb sys/net/if.c:1201 tun_clone_destroy(ffff80000146b000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:340 if_clone_destroy(ffff80003ca1f8d0) at if_clone_destroy+0x1d7 sys/net/if.c:1390 sys_ioctl(ffff80002a85f4b0,ffff80003ca1fab0,ffff80003ca1fa00) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003ca1fab0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca1fab0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc5f12b40fc0, count: -7