kernel: protection fault trap, code=0 Stopped at bpfdetach+112: 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(ffff8000015a7000) at bpfdetach+112 if_detach(ffff8000015a7000) at if_detach+299 tun_clone_destroy(ffff8000015a7000) at tun_clone_destroy+718 if_clone_destroy(ffff80002cc25700) at if_clone_destroy+517 ifioctl(ffff80000159a8e8,80206979,ffff80002cc25700,ffff80002cc082c8) at ifioctl+1437 sys_ioctl(ffff80002cc082c8,ffff80002cc258e0,ffff80002cc25830) at sys_ioctl+1652 syscall(ffff80002cc258e0) at syscall+3028 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0xc5f99851460, count: -8 ddb{1}> show registers rdi 18446603337064038400 rsi 88163 acpi_pdirpa+5844 rbp 18446603336972129568 rbx 2149607801 __kernel_virt_to_phys+2124153 rdx 18446603337064038400 rcx 88162 acpi_pdirpa+5843 rax 18446744071614485257 bpfdetach+185 r8 18446744073709551615 r9 1 r10 3068426085208114672 r11 15307345588078679789 r12 16045481059716808431 r13 18446603336243901952 r14 18446603336243900416 r15 16045481059716808431 rip 18446744071614485184 bpfdetach+112 cs 8 rflags 66118 __ALIGN_SIZE+62022 rsp 18446603336972129520 ss 16 bpfdetach+112: movq 0(%r15),%r12 ddb{1}> show proc PROC (syz-executor) tid=262174 pid=14115 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002cc09788,0xffff80002cc08040 process=0xffff80002a3beb68 user=0xffff80002cc20000, vmspace=0xfffffd806c7e0b90 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 43272 250119 19530 0 2 0 syz-executor 43272 495911 19530 0 3 0x4000080 fsleep syz-executor 43272 67558 19530 0 3 0x4000080 fsleep syz-executor 98107 442106 87626 0 3 0x80 nanoslp syz-executor 98107 255450 87626 0 3 0x4000080 ttyin syz-executor 98107 202239 87626 0 3 0x4000080 fsleep syz-executor 56040 89460 63872 0 3 0x2 clonelk ifconfig 63872 412035 63663 0 3 0x10008a sigsusp sh 63663 218932 76671 0 3 0x82 wait syz-executor 14115 62373 72124 0 3 0x80 nanoslp syz-executor *14115 262174 72124 0 7 0x4000000 syz-executor 14115 340803 72124 0 3 0x4000000 clonelk syz-executor 17774 509966 57175 0 3 0x80 nanoslp syz-executor 17774 98452 57175 0 3 0x4000080 piperd syz-executor 17774 441288 57175 0 3 0x4000080 fsleep syz-executor 17774 67104 57175 0 3 0x4000080 fsleep syz-executor 71404 298727 85012 0 3 0x3000 suspend syz-executor 71404 397633 85012 0 2 0x4081000 syz-executor 71404 143881 85012 0 3 0x4081000 inode syz-executor 75109 18571 0 0 3 0x14200 acct acct 72124 447459 76671 0 3 0x82 nanoslp syz-executor 48407 522490 1 0 3 0x100083 ttyopn getty 85012 243948 76671 0 3 0x82 nanoslp syz-executor 8795 197044 0 0 3 0x14280 nfsidl nfsio 74558 511903 0 0 3 0x14280 nfsidl nfsio 5366 312393 76671 0 3 0x82 nanoslp syz-executor 57175 512250 76671 0 3 0x82 nanoslp syz-executor 19530 428728 76671 0 3 0x82 nanoslp syz-executor 28792 508380 76671 0 2 0x2 syz-executor 87626 243946 76671 0 3 0x82 nanoslp syz-executor 76671 158051 53318 0 2 0x2 syz-executor 53318 406265 59455 0 3 0x10008a sigsusp ksh 59455 269222 4304 0 3 0x98 kqread sshd-session 4304 365389 15165 0 3 0x92 kqread sshd-session 15165 177726 1 0 3 0x88 kqread sshd 48562 409338 76003 74 3 0x1100092 bpf pflogd 76003 97695 1 0 3 0x80 sbwait pflogd 8038 22112 59991 73 3 0x1100090 kqread syslogd 59991 66436 1 0 3 0x100082 sbwait syslogd 17157 200190 1 0 2 0x100001 resolvd 35769 491378 74992 77 2 0x100012 dhcpleased 33452 292023 74992 77 3 0x100092 kqread dhcpleased 74992 222977 1 0 3 0x80 kqread dhcpleased 30109 76368 0 0 3 0x14200 bored smr 2207 516453 0 0 3 0x14200 pgzero zerothread 72787 40479 0 0 3 0x14200 aiodoned aiodoned 30036 442046 0 0 3 0x14200 syncer update 22492 305277 0 0 3 0x14200 cleaner cleaner 79480 347863 0 0 3 0x14200 reaper reaper 88119 118284 0 0 3 0x14200 pgdaemon pagedaemon 7486 416895 0 0 3 0x14200 bored viomb 66596 155059 0 0 3 0x40014200 acpi0 acpi0 95093 518426 0 0 3 0x40014200 idle1 22989 173136 0 0 3 0x14200 bored softnet1 71811 207981 0 0 3 0x14200 tqbarend softnet0 90878 190739 0 0 3 0x14200 bored systqmp 61224 349938 0 0 3 0x14200 bored systq 4004 192737 0 0 3 0x14200 tmoslp softclockmp 39778 347971 0 0 3 0x40014200 tmoslp softclock 37080 506791 0 0 3 0x40014200 idle0 1 239208 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 14115 (syz-executor) thread 0xffff80002cc082c8 (262174) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83953e48) #0 witness_lock+1521 #1 __mp_acquire_count+88 #2 sleep_finish+728 #3 rw_do_enter_write+476 #4 lf_purgelocks+47 #5 vgonel+1150 #6 vop_generic_revoke+1002 #7 VOP_REVOKE+101 #8 vdevgone+379 #9 bpfsdetach+341 #10 bpfdetach+166 #11 if_detach+299 #12 tun_clone_destroy+718 #13 if_clone_destroy+517 #14 ifioctl+1437 #15 sys_ioctl+1652 #16 syscall+3028 #17 Xsyscall+296 exclusive rwlock clonelk r = 0 (0xffffffff8384c4b8) #0 witness_lock+1521 #1 rw_do_enter_write+1049 #2 if_clone_destroy+147 #3 ifioctl+1437 #4 sys_ioctl+1652 #5 syscall+3028 #6 Xsyscall+296 Process 71404 (syz-executor) thread 0xffff8000fffee2b0 (397633) exclusive rrwlock inode r = 0 (0xfffffd806d229b40) #0 witness_lock+1521 #1 rw_do_enter_write+1049 #2 rrw_enter+198 #3 VOP_LOCK+189 #4 vn_lock+164 #5 vn_write+399 #6 dofilewritev+578 #7 sys_write+162 #8 syscall+3028 #9 Xsyscall+296 Process 71811 (softnet0) thread 0xffff8000ffffea60 (207981) shared rwlock softnet0 r = 0 (0xffff80000002c078) #0 witness_lock+1521 #1 taskq_thread+298 #2 proc_trampoline+16 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11084 12158K 13537K 166960K 13373 0 pcb 18 16K 21K 166960K 297 0 rtable 231 11K 12K 166960K 729 0 pf 30 16K 19K 166960K 106 0 ifaddr 38 7K 8K 166960K 101 0 ifgroup 47 2K 2K 166960K 144 0 sysctl 3 1K 9K 166960K 12 0 counters 68 36K 38K 166960K 174 0 ioctlops 0 0K 4K 166960K 1743 0 iov 0 0K 24K 166960K 38 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1461 92K 93K 166960K 2169 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 19 0 VM map 2 1K 1K 166960K 2 0 sem 21 136K 136K 166960K 107 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 236K 166960K 1008 0 sigio 0 0K 0K 166960K 14 0 proc 87 164K 180K 166960K 689 0 subproc 72 4K 4K 166960K 100 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 352 0 in_multi 80 5K 7K 166960K 183 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 591 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 251 161K 181K 166960K 11011 0 UVM aobj 30 16K 16K 166960K 33 0 pinsyscall 43 86K 104K 166960K 2234 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 117 0 NDP 10 0K 1K 166960K 62 0 temp 68 8676K 8922K 166960K 42520 0 kqueue 13 20K 30K 166960K 207 0 SYN cache 2 8K 16K 166960K 3 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 139 0 136 2 1 1 2 0 8 0 rtentry 176 173 0 81 6 0 6 6 0 8 0 unpcb 144 493 0 476 2 1 1 2 0 8 0 syncache 336 7 0 7 3 3 0 1 0 8 0 tcpqe 32 4 0 4 2 2 0 1 0 8 0 tcpcb 736 254 0 244 4 2 2 4 0 8 0 arp 136 27 0 10 1 0 1 1 0 8 0 inpcb 328 1036 0 1013 18 15 3 12 0 8 1 nd6 152 36 0 14 2 0 2 2 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 42 0 40 1 0 1 1 0 8 0 pppxif 1504 8 0 8 2 2 0 1 0 8 0 pffrag 232 10 0 2 1 0 1 1 0 482 0 pffrnode 88 8 0 1 1 0 1 1 0 8 0 pffrent 40 16 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 pfrktable 1344 4 0 4 1 1 0 1 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 5 0 0 5 0 5 5 0 8 0 art_heap4 256 743 0 370 33 6 27 32 0 8 0 art_table 40 748 0 370 6 0 6 6 0 8 0 art_node 32 173 0 91 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 6 1 0 1 1 0 8 0 semupl 112 6 0 6 2 2 0 1 0 8 0 semapl 112 97 0 78 1 0 1 1 0 8 0 shmpl 112 22 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 3197 0 1684 96 0 96 96 0 8 0 ffsino 296 3197 0 1684 117 0 117 117 0 8 0 nchpl 144 4568 0 2853 64 0 64 64 0 8 0 rtmask 32 11 0 10 2 1 1 1 0 8 0 vnodes 216 3730 0 0 208 0 208 208 0 8 0 namei 1024 15505 0 15505 2 1 1 2 0 8 1 percpumem 16 102 0 53 1 0 1 1 0 8 0 vcpupl 3968 5 0 0 1 0 1 1 0 8 0 vmpool 848 8 0 3 1 0 1 1 0 8 0 kstatmem 264 86 0 63 3 1 2 3 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 22868 0 22868 10 9 1 8 1 8 1 plimitpl 152 247 0 227 1 0 1 1 0 8 0 sigapl 424 1318 0 1267 7 1 6 7 0 8 0 knotepl 120 526 0 0 16 0 16 16 0 8 0 kqueuepl 224 390 0 380 3 2 1 3 0 8 0 pipepl 344 214 0 186 3 0 3 3 0 8 0 fdescpl 528 1297 0 1265 3 0 3 3 0 8 0 filepl 160 7743 0 7505 19 8 11 15 0 8 0 lockfpl 104 320 0 317 1 0 1 1 0 8 0 lockfspl 48 128 0 125 1 0 1 1 0 8 0 sessionpl 144 29 0 20 1 0 1 1 0 8 0 pgrppl 48 115 0 98 1 0 1 1 0 8 0 ucredpl 104 1176 0 1163 1 0 1 1 0 8 0 zombiepl 144 1269 0 1267 1 0 1 1 0 8 0 processpl 1232 1318 0 1267 6 1 5 5 0 8 0 procpl 664 2805 0 2743 7 0 7 7 0 8 0 sosppl 176 7 0 7 2 2 0 1 0 8 0 sockpl 752 1732 0 1689 22 17 5 16 0 8 0 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 112 0 0 14 0 14 14 0 8 0 mcl2k 2048 32 0 0 4 0 4 4 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 1137 0 0 72 0 72 72 0 8 0 bufpl 280 9711 0 3574 439 0 439 439 0 8 0 anonpl 32 9423 0 0 76 0 76 76 0 246 0 amapchunkpl 152 36224 0 35646 39 9 30 37 0 158 0 amappl16 200 4237 0 4118 26 19 7 17 0 8 0 amappl15 192 19 0 18 2 1 1 1 0 8 0 amappl14 184 4 0 4 1 1 0 1 0 8 0 amappl13 176 461 0 459 1 0 1 1 0 8 0 amappl12 168 1699 0 1657 3 0 3 3 0 8 0 amappl11 160 5 0 5 2 2 0 1 0 8 0 amappl10 152 61 0 47 1 0 1 1 0 8 0 amappl9 144 275 0 275 1 1 0 1 0 8 0 amappl8 136 31 0 28 1 0 1 1 0 8 0 amappl7 128 93 0 91 1 0 1 1 0 8 0 amappl6 120 313 0 297 1 0 1 1 0 8 0 amappl5 112 83 0 72 1 0 1 1 0 8 0 amappl4 104 458 0 428 1 0 1 1 0 8 0 amappl3 96 6233 0 6139 4 1 3 3 0 8 0 amappl2 88 1438 0 1360 2 0 2 2 0 8 0 amappl1 80 13770 0 13179 14 0 14 14 0 8 0 amappl 88 10030 0 9858 5 0 5 5 0 92 0 uvmvnodes 80 135 0 0 3 0 3 3 0 8 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 2 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 32 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1297 0 1265 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1297 0 1265 1 0 1 1 0 8 0 vmmpekpl 168 12429 0 12380 3 0 3 3 0 8 0 vmmpepl 168 89058 0 87054 104 14 90 99 0 357 0 vmsppl 488 1296 0 1265 6 1 5 5 0 8 0 rwobjpl 80 25888 0 24684 29 0 29 29 0 8 0 pdppl 4096 2618 0 2541 111 32 79 84 0 8 2 pvpl 32 16637 0 0 134 0 134 134 0 265 0 pmappl 256 1304 0 1268 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 357 0 47 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+39: addq $8,%rsp ddb{0}> trace x86_ipi_db(ffffffff837d6ff0) at x86_ipi_db+39 x86_ipi_handler() at x86_ipi_handler+217 Xresume_lapic_ipi() at Xresume_lapic_ipi+39 __mp_lock(ffffffff83953c40) at __mp_lock+409 __mp_acquire_count(ffffffff83953c40,2) at __mp_acquire_count+88 sleep_finish(ffffffffffffffff,1) at sleep_finish+728 msleep_nsec(ffff80000002c070,ffff80000002c018,20,ffffffff8343c6de,ffffffffffffffff) at msleep_nsec+306 taskq_do_barrier(ffff80000002c000) at taskq_do_barrier+351 ifq_destroy(ffff8000015a7ab0) at ifq_destroy+262 if_detach(ffff8000015a7800) at if_detach+1590 pppacclose(637d,1,2000,ffff80002cc08030) at pppacclose+280 spec_close(ffff800035fdd670) at spec_close+1047 VOP_CLOSE(fffffd806cd10c20,1,fffffd80097fd138,ffff80002cc08030) at VOP_CLOSE+306 vn_closefile(fffffd805e915080,ffff80002cc08030) at vn_closefile+299 fdrop(fffffd805e915080,ffff80002cc08030) at fdrop+289 closef(fffffd805e915080,ffff80002cc08030) at closef+402 fdfree(ffff80002cc08030) at fdfree+278 exit1(ffff80002cc08030,0,0,1) at exit1+1398 sys_exit(ffff80002cc08030,ffff800035fdd9e0,ffff800035fdd930) at sys_exit+26 syscall(ffff800035fdd9e0) at syscall+2839 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0x715ae8b3c670, count: -21 ddb{0}> machine ddbcpu 1 Stopped at bpfdetach+112: movq 0(%r15),%r12 ddb{1}> trace bpfdetach(ffff8000015a7000) at bpfdetach+112 if_detach(ffff8000015a7000) at if_detach+299 tun_clone_destroy(ffff8000015a7000) at tun_clone_destroy+718 if_clone_destroy(ffff80002cc25700) at if_clone_destroy+517 ifioctl(ffff80000159a8e8,80206979,ffff80002cc25700,ffff80002cc082c8) at ifioctl+1437 sys_ioctl(ffff80002cc082c8,ffff80002cc258e0,ffff80002cc25830) at sys_ioctl+1652 syscall(ffff80002cc258e0) at syscall+3028 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0xc5f99851460, count: -8