login: witness: lock order reversal: 1st 0xfffffd806dc421b8 inode (&ip->i_lock) 2nd 0xfffffd806d20f628 fdlock (&newfdp->fd_fd.fd_lock) lock order "&newfdp->fd_fd.fd_lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at: #0 witness_checkorder+0x6a7 sys/kern/subr_witness.c:877 #1 rw_enter+0xa7 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:407 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_closefile+0x119 vn_lock sys/kern/vfs_vnops.c:549 [inline] #4 vn_closefile+0x119 vn_close sys/kern/vfs_vnops.c:288 [inline] #4 vn_closefile+0x119 sys/kern/vfs_vnops.c:575 #5 fdrop+0xc9 sys/kern/kern_descrip.c:1260 #6 closef+0x11d sys/kern/kern_descrip.c:1244 #7 finishdup+0x2bd sys/kern/kern_descrip.c:679 #8 dodup3+0x5e2 sys/kern/kern_descrip.c:377 #9 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #9 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #10 Xsyscall+0x128 lock order "&ip->i_lock"(rrwlock) -> "&newfdp->fd_fd.fd_lock"(rwlock) first seen at: #0 witness_checkorder+0x6a7 sys/kern/subr_witness.c:877 #1 rw_enter_write+0x5b sys/kern/kern_rwlock.c:117 #2 doopenat+0x610 sys/kern/vfs_syscalls.c:1114 #3 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #3 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #4 Xsyscall+0x128 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}>