witness: lock_object uninitialized: 0xffff800000e01028 Starting stack trace... witness_checkorder(ffff800000e01028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000e01028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000e01018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000e01000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000e01000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f0c88) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000211ba2a8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000211ba2a8,ffff800024523d30,ffff800024523d90) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800024523e00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024523e00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffafc0, 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(ffff800000e01028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000e01028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000e01018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000e01000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000e01000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f0c88) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000211ba2a8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000211ba2a8,ffff800024523d30,ffff800024523d90) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800024523e00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024523e00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffafc0, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800024523ad0 rbx 0x3 rdx 0 rcx 0 rax 0xffff8000211ba2a8 r8 0xffff800024523a70 r9 0x8080808080808080 r10 0x49f269cbae4655e r11 0x6bb000352d12926d r12 0xffff800000e01001 r13 0xffff800000e01028 r14 0 r15 0 rip 0xffffffff81410c88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024523ac0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.3) pid=490425 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000211ba548,0xffff8000211ba7f8 process=0xffff8000211f0c88 user=0xffff80002451e000, vmspace=0xfffffd8068466198 estcpu=36, cpticks=16, pctcpu=0.7 user=0, sys=7, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93097 243022 69698 60928 2 0x10 syz-executor.0 93097 73493 69698 60928 3 0x4000090 fsleep syz-executor.0 61367 246091 38632 0 2 0x482 syz-executor.3 51093 26447 38632 0 3 0x82 piperd syz-executor.1 69698 520988 38632 0 2 0x482 syz-executor.0 67241 359822 0 0 3 0x14280 nfsidl nfsio 7928 415303 0 0 3 0x14280 nfsidl nfsio 1364 274889 0 0 3 0x14280 nfsidl nfsio 11016 412362 0 0 3 0x14280 nfsidl nfsio 66443 415891 0 0 3 0x14280 nfsidl nfsio 7732 257821 0 0 3 0x14280 nfsidl nfsio 59460 352087 0 0 3 0x14280 nfsidl nfsio 58675 79211 0 0 3 0x14280 nfsidl nfsio 44621 118253 0 0 3 0x14280 nfsidl nfsio 82109 301807 0 0 3 0x14280 nfsidl nfsio 93831 470344 0 0 3 0x14280 nfsidl nfsio 4640 301191 0 0 3 0x14280 nfsidl nfsio 78253 125077 0 0 3 0x14280 nfsidl nfsio 28807 266338 0 0 3 0x14280 nfsidl nfsio 73957 480262 0 0 3 0x14280 nfsidl nfsio 51234 501573 0 0 3 0x14280 nfsidl nfsio 92568 104069 0 0 3 0x14280 nfsidl nfsio 71830 132795 0 0 3 0x14280 nfsidl nfsio 13053 370459 0 0 3 0x14280 nfsidl nfsio 16803 37793 0 0 3 0x14280 nfsidl nfsio 1365 510505 1 0 2 0x100083 getty 8305 19300 38632 0 3 0x82 piperd syz-executor.2 14204 342893 0 0 3 0x14200 bored sosplice 38632 56558 63115 0 3 0x82 thrsleep syz-fuzzer 38632 390145 63115 0 2 0x4000482 syz-fuzzer 38632 362591 63115 0 3 0x4000082 kqread syz-fuzzer 38632 124285 63115 0 3 0x4000082 thrsleep syz-fuzzer 38632 4049 63115 0 3 0x4000082 thrsleep syz-fuzzer 38632 215876 63115 0 3 0x4000082 thrsleep syz-fuzzer 38632 306726 63115 0 2 0x4000482 syz-fuzzer 38632 500192 63115 0 3 0x4000082 thrsleep syz-fuzzer 63115 31112 134 0 3 0x10008a sigsusp ksh 134 147873 66459 0 3 0x9a poll sshd 66459 520649 1 0 3 0x88 poll sshd 20262 429646 34886 74 3 0x100092 bpf pflogd 34886 175872 1 0 3 0x80 netio pflogd 17334 478935 57091 73 2 0x100090 syslogd 57091 150214 1 0 3 0x100082 netio syslogd 86643 446624 1 0 3 0x100080 kqread resolvd 71245 126115 37675 77 3 0x100092 kqread dhcpleased 15408 349599 37675 77 3 0x100092 kqread dhcpleased 37675 337006 1 0 3 0x80 kqread dhcpleased 45749 262571 0 0 2 0x14200 smr 9363 451037 0 0 2 0x14200 zerothread 60738 249543 0 0 3 0x14200 aiodoned aiodoned 35555 224870 0 0 3 0x14200 syncer update 59553 78654 0 0 3 0x14200 cleaner cleaner 67931 446673 0 0 2 0x14200 reaper 74529 449215 0 0 3 0x14200 pgdaemon pagedaemon 49663 397461 0 0 3 0x14200 bored viomb 67157 517431 0 0 3 0x40014200 acpi0 acpi0 86293 501744 0 0 7 0x40014200 idle1 5055 333117 0 0 3 0x14200 bored softnet 53387 121608 0 0 3 0x14200 bored systqmp 89317 94757 0 0 3 0x14200 bored systq 75480 400320 0 0 3 0x40014200 bored softclock 94032 505371 0 0 3 0x40014200 idle0 1 416657 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 67931 (reaper) thread 0xffff800021149a40 (446673) exclusive rwlock kmmaplk r = 0 (0xffffffff8298b1a0) #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 10215 6629K 7237K 78643K 74941 0 pcb 13 20K 22K 78643K 4513 0 rtable 130 20K 23K 78643K 5432 0 ifaddr 66 18K 22K 78643K 1668 0 sysctl 3 1K 1K 78643K 7 0 counters 46 34K 35K 78643K 536 0 ioctlops 0 0K 8K 78643K 10160 0 iov 0 0K 24K 78643K 1861 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1492 94K 94K 78643K 18651 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 3 5K 13K 78643K 197 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1997 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 7 21K 49K 78643K 20275 0 sigio 0 0K 0K 78643K 104 0 proc 77 123K 124K 78643K 3342 0 subproc 52 3K 7K 78643K 910 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 2558 0 in_multi 20 1K 4K 78643K 2530 0 ether_multi 1 0K 0K 78643K 490 0 mrt 2 0K 0K 78643K 429 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 4385 0 pfkey data 0 0K 1K 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 491 828K 829K 78643K 259380 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 1432 0 NDP 8 0K 1K 78643K 487 0 temp 118 4236K 4363K 78643K 129115 0 kqueue 10 14K 24K 78643K 509 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 2804 0 2801 17 16 1 3 0 8 0 rtentry 112 1376 0 1344 2 0 2 2 0 8 0 unpcb 136 10750 0 10735 92 91 1 8 0 8 0 syncache 296 33 0 33 9 9 0 1 0 8 0 tcpqe 32 135 0 135 6 6 0 1 0 8 0 tcpcb 736 7568 0 7564 195 193 2 20 0 8 1 arp 120 126 0 120 1 0 1 1 0 8 0 inpcb 304 22933 0 22926 248 242 6 16 0 8 5 rttmr 72 177 0 177 5 4 1 1 0 8 1 nd6 48 318 0 315 1 0 1 1 0 8 0 pkpcb 40 35 0 35 8 8 0 1 0 8 0 kcovpl 48 59 0 55 1 0 1 1 0 8 0 ppxss 1248 127 0 127 14 14 0 1 0 8 0 pfstscr 40 24 0 23 10 9 1 1 0 8 0 pffrag 232 114 0 114 10 10 0 1 0 482 0 pffrnode 88 114 0 114 10 10 0 1 0 8 0 pffrent 40 1122 0 1122 11 11 0 1 0 8 0 pfosfp 40 1431 0 1007 5 0 5 5 0 8 0 pfosfpen 112 1431 0 716 21 0 21 21 0 8 0 pfrktable 1344 799 0 781 11 9 2 3 0 8 0 pftag 88 91 0 89 6 5 1 1 0 8 0 pfstitem 24 39 0 35 1 0 1 1 0 8 0 pfstkey 112 80 0 76 1 0 1 1 0 8 0 pfstate 320 58 0 55 3 2 1 3 0 8 0 pfrule 1360 6070 0 5816 23 1 22 22 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 11115 0 10999 37 26 11 19 0 8 0 art_table 32 11116 0 10999 4 2 2 3 0 8 0 art_node 16 1374 0 1349 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 18 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1926 0 1916 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 29703 0 28244 92 0 92 92 0 8 0 ffsino 272 29703 0 28244 98 0 98 98 0 8 0 nchpl 144 57517 0 55919 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 199627 0 199627 7 5 2 2 0 8 2 percpumem 16 280 0 245 1 0 1 1 0 8 0 vcpupl 2048 129 0 1 16 0 16 16 0 8 0 vmpool 560 138 0 10 11 1 10 10 0 8 0 pfiaddrpl 120 162 0 141 1 0 1 1 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 160968 0 160968 21 20 1 8 0 8 1 plimitpl 152 1480 0 1469 1 0 1 1 0 8 0 sigapl 424 20414 0 20358 9 2 7 7 0 8 0 futexpl 64 196402 0 196401 3 2 1 1 0 8 0 knotepl 112 182 0 0 3 0 3 3 0 8 0 kqueuepl 216 2598 0 2592 54 50 4 8 0 8 3 pipepl 336 3428 0 3412 90 88 2 10 0 8 0 fdescpl 496 20337 0 20317 5 2 3 4 0 8 0 filepl 152 136640 0 136489 214 205 9 18 0 8 2 lockfpl 104 5848 0 5846 10 9 1 2 0 8 0 lockfspl 48 1675 0 1673 1 0 1 1 0 8 0 sessionpl 144 78 0 65 1 0 1 1 0 8 0 pgrppl 48 136 0 123 1 0 1 1 0 8 0 ucredpl 96 12013 0 11999 1 0 1 1 0 8 0 zombiepl 144 27092 0 27091 3 2 1 1 0 8 0 processpl 1064 20414 0 20358 4 0 4 4 0 8 0 procpl 672 58442 0 58377 16 9 7 8 0 8 0 srpgc 96 64 0 64 14 14 0 1 0 8 0 sosppl 168 129 0 129 23 22 1 1 0 8 1 sockpl 480 36538 0 36513 630 618 12 30 0 8 8 mcl64k 65536 52 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 417 0 0 25 3 22 22 0 8 0 mtagpl 96 1481 0 0 23 0 23 23 0 8 0 mbufpl 256 2817 0 0 133 0 133 133 0 8 0 bufpl 288 38466 0 32122 454 0 454 454 0 8 0 anonpl 24 5783145 0 5761615 327 179 148 158 0 186 6 amapchunkpl 152 680463 0 679745 189 158 31 45 0 158 0 amappl16 200 51256 0 50343 172 112 60 61 0 8 5 amappl15 192 4233 0 4233 4 4 0 1 0 8 0 amappl14 184 2861 0 2857 1 0 1 1 0 8 0 amappl13 176 6192 0 6191 1 0 1 1 0 8 0 amappl12 168 3290 0 3279 1 0 1 1 0 8 0 amappl11 160 142 0 127 1 0 1 1 0 8 0 amappl10 152 1161 0 1151 1 0 1 1 0 8 0 amappl9 144 2631 0 2627 1 0 1 1 0 8 0 amappl8 136 2417 0 2310 4 0 4 4 0 8 0 amappl7 128 1133 0 1124 1 0 1 1 0 8 0 amappl6 120 2671 0 2647 1 0 1 1 0 8 0 amappl5 112 17569 0 17551 1 0 1 1 0 8 0 amappl4 104 3890 0 3856 1 0 1 1 0 8 0 amappl3 96 6257 0 6238 1 0 1 1 0 8 0 amappl2 88 9966 0 9898 8 6 2 2 0 8 0 amappl1 80 379167 0 378682 13 1 12 13 0 8 0 amappl 88 257607 0 257341 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 20475 0 20326 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 20475 0 20326 1 0 1 1 0 8 0 vmmpekpl 168 137822 0 137755 4 0 4 4 0 8 0 vmmpepl 168 1888333 0 1885379 572 423 149 154 0 357 5 vmsppl 368 20474 0 20326 14 0 14 14 0 8 0 rwobjpl 56 461566 0 453605 139 24 115 116 0 8 0 pdppl 4096 40958 0 40780 243 61 182 182 0 8 4 pvpl 32 9385697 0 9365170 471 278 193 221 0 265 3 pmappl 248 20474 0 20326 10 0 10 10 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1446 0 379 31 0 31 31 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(ffff800000e01028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000e01028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000e01018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000e01000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000e01000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000211f0c88) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000211ba2a8,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000211ba2a8,ffff800024523d30,ffff800024523d90) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800024523e00) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800024523e00) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffafc0, 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