witness: lock order reversal: 1st 0xffffffff8277e670 netlock (netlock) 2nd 0xfffffd8074d75098 inode (&ip->i_lock) lock order "&ip->i_lock"(rrwlock) -> "netlock"(rwlock) first seen at: #0 witness_checkorder+0x65e witness_lock_order_add sys/kern/subr_witness.c:2463 [inline] #0 witness_checkorder+0x65e sys/kern/subr_witness.c:880 #1 rw_enter_write+0x5b sys/kern/kern_rwlock.c:127 #2 uvn_get+0xeb uvm_vnode_lock sys/uvm/uvm_vnode.c:1501 [inline] #2 uvn_get+0xeb sys/uvm/uvm_vnode.c:993 #3 uvm_fault+0xa41 sys/uvm/uvm_fault.c:1073 #4 kpageflttrap+0x202 sys/arch/amd64/amd64/trap.c:265 #5 kerntrap+0xef sys/arch/amd64/amd64/trap.c:321 #6 alltraps_kern_meltdown+0x7b #7 copyin+0x53 #8 sys_connect+0x9b sys/kern/uipc_syscalls.c:362 #9 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 #10 Xsyscall+0x128 lock order "netlock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at: #0 witness_checkorder+0x65e witness_lock_order_add sys/kern/subr_witness.c:2463 [inline] #0 witness_checkorder+0x65e sys/kern/subr_witness.c:880 #1 rw_enter+0xd4 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:614 #4 vn_lock+0x6c sys/kern/vfs_vnops.c:575 #5 vget+0x1c6 sys/kern/vfs_subr.c:671 #6 ktrwriteraw+0x138 sys/kern/kern_ktrace.c:659 #7 ktrstruct+0x169 ktrwrite2 sys/kern/kern_ktrace.c:627 [inline] #7 ktrstruct+0x169 sys/kern/kern_ktrace.c:311 #8 sys_connect+0x246 #9 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 #10 Xsyscall+0x128 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 witness_checkorder(fffffd8074d75098,9,0) at witness_checkorder+0xf5a witness_debugger sys/kern/subr_witness.c:2490 [inline] witness_checkorder(fffffd8074d75098,9,0) at witness_checkorder+0xf5a sys/kern/subr_witness.c:1087 rw_enter(fffffd8074d75088,1) at rw_enter+0xd4 rrw_enter(fffffd8074d75088,1) at rrw_enter+0x88 sys/kern/kern_rwlock.c:462 VOP_LOCK(fffffd8076238348,2001) at VOP_LOCK+0x4b sys/kern/vfs_vops.c:614 vn_lock(fffffd8076238348,2001) at vn_lock+0x6c sys/kern/vfs_vnops.c:575 vget(fffffd8076238348,2001) at vget+0x1c6 sys/kern/vfs_subr.c:671 ktrwriteraw(ffff80002129e2e0,fffffd8076238348,fffffd807f7b78a0,ffff8000222d5580,ffff8000222d5560) at ktrwriteraw+0x138 sys/kern/kern_ktrace.c:659 ktrstruct(ffff80002129e2e0,ffffffff823afafa,fffffd806a68fb20,a) at ktrstruct+0x169 ktrwrite2 sys/kern/kern_ktrace.c:627 [inline] ktrstruct(ffff80002129e2e0,ffffffff823afafa,fffffd806a68fb20,a) at ktrstruct+0x169 sys/kern/kern_ktrace.c:311 sys_connect(ffff80002129e2e0,ffff8000222d56c8,ffff8000222d5710) at sys_connect+0x246 syscall(ffff8000222d5790) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222d5790) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf57b96da390, count: -12 ddb{1}> show registers rdi 0x3 rsi 0x40000 acpi_pdirpa+0x2be68 rbp 0xffff8000222d5190 rbx 0x3 rdx 0xffff800000b16c40 rcx 0x3 rax 0x3ffff acpi_pdirpa+0x2be67 r8 0xffffffff81e34c43 witness_checkorder+0xf33 r9 0x5 r10 0x2e9511e912e67355 r11 0x3c00b5d393fff7e2 r12 0xffffffff82844e10 w_lodata+0x48250 r13 0 r14 0xffffffff82841660 w_lodata+0x44aa0 r15 0xfffffd8002c9b500 rip 0xffffffff82243a18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000222d5180 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=402635 stat=onproc flags process=0 proc=4000001 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff80002129ed20,0xffffffff828e9418 process=0xffff8000222c14b8 user=0xffff8000222d0000, vmspace=0xfffffd8066df32f0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 34321 80313 62552 0 7 0x1 syz-executor.0 *34321 402635 62552 0 7 0x4000001 syz-executor.0 11826 32994 0 0 3 0x14280 nfsidl nfsio 24296 324357 0 0 3 0x14280 nfsidl nfsio 56802 521221 0 0 3 0x14280 nfsidl nfsio 74220 312186 0 0 3 0x14280 nfsidl nfsio 59651 16940 0 0 3 0x14280 nfsidl nfsio 99381 94099 0 0 3 0x14280 nfsidl nfsio 91602 32875 0 0 3 0x14280 nfsidl nfsio 80305 229291 0 0 3 0x14280 nfsidl nfsio 16374 169166 0 0 3 0x14280 nfsidl nfsio 81886 524029 0 0 3 0x14280 nfsidl nfsio 13241 194654 0 0 3 0x14280 nfsidl nfsio 93177 370066 0 0 3 0x14280 nfsidl nfsio 8503 463489 0 0 3 0x14280 nfsidl nfsio 72145 297675 0 0 3 0x14280 nfsidl nfsio 43516 59847 0 0 3 0x14280 nfsidl nfsio 60955 248488 0 0 3 0x14280 nfsidl nfsio 40820 121491 0 0 3 0x14280 nfsidl nfsio 33664 395227 0 0 3 0x14280 nfsidl nfsio 11778 462834 0 0 3 0x14280 nfsidl nfsio 74696 416927 0 0 3 0x14280 nfsidl nfsio 56860 189786 1 0 3 0x100083 ttyin getty 62552 447747 41834 0 3 0x82 nanosleep syz-executor.0 65604 430039 0 0 3 0x14200 bored sosplice 54440 167298 41834 0 3 0x82 nanosleep syz-executor.1 41834 465628 48257 0 3 0x82 thrsleep syz-fuzzer 41834 354344 48257 0 3 0x4000082 nanosleep syz-fuzzer 41834 108682 48257 0 3 0x4000082 thrsleep syz-fuzzer 41834 302888 48257 0 3 0x4000082 kqread syz-fuzzer 41834 24059 48257 0 3 0x4000082 thrsleep syz-fuzzer 41834 388898 48257 0 3 0x4000082 thrsleep syz-fuzzer 41834 32717 48257 0 3 0x4000082 thrsleep syz-fuzzer 41834 163678 48257 0 3 0x4000082 thrsleep syz-fuzzer 48257 479302 66074 0 3 0x10008a pause ksh 66074 234626 17491 0 3 0x92 select sshd 17491 223323 1 0 3 0x80 select sshd 62464 90065 50775 74 3 0x100092 bpf pflogd 50775 20728 1 0 3 0x80 netio pflogd 30115 283266 23662 73 3 0x100090 kqread syslogd 23662 394475 1 0 3 0x100082 netio syslogd 48412 352198 1 77 3 0x100090 poll dhclient 83641 28880 1 0 3 0x80 poll dhclient 22688 250915 0 0 3 0x14200 bored smr 78289 352525 0 0 3 0x14200 pgzero zerothread 79876 296365 0 0 3 0x14200 aiodoned aiodoned 54180 110505 0 0 3 0x14200 syncer update 27151 210994 0 0 3 0x14200 cleaner cleaner 62728 482810 0 0 3 0x14200 reaper reaper 54359 35170 0 0 3 0x14200 pgdaemon pagedaemon 78066 489050 0 0 3 0x14200 bored crynlk 40843 431617 0 0 3 0x14200 bored crypto 47046 462145 0 0 3 0x14200 bored viomb 26888 344149 0 0 3 0x40014200 acpi0 acpi0 97890 297738 0 0 3 0x40014200 idle1 79475 481805 0 0 3 0x14200 bored softnet 817 297855 0 0 3 0x14200 bored systqmp 9190 18630 0 0 3 0x14200 bored systq 47078 57630 0 0 3 0x40014200 bored softclock 10912 505564 0 0 3 0x40014200 idle0 1 411316 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 34321 (syz-executor.0) thread 0xffff80002129e2e0 (402635) exclusive rwlock netlock r = 0 (0xffffffff8277e670) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sys_connect+0x6a sys/kern/uipc_syscalls.c:357 #3 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828cea78) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1164 #1 syscall+0x3fd mi_syscall sys/sys/syscall_mi.h:93 [inline] #1 syscall+0x3fd sys/arch/amd64/amd64/trap.c:590 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9544 6444K 7467K 78643K 15520 0 pcb 13 8K 8K 78643K 178 0 rtable 104 3K 5K 78643K 643 0 ifaddr 76 14K 14K 78643K 212 0 sysctl 1 1K 1K 78643K 1 0 counters 43 33K 34K 78643K 91 0 ioctlops 0 0K 4K 78643K 1675 0 iov 0 0K 24K 78643K 256 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 2690 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 29 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 293 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1825 197K 290K 78643K 13109 0 file desc 5 13K 25K 78643K 4598 0 sigio 0 0K 0K 78643K 20 0 proc 64 63K 95K 78643K 750 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 257 0 in_multi 29 1K 2K 78643K 198 0 ether_multi 1 0K 0K 78643K 49 0 mrt 1 0K 0K 78643K 30 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 522 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 192 157K 173K 78643K 11482 0 UVM aobj 51 2K 2K 78643K 58 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 202 0 NDP 14 0K 0K 78643K 48 0 temp 139 3966K 4094K 78643K 18123 0 kqueue 3 4K 12K 78643K 149 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 121 0 119 1 0 1 1 0 8 0 rtentry 112 81 0 38 2 0 2 2 0 8 0 unpcb 120 827 0 817 1 0 1 1 0 8 0 syncache 296 43 0 43 4 4 0 1 0 8 0 tcpqe 32 157 0 157 5 5 0 1 0 8 0 tcpcb 736 620 0 591 11 8 3 7 0 8 0 inpcb 296 1716 0 1708 6 5 1 3 0 8 0 rttmr 72 7 0 7 1 1 0 1 0 8 0 nd6 48 15 0 9 1 0 1 1 0 8 0 pkpcb 40 10 0 10 2 2 0 1 0 8 0 kcovpl 48 3 0 1 1 0 1 1 0 8 0 pffrag 232 15 0 15 1 1 0 1 0 482 0 pffrnode 88 15 0 15 1 1 0 1 0 8 0 pffrent 40 505 0 505 1 1 0 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 27 0 27 1 1 0 1 0 8 0 pfqueue 264 5 0 5 1 1 0 1 0 8 0 pfstitem 24 35 0 33 1 0 1 1 0 8 0 pfstkey 112 35 0 33 1 0 1 1 0 8 0 pfstate 328 35 0 33 3 2 1 2 0 8 0 pfrule 1360 69 0 63 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 374 0 156 16 0 16 16 0 8 0 art_table 32 375 0 156 2 0 2 2 0 8 0 art_node 16 80 0 40 1 0 1 1 0 8 0 sysvmsgpl 40 68 0 28 1 0 1 1 0 8 0 semapl 112 291 0 281 1 0 1 1 0 8 0 shmpl 112 55 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 7102 0 5694 90 1 89 89 0 8 0 ffsino 272 7102 0 5694 95 0 95 95 0 8 0 nchpl 144 12640 0 11047 60 0 60 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 31331 0 31331 1 0 1 1 0 8 1 percpumem 16 56 0 24 1 0 1 1 0 8 0 vcpupl 1984 10 0 0 2 0 2 2 0 8 0 vmpool 560 33 0 23 2 1 1 1 0 8 0 pfiaddrpl 120 9 0 9 1 1 0 1 0 8 0 scsiplug 72 17 0 17 2 2 0 1 0 8 0 scxspl 216 39197 0 39197 14 13 1 8 0 8 1 plimitpl 152 248 0 240 1 0 1 1 0 8 0 sigapl 424 4833 0 4780 7 0 7 7 0 8 0 futexpl 56 30456 0 30456 1 0 1 1 0 8 1 knotepl 112 234 0 214 1 0 1 1 0 8 0 kqueuepl 152 2015 0 2006 1 0 1 1 0 8 0 pipepl 304 224 0 213 8 6 2 2 0 8 1 fdescpl 496 4796 0 4780 3 0 3 3 0 8 0 filepl 152 15438 0 15335 5 0 5 5 0 8 0 lockfpl 104 604 0 603 1 0 1 1 0 8 0 lockfspl 48 189 0 188 1 0 1 1 0 8 0 sessionpl 144 20 0 9 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 2177 0 2168 1 0 1 1 0 8 0 zombiepl 144 4780 0 4779 1 0 1 1 0 8 0 processpl 1056 4833 0 4779 4 0 4 4 0 8 0 procpl 656 10578 0 10516 11 5 6 6 0 8 0 sosppl 168 88 0 88 5 5 0 1 0 8 0 sockpl 400 2685 0 2665 7 4 3 6 0 8 0 mcl64k 65536 16 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 13 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k 2048 191 0 0 16 0 16 16 0 8 0 mtagpl 96 374 0 0 9 0 9 9 0 8 0 mbufpl 256 979 0 0 55 0 55 55 0 8 0 bufpl 280 10608 0 4359 447 0 447 447 0 8 0 anonpl 16 362388 0 354913 60 26 34 43 0 124 2 amapchunkpl 152 24488 0 24262 40 30 10 21 0 158 0 amappl16 192 14058 0 13802 20 6 14 14 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 1111 0 1104 1 0 1 1 0 8 0 amappl13 168 1243 0 1239 1 0 1 1 0 8 0 amappl12 160 9 0 6 2 1 1 1 0 8 0 amappl11 152 59 0 42 1 0 1 1 0 8 0 amappl10 144 12 0 7 1 0 1 1 0 8 0 amappl9 136 2293 0 2292 1 0 1 1 0 8 0 amappl8 128 264 0 177 3 0 3 3 0 8 0 amappl7 120 2542 0 2534 1 0 1 1 0 8 0 amappl6 112 76 0 62 1 0 1 1 0 8 0 amappl5 104 3396 0 3378 1 0 1 1 0 8 0 amappl4 96 1403 0 1373 1 0 1 1 0 8 0 amappl3 88 2582 0 2571 1 0 1 1 0 8 0 amappl2 80 34104 0 34034 3 0 3 3 0 8 0 amappl1 72 143992 0 143521 30 20 10 19 0 8 0 amappl 80 10920 0 10847 2 0 2 2 0 84 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 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 64 57 0 7 1 0 1 1 0 8 0 uaddrrnd 24 4829 0 4803 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4829 0 4803 1 0 1 1 0 8 0 vmmpekpl 168 26646 0 26610 2 0 2 2 0 8 0 vmmpepl 168 606907 0 605360 100 25 75 76 0 357 2 vmsppl 368 4828 0 4803 3 0 3 3 0 8 0 pdppl 4096 9665 0 9616 74 21 53 53 0 8 4 pvpl 32 1488221 0 1477519 199 92 107 121 0 265 16 pmappl 232 4828 0 4803 3 1 2 2 0 8 0 extentpl 40 57 0 39 1 0 1 1 0 8 0 phpool 112 386 0 37 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8272eff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828ce870) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ce870) at __mp_lock+0x122 sys/kern/kern_lock.c:147 intr_handler(ffff8000211edc20,ffff80000065a300) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge4_untramp() at Xintr_ioapic_edge4_untramp+0x19f __mp_lock(ffffffff828ce870) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ce870) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:90 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x37 kd_curproc sys/dev/kcov.c:570 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x37 sys/dev/kcov.c:143 __mp_lock(ffffffff828ce870) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ce870) at __mp_lock+0x133 sys/kern/kern_lock.c:147 ktrstruct(ffff80002129ed20,ffffffff823b8f04,ffff8000211edf68,10) at ktrstruct+0xee sys_clock_gettime(ffff80002129ed20,ffff8000211edfd0,ffff8000211ee020) at sys_clock_gettime+0xfb sys/kern/kern_time.c:171 syscall(ffff8000211ee0a0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211ee0a0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbf1a0, count: -15 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 witness_checkorder(fffffd8074d75098,9,0) at witness_checkorder+0xf5a witness_debugger sys/kern/subr_witness.c:2490 [inline] witness_checkorder(fffffd8074d75098,9,0) at witness_checkorder+0xf5a sys/kern/subr_witness.c:1087 rw_enter(fffffd8074d75088,1) at rw_enter+0xd4 rrw_enter(fffffd8074d75088,1) at rrw_enter+0x88 sys/kern/kern_rwlock.c:462 VOP_LOCK(fffffd8076238348,2001) at VOP_LOCK+0x4b sys/kern/vfs_vops.c:614 vn_lock(fffffd8076238348,2001) at vn_lock+0x6c sys/kern/vfs_vnops.c:575 vget(fffffd8076238348,2001) at vget+0x1c6 sys/kern/vfs_subr.c:671 ktrwriteraw(ffff80002129e2e0,fffffd8076238348,fffffd807f7b78a0,ffff8000222d5580,ffff8000222d5560) at ktrwriteraw+0x138 sys/kern/kern_ktrace.c:659 ktrstruct(ffff80002129e2e0,ffffffff823afafa,fffffd806a68fb20,a) at ktrstruct+0x169 ktrwrite2 sys/kern/kern_ktrace.c:627 [inline] ktrstruct(ffff80002129e2e0,ffffffff823afafa,fffffd806a68fb20,a) at ktrstruct+0x169 sys/kern/kern_ktrace.c:311 sys_connect(ffff80002129e2e0,ffff8000222d56c8,ffff8000222d5710) at sys_connect+0x246 syscall(ffff8000222d5790) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222d5790) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf57b96da390, count: -12