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(ffff8000ffff6d30) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000149f6270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff8000149f6270,ffff800014a12640,ffff800014a126b0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800014a12720) at syscall+0x511 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe0468) 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(ffff8000ffff6d30) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000149f6270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff8000149f6270,ffff800014a12640,ffff800014a126b0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800014a12720) at syscall+0x511 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe0468) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014a12440 rbx 0xffff800014a124f0 rdx 0x2 rcx 0 rax 0 r8 0xffff800014a12400 r9 0x1 r10 0 r11 0xf9f782c6375e1ff8 r12 0x3000000008 r13 0xffff800014a12450 r14 0x100 r15 0x1 rip 0xffffffff811f14c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a12430 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=108072 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000149f6018,0xffff8000149f7798 process=0xffff8000ffff6d30 user=0xffff800014a0d000, vmspace=0xfffffd803f013b58 estcpu=36, cpticks=6, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 19772 355353 42589 0 3 0x80 nanosleep syz-executor.0 19772 402321 42589 0 3 0x4000080 poll syz-executor.0 19772 426844 42589 0 3 0x4000080 fsleep syz-executor.0 52613 272303 0 0 3 0x14200 bored sosplice 42589 149160 69440 0 3 0x82 nanosleep syz-executor.0 69909 16352 1 0 3 0x100083 ttyin getty 64433 41124 69440 0 3 0x82 nanosleep syz-executor.1 69440 196940 44208 0 3 0x82 thrsleep syz-fuzzer 69440 460979 44208 0 3 0x4000082 thrsleep syz-fuzzer 69440 235354 44208 0 2 0x4000482 syz-fuzzer 69440 323741 44208 0 3 0x4000082 thrsleep syz-fuzzer 69440 365575 44208 0 3 0x4000082 kqread syz-fuzzer 69440 29401 44208 0 3 0x4000082 thrsleep syz-fuzzer 69440 72522 44208 0 3 0x4000082 thrsleep syz-fuzzer 44208 206971 749 0 3 0x10008a pause ksh 749 191365 61571 0 3 0x92 select sshd 61571 475207 1 0 3 0x80 select sshd 39105 362305 8798 73 3 0x100090 kqread syslogd 8798 175946 1 0 3 0x100082 netio syslogd 96928 226611 1 77 3 0x100090 poll dhclient 81792 37729 1 0 3 0x80 poll dhclient 59667 157204 0 0 3 0x14200 pgzero zerothread 58270 214417 0 0 3 0x14200 aiodoned aiodoned 10213 202800 0 0 3 0x14200 syncer update 33803 123907 0 0 3 0x14200 cleaner cleaner 90840 353129 0 0 3 0x14200 reaper reaper 62272 372311 0 0 3 0x14200 pgdaemon pagedaemon 83621 157392 0 0 3 0x14200 bored crynlk 26965 91994 0 0 3 0x14200 bored crypto 90176 290298 0 0 3 0x40014200 acpi0 acpi0 92487 479038 0 0 3 0x14200 bored softnet 22794 170234 0 0 3 0x14200 bored systqmp 5843 331550 0 0 3 0x14200 bored systq 53928 92502 0 0 3 0x40014200 bored softclock 5769 227950 0 0 3 0x40014200 idle0 25207 77754 0 0 3 0x14200 bored smr 1 385240 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 9505 6349K 6725K 78643K 11569 0 0 pcb 23 9K 10K 78643K 285 0 0 rtable 108 3K 4K 78643K 320 0 0 ifaddr 57 12K 13K 78643K 99 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 34 0 0 iov 0 0K 12K 78643K 40 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1194 75K 75K 78643K 1534 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 6 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 48 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 1229 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 44 38K 62K 78643K 384 0 0 subproc 64 65538K 69634K 78643K 102 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 35 0 0 in_multi 33 2K 2K 78643K 64 0 0 ether_multi 1 0K 0K 78643K 4 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 203 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 88 20K 25K 78643K 3439 0 0 UVM aobj 22 3K 3K 78643K 28 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 12 0K 0K 78643K 28 0 0 temp 150 2706K 2833K 78643K 9125 0 0 kqueue 0 0K 0K 78643K 4 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 8 0 2 1 0 1 1 0 8 0 inpcbpl 280 200 0 193 1 0 1 1 0 8 0 plimitpl 152 704 0 696 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 74 0 70 1 0 1 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 ppxss 1128 9 0 9 3 3 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 236 0 44 12 0 12 12 0 8 0 art_table 32 237 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 46 0 36 1 0 1 1 0 8 0 shmpl 112 26 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2833 0 1427 46 0 46 46 0 8 0 ffsino 240 2833 0 1427 84 0 84 84 0 8 0 nchpl 144 4447 0 2814 61 0 61 61 0 8 0 uvmvnodes 72 3093 0 0 57 0 57 57 0 8 0 vnodes 200 3093 0 0 163 0 163 163 0 8 0 namei 1024 17045 0 17045 2 1 1 1 0 8 1 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 25274 0 25274 10 9 1 6 0 8 1 sigapl 432 1397 0 1383 2 0 2 2 0 8 0 futexpl 56 17576 0 17575 1 0 1 1 0 8 0 knotepl 112 1047 0 1028 1 0 1 1 0 8 0 kqueuepl 104 1208 0 1206 1 0 1 1 0 8 0 pipepl 112 462 0 443 3 2 1 2 0 8 0 fdescpl 424 1398 0 1384 2 0 2 2 0 8 0 filepl 120 10103 0 10006 4 0 4 4 0 8 1 lockfpl 104 119 0 119 2 1 1 1 0 8 1 lockfspl 48 43 0 43 2 1 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 4401 0 4394 1 0 1 1 0 8 0 zombiepl 144 1384 0 1383 2 1 1 1 0 8 0 processpl 840 1413 0 1383 4 0 4 4 0 8 0 procpl 600 2765 0 2727 4 0 4 4 0 8 0 sosppl 128 4 0 4 2 2 0 1 0 8 0 sockpl 384 424 0 407 4 1 3 3 0 8 1 mcl64k 65536 240 0 240 31 30 1 29 0 8 1 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 7 0 7 3 3 0 1 0 8 0 mcl9k 9216 6 0 6 2 2 0 1 0 8 0 mcl8k 8192 5 0 5 3 3 0 1 0 8 0 mcl4k 4096 25 0 25 4 3 1 1 0 8 1 mcl2k2 2112 4 0 4 2 2 0 1 0 8 0 mcl2k 2048 58426 0 58392 12 7 5 10 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 99025 0 98955 21 14 7 19 0 8 0 bufpl 256 26544 0 23437 199 1 198 198 0 8 0 anonpl 16 115016 0 104172 74 22 52 58 0 62 7 amapchunkpl 152 5043 0 4905 10 2 8 8 0 158 2 amappl16 192 6242 0 5678 55 24 31 41 0 8 2 amappl14 176 107 0 104 2 1 1 1 0 8 0 amappl13 168 663 0 661 1 0 1 1 0 8 0 amappl12 160 12 0 10 1 0 1 1 0 8 0 amappl11 152 505 0 491 1 0 1 1 0 8 0 amappl10 144 65 0 64 2 1 1 1 0 8 0 amappl9 136 553 0 549 1 0 1 1 0 8 0 amappl8 128 140 0 123 1 0 1 1 0 8 0 amappl7 120 33 0 29 1 0 1 1 0 8 0 amappl6 112 504 0 497 1 0 1 1 0 8 0 amappl5 104 193 0 179 1 0 1 1 0 8 0 amappl4 96 2251 0 2223 2 1 1 2 0 8 0 amappl3 88 130 0 125 1 0 1 1 0 8 0 amappl2 80 11241 0 11177 2 0 2 2 0 8 0 amappl1 72 31397 0 30967 23 13 10 19 0 8 0 amappl 72 3013 0 2967 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 27 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1398 0 1383 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1398 0 1383 1 0 1 1 0 8 0 vmmpekpl 168 11557 0 11539 1 0 1 1 0 8 0 vmmpepl 168 140351 0 138763 123 49 74 86 0 357 4 vmsppl 264 1397 0 1383 2 1 1 2 0 8 0 pdppl 4096 2802 0 2766 6 1 5 6 0 8 0 pvpl 32 328923 0 315008 176 37 139 145 0 265 25 pmappl 200 1397 0 1383 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 383 0 64 11 0 11 11 0 8 0