Warning: Permanently added '10.128.0.76' (ECDSA) to the list of known hosts. executing program witness: lock order reversal: 1st 0xfffffd806e7cb750 vmmaplk (&map->lock) 2nd 0xfffffd806d870a38 inode (&ip->i_lock) lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at: #0 witness_checkorder+0x69c #1 rw_enter+0xd4 #2 vm_map_lock_ln+0x10d #3 uvm_map+0x2da #4 km_alloc+0x18b #5 pool_multi_alloc_ni+0xd0 #6 pool_p_alloc+0x74 #7 pool_do_get+0x10f #8 pool_get+0xeb #9 ufsdirhash_build+0x3ea #10 ufs_lookup+0x2a1 #11 VOP_LOOKUP+0x5b #12 vfs_lookup+0x7a6 #13 namei+0x63c #14 start_init+0xc9 #15 proc_trampoline+0x1c lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at: #0 witness_checkorder+0x69c #1 rw_enter+0xd4 #2 rrw_enter+0x4f #3 VOP_LOCK+0xf0 #4 vn_lock+0x81 #5 uvn_io+0x2c8 #6 uvn_get+0x226 #7 uvm_fault+0x11cc #8 uvm_fault_wire+0x70 #9 uvm_map_pageable_wire+0x2dd #10 sys_mlock+0x185 #11 syscall+0x4a4 #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(fffffd806d870a38,9,0) at witness_checkorder+0x1009 rw_enter(fffffd806d870a28,81) at rw_enter+0xd4 rrw_enter(fffffd806d870a28,81) at rrw_enter+0x4f VOP_LOCK(fffffd806d8719e0,81) at VOP_LOCK+0xf0 vn_lock(fffffd806d8719e0,81) at vn_lock+0x81 uvn_io(fffffd806dc7e5a8,ffff800020b26cb8,1,2,0) at uvn_io+0x2c8 uvn_get(fffffd806dc7e5a8,3000,ffff800020b26f10,ffff800020b26ea4,0,5) at uvn_get+0x226 uvm_fault(fffffd806e7cb738,20003000,2,5) at uvm_fault+0x11cc uvm_fault_wire(fffffd806e7cb738,20003000,20013000,5) at uvm_fault_wire+0x70 uvm_map_pageable_wire(fffffd806e7cb738,fffffd806b84fc00,fffffd807cbf3e78,0,0,0) at uvm_map_pageable_wire+0x2dd sys_mlock(ffff800020a5e770,ffff800020b27108,ffff800020b27150) at sys_mlock+0x185 syscall(ffff800020b271d0) at syscall+0x4a4 Xsyscall(6,0,5d9cd7321e0,0,5d9cd7321c0,5d9cd7321b8) at Xsyscall+0x128 end of kernel end trace frame: 0x5dc160162a0, count: -14 ddb{0}> show registers rdi 0x3 rsi 0xffffffff82479580 __sancov_gen_cov_switch_values.122 rbp 0xffff800020b26930 rbx 0x3 rdx 0x8b rcx 0x3 rax 0x3 r8 0xffffffff812b0b72 witness_checkorder+0xfe2 r9 0x5 r10 0x9b3883c98bf1dc0c r11 0xaed6a379bfeb3991 r12 0xfffffd80029c0200 r13 0 r14 0xffffffff825be880 w_lodata+0x4faa0 r15 0xffffffff825c4080 w_lodata+0x552a0 rip 0xffffffff81923338 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b26920 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor2309) pid=92942 stat=onproc flags process=2 proc=4000000 pri=52, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5fb30,0xffff800020a5f3d8 process=0xffff800020a8a710 user=0xffff800020b22000, vmspace=0xfffffd806e7cb738 estcpu=2, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 24189 78845 65773 0 7 0x2 syz-executor2309 24189 491615 65773 0 3 0x4000002 inode syz-executor2309 24189 346024 65773 0 3 0x4000002 biowait syz-executor2309 24189 201471 65773 0 2 0x4000002 syz-executor2309 24189 432842 65773 0 3 0x4000002 inode syz-executor2309 24189 466950 65773 0 2 0x4000002 syz-executor2309 *24189 92942 65773 0 7 0x4000002 syz-executor2309 24189 61955 65773 0 2 0x4000082 syz-executor2309 65773 314087 13572 0 3 0x10008a pause ksh 13572 226134 24352 0 3 0x92 select sshd 51878 172005 1 0 3 0x100083 ttyin getty 24352 400519 1 0 3 0x80 select sshd 52960 208254 9822 74 3 0x100092 bpf pflogd 9822 469441 1 0 3 0x80 netio pflogd 65499 480650 43571 73 3 0x100090 kqread syslogd 43571 198626 1 0 3 0x100082 netio syslogd 55320 252146 1 77 3 0x100090 poll dhclient 21866 460411 1 0 3 0x80 poll dhclient 27885 354852 0 0 3 0x14200 pgzero zerothread 2300 426143 0 0 3 0x14200 aiodoned aiodoned 43772 173797 0 0 3 0x14200 syncer update 96707 209906 0 0 3 0x14200 cleaner cleaner 61054 62293 0 0 3 0x14200 reaper reaper 64436 515818 0 0 3 0x14200 pgdaemon pagedaemon 95969 340055 0 0 3 0x14200 bored crynlk 54452 341928 0 0 3 0x14200 bored crypto 16400 238009 0 0 3 0x40014200 acpi0 acpi0 29715 230754 0 0 3 0x40014200 idle1 23473 327010 0 0 3 0x14200 bored softnet 31004 395419 0 0 3 0x14200 bored systqmp 48735 309653 0 0 3 0x14200 bored systq 27928 336653 0 0 3 0x40014200 bored softclock 27598 370658 0 0 3 0x40014200 idle0 86477 51086 0 0 3 0x14200 bored smr 1 519316 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 24189 (syz-executor2309) thread 0xffff800020ac18c0 (491615) exclusive rrwlock inode r = 0 (0xfffffd806eae4f78) #0 witness_lock+0x52e #1 rw_enter+0x447 #2 rrw_enter+0x4f #3 VOP_LOCK+0xf0 #4 vn_lock+0x81 #5 vfs_lookup+0xe6 #6 namei+0x63c #7 vn_open+0x144 #8 doopenat+0x28e #9 syscall+0x4a4 #10 Xsyscall+0x128 Process 24189 (syz-executor2309) thread 0xffff800020ac0010 (346024) exclusive rrwlock inode r = 0 (0xfffffd806d870a38) #0 witness_lock+0x52e #1 rw_enter+0x447 #2 rrw_enter+0x4f #3 VOP_LOCK+0xf0 #4 vn_lock+0x81 #5 vn_write+0x11b #6 dofilewritev+0x1b7 #7 sys_pwrite+0x8f #8 syscall+0x4a4 #9 Xsyscall+0x128 Process 24189 (syz-executor2309) thread 0xffff800020a5e770 (92942) shared rwlock vmmaplk r = 0 (0xfffffd806e7cb750) #0 witness_lock+0x52e #1 rw_enter+0x447 #2 vm_map_lock_ln+0x10d #3 uvm_map_pageable+0x11d #4 sys_mlock+0x185 #5 syscall+0x4a4 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826668e0) #0 witness_lock+0x52e #1 syscall+0x400 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9452 6383K 6384K 78643K 10539 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 61 2K 2K 78643K 125 0 0 ifaddr 25 7K 7K 78643K 26 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1467 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1181 74K 74K 78643K 1186 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 8 0K 0K 78643K 8 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 59 63K 71K 78643K 344 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 179 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 68 4K 4K 78643K 816 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 4 0K 0K 78643K 4 0 0 temp 39 3540K 3604K 78643K 2002 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 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 15 0 13 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 264 5 0 5 1 0 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpcb 544 8 0 5 1 0 1 1 0 8 0 inpcb 280 29 0 23 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 8 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 0 1 0 1 1 0 8 0 pfstate 328 8 0 0 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 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 semapl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1400 0 16 45 0 45 45 0 8 0 ffsino 272 1400 0 16 93 0 93 93 0 8 0 nchpl 144 1588 0 44 58 0 58 58 0 8 0 uvmvnodes 72 1410 0 0 26 0 26 26 0 8 0 vnodes 208 1410 0 0 75 0 75 75 0 8 0 namei 1024 3767 0 3765 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 4824 0 4823 8 1 7 7 0 8 6 plimitpl 152 14 0 8 1 0 1 1 0 8 0 sigapl 432 205 0 193 2 0 2 2 0 8 0 futexpl 56 29 0 29 1 0 1 1 0 8 1 knotepl 112 5 0 0 1 0 1 1 0 8 0 kqueuepl 104 3 0 0 1 0 1 1 0 8 0 pipepl 112 134 0 127 2 1 1 1 0 8 0 fdescpl 488 206 0 193 3 0 3 3 0 8 0 filepl 152 994 0 940 3 0 3 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 52 0 43 1 0 1 1 0 8 0 zombiepl 144 193 0 193 2 1 1 1 0 8 1 processpl 896 221 0 193 4 0 4 4 0 8 0 procpl 632 228 0 193 3 0 3 3 0 8 0 sockpl 384 73 0 55 2 0 2 2 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 89 0 0 12 0 12 12 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 122 0 0 8 0 8 8 0 8 0 bufpl 256 3282 0 278 188 0 188 188 0 8 0 anonpl 16 23290 0 17933 24 2 22 22 0 124 0 amapchunkpl 152 602 0 488 5 0 5 5 0 158 0 amappl16 192 274 0 78 10 0 10 10 0 8 0 amappl14 176 15 0 14 2 1 1 1 0 8 0 amappl13 168 1 0 0 1 0 1 1 0 8 0 amappl12 160 3 0 3 1 1 0 1 0 8 0 amappl11 152 49 0 34 1 0 1 1 0 8 0 amappl10 144 3 0 1 1 0 1 1 0 8 0 amappl9 136 446 0 442 1 0 1 1 0 8 0 amappl8 128 100 0 95 1 0 1 1 0 8 0 amappl7 120 18 0 17 1 0 1 1 0 8 0 amappl6 112 60 0 54 1 0 1 1 0 8 0 amappl5 104 133 0 120 1 0 1 1 0 8 0 amappl4 96 471 0 442 1 0 1 1 0 8 0 amappl3 88 101 0 95 1 0 1 1 0 8 0 amappl2 80 831 0 770 3 1 2 2 0 8 0 amappl1 72 13803 0 13366 15 5 10 15 0 8 0 amappl 80 420 0 390 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 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 206 0 193 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 206 0 193 1 0 1 1 0 8 0 vmmpekpl 168 5579 0 5558 1 0 1 1 0 8 0 vmmpepl 168 29505 0 28419 56 8 48 48 0 357 0 vmsppl 368 205 0 193 2 0 2 2 0 8 0 pdppl 4096 419 0 386 5 0 5 5 0 8 0 pvpl 32 84083 0 76944 62 4 58 58 0 265 0 pmappl 232 205 0 193 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 326 0 4 10 0 10 10 0 8 0