witness: lock_object uninitialized: 0xffff800000d01028 Starting stack trace... witness_checkorder(ffff800000d01028,9,0) at witness_checkorder+0x133 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000d01028,9,0) at witness_checkorder+0x133 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000d01018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000d01000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000d01000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000ffff8008) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000246e6008,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000246e6008,ffff800027b1a140,ffff800027b1a1a0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800027b1a210) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027b1a210) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffda9e0, 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(ffff800000d01028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000d01028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000d01018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000d01000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000d01000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000ffff8008) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000246e6008,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000246e6008,ffff800027b1a140,ffff800027b1a1a0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800027b1a210) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027b1a210) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffda9e0, count: -9 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800027b19ee0 rbx 0x3 rdx 0 rcx 0 rax 0xffff8000246e6008 r8 0xffff800027b19e80 r9 0x8080808080808080 r10 0x4ceace0e6cba28f5 r11 0x6b31101b7ceb7277 r12 0xffff800000d01001 r13 0xffff800000d01028 r14 0 r15 0 rip 0xffffffff820ea248 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800027b19ed0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.2) pid=18855 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000246e7268,0xffff800021237270 process=0xffff8000ffff8008 user=0xffff800027b15000, vmspace=0xfffffd8060273bb0 estcpu=32, cpticks=16, pctcpu=0.0 user=0, sys=8, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 16034 10896 74300 0 3 0x80 nanoslp syz-executor.3 16034 242300 74300 0 3 0x4000080 kqsel syz-executor.3 16034 191360 74300 0 3 0x4000080 kqsel syz-executor.3 16034 470760 74300 0 3 0x4000080 fsleep syz-executor.3 59382 308035 39998 0 2 0x3 syz-executor.1 72663 136685 39998 0 3 0x82 nanoslp syz-executor.2 27818 458522 1 0 3 0x100083 ttyin getty 26962 445639 39998 0 3 0x82 nanoslp syz-executor.0 46188 207404 0 0 3 0x14200 acct acct 74300 335274 39998 0 3 0x82 nanoslp syz-executor.3 26425 361974 0 0 3 0x14280 nfsidl nfsio 61062 215794 0 0 3 0x14280 nfsidl nfsio 3219 520955 0 0 3 0x14280 nfsidl nfsio 12895 172742 0 0 3 0x14280 nfsidl nfsio 78166 6886 0 0 3 0x14280 nfsidl nfsio 3509 16059 0 0 3 0x14280 nfsidl nfsio 50544 354954 0 0 3 0x14280 nfsidl nfsio 8938 293924 0 0 3 0x14280 nfsidl nfsio 31269 18566 0 0 3 0x14280 nfsidl nfsio 94381 317902 0 0 3 0x14280 nfsidl nfsio 32760 257769 0 0 3 0x14280 nfsidl nfsio 83868 8067 0 0 3 0x14280 nfsidl nfsio 85763 305864 0 0 3 0x14280 nfsidl nfsio 628 38098 0 0 3 0x14280 nfsidl nfsio 54480 46925 0 0 3 0x14280 nfsidl nfsio 38942 268331 0 0 3 0x14280 nfsidl nfsio 68369 431525 0 0 3 0x14280 nfsidl nfsio 8785 71322 0 0 3 0x14280 nfsidl nfsio 51362 377219 0 0 3 0x14280 nfsidl nfsio 69387 423063 0 0 3 0x14280 nfsidl nfsio 46228 327436 0 0 3 0x14200 bored sosplice 39998 326185 8835 0 3 0x82 thrsleep syz-fuzzer 39998 480545 8835 0 3 0x4000082 nanoslp syz-fuzzer 39998 127880 8835 0 3 0x4000082 thrsleep syz-fuzzer 39998 219238 8835 0 3 0x4000082 thrsleep syz-fuzzer 39998 129238 8835 0 3 0x4000082 thrsleep syz-fuzzer 39998 38635 8835 0 3 0x4000082 thrsleep syz-fuzzer 39998 248865 8835 0 3 0x4000082 nanoslp syz-fuzzer 39998 268544 8835 0 2 0x4000002 syz-fuzzer 39998 298623 8835 0 3 0x4000082 thrsleep syz-fuzzer 8835 425891 31894 0 3 0x10008a sigsusp ksh 31894 335252 43099 0 3 0x9a poll sshd 43099 102336 1 0 3 0x88 poll sshd 18057 313825 24386 74 3 0x100092 bpf pflogd 24386 462854 1 0 3 0x80 netio pflogd 27668 47485 47595 73 3 0x100090 kqread syslogd 47595 188433 1 0 3 0x100082 netio syslogd 38978 360147 1 0 3 0x100080 kqread resolvd 95449 512833 93046 77 3 0x100092 kqread dhcpleased 75434 62864 93046 77 3 0x100092 kqread dhcpleased 93046 23017 1 0 3 0x80 kqread dhcpleased 47806 349563 0 0 3 0x14200 bored smr 14551 10903 0 0 3 0x14200 pgzero zerothread 28163 230810 0 0 3 0x14200 aiodoned aiodoned 2284 129870 0 0 3 0x14200 syncer update 27067 493530 0 0 3 0x14200 cleaner cleaner 81359 219193 0 0 2 0x14200 reaper 69877 405663 0 0 3 0x14200 pgdaemon pagedaemon 59270 318069 0 0 3 0x14200 bored viomb 52346 169701 0 0 3 0x40014200 acpi0 acpi0 324 265714 0 0 3 0x40014200 idle1 53346 415203 0 0 3 0x14200 bored softnet 29777 48092 0 0 3 0x14200 bored systqmp 86249 13797 0 0 3 0x14200 bored systq 52252 487346 0 0 3 0x40014200 bored softclock 53914 460394 0 0 7 0x40014200 idle0 1 10486 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10198 6630K 6914K 78643K 22893 0 pcb 13 20K 22K 78643K 2578 0 rtable 152 8K 11K 78643K 1438 0 ifaddr 63 16K 17K 78643K 474 0 sysctl 3 1K 1K 78643K 3 0 counters 48 34K 35K 78643K 186 0 ioctlops 0 0K 4K 78643K 3320 0 iov 0 0K 32K 78643K 777 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1369 86K 86K 78643K 4918 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 83 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1063 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 8 25K 49K 78643K 7934 0 sigio 0 0K 0K 78643K 28 0 proc 74 111K 111K 78643K 1202 0 subproc 52 3K 3K 78643K 292 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 13569 0 in_multi 43 3K 3K 78643K 667 0 ether_multi 1 0K 0K 78643K 77 0 mrt 0 0K 0K 78643K 9 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 169 758K 758K 78643K 169 0 exec 0 0K 2K 78643K 1819 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 457 795K 797K 78643K 103219 0 UVM aobj 131 6K 6K 78643K 143 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 301 0 NDP 8 0K 1K 78643K 157 0 temp 103 4206K 8301K 78643K 63287 0 kqueue 12 18K 22K 78643K 285 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 601 0 598 7 6 1 3 0 8 0 rtentry 112 457 0 402 2 0 2 2 0 8 0 unpcb 136 4694 0 4679 64 55 9 9 0 8 8 syncache 296 22 0 22 6 6 0 1 0 8 0 tcpqe 32 38 63 38 2 2 0 1 0 8 0 tcpcb 736 7590 0 7571 181 172 9 28 0 8 6 arp 120 47 0 35 1 0 1 1 0 8 0 inpcb 304 13894 0 13875 128 121 7 12 0 8 5 nd6 48 108 0 100 1 0 1 1 0 8 0 pkpcb 40 8 0 8 3 3 0 1 0 8 0 kcovpl 48 21 0 17 1 0 1 1 0 8 0 ppxss 1248 26 0 26 5 5 0 1 0 8 0 pfstscr 40 5 0 5 1 1 0 1 0 8 0 pffrag 232 141 0 140 4 3 1 1 0 482 0 pffrnode 88 141 0 140 4 3 1 1 0 8 0 pffrent 40 3760 0 3759 5 4 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 46 0 38 2 1 1 2 0 8 0 pftag 88 5 0 4 2 1 1 1 0 8 0 pfstitem 24 53 0 51 1 0 1 1 0 8 0 pfstkey 112 63 0 61 1 0 1 1 0 8 0 pfstate 320 56 0 54 2 1 1 2 0 8 0 pfrule 1360 181 0 154 4 1 3 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2220 0 2019 25 8 17 19 0 8 1 art_table 32 2221 0 2019 3 0 3 3 0 8 0 art_node 16 453 0 404 1 0 1 1 0 8 0 sysvmsgpl 40 46 0 18 2 1 1 1 0 8 0 semapl 112 1061 0 1051 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 11638 0 10200 91 0 91 91 0 8 0 ffsino 272 11638 0 10200 97 0 97 97 0 8 0 nchpl 144 22534 0 20944 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 74387 0 74387 5 4 1 1 0 8 1 percpumem 16 105 0 69 1 0 1 1 0 8 0 vcpupl 2048 131 0 0 17 0 17 17 0 8 0 vmpool 560 144 0 13 10 0 10 10 0 8 0 pfiaddrpl 120 16 0 8 1 0 1 1 0 8 0 scxspl 216 71984 0 71984 22 21 1 8 0 8 1 plimitpl 152 699 0 688 1 0 1 1 0 8 0 sigapl 424 8150 0 8092 9 2 7 7 0 8 0 futexpl 64 66186 0 66185 7 6 1 1 0 8 0 knotepl 112 108 0 0 3 0 3 3 0 8 0 kqueuepl 216 1872 0 1861 39 38 1 5 0 8 0 pipepl 336 1241 0 1225 27 25 2 7 0 8 0 fdescpl 496 8112 0 8091 4 1 3 4 0 8 0 filepl 152 56086 0 55924 113 98 15 16 0 8 8 lockfpl 104 2730 0 2728 8 7 1 2 0 8 0 lockfspl 48 619 0 617 1 0 1 1 0 8 0 sessionpl 144 42 0 29 1 0 1 1 0 8 0 pgrppl 48 51 0 38 1 0 1 1 0 8 0 ucredpl 96 6264 0 6251 1 0 1 1 0 8 0 zombiepl 144 8316 0 8313 3 2 1 1 0 8 0 processpl 1064 8150 0 8092 4 0 4 4 0 8 0 procpl 672 23800 0 23729 16 9 7 8 0 8 0 srpgc 96 18 0 18 4 4 0 1 0 8 0 sosppl 168 69 0 68 12 11 1 1 0 8 0 sockpl 480 19220 0 19184 354 341 13 34 0 8 8 mcl64k 65536 27 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 22 0 0 3 1 2 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 240 0 0 20 2 18 20 0 8 0 mtagpl 96 520 0 0 8 0 8 8 0 8 0 mbufpl 256 2031 0 0 125 0 125 125 0 8 0 bufpl 288 18134 0 11789 454 0 454 454 0 8 0 anonpl 24 2377385 0 2354413 305 161 144 199 0 186 0 amapchunkpl 152 283185 0 282361 115 75 40 60 0 158 7 amappl16 200 24743 0 23900 132 84 48 57 0 8 0 amappl15 192 1080 0 1080 4 4 0 1 0 8 0 amappl14 184 1225 0 1224 5 4 1 1 0 8 0 amappl13 176 3608 0 3601 1 0 1 1 0 8 0 amappl12 168 1156 0 1152 1 0 1 1 0 8 0 amappl11 160 1144 0 1130 1 0 1 1 0 8 0 amappl10 152 82 0 75 1 0 1 1 0 8 0 amappl9 144 826 0 822 1 0 1 1 0 8 0 amappl8 136 933 0 847 4 0 4 4 0 8 0 amappl7 128 264 0 251 1 0 1 1 0 8 0 amappl6 120 611 0 594 1 0 1 1 0 8 0 amappl5 112 2676 0 2658 1 0 1 1 0 8 0 amappl4 104 3082 0 3055 1 0 1 1 0 8 0 amappl3 96 5178 0 5155 1 0 1 1 0 8 0 amappl2 88 5453 0 5399 3 1 2 2 0 8 0 amappl1 80 149376 0 148851 14 2 12 13 0 8 0 amappl 88 102328 0 102051 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 142 0 12 3 0 3 3 0 8 0 uaddrrnd 24 8256 0 8103 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8256 0 8103 1 0 1 1 0 8 0 vmmpekpl 168 63358 0 63298 3 0 3 3 0 8 0 vmmpepl 168 750032 0 747240 271 145 126 141 0 357 2 vmsppl 368 8255 0 8103 15 0 15 15 0 8 1 rwobjpl 56 190048 0 182158 124 12 112 115 0 8 0 pdppl 4096 16520 0 16337 230 45 185 187 0 8 2 pvpl 32 4133894 0 4110473 462 268 194 313 0 265 2 pmappl 248 8255 0 8103 10 0 10 10 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 1310 0 260 32 1 31 31 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 __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 intr_handler(ffff80002114f640,ffff800000077500) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge16_untramp() at Xintr_ioapic_edge16_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 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffffffff82829ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -11 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(ffff800000d01028,9,0) at witness_checkorder+0x138 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffff800000d01028,9,0) at witness_checkorder+0x138 sys/kern/subr_witness.c:772 rw_enter_write(ffff800000d01018) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 unveil_delete_names(ffff800000d01000) at unveil_delete_names+0x30 unvname_rbt_RBT_MIN sys/kern/kern_unveil.c:90 [inline] unveil_delete_names(ffff800000d01000) at unveil_delete_names+0x30 sys/kern/kern_unveil.c:100 unveil_destroy(ffff8000ffff8008) at unveil_destroy+0xad sys/kern/kern_unveil.c:191 exit1(ffff8000246e6008,0,0,1) at exit1+0x3d5 sys/kern/kern_exit.c:225 sys_exit(ffff8000246e6008,ffff800027b1a140,ffff800027b1a1a0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800027b1a210) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027b1a210) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffda9e0, count: -9