witness: lock_object uninitialized: 0xffff8000012db028 Starting stack trace... witness_checkorder(ffff8000012db028,9,0) at witness_checkorder+0x1af witness_debugger sys/kern/subr_witness.c:2522 [inline] witness_checkorder(ffff8000012db028,9,0) at witness_checkorder+0x1af sys/kern/subr_witness.c:779 rw_enter_write(ffff8000012db018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012db000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000fffedfb8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a1ca7e0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1ca7e0,ffff80002a1ec9c0,ffff80002a1ec910) at sys_exit+0x1a syscall(ffff80002a1ec9c0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a1ec9c0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7599189a78d0, count: 249 End of stack trace. Stopped at db_enter+0x25: 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+0x25 sys/arch/amd64/amd64/db_interface.c:437 witness_checkorder(ffff8000012db028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000012db018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012db000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000fffedfb8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a1ca7e0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1ca7e0,ffff80002a1ec9c0,ffff80002a1ec910) at sys_exit+0x1a syscall(ffff80002a1ec9c0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a1ec9c0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7599189a78d0, count: -9 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a1ec690 rbx 0 rdx 0x3fd rcx 0 rax 0x14 r8 0xffff80002a1ec630 r9 0x8080808080808080 r10 0x28b0fb743e2c6b7d r11 0x7020189a1e33dff3 r12 0 r13 0x1 r14 0xffff8000012db028 r15 0x3 rip 0xffffffff828a12b5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a1ec680 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.7) tid=148238 pid=87546 tcnt=0 stat=onproc flags process=1008 proc=2000 runpri=32, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a1ca7e0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a1ca2d0,0xffff80002a1cb498 process=0xffff8000fffedfb8 user=0xffff80002a1e7000, vmspace=0xfffffd806ec3b548 estcpu=27, cpticks=20, pctcpu=0.0, user=0, sys=8, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 75261 394361 4386 0 2 0 syz-executor.1 75261 18492 4386 0 2 0x4000000 syz-executor.1 83036 29985 93962 0 2 0 syz-executor.2 83036 52538 93962 0 2 0x4000000 syz-executor.2 60793 136213 11453 0 2 0 syz-executor.0 60793 307898 11453 0 2 0x4000000 syz-executor.0 97375 343512 12570 0 2 0 syz-executor.6 97375 126709 12570 0 2 0x4000000 syz-executor.6 26495 123258 46256 0 2 0 syz-executor.3 46256 257847 52381 0 2 0x482 syz-executor.3 80001 114435 52381 0 2 0x2 syz-executor.4 7033 51542 52381 0 2 0x482 syz-executor.7 4386 98180 52381 0 2 0x482 syz-executor.1 23029 48485 52381 0 2 0x2 syz-executor.5 93962 439728 52381 0 2 0x482 syz-executor.2 12570 347390 52381 0 2 0x482 syz-executor.6 11453 471179 52381 0 7 0x2 syz-executor.0 52381 113454 72985 0 3 0x82 wait syz-execprog 52381 157588 72985 0 2 0x4000482 syz-execprog 52381 323866 72985 0 3 0x4000082 thrsleep syz-execprog 52381 519029 72985 0 3 0x4000082 wait syz-execprog 52381 86443 72985 0 3 0x4000082 wait syz-execprog 52381 147049 72985 0 3 0x4000082 wait syz-execprog 52381 172872 72985 0 3 0x4000082 thrsleep syz-execprog 52381 371373 72985 0 3 0x4000082 wait syz-execprog 52381 73830 72985 0 3 0x4000082 wait syz-execprog 52381 295886 72985 0 3 0x4000082 wait syz-execprog 52381 348570 72985 0 3 0x4000082 thrsleep syz-execprog 52381 372246 72985 0 3 0x4000082 wait syz-execprog 52381 405894 72985 0 3 0x4000082 thrsleep syz-execprog 52381 305450 72985 0 2 0x4000482 syz-execprog 52381 62265 72985 0 3 0x4000082 thrsleep syz-execprog 72985 319175 16776 0 3 0x10008a sigsusp ksh 16776 86874 53836 0 3 0x98 kqread sshd-session 53836 179220 90728 0 3 0x92 kqread sshd-session 86944 60857 1 0 2 0x100083 getty 90728 273887 1 0 3 0x88 kqread sshd 51190 53853 99475 74 3 0x1100092 bpf pflogd 99475 39214 1 0 3 0x80 sbwait pflogd 47223 389519 21819 73 2 0x1100090 syslogd 21819 437715 1 0 3 0x100082 sbwait syslogd 40208 49368 1 0 3 0x100080 kqread resolvd 27067 446063 43707 77 3 0x100092 kqread dhcpleased 52889 105437 43707 77 3 0x100092 kqread dhcpleased 43707 250414 1 0 3 0x80 kqread dhcpleased 87901 500669 0 0 3 0x14200 bored smr 26575 206656 0 0 3 0x14200 pgzero zerothread 53359 501999 0 0 3 0x14200 aiodoned aiodoned 43592 157166 0 0 3 0x14200 syncer update 46588 188867 0 0 3 0x14200 cleaner cleaner 49791 99315 0 0 3 0x14200 reaper reaper 32617 425952 0 0 3 0x14200 pgdaemon pagedaemon 14393 80489 0 0 3 0x14200 bored viomb 27097 441413 0 0 3 0x40014200 acpi0 acpi0 75521 24281 0 0 3 0x40014200 idle1 74761 514647 0 0 3 0x14200 bored softnet3 59931 22260 0 0 3 0x14200 bored softnet2 57583 480780 0 0 3 0x14200 bored softnet1 5152 261968 0 0 3 0x14200 bored softnet0 22433 438626 0 0 3 0x14200 bored systqmp 67625 135158 0 0 3 0x14200 bored systq 24223 8941 0 0 2 0x14200 softclockmp 47463 69691 0 0 2 0x40014200 softclock 62861 144770 0 0 3 0x40014200 idle0 1 383276 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 75261 (syz-executor.1) thread 0xffff80002a1cb998 (18492) exclusive rwlock vmmaplk r = 0 (0xfffffd806fa179e0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5255 #2 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1821 #3 uvm_fault_check+0x841 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #3 uvm_fault_check+0x841 sys/uvm/uvm_fault.c:714 #4 uvm_fault+0xf5 sys/uvm/uvm_fault.c:603 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #6 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #7 recall_trap+0x8 Process 83036 (syz-executor.2) thread 0xffff80002a1caa68 (52538) exclusive rwlock unveil r = 0 (0xffff8000012d5028) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 unveil_add+0x49b unveil_add_name sys/kern/kern_unveil.c:135 [inline] #1 unveil_add+0x49b sys/kern/kern_unveil.c:514 #2 sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 #3 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #3 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 Process 60793 (syz-executor.0) thread 0xffff80002a1ca048 (307898) exclusive rwlock vmmaplk r = 0 (0xfffffd806fa17660) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5255 #2 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1821 #3 uvm_fault_check+0x841 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #3 uvm_fault_check+0x841 sys/uvm/uvm_fault.c:714 #4 uvm_fault+0xf5 sys/uvm/uvm_fault.c:603 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #6 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #7 recall_trap+0x8 Process 23029 (syz-executor.5) thread 0xffff8000ffff7478 (48485) exclusive rwlock vmmaplk r = 0 (0xfffffd806fa17820) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5255 #2 uvmspace_fork+0x12b sys/uvm/uvm_map.c:3820 #3 process_new+0x553 sys/kern/kern_fork.c:279 #4 fork1+0x3ea sys/kern/kern_fork.c:405 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xfffffd8068431ba8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5255 #2 uvmspace_fork+0x44 sys/uvm/uvm_map.c:3811 #3 process_new+0x553 sys/kern/kern_fork.c:279 #4 fork1+0x3ea sys/kern/kern_fork.c:405 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10183 11113K 11113K 166960K 11264 0 pcb 17 12K 12K 166960K 17 0 rtable 234 6K 6K 166960K 380 0 pf 34 17K 18K 166960K 48 0 ifaddr 43 7K 7K 166960K 49 0 ifgroup 55 2K 2K 166960K 60 0 counters 64 36K 36K 166960K 66 0 ioctlops 0 0K 4K 166960K 1484 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1262 79K 80K 166960K 1281 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 93K 166960K 193 0 proc 77 127K 127K 166960K 749 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 7K 7K 166960K 110 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 426 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 266 75K 76K 166960K 4657 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 43 86K 112K 166960K 1575 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 28 2K 2K 166960K 31 0 temp 1 6868K 6996K 166960K 5065 0 kqueue 13 20K 20K 166960K 46 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 36 0 33 1 0 1 1 0 8 0 rtentry 112 122 0 12 4 0 4 4 0 8 0 unpcb 144 69 0 52 1 0 1 1 0 8 0 syncache 336 9 0 9 2 2 0 1 0 8 0 tcpcb 808 12 0 9 1 0 1 1 0 8 0 arp 120 20 0 2 1 0 1 1 0 8 0 inpcb 336 73 0 67 1 0 1 1 0 8 0 nd6 136 27 0 3 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 pfstitem 24 24 0 4 1 0 1 1 0 8 0 pfstkey 128 24 0 4 1 0 1 1 0 8 0 pfstate 376 24 0 4 2 0 2 2 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 501 0 48 32 3 29 29 0 8 0 art_table 32 502 0 48 5 1 4 4 0 8 0 art_node 16 121 0 21 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1653 0 125 96 0 96 96 0 8 0 ffsino 272 1653 0 125 102 0 102 102 0 8 0 nchpl 144 2013 0 232 68 1 67 67 0 8 0 uvmvnodes 80 1667 0 0 35 0 35 35 0 8 0 vnodes 216 1667 0 0 93 0 93 93 0 8 0 namei 1024 8029 0 8024 8 5 3 4 0 8 2 percpumem 16 47 0 1 1 0 1 1 0 8 0 kstatmem 264 26 0 2 2 0 2 2 0 8 0 scxspl 216 8894 0 8894 10 9 1 8 1 8 1 plimitpl 152 59 0 42 1 0 1 1 0 8 0 sigapl 424 553 0 504 10 3 7 7 0 8 0 futexpl 64 107 0 107 2 1 1 1 0 8 1 knotepl 120 123 0 0 5 1 4 4 0 8 0 kqueuepl 216 42 0 33 1 0 1 1 0 8 0 pipepl 320 188 0 160 5 2 3 3 0 8 0 fdescpl 496 535 0 505 6 1 5 5 0 8 1 filepl 152 2200 0 2064 7 1 6 6 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 35 0 18 1 0 1 1 0 8 0 pgrppl 48 35 0 18 1 0 1 1 0 8 0 ucredpl 104 116 0 103 1 0 1 1 0 8 0 zombiepl 144 509 0 508 3 2 1 1 0 8 0 processpl 1160 553 0 504 6 1 5 5 0 8 0 procpl 648 625 0 557 10 3 7 7 0 8 0 sockpl 664 178 0 152 4 1 3 3 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 190 0 0 22 0 22 22 0 8 0 mcl2k 2048 19 0 0 3 0 3 3 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 206 0 0 12 0 12 12 0 8 0 bufpl 280 4433 0 158 306 0 306 306 0 8 0 anonpl 24 356572 0 352223 64 34 30 56 0 185 0 amapchunkpl 152 17520 0 16930 40 17 23 29 0 158 0 amappl16 200 10577 0 10499 8 3 5 5 0 8 0 amappl15 192 25 0 25 3 3 0 1 0 8 0 amappl14 184 335 0 322 3 2 1 2 0 8 0 amappl13 176 29 0 29 2 2 0 1 0 8 0 amappl12 168 1264 0 1235 4 2 2 2 0 8 0 amappl11 160 82 0 68 1 0 1 1 0 8 0 amappl10 152 118 0 106 2 1 1 1 0 8 0 amappl9 144 364 0 363 2 1 1 1 0 8 0 amappl8 136 204 0 171 3 1 2 2 0 8 0 amappl7 128 228 0 211 3 1 2 2 0 8 0 amappl6 120 344 0 340 2 1 1 1 0 8 0 amappl5 112 219 0 208 1 0 1 1 0 8 0 amappl4 104 535 0 511 3 2 1 2 0 8 0 amappl3 96 4276 0 4191 4 1 3 3 0 8 0 amappl2 88 1308 0 1225 6 3 3 4 0 8 0 amappl1 80 15033 0 14440 33 19 14 23 0 8 1 amappl 88 3877 0 3703 7 3 4 5 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 535 0 504 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 535 0 504 1 0 1 1 0 8 0 vmmpekpl 168 11432 0 11395 2 0 2 2 0 8 0 vmmpepl 168 72186 0 70303 133 45 88 125 0 357 4 vmsppl 448 534 0 504 8 3 5 5 0 8 1 rwobjpl 56 33294 0 30597 54 10 44 48 0 8 0 pdppl 4096 1077 0 1008 131 52 79 85 0 8 10 pvpl 32 48955 0 0 396 1 395 395 0 265 0 pmappl 248 534 0 504 3 0 3 3 0 8 1 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 426 0 67 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 witness_checkorder(ffff8000012db028,9,0) at witness_checkorder+0x1b4 rw_enter_write(ffff8000012db018) at rw_enter_write+0x7a sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff8000012db000) at unveil_delete_names+0x3d sys/kern/kern_unveil.c:102 unveil_destroy(ffff8000fffedfb8) at unveil_destroy+0xbd sys/kern/kern_unveil.c:183 exit1(ffff80002a1ca7e0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a1ca7e0,ffff80002a1ec9c0,ffff80002a1ec910) at sys_exit+0x1a syscall(ffff80002a1ec9c0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a1ec9c0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7599189a78d0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029b5bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83696c18) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83696c18) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff80002a086600) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a086600) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x745a98bfef10, count: -6