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(ffff800001447800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001447800) at if_detach+0x1bb sys/net/if.c:1201 tun_clone_destroy(ffff800001447800) at tun_clone_destroy+0x2aa sys/net/if_tun.c:340 if_clone_destroy(ffff80003c9957b0) at if_clone_destroy+0x1d7 sys/net/if.c:1390 sys_ioctl(ffff80003953c7e8,ffff80003c995990,ffff80003c9958e0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c995990) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c995990) at syscall+0x97e sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c30cf54270, count: -7 ddb> show registers rdi 0xffff800036118000 rsi 0x12ea1 __ALIGN_SIZE+0x11ea1 rbp 0xffff80003c9956a0 rbx 0xffff80003c995990 rdx 0xffff800036118000 rcx 0x12ea0 __ALIGN_SIZE+0x11ea0 rax 0xffffffff830f3979 bpfdetach+0x89 r8 0 r9 0xffffffffffffffff r10 0x203a3d77ae447804 r11 0xef7b8cbee08de5d3 r12 0xdead0002dead4110 r13 0x800 r14 0xffff800001447800 r15 0xdead0002dead4110 rip 0xffffffff830f3930 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c995670 ss 0 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=209355 pid=89817 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003953c2c8,0xffff80002a7f02d0 process=0xffff80003c9aad70 user=0xffff80003c990000, vmspace=0xfffffd806c2a32e0 estcpu=33, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 46245 69457 52583 0 2 0 syz-executor 46245 220929 52583 0 3 0x4000000 lockflk syz-executor 46245 49723 52583 0 3 0x4000080 fsleep syz-executor 6798 251259 18702 0 3 0x3000 suspend syz-executor 6798 168500 18702 0 2 0x4081000 syz-executor 6798 2615 18702 0 3 0x4081000 inode syz-executor 38654 108532 31424 0 2 0xc80 syz-executor 38654 101288 31424 0 3 0x4000080 msgwait syz-executor 38654 44694 31424 0 3 0x4000080 fsleep syz-executor 2765 401924 56308 0 2 0 syz-executor 2765 120373 56308 0 2 0x4000000 syz-executor 2765 508545 56308 0 2 0x4000000 syz-executor 75417 78314 68668 0 3 0x80 nanoslp syz-executor 75417 279392 68668 0 3 0x4000080 ttyout syz-executor 75417 190049 68668 0 3 0x4000080 fsleep syz-executor 89817 19193 12379 0 3 0x80 nanoslp syz-executor *89817 209355 12379 0 7 0x4000000 syz-executor 89817 509072 12379 0 3 0x4000080 fsleep syz-executor 11193 61197 0 0 3 0x14280 nfsidl nfsio 445 478372 0 0 3 0x14280 nfsidl nfsio 2272 188395 0 0 3 0x14280 nfsidl nfsio 45986 428461 0 0 3 0x14280 nfsidl nfsio 59927 99292 0 0 3 0x14280 nfsidl nfsio 60842 483374 0 0 3 0x14280 nfsidl nfsio 97303 437096 0 0 3 0x14280 nfsidl nfsio 20072 268808 0 0 3 0x14280 nfsidl nfsio 97465 278207 0 0 3 0x14280 nfsidl nfsio 13790 439828 0 0 3 0x14280 nfsidl nfsio 23929 381315 0 0 3 0x14280 nfsidl nfsio 25691 519320 0 0 3 0x14280 nfsidl nfsio 15935 401659 0 0 3 0x14280 nfsidl nfsio 95400 179793 0 0 3 0x14280 nfsidl nfsio 10223 509719 0 0 3 0x14280 nfsidl nfsio 45445 342394 0 0 3 0x14280 nfsidl nfsio 83003 429964 0 0 3 0x14280 nfsidl nfsio 50988 261414 0 0 3 0x14280 nfsidl nfsio 52490 54333 0 0 3 0x14280 nfsidl nfsio 29829 516682 0 0 3 0x14280 nfsidl nfsio 66493 493354 0 0 3 0x14200 bored sosplice 18702 178712 96868 0 3 0x82 nanoslp syz-executor 12379 73830 96868 0 3 0x82 nanoslp syz-executor 68668 285975 96868 0 3 0x82 nanoslp syz-executor 52531 23105 96868 0 3 0x82 nanoslp syz-executor 4040 360214 96868 0 2 0xc82 syz-executor 31424 419702 96868 0 3 0x82 nanoslp syz-executor 52583 250640 96868 0 3 0x82 nanoslp syz-executor 56308 190522 96868 0 2 0xc82 syz-executor 96868 22111 3329 0 3 0x82 kqread syz-executor 3329 94771 17318 0 3 0x10008a sigsusp ksh 17318 210478 97732 0 3 0x98 kqread sshd-session 97732 409836 91730 0 3 0x92 kqread sshd-session 47995 38339 1 0 3 0x100083 ttyin getty 91730 107185 1 0 3 0x88 kqread sshd 9269 156459 37184 73 3 0x1100090 kqread syslogd 37184 73191 1 0 3 0x100082 sbwait syslogd 80630 298128 1 0 3 0x100080 kqread resolvd 98938 77842 30494 77 3 0x100092 kqread dhcpleased 61026 288928 30494 77 3 0x100092 kqread dhcpleased 30494 468115 1 0 3 0x80 kqread dhcpleased 36778 46491 0 0 3 0x14200 bored smr 41332 237609 0 0 2 0x14200 zerothread 84667 11900 0 0 3 0x14200 aiodoned aiodoned 74 272148 0 0 3 0x14200 syncer update 90840 280049 0 0 3 0x14200 cleaner cleaner 11840 401337 0 0 2 0x14200 reaper 71037 415473 0 0 3 0x14200 pgdaemon pagedaemon 73709 250417 0 0 3 0x14200 bored viomb 44349 121359 0 0 3 0x40014200 acpi0 acpi0 5578 97196 0 0 3 0x14200 bored softnet3 9355 335747 0 0 3 0x14200 bored softnet2 52920 10769 0 0 3 0x14200 bored softnet1 4586 232049 0 0 3 0x14200 bored softnet0 35079 65102 0 0 3 0x14200 bored systqmp 78101 328304 0 0 3 0x14200 syncxs systq 12323 367254 0 0 3 0x40014200 tmoslp softclock 37772 344099 0 0 3 0x40014200 idle0 1 337713 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 10247 11531K 11553K 166960K 11971 0 pcb 17 12K 12K 166960K 80 0 rtable 256 8K 8K 166960K 389 0 pf 31 13K 13K 166960K 67 0 ifaddr 42 7K 7K 166960K 60 0 ifgroup 50 2K 2K 166960K 92 0 sysctl 3 1K 9K 166960K 9 0 counters 32 17K 18K 166960K 54 0 ioctlops 0 0K 4K 166960K 202 0 iov 0 0K 16K 166960K 17 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1403 88K 89K 166960K 1736 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 8 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 15 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 437 0 sigio 0 0K 0K 166960K 35 0 proc 60 59K 124K 166960K 506 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 32 0 in_multi 99 7K 7K 166960K 116 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 371 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 237 159K 168K 166960K 5651 0 UVM aobj 11 2K 4K 166960K 13 0 pinsyscall 38 76K 96K 166960K 1456 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 21 0 NDP 11 0K 1K 166960K 41 0 temp 45 8668K 8732K 166960K 15304 0 kqueue 14 22K 34K 166960K 83 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 51 0 47 1 0 1 1 0 8 0 rtentry 136 116 0 3 4 0 4 4 0 8 0 unpcb 144 282 0 259 4 0 4 4 0 8 3 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 84 0 80 1 0 1 1 0 8 0 arp 88 19 0 0 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 277 0 268 2 0 2 2 0 8 1 ip6q 72 3 0 2 1 0 1 1 0 8 0 ip6af 40 5 0 4 1 0 1 1 0 8 0 nd6 104 26 0 2 1 0 1 1 0 8 0 pkpcb 40 2 0 2 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 18 0 18 1 0 1 1 0 8 1 pfstkey 128 65 0 65 1 0 1 1 0 8 1 pfstate 384 65 0 65 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 462 0 9 29 0 29 29 0 8 0 art_table 40 464 0 9 5 0 5 5 0 8 0 art_node 32 116 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 1 0 1 1 0 8 0 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 10 0 2 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2108 0 610 95 0 95 95 0 8 0 ffsino 248 2108 0 610 95 0 95 95 0 8 0 nchpl 144 2719 0 1046 63 0 63 63 0 8 0 rtmask 32 6 0 6 1 0 1 1 0 8 1 uvmvnodes 80 2467 0 0 51 0 51 51 0 8 0 vnodes 216 2467 0 0 138 0 138 138 0 8 0 namei 1024 8631 0 8631 4 2 2 2 0 8 2 kstatmem 264 50 0 28 2 0 2 2 0 8 0 scxspl 216 8919 0 8918 9 1 8 8 1 8 7 plimitpl 152 149 0 130 1 0 1 1 0 8 0 sigapl 424 725 0 658 9 1 8 8 0 8 0 knotepl 120 14631 0 14584 16 6 10 10 0 8 8 kqueuepl 184 176 0 165 4 3 1 4 0 8 0 pipepl 296 113 0 86 3 0 3 3 0 8 0 fdescpl 440 688 0 659 5 1 4 5 0 8 0 filepl 120 3447 0 3211 11 2 9 9 0 8 0 lockfpl 104 268 0 262 2 0 2 2 0 8 0 lockfspl 48 129 0 123 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 397 0 386 1 0 1 1 0 8 0 zombiepl 144 861 0 858 1 0 1 1 0 8 0 processpl 1160 725 0 658 5 0 5 5 0 8 0 procpl 656 1293 0 1214 8 1 7 7 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 528 624 0 588 7 0 7 7 0 8 4 mcl64k 65536 18 0 18 2 1 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 9 0 9 2 1 1 1 0 8 1 mcl4k 4096 2828 0 2777 14 6 8 13 0 8 1 mcl2k 2048 568 0 563 2 0 2 2 0 8 1 mtagpl 96 13 0 4 1 0 1 1 0 8 0 mbufpl 256 7133 0 6953 22 4 18 18 0 8 3 bufpl 280 3041 0 116 209 0 209 209 0 8 0 anonpl 24 127441 0 124081 62 5 57 57 0 187 29 amapchunkpl 152 17270 0 16758 27 1 26 26 0 158 5 amappl16 200 2537 0 2496 18 7 11 15 0 8 8 amappl15 192 42 0 42 1 1 0 1 0 8 0 amappl14 184 103 0 93 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 1302 0 1273 2 0 2 2 0 8 0 amappl11 160 50 0 38 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 1 0 1 0 8 0 amappl9 144 292 0 292 1 1 0 1 0 8 0 amappl8 136 47 0 46 1 0 1 1 0 8 0 amappl7 128 102 0 92 1 0 1 1 0 8 0 amappl6 120 170 0 167 1 0 1 1 0 8 0 amappl5 112 108 0 102 1 0 1 1 0 8 0 amappl4 104 302 0 285 1 0 1 1 0 8 0 amappl3 96 3302 0 3185 4 0 4 4 0 8 0 amappl2 88 608 0 554 2 0 2 2 0 8 0 amappl1 80 8984 0 8447 13 1 12 13 0 8 0 amappl 88 4953 0 4782 5 0 5 5 0 92 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 253 0 253 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 12 0 2 1 0 1 1 0 8 0 uaddrrnd 24 688 0 659 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 688 0 659 1 0 1 1 0 8 0 vmmpekpl 168 7146 0 7115 2 0 2 2 0 8 0 vmmpepl 168 49689 0 47818 95 2 93 93 0 357 9 vmsppl 360 687 0 658 4 1 3 4 0 8 0 rwobjpl 32 18408 0 15066 28 0 28 28 0 8 0 pdppl 4096 1382 0 1316 102 36 66 82 0 8 0 pvpl 32 323790 0 315118 157 20 137 137 0 265 60 pmappl 216 687 0 658 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 282 0 53 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff800001447800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001447800) at if_detach+0x1bb sys/net/if.c:1201 tun_clone_destroy(ffff800001447800) at tun_clone_destroy+0x2aa sys/net/if_tun.c:340 if_clone_destroy(ffff80003c9957b0) at if_clone_destroy+0x1d7 sys/net/if.c:1390 sys_ioctl(ffff80003953c7e8,ffff80003c995990,ffff80003c9958e0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c995990) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c995990) at syscall+0x97e sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c30cf54270, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff800001447800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001447800) at if_detach+0x1bb sys/net/if.c:1201 tun_clone_destroy(ffff800001447800) at tun_clone_destroy+0x2aa sys/net/if_tun.c:340 if_clone_destroy(ffff80003c9957b0) at if_clone_destroy+0x1d7 sys/net/if.c:1390 sys_ioctl(ffff80003953c7e8,ffff80003c995990,ffff80003c9958e0) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c995990) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c995990) at syscall+0x97e sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c30cf54270, count: -7