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(ffffffff81f76927,ffffffff81f25e6f,c4,ffffffff81f3a2ab) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff66a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff8710,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff8000ffff8710,ffff8000149c9f50,ffff8000149c9fc0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000149ca030) at syscall+0x511 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd2cc8) at Xsyscall+0x128 end trace frame: 0x0, 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(ffffffff81f76927,ffffffff81f25e6f,c4,ffffffff81f3a2ab) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff66a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff8710,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff8000ffff8710,ffff8000149c9f50,ffff8000149c9fc0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000149ca030) at syscall+0x511 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd2cc8) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149c9d50 rbx 0xffff8000149c9e00 rdx 0x2 rcx 0 rax 0 r8 0xffff8000149c9d10 r9 0x1 r10 0 r11 0xf1cad0ec7b2a4c50 r12 0x3000000008 r13 0xffff8000149c9d60 r14 0x100 r15 0x1 rip 0xffffffff811f14c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149c9d40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=293747 stat=onproc flags process=1008 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff92c8,0xffffffff822af360 process=0xffff8000ffff66a0 user=0xffff8000149c5000, vmspace=0xfffffd803f013b58 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 41072 445286 65520 0 2 0x2 syz-executor.0 30085 347739 65520 0 2 0x482 syz-executor.1 65520 244763 79462 0 3 0x82 thrsleep syz-fuzzer 65520 328473 79462 0 2 0x4000482 syz-fuzzer 65520 207575 79462 0 3 0x4000082 thrsleep syz-fuzzer 65520 38882 79462 0 3 0x4000082 thrsleep syz-fuzzer 65520 125984 79462 0 3 0x4000082 thrsleep syz-fuzzer 65520 382863 79462 0 3 0x4000082 kqread syz-fuzzer 65520 36042 79462 0 3 0x4000082 thrsleep syz-fuzzer 79462 248069 34014 0 3 0x10008a pause ksh 34014 424831 45916 0 3 0x92 select sshd 17588 257138 1 0 3 0x100083 ttyin getty 45916 291734 1 0 3 0x80 select sshd 77834 163722 52702 73 3 0x100090 kqread syslogd 52702 368220 1 0 3 0x100082 netio syslogd 73735 366710 1 77 3 0x100090 poll dhclient 98068 414540 1 0 3 0x80 poll dhclient 89991 343017 0 0 3 0x14200 pgzero zerothread 44204 511891 0 0 3 0x14200 aiodoned aiodoned 83623 408450 0 0 3 0x14200 syncer update 57253 160307 0 0 3 0x14200 cleaner cleaner 90197 419148 0 0 3 0x14200 reaper reaper 39339 209129 0 0 3 0x14200 pgdaemon pagedaemon 16568 212823 0 0 3 0x14200 bored crynlk 79526 303808 0 0 3 0x14200 bored crypto 15593 281009 0 0 3 0x40014200 acpi0 acpi0 25412 203076 0 0 3 0x14200 bored softnet 28972 234306 0 0 3 0x14200 bored systqmp 40122 456080 0 0 3 0x14200 bored systq 41165 155872 0 0 3 0x40014200 bored softclock 2245 6033 0 0 3 0x40014200 idle0 80984 501660 0 0 2 0x14200 smr 1 380257 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 9463 6446K 6834K 78643K 10860 0 0 pcb 23 9K 10K 78643K 123 0 0 rtable 108 3K 4K 78643K 216 0 0 ifaddr 42 11K 11K 78643K 55 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 21 0 0 iov 0 0K 12K 78643K 14 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1296 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 4 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 16 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 4 9K 25K 78643K 120 0 0 proc 44 38K 62K 78643K 302 0 0 subproc 64 65538K 69634K 78643K 68 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 33 2K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 185 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 72 20K 20K 78643K 1052 0 0 UVM aobj 5 2K 2K 78643K 5 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 7 0K 0K 78643K 14 0 0 temp 95 2696K 2824K 78643K 5542 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 64 0 57 1 0 1 1 0 8 0 plimitpl 152 15 0 8 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 26 0 22 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 3 0 3 1 1 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 44 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1563 0 155 46 0 46 46 0 8 0 ffsino 240 1563 0 155 84 0 84 84 0 8 0 nchpl 144 1912 0 284 61 0 61 61 0 8 0 uvmvnodes 72 1678 0 0 31 0 31 31 0 8 0 vnodes 200 1678 0 0 89 0 89 89 0 8 0 namei 1024 4789 0 4788 2 1 1 1 0 8 0 scxspl 192 10748 0 10748 10 7 3 6 0 8 3 sigapl 432 290 0 277 2 0 2 2 0 8 0 futexpl 56 1681 0 1681 1 0 1 1 0 8 1 knotepl 112 68 0 49 1 0 1 1 0 8 0 kqueuepl 104 32 0 30 1 0 1 1 0 8 0 pipepl 112 194 0 175 3 1 2 2 0 8 1 fdescpl 424 291 0 278 2 0 2 2 0 8 0 filepl 120 1469 0 1375 4 0 4 4 0 8 1 lockfpl 104 35 0 35 2 1 1 1 0 8 1 lockfspl 48 14 0 14 2 1 1 1 0 8 1 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 103 0 96 1 0 1 1 0 8 0 zombiepl 144 278 0 277 2 1 1 1 0 8 0 processpl 840 305 0 277 4 0 4 4 0 8 0 procpl 600 431 0 397 4 0 4 4 0 8 1 sockpl 384 164 0 147 3 0 3 3 0 8 1 mcl64k 65536 3 0 3 2 1 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 16 0 16 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 57182 0 57145 13 7 6 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 93604 0 93549 7 1 6 7 0 8 0 bufpl 256 17803 0 14696 199 0 199 199 0 8 0 anonpl 16 40055 0 29814 59 1 58 58 0 62 15 amapchunkpl 152 1221 0 1134 7 3 4 6 0 158 0 amappl16 192 1296 0 737 41 4 37 41 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 74 0 72 2 1 1 1 0 8 0 amappl13 168 46 0 44 2 1 1 1 0 8 0 amappl12 160 9 0 6 1 0 1 1 0 8 0 amappl11 152 38 0 24 1 0 1 1 0 8 0 amappl10 144 59 0 58 2 1 1 1 0 8 0 amappl9 136 476 0 473 1 0 1 1 0 8 0 amappl8 128 128 0 111 1 0 1 1 0 8 0 amappl7 120 28 0 26 1 0 1 1 0 8 0 amappl6 112 52 0 44 1 0 1 1 0 8 0 amappl5 104 287 0 277 1 0 1 1 0 8 0 amappl4 96 449 0 419 2 1 1 2 0 8 0 amappl3 88 220 0 212 1 0 1 1 0 8 0 amappl2 80 1457 0 1400 3 1 2 2 0 8 0 amappl1 72 14723 0 14311 24 15 9 19 0 8 0 amappl 72 660 0 626 1 0 1 1 0 75 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 291 0 277 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 291 0 277 1 0 1 1 0 8 0 vmmpekpl 168 6223 0 6206 1 0 1 1 0 8 0 vmmpepl 168 37853 0 36362 96 17 79 83 0 357 13 vmsppl 264 290 0 277 2 1 1 2 0 8 0 pdppl 4096 588 0 554 6 1 5 6 0 8 0 pvpl 32 134716 0 121528 151 7 144 144 0 265 33 pmappl 200 290 0 277 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 334 0 14 10 0 10 10 0 8 0