kernel: protection fault trap, code=0 Stopped at bpfdetach+0x70: movq 0(%r15),%r12 ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace bpfdetach(ffff800001481000) at bpfdetach+0x70 sys/net/bpf.c:1770 if_detach(ffff800001481000) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff800001481000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:340 if_clone_destroy(ffff80003942f6a0) at if_clone_destroy+0x1d5 sys/net/if.c:1389 ifioctl(ffff8000014d4368,80206979,ffff80003942f6a0,ffff80003c4434f0) at ifioctl+0x59d sys/net/if.c:2066 sys_ioctl(ffff80003c4434f0,ffff80003942f880,ffff80003942f7d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003942f880) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003942f880) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x92f83724980, count: -8 ddb{1}> show registers rdi 0xffff80003200c000 rsi 0x13fd2 mp_pdirpa+0x2fcc rbp 0xffff80003942f4c0 rbx 0x80206979 __kernel_virt_to_phys+0x206979 rdx 0xffff80003200c000 rcx 0x13fd1 mp_pdirpa+0x2fcb rax 0xffffffff832332d9 bpfdetach+0xb9 r8 0 r9 0x1 r10 0 r11 0xbda2cfaedf21c5dc r12 0xdead0002deadbeef r13 0xffff800001481600 r14 0xffff800001481000 r15 0xdead0002deadbeef rip 0xffffffff83233290 bpfdetach+0x70 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003942f490 ss 0 bpfdetach+0x70: movq 0(%r15),%r12 ddb{1}> show proc PROC (syz-executor) tid=356851 pid=60631 tcnt=2 stat=onproc flags process=1000 proc=4080000 runpri=32, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c443788 scnt=1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003c4542c0,0xffff8000ffff2d18 process=0xffff800039425880 user=0xffff80003942a000, vmspace=0xfffffd806b9b47b8 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93157 142551 93619 0 2 0 syz-executor 93157 15554 93619 0 2 0x4000000 syz-executor 93157 371097 93619 0 2 0x4000000 syz-executor 74403 443655 86881 0 2 0 syz-executor 74403 297693 86881 0 3 0x4000080 fsleep syz-executor 49146 510374 62502 0 2 0 syz-executor 49146 88504 62502 0 3 0x4000000 lockflk syz-executor 16018 55048 62227 0 2 0 syz-executor 16018 100512 62227 0 3 0x4000080 fsleep syz-executor 16018 232324 62227 0 3 0x4000080 fsleep syz-executor 13568 401794 48896 0 3 0x80 nanoslp syz-executor 13568 123030 48896 0 3 0x4000080 fsleep syz-executor 13568 244945 48896 0 2 0x4000000 syz-executor *60631 356851 60245 0 7 0x4081000 syz-executor 60631 123878 60245 0 3 0x4003000 suspend syz-executor 60245 303172 82637 0 3 0x82 nanoslp syz-executor 94903 232879 0 0 3 0x14200 bored sosplice 16067 124435 82637 0 3 0x82 nanoslp syz-executor 48896 346140 82637 0 3 0x82 nanoslp syz-executor 36563 166550 82637 0 2 0x2 syz-executor 86881 135247 82637 0 3 0x82 nanoslp syz-executor 62227 313825 82637 0 3 0x82 nanoslp syz-executor 93619 411540 82637 0 2 0x3 syz-executor 62502 134491 82637 0 3 0x82 nanoslp syz-executor 82637 16027 9360 0 3 0x82 kqread syz-executor 9360 77035 46880 0 3 0x10008a sigsusp ksh 46880 209617 45501 0 3 0x98 kqread sshd-session 45501 189808 83823 0 3 0x92 kqread sshd-session 19638 84060 1 0 3 0x100083 ttyin getty 83823 39825 1 0 3 0x88 kqread sshd 39153 409076 82040 74 3 0x1100092 bpf pflogd 82040 64320 1 0 3 0x80 sbwait pflogd 9830 19482 38894 73 3 0x1100090 kqread syslogd 38894 522342 1 0 3 0x100082 sbwait syslogd 52445 407464 1 0 3 0x100080 kqread resolvd 72502 181875 5643 77 3 0x100092 kqread dhcpleased 54217 80940 5643 77 3 0x100092 kqread dhcpleased 5643 153115 1 0 3 0x80 kqread dhcpleased 16983 503953 0 0 3 0x14200 bored smr 3881 127212 0 0 2 0x14200 zerothread 50132 248950 0 0 3 0x14200 aiodoned aiodoned 87046 26324 0 0 3 0x14200 syncer update 65352 121655 0 0 3 0x14200 cleaner cleaner 40622 186368 0 0 3 0x14200 reaper reaper 79818 489592 0 0 3 0x14200 pgdaemon pagedaemon 25573 459837 0 0 3 0x14200 bored viomb 74657 231648 0 0 3 0x40014200 acpi0 acpi0 99441 242335 0 0 3 0x40014200 idle1 69548 93707 0 0 3 0x14200 bored softnet7 19664 107923 0 0 3 0x14200 bored softnet6 32113 349254 0 0 3 0x14200 bored softnet5 69769 327586 0 0 3 0x14200 bored softnet4 54046 387807 0 0 3 0x14200 bored softnet3 83366 266054 0 0 3 0x14200 bored softnet2 14554 486442 0 0 3 0x14200 bored softnet1 64699 498186 0 0 3 0x14200 bored softnet0 20638 417480 0 0 3 0x14200 bored systqmp 91867 271890 0 0 3 0x14200 bored systq 28073 240306 0 0 3 0x14200 tmoslp softclockmp 94851 272343 0 0 3 0x40014200 tmoslp softclock 34816 399583 0 0 3 0x40014200 idle0 1 487956 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 74403 (syz-executor) thread 0xffff80003c443cb8 (443655) Process 16018 (syz-executor) thread 0xffff80003c454558 (55048) Process 13568 (syz-executor) thread 0xffff80003c443258 (244945) Process 60631 (syz-executor) thread 0xffff80003c4434f0 (356851) Process 36563 (syz-executor) thread 0xffff8000ffff2010 (166550) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10218 11072K 11349K 166960K 11712 0 pcb 17 14K 15K 166960K 66 0 rtable 200 7K 7K 166960K 326 0 pf 34 17K 24K 166960K 79 0 ifaddr 43 7K 8K 166960K 63 0 ifgroup 55 2K 2K 166960K 86 0 sysctl 1 1K 9K 166960K 12 0 counters 68 36K 37K 166960K 100 0 ioctlops 0 0K 4K 166960K 1571 0 iov 0 0K 16K 166960K 49 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1371 86K 87K 166960K 1608 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 11 0K 0K 166960K 13 0 dirhash 18 3K 3K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 240K 166960K 457 0 sigio 0 0K 0K 166960K 13 0 proc 72 115K 164K 166960K 590 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 56 0 in_multi 99 7K 7K 166960K 137 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 414 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 232 159K 168K 166960K 5649 0 UVM aobj 9 2K 2K 166960K 9 0 pinsyscall 41 82K 100K 166960K 1583 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 17 0 NDP 12 0K 2K 166960K 40 0 temp 76 8652K 8779K 166960K 23550 0 kqueue 13 20K 28K 166960K 71 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 61 0 58 1 0 1 1 0 8 0 rtentry 176 111 0 25 5 0 5 5 0 8 0 unpcb 144 313 0 295 4 3 1 4 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 93 0 87 1 0 1 1 0 8 0 arp 128 12 0 1 1 0 1 1 0 8 0 inpcb 328 491 0 482 12 5 7 7 0 8 4 nd6 144 18 0 2 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 1192 13 0 13 2 1 1 1 0 8 1 pppxif 1504 1 0 1 1 1 0 1 0 8 0 pffrag 232 10 0 4 1 0 1 1 0 482 0 pffrnode 88 10 0 4 1 0 1 1 0 8 0 pffrent 40 14 0 8 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 38 0 1 1 0 1 1 0 8 0 pfstkey 128 38 0 1 2 0 2 2 0 8 0 pfstate 384 38 0 1 4 0 4 4 0 8 0 pfrule 1344 25 0 20 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 543 0 113 30 0 30 30 0 8 1 art_table 40 545 0 113 5 0 5 5 0 8 0 art_node 32 111 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 11 0 2 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 25 0 4 3 0 3 3 0 8 0 dino2pl 256 2103 0 595 96 1 95 96 0 8 0 ffsino 296 2103 0 595 118 1 117 118 0 8 0 nchpl 144 2714 0 1019 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 2341 0 0 48 0 48 48 0 8 0 vnodes 216 2341 0 0 131 0 131 131 0 8 0 namei 1024 9463 0 9463 2 1 1 2 0 8 1 percpumem 16 65 0 16 1 0 1 1 0 8 0 kstatmem 264 46 0 20 4 1 3 3 0 8 1 scxspl 216 13740 0 13740 10 2 8 8 1 8 8 plimitpl 152 62 0 45 1 0 1 1 0 8 0 sigapl 424 756 0 702 7 0 7 7 0 8 0 knotepl 120 797 0 0 25 0 25 25 0 8 0 kqueuepl 224 330 0 321 9 4 5 5 0 8 4 pipepl 344 203 0 176 3 0 3 3 0 8 0 fdescpl 528 732 0 702 3 0 3 3 0 8 0 filepl 160 4409 0 4192 20 4 16 16 0 8 4 lockfpl 104 297 0 295 1 0 1 1 0 8 0 lockfspl 48 143 0 141 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 37 0 20 1 0 1 1 0 8 0 ucredpl 104 392 0 379 1 0 1 1 0 8 0 zombiepl 144 771 0 769 1 0 1 1 0 8 0 processpl 1248 756 0 702 5 0 5 5 0 8 0 procpl 664 1282 0 1218 7 0 7 7 0 8 1 sosppl 168 2 0 2 1 1 0 1 0 8 0 sockpl 752 881 0 851 16 6 10 11 0 8 5 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 127 0 0 16 0 16 16 0 8 0 mcl2k 2048 33 0 0 5 0 5 5 0 8 1 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 302 0 0 19 0 19 19 0 8 0 bufpl 280 5611 0 123 392 0 392 392 0 8 0 anonpl 32 9124 0 0 74 0 74 74 0 246 0 amapchunkpl 152 17987 0 17514 33 6 27 27 0 158 6 amappl16 200 2560 0 2531 24 9 15 15 0 8 7 amappl15 192 28 0 28 1 1 0 1 0 8 0 amappl14 184 120 0 108 1 0 1 1 0 8 0 amappl13 176 6 0 5 1 0 1 1 0 8 0 amappl12 168 1407 0 1376 4 1 3 3 0 8 0 amappl11 160 54 0 40 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 249 0 248 1 0 1 1 0 8 0 amappl8 136 24 0 21 1 0 1 1 0 8 0 amappl7 128 110 0 98 1 0 1 1 0 8 0 amappl6 120 196 0 193 1 0 1 1 0 8 0 amappl5 112 126 0 116 1 0 1 1 0 8 0 amappl4 104 307 0 289 1 0 1 1 0 8 0 amappl3 96 3336 0 3226 5 1 4 4 0 8 0 amappl2 88 667 0 606 2 0 2 2 0 8 0 amappl1 80 9829 0 9227 15 0 15 15 0 8 0 amappl 88 4898 0 4738 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 7 0 7 2 2 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 7 0 7 2 2 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 732 0 702 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 732 0 702 1 0 1 1 0 8 0 vmmpekpl 168 7636 0 7591 3 0 3 3 0 8 0 vmmpepl 168 52194 0 50265 103 3 100 101 0 357 2 vmsppl 488 731 0 701 5 0 5 5 0 8 1 rwobjpl 80 19019 0 15743 73 0 73 73 0 8 0 pdppl 4096 1472 0 1402 104 30 74 84 0 8 4 pvpl 32 18129 0 0 147 0 147 147 0 265 0 pmappl 256 731 0 701 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 288 0 36 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8382eff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff838d7f60) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838d7f60) at __mp_lock+0x199 sys/kern/kern_lock.c:165 exit1(ffff80003c442560,0,0,1) at exit1+0x701 sys/kern/kern_exit.c:260 sys_exit(ffff80003c442560,ffff800037816fd0,ffff800037816f20) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800037816fd0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800037816fd0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bab1e3fec70, count: -8 ddb{0}> machine ddbcpu 1 Stopped at bpfdetach+0x70: movq 0(%r15),%r12 ddb{1}> trace bpfdetach(ffff800001481000) at bpfdetach+0x70 sys/net/bpf.c:1770 if_detach(ffff800001481000) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff800001481000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:340 if_clone_destroy(ffff80003942f6a0) at if_clone_destroy+0x1d5 sys/net/if.c:1389 ifioctl(ffff8000014d4368,80206979,ffff80003942f6a0,ffff80003c4434f0) at ifioctl+0x59d sys/net/if.c:2066 sys_ioctl(ffff80003c4434f0,ffff80003942f880,ffff80003942f7d0) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003942f880) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003942f880) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x92f83724980, count: -8