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(ffff8000ffff73c0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff2270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff8000ffff2270,ffff800014970960,ffff8000149709d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800014970a40) at syscall+0x511 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe1388) 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(ffff8000ffff73c0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff2270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff8000ffff2270,ffff800014970960,ffff8000149709d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800014970a40) at syscall+0x511 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe1388) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014970760 rbx 0xffff800014970810 rdx 0x2 rcx 0 rax 0 r8 0xffff800014970720 r9 0x1 r10 0 r11 0x9bee61ada3888818 r12 0x3000000008 r13 0xffff800014970770 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014970750 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=210648 stat=onproc flags process=1018 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2bd0,0xffff8000ffff3540 process=0xffff8000ffff73c0 user=0xffff80001496b000, vmspace=0xfffffd803f014b58 estcpu=36, cpticks=7, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 82559 377581 36329 0 2 0 syz-executor.0 82559 232685 36329 0 3 0x4000080 piperd syz-executor.0 82559 323092 36329 0 3 0x4000080 fsleep syz-executor.0 74811 301649 1 0 3 0x100083 ttyin getty 36329 307422 80827 0 3 0x82 nanosleep syz-executor.0 11283 232969 0 0 3 0x14200 bored sosplice 12345 102203 80827 0 2 0x482 syz-executor.1 80827 79 23373 0 3 0x82 thrsleep syz-fuzzer 80827 417651 23373 0 3 0x4000082 thrsleep syz-fuzzer 80827 192335 23373 0 3 0x4000082 thrsleep syz-fuzzer 80827 418625 23373 0 3 0x4000082 thrsleep syz-fuzzer 80827 369084 23373 0 3 0x4000082 kqread syz-fuzzer 80827 54575 23373 0 3 0x4000082 thrsleep syz-fuzzer 80827 35937 23373 0 3 0x4000082 thrsleep syz-fuzzer 80827 334640 23373 0 3 0x4000082 thrsleep syz-fuzzer 23373 235242 27337 0 3 0x10008a pause ksh 27337 17880 92576 0 3 0x92 select sshd 92576 414286 1 0 3 0x80 select sshd 78760 158499 6854 73 3 0x100090 kqread syslogd 6854 227627 1 0 3 0x100082 netio syslogd 96743 302399 1 77 3 0x100090 poll dhclient 69942 208667 1 0 3 0x80 poll dhclient 91758 416644 0 0 2 0x14200 zerothread 44123 261348 0 0 3 0x14200 aiodoned aiodoned 75710 111503 0 0 3 0x14200 syncer update 79452 2866 0 0 3 0x14200 cleaner cleaner 16195 306063 0 0 3 0x14200 reaper reaper 43395 289548 0 0 3 0x14200 pgdaemon pagedaemon 32228 335306 0 0 3 0x14200 bored crynlk 99101 283968 0 0 3 0x14200 bored crypto 75774 305053 0 0 3 0x40014200 acpi0 acpi0 30167 27981 0 0 3 0x14200 bored softnet 34252 148709 0 0 3 0x14200 bored systqmp 49560 438221 0 0 3 0x14200 bored systq 74021 389231 0 0 3 0x40014200 bored softclock 59762 278553 0 0 3 0x40014200 idle0 17422 365809 0 0 3 0x14200 bored smr 1 263402 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 6963K 78643K 12309 0 0 pcb 23 9K 11K 78643K 371 0 0 rtable 108 3K 4K 78643K 576 0 0 ifaddr 49 12K 13K 78643K 152 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 43 0 0 iov 0 0K 20K 78643K 86 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 75K 76K 78643K 1839 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 50 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 768 0 0 sigio 0 0K 0K 78643K 24 0 0 proc 44 38K 62K 78643K 580 0 0 subproc 64 65538K 69634K 78643K 272 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 83 0 0 in_multi 33 2K 2K 78643K 125 0 0 ether_multi 1 0K 0K 78643K 7 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 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 301 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 84 20K 23K 78643K 2664 0 0 UVM aobj 34 2K 2K 78643K 37 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 26 0 0 NDP 9 0K 0K 78643K 48 0 0 temp 145 2706K 2834K 78643K 8236 0 0 kqueue 0 0K 0K 78643K 6 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 18 0 12 1 0 1 1 0 8 0 inpcbpl 280 360 0 353 1 0 1 1 0 8 0 plimitpl 152 58 0 51 1 0 1 1 0 8 0 rtentry 112 111 0 67 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 138 0 134 1 0 1 1 0 8 0 nd6 48 24 0 18 1 0 1 1 0 8 0 ppxss 1128 14 0 14 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 455 0 264 12 0 12 12 0 8 0 art_table 32 456 0 264 2 0 2 2 0 8 0 art_node 16 110 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 6 1 1 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 48 0 38 1 0 1 1 0 8 0 shmpl 112 35 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2430 0 997 47 0 47 47 0 8 0 ffsino 240 2430 0 997 85 0 85 85 0 8 0 nchpl 144 3596 0 1941 62 0 62 62 0 8 0 uvmvnodes 72 2973 0 0 55 0 55 55 0 8 0 vnodes 200 2973 0 0 157 0 157 157 0 8 0 namei 1024 10627 0 10627 2 1 1 1 0 8 1 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 20784 0 20784 12 11 1 6 0 8 1 sigapl 432 921 0 907 2 0 2 2 0 8 0 futexpl 56 10780 0 10779 1 0 1 1 0 8 0 knotepl 112 275 0 256 1 0 1 1 0 8 0 kqueuepl 104 152 0 150 1 0 1 1 0 8 0 pipepl 112 626 0 604 3 1 2 2 0 8 1 fdescpl 424 922 0 908 2 0 2 2 0 8 0 filepl 120 5055 0 4958 5 0 5 5 0 8 2 lockfpl 104 263 0 263 2 1 1 1 0 8 1 lockfspl 48 96 0 96 2 1 1 1 0 8 1 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 24 0 14 1 0 1 1 0 8 0 ucredpl 96 625 0 617 1 0 1 1 0 8 0 zombiepl 144 908 0 907 2 1 1 1 0 8 0 processpl 840 937 0 907 4 0 4 4 0 8 0 procpl 600 1759 0 1720 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 668 0 651 4 0 4 4 0 8 2 mcl64k 65536 18 0 18 3 2 1 1 0 8 1 mcl12k 12288 13 0 13 2 1 1 1 0 8 1 mcl9k 9216 6 0 6 3 3 0 1 0 8 0 mcl8k 8192 6 0 6 2 1 1 1 0 8 1 mcl4k 4096 31 0 31 3 2 1 1 0 8 1 mcl2k2 2112 4 0 4 2 2 0 1 0 8 0 mcl2k 2048 58944 0 58904 13 7 6 10 0 8 0 mtagpl 80 3 0 2 2 1 1 1 0 8 0 mbufpl 256 99965 0 99887 13 6 7 9 0 8 0 bufpl 256 24975 0 21868 199 1 198 198 0 8 0 anonpl 16 100167 0 89012 65 7 58 58 0 62 11 amapchunkpl 152 4769 0 4662 22 13 9 14 0 158 3 amappl16 192 4392 0 3776 49 9 40 43 0 8 8 amappl15 184 15 0 15 1 1 0 1 0 8 0 amappl14 176 67 0 65 2 1 1 1 0 8 0 amappl13 168 43 0 42 1 0 1 1 0 8 0 amappl12 160 138 0 135 2 1 1 1 0 8 0 amappl11 152 548 0 531 1 0 1 1 0 8 0 amappl10 144 72 0 72 3 2 1 1 0 8 1 amappl9 136 648 0 645 1 0 1 1 0 8 0 amappl8 128 196 0 178 1 0 1 1 0 8 0 amappl7 120 56 0 50 1 0 1 1 0 8 0 amappl6 112 523 0 515 1 0 1 1 0 8 0 amappl5 104 309 0 296 1 0 1 1 0 8 0 amappl4 96 1011 0 981 2 1 1 2 0 8 0 amappl3 88 270 0 264 1 0 1 1 0 8 0 amappl2 80 6535 0 6471 2 0 2 2 0 8 0 amappl1 72 26586 0 26155 24 15 9 19 0 8 0 amappl 72 2095 0 2057 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 36 0 3 1 0 1 1 0 8 0 uaddrrnd 24 922 0 907 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 922 0 907 1 0 1 1 0 8 0 vmmpekpl 168 10253 0 10234 1 0 1 1 0 8 0 vmmpepl 168 101760 0 100119 112 30 82 89 0 357 10 vmsppl 264 921 0 907 2 1 1 2 0 8 0 pdppl 4096 1850 0 1814 6 1 5 6 0 8 0 pvpl 32 340388 0 326092 200 28 172 189 0 265 52 pmappl 200 921 0 907 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 345 0 23 10 0 10 10 0 8 0