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(ffffffff81f7c1c1,ffffffff81f2d0c8,c4,ffffffff81f41763) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7a50) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000149c2978,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff8000149c2978,ffff8000159d4050,ffff8000159d40c0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000159d4130) at syscall+0x511 Xsyscall(0,1,0,1,0,7f7ffffbfda4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbfd70, 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(ffffffff81f7c1c1,ffffffff81f2d0c8,c4,ffffffff81f41763) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7a50) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000149c2978,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff8000149c2978,ffff8000159d4050,ffff8000159d40c0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000159d4130) at syscall+0x511 Xsyscall(0,1,0,1,0,7f7ffffbfda4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbfd70, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000159d3e50 rbx 0xffff8000159d3f00 rdx 0x2 rcx 0 rax 0 r8 0xffff8000159d3e10 r9 0x1 r10 0 r11 0x24f9f81d7f792e78 r12 0x3000000008 r13 0xffff8000159d3e60 r14 0x100 r15 0x1 rip 0xffffffff81eb0948 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000159d3e40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=279917 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000149c32d8,0xffffffff822b07e0 process=0xffff8000ffff7a50 user=0xffff8000159cf000, vmspace=0xfffffd803f00c210 estcpu=30, cpticks=18, pctcpu=0.11 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 43627 113665 1 0 3 0x100083 ttyin getty 88764 312205 0 0 3 0x14200 bored sosplice 27433 293065 149 0 3 0x82 nanosleep syz-executor.0 49160 166152 149 0 3 0x82 piperd syz-executor.1 149 304 60990 0 3 0x82 thrsleep syz-fuzzer 149 359299 60990 0 3 0x4000082 thrsleep syz-fuzzer 149 5794 60990 0 3 0x4000082 thrsleep syz-fuzzer 149 272823 60990 0 3 0x4000082 thrsleep syz-fuzzer 149 192705 60990 0 3 0x4000082 kqread syz-fuzzer 149 66457 60990 0 3 0x4000082 thrsleep syz-fuzzer 149 396636 60990 0 3 0x4000082 thrsleep syz-fuzzer 60990 481680 92980 0 3 0x10008a pause ksh 92980 396846 59414 0 3 0x92 select sshd 59414 206826 1 0 3 0x80 select sshd 78401 314332 14400 73 3 0x100090 kqread syslogd 14400 414136 1 0 3 0x100082 netio syslogd 24759 167216 1 77 3 0x100090 poll dhclient 72177 297711 1 0 3 0x80 poll dhclient 36998 364673 0 0 3 0x14200 pgzero zerothread 26732 88338 0 0 3 0x14200 aiodoned aiodoned 37582 174863 0 0 3 0x14200 syncer update 93372 185598 0 0 3 0x14200 cleaner cleaner 30554 371060 0 0 3 0x14200 reaper reaper 46930 57559 0 0 3 0x14200 pgdaemon pagedaemon 49444 128418 0 0 3 0x14200 bored crynlk 80667 511328 0 0 3 0x14200 bored crypto 79566 25928 0 0 3 0x40014200 acpi0 acpi0 31970 448334 0 0 3 0x14200 bored softnet 75031 290519 0 0 3 0x14200 bored systqmp 61262 431191 0 0 3 0x14200 bored systq 63241 160121 0 0 2 0x40014200 softclock 23866 378773 0 0 3 0x40014200 idle0 26362 75643 0 0 3 0x14200 bored smr 1 243035 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 9495 6973K 7415K 78643K 11562 0 0 pcb 23 9K 11K 78643K 485 0 0 rtable 114 4K 4K 78643K 359 0 0 ifaddr 56 13K 13K 78643K 133 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 37 0 0 iov 0 0K 28K 78643K 93 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 76K 78643K 1774 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 9 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 36 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 4 9K 25K 78643K 782 0 0 sigio 0 0K 0K 78643K 16 0 0 proc 45 38K 54K 78643K 387 0 0 subproc 32 2K 2K 78643K 36 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 88 0 0 in_multi 33 2K 2K 78643K 66 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 237 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 78 20K 22K 78643K 2657 0 0 UVM aobj 28 3K 3K 78643K 33 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 24 0 0 NDP 11 0K 0K 78643K 34 0 0 temp 166 2715K 3347K 78643K 5273 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 384 0 377 1 0 1 1 0 8 0 plimitpl 152 30 0 23 1 0 1 1 0 8 0 rtentry 112 49 0 4 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 16 0 16 1 1 0 1 0 8 0 tcpcb 544 150 0 146 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 18 0 18 3 2 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 220 0 0 14 0 14 14 0 8 0 art_table 32 221 0 0 2 0 2 2 0 8 0 art_node 16 45 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 2 1 0 1 1 0 8 0 semapl 112 34 0 24 1 0 1 1 0 8 0 shmpl 112 31 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2767 0 1350 46 0 46 46 0 8 0 ffsino 240 2767 0 1350 84 0 84 84 0 8 0 nchpl 144 4047 0 2413 61 0 61 61 0 8 0 uvmvnodes 72 3071 0 0 56 0 56 56 0 8 0 vnodes 200 3071 0 0 162 0 162 162 0 8 0 namei 1024 11401 0 11401 2 1 1 1 0 8 1 scxspl 192 12137 0 12137 11 10 1 6 0 8 1 sigapl 432 954 0 941 2 0 2 2 0 8 0 futexpl 56 11712 0 11712 1 0 1 1 0 8 1 knotepl 112 243 0 224 1 0 1 1 0 8 0 kqueuepl 104 240 0 238 1 0 1 1 0 8 0 pipepl 112 460 0 441 3 1 2 2 0 8 1 fdescpl 424 955 0 942 2 0 2 2 0 8 0 filepl 120 5384 0 5290 5 0 5 5 0 8 1 lockfpl 104 360 0 360 2 1 1 1 0 8 1 lockfspl 48 127 0 127 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 20 0 10 1 0 1 1 0 8 0 ucredpl 96 1043 0 1036 1 0 1 1 0 8 0 zombiepl 144 942 0 941 2 1 1 1 0 8 0 processpl 840 970 0 941 4 0 4 4 0 8 0 procpl 600 1957 0 1922 4 0 4 4 0 8 0 sosppl 128 16 0 16 3 2 1 1 0 8 1 sockpl 384 802 0 785 4 0 4 4 0 8 2 mcl64k 65536 19 0 19 3 2 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl12k 12288 14 0 14 3 2 1 1 0 8 1 mcl9k 9216 7 0 7 3 3 0 1 0 8 0 mcl8k 8192 11 0 11 2 1 1 1 0 8 1 mcl4k 4096 37 0 37 3 2 1 1 0 8 1 mcl2k2 2112 8 0 8 2 1 1 1 0 8 1 mcl2k 2048 50060 0 50017 17 10 7 12 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 85394 0 85313 10 3 7 9 0 8 0 bufpl 256 9963 0 3191 424 0 424 424 0 8 0 anonpl 16 99754 0 91060 58 6 52 52 0 62 16 amapchunkpl 152 4408 0 4319 26 12 14 14 0 158 10 amappl16 192 4471 0 4009 48 20 28 35 0 8 4 amappl15 184 374 0 372 1 0 1 1 0 8 0 amappl14 176 409 0 406 2 1 1 1 0 8 0 amappl13 168 9 0 8 1 0 1 1 0 8 0 amappl12 160 11 0 10 1 0 1 1 0 8 0 amappl11 152 53 0 38 1 0 1 1 0 8 0 amappl10 144 63 0 62 2 1 1 1 0 8 0 amappl9 136 930 0 926 1 0 1 1 0 8 0 amappl8 128 499 0 484 1 0 1 1 0 8 0 amappl7 120 34 0 29 1 0 1 1 0 8 0 amappl6 112 54 0 46 1 0 1 1 0 8 0 amappl5 104 129 0 119 1 0 1 1 0 8 0 amappl4 96 1094 0 1071 1 0 1 1 0 8 0 amappl3 88 199 0 189 1 0 1 1 0 8 0 amappl2 80 7200 0 7133 4 2 2 3 0 8 0 amappl1 72 25852 0 25436 26 17 9 19 0 8 0 amappl 80 2185 0 2149 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 32 0 5 1 0 1 1 0 8 0 uaddrrnd 24 955 0 941 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 955 0 941 1 0 1 1 0 8 0 vmmpekpl 168 9753 0 9730 2 0 2 2 0 8 0 vmmpepl 168 102214 0 100779 114 44 70 76 0 357 4 vmsppl 264 954 0 941 2 1 1 2 0 8 0 pdppl 4096 1917 0 1882 6 1 5 6 0 8 0 pvpl 32 336562 0 324427 244 28 216 216 0 265 117 pmappl 200 954 0 941 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 573 0 23 16 0 16 16 0 8 0