panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 200 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 313626 19383 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821ffb57,ffffffff821b1809,c8,ffffffff821bce92) at __assert+0x2b sys/kern/subr_prf.c:154 unveil_destroy(ffff800020a8aa90) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020ab0ef0,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020ab0ef0,ffff800024f65600,ffff800024f65650) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800024f656d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024f656d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffd9864) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd9830, count: 7 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 200 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821ffb57,ffffffff821b1809,c8,ffffffff821bce92) at __assert+0x2b sys/kern/subr_prf.c:154 unveil_destroy(ffff800020a8aa90) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020ab0ef0,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020ab0ef0,ffff800024f65600,ffff800024f65650) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800024f656d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024f656d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffd9864) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd9830, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800024f65410 rbx 0xffff800024f654c0 rdx 0xffff800020ab0ef0 rcx 0 rax 0 r8 0xffffffff8196789f kprintf+0x16f r9 0x1 r10 0x25 r11 0x120a9e86f68999a r12 0x3000000008 r13 0xffff800024f65420 r14 0x100 r15 0x1 rip 0xffffffff819ce898 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024f65400 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=7414 stat=onproc flags process=1018 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0020,0xffffffff8265dad8 process=0xffff800020a8aa90 user=0xffff800024f60000, vmspace=0xfffffd806e8ee5c8 estcpu=36, cpticks=12, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 87798 246297 89156 32767 3 0x90 nanosleep syz-executor.1 89156 165361 18691 0 3 0x82 wait syz-executor.1 80711 45978 0 0 3 0x14200 bored sosplice 18691 31840 49217 0 3 0x82 thrsleep syz-fuzzer 18691 522312 49217 0 3 0x4000082 nanosleep syz-fuzzer 18691 284136 49217 0 3 0x4000082 thrsleep syz-fuzzer 18691 138724 49217 0 3 0x4000082 thrsleep syz-fuzzer 18691 114687 49217 0 3 0x4000082 thrsleep syz-fuzzer 18691 111508 49217 0 3 0x4000082 kqread syz-fuzzer 18691 113701 49217 0 3 0x4000082 thrsleep syz-fuzzer 18691 163639 49217 0 3 0x4000082 thrsleep syz-fuzzer 18691 488783 49217 0 3 0x4000082 thrsleep syz-fuzzer 18691 54979 49217 0 3 0x4000082 thrsleep syz-fuzzer 49217 504244 4002 0 3 0x10008a pause ksh 4002 164878 1242 0 3 0x92 select sshd 57526 98110 1 0 3 0x100083 ttyin getty 1242 504117 1 0 3 0x80 select sshd 80838 101248 91315 73 3 0x100090 kqread syslogd 91315 47888 1 0 3 0x100082 netio syslogd 42635 519809 1 77 3 0x100090 poll dhclient 42563 57678 1 0 3 0x80 poll dhclient 79848 454493 0 0 3 0x14200 pgzero zerothread 18458 30846 0 0 3 0x14200 aiodoned aiodoned 49962 231853 0 0 3 0x14200 syncer update 79322 114655 0 0 3 0x14200 cleaner cleaner 19383 313626 0 0 7 0x14200 reaper 33518 150953 0 0 3 0x14200 pgdaemon pagedaemon 54548 137639 0 0 3 0x14200 bored crynlk 79126 159646 0 0 3 0x14200 bored crypto 69541 480679 0 0 3 0x40014200 acpi0 acpi0 36728 462149 0 0 3 0x40014200 idle1 93351 290808 0 0 3 0x14200 bored softnet 42692 107450 0 0 3 0x14200 bored systqmp 51709 346655 0 0 3 0x14200 bored systq 36414 82865 0 0 3 0x40014200 bored softclock 86903 451774 0 0 3 0x40014200 idle0 32178 488127 0 0 3 0x14200 bored smr 1 386349 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 Kern Lim devbuf 9472 6321K 6323K 78643K 12330 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 89 2K 3K 78643K 14885 0 0 ifaddr 31 17K 21K 78643K 2194 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 1697 0 0 iov 0 0K 40K 78643K 4275 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 9715 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 402 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 8051 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 33K 78643K 21706 0 0 sigio 0 0K 0K 78643K 1565 0 0 proc 51 62K 90K 78643K 18623 0 0 subproc 17 1K 2K 78643K 6035 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 4778 0 0 in_multi 22 1K 2K 78643K 4633 0 0 ether_multi 1 0K 0K 78643K 118 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 150 662K 662K 78643K 150 0 0 exec 0 0K 1K 78643K 6169 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 180 18K 35K 78643K 75782 0 0 UVM aobj 130 4K 4K 78643K 136 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 1296 0 0 NDP 4 0K 0K 78643K 1068 0 0 temp 97 3553K 3682K 78643K 89727 0 0 kqueue 0 0K 0K 78643K 275 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 730 0 726 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 2275 0 2273 1 0 1 1 0 8 0 rtentry 112 3596 0 3560 2 0 2 2 0 8 0 unpcb 120 12488 0 12441 11 9 2 3 0 8 0 syncache 264 110 0 110 31 31 0 1 0 8 0 tcpqe 32 2773 0 2773 12 12 0 1 0 8 0 tcpcb 544 28218 0 28212 170 169 1 15 0 8 0 ipq 40 62 0 62 29 29 0 1 0 8 0 ipqe 40 160 0 160 29 29 0 1 0 8 0 inpcb 280 40753 0 40745 154 152 2 13 0 8 1 nd6 48 711 0 709 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 15804 0 15602 16 0 16 16 0 8 0 art_table 32 15805 0 15602 7 4 3 3 0 8 1 art_node 16 3595 0 3562 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 8049 0 8039 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 dino1pl 128 23807 0 22361 48 1 47 47 0 8 0 ffsino 272 23807 0 22361 98 1 97 97 0 8 0 nchpl 144 49512 0 47881 62 1 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 219782 0 219782 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 182864 0 182864 73 72 1 7 0 8 1 plimitpl 152 3494 0 3487 1 0 1 1 0 8 0 sigapl 432 20818 0 20805 19 17 2 3 0 8 0 futexpl 56 338793 0 338793 4 3 1 1 0 8 1 knotepl 112 11996 0 11983 23 22 1 3 0 8 0 kqueuepl 104 8236 0 8234 41 40 1 4 0 8 0 pipepl 112 22208 0 22195 48 47 1 2 0 8 0 fdescpl 488 20819 0 20806 3 0 3 3 0 8 1 filepl 152 178872 0 178799 207 202 5 14 0 8 1 lockfpl 104 4339 0 4338 1 0 1 1 0 8 0 lockfspl 48 1559 0 1558 1 0 1 1 0 8 0 sessionpl 112 370 0 361 1 0 1 1 0 8 0 pgrppl 48 617 0 608 1 0 1 1 0 8 0 ucredpl 96 35893 0 35885 1 0 1 1 0 8 0 zombiepl 144 20806 0 20805 5 4 1 1 0 8 0 processpl 896 20835 0 20805 4 0 4 4 0 8 0 procpl 632 58539 0 58499 29 24 5 5 0 8 1 srpgc 64 708 0 708 60 59 1 1 0 8 1 sosppl 128 389 0 389 64 63 1 1 0 8 1 sockpl 384 56018 0 55962 252 244 8 25 0 8 1 mcl64k 65536 33 0 0 4 1 3 3 0 8 0 mcl16k 16384 41 0 0 6 3 3 3 0 8 0 mcl12k 12288 65 0 0 2 0 2 2 0 8 0 mcl9k 9216 51 0 0 2 1 1 2 0 8 0 mcl8k 8192 31 0 0 3 0 3 3 0 8 0 mcl4k 4096 49 0 0 5 2 3 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 185 0 0 15 6 9 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1258 0 0 16 0 16 16 0 8 0 bufpl 256 64749 0 57705 441 0 441 441 0 8 0 anonpl 16 2458543 0 2450752 317 266 51 57 0 124 0 amapchunkpl 152 169287 0 169193 239 234 5 18 0 158 0 amappl16 192 98700 0 98186 459 422 37 40 0 8 5 amappl15 184 3650 0 3650 36 35 1 1 0 8 1 amappl14 176 6025 0 6016 2 1 1 1 0 8 0 amappl13 168 1673 0 1672 1 0 1 1 0 8 0 amappl12 160 1994 0 1987 10 9 1 1 0 8 0 amappl11 152 4079 0 4068 1 0 1 1 0 8 0 amappl10 144 1851 0 1844 1 0 1 1 0 8 0 amappl9 136 7274 0 7269 1 0 1 1 0 8 0 amappl8 128 6056 0 5925 8 3 5 5 0 8 0 amappl7 120 3268 0 3259 1 0 1 1 0 8 0 amappl6 112 3343 0 3323 1 0 1 1 0 8 0 amappl5 104 4556 0 4546 1 0 1 1 0 8 0 amappl4 96 20062 0 20021 8 6 2 2 0 8 0 amappl3 88 5943 0 5932 1 0 1 1 0 8 0 amappl2 80 140060 0 139988 4 2 2 3 0 8 0 amappl1 72 562194 0 561763 24 14 10 20 0 8 0 amappl 80 64349 0 64314 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 20819 0 20805 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 20819 0 20805 1 0 1 1 0 8 0 vmmpekpl 168 191165 0 191132 2 0 2 2 0 8 0 vmmpepl 168 2748682 0 2746947 474 373 101 116 0 357 11 vmsppl 368 20818 0 20805 2 0 2 2 0 8 0 pdppl 4096 41645 0 41610 7 1 6 6 0 8 1 pvpl 32 6520371 0 6508948 852 721 131 156 0 265 6 pmappl 232 20818 0 20805 37 36 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 793 0 188 18 0 18 18 0 8 0