witness: lock order reversal: 1st 0xffffffff8277e670 netlock (netlock) 2nd 0xfffffd806b171c48 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 witness_checkorder(fffffd806b171c48,9,0) at witness_checkorder+0xf5a witness_debugger sys/kern/subr_witness.c:2490 [inline] witness_checkorder(fffffd806b171c48,9,0) at witness_checkorder+0xf5a sys/kern/subr_witness.c:1087 rw_enter(fffffd806b171c38,1) at rw_enter+0xd4 rrw_enter(fffffd806b171c38,1) at rrw_enter+0x88 sys/kern/kern_rwlock.c:462 VOP_LOCK(fffffd806e307ea8,2001) at VOP_LOCK+0x4b sys/kern/vfs_vops.c:614 vn_lock(fffffd806e307ea8,2001) at vn_lock+0x6c sys/kern/vfs_vnops.c:575 vget(fffffd806e307ea8,2001) at vget+0x1c6 sys/kern/vfs_subr.c:671 ktrwriteraw(ffff8000223222b8,fffffd806e307ea8,fffffd807f7b7a20,ffff80002128d6d0,ffff80002128d6b0) at ktrwriteraw+0x138 sys/kern/kern_ktrace.c:659 ktrstruct(ffff8000223222b8,ffffffff823afafa,fffffd806f31ea20,10) at ktrstruct+0x169 ktrwrite2 sys/kern/kern_ktrace.c:627 [inline] ktrstruct(ffff8000223222b8,ffffffff823afafa,fffffd806f31ea20,10) at ktrstruct+0x169 sys/kern/kern_ktrace.c:311 sys_connect(ffff8000223222b8,ffff80002128d818,ffff80002128d860) at sys_connect+0x246 syscall(ffff80002128d8e0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002128d8e0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21807d03090, count: -12 ddb{0}> show registers rdi 0x3 rsi 0x40000 acpi_pdirpa+0x2be68 rbp 0xffff80002128d2e0 rbx 0x3 rdx 0xffff800000bdf940 rcx 0x3 rax 0x3ffff acpi_pdirpa+0x2be67 r8 0xffffffff81e34c43 witness_checkorder+0xf33 r9 0x5 r10 0xbb6f424a91a22ef6 r11 0x72e380db9203a870 r12 0xffffffff82846e60 w_lodata+0x4a2a0 r13 0 r14 0xffffffff8283f1f0 w_lodata+0x42630 r15 0xfffffd8002c9b500 rip 0xffffffff82243a18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002128d2d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=226685 stat=onproc flags process=0 proc=4000001 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800022323218,0xffffffff828e9418 process=0xffff8000223258d8 user=0xffff800021288000, vmspace=0xfffffd8068b985d0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18515 153824 54111 0 7 0x1 syz-executor.1 *18515 226685 54111 0 7 0x4000001 syz-executor.1 48025 211317 2691 0 2 0x2 syz-executor.0 54111 316998 2691 0 3 0x82 nanosleep syz-executor.1 66133 31518 0 0 3 0x14280 nfsidl nfsio 50125 92951 0 0 3 0x14280 nfsidl nfsio 76730 380348 0 0 3 0x14280 nfsidl nfsio 28913 456820 0 0 3 0x14280 nfsidl nfsio 66185 168476 0 0 3 0x14280 nfsidl nfsio 62435 386526 0 0 3 0x14280 nfsidl nfsio 56695 73745 0 0 3 0x14280 nfsidl nfsio 66294 151358 0 0 3 0x14280 nfsidl nfsio 63309 171291 0 0 3 0x14280 nfsidl nfsio 34991 47719 0 0 3 0x14280 nfsidl nfsio 88674 210910 0 0 3 0x14280 nfsidl nfsio 33377 71463 0 0 3 0x14280 nfsidl nfsio 8515 339421 0 0 3 0x14280 nfsidl nfsio 22051 405678 0 0 3 0x14280 nfsidl nfsio 30409 437275 0 0 3 0x14280 nfsidl nfsio 40187 282039 0 0 3 0x14280 nfsidl nfsio 78555 426465 0 0 3 0x14280 nfsidl nfsio 18935 499607 0 0 3 0x14280 nfsidl nfsio 40327 409966 0 0 3 0x14280 nfsidl nfsio 28051 168564 0 0 3 0x14280 nfsidl nfsio 82957 307437 0 0 3 0x14200 bored sosplice 2691 501543 52222 0 3 0x82 thrsleep syz-fuzzer 2691 509063 52222 0 3 0x4000082 nanosleep syz-fuzzer 2691 72125 52222 0 3 0x4000082 kqread syz-fuzzer 2691 341762 52222 0 3 0x4000082 thrsleep syz-fuzzer 2691 483852 52222 0 3 0x4000082 thrsleep syz-fuzzer 2691 303866 52222 0 3 0x4000082 thrsleep syz-fuzzer 2691 489029 52222 0 3 0x4000082 thrsleep syz-fuzzer 2691 502874 52222 0 3 0x4000082 thrsleep syz-fuzzer 52222 301479 45567 0 3 0x10008a pause ksh 45567 471501 58865 0 3 0x92 select sshd 41660 196269 1 0 3 0x100083 ttyin getty 58865 106538 1 0 3 0x80 select sshd 72458 230482 99603 74 3 0x100092 bpf pflogd 99603 166409 1 0 3 0x80 netio pflogd 92583 337965 35387 73 3 0x100090 kqread syslogd 35387 395047 1 0 3 0x100082 netio syslogd 99937 91214 1 77 3 0x100090 poll dhclient 57440 57113 1 0 3 0x80 poll dhclient 55920 497717 0 0 3 0x14200 bored smr 60668 495469 0 0 3 0x14200 pgzero zerothread 25360 82362 0 0 3 0x14200 aiodoned aiodoned 28055 375713 0 0 3 0x14200 syncer update 10861 180188 0 0 3 0x14200 cleaner cleaner 93711 78171 0 0 3 0x14200 reaper reaper 73644 25284 0 0 3 0x14200 pgdaemon pagedaemon 76456 134947 0 0 3 0x14200 bored crynlk 89130 91193 0 0 3 0x14200 bored crypto 38227 339924 0 0 3 0x14200 bored viomb 14285 356253 0 0 3 0x40014200 acpi0 acpi0 11989 323935 0 0 3 0x40014200 idle1 5936 109282 0 0 3 0x14200 bored softnet 15511 346429 0 0 3 0x14200 bored systqmp 58393 287560 0 0 3 0x14200 bored systq 93786 65526 0 0 3 0x40014200 bored softclock 41771 511398 0 0 3 0x40014200 idle0 1 449755 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 18515 (syz-executor.1) thread 0xffff8000223222b8 (226685) 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 Process 48025 (syz-executor.0) thread 0xffff800022322f88 (211317) exclusive rrwlock inode r = 0 (0xfffffd806d9b6d68) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1164 #1 rw_enter+0x446 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x135 sys/ufs/ffs/ffs_vfsops.c:1350 #5 ffs_inode_alloc+0x1e1 sys/ufs/ffs/ffs_alloc.c:394 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:459 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:3064 #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 exclusive rrwlock inode r = 0 (0xfffffd806b171098) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1164 #1 rw_enter+0x446 sys/kern/kern_rwlock.c:311 #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 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x5f7 sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3049 #8 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9540 6461K 7688K 78643K 19697 0 pcb 13 8K 8K 78643K 345 0 rtable 115 4K 5K 78643K 947 0 ifaddr 76 15K 16K 78643K 307 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 137 0 ioctlops 0 0K 4K 78643K 1771 0 iov 0 0K 16K 78643K 309 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 4218 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 41 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 578 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1825 197K 290K 78643K 13109 0 file desc 5 13K 25K 78643K 7534 0 sigio 0 0K 0K 78643K 43 0 proc 70 63K 95K 78643K 940 0 subproc 32 2K 2K 78643K 118 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 439 0 in_multi 33 2K 2K 78643K 254 0 ether_multi 1 0K 0K 78643K 74 0 mrt 0 0K 0K 78643K 36 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 2K 78643K 712 0 pfkey data 0 0K 0K 78643K 5 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 230 136K 136K 78643K 18034 0 UVM aobj 44 2K 2K 78643K 67 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 349 0 NDP 13 0K 0K 78643K 72 0 temp 138 3972K 4036K 78643K 63131 0 kqueue 3 4K 22K 78643K 256 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 26 0 20 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 247 0 245 1 0 1 1 0 8 0 rtentry 112 129 0 85 2 0 2 2 0 8 0 unpcb 120 1644 0 1633 1 0 1 1 0 8 0 syncache 296 50 0 50 9 9 0 1 0 8 0 tcpqe 32 33 0 33 7 7 0 1 0 8 0 tcpcb 736 1127 0 1115 28 25 3 6 0 8 0 inpcb 296 3167 0 3156 8 6 2 2 0 8 0 rttmr 72 13 0 13 3 3 0 1 0 8 0 nd6 48 18 0 12 1 0 1 1 0 8 0 pkpcb 40 15 0 15 3 3 0 1 0 8 0 kcovpl 48 6 0 4 1 0 1 1 0 8 0 ppxss 1128 19 0 19 3 3 0 1 0 8 0 pfstscr 40 10 0 10 1 1 0 1 0 8 0 pffrag 232 18 0 17 2 1 1 1 0 482 0 pffrnode 88 18 0 17 2 1 1 1 0 8 0 pffrent 40 475 0 474 2 1 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 2 0 1 1 0 1 1 0 8 0 pfstitem 24 11 0 9 1 0 1 1 0 8 0 pfstkey 112 21 0 19 1 0 1 1 0 8 0 pfstate 328 16 0 14 1 0 1 1 0 8 0 pfrule 1360 149 0 128 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 416 0 224 14 2 12 14 0 8 0 art_table 32 417 0 224 2 0 2 2 0 8 0 art_node 16 128 0 88 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 571 0 561 1 0 1 1 0 8 0 shmpl 112 64 0 23 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 10945 0 9545 88 0 88 88 0 8 0 ffsino 272 10945 0 9545 94 0 94 94 0 8 0 nchpl 144 19831 0 18239 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 49420 0 49419 2 1 1 1 0 8 0 percpumem 16 79 0 47 1 0 1 1 0 8 0 vcpupl 1984 9 0 0 2 0 2 2 0 8 0 vmpool 560 9 0 0 1 0 1 1 0 8 0 scxspl 216 59017 0 59017 12 11 1 8 0 8 1 plimitpl 152 400 0 392 1 0 1 1 0 8 0 sigapl 424 7760 0 7707 7 0 7 7 0 8 1 futexpl 56 52752 0 52752 2 1 1 1 0 8 1 knotepl 112 436 0 416 2 1 1 2 0 8 0 kqueuepl 152 3300 0 3292 1 0 1 1 0 8 0 pipepl 304 289 0 278 11 9 2 2 0 8 1 fdescpl 496 7723 0 7707 3 0 3 3 0 8 0 filepl 152 25781 0 25677 7 2 5 6 0 8 1 lockfpl 104 760 0 759 1 0 1 1 0 8 0 lockfspl 48 338 0 337 1 0 1 1 0 8 0 sessionpl 144 22 0 11 1 0 1 1 0 8 0 pgrppl 48 24 0 13 1 0 1 1 0 8 0 ucredpl 96 3813 0 3804 1 0 1 1 0 8 0 zombiepl 144 7707 0 7707 2 1 1 1 0 8 1 processpl 1056 7760 0 7707 4 0 4 4 0 8 0 procpl 656 16906 0 16845 6 0 6 6 0 8 0 sosppl 168 115 0 112 5 4 1 1 0 8 0 sockpl 400 5081 0 5057 11 7 4 4 0 8 0 mcl64k 65536 27 0 0 4 1 3 3 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 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 1 2 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 310 0 0 17 0 17 17 0 8 0 mtagpl 96 521 0 0 11 0 11 11 0 8 0 mbufpl 256 1256 0 0 71 0 71 71 0 8 0 bufpl 280 16837 0 10590 447 0 447 447 0 8 0 anonpl 16 632391 0 625036 103 69 34 53 0 124 0 amapchunkpl 152 28948 0 28742 20 11 9 12 0 158 0 amappl16 192 29101 0 28859 88 74 14 33 0 8 1 amappl15 184 2546 0 2544 1 0 1 1 0 8 0 amappl14 176 1515 0 1509 1 0 1 1 0 8 0 amappl13 168 68 0 66 1 0 1 1 0 8 0 amappl12 160 20 0 15 2 1 1 1 0 8 0 amappl11 152 66 0 50 1 0 1 1 0 8 0 amappl10 144 193 0 187 1 0 1 1 0 8 0 amappl9 136 132 0 132 1 1 0 1 0 8 0 amappl8 128 6977 0 6839 5 0 5 5 0 8 0 amappl7 120 293 0 284 1 0 1 1 0 8 0 amappl6 112 276 0 258 1 0 1 1 0 8 0 amappl5 104 6958 0 6939 1 0 1 1 0 8 0 amappl4 96 1846 0 1812 1 0 1 1 0 8 0 amappl3 88 318 0 311 1 0 1 1 0 8 0 amappl2 80 54991 0 54917 3 0 3 3 0 8 0 amappl1 72 230827 0 230349 24 14 10 19 0 8 0 amappl 80 17252 0 17180 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 66 0 23 1 0 1 1 0 8 0 uaddrrnd 24 7732 0 7707 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7732 0 7707 1 0 1 1 0 8 0 vmmpekpl 168 43533 0 43495 2 0 2 2 0 8 0 vmmpepl 168 963519 0 961931 160 83 77 90 0 357 2 vmsppl 368 7731 0 7707 3 0 3 3 0 8 0 pdppl 4096 15471 0 15423 66 16 50 50 0 8 2 pvpl 32 2496186 0 2485528 263 169 94 138 0 265 4 pmappl 232 7731 0 7707 3 1 2 2 0 8 0 extentpl 40 57 0 39 1 0 1 1 0 8 0 phpool 112 415 0 56 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 witness_checkorder(fffffd806b171c48,9,0) at witness_checkorder+0xf5a witness_debugger sys/kern/subr_witness.c:2490 [inline] witness_checkorder(fffffd806b171c48,9,0) at witness_checkorder+0xf5a sys/kern/subr_witness.c:1087 rw_enter(fffffd806b171c38,1) at rw_enter+0xd4 rrw_enter(fffffd806b171c38,1) at rrw_enter+0x88 sys/kern/kern_rwlock.c:462 VOP_LOCK(fffffd806e307ea8,2001) at VOP_LOCK+0x4b sys/kern/vfs_vops.c:614 vn_lock(fffffd806e307ea8,2001) at vn_lock+0x6c sys/kern/vfs_vnops.c:575 vget(fffffd806e307ea8,2001) at vget+0x1c6 sys/kern/vfs_subr.c:671 ktrwriteraw(ffff8000223222b8,fffffd806e307ea8,fffffd807f7b7a20,ffff80002128d6d0,ffff80002128d6b0) at ktrwriteraw+0x138 sys/kern/kern_ktrace.c:659 ktrstruct(ffff8000223222b8,ffffffff823afafa,fffffd806f31ea20,10) at ktrstruct+0x169 ktrwrite2 sys/kern/kern_ktrace.c:627 [inline] ktrstruct(ffff8000223222b8,ffffffff823afafa,fffffd806f31ea20,10) at ktrstruct+0x169 sys/kern/kern_ktrace.c:311 sys_connect(ffff8000223222b8,ffff80002128d818,ffff80002128d860) at sys_connect+0x246 syscall(ffff80002128d8e0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002128d8e0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x21807d03090, count: -12 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d68ff0) 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+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828ce870) at __mp_lock+0x129 sys/kern/kern_lock.c:147 ktrstruct(ffff800022323218,ffffffff823b8f04,ffff8000222bdb78,10) at ktrstruct+0xee sys_clock_gettime(ffff800022323218,ffff8000222bdbe0,ffff8000222bdc30) at sys_clock_gettime+0xfb sys/kern/kern_time.c:171 syscall(ffff8000222bdcb0) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000222bdcb0) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7b30, count: -8