panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f7eab5,ffffffff81f2c8cb,c4,ffffffff81f40cc0) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7a50) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800014950bd0,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800014950bd0,ffff800015a285a0,ffff800015a28610) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a28680) at syscall+0x511 Xsyscall(6,1,0,1,0,7f7ffffd6314) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd62e0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 196 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f7eab5,ffffffff81f2c8cb,c4,ffffffff81f40cc0) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7a50) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800014950bd0,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800014950bd0,ffff800015a285a0,ffff800015a28610) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a28680) at syscall+0x511 Xsyscall(6,1,0,1,0,7f7ffffd6314) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd62e0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800015a283a0 rbx 0xffff800015a28450 rdx 0x2 rcx 0 rax 0 r8 0xffff800015a28360 r9 0x1 r10 0 r11 0x1efd4522cc688d18 r12 0x3000000008 r13 0xffff800015a283b0 r14 0x100 r15 0x1 rip 0xffffffff81585c18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a28390 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=318967 stat=onproc flags process=1008 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014951530,0xffffffff822d06f0 process=0xffff8000ffff7a50 user=0xffff800015a23000, vmspace=0xfffffd803f00c630 estcpu=36, cpticks=26, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 3423 52093 1 0 3 0x100083 ttyopn getty 54805 147510 0 0 3 0x14200 bored sosplice 95609 35549 77024 0 3 0x82 piperd syz-executor.1 25902 333141 77024 0 3 0x82 nanosleep syz-executor.0 77024 254985 19615 0 3 0x82 thrsleep syz-fuzzer 77024 99333 19615 0 3 0x4000082 thrsleep syz-fuzzer 77024 181652 19615 0 3 0x4000082 thrsleep syz-fuzzer 77024 178526 19615 0 3 0x4000082 thrsleep syz-fuzzer 77024 512765 19615 0 3 0x4000082 thrsleep syz-fuzzer 77024 70577 19615 0 3 0x4000082 kqread syz-fuzzer 77024 357601 19615 0 3 0x4000082 thrsleep syz-fuzzer 19615 306591 48603 0 3 0x10008a pause ksh 48603 408200 79368 0 3 0x92 select sshd 79368 226054 1 0 3 0x80 select sshd 10413 470555 68589 73 3 0x100090 kqread syslogd 68589 199160 1 0 3 0x100082 netio syslogd 59398 274299 1 77 3 0x100090 poll dhclient 33071 161882 1 0 3 0x80 poll dhclient 22635 390496 0 0 3 0x14200 pgzero zerothread 98545 404283 0 0 3 0x14200 aiodoned aiodoned 28172 165600 0 0 3 0x14200 syncer update 30506 210955 0 0 3 0x14200 cleaner cleaner 37872 441436 0 0 3 0x14200 reaper reaper 53544 316913 0 0 3 0x14200 pgdaemon pagedaemon 63964 109562 0 0 3 0x14200 bored crynlk 45539 445614 0 0 3 0x14200 bored crypto 16996 159995 0 0 3 0x40014200 acpi0 acpi0 88679 460261 0 0 3 0x14200 bored softnet 16835 298927 0 0 3 0x14200 bored systqmp 10691 410748 0 0 3 0x14200 bored systq 91046 279341 0 0 3 0x40014200 bored softclock 54733 496581 0 0 3 0x40014200 idle0 83014 443047 0 0 3 0x14200 bored smr 1 387818 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9498 6353K 14795K 78643K 14560 0 0 pcb 23 9K 10K 78643K 918 0 0 rtable 114 4K 4K 78643K 500 0 0 ifaddr 54 13K 14K 78643K 208 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 90 0 0 iov 0 0K 24K 78643K 240 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 76K 78643K 2768 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 24 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 110 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 4 9K 25K 78643K 1852 0 0 sigio 0 0K 0K 78643K 24 0 0 proc 45 38K 54K 78643K 505 0 0 subproc 32 2K 2K 78643K 44 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 157 0 0 in_multi 33 2K 2K 78643K 99 0 0 ether_multi 1 0K 0K 78643K 15 0 0 mrt 0 0K 0K 78643K 10 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 316 0 0 pfkey data 0 0K 4K 78643K 2 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 83 20K 30K 78643K 5176 0 0 UVM aobj 92 3K 3K 78643K 96 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 67 0 0 NDP 10 0K 0K 78643K 54 0 0 temp 157 2715K 3350K 78643K 8442 0 0 kqueue 0 0K 0K 78643K 9 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 739 0 732 1 0 1 1 0 8 0 plimitpl 152 61 0 54 1 0 1 1 0 8 0 rtentry 112 47 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 292 0 288 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 33 0 33 7 7 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 46 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 9 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 108 0 98 1 0 1 1 0 8 0 shmpl 112 94 0 4 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4480 0 3046 47 0 47 47 0 8 0 ffsino 240 4480 0 3046 86 1 85 85 0 8 0 nchpl 144 7270 0 5636 61 0 61 61 0 8 0 uvmvnodes 72 5435 0 0 99 0 99 99 0 8 0 vnodes 200 5435 0 0 287 0 287 287 0 8 0 namei 1024 22121 0 22121 2 1 1 1 0 8 1 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 22007 0 22007 22 21 1 5 0 8 1 sigapl 432 2025 0 2012 2 0 2 2 0 8 0 futexpl 56 28785 0 28785 1 0 1 1 0 8 1 knotepl 112 294 0 275 1 0 1 1 0 8 0 kqueuepl 104 364 0 362 1 0 1 1 0 8 0 pipepl 112 1114 0 1095 4 3 1 2 0 8 0 fdescpl 424 2026 0 2013 2 0 2 2 0 8 0 filepl 120 11999 0 11905 4 0 4 4 0 8 0 lockfpl 104 690 0 690 2 1 1 1 0 8 1 lockfspl 48 217 0 217 2 1 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 51 0 41 1 0 1 1 0 8 0 ucredpl 96 2826 0 2819 1 0 1 1 0 8 0 zombiepl 144 2013 0 2012 2 1 1 1 0 8 0 processpl 840 2041 0 2012 4 0 4 4 0 8 0 procpl 600 4407 0 4372 4 0 4 4 0 8 0 sosppl 128 22 0 22 6 6 0 1 0 8 0 sockpl 384 1564 0 1547 3 0 3 3 0 8 1 mcl64k 65536 514 0 514 62 62 0 29 0 8 0 mcl16k 16384 7 0 7 5 4 1 1 0 8 1 mcl12k 12288 37 0 37 6 5 1 1 0 8 1 mcl9k 9216 32 0 32 8 7 1 1 0 8 1 mcl8k 8192 38 0 38 6 5 1 1 0 8 1 mcl4k 4096 81 0 81 3 2 1 1 0 8 1 mcl2k2 2112 8 0 8 3 3 0 1 0 8 0 mcl2k 2048 56875 0 56835 15 9 6 10 0 8 0 mtagpl 80 6 0 4 2 1 1 1 0 8 0 mbufpl 256 102273 0 102211 33 25 8 20 0 8 1 bufpl 256 11608 0 5910 357 0 357 357 0 8 0 anonpl 16 176849 0 166636 100 58 42 57 0 62 0 amapchunkpl 152 8753 0 8658 39 29 10 18 0 158 5 amappl16 192 10121 0 9560 76 47 29 40 0 8 0 amappl14 176 36 0 34 2 1 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 12 0 10 1 0 1 1 0 8 0 amappl11 152 1867 0 1850 1 0 1 1 0 8 0 amappl10 144 63 0 62 2 1 1 1 0 8 0 amappl9 136 502 0 499 1 0 1 1 0 8 0 amappl8 128 129 0 115 1 0 1 1 0 8 0 amappl7 120 30 0 27 1 0 1 1 0 8 0 amappl6 112 1874 0 1865 1 0 1 1 0 8 0 amappl5 104 238 0 227 1 0 1 1 0 8 0 amappl4 96 2172 0 2151 1 0 1 1 0 8 0 amappl3 88 239 0 228 1 0 1 1 0 8 0 amappl2 80 15457 0 15391 4 2 2 3 0 8 0 amappl1 72 43605 0 43187 26 17 9 19 0 8 0 amappl 80 4660 0 4622 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 dma64 64 259 0 259 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 95 0 4 2 0 2 2 0 8 0 uaddrrnd 24 2026 0 2012 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2026 0 2012 1 0 1 1 0 8 0 vmmpekpl 168 15280 0 15256 2 0 2 2 0 8 0 vmmpepl 168 208092 0 206550 136 64 72 81 0 357 0 vmsppl 264 2025 0 2012 2 1 1 2 0 8 0 pdppl 4096 4059 0 4024 6 1 5 6 0 8 0 pvpl 32 537365 0 523570 254 109 145 222 0 265 33 pmappl 200 2025 0 2012 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 594 0 112 15 0 15 15 0 8 0