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(ffff800001483000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001483000) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff800001483000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80003ca2daf0) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80003c97e560,ffff80003ca2dcc0,ffff80003ca2dc10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003ca2dcc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca2dcc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb030822120, count: -7 ddb> show registers rdi 0xffff80003a570000 rsi 0xfd34 __ALIGN_SIZE+0xed34 rbp 0xffff80003ca2d9e0 rbx 0 rdx 0xffff80003a570000 rcx 0xfd33 __ALIGN_SIZE+0xed33 rax 0xffffffff828cec29 bpfdetach+0x89 r8 0xa0 r9 0 r10 0x7d3ffcae8b4f39da r11 0x2af3bcfd2f202512 r12 0xdead0002dead4110 r13 0xffff800001483560 r14 0xffff800001483000 r15 0xdead0002dead4110 rip 0xffffffff828cebe0 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003ca2d9b0 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=446797 pid=47632 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7ffa10,0xffff80003c97eaa0 process=0xffff800038160490 user=0xffff80003ca28000, vmspace=0xfffffd8067a04d08 estcpu=31, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 11412 61 54634 0 2 0 syz-executor 11412 215673 54634 0 3 0x4000080 fsleep syz-executor 51219 369779 79833 0 2 0 syz-executor 51219 375767 79833 0 3 0x4000080 fsleep syz-executor 51219 321082 79833 0 3 0x4000080 fsleep syz-executor 51219 141444 79833 0 3 0x4000080 fsleep syz-executor 97392 375782 41865 0 2 0 syz-executor 97392 144801 41865 0 3 0x4000080 fsleep syz-executor 97392 84534 41865 0 2 0x4000000 syz-executor 97392 438407 41865 0 2 0x4000000 syz-executor 77148 310489 33627 0 2 0 syz-executor 77148 259157 33627 0 3 0x4000080 fsleep syz-executor 77148 104168 33627 0 3 0x4000080 fsleep syz-executor 47632 182891 24461 0 3 0x80 nanoslp syz-executor *47632 446797 24461 0 7 0x4000000 syz-executor 47632 317013 24461 0 3 0x4000080 fsleep syz-executor 47632 151066 24461 0 3 0x4000080 fsleep syz-executor 24461 366353 79227 0 3 0x82 nanoslp syz-executor 27685 266783 0 0 3 0x14200 acct acct 77618 400645 0 0 3 0x14280 nfsidl nfsio 7484 373244 0 0 3 0x14280 nfsidl nfsio 7192 108640 0 0 3 0x14280 nfsidl nfsio 33013 221876 0 0 3 0x14280 nfsidl nfsio 91322 66846 0 0 3 0x14280 nfsidl nfsio 29039 423272 0 0 3 0x14280 nfsidl nfsio 1433 73793 0 0 3 0x14280 nfsidl nfsio 18840 394662 0 0 3 0x14280 nfsidl nfsio 9123 184890 0 0 3 0x14280 nfsidl nfsio 37109 245762 0 0 3 0x14280 nfsidl nfsio 18195 249442 0 0 3 0x14280 nfsidl nfsio 72525 13398 0 0 3 0x14280 nfsidl nfsio 42665 14156 0 0 3 0x14280 nfsidl nfsio 76035 93668 0 0 3 0x14280 nfsidl nfsio 22174 518794 0 0 3 0x14280 nfsidl nfsio 56779 15049 0 0 3 0x14280 nfsidl nfsio 92473 436374 0 0 3 0x14280 nfsidl nfsio 169 311951 0 0 3 0x14280 nfsidl nfsio 96608 416882 0 0 3 0x14280 nfsidl nfsio 66957 502655 0 0 3 0x14280 nfsidl nfsio 21257 172082 0 0 3 0x14200 bored sosplice 41865 14544 79227 0 3 0x82 nanoslp syz-executor 86556 411032 79227 0 3 0x82 nanoslp syz-executor 33627 325457 79227 0 3 0x82 nanoslp syz-executor 79745 415562 79227 0 2 0x2 syz-executor 54634 160087 79227 0 3 0x82 nanoslp syz-executor 50906 317830 79227 0 3 0x82 nanoslp syz-executor 79833 98875 79227 0 3 0x82 nanoslp syz-executor 79227 467165 46826 0 3 0x82 kqread syz-executor 46826 492179 94300 0 3 0x10008a sigsusp ksh 94300 17108 82922 0 3 0x98 kqread sshd-session 82922 202280 80581 0 3 0x92 kqread sshd-session 75144 476788 1 0 3 0x100083 ttyin getty 80581 125608 1 0 3 0x88 kqread sshd 42462 210107 96956 73 3 0x1100090 kqread syslogd 96956 296560 1 0 3 0x100082 sbwait syslogd 58816 44551 1 0 3 0x100080 kqread resolvd 24618 447707 50486 77 3 0x100092 kqread dhcpleased 38495 458920 50486 77 3 0x100092 kqread dhcpleased 50486 388122 1 0 3 0x80 kqread dhcpleased 13243 412322 0 0 3 0x14200 bored smr 62859 311604 0 0 2 0x14200 zerothread 75828 132017 0 0 3 0x14200 aiodoned aiodoned 87779 325492 0 0 3 0x14200 syncer update 37360 205813 0 0 3 0x14200 cleaner cleaner 91308 308788 0 0 2 0x14200 reaper 40174 356192 0 0 3 0x14200 pgdaemon pagedaemon 25880 223086 0 0 3 0x14200 bored viomb 91998 506147 0 0 3 0x40014200 acpi0 acpi0 87217 522789 0 0 3 0x14200 bored softnet7 47693 117843 0 0 3 0x14200 bored softnet6 82400 126549 0 0 3 0x14200 bored softnet5 84923 383188 0 0 3 0x14200 bored softnet4 80745 244015 0 0 3 0x14200 bored softnet3 59595 86775 0 0 3 0x14200 bored softnet2 39725 165530 0 0 3 0x14200 bored softnet1 49957 173771 0 0 2 0x14200 softnet0 77944 292841 0 0 3 0x14200 smrbar systqmp 13200 333760 0 0 3 0x14200 bored systq 30516 414014 0 0 3 0x40014200 tmoslp softclock 17381 223542 0 0 3 0x40014200 idle0 1 19719 0 0 3 0x82 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 11113K 11355K 166960K 12254 0 pcb 18 14K 16K 166960K 369 0 rtable 185 5K 6K 166960K 338 0 pf 30 13K 17K 166960K 78 0 ifaddr 38 6K 8K 166960K 71 0 ifgroup 46 2K 2K 166960K 103 0 sysctl 1 1K 9K 166960K 7 0 counters 31 17K 18K 166960K 55 0 ioctlops 0 0K 4K 166960K 219 0 iov 0 0K 24K 166960K 29 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1499 94K 95K 166960K 2105 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 90 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 97K 166960K 556 0 sigio 0 0K 0K 166960K 6 0 proc 60 59K 124K 166960K 546 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 60 0 in_multi 88 6K 7K 166960K 130 0 ether_multi 1 0K 0K 166960K 7 0 mrt 0 0K 0K 166960K 3 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 390 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 219 150K 167K 166960K 6351 0 UVM aobj 19 2K 2K 166960K 19 0 pinsyscall 37 74K 96K 166960K 1629 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 33 0 NDP 10 0K 2K 166960K 45 0 temp 75 8648K 8775K 166960K 23170 0 kqueue 13 20K 32K 166960K 93 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 92 0 89 2 1 1 2 0 8 0 rtentry 136 124 0 44 4 0 4 4 0 8 0 unpcb 144 311 0 294 4 3 1 4 0 8 0 syncache 336 8 0 8 1 1 0 1 0 8 0 tcpqe 32 4 0 4 1 1 0 1 0 8 0 tcpcb 736 179 0 172 7 5 2 7 0 8 1 arp 88 15 0 4 1 0 1 1 0 8 0 inpcb 328 822 0 811 14 10 4 13 0 8 1 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 104 23 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 15 0 15 2 1 1 1 0 8 1 pppxif 1384 5 0 5 2 1 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 4 1 0 1 1 0 8 0 pfstate 384 3 0 2 1 0 1 1 0 8 0 pfrule 1344 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 567 0 158 28 1 27 28 0 8 1 art_table 40 568 0 158 5 0 5 5 0 8 0 art_node 32 123 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 39 0 3 1 0 1 1 0 8 0 semapl 112 86 0 76 1 0 1 1 0 8 0 shmpl 112 16 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2399 0 897 95 0 95 95 0 8 0 ffsino 256 2399 0 897 95 0 95 95 0 8 0 nchpl 144 3169 0 1485 63 0 63 63 0 8 0 uvmvnodes 80 2999 0 0 62 0 62 62 0 8 0 vnodes 216 2999 0 0 167 0 167 167 0 8 0 namei 1024 11370 0 11368 3 2 1 2 0 8 0 kstatmem 264 54 0 34 3 1 2 3 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 11285 0 11285 8 7 1 8 1 8 1 plimitpl 152 294 0 277 1 0 1 1 0 8 0 sigapl 424 864 0 793 9 0 9 9 0 8 0 knotepl 120 21474 0 21427 12 8 4 10 0 8 2 kqueuepl 184 153 0 143 1 0 1 1 0 8 0 pipepl 304 121 0 94 3 0 3 3 0 8 0 fdescpl 448 820 0 792 5 1 4 5 0 8 0 filepl 120 5255 0 5040 15 4 11 15 0 8 3 lockfpl 104 315 0 312 1 0 1 1 0 8 0 lockfspl 48 113 0 110 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 44 0 28 1 0 1 1 0 8 0 ucredpl 104 771 0 759 1 0 1 1 0 8 0 zombiepl 144 834 0 832 1 0 1 1 0 8 0 processpl 1168 864 0 793 6 0 6 6 0 8 0 procpl 664 1502 0 1419 8 0 8 8 0 8 0 sosppl 168 4 0 4 1 1 0 1 0 8 0 sockpl 552 1249 0 1218 13 8 5 12 0 8 2 mcl64k 65536 27 0 27 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 6 0 6 1 1 0 1 0 8 0 mcl4k 4096 3004 0 2950 17 8 9 15 0 8 1 mcl2k 2048 835 0 827 3 1 2 2 0 8 1 mtagpl 96 86 0 9 2 0 2 2 0 8 0 mbufpl 256 8829 0 8520 21 0 21 21 0 8 0 bufpl 280 4980 0 122 347 0 347 347 0 8 0 anonpl 24 149008 0 145907 74 42 32 69 0 187 5 amapchunkpl 152 20976 0 20504 43 10 33 37 0 158 11 amappl16 200 3002 0 2972 28 23 5 27 0 8 0 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 117 0 107 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 1450 0 1421 3 1 2 3 0 8 0 amappl11 160 52 0 41 1 0 1 1 0 8 0 amappl10 152 6 0 5 2 1 1 1 0 8 0 amappl9 144 252 0 252 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 105 0 95 1 0 1 1 0 8 0 amappl6 120 182 0 179 1 0 1 1 0 8 0 amappl5 112 112 0 105 1 0 1 1 0 8 0 amappl4 104 282 0 266 1 0 1 1 0 8 0 amappl3 96 3940 0 3833 4 0 4 4 0 8 0 amappl2 88 665 0 610 2 0 2 2 0 8 0 amappl1 80 10906 0 10363 14 2 12 14 0 8 0 amappl 88 5610 0 5453 4 0 4 4 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 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 20 0 19 1 0 1 1 0 8 0 aobjpl 72 18 0 0 1 0 1 1 0 8 0 uaddrrnd 24 820 0 792 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 820 0 792 1 0 1 1 0 8 0 vmmpekpl 168 8056 0 8020 2 0 2 2 0 8 0 vmmpepl 168 58767 0 56964 103 19 84 103 0 357 0 vmsppl 368 819 0 791 4 1 3 4 0 8 0 rwobjpl 40 21372 0 17506 40 0 40 40 0 8 0 pdppl 4096 1647 0 1582 103 34 69 83 0 8 4 pvpl 32 375542 0 367353 165 71 94 154 0 265 10 pmappl 216 819 0 791 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 399 0 59 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff800001483000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001483000) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff800001483000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80003ca2daf0) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80003c97e560,ffff80003ca2dcc0,ffff80003ca2dc10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003ca2dcc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca2dcc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb030822120, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff800001483000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001483000) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff800001483000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80003ca2daf0) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80003c97e560,ffff80003ca2dcc0,ffff80003ca2dc10) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003ca2dcc0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca2dcc0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeb030822120, count: -7