witness: lock order reversal: 1st 0xffffffff827728c0 netlock (netlock) 2nd 0xfffffd8066fe4a30 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