kernel: protection fault trap, code=0 Stopped at bpfdetach+112: movq 0(%r15),%r12 ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace bpfdetach(ffff80000159c800) at bpfdetach+112 if_detach(ffff80000159c800) at if_detach+299 tun_clone_destroy(ffff80000159c800) at tun_clone_destroy+718 if_clone_destroy(ffff80003c433cf0) at if_clone_destroy+517 ifioctl(ffff8000015f2910,80206979,ffff80003c433cf0,ffff80003c410a88) at ifioctl+1437 sys_ioctl(ffff80003c410a88,ffff80003c433ed0,ffff80003c433e20) at sys_ioctl+1652 syscall(ffff80003c433ed0) at syscall+3028 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0xc9b2e4dc110, count: -8 ddb{0}> show registers rdi 18446603337005350912 rsi 88835 acpi_pdirpa+6516 rbp 18446603337232235280 rbx 2149607801 __kernel_virt_to_phys+2124153 rdx 18446603337005350912 rcx 88834 acpi_pdirpa+6515 rax 18446744071582081881 bpfdetach+185 r8 0 r9 18446744073709551615 r10 11248843167165068607 r11 12199322986864283742 r12 16045481059716808431 r13 18446603336243858944 r14 18446603336243857408 r15 16045481059716808431 rip 18446744071582081808 bpfdetach+112 cs 8 rflags 66118 __ALIGN_SIZE+62022 rsp 18446603337232235232 ss 16 bpfdetach+112: movq 0(%r15),%r12 ddb{0}> show proc PROC (syz-executor) tid=292148 pid=18640 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=79, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c411cb0,0xffff80003c410038 process=0xffff80002a3c4018 user=0xffff80003c42e000, vmspace=0xfffffd806c758020 estcpu=29, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18640 208266 54650 0 3 0x80 nanoslp syz-executor 18640 419242 54650 0 2 0x4000080 syz-executor *18640 292148 54650 0 7 0x4000000 syz-executor 18640 238003 54650 0 3 0x4000080 fsleep syz-executor 43620 47376 54267 0 2 0 syz-executor 43620 420176 54267 0 3 0x4000080 sbwait syz-executor 43620 402345 54267 0 3 0x4000080 fsleep syz-executor 67663 267365 86993 0 3 0x80 nanoslp syz-executor 67663 506770 86993 0 3 0x4000080 kqread syz-executor 67663 222126 86993 0 3 0x4000080 fsleep syz-executor 54650 266072 76312 0 3 0x82 nanoslp syz-executor 54267 522819 76312 0 3 0x82 nanoslp syz-executor 43680 475952 32322 0 2 0x100082 ndp 32322 482261 84396 0 3 0x10008a sigsusp sh 24741 90596 76312 0 3 0x82 wait syz-executor 84396 76048 76312 0 3 0x82 wait syz-executor 86993 61613 76312 0 3 0x82 nanoslp syz-executor 15812 480700 76312 0 3 0x82 nanoslp syz-executor 53056 175601 76312 0 3 0x82 nanoslp syz-executor 97583 326912 76312 0 2 0x2 syz-executor 76312 197367 52598 0 3 0x82 kqread syz-executor 52598 191074 9449 0 3 0x10008a sigsusp ksh 9449 476298 8515 0 3 0x98 kqread sshd-session 8515 168452 96510 0 3 0x92 kqread sshd-session 65809 341748 1 0 3 0x100083 ttyin getty 96510 518524 1 0 3 0x88 kqread sshd 67002 49327 64182 74 3 0x1100092 bpf pflogd 64182 37947 1 0 3 0x80 sbwait pflogd 50101 84067 10041 73 3 0x1100090 kqread syslogd 10041 192855 1 0 3 0x100082 sbwait syslogd 4769 123298 1 0 2 0x100000 resolvd 58517 126564 63127 77 2 0x100092 dhcpleased 19134 284645 63127 77 2 0x100092 dhcpleased 63127 486007 1 0 3 0x80 kqread dhcpleased 90743 190185 0 0 3 0x14200 bored smr 48364 83110 0 0 2 0x14200 zerothread 34200 120430 0 0 3 0x14200 aiodoned aiodoned 39431 383881 0 0 3 0x14200 syncer update 97505 501279 0 0 3 0x14200 cleaner cleaner 36161 347967 0 0 3 0x14200 reaper reaper 22629 405667 0 0 3 0x14200 pgdaemon pagedaemon 84225 119839 0 0 3 0x14200 bored viomb 20308 436950 0 0 3 0x40014200 acpi0 acpi0 43280 199268 0 0 3 0x40014200 idle1 96040 219876 0 0 3 0x14200 bored softnet1 75680 469313 0 0 2 0x14200 softnet0 56607 293960 0 0 3 0x14200 bored systqmp 35816 192537 0 0 3 0x14200 bored systq 87719 73498 0 0 3 0x14200 tmoslp softclockmp 8990 248013 0 0 3 0x40014200 tmoslp softclock 48032 146009 0 0 3 0x40014200 idle0 1 5732 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 18640 (syz-executor) thread 0xffff80003c410a88 (292148) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838cf808) #0 witness_lock+1521 #1 __mp_acquire_count+88 #2 sleep_finish+728 #3 getblk+407 #4 bread+69 #5 ffs_update+408 #6 ufs_reclaim+271 #7 ffs_reclaim+67 #8 VOP_RECLAIM+119 #9 vclean+802 #10 vgonel+176 #11 vrecycle+124 #12 ufs_inactive+860 #13 VOP_INACTIVE+260 #14 vrele+297 #15 spec_close+1240 #16 VOP_CLOSE+306 #17 vclean+527 #18 vgonel+176 exclusive rwlock clonelk r = 0 (0xffffffff838563d8) #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 97583 (syz-executor) thread 0xffff8000ffffc008 (326912) exclusive rrwlock inode r = 0 (0xfffffd806e825b88) #0 witness_lock+1521 #1 rw_do_enter_write+1049 #2 rrw_enter+198 #3 VOP_LOCK+189 #4 vn_lock+164 #5 vget+674 #6 ufs_ihashget+389 #7 ffs_vget+140 #8 ufs_lookup+6710 #9 VOP_LOOKUP+110 #10 vfs_lookup+2362 #11 namei+1994 #12 dounlinkat+193 #13 syscall+2839 #14 Xsyscall+296 exclusive rrwlock inode r = 0 (0xfffffd806d8ddea8) #0 witness_lock+1521 #1 rw_do_enter_write+1049 #2 rrw_enter+198 #3 VOP_LOCK+189 #4 vn_lock+164 #5 vfs_lookup+284 #6 namei+1994 #7 dounlinkat+193 #8 syscall+2839 #9 Xsyscall+296 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11070 12161K 12239K 166960K 12456 0 pcb 17 13K 14K 166960K 156 0 rtable 239 8K 8K 166960K 464 0 pf 32 17K 18K 166960K 72 0 ifaddr 39 6K 8K 166960K 71 0 ifgroup 51 2K 2K 166960K 101 0 sysctl 3 1K 9K 166960K 7 0 counters 68 36K 38K 166960K 116 0 ioctlops 0 0K 4K 166960K 1521 0 iov 0 0K 12K 166960K 18 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1340 84K 85K 166960K 1759 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 14 0K 0K 166960K 18 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 495 0 sigio 0 0K 0K 166960K 9 0 proc 72 115K 164K 166960K 638 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 43 0 in_multi 88 6K 7K 166960K 137 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 4 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 434 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 246 161K 176K 166960K 6302 0 UVM aobj 14 4K 6K 166960K 16 0 pinsyscall 43 86K 108K 166960K 1679 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 37 0 NDP 11 0K 2K 166960K 48 0 temp 49 8668K 8739K 166960K 18616 0 kqueue 16 26K 30K 166960K 88 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> 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 53 0 49 1 0 1 1 0 8 0 rtentry 176 139 0 37 6 0 6 6 0 8 0 unpcb 144 324 0 303 4 3 1 4 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 117 0 112 4 3 1 4 0 8 0 arp 136 22 0 6 1 0 1 1 0 8 0 inpcb 328 559 0 549 7 3 4 7 0 8 2 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 152 30 0 9 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1192 17 0 16 2 1 1 1 0 8 0 pppxif 1504 2 0 2 1 1 0 1 0 8 0 pffrag 232 5 0 1 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 9 0 4 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 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 593 0 175 29 2 27 29 0 8 0 art_table 40 596 0 175 5 0 5 5 0 8 0 art_node 32 139 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 13 0 1 1 0 1 1 0 8 0 shmpl 112 11 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2377 0 862 95 0 95 95 0 8 0 ffsino 296 2377 0 862 117 0 117 117 0 8 0 nchpl 144 3030 0 1319 64 0 64 64 0 8 0 rtmask 32 3 0 3 2 1 1 1 0 8 1 vnodes 216 2572 0 0 143 0 143 143 0 8 0 namei 1024 10413 0 10413 2 0 2 2 0 8 2 percpumem 16 73 0 24 1 0 1 1 0 8 0 vcpupl 3968 1 0 0 1 0 1 1 0 8 0 vmpool 848 2 0 1 1 0 1 1 0 8 0 kstatmem 264 58 0 33 3 1 2 3 0 8 0 scsiplug 72 4 0 4 1 0 1 1 0 8 1 scxspl 216 13336 0 13336 8 5 3 8 1 8 3 plimitpl 152 78 0 61 1 0 1 1 0 8 0 sigapl 424 806 0 758 7 1 6 7 0 8 0 knotepl 120 589 0 0 18 0 18 18 0 8 0 kqueuepl 224 122 0 108 3 1 2 2 0 8 0 pipepl 344 150 0 123 3 0 3 3 0 8 0 fdescpl 528 785 0 754 3 0 3 3 0 8 0 filepl 160 4411 0 4185 13 2 11 13 0 8 1 lockfpl 104 142 0 140 1 0 1 1 0 8 0 lockfspl 48 54 0 52 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 38 0 21 1 0 1 1 0 8 0 ucredpl 104 821 0 808 1 0 1 1 0 8 0 zombiepl 144 761 0 758 1 0 1 1 0 8 0 processpl 1232 806 0 758 5 0 5 5 0 8 0 procpl 664 1413 0 1358 7 0 7 7 0 8 1 sosppl 176 2 0 2 2 1 1 1 0 8 1 sockpl 752 950 0 915 11 3 8 11 0 8 3 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 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 108 0 0 14 0 14 14 0 8 0 mcl2k 2048 37 0 0 5 0 5 5 0 8 0 mtagpl 96 68 0 0 2 0 2 2 0 8 0 mbufpl 256 1785 0 0 112 0 112 112 0 8 0 bufpl 280 5100 0 133 355 0 355 355 0 8 0 anonpl 32 10234 0 0 84 1 83 83 0 246 0 amapchunkpl 152 19830 0 19304 32 0 32 32 0 158 6 amappl16 200 2828 0 2771 14 2 12 12 0 8 5 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 6 0 6 1 1 0 1 0 8 0 amappl13 176 451 0 449 1 0 1 1 0 8 0 amappl12 168 1158 0 1114 3 0 3 3 0 8 0 amappl11 160 37 0 36 1 0 1 1 0 8 0 amappl10 152 55 0 41 1 0 1 1 0 8 0 amappl9 144 253 0 253 1 1 0 1 0 8 0 amappl8 136 26 0 23 1 0 1 1 0 8 0 amappl7 128 84 0 83 1 0 1 1 0 8 0 amappl6 120 302 0 286 1 0 1 1 0 8 0 amappl5 112 95 0 85 1 0 1 1 0 8 0 amappl4 104 430 0 399 1 0 1 1 0 8 0 amappl3 96 3290 0 3203 3 0 3 3 0 8 0 amappl2 88 892 0 814 2 0 2 2 0 8 0 amappl1 80 10845 0 10231 16 1 15 15 0 8 0 amappl 88 5477 0 5314 5 0 5 5 0 92 0 uvmvnodes 80 116 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 7 0 7 2 1 1 1 0 8 1 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 15 0 2 1 0 1 1 0 8 0 uaddrrnd 24 785 0 754 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 785 0 754 1 0 1 1 0 8 0 vmmpekpl 168 8021 0 7978 3 0 3 3 0 8 0 vmmpepl 168 57148 0 55211 98 1 97 97 0 357 5 vmsppl 488 784 0 753 5 0 5 5 0 8 0 rwobjpl 80 18452 0 17332 27 0 27 27 0 8 0 pdppl 4096 1582 0 1509 105 28 77 88 0 8 4 pvpl 32 20903 0 0 170 1 169 169 0 265 0 pmappl 256 786 0 754 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 384 0 36 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace bpfdetach(ffff80000159c800) at bpfdetach+112 if_detach(ffff80000159c800) at if_detach+299 tun_clone_destroy(ffff80000159c800) at tun_clone_destroy+718 if_clone_destroy(ffff80003c433cf0) at if_clone_destroy+517 ifioctl(ffff8000015f2910,80206979,ffff80003c433cf0,ffff80003c410a88) at ifioctl+1437 sys_ioctl(ffff80003c410a88,ffff80003c433ed0,ffff80003c433e20) at sys_ioctl+1652 syscall(ffff80003c433ed0) at syscall+3028 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0xc9b2e4dc110, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+39: addq $8,%rsp ddb{1}> trace x86_ipi_db(ffff8000299ddff0) at x86_ipi_db+39 x86_ipi_handler() at x86_ipi_handler+217 Xresume_lapic_ipi() at Xresume_lapic_ipi+39 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+11 exit1(ffff8000ffff2018,0,0,1) at exit1+1793 sys_exit(ffff8000ffff2018,ffff80003c42d3d0,ffff80003c42d320) at sys_exit+26 syscall(ffff80003c42d3d0) at syscall+2839 Xsyscall() at Xsyscall+296 end of kernel end trace frame: 0x747596bf4960, count: -8