login: 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(ffff8000015fd000) at bpfdetach+0x70 sys/net/bpf.c:1770 if_detach(ffff8000015fd000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff8000015fd000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:347 if_clone_destroy(ffff80003c469b00) at if_clone_destroy+0x205 sys/net/if.c:1478 ifioctl(ffff8000016d5280,80206979,ffff80003c469b00,ffff80003c4cba28) at ifioctl+0x59d sys/net/if.c:2159 sys_ioctl(ffff80003c4cba28,ffff80003c469ce0,ffff80003c469c30) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c469ce0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c469ce0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf85bfccb070, count: -8 ddb{1}> show registers rdi 0xffff8000333b0000 rsi 0x16066 acpi_pdirpa+0x1ed7 rbp 0xffff80003c469920 rbx 0x80206979 __kernel_virt_to_phys+0x206979 rdx 0xffff8000333b0000 rcx 0x16065 acpi_pdirpa+0x1ed6 rax 0xffffffff82092959 bpfdetach+0xb9 r8 0xffffffffffffffff r9 0x1 r10 0xdb301c30b290bd15 r11 0x994365ad5a9c59ce r12 0xdeaf0002deafbead r13 0xffff8000015fd600 r14 0xffff8000015fd000 r15 0xdeaf0002deafbead rip 0xffffffff82092910 bpfdetach+0x70 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c4698f0 ss 0x10 bpfdetach+0x70: movq 0(%r15),%r12 ddb{1}> show proc PROC (syz-executor) tid=451220 pid=48400 tcnt=2 stat=onproc flags process=1000 proc=4080000 runpri=32, usrpri=80, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c3dca80 scnt=1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003c4cb260,0xffff8000fffef780 process=0xffff80003c3f9830 user=0xffff80003c464000, vmspace=0xfffffd8063fddb90 estcpu=30, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29232 312045 74615 0 2 0 syz-executor 29232 199526 74615 0 3 0x4000080 fsleep syz-executor 29232 212737 74615 0 2 0x4000000 syz-executor 13216 153277 2696 0 2 0 syz-executor 13216 345979 2696 0 2 0x4000080 syz-executor 13216 405851 2696 0 3 0x4000080 fsleep syz-executor 4610 425718 21264 0 2 0 syz-executor 4610 516527 21264 0 3 0x4000080 fsleep syz-executor *48400 451220 74406 0 7 0x4081000 syz-executor 48400 449525 74406 0 3 0x4003000 suspend syz-executor 63596 77502 49094 0 3 0x80 nanoslp syz-executor 63596 216647 49094 0 3 0x4000080 fifor syz-executor 63596 379249 49094 0 3 0x4000080 fsleep syz-executor 63596 3686 49094 0 3 0x4000080 fsleep syz-executor 74406 376261 85181 0 3 0x82 nanoslp syz-executor 58148 214707 0 0 3 0x14200 acct acct 52906 315203 0 0 3 0x14280 nfsidl nfsio 11365 32468 0 0 3 0x14280 nfsidl nfsio 62697 440403 0 0 3 0x14280 nfsidl nfsio 26094 199207 0 0 3 0x14280 nfsidl nfsio 30650 358615 0 0 3 0x14280 nfsidl nfsio 73835 158883 0 0 3 0x14280 nfsidl nfsio 3512 213776 0 0 3 0x14280 nfsidl nfsio 39889 504059 0 0 3 0x14280 nfsidl nfsio 89070 322337 0 0 3 0x14280 nfsidl nfsio 42547 25489 0 0 3 0x14280 nfsidl nfsio 54611 266458 0 0 3 0x14280 nfsidl nfsio 79345 443647 0 0 3 0x14280 nfsidl nfsio 28426 15364 0 0 3 0x14280 nfsidl nfsio 13316 149879 0 0 3 0x14280 nfsidl nfsio 89612 52169 0 0 3 0x14280 nfsidl nfsio 59708 135896 0 0 3 0x14280 nfsidl nfsio 97268 179137 0 0 3 0x14280 nfsidl nfsio 17567 484640 0 0 3 0x14280 nfsidl nfsio 14002 101147 0 0 3 0x14280 nfsidl nfsio 72794 131269 0 0 3 0x14280 nfsidl nfsio 29832 80694 1 0 3 0x100083 ttyin getty 63930 97660 64386 0 3 0x82 sbwait sshd-session 68922 496129 85181 0 3 0x82 wait syz-executor 21264 171750 85181 0 3 0x82 nanoslp syz-executor 49094 514464 85181 0 3 0x82 nanoslp syz-executor 13251 80101 85181 0 7 0x3 syz-executor 74615 203792 85181 0 3 0x82 nanoslp syz-executor 2696 228779 85181 0 3 0x82 nanoslp syz-executor 70100 160937 85181 0 3 0x82 nanoslp syz-executor 85181 84542 19148 0 3 0x82 kqread syz-executor 19148 347809 83696 0 3 0x10008a sigsusp ksh 83696 99796 94835 0 3 0x98 kqread sshd-session 94835 56574 64386 0 3 0x92 kqread sshd-session 64386 50877 1 0 3 0x88 kqread sshd 30852 171253 6087 74 3 0x1100092 bpf pflogd 6087 181081 1 0 3 0x80 sbwait pflogd 34291 386022 82158 73 3 0x1100090 kqread syslogd 82158 289557 1 0 3 0x100082 sbwait syslogd 10024 428745 1 0 2 0x100001 resolvd 43295 405391 99952 77 2 0x100013 dhcpleased 53883 245983 99952 77 3 0x100092 kqread dhcpleased 99952 164440 1 0 3 0x80 kqread dhcpleased 72447 500783 0 0 3 0x14200 bored smr 84891 13656 0 0 3 0x14200 pgzero zerothread 84485 111772 0 0 3 0x14200 aiodoned aiodoned 25813 74000 0 0 3 0x14200 syncer update 70377 77941 0 0 3 0x14200 cleaner cleaner 32140 495477 0 0 3 0x14200 reaper reaper 25175 111740 0 0 3 0x14200 pgdaemon pagedaemon 83288 81298 0 0 3 0x14200 bored viomb 85331 101327 0 0 3 0x40014200 acpi0 acpi0 83429 33859 0 0 3 0x40014200 idle1 5584 267499 0 0 3 0x14200 bored softnet1 60960 520857 0 0 2 0x14200 softnet0 44730 460185 0 0 3 0x14200 bored systqmp 25073 394634 0 0 3 0x14200 bored systq 74820 248623 0 0 3 0x14200 tmoslp softclockmp 87958 107379 0 0 3 0x40014200 tmoslp softclock 96692 352821 0 0 3 0x40014200 idle0 1 218347 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 48400 (syz-executor) thread 0xffff80003c4cba28 (451220) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8395eb80) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 sleep_finish+0x2d8 sys/kern/kern_synch.c:369 #3 rw_do_enter_write+0x1dc sys/kern/kern_rwlock.c:298 #4 lf_purgelocks+0x2f sys/kern/vfs_lockf.c:731 #5 vgonel+0x47e sys/kern/vfs_subr.c:1216 #6 vop_generic_revoke+0x3ea sys/kern/vfs_default.c:124 #7 VOP_REVOKE+0x65 sys/kern/vfs_vops.c:291 #8 vdevgone+0x17b sys/kern/vfs_subr.c:-1 #9 bpfsdetach+0x155 sys/net/bpf.c:1794 #10 bpfdetach+0xa6 sys/net/bpf.c:-1 #11 if_detach+0x12b sys/net/if.c:1288 #12 tun_clone_destroy+0x2ce sys/net/if_tun.c:347 #13 if_clone_destroy+0x205 sys/net/if.c:1478 #14 ifioctl+0x59d sys/net/if.c:2159 #15 sys_ioctl+0x674 sys/kern/sys_generic.c:-1 #16 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #16 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #17 Xsyscall+0x128 exclusive rwlock clonelk r = 0 (0xffffffff838a48f8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 if_clone_destroy+0x93 sys/net/if.c:-1 #3 ifioctl+0x59d sys/net/if.c:2159 #4 sys_ioctl+0x674 sys/kern/sys_generic.c:-1 #5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11074 12176K 13148K 166960K 13007 0 pcb 118 19K 21K 166960K 326 0 rtable 208 9K 10K 166960K 545 0 pf 34 17K 81K 166960K 118 0 ifaddr 40 7K 8K 166960K 90 0 ifgroup 53 2K 2K 166960K 139 0 sysctl 3 1K 9K 166960K 8 0 counters 70 37K 37K 166960K 160 0 ioctlops 0 0K 4K 166960K 1729 0 iov 0 0K 14K 166960K 23 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1382 87K 87K 166960K 1851 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 94 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 678 0 sigio 0 0K 0K 166960K 5 0 proc 72 115K 164K 166960K 665 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 1 0K 0K 166960K 172 0 in_multi 81 5K 7K 166960K 140 0 ether_multi 1 0K 0K 166960K 7 0 mrt 3 0K 0K 166960K 28 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 534 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 274 176K 191K 166960K 8198 0 UVM aobj 7 2K 2K 166960K 7 0 pinsyscall 45 90K 104K 166960K 1877 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 76 0 NDP 14 0K 2K 166960K 61 0 temp 60 9079K 9151K 166960K 31241 0 kqueue 13 20K 30K 166960K 133 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 77 0 73 1 0 1 1 0 8 0 rtentry 176 144 0 60 6 0 6 6 0 8 0 unpcb 144 462 0 440 6 5 1 6 0 8 0 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 199 0 191 5 4 1 4 0 8 0 arp 136 23 0 7 1 0 1 1 0 8 0 inpcb 328 810 0 694 16 6 10 10 0 8 0 nd6 152 29 0 10 2 0 2 2 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 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 37 0 35 2 1 1 1 0 8 0 pppxif 1504 1 0 1 1 1 0 1 0 8 0 pffrag 232 8 0 2 1 0 1 1 0 482 0 pffrnode 88 8 0 2 1 0 1 1 0 8 0 pffrent 40 10 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 pfstitem 24 66 0 16 1 0 1 1 0 8 0 pfstkey 128 66 0 16 2 0 2 2 0 8 0 pfstate 448 66 0 16 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 646 0 279 31 5 26 31 0 8 1 art_table 40 648 0 280 5 0 5 5 0 8 0 art_node 32 144 0 71 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 2 1 0 1 1 0 8 0 semapl 112 92 0 82 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2602 0 1131 93 0 93 93 0 8 0 ffsino 296 2602 0 1131 114 0 114 114 0 8 0 nchpl 144 3512 0 1800 64 0 64 64 0 8 0 rtmask 32 10 0 10 2 1 1 1 0 8 1 vnodes 216 2970 0 0 165 0 165 165 0 8 0 namei 1024 11891 0 11891 2 1 1 2 0 8 1 percpumem 16 95 0 45 1 0 1 1 0 8 0 kstatmem 264 88 0 61 3 1 2 3 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 20841 0 20841 10 9 1 8 1 8 1 plimitpl 152 274 0 257 1 0 1 1 0 8 0 sigapl 424 1009 0 939 9 1 8 8 0 8 0 knotepl 120 320 0 0 10 0 10 10 0 8 0 kqueuepl 224 203 0 194 2 1 1 2 0 8 0 pipepl 344 170 0 143 3 0 3 3 0 8 0 fdescpl 528 972 0 939 3 0 3 3 0 8 0 filepl 160 5663 0 5326 23 8 15 16 0 8 0 lockfpl 104 356 0 352 2 1 1 2 0 8 0 lockfspl 48 98 0 94 1 0 1 1 0 8 0 sessionpl 144 27 0 17 1 0 1 1 0 8 0 pgrppl 48 40 0 22 1 0 1 1 0 8 0 ucredpl 104 715 0 702 1 0 1 1 0 8 0 zombiepl 144 980 0 977 1 0 1 1 0 8 0 processpl 1232 1009 0 939 6 0 6 6 0 8 0 procpl 664 1952 0 1872 8 0 8 8 0 8 1 sosppl 176 2 0 2 1 1 0 1 0 8 0 sockpl 752 1373 0 1231 30 15 15 17 0 8 0 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 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 21 0 0 3 0 3 3 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 182 0 0 12 0 12 12 0 8 0 bufpl 280 8293 0 2160 439 0 439 439 0 8 0 anonpl 32 12498 0 0 101 0 101 101 0 246 0 amapchunkpl 152 27674 0 27053 36 5 31 35 0 158 5 amappl16 200 3997 0 3962 32 23 9 23 0 8 1 amappl15 192 15 0 15 1 1 0 1 0 8 0 amappl14 184 454 0 453 1 0 1 1 0 8 0 amappl13 176 136 0 122 1 0 1 1 0 8 0 amappl12 168 1237 0 1205 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 75 0 61 1 0 1 1 0 8 0 amappl9 144 276 0 276 1 1 0 1 0 8 0 amappl8 136 116 0 113 1 0 1 1 0 8 0 amappl7 128 42 0 40 1 0 1 1 0 8 0 amappl6 120 281 0 267 1 0 1 1 0 8 0 amappl5 112 109 0 97 1 0 1 1 0 8 0 amappl4 104 552 0 507 2 0 2 2 0 8 0 amappl3 96 4446 0 4342 4 1 3 3 0 8 0 amappl2 88 1066 0 992 2 0 2 2 0 8 0 amappl1 80 12541 0 11853 16 0 16 16 0 8 0 amappl 88 7335 0 7138 5 0 5 5 0 92 0 uvmvnodes 80 129 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 255 0 255 3 2 1 1 0 8 1 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 972 0 939 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 972 0 939 1 0 1 1 0 8 0 vmmpekpl 168 9674 0 9630 4 1 3 3 0 8 0 vmmpepl 168 70500 0 68350 110 9 101 110 0 357 1 vmsppl 488 971 0 939 5 0 5 5 0 8 0 rwobjpl 80 22554 0 21350 34 3 31 32 0 8 0 pdppl 4096 1951 0 1878 111 36 75 85 0 8 2 pvpl 32 20105 0 0 164 1 163 163 0 265 0 pmappl 256 971 0 939 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 296 0 52 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(ffffffff83942ff0) 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(ffffffff8395e380) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff8395e380) at __mp_lock+0x199 sys/kern/kern_lock.c:173 ktrsyscall(ffff8000ffffd760,5b,10,ffff80002a3269c0) at ktrsyscall+0x2c7 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff8000ffffd760,5b,10,ffff80002a3269c0) at ktrsyscall+0x2c7 sys/kern/kern_ktrace.c:183 syscall(ffff80002a3269c0) at syscall+0x305 mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a3269c0) at syscall+0x305 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7782803ce2d0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at bpfdetach+0x70: movq 0(%r15),%r12 ddb{1}> trace bpfdetach(ffff8000015fd000) at bpfdetach+0x70 sys/net/bpf.c:1770 if_detach(ffff8000015fd000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff8000015fd000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:347 if_clone_destroy(ffff80003c469b00) at if_clone_destroy+0x205 sys/net/if.c:1478 ifioctl(ffff8000016d5280,80206979,ffff80003c469b00,ffff80003c4cba28) at ifioctl+0x59d sys/net/if.c:2159 sys_ioctl(ffff80003c4cba28,ffff80003c469ce0,ffff80003c469c30) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c469ce0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c469ce0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf85bfccb070, count: -8