witness: lock_object uninitialized: 0xffff800000ceb028 Starting stack trace... witness_checkorder(ffff800000ceb028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000ceb028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000ceb018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000ceb000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000ceb000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f10b0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000212867e8,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff8000212867e8,0,0) at single_thread_check_locked+0x227 sys/kern/kern_sig.c:1958 userret(ffff8000212867e8) at userret+0x224 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff8000212867e8) at userret+0x224 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffd0490, count: 249 End of stack trace. Stopped at db_enter+0x18: addq $0x8,%rsp 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(ffff800000ceb028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000ceb028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000ceb018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000ceb000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000ceb000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f10b0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000212867e8,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff8000212867e8,0,0) at single_thread_check_locked+0x227 sys/kern/kern_sig.c:1958 userret(ffff8000212867e8) at userret+0x224 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff8000212867e8) at userret+0x224 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffd0490, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800021275350 rbx 0x3 rdx 0 rcx 0 rax 0xffff8000212867e8 r8 0xffff8000212752f0 r9 0x8080808080808080 r10 0x86554f78f230c360 r11 0x574c629409959563 r12 0xffff800000ceb001 r13 0xffff800000ceb028 r14 0 r15 0 rip 0xffffffff81410c88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021275340 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.2) pid=174833 stat=onproc flags process=1008 proc=82000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000212877a8,0xffffffff8283e338 process=0xffff8000211f10b0 user=0xffff800021270000, vmspace=0xfffffd80677c48b0 estcpu=36, cpticks=10, pctcpu=0.0 user=0, sys=8, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15154 262323 22805 0 2 0x480 syz-executor.1 15154 152823 22805 0 3 0x4000080 bell syz-executor.1 80382 227957 4709 0 3 0 futex syz-executor.0 80382 370298 4709 0 3 0x4000080 poll syz-executor.0 80382 302317 4709 0 2 0x4000000 syz-executor.0 80382 48591 4709 0 3 0x4000080 fsleep syz-executor.0 19789 488052 87256 0 2 0 syz-executor.3 19789 402756 87256 0 3 0x4000080 fsleep syz-executor.3 22805 23703 46947 0 2 0x482 syz-executor.1 87256 116149 46947 0 2 0x482 syz-executor.3 24850 64777 0 0 3 0x14200 acct acct 20482 95192 46947 0 2 0x482 syz-executor.2 43630 30417 0 0 3 0x14200 bored sosplice 4709 470004 46947 0 2 0x482 syz-executor.0 46947 271355 12792 0 3 0x82 thrsleep syz-fuzzer 46947 126210 12792 0 3 0x4000082 thrsleep syz-fuzzer 46947 503128 12792 0 3 0x4000082 thrsleep syz-fuzzer 46947 23994 12792 0 3 0x4000082 thrsleep syz-fuzzer 46947 398456 12792 0 3 0x4000082 thrsleep syz-fuzzer 46947 328705 12792 0 3 0x4000082 thrsleep syz-fuzzer 46947 314765 12792 0 3 0x4000082 kqread syz-fuzzer 46947 91520 12792 0 3 0x4000082 thrsleep syz-fuzzer 12792 442436 52632 0 3 0x10008a sigsusp ksh 52632 196864 72324 0 3 0x9a poll sshd 51185 127121 1 0 2 0x100083 getty 72324 383435 1 0 3 0x88 poll sshd 10592 329877 47583 74 3 0x100092 bpf pflogd 47583 364151 1 0 3 0x80 netio pflogd 29744 166641 22207 73 2 0x100090 syslogd 22207 414368 1 0 3 0x100082 netio syslogd 98084 977 1 0 3 0x100080 kqread resolvd 53641 245057 12360 77 3 0x100092 kqread dhcpleased 6378 60392 12360 77 3 0x100092 kqread dhcpleased 12360 195173 1 0 3 0x80 kqread dhcpleased 27481 510989 0 0 3 0x14200 bored smr 95683 132664 0 0 2 0x14200 zerothread 91705 404734 0 0 3 0x14200 aiodoned aiodoned 26445 169947 0 0 3 0x14200 syncer update 52061 184873 0 0 3 0x14200 cleaner cleaner 54494 179859 0 0 7 0x14200 reaper 78989 460337 0 0 3 0x14200 pgdaemon pagedaemon 13491 367092 0 0 3 0x14200 bored viomb 32046 40220 0 0 3 0x40014200 acpi0 acpi0 95104 219988 0 0 3 0x40014200 idle1 36503 14625 0 0 3 0x14200 bored softnet 10341 518172 0 0 3 0x14200 bored systqmp 17122 86633 0 0 3 0x14200 bored systq 26704 507360 0 0 2 0x40014200 softclock 94475 271779 0 0 3 0x40014200 idle0 1 340347 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 80382 (syz-executor.0) thread 0xffff80002123c000 (302317) exclusive rwlock futex r = 0 (0xffffffff827a19e0) #0 witness_lock+0x44d #1 sys_futex+0x5c sys/kern/sys_futex.c:108 #2 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #2 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #3 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10199 6491K 7220K 78643K 15884 0 pcb 13 12K 14K 78643K 594 0 rtable 127 15K 15K 78643K 1749 0 ifaddr 64 14K 14K 78643K 589 0 counters 48 34K 34K 78643K 98 0 ioctlops 0 0K 8K 78643K 3552 0 iov 0 0K 16K 78643K 187 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1355 85K 86K 78643K 2903 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 38 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 572 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 9 29K 49K 78643K 5017 0 sigio 0 0K 0K 78643K 9 0 proc 72 111K 111K 78643K 821 0 subproc 52 3K 3K 78643K 221 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 170 0 in_multi 41 2K 3K 78643K 307 0 ether_multi 1 0K 0K 78643K 42 0 mrt 0 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 241 1076K 1076K 78643K 241 0 exec 0 0K 2K 78643K 940 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 326 86K 86K 78643K 64228 0 UVM aobj 77 8K 8K 78643K 80 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 708 0 NDP 9 0K 0K 78643K 72 0 temp 108 4214K 4281K 78643K 32491 0 kqueue 10 14K 18K 78643K 134 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 214 0 211 3 2 1 3 0 8 0 rtentry 112 244 0 199 2 0 2 2 0 8 0 unpcb 136 4772 0 4757 30 29 1 7 0 8 0 syncache 296 10 0 10 4 3 1 1 0 8 1 tcpqe 32 4 0 4 2 1 1 1 0 8 1 tcpcb 736 1950 0 1945 33 25 8 9 0 8 6 arp 120 40 0 32 1 0 1 1 0 8 0 inpcb 304 4479 0 4471 59 53 6 12 0 8 5 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 60 0 48 1 0 1 1 0 8 0 pkpcb 40 10 0 10 1 1 0 1 0 8 0 kcovpl 48 17 0 13 1 0 1 1 0 8 0 pffrag 232 21 0 18 2 1 1 1 0 482 0 pffrnode 88 21 0 18 2 1 1 1 0 8 0 pffrent 40 312 0 309 2 1 1 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 492 0 486 1 0 1 1 0 8 0 pftag 88 6 0 4 1 0 1 1 0 8 0 pfstitem 24 11 0 9 1 0 1 1 0 8 0 pfstkey 112 11 0 9 1 0 1 1 0 8 0 pfstate 320 11 0 9 1 0 1 1 0 8 0 pfrule 1360 1608 0 1400 19 1 18 18 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1031 0 813 21 7 14 18 0 8 0 art_table 32 1032 0 813 3 0 3 3 0 8 0 art_node 16 243 0 203 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 7 1 0 1 1 0 8 0 semapl 112 570 0 560 1 0 1 1 0 8 0 shmpl 112 77 0 3 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 7071 0 5650 89 0 89 89 0 8 0 ffsino 272 7071 0 5650 95 0 95 95 0 8 0 nchpl 144 13163 0 11558 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 40381 0 40381 3 2 1 1 0 8 1 percpumem 16 61 0 25 1 0 1 1 0 8 0 vcpupl 2048 5 0 0 1 0 1 1 0 8 0 vmpool 560 21 0 16 4 3 1 1 0 8 0 pfiaddrpl 120 144 0 136 2 1 1 1 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 39246 0 39246 12 11 1 8 0 8 1 plimitpl 152 165 0 154 1 0 1 1 0 8 0 sigapl 424 5218 0 5179 5 0 5 5 0 8 0 futexpl 64 35794 0 35791 1 0 1 1 0 8 0 knotepl 112 94 0 0 4 1 3 3 0 8 0 kqueuepl 216 881 0 875 18 14 4 4 0 8 3 pipepl 336 869 0 853 30 28 2 7 0 8 0 fdescpl 496 5202 0 5180 4 1 3 4 0 8 0 filepl 152 28104 0 27952 59 48 11 16 0 8 5 lockfpl 104 891 0 889 2 1 1 2 0 8 0 lockfspl 48 287 0 285 1 0 1 1 0 8 0 sessionpl 144 33 0 20 1 0 1 1 0 8 0 pgrppl 48 40 0 27 1 0 1 1 0 8 0 ucredpl 96 2563 0 2551 1 0 1 1 0 8 0 zombiepl 144 5905 0 5904 1 0 1 1 0 8 0 processpl 1064 5218 0 5179 3 0 3 3 0 8 0 procpl 672 13954 0 13902 9 4 5 6 0 8 0 srpgc 96 20 0 20 3 3 0 1 0 8 0 sosppl 168 47 0 47 8 8 0 1 0 8 0 sockpl 480 9478 0 9452 125 113 12 24 0 8 8 mcl64k 65536 18 0 0 3 1 2 3 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 29 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 203 0 0 20 0 20 20 0 8 0 mtagpl 96 253 0 0 5 0 5 5 0 8 0 mbufpl 256 928 0 0 58 0 58 58 0 8 0 bufpl 288 10802 0 4458 454 0 454 454 0 8 0 anonpl 24 1410396 0 1392283 172 47 125 146 0 186 6 amapchunkpl 152 157177 0 156378 51 19 32 41 0 158 0 amappl16 200 11846 0 11244 65 33 32 48 0 8 0 amappl15 192 431 0 430 1 0 1 1 0 8 0 amappl14 184 26 0 26 3 3 0 1 0 8 0 amappl13 176 121 0 120 1 0 1 1 0 8 0 amappl12 168 711 0 706 1 0 1 1 0 8 0 amappl11 160 99 0 83 1 0 1 1 0 8 0 amappl10 152 1406 0 1394 1 0 1 1 0 8 0 amappl9 144 1920 0 1912 1 0 1 1 0 8 0 amappl8 136 1523 0 1462 3 0 3 3 0 8 0 amappl7 128 1004 0 995 1 0 1 1 0 8 0 amappl6 120 1671 0 1650 1 0 1 1 0 8 0 amappl5 112 6360 0 6334 1 0 1 1 0 8 0 amappl4 104 1008 0 983 1 0 1 1 0 8 0 amappl3 96 1098 0 1078 1 0 1 1 0 8 0 amappl2 88 604 0 560 4 2 2 2 0 8 0 amappl1 80 94491 0 93962 13 1 12 13 0 8 0 amappl 88 63592 0 63359 7 1 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 79 0 3 2 0 2 2 0 8 0 uaddrrnd 24 5223 0 5195 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5223 0 5195 1 0 1 1 0 8 0 vmmpekpl 168 39742 0 39710 2 0 2 2 0 8 0 vmmpepl 168 472091 0 469818 244 129 115 134 0 357 15 vmsppl 368 5222 0 5195 3 0 3 3 0 8 0 rwobjpl 56 117401 0 109875 111 4 107 110 0 8 0 pdppl 4096 10454 0 10395 85 26 59 62 0 8 0 pvpl 32 2365724 0 2343691 272 67 205 227 0 265 18 pmappl 248 5222 0 5195 2 0 2 2 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 927 0 92 24 0 24 24 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(ffff800000ceb028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000ceb028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000ceb018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000ceb000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000ceb000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f10b0) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000212867e8,0,0,3) at exit1+0x3d5 sys/kern/kern_exit.c:225 single_thread_check_locked(ffff8000212867e8,0,0) at single_thread_check_locked+0x227 sys/kern/kern_sig.c:1958 userret(ffff8000212867e8) at userret+0x224 single_thread_check sys/kern/kern_sig.c:1999 [inline] userret(ffff8000212867e8) at userret+0x224 sys/kern/kern_sig.c:1946 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0x7f7ffffd0490, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_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 __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(ffffffff82993700) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82993700) at __mp_lock+0x133 sys/kern/kern_lock.c:147 reaper(ffff800021149a40) at reaper+0x150 sys/kern/kern_exit.c:450 end trace frame: 0x0, count: -6