witness: lock_object uninitialized: 0xffff800000ca5028 Starting stack trace... witness_checkorder(ffff800000ca5028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000ca5028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000ca5018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000ca5000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000ca5000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f31f0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000211b7cf0,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff8000211b7cf0,0,0) at single_thread_check_locked+0x227 sys/kern/kern_sig.c:1958 userret(ffff8000211b7cf0) at userret+0x224 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff8000211b7cf0) at userret+0x224 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffed720, count: 249 End of stack trace. Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffff800000ca5028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000ca5028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000ca5018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000ca5000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000ca5000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f31f0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000211b7cf0,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff8000211b7cf0,0,0) at single_thread_check_locked+0x227 sys/kern/kern_sig.c:1958 userret(ffff8000211b7cf0) at userret+0x224 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff8000211b7cf0) at userret+0x224 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffed720, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff8000246ba950 rbx 0x3 rdx 0 rcx 0 rax 0xffff8000211b7cf0 r8 0xffff8000246ba8f0 r9 0x8080808080808080 r10 0xae84d2bec43c0c8 r11 0x73fd36b852432f1c r12 0xffff800000ca5001 r13 0xffff800000ca5028 r14 0 r15 0 rip 0xffffffff820ea248 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000246ba940 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=223378 stat=onproc flags process=1008 proc=82000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000211ef500,0xffff8000211b7a60 process=0xffff8000211f31f0 user=0xffff8000246b5000, vmspace=0xfffffd8067f1b8b8 estcpu=36, cpticks=11, pctcpu=0.0 user=0, sys=8, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 73144 298639 59076 0 2 0 syz-executor.2 29622 521444 96238 0 3 0x2 biowait syz-executor.3 59076 349130 96238 0 3 0x82 nanoslp syz-executor.2 809 380566 0 0 3 0x14200 bored sosplice 79066 117036 96238 0 3 0x82 nanoslp syz-executor.1 96238 246454 8700 0 3 0x82 thrsleep syz-fuzzer 96238 47498 8700 0 3 0x4000082 nanoslp syz-fuzzer 96238 460690 8700 0 3 0x4000082 nanoslp syz-fuzzer 96238 324011 8700 0 3 0x4000082 thrsleep syz-fuzzer 96238 123472 8700 0 3 0x4000082 thrsleep syz-fuzzer 96238 53129 8700 0 3 0x4000082 thrsleep syz-fuzzer 96238 421840 8700 0 3 0x4000082 kqread syz-fuzzer 96238 121332 8700 0 3 0x4000082 thrsleep syz-fuzzer 8700 173884 61570 0 3 0x10008a sigsusp ksh 61570 111473 70723 0 3 0x9a poll sshd 47182 479690 1 0 3 0x100083 ttyin getty 70723 103954 1 0 3 0x88 poll sshd 10129 271299 75646 74 3 0x100092 bpf pflogd 75646 270559 1 0 3 0x80 netio pflogd 27787 142092 70854 73 3 0x100090 kqread syslogd 70854 211 1 0 3 0x100082 netio syslogd 33186 197535 1 0 3 0x100080 kqread resolvd 88691 137811 93195 77 3 0x100092 kqread dhcpleased 88258 446379 93195 77 3 0x100092 kqread dhcpleased 93195 112507 1 0 3 0x80 kqread dhcpleased 61571 456717 0 0 3 0x14200 bored smr 73268 334098 0 0 2 0x14200 zerothread 64492 150432 0 0 3 0x14200 aiodoned aiodoned 89634 296337 0 0 3 0x14200 syncer update 48876 331557 0 0 3 0x14200 cleaner cleaner 94882 205759 0 0 7 0x14200 reaper 66956 126374 0 0 3 0x14200 pgdaemon pagedaemon 84178 71387 0 0 3 0x14200 bored viomb 29801 193189 0 0 3 0x40014200 acpi0 acpi0 10640 424360 0 0 3 0x40014200 idle1 83213 330980 0 0 3 0x14200 bored softnet 59407 237477 0 0 3 0x14200 bored systqmp 83718 497103 0 0 3 0x14200 bored systq 60158 57498 0 0 3 0x40014200 bored softclock 65794 142496 0 0 3 0x40014200 idle0 1 71842 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 29622 (syz-executor.3) thread 0xffff8000211ef500 (521444) exclusive rrwlock inode r = 0 (0xfffffd8073f85d60) #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 ufs_ihashins+0x42 sys/ufs/ufs/ufs_ihash.c:140 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1347 #6 ffs_inode_alloc+0x1be sys/ufs/ffs/ffs_alloc.c:394 #7 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #8 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404 #9 domkdirat+0x121 sys/kern/vfs_syscalls.c:3100 #10 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8065dfd1b0) #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 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413 #6 namei+0x36a sys/kern/vfs_lookup.c:245 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3085 #8 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10190 6475K 6920K 78643K 14418 0 pcb 13 15K 17K 78643K 276 0 rtable 117 9K 10K 78643K 632 0 ifaddr 57 13K 15K 78643K 273 0 sysctl 2 0K 0K 78643K 2 0 counters 46 34K 34K 78643K 106 0 ioctlops 0 0K 4K 78643K 1846 0 iov 0 0K 16K 78643K 177 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1324 83K 83K 78643K 3091 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 30 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 239 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 7 21K 49K 78643K 2052 0 sigio 0 0K 0K 78643K 84 0 proc 74 111K 124K 78643K 580 0 subproc 52 3K 3K 78643K 117 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 670 0 in_multi 30 2K 4K 78643K 302 0 ether_multi 1 0K 0K 78643K 26 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 223 996K 996K 78643K 223 0 exec 0 0K 2K 78643K 783 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 274 181K 196K 78643K 27881 0 UVM aobj 97 4K 4K 78643K 97 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 113 0 NDP 8 0K 1K 78643K 91 0 temp 100 4203K 4280K 78643K 16601 0 kqueue 10 14K 24K 78643K 129 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 208 0 205 4 3 1 3 0 8 0 rtentry 112 167 0 132 3 1 2 3 0 8 0 unpcb 136 1695 0 1680 27 26 1 8 0 8 0 syncache 296 8 0 8 3 3 0 1 0 8 0 tcpqe 32 4 0 4 2 2 0 1 0 8 0 tcpcb 736 1873 0 1864 58 51 7 16 0 8 6 arp 120 20 0 14 1 0 1 1 0 8 0 inpcb 304 2980 0 2973 40 36 4 11 0 8 3 nd6 48 64 0 58 1 0 1 1 0 8 0 pkpcb 40 12 0 12 3 3 0 1 0 8 0 kcovpl 48 9 0 5 1 0 1 1 0 8 0 ppxss 1248 18 0 18 1 1 0 1 0 8 0 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pffrag 232 76 0 75 1 0 1 1 0 482 0 pffrnode 88 76 0 75 1 0 1 1 0 8 0 pffrent 40 3059 0 3058 1 0 1 1 0 8 0 pfosfp 40 1428 0 1428 5 0 5 5 0 8 5 pfosfpen 112 1428 0 1428 21 0 21 21 0 8 21 pfrktable 1344 56 0 45 1 0 1 1 0 8 0 pftag 88 11 0 10 2 1 1 1 0 8 0 pfstitem 24 38 0 24 1 0 1 1 0 8 0 pfstkey 112 46 0 32 1 0 1 1 0 8 0 pfstate 320 42 0 28 3 1 2 3 0 8 0 pfrule 1360 173 0 154 5 3 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 509 0 359 18 5 13 18 0 8 1 art_table 32 510 0 359 3 1 2 3 0 8 0 art_node 16 159 0 130 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 237 0 227 1 0 1 1 0 8 0 shmpl 112 94 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4804 0 3389 89 0 89 89 0 8 0 ffsino 272 4804 0 3389 95 0 95 95 0 8 0 nchpl 144 7933 0 6338 61 0 61 61 0 8 0 uvmvnodes 80 5652 0 0 116 0 116 116 0 8 0 vnodes 224 5652 0 0 333 0 333 333 0 8 0 namei 1024 27220 0 27219 1 0 1 1 0 8 0 percpumem 16 65 0 30 1 0 1 1 0 8 0 vcpupl 2048 11 0 0 2 0 2 2 0 8 0 vmpool 560 11 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 24 0 12 1 0 1 1 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 19954 0 19953 9 8 1 8 0 8 0 plimitpl 152 336 0 325 1 0 1 1 0 8 0 sigapl 424 2305 0 2269 7 0 7 7 0 8 1 futexpl 64 17290 0 17290 2 1 1 1 0 8 1 knotepl 112 103 0 0 3 0 3 3 0 8 0 kqueuepl 216 765 0 759 15 12 3 8 0 8 2 pipepl 336 460 0 445 7 5 2 7 0 8 0 fdescpl 496 2270 0 2250 4 1 3 4 0 8 0 filepl 152 18534 0 18386 40 29 11 16 0 8 5 lockfpl 104 696 0 694 2 1 1 2 0 8 0 lockfspl 48 275 0 273 1 0 1 1 0 8 0 sessionpl 144 25 0 12 1 0 1 1 0 8 0 pgrppl 48 59 0 46 1 0 1 1 0 8 0 ucredpl 96 4296 0 4283 1 0 1 1 0 8 0 zombiepl 144 2507 0 2505 1 0 1 1 0 8 0 processpl 1064 2305 0 2269 4 0 4 4 0 8 1 procpl 672 6411 0 6367 13 6 7 8 0 8 2 srpgc 96 8 0 8 2 1 1 1 0 8 1 sosppl 168 18 0 18 3 3 0 1 0 8 0 sockpl 480 4899 0 4874 109 99 10 33 0 8 6 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 19 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 1 mcl4k 4096 19 0 0 3 1 2 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 200 0 0 20 0 20 20 0 8 0 mtagpl 96 257 0 0 7 0 7 7 0 8 0 mbufpl 256 1500 0 0 93 0 93 93 0 8 0 bufpl 288 6775 0 431 454 0 454 454 0 8 0 anonpl 24 653869 0 637357 191 53 138 146 0 186 14 amapchunkpl 152 68961 0 68213 54 18 36 44 0 158 3 amappl16 200 7507 0 6884 81 47 34 45 0 8 0 amappl15 192 645 0 644 1 0 1 1 0 8 0 amappl14 184 4 0 3 2 1 1 1 0 8 0 amappl13 176 518 0 516 1 0 1 1 0 8 0 amappl12 168 24 0 20 1 0 1 1 0 8 0 amappl11 160 49 0 34 1 0 1 1 0 8 0 amappl10 152 562 0 551 1 0 1 1 0 8 0 amappl9 144 603 0 600 1 0 1 1 0 8 0 amappl8 136 740 0 686 2 0 2 2 0 8 0 amappl7 128 331 0 318 1 0 1 1 0 8 0 amappl6 120 310 0 293 1 0 1 1 0 8 0 amappl5 112 2669 0 2648 1 0 1 1 0 8 0 amappl4 104 760 0 736 1 0 1 1 0 8 0 amappl3 96 319 0 303 1 0 1 1 0 8 0 amappl2 88 971 0 930 2 1 1 2 0 8 0 amappl1 80 44330 0 43854 13 1 12 13 0 8 0 amappl 88 27385 0 27195 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 96 0 0 2 0 2 2 0 8 0 uaddrrnd 24 2281 0 2249 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2281 0 2249 1 0 1 1 0 8 0 vmmpekpl 168 21503 0 21462 3 0 3 3 0 8 0 vmmpepl 168 212779 0 210696 179 60 119 136 0 357 18 vmsppl 368 2280 0 2249 4 0 4 4 0 8 0 rwobjpl 56 60325 0 53114 106 3 103 103 0 8 0 pdppl 4096 4570 0 4509 106 41 65 65 0 8 4 pvpl 32 1127706 0 1109593 274 69 205 212 0 265 26 pmappl 248 2280 0 2249 3 0 3 3 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 968 0 108 25 0 25 25 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82829ff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 kd_curproc sys/dev/kcov.c:571 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 sys/dev/kcov.c:143 __mp_lock(ffffffff82969998) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82969998) at __mp_lock+0x133 sys/kern/kern_lock.c:147 intr_handler(ffff800021185b80,ffff800000077500) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 kd_curproc sys/dev/kcov.c:571 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 sys/dev/kcov.c:143 __mp_lock(ffffffff82969998) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82969998) at __mp_lock+0x133 sys/kern/kern_lock.c:147 intr_handler(ffff800021185ce0,ffff80000004ad00) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f __mp_lock(ffffffff82969998) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82969998) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211497a0) at reaper+0x150 sys/kern/kern_exit.c:450 end trace frame: 0x0, count: -13 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffff800000ca5028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000ca5028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000ca5018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000ca5000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000ca5000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f31f0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000211b7cf0,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff8000211b7cf0,0,0) at single_thread_check_locked+0x227 sys/kern/kern_sig.c:1958 userret(ffff8000211b7cf0) at userret+0x224 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff8000211b7cf0) at userret+0x224 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffed720, count: -9