Warning: Permanently added '10.128.0.128' (ECDSA) to the list of known hosts. executing program login: witness: lock order reversal: 1st 0xfffffd806e8ecba0 vmmaplk (&map->lock) 2nd 0xfffffd806e7da2c0 inode (&ip->i_lock) lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at: #0 witness_checkorder+0x6a7 #1 rw_enter+0xd1 #2 vm_map_lock_ln+0x10d #3 uvm_map+0x2d7 #4 km_alloc+0x1a8 #5 pool_multi_alloc_ni+0xd0 #6 pool_p_alloc+0x74 #7 pool_do_get+0x10c #8 pool_get+0xeb #9 ufsdirhash_build+0x3ea #10 ufs_lookup+0x28e #11 VOP_LOOKUP+0x5b #12 vfs_lookup+0x77d #13 namei+0x61c #14 start_init+0xc9 #15 proc_trampoline+0x1c lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at: #0 witness_checkorder+0x6a7 #1 rw_enter+0xd1 #2 rrw_enter+0x4f #3 VOP_LOCK+0x4b #4 vn_lock+0x6e #5 uvn_io+0x2c3 #6 uvn_get+0x226 #7 uvm_fault+0x11a5 #8 uvm_fault_wire+0x70 #9 uvm_map_pageable_wire+0x2dd #10 sys_mlock+0x185 #11 syscall+0x552 #12 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 witness_checkorder(fffffd806e7da2c0,9,0) at witness_checkorder+0xffc rw_enter(fffffd806e7da2b0,81) at rw_enter+0xd1 rrw_enter(fffffd806e7da2b0,81) at rrw_enter+0x4f VOP_LOCK(fffffd807b9e77d8,81) at VOP_LOCK+0x4b vn_lock(fffffd807b9e77d8,81) at vn_lock+0x6e uvn_io(fffffd807b8b4098,ffff800020ba6e48,1,2,0) at uvn_io+0x2c3 uvn_get(fffffd807b8b4098,0,ffff800020ba70a0,ffff800020ba703c,0,1) at uvn_get+0x226 uvm_fault(fffffd806e8ecb88,20002000,2,1) at uvm_fault+0x11a5 uvm_fault_wire(fffffd806e8ecb88,20002000,20005000,1) at uvm_fault_wire+0x70 uvm_map_pageable_wire(fffffd806e8ecb88,fffffd806fab1380,fffffd806fab1cb0,0,0,0) at uvm_map_pageable_wire+0x2dd sys_mlock(ffff800020b70c68,ffff800020ba7298,ffff800020ba7300) at sys_mlock+0x185 syscall(ffff800020ba7370) at syscall+0x552 Xsyscall(6,0,85781509000,0,7f7ffffc1158,7f7ffffc1148) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc10d0, count: -14 ddb{0}> show registers rdi 0x3 rsi 0xffffffff821f95e0 __sancov_gen_cov_switch_values.122 rbp 0xffff800020ba6ad0 rbx 0x3 rdx 0x8b rcx 0x3 rax 0x3 r8 0xffffffff816134c5 witness_checkorder+0xfd5 r9 0x5 r10 0x333c7c6939eeb025 r11 0xc7d8e5e1a020418a r12 0xfffffd800266efc0 r13 0 r14 0xffffffff82312900 w_lodata+0x4f890 r15 0xffffffff823181b0 w_lodata+0x55140 rip 0xffffffff8148f268 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020ba6ac0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor4185) pid=391226 stat=onproc flags process=2 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020b709f0,0xffffffff823676d8 process=0xffff800020b8d880 user=0xffff800020ba2000, vmspace=0xfffffd806e8ecb88 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *59979 391226 85626 0 7 0x2 syz-executor4185 85626 1991 52922 0 3 0x10008a pause ksh 52922 439986 69439 0 3 0x92 select sshd 97040 471103 1 0 3 0x100083 ttyin getty 69439 362749 1 0 3 0x80 select sshd 8523 163479 33914 73 3 0x100090 kqread syslogd 33914 189547 1 0 3 0x100082 netio syslogd 26044 293176 1 77 3 0x100090 poll dhclient 54345 488740 1 0 3 0x80 poll dhclient 64455 509320 0 0 3 0x14200 pgzero zerothread 30255 363741 0 0 3 0x14200 aiodoned aiodoned 83226 315618 0 0 3 0x14200 syncer update 95107 403634 0 0 3 0x14200 cleaner cleaner 46702 292946 0 0 3 0x14200 reaper reaper 49061 331273 0 0 3 0x14200 pgdaemon pagedaemon 18900 306546 0 0 3 0x14200 bored crynlk 62555 54364 0 0 3 0x14200 bored crypto 22689 180748 0 0 3 0x40014200 acpi0 acpi0 73467 149993 0 0 7 0x40014200 idle1 36601 208178 0 0 3 0x14200 bored softnet 33025 229287 0 0 3 0x14200 bored systqmp 14399 119578 0 0 3 0x14200 bored systq 5954 405664 0 0 3 0x40014200 bored softclock 46989 281394 0 0 3 0x40014200 idle0 77584 187344 0 0 3 0x14200 bored smr 1 164422 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 59979 (syz-executor4185) thread 0xffff800020b70c68 (391226) shared rwlock vmmaplk r = 0 (0xfffffd806e8ecba0) #0 witness_lock+0x52e #1 rw_enter+0x46d #2 vm_map_lock_ln+0x10d #3 uvm_map_pageable+0x11f #4 sys_mlock+0x185 #5 syscall+0x552 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8239d968) #0 witness_lock+0x52e #1 syscall+0x412 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9444 6316K 6317K 78643K 10531 0 0 pcb 23 9K 9K 78643K 55 0 0 rtable 61 2K 2K 78643K 115 0 0 ifaddr 21 7K 7K 78643K 21 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 13 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1180 74K 74K 78643K 1185 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 1 0K 0K 78643K 1 0 0 proc 40 38K 46K 78643K 257 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 11 0K 0K 78643K 11 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 152 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 54 3K 3K 78643K 702 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 3 0K 0K 78643K 3 0 0 temp 30 2723K 2787K 78643K 1715 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 2 0 0 1 0 1 1 0 8 0 inpcbpl 280 22 0 16 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 96 0 0 6 0 6 6 0 8 0 art_table 32 97 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1392 0 16 45 0 45 45 0 8 0 ffsino 272 1392 0 16 92 0 92 92 0 8 0 nchpl 144 1564 0 30 57 0 57 57 0 8 0 uvmvnodes 72 1401 0 0 26 0 26 26 0 8 0 vnodes 200 1401 0 0 74 0 74 74 0 8 0 namei 1024 3362 0 3362 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 2413 0 2413 7 5 2 6 0 8 2 plimitpl 152 13 0 8 1 0 1 1 0 8 0 sigapl 432 176 0 166 2 0 2 2 0 8 0 knotepl 112 5 0 0 1 0 1 1 0 8 0 kqueuepl 104 1 0 0 1 0 1 1 0 8 0 pipepl 112 118 0 111 3 2 1 1 0 8 0 fdescpl 488 177 0 166 2 0 2 2 0 8 0 filepl 152 837 0 794 2 0 2 2 0 8 0 lockfpl 104 6 0 6 1 1 0 1 0 8 0 lockfspl 48 3 0 3 1 1 0 1 0 8 0 sessionpl 112 17 0 9 1 0 1 1 0 8 0 pgrppl 48 17 0 9 1 0 1 1 0 8 0 ucredpl 96 47 0 40 1 0 1 1 0 8 0 zombiepl 144 166 0 166 3 2 1 1 0 8 1 processpl 896 192 0 166 4 0 4 4 0 8 0 procpl 632 192 0 166 3 0 3 3 0 8 0 sockpl 384 64 0 48 2 0 2 2 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 73 0 0 9 0 9 9 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 104 0 0 6 0 6 6 0 8 0 bufpl 256 2070 0 262 113 0 113 113 0 8 0 anonpl 16 17877 0 16739 6 1 5 6 0 125 0 amapchunkpl 152 476 0 441 2 0 2 2 0 158 0 amappl16 192 71 0 64 1 0 1 1 0 8 0 amappl14 176 36 0 32 1 0 1 1 0 8 0 amappl12 160 3 0 3 1 1 0 1 0 8 0 amappl11 152 42 0 31 1 0 1 1 0 8 0 amappl10 144 46 0 46 3 2 1 1 0 8 1 amappl9 136 395 0 394 1 0 1 1 0 8 0 amappl8 128 86 0 81 1 0 1 1 0 8 0 amappl7 120 15 0 14 1 0 1 1 0 8 0 amappl6 112 42 0 38 1 0 1 1 0 8 0 amappl5 104 117 0 107 1 0 1 1 0 8 0 amappl4 96 405 0 382 1 0 1 1 0 8 0 amappl3 88 145 0 135 1 0 1 1 0 8 0 amappl2 80 712 0 662 4 2 2 2 0 8 0 amappl1 72 12067 0 11688 14 4 10 14 0 8 0 amappl 80 364 0 345 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 177 0 166 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 177 0 166 1 0 1 1 0 8 0 vmmpekpl 168 5258 0 5237 2 0 2 2 0 8 0 vmmpepl 168 25666 0 24920 51 15 36 44 0 357 1 vmsppl 368 176 0 166 2 0 2 2 0 8 0 pdppl 4096 361 0 332 5 0 5 5 0 8 0 pvpl 32 71200 0 68468 36 10 26 26 0 265 3 pmappl 232 176 0 166 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 244 0 4 7 0 7 7 0 8 0