witness: lock_object uninitialized: 0xffff800000cf1028 Starting stack trace... witness_checkorder(ffff800000cf1028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000cf1028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000cf1018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff80000Stopped 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:440 witness_checkorder(ffff800000cf1028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000cf1028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000cf1018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000cf1000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000cf1000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000ffffadc0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000260d42b0,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000260d42b0,ffff800023cd4b70,ffff800023cd4bd0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800023cd4c40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023cd4c40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeb670, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800023cd4910 rbx 0x3 rdx 0 rcx 0x61bc __ALIGN_SIZE+0x51bc rax 0xffff8000260d42b0 r8 0xffff800023cd48b0 r9 0x8080808080808080 r10 0xa78afbc32edf8ba8 r11 0x3dc2630af5fa42f6 r12 0xffff800000cf1001 r13 0xffff800000cf1028 r14 0 r15 0 rip 0xffffffff81410c88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023cd4900 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.2) pid=100240 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000260d4550,0xffff8000260d4020 process=0xffff8000ffffadc0 user=0xffff800023ccf000, vmspace=0xfffffd8067ded740 estcpu=36, cpticks=6, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 9771 283101 30344 0 2 0 syz-executor.3 9771 403919 30344 0 3 0x4000080 fsleep syz-executor.3 28749 264019 75026 0 2 0 syz-executor.0 28749 461524 75026 0 3 0x4000080 kqread syz-executor.0 28749 114443 75026 0 2 0x4000000 syz-executor.0 75026 39247 10633 0 2 0x482 syz-executor.0 18266 64354 0 0 3 0x14200 acct acct 77413 260373 10633 0 2 0x482 syz-executor.2 65110 73563 0 0 3 0x14280 nfsidl nfsio 67630 269877 0 0 3 0x14280 nfsidl nfsio 87328 260034 0 0 3 0x14280 nfsidl nfsio 15525 15861 0 0 3 0x14280 nfsidl nfsio 37437 342798 0 0 3 0x14280 nfsidl nfsio 50942 503219 0 0 3 0x14280 nfsidl nfsio 23106 128578 0 0 3 0x14280 nfsidl nfsio 59188 223837 0 0 3 0x14280 nfsidl nfsio 51352 250106 0 0 3 0x14280 nfsidl nfsio 14780 181057 0 0 3 0x14280 nfsidl nfsio 96731 227593 0 0 3 0x14280 nfsidl nfsio 92634 421467 0 0 3 0x14280 nfsidl nfsio 72649 97710 0 0 3 0x14280 nfsidl nfsio 22838 32122 0 0 3 0x14280 nfsidl nfsio 73177 239430 0 0 3 0x14280 nfsidl nfsio 19564 231575 0 0 3 0x14280 nfsidl nfsio 95919 80414 0 0 3 0x14280 nfsidl nfsio 45459 312460 0 0 3 0x14280 nfsidl nfsio 55265 129874 0 0 3 0x14280 nfsidl nfsio 73109 490402 0 0 3 0x14280 nfsidl nfsio 50271 213984 10633 0 2 0x482 syz-executor.1 30344 84354 10633 0 2 0x482 syz-executor.3 53633 516921 0 0 3 0x14200 bored sosplice 10633 475479 39068 0 3 0x82 thrsleep syz-fuzzer 10633 378731 39068 0 3 0x4000082 thrsleep syz-fuzzer 10633 44572 39068 0 3 0x4000082 thrsleep syz-fuzzer 10633 519834 39068 0 3 0x4000082 thrsleep syz-fuzzer 10633 404713 39068 0 3 0x4000082 thrsleep syz-fuzzer 10633 25311 39068 0 3 0x4000082 thrsleep syz-fuzzer 10633 80204 39068 0 3 0x4000082 thrsleep syz-fuzzer 10633 487389 39068 0 3 0x4000082 kqread syz-fuzzer 39068 348996 42566 0 3 0x10008a sigsusp ksh 42566 438650 47017 0 3 0x9a poll sshd 67678 60342 1 0 3 0x100083 ttyin getty 47017 344629 1 0 3 0x88 poll sshd 62985 167615 68237 74 3 0x100092 bpf pflogd 68237 420150 1 0 3 0x80 netio pflogd 84709 241183 39288 73 2 0x100090 syslogd 39288 189142 1 0 3 0x100082 netio syslogd 52096 2444 1 0 3 0x100080 kqread resolvd 49395 104104 59839 77 3 0x100092 kqread dhcpleased 27549 399899 59839 77 3 0x100092 kqread dhcpleased 59839 72676 1 0 3 0x80 kqread dhcpleased 41957 458268 0 0 3 0x14200 bored smr 58033 249824 0 0 2 0x14200 zerothread 76027 110621 0 0 3 0x14200 aiodoned aiodoned 49408 288688 0 0 3 0x14200 syncer update 41225 448528 0 0 3 0x14200 cleaner cleaner 64296 192855 0 0 3 0x14200 reaper reaper 27056 94629 0 0 3 0x14200 pgdaemon pagedaemon 18109 226124 0 0 3 0x14200 bored viomb 45694 148351 0 0 3 0x40014200 acpi0 acpi0 49880 188830 0 0 7 0x40014200 idle1 76149 12946 0 0 3 0x14200 bored softnet 14644 126540 0 0 3 0x14200 bored systqmp 49947 166610 0 0 3 0x14200 bored systq 76573 44838 0 0 2 0x40014200 softclock 35200 297478 0 0 3 0x40014200 idle0 1 9879 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 28749 (syz-executor.0) thread 0xffff8000260d4550 (114443) exclusive rrwlock inode r = 0 (0xfffffd80754d2e78) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:579 #5 vget+0x1d3 sys/kern/vfs_subr.c:677 #6 cache_lookup+0x2b4 sys/kern/vfs_cache.c:224 #7 ufs_lookup+0x1ac sys/ufs/ufs/ufs_lookup.c:162 #8 VOP_LOOKUP+0x58 sys/kern/vfs_vops.c:85 #9 vfs_lookup+0x6e5 sys/kern/vfs_lookup.c:561 #10 namei+0x36a sys/kern/vfs_lookup.c:245 #11 ptm_vn_open+0x37 sys/kern/tty_pty.c:1063 #12 ptmioctl+0x637 sys/kern/tty_pty.c:1230 #13 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #14 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #15 sys_ioctl+0x4a2 #16 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #16 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #17 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10212 6495K 7027K 78643K 23523 0 pcb 13 16K 21K 78643K 3882 0 rtable 150 19K 21K 78643K 6787 0 ifaddr 77 20K 23K 78643K 4738 0 sysctl 2 0K 0K 78643K 4 0 counters 48 34K 35K 78643K 290 0 ioctlops 0 0K 8K 78643K 7884 0 iov 0 0K 20K 78643K 2584 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1554 98K 98K 78643K 10807 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 93 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 3834 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 8 25K 49K 78643K 12942 0 sigio 0 0K 0K 78643K 72 0 proc 77 111K 111K 78643K 1301 0 subproc 52 3K 3K 78643K 366 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 241 0 in_multi 46 3K 4K 78643K 690 0 ether_multi 1 0K 0K 78643K 73 0 mrt 0 0K 0K 78643K 21 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 253 1129K 1129K 78643K 253 0 exec 0 0K 2K 78643K 1511 0 tdb 3 0K 0K 78643K 3 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 346 159K 175K 78643K 164109 0 UVM aobj 131 4K 4K 78643K 137 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1085 0 NDP 9 0K 1K 78643K 231 0 temp 118 4234K 8310K 78643K 65659 0 kqueue 10 14K 21K 78643K 298 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 1650 0 1647 13 12 1 3 0 8 0 rtentry 112 566 0 517 3 0 3 3 0 8 0 unpcb 136 17291 0 17276 83 82 1 9 0 8 0 syncache 296 24 0 24 7 7 0 1 0 8 0 tcpqe 32 88 0 88 3 3 0 1 0 8 0 tcpcb 736 5876 0 5872 141 134 7 24 0 8 6 arp 120 101 0 93 1 0 1 1 0 8 0 inpcb 304 24452 0 24445 191 185 6 16 0 8 5 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 133 0 123 1 0 1 1 0 8 0 pkpcb 40 114 0 114 4 4 0 1 0 8 0 kcovpl 48 28 0 24 1 0 1 1 0 8 0 ppxss 1248 33 0 33 7 7 0 1 0 8 0 pfstscr 40 22 0 22 6 6 0 1 0 8 0 pffrag 232 19 0 19 5 5 0 1 0 482 0 pffrnode 88 19 0 19 5 5 0 1 0 8 0 pffrent 40 176 0 176 5 5 0 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 2547 0 2534 6 4 2 2 0 8 0 pftag 88 34 0 34 5 5 0 1 0 8 0 pfstitem 24 45 0 43 1 0 1 1 0 8 0 pfstkey 112 95 0 93 1 0 1 1 0 8 0 pfstate 320 69 0 67 2 1 1 2 0 8 0 pfrule 1360 5127 0 5044 10 2 8 8 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2131 0 1932 24 8 16 18 0 8 0 art_table 32 2132 0 1932 3 0 3 3 0 8 0 art_node 16 565 0 523 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 10 1 0 1 1 0 8 0 semapl 112 3832 0 3822 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 22772 0 21357 89 0 89 89 0 8 0 ffsino 272 22772 0 21357 96 1 95 95 0 8 0 nchpl 144 39604 0 38007 61 0 61 61 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 145878 0 145878 5 4 1 2 0 8 1 percpumem 16 157 0 121 1 0 1 1 0 8 0 vcpupl 2048 6 0 0 1 0 1 1 0 8 0 vmpool 560 24 0 18 2 1 1 1 0 8 0 pfiaddrpl 120 174 0 158 3 2 1 1 0 8 0 scsiplug 72 9 0 9 2 2 0 1 0 8 0 scxspl 216 97233 0 97233 21 20 1 8 0 8 1 plimitpl 152 1265 0 1254 1 0 1 1 0 8 0 sigapl 424 13131 0 13073 7 0 7 7 0 8 0 futexpl 64 150446 0 150445 2 1 1 1 0 8 0 knotepl 112 117 0 0 3 0 3 3 0 8 0 kqueuepl 216 1305 0 1293 29 28 1 5 0 8 0 pipepl 336 1640 0 1624 45 43 2 7 0 8 0 fdescpl 496 13094 0 13073 5 2 3 4 0 8 0 filepl 152 123568 0 123410 171 162 9 20 0 8 2 lockfpl 104 1696 0 1694 3 2 1 2 0 8 0 lockfspl 48 522 0 520 1 0 1 1 0 8 0 sessionpl 144 44 0 31 1 0 1 1 0 8 0 pgrppl 48 128 0 115 1 0 1 1 0 8 0 ucredpl 96 30739 0 30726 1 0 1 1 0 8 0 zombiepl 144 15373 0 15371 1 0 1 1 0 8 0 processpl 1064 13131 0 13072 4 0 4 4 0 8 0 procpl 672 36081 0 36012 24 17 7 7 0 8 0 srpgc 96 32 0 32 8 8 0 1 0 8 0 sosppl 168 592 0 592 28 27 1 1 0 8 1 sockpl 480 43528 0 43503 615 603 12 46 0 8 8 mcl64k 65536 21 0 0 3 0 3 3 0 8 0 mcl16k 16384 30 0 0 4 1 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 27 0 0 4 2 2 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 244 0 0 18 4 14 18 0 8 0 mtagpl 96 681 0 0 7 0 7 7 0 8 0 mbufpl 256 7949 0 0 450 0 450 450 0 8 0 bufpl 288 21881 0 15537 454 0 454 454 0 8 0 anonpl 24 3554450 0 3536387 155 40 115 135 0 186 0 amapchunkpl 152 409824 0 409045 125 83 42 52 0 158 10 amappl16 200 28050 0 27495 63 32 31 42 0 8 1 amappl15 192 3068 0 3065 1 0 1 1 0 8 0 amappl14 184 91 0 91 5 5 0 1 0 8 0 amappl13 176 1620 0 1619 1 0 1 1 0 8 0 amappl12 168 350 0 346 1 0 1 1 0 8 0 amappl11 160 1512 0 1496 1 0 1 1 0 8 0 amappl10 152 298 0 289 1 0 1 1 0 8 0 amappl9 144 5158 0 5154 1 0 1 1 0 8 0 amappl8 136 2336 0 2255 3 0 3 3 0 8 0 amappl7 128 1569 0 1559 1 0 1 1 0 8 0 amappl6 120 4989 0 4969 1 0 1 1 0 8 0 amappl5 112 12860 0 12839 1 0 1 1 0 8 0 amappl4 104 3975 0 3949 1 0 1 1 0 8 0 amappl3 96 2250 0 2232 1 0 1 1 0 8 0 amappl2 88 2910 0 2863 6 4 2 2 0 8 0 amappl1 80 235539 0 235032 15 4 11 13 0 8 0 amappl 88 163226 0 162994 6 0 6 6 0 92 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 72 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 13118 0 13090 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13118 0 13090 1 0 1 1 0 8 0 vmmpekpl 168 87985 0 87944 3 0 3 3 0 8 0 vmmpepl 168 1176844 0 1174676 276 172 104 122 0 357 0 vmsppl 368 13117 0 13090 3 0 3 3 0 8 0 rwobjpl 56 285009 0 277480 113 6 107 109 0 8 0 pdppl 4096 26244 0 26186 107 47 60 62 0 8 2 pvpl 32 5870812 0 5849167 287 104 183 214 0 265 2 pmappl 248 13117 0 13090 2 0 2 2 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1464 0 248 35 0 35 35 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:440 witness_checkorder(ffff800000cf1028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000cf1028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000cf1018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000cf1000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000cf1000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000ffffadc0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000260d42b0,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000260d42b0,ffff800023cd4b70,ffff800023cd4bd0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800023cd4c40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023cd4c40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeb670, count: -9 ddb{0}> machine ddbcpu 1 0cf1000) at unveStil_delete_names+0x30 unveil_destoroy(ffff8000ffpffadc0) at unveipl_destroy+0xade exit1(ffff80002d60d42b0,0,0,1) at exit1+0x3d5 asys_exit(ffff800t0260d42b0,ffff800023cd4b70,ffff8 00023cd4bd0) at sys_exit+0x16 syscall(ffff8000 23cd4c40) at sys call+0x489 Xsyxscall() at Xsysc8all+0x128 end 6of kernel end trace frame: 0x7_if7ffffeb670, coupnt: 249 End ofi stack trace. _db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5