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(ffffffff81f7c9ae,ffffffff81f2dda7,c4,ffffffff81f423d3) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff6d30) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800017a1c4c8,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800017a1c4c8,ffff8000149c64a0,ffff8000149c6510) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000149c6580) at syscall+0x511 Xsyscall(6,1,0,1,0,7f7ffffcc6f4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc6c0, 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(ffffffff81f7c9ae,ffffffff81f2dda7,c4,ffffffff81f423d3) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff6d30) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800017a1c4c8,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800017a1c4c8,ffff8000149c64a0,ffff8000149c6510) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000149c6580) at syscall+0x511 Xsyscall(6,1,0,1,0,7f7ffffcc6f4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc6c0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149c62a0 rbx 0xffff8000149c6350 rdx 0x2 rcx 0 rax 0 r8 0xffff8000149c6260 r9 0x1 r10 0 r11 0xbfd97393607d31c9 r12 0x3000000008 r13 0xffff8000149c62b0 r14 0x100 r15 0x1 rip 0xffffffff8195d478 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149c6290 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=355236 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800017a1d788,0xffffffff82297a38 process=0xffff8000ffff6d30 user=0xffff8000149c1000, vmspace=0xfffffd803f00be70 estcpu=36, cpticks=17, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 41521 175692 1 0 3 0x100083 ttyin getty 68480 366035 0 0 3 0x14200 bored sosplice 7003 211365 46076 0 2 0x482 syz-executor.0 93911 361632 46076 0 3 0x82 piperd syz-executor.1 46076 519256 1564 0 3 0x82 thrsleep syz-fuzzer 46076 157910 1564 0 3 0x4000082 thrsleep syz-fuzzer 46076 522876 1564 0 3 0x4000082 kqread syz-fuzzer 46076 318017 1564 0 3 0x4000082 thrsleep syz-fuzzer 46076 250839 1564 0 3 0x4000082 thrsleep syz-fuzzer 46076 92293 1564 0 3 0x4000082 thrsleep syz-fuzzer 46076 145809 1564 0 3 0x4000082 thrsleep syz-fuzzer 1564 1567 93263 0 3 0x10008a pause ksh 93263 64026 99088 0 3 0x92 select sshd 99088 429804 1 0 3 0x80 select sshd 19320 497120 68381 73 3 0x100090 kqread syslogd 68381 407312 1 0 3 0x100082 netio syslogd 61036 39175 1 77 3 0x100090 poll dhclient 25735 72240 1 0 3 0x80 poll dhclient 11494 368956 0 0 3 0x14200 pgzero zerothread 30501 4683 0 0 3 0x14200 aiodoned aiodoned 59900 250719 0 0 3 0x14200 syncer update 21279 88470 0 0 3 0x14200 cleaner cleaner 9862 65404 0 0 3 0x14200 reaper reaper 76248 292155 0 0 3 0x14200 pgdaemon pagedaemon 69349 145645 0 0 3 0x14200 bored crynlk 56394 230841 0 0 3 0x14200 bored crypto 35976 79800 0 0 3 0x40014200 acpi0 acpi0 26779 315489 0 0 3 0x14200 bored softnet 24985 194270 0 0 3 0x14200 bored systqmp 3077 184181 0 0 3 0x14200 bored systq 32424 107205 0 0 3 0x40014200 bored softclock 71059 14750 0 0 3 0x40014200 idle0 71182 25264 0 0 3 0x14200 bored smr 1 448962 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 9500 6354K 7365K 78643K 12161 0 0 pcb 23 9K 11K 78643K 923 0 0 rtable 111 4K 4K 78643K 514 0 0 ifaddr 55 13K 14K 78643K 220 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 94 0 0 iov 0 0K 28K 78643K 213 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 76K 78643K 2291 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 21 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 80 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 4 9K 25K 78643K 1601 0 0 sigio 0 0K 0K 78643K 14 0 0 proc 46 38K 62K 78643K 520 0 0 subproc 32 2K 2K 78643K 34 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 141 0 0 in_multi 33 2K 2K 78643K 73 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 2 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 300 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 81 20K 29K 78643K 4608 0 0 UVM aobj 75 3K 3K 78643K 79 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 76 0 0 NDP 11 0K 0K 78643K 58 0 0 temp 163 2711K 3341K 78643K 7541 0 0 kqueue 0 0K 0K 78643K 16 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 703 0 696 1 0 1 1 0 8 0 plimitpl 152 41 0 34 1 0 1 1 0 8 0 rtentry 112 47 0 3 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 244 0 240 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 35 0 35 6 5 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 4 2 1 1 1 0 8 0 semapl 112 78 0 68 1 0 1 1 0 8 0 shmpl 112 77 0 4 4 1 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4274 0 2843 47 0 47 47 0 8 0 ffsino 240 4274 0 2843 85 0 85 85 0 8 0 nchpl 144 6729 0 5096 61 0 61 61 0 8 0 uvmvnodes 72 4745 0 0 87 0 87 87 0 8 0 vnodes 200 4745 0 0 250 0 250 250 0 8 0 namei 1024 20141 0 20141 2 1 1 1 0 8 1 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 21082 0 21082 17 16 1 4 0 8 1 sigapl 432 1774 0 1761 2 0 2 2 0 8 0 futexpl 56 24247 0 24247 1 0 1 1 0 8 1 knotepl 112 337 0 318 1 0 1 1 0 8 0 kqueuepl 104 380 0 378 1 0 1 1 0 8 0 pipepl 112 1084 0 1065 3 2 1 2 0 8 0 fdescpl 424 1775 0 1762 2 0 2 2 0 8 0 filepl 120 10550 0 10456 5 1 4 5 0 8 1 lockfpl 104 560 0 560 2 1 1 1 0 8 1 lockfspl 48 200 0 200 2 1 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 35 0 25 1 0 1 1 0 8 0 ucredpl 96 2361 0 2354 1 0 1 1 0 8 0 zombiepl 144 1762 0 1761 2 1 1 1 0 8 0 processpl 840 1790 0 1761 4 0 4 4 0 8 0 procpl 600 3838 0 3803 4 0 4 4 0 8 0 sosppl 128 22 0 22 6 5 1 1 0 8 1 sockpl 384 1486 0 1469 5 2 3 4 0 8 1 mcl64k 65536 334 0 334 36 35 1 32 0 8 1 mcl16k 16384 4 0 4 4 4 0 1 0 8 0 mcl12k 12288 18 0 18 8 7 1 1 0 8 1 mcl9k 9216 32 0 32 8 7 1 1 0 8 1 mcl8k 8192 25 0 25 8 7 1 1 0 8 1 mcl4k 4096 57 0 57 8 7 1 1 0 8 1 mcl2k2 2112 10 0 10 5 4 1 1 0 8 1 mcl2k 2048 51014 0 50971 18 11 7 11 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 91264 0 91193 29 23 6 21 0 8 1 bufpl 256 9814 0 5296 283 0 283 283 0 8 0 anonpl 16 167436 0 158826 100 58 42 51 0 62 6 amapchunkpl 152 8011 0 7922 35 26 9 18 0 158 5 amappl16 192 8513 0 8056 84 61 23 35 0 8 0 amappl15 184 817 0 815 1 0 1 1 0 8 0 amappl14 176 851 0 848 2 1 1 1 0 8 0 amappl12 160 773 0 768 1 0 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 63 0 61 2 1 1 1 0 8 0 amappl9 136 507 0 504 1 0 1 1 0 8 0 amappl8 128 134 0 120 1 0 1 1 0 8 0 amappl7 120 29 0 26 1 0 1 1 0 8 0 amappl6 112 55 0 47 1 0 1 1 0 8 0 amappl5 104 976 0 964 1 0 1 1 0 8 0 amappl4 96 1181 0 1158 1 0 1 1 0 8 0 amappl3 88 970 0 958 1 0 1 1 0 8 0 amappl2 80 14235 0 14168 4 2 2 3 0 8 0 amappl1 72 40095 0 39670 25 15 10 19 0 8 0 amappl 80 4095 0 4059 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 78 0 4 2 0 2 2 0 8 0 uaddrrnd 24 1775 0 1761 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1775 0 1761 1 0 1 1 0 8 0 vmmpekpl 168 15205 0 15183 2 0 2 2 0 8 0 vmmpepl 168 185259 0 183811 145 78 67 88 0 357 0 vmsppl 264 1774 0 1761 2 1 1 2 0 8 0 pdppl 4096 3557 0 3522 6 1 5 6 0 8 0 pvpl 32 476397 0 464389 202 83 119 130 0 265 21 pmappl 200 1774 0 1761 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 498 0 91 13 0 13 13 0 8 0