witness: lock_object uninitialized: 0xffff800000d9e028 Starting stack trace... witness_checkorder(ffff800000d9e028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000d9e028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000d9e018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000d9e000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000d9e000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000ffff2158) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff800027b3ba48,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff800027b3ba48,ffff8000246d2d10,ffff8000246d2d70) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff8000246d2de0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000246d2de0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdfcf0, 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(ffff800000d9e028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000d9e028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000d9e018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000d9e000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000d9e000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000ffff2158) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff800027b3ba48,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff800027b3ba48,ffff8000246d2d10,ffff8000246d2d70) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff8000246d2de0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000246d2de0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdfcf0, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000246d2ab0 rbx 0x3 rdx 0 rcx 0 rax 0xffff800027b3ba48 r8 0xffff8000246d2a50 r9 0x8080808080808080 r10 0x1e6084d400b35ee7 r11 0x2c79bd57c2c6ab88 r12 0xffff800000d9e001 r13 0xffff800000d9e028 r14 0 r15 0 rip 0xffffffff8167b298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000246d2aa0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=454794 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800027b3a2a8,0xffff8000fffefd00 process=0xffff8000ffff2158 user=0xffff8000246cd000, vmspace=0xfffffd8071c8b030 estcpu=36, cpticks=8, pctcpu=0.0 user=0, sys=7, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49653 415171 82961 0 2 0 syz-executor.1 49653 178590 82961 0 3 0x4000080 fsleep syz-executor.1 25279 435095 68093 0 2 0 syz-executor.3 25279 240600 68093 0 3 0x4000080 fsleep syz-executor.3 82961 366965 73638 0 2 0x482 syz-executor.1 40561 465439 73638 0 2 0x482 syz-executor.0 50079 465111 73638 0 2 0x482 syz-executor.2 68093 233213 73638 0 2 0x482 syz-executor.3 44141 268377 0 0 3 0x14280 nfsidl nfsio 76846 444995 0 0 3 0x14280 nfsidl nfsio 6228 458265 0 0 3 0x14280 nfsidl nfsio 96023 227646 0 0 3 0x14280 nfsidl nfsio 19427 353504 0 0 3 0x14280 nfsidl nfsio 80778 391086 0 0 3 0x14280 nfsidl nfsio 27831 269017 0 0 3 0x14280 nfsidl nfsio 93299 338233 0 0 3 0x14280 nfsidl nfsio 96098 275381 0 0 3 0x14280 nfsidl nfsio 83664 14322 0 0 3 0x14280 nfsidl nfsio 2541 256737 0 0 3 0x14280 nfsidl nfsio 88492 501626 0 0 3 0x14280 nfsidl nfsio 56773 152078 0 0 3 0x14280 nfsidl nfsio 74896 152309 0 0 3 0x14280 nfsidl nfsio 26020 340420 0 0 3 0x14280 nfsidl nfsio 28195 513606 0 0 3 0x14280 nfsidl nfsio 13286 418163 0 0 3 0x14280 nfsidl nfsio 6839 119691 0 0 3 0x14280 nfsidl nfsio 64759 280906 0 0 3 0x14280 nfsidl nfsio 87803 305262 0 0 3 0x14280 nfsidl nfsio 29348 330470 0 0 3 0x14200 acct acct 83861 159128 1 0 2 0x100083 getty 23228 273721 0 0 3 0x14200 bored sosplice 73638 364466 82920 0 3 0x82 thrsleep syz-fuzzer 73638 396125 82920 0 2 0x4000482 syz-fuzzer 73638 170564 82920 0 3 0x4000082 thrsleep syz-fuzzer 73638 483670 82920 0 3 0x4000082 thrsleep syz-fuzzer 73638 7178 82920 0 3 0x4000082 thrsleep syz-fuzzer 73638 308592 82920 0 3 0x4000082 thrsleep syz-fuzzer 73638 171947 82920 0 2 0x4000482 syz-fuzzer 73638 141828 82920 0 3 0x4000082 thrsleep syz-fuzzer 73638 144948 82920 0 3 0x4000082 thrsleep syz-fuzzer 82920 262397 14584 0 3 0x10008a sigsusp ksh 14584 385981 8531 0 3 0x9a poll sshd 8531 44988 1 0 3 0x88 poll sshd 67797 119000 13809 74 3 0x100092 bpf pflogd 13809 370635 1 0 3 0x80 netio pflogd 89405 157184 29214 73 2 0x100090 syslogd 29214 507499 1 0 3 0x100082 netio syslogd 95918 246631 1 0 3 0x100080 kqread resolvd 978 285226 62648 77 3 0x100092 kqread dhcpleased 81832 21088 62648 77 3 0x100092 kqread dhcpleased 62648 170989 1 0 3 0x80 kqread dhcpleased 22981 203724 0 0 3 0x14200 bored smr 48544 368571 0 0 2 0x14200 zerothread 98539 154961 0 0 3 0x14200 aiodoned aiodoned 93436 196485 0 0 3 0x14200 syncer update 86167 308628 0 0 3 0x14200 cleaner cleaner 24364 495367 0 0 2 0x14200 reaper 66411 238576 0 0 3 0x14200 pgdaemon pagedaemon 34666 15198 0 0 3 0x14200 bored viomb 94751 447146 0 0 3 0x40014200 acpi0 acpi0 7860 502462 0 0 7 0x40014200 idle1 16271 519309 0 0 3 0x14200 bored softnet 47712 415373 0 0 3 0x14200 bored systqmp 65574 20047 0 0 3 0x14200 bored systq 73811 360777 0 0 2 0x40014200 softclock 42671 492692 0 0 3 0x40014200 idle0 1 67531 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 24364 (reaper) thread 0xffff8000211497a0 (495367) exclusive rwlock kmmaplk r = 0 (0xffffffff828839c8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5458 #3 uvm_unmap+0x78 sys/uvm/uvm_map.c:2068 #4 uvm_uarea_free+0x35 sys/uvm/uvm_glue.c:287 #5 reaper+0x158 sys/kern/kern_exit.c:451 #6 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10202 6548K 7805K 78643K 58214 0 pcb 13 18K 20K 78643K 1744 0 rtable 195 22K 23K 78643K 2579 0 ifaddr 70 19K 21K 78643K 926 0 sysctl 3 1K 1K 78643K 5 0 counters 48 34K 35K 78643K 328 0 ioctlops 0 0K 4K 78643K 6825 0 iov 0 0K 28K 78643K 2752 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1461 92K 92K 78643K 12865 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 98 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 20 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 8 25K 45K 78643K 12124 0 sigio 0 0K 0K 78643K 101 0 proc 78 111K 111K 78643K 1616 0 subproc 52 3K 3K 78643K 520 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 607 0 in_multi 46 3K 3K 78643K 1149 0 ether_multi 1 0K 0K 78643K 128 0 mrt 1 0K 0K 78643K 65 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 229 1023K 1023K 78643K 229 0 exec 0 0K 2K 78643K 3495 0 pfkey data 0 0K 0K 78643K 3 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 465 817K 818K 78643K 149850 0 UVM aobj 131 5K 5K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 576 0 NDP 9 0K 1K 78643K 321 0 temp 117 4232K 8301K 78643K 155536 0 kqueue 10 14K 20K 78643K 534 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 568 0 565 6 5 1 3 0 8 0 rtentry 112 736 0 672 2 0 2 2 0 8 0 unpcb 136 12119 0 12104 73 68 5 8 0 8 4 syncache 296 47 0 47 11 11 0 1 0 8 0 tcpqe 32 20 0 20 6 6 0 1 0 8 0 tcpcb 736 6257 0 6253 183 179 4 15 0 8 3 arp 120 115 0 102 1 0 1 1 0 8 0 inpcb 304 18078 0 18071 189 183 6 12 0 8 5 rttmr 72 18 0 18 6 6 0 1 0 8 0 nd6 48 228 0 212 1 0 1 1 0 8 0 pkpcb 40 33 0 33 8 8 0 1 0 8 0 kcovpl 48 40 0 36 1 0 1 1 0 8 0 ppxss 1248 29 0 29 7 7 0 1 0 8 0 pfstscr 40 141 0 141 3 3 0 1 0 8 0 pffrag 232 40 0 36 6 5 1 1 0 482 0 pffrnode 88 40 0 36 6 5 1 1 0 8 0 pffrent 40 725 0 721 6 5 1 1 0 8 0 pfosfp 40 1436 0 1012 5 0 5 5 0 8 0 pfosfpen 112 1436 0 721 21 0 21 21 0 8 0 pfrktable 1344 144 0 126 5 3 2 2 0 8 0 pftag 88 28 0 25 3 2 1 1 0 8 0 pfqueue 264 4 0 1 1 0 1 1 0 8 0 pfstitem 24 35 0 33 1 0 1 1 0 8 0 pfstkey 112 177 0 175 1 0 1 1 0 8 0 pfstate 320 104 0 102 2 1 1 2 0 8 0 pfrule 1360 1231 0 1123 15 5 10 10 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2758 0 2505 25 9 16 19 0 8 0 art_table 32 2759 0 2505 3 0 3 3 0 8 0 art_node 16 732 0 677 1 0 1 1 0 8 0 sysvmsgpl 40 95 0 75 1 0 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 17296 0 15863 90 0 90 90 0 8 0 ffsino 272 17296 0 15863 96 0 96 96 0 8 0 nchpl 144 33257 0 31649 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 121936 0 121936 7 6 1 1 0 8 1 percpumem 16 176 0 140 1 0 1 1 0 8 0 vcpupl 2048 90 0 0 12 0 12 12 0 8 0 vmpool 560 467 0 377 12 5 7 7 0 8 0 pfiaddrpl 120 68 0 28 3 1 2 2 0 8 0 scxspl 216 101624 0 101624 25 24 1 8 0 8 1 plimitpl 152 1018 0 1006 1 0 1 1 0 8 0 sigapl 424 12300 0 12242 8 1 7 7 0 8 0 futexpl 64 139047 0 139045 3 2 1 1 0 8 0 knotepl 112 88 0 0 3 0 3 3 0 8 0 kqueuepl 216 4211 0 4205 80 72 8 8 0 8 7 pipepl 336 1502 0 1486 41 39 2 7 0 8 0 fdescpl 496 12241 0 12220 4 1 3 4 0 8 0 filepl 152 94327 0 94176 180 166 14 18 0 8 8 lockfpl 104 3985 0 3983 12 11 1 4 0 8 0 lockfspl 48 937 0 935 1 0 1 1 0 8 0 sessionpl 144 57 0 44 1 0 1 1 0 8 0 pgrppl 48 82 0 69 1 0 1 1 0 8 0 ucredpl 96 12046 0 12031 1 0 1 1 0 8 0 zombiepl 144 13431 0 13429 5 4 1 1 0 8 0 processpl 1064 12300 0 12241 4 0 4 4 0 8 0 procpl 672 31231 0 31161 23 16 7 8 0 8 1 srpgc 96 42 0 42 8 8 0 1 0 8 0 sosppl 168 59 0 59 15 15 0 1 0 8 0 sockpl 480 30808 0 30783 572 544 28 29 0 8 24 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 18 0 0 3 1 2 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 280 0 0 21 1 20 21 0 8 0 mtagpl 96 1393 0 0 25 0 25 25 0 8 0 mbufpl 256 9690 0 0 596 0 596 596 0 8 0 bufpl 288 23735 0 17390 454 0 454 454 0 8 0 anonpl 24 3546596 0 3522517 408 233 175 178 0 186 25 amapchunkpl 152 385990 0 384939 129 86 43 54 0 158 1 amappl16 200 34489 0 33799 188 144 44 56 0 8 7 amappl15 192 80 0 80 1 1 0 1 0 8 0 amappl14 184 475 0 472 1 0 1 1 0 8 0 amappl13 176 4365 0 4360 1 0 1 1 0 8 0 amappl12 168 1237 0 1232 1 0 1 1 0 8 0 amappl11 160 782 0 768 1 0 1 1 0 8 0 amappl10 152 1181 0 1175 1 0 1 1 0 8 0 amappl9 144 2532 0 2528 1 0 1 1 0 8 0 amappl8 136 3109 0 3022 6 2 4 4 0 8 0 amappl7 128 2172 0 2159 1 0 1 1 0 8 0 amappl6 120 2440 0 2421 1 0 1 1 0 8 0 amappl5 112 10817 0 10791 1 0 1 1 0 8 0 amappl4 104 3064 0 3038 1 0 1 1 0 8 0 amappl3 96 3415 0 3389 1 0 1 1 0 8 0 amappl2 88 6869 0 6814 2 0 2 2 0 8 0 amappl1 80 218686 0 218188 13 2 11 13 0 8 0 amappl 88 148496 0 148216 7 0 7 7 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 12708 0 12596 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12708 0 12596 1 0 1 1 0 8 0 vmmpekpl 168 78173 0 78118 3 0 3 3 0 8 0 vmmpepl 168 1116486 0 1114033 410 290 120 127 0 357 9 vmsppl 368 12707 0 12596 14 3 11 11 0 8 0 rwobjpl 56 269677 0 261950 127 15 112 113 0 8 2 pdppl 4096 25424 0 25282 275 131 144 144 0 8 2 pvpl 32 5925806 0 5901401 602 362 240 255 0 265 40 pmappl 248 12707 0 12596 8 0 8 8 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1845 0 376 43 0 43 43 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(ffff800000d9e028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000d9e028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000d9e018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000d9e000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000d9e000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000ffff2158) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff800027b3ba48,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff800027b3ba48,ffff8000246d2d10,ffff8000246d2d70) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff8000246d2de0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000246d2de0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdfcf0, 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 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