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(ffff80000147a800) at bpfdetach+0x40 sys/net/bpf.c:1778 if_detach(ffff80000147a800) at if_detach+0x1bb sys/net/if.c:1214 tun_clone_destroy(ffff80000147a800) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003c97ae40) at if_clone_destroy+0x1d7 sys/net/if.c:1403 sys_ioctl(ffff800038921228,ffff80003c97b020,ffff80003c97af70) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c97b020) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b020) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7400500250, count: -7 ddb> show registers rdi 0xffff800035d18000 rsi 0x242b0 acpi_pdirpa+0x10121 rbp 0xffff80003c97ad30 rbx 0xffff80003c97b020 rdx 0xffff800035d18000 rcx 0x242af acpi_pdirpa+0x10120 rax 0xffffffff81f29b49 bpfdetach+0x89 r8 0x30 r9 0 r10 0xd8b5015c9302eba3 r11 0xd053478f12dfa8a2 r12 0xdead0002deadbeef r13 0x800 r14 0xffff80000147a800 r15 0xdead0002deadbeef rip 0xffffffff81f29b00 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c97ad00 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=112326 pid=20807 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000389202c8,0xffff8000389214c8 process=0xffff800035d17678 user=0xffff80003c976000, vmspace=0xfffffd806c2a6178 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 45382 155526 71204 0 2 0 syz-executor 45382 226707 71204 0 3 0x4000080 fsleep syz-executor 24619 433657 5846 60928 2 0x10 syz-executor 24619 320890 5846 60928 3 0x4000090 fsleep syz-executor 16648 139906 10178 0 2 0 syz-executor 16648 183685 10178 0 3 0x4000080 kqsel syz-executor 16648 385648 10178 0 3 0x4000080 kqsel syz-executor 16648 23699 10178 0 2 0x4000000 syz-executor 20807 523419 67433 0 3 0x80 nanoslp syz-executor *20807 112326 67433 0 7 0x4000000 syz-executor 35945 100763 87732 0 2 0 syz-executor 35945 15004 87732 0 3 0x4000080 pipewr syz-executor 35945 352247 87732 0 3 0x4000080 fsleep syz-executor 35945 320429 87732 0 3 0x4000080 fsleep syz-executor 35945 206599 87732 0 2 0x4000000 syz-executor 41915 513839 0 0 3 0x14200 bored sosplice 32048 86482 0 0 3 0x14280 nfsidl nfsio 49320 143759 0 0 3 0x14280 nfsidl nfsio 1943 178050 0 0 3 0x14280 nfsidl nfsio 52144 53723 0 0 3 0x14280 nfsidl nfsio 56569 426776 0 0 3 0x14280 nfsidl nfsio 82443 222177 0 0 3 0x14280 nfsidl nfsio 11796 21720 0 0 3 0x14280 nfsidl nfsio 66996 257609 0 0 3 0x14280 nfsidl nfsio 47721 182849 0 0 3 0x14280 nfsidl nfsio 47620 356069 0 0 3 0x14280 nfsidl nfsio 44497 499142 0 0 3 0x14280 nfsidl nfsio 97467 144150 0 0 3 0x14280 nfsidl nfsio 65594 424112 0 0 3 0x14280 nfsidl nfsio 72492 22522 0 0 3 0x14280 nfsidl nfsio 40607 16917 0 0 3 0x14280 nfsidl nfsio 9140 288800 0 0 3 0x14280 nfsidl nfsio 43254 358440 0 0 3 0x14280 nfsidl nfsio 2628 257359 0 0 3 0x14280 nfsidl nfsio 93522 169586 0 0 3 0x14280 nfsidl nfsio 50817 462600 0 0 3 0x14280 nfsidl nfsio 67433 405844 13359 0 3 0x82 nanoslp syz-executor 97547 236015 13359 0 2 0x2 syz-executor 20941 54866 13359 0 3 0x82 nanoslp syz-executor 5846 336716 13359 0 3 0x82 nanoslp syz-executor 71204 22905 13359 0 3 0x82 nanoslp syz-executor 87732 216299 13359 0 3 0x82 nanoslp syz-executor 10178 509591 13359 0 3 0x82 nanoslp syz-executor 12694 290594 13359 0 2 0x2 syz-executor 13359 197477 1097 0 3 0x2 netlock syz-executor 1097 479364 40565 0 3 0x10008a sigsusp ksh 40565 257206 88759 0 3 0x98 kqread sshd-session 88759 428634 56546 0 3 0x92 kqread sshd-session 720 521822 1 0 3 0x100083 ttyopn getty 56546 272809 1 0 3 0x88 kqread sshd 69526 224074 11887 73 3 0x1100090 kqread syslogd 11887 502465 1 0 3 0x100082 sbwait syslogd 74801 472629 1 0 3 0x100080 kqread resolvd 29787 344405 86378 77 3 0x100092 kqread dhcpleased 42567 495008 86378 77 3 0x100092 kqread dhcpleased 86378 8774 1 0 3 0x80 kqread dhcpleased 91996 408771 0 0 3 0x14200 bored smr 25260 256003 0 0 2 0x14200 zerothread 42930 56207 0 0 3 0x14200 aiodoned aiodoned 43412 410030 0 0 3 0x14200 syncer update 33848 28111 0 0 3 0x14200 cleaner cleaner 22056 95799 0 0 3 0x14200 reaper reaper 24954 147591 0 0 3 0x14200 pgdaemon pagedaemon 45622 513978 0 0 3 0x14200 bored viomb 64906 24889 0 0 3 0x40014200 acpi0 acpi0 30466 147826 0 0 3 0x14200 bored softnet3 26298 124455 0 0 3 0x14200 bored softnet2 95446 333133 0 0 3 0x14200 bored softnet1 24915 268234 0 0 3 0x14200 bored softnet0 51596 161228 0 0 3 0x14200 bored systqmp 49084 438192 0 0 3 0x14200 bored systq 96258 514627 0 0 3 0x40014200 tmoslp softclock 42704 473404 0 0 3 0x40014200 idle0 1 489812 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 10178 11116K 11688K 166960K 12100 0 pcb 18 14K 16K 166960K 198 0 rtable 203 7K 8K 166960K 425 0 pf 30 12K 21K 166960K 69 0 ifaddr 39 6K 8K 166960K 62 0 ifgroup 48 2K 2K 166960K 90 0 sysctl 3 1K 9K 166960K 14 0 counters 32 17K 18K 166960K 54 0 ioctlops 0 0K 4K 166960K 96 0 iov 0 0K 16K 166960K 22 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1370 86K 87K 166960K 1759 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 14 16K 16K 166960K 32 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 102K 166960K 640 0 sigio 0 0K 0K 166960K 140 0 proc 61 59K 116K 166960K 537 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 84 0 in_multi 88 6K 7K 166960K 115 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 7 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 465 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 225 159K 187K 166960K 7248 0 UVM aobj 79 3K 3K 166960K 81 0 pinsyscall 38 76K 94K 166960K 1653 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 22 0 NDP 11 0K 1K 166960K 40 0 temp 62 8684K 8756K 166960K 25495 0 kqueue 14 22K 28K 166960K 116 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 89 0 86 1 0 1 1 0 8 0 rtentry 136 128 0 38 4 0 4 4 0 8 0 unpcb 144 273 0 255 2 0 2 2 0 8 1 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 121 0 115 2 1 1 2 0 8 0 arp 88 19 0 3 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 572 0 558 7 0 7 7 0 8 5 ip6q 72 2 0 1 1 0 1 1 0 8 0 ip6af 40 3 0 2 1 0 1 1 0 8 0 nd6 104 26 0 5 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 17 0 16 2 1 1 1 0 8 0 pppxif 1384 2 0 2 2 1 1 1 0 8 1 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfrule 1344 2 0 2 2 1 1 1 0 8 1 rttmr 136 2 0 2 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 560 0 160 31 2 29 31 0 8 1 art_table 32 562 0 160 4 0 4 4 0 8 0 art_node 16 122 0 41 1 0 1 1 0 8 0 sysvmsgpl 40 74 0 73 2 1 1 1 0 8 0 semapl 112 26 0 14 1 0 1 1 0 8 0 shmpl 112 78 0 2 3 0 3 3 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2539 0 1045 95 0 95 95 0 8 0 ffsino 248 2539 0 1045 95 0 95 95 0 8 0 nchpl 144 3457 0 2963 63 0 63 63 0 8 41 rtmask 32 4 0 4 2 1 1 1 0 8 1 uvmvnodes 80 2832 0 0 58 0 58 58 0 8 0 vnodes 216 2832 0 0 158 0 158 158 0 8 0 namei 1024 11355 0 11355 2 1 1 2 0 8 1 kstatmem 264 48 0 26 2 0 2 2 0 8 0 scsiplug 72 7 0 7 2 1 1 1 0 8 1 scxspl 216 10671 0 10671 8 7 1 8 1 8 1 plimitpl 152 183 0 167 1 0 1 1 0 8 0 sigapl 424 925 0 859 8 0 8 8 0 8 0 knotepl 120 24136 0 23835 29 12 17 17 0 8 7 kqueuepl 184 242 0 228 4 3 1 4 0 8 0 pipepl 296 169 0 140 5 0 5 5 0 8 2 fdescpl 440 888 0 859 5 1 4 5 0 8 0 filepl 120 4639 0 4416 12 1 11 11 0 8 3 lockfpl 104 176 0 174 1 0 1 1 0 8 0 lockfspl 48 78 0 76 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 69 0 53 1 0 1 1 0 8 0 ucredpl 104 754 0 741 1 0 1 1 0 8 0 zombiepl 144 1003 0 1002 1 0 1 1 0 8 0 processpl 1160 925 0 859 5 0 5 5 0 8 0 procpl 656 1713 0 1637 8 0 8 8 0 8 0 sosppl 168 5 0 5 2 1 1 1 0 8 1 sockpl 528 960 0 925 7 0 7 7 0 8 4 mcl64k 65536 22 0 22 2 1 1 1 0 8 1 mcl16k 16384 6 0 6 1 1 0 1 0 8 0 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl9k 9216 2 0 2 2 1 1 1 0 8 1 mcl8k 8192 9 0 9 2 1 1 1 0 8 1 mcl4k 4096 3112 0 3058 15 7 8 14 0 8 0 mcl2k2 2112 2 0 2 2 1 1 1 0 8 1 mcl2k 2048 651 0 647 2 1 1 2 0 8 0 mtagpl 96 15 0 7 1 0 1 1 0 8 0 mbufpl 256 9285 0 9113 23 5 18 22 0 8 1 bufpl 280 3301 0 119 228 0 228 228 0 8 0 anonpl 24 158169 0 155048 64 20 44 45 0 187 16 amapchunkpl 152 24487 0 24013 42 13 29 32 0 158 9 amappl16 200 2801 0 2766 31 19 12 15 0 8 8 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 105 0 95 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 1498 0 1470 3 1 2 3 0 8 0 amappl11 160 43 0 33 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 247 0 247 1 1 0 1 0 8 0 amappl8 136 25 0 24 1 0 1 1 0 8 0 amappl7 128 101 0 91 1 0 1 1 0 8 0 amappl6 120 176 0 173 1 0 1 1 0 8 0 amappl5 112 110 0 103 1 0 1 1 0 8 0 amappl4 104 305 0 291 1 0 1 1 0 8 0 amappl3 96 4525 0 4416 4 0 4 4 0 8 0 amappl2 88 613 0 558 2 0 2 2 0 8 0 amappl1 80 10002 0 9458 14 1 13 14 0 8 0 amappl 88 6499 0 6339 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 256 0 256 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 80 0 2 2 0 2 2 0 8 0 uaddrrnd 24 888 0 859 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 888 0 859 1 0 1 1 0 8 0 vmmpekpl 168 8535 0 8499 3 0 3 3 0 8 0 vmmpepl 168 61009 0 59181 105 11 94 94 0 357 12 vmsppl 360 887 0 859 4 1 3 4 0 8 0 rwobjpl 32 20967 0 17202 31 0 31 31 0 8 0 pdppl 4096 1782 0 1718 100 34 66 80 0 8 2 pvpl 32 425518 0 416859 144 34 110 119 0 265 21 pmappl 216 887 0 859 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 284 0 57 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff80000147a800) at bpfdetach+0x40 sys/net/bpf.c:1778 if_detach(ffff80000147a800) at if_detach+0x1bb sys/net/if.c:1214 tun_clone_destroy(ffff80000147a800) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003c97ae40) at if_clone_destroy+0x1d7 sys/net/if.c:1403 sys_ioctl(ffff800038921228,ffff80003c97b020,ffff80003c97af70) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c97b020) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b020) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7400500250, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff80000147a800) at bpfdetach+0x40 sys/net/bpf.c:1778 if_detach(ffff80000147a800) at if_detach+0x1bb sys/net/if.c:1214 tun_clone_destroy(ffff80000147a800) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003c97ae40) at if_clone_destroy+0x1d7 sys/net/if.c:1403 sys_ioctl(ffff800038921228,ffff80003c97b020,ffff80003c97af70) at sys_ioctl+0x5bf sys/kern/sys_generic.c:-1 syscall(ffff80003c97b020) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c97b020) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb7400500250, count: -7