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(ffffffff81f77962,ffffffff81f278e3,c4,ffffffff81f3bb09) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff66a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff8260,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff8000ffff8260,ffff8000149d6050,ffff8000149d60c0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000149d6130) at syscall+0x511 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe7d38) 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(ffffffff81f77962,ffffffff81f278e3,c4,ffffffff81f3bb09) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff66a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff8260,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff8000ffff8260,ffff8000149d6050,ffff8000149d60c0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000149d6130) at syscall+0x511 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe7d38) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149d5e50 rbx 0xffff8000149d5f00 rdx 0x2 rcx 0 rax 0 r8 0xffff8000149d5e10 r9 0x1 r10 0 r11 0x4910f45531fa7139 r12 0x3000000008 r13 0xffff8000149d5e60 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149d5e40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=176435 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff9520,0xffffffff822b78f0 process=0xffff8000ffff66a0 user=0xffff8000149d1000, vmspace=0xfffffd803f014840 estcpu=36, cpticks=5, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 91725 89401 73095 0 3 0x82 nanosleep syz-executor.1 94904 520743 0 0 3 0x14200 bored sosplice 76948 197824 73095 0 2 0x2 syz-executor.0 73095 70691 52549 0 3 0x82 thrsleep syz-fuzzer 73095 332161 52549 0 3 0x4000082 thrsleep syz-fuzzer 73095 178528 52549 0 3 0x4000082 thrsleep syz-fuzzer 73095 135410 52549 0 3 0x4000082 thrsleep syz-fuzzer 73095 63897 52549 0 3 0x4000082 thrsleep syz-fuzzer 73095 493226 52549 0 3 0x4000082 thrsleep syz-fuzzer 73095 182506 52549 0 3 0x4000082 thrsleep syz-fuzzer 73095 273119 52549 0 3 0x4000082 kqread syz-fuzzer 52549 168145 90605 0 3 0x10008a pause ksh 90605 478247 41618 0 3 0x92 select sshd 25475 283239 1 0 3 0x100083 ttyin getty 41618 306031 1 0 3 0x80 select sshd 19560 44483 87663 73 3 0x100090 kqread syslogd 87663 51277 1 0 3 0x100082 netio syslogd 82671 116056 1 77 3 0x100090 poll dhclient 8215 132505 1 0 3 0x80 poll dhclient 53223 240685 0 0 3 0x14200 pgzero zerothread 77667 109438 0 0 3 0x14200 aiodoned aiodoned 68744 46828 0 0 3 0x14200 syncer update 7323 169199 0 0 3 0x14200 cleaner cleaner 53137 57088 0 0 3 0x14200 reaper reaper 38342 175104 0 0 3 0x14200 pgdaemon pagedaemon 51318 215776 0 0 3 0x14200 bored crynlk 45978 271686 0 0 3 0x14200 bored crypto 85922 310868 0 0 3 0x40014200 acpi0 acpi0 32966 96664 0 0 3 0x14200 bored softnet 10645 284067 0 0 3 0x14200 bored systqmp 45931 195966 0 0 3 0x14200 bored systq 68709 49816 0 0 3 0x40014200 bored softclock 76244 71765 0 0 3 0x40014200 idle0 45502 426309 0 0 3 0x14200 bored smr 1 306748 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 9479 6340K 6986K 78643K 12732 0 0 pcb 23 9K 10K 78643K 367 0 0 rtable 108 3K 4K 78643K 498 0 0 ifaddr 49 12K 12K 78643K 138 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 49 0 0 iov 0 0K 20K 78643K 72 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 76K 78643K 1966 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 8 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 118 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 4 9K 25K 78643K 884 0 0 sigio 0 0K 0K 78643K 14 0 0 proc 44 38K 62K 78643K 545 0 0 subproc 64 65538K 69634K 78643K 204 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 71 0 0 in_multi 33 2K 2K 78643K 95 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 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 275 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 79 20K 24K 78643K 2894 0 0 UVM aobj 29 5K 5K 78643K 31 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 28 0 0 NDP 9 0K 0K 78643K 41 0 0 temp 148 2706K 2834K 78643K 8405 0 0 kqueue 0 0K 0K 78643K 8 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 14 0 8 1 0 1 1 0 8 0 inpcbpl 280 335 0 328 1 0 1 1 0 8 0 plimitpl 152 69 0 62 1 0 1 1 0 8 0 rtentry 112 89 0 45 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 11 0 11 1 1 0 1 0 8 0 tcpcb 544 112 0 108 1 0 1 1 0 8 0 nd6 48 18 0 12 1 0 1 1 0 8 0 ppxss 1128 14 0 14 4 3 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 370 0 179 12 0 12 12 0 8 0 art_table 32 371 0 179 2 0 2 2 0 8 0 art_node 16 88 0 48 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 8 1 0 1 1 0 8 0 semapl 112 116 0 106 1 0 1 1 0 8 0 shmpl 112 29 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2647 0 1222 47 0 47 47 0 8 0 ffsino 240 2647 0 1222 85 0 85 85 0 8 0 nchpl 144 4004 0 2361 62 0 62 62 0 8 0 uvmvnodes 72 3274 0 0 60 0 60 60 0 8 0 vnodes 200 3274 0 0 173 0 173 173 0 8 0 namei 1024 12327 0 12326 2 1 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 22150 0 22150 12 11 1 6 0 8 1 sigapl 432 1042 0 1029 2 0 2 2 0 8 0 futexpl 56 13270 0 13270 1 0 1 1 0 8 1 knotepl 112 329 0 310 1 0 1 1 0 8 0 kqueuepl 104 187 0 185 1 0 1 1 0 8 0 pipepl 112 632 0 613 3 2 1 2 0 8 0 fdescpl 424 1043 0 1030 2 0 2 2 0 8 0 filepl 120 5972 0 5878 4 0 4 4 0 8 1 lockfpl 104 261 0 261 2 1 1 1 0 8 1 lockfspl 48 95 0 95 2 1 1 1 0 8 1 sessionpl 112 21 0 11 1 0 1 1 0 8 0 pgrppl 48 39 0 29 1 0 1 1 0 8 0 ucredpl 96 1279 0 1272 1 0 1 1 0 8 0 zombiepl 144 1030 0 1029 2 1 1 1 0 8 0 processpl 840 1058 0 1029 4 0 4 4 0 8 0 procpl 600 2080 0 2044 4 0 4 4 0 8 1 sosppl 128 6 0 6 2 2 0 1 0 8 0 sockpl 384 658 0 641 3 0 3 3 0 8 1 mcl64k 65536 10 0 10 2 2 0 1 0 8 0 mcl16k 16384 4 0 4 4 3 1 1 0 8 1 mcl12k 12288 11 0 11 4 3 1 1 0 8 1 mcl9k 9216 18 0 18 5 4 1 1 0 8 1 mcl8k 8192 15 0 15 3 2 1 1 0 8 1 mcl4k 4096 43 0 43 2 1 1 1 0 8 1 mcl2k2 2112 5 0 5 4 3 1 1 0 8 1 mcl2k 2048 58809 0 58765 14 7 7 11 0 8 1 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 100125 0 100040 16 6 10 11 0 8 1 bufpl 256 24329 0 21222 198 1 197 198 0 8 0 anonpl 16 102050 0 91215 64 18 46 58 0 62 0 amapchunkpl 152 4634 0 4532 10 5 5 7 0 158 0 amappl16 192 4625 0 4021 43 12 31 42 0 8 0 amappl15 184 203 0 203 1 1 0 1 0 8 0 amappl14 176 580 0 578 2 1 1 1 0 8 0 amappl13 168 14 0 13 2 1 1 1 0 8 0 amappl12 160 10 0 7 1 0 1 1 0 8 0 amappl11 152 53 0 39 1 0 1 1 0 8 0 amappl10 144 67 0 66 2 1 1 1 0 8 0 amappl9 136 676 0 670 1 0 1 1 0 8 0 amappl8 128 240 0 221 1 0 1 1 0 8 0 amappl7 120 50 0 46 1 0 1 1 0 8 0 amappl6 112 58 0 49 1 0 1 1 0 8 0 amappl5 104 173 0 161 1 0 1 1 0 8 0 amappl4 96 1111 0 1087 2 1 1 2 0 8 0 amappl3 88 410 0 405 1 0 1 1 0 8 0 amappl2 80 8037 0 7980 2 0 2 2 0 8 0 amappl1 72 28201 0 27777 23 13 10 19 0 8 0 amappl 72 2376 0 2341 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 30 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1043 0 1029 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1043 0 1029 1 0 1 1 0 8 0 vmmpekpl 168 10601 0 10582 2 0 2 2 0 8 0 vmmpepl 168 111274 0 109730 132 46 86 93 0 357 16 vmsppl 264 1042 0 1029 2 1 1 2 0 8 0 pdppl 4096 2092 0 2058 6 1 5 6 0 8 0 pvpl 32 300309 0 286464 169 33 136 150 0 265 20 pmappl 200 1042 0 1029 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 351 0 26 10 0 10 10 0 8 0