panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 152000 62717 0 0x2 0 1 syz-executor.0 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(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3b078) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b684c8,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b684c8,ffff800020c275a0,ffff800020c27610) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c27680) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c27680) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd9a08) 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 ddb{0}> 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(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3b078) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b684c8,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b684c8,ffff800020c275a0,ffff800020c27610) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c27680) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c27680) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd9a08) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c273a0 rbx 0xffff800020c27450 rdx 0xffff800020b684c8 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xa357756ec29786be r12 0x3000000008 r13 0xffff800020c273b0 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c27390 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=343839 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b692d8,0xffff800020b69540 process=0xffff800020b3b078 user=0xffff800020c22000, vmspace=0xfffffd807effeb40 estcpu=36, cpticks=8, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88723 395962 61456 0 2 0 syz-executor.1 88723 492180 61456 0 3 0x4000080 poll syz-executor.1 88723 195089 61456 0 3 0x4000080 poll syz-executor.1 62717 152000 85876 0 7 0x2 syz-executor.0 40569 136984 0 0 3 0x14200 bored sosplice 61456 439836 85876 0 2 0x482 syz-executor.1 85876 145741 87156 0 3 0x82 thrsleep syz-fuzzer 85876 52444 87156 0 3 0x4000082 thrsleep syz-fuzzer 85876 79519 87156 0 3 0x4000082 thrsleep syz-fuzzer 85876 173952 87156 0 3 0x4000082 thrsleep syz-fuzzer 85876 365754 87156 0 3 0x4000082 kqread syz-fuzzer 85876 251082 87156 0 3 0x4000082 thrsleep syz-fuzzer 85876 5803 87156 0 3 0x4000082 thrsleep syz-fuzzer 85876 464934 87156 0 3 0x4000082 thrsleep syz-fuzzer 85876 446498 87156 0 3 0x4000082 thrsleep syz-fuzzer 85876 396483 87156 0 3 0x4000082 thrsleep syz-fuzzer 87156 488052 34309 0 3 0x10008a pause ksh 34309 258059 83415 0 3 0x92 select sshd 5118 11795 1 0 3 0x100083 ttyin getty 83415 502531 1 0 3 0x80 select sshd 45452 481334 49973 74 3 0x100092 bpf pflogd 49973 263774 1 0 3 0x80 netio pflogd 47139 72537 23013 73 3 0x100090 kqread syslogd 23013 372207 1 0 3 0x100082 netio syslogd 79165 440195 1 77 3 0x100090 poll dhclient 82754 156907 1 0 3 0x80 poll dhclient 69769 311049 0 0 3 0x14200 pgzero zerothread 60103 327752 0 0 3 0x14200 aiodoned aiodoned 32247 248729 0 0 3 0x14200 syncer update 7216 88060 0 0 3 0x14200 cleaner cleaner 44301 36036 0 0 3 0x14200 reaper reaper 80826 379345 0 0 3 0x14200 pgdaemon pagedaemon 54355 410887 0 0 3 0x14200 bored crynlk 85128 378623 0 0 3 0x14200 bored crypto 50673 521275 0 0 3 0x40014200 acpi0 acpi0 32952 247708 0 0 3 0x40014200 idle1 7302 326596 0 0 3 0x14200 bored softnet 5425 238782 0 0 3 0x14200 bored systqmp 59806 249758 0 0 3 0x14200 bored systq 47060 267592 0 0 3 0x40014200 bored softclock 59671 341421 0 0 3 0x40014200 idle0 78148 67119 0 0 3 0x14200 bored smr 1 400587 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9507 6410K 6665K 78643K 11360 0 0 pcb 25 9K 10K 78643K 199 0 0 rtable 108 4K 4K 78643K 441 0 0 ifaddr 55 12K 12K 78643K 107 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1486 0 0 iov 0 0K 16K 78643K 34 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 75K 78643K 1528 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 11 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 181 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 25K 78643K 541 0 0 sigio 0 0K 0K 78643K 9 0 0 proc 56 63K 91K 78643K 570 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 32 0 0 in_multi 33 2K 2K 78643K 89 0 0 ether_multi 1 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 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 282 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 95 21K 22K 78643K 2647 0 0 UVM aobj 16 2K 2K 78643K 29 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 11 0K 0K 78643K 34 0 0 temp 151 2723K 2845K 78643K 7807 0 0 kqueue 0 0K 0K 78643K 2 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> 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 195 0 188 1 0 1 1 0 8 0 plimitpl 152 32 0 24 1 0 1 1 0 8 0 plcache 128 20 0 0 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 tcpcb 544 65 0 61 1 0 1 1 0 8 0 nd6 48 18 0 12 1 0 1 1 0 8 0 ppxss 1128 5 0 5 2 2 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 19 0 14 1 0 1 1 0 8 0 pfstkey 112 19 0 14 1 0 1 1 0 8 0 pfstate 328 19 0 14 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 369 0 179 12 0 12 12 0 8 0 art_table 32 370 0 179 2 0 2 2 0 8 0 art_node 16 88 0 48 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semapl 112 179 0 169 1 0 1 1 0 8 0 shmpl 112 27 0 13 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2080 0 650 47 0 47 47 0 8 0 ffsino 272 2080 0 650 96 0 96 96 0 8 0 nchpl 144 3150 0 1496 62 0 62 62 0 8 0 uvmvnodes 72 2363 0 0 43 0 43 43 0 8 0 vnodes 200 2363 0 0 125 0 125 125 0 8 0 namei 1024 8516 0 8516 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 18221 0 18221 9 8 1 6 0 8 1 sigapl 432 728 0 712 3 1 2 3 0 8 0 futexpl 56 6665 0 6665 1 0 1 1 0 8 1 knotepl 112 163 0 144 1 0 1 1 0 8 0 kqueuepl 104 66 0 64 1 0 1 1 0 8 0 pipepl 112 358 0 339 3 2 1 2 0 8 0 fdescpl 488 729 0 713 4 1 3 3 0 8 0 filepl 152 3481 0 3382 5 0 5 5 0 8 1 lockfpl 104 100 0 100 6 5 1 1 0 8 1 lockfspl 48 33 0 33 6 5 1 1 0 8 1 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 28 0 17 1 0 1 1 0 8 0 ucredpl 96 381 0 372 1 0 1 1 0 8 0 zombiepl 144 713 0 712 2 1 1 1 0 8 0 processpl 840 745 0 712 4 0 4 4 0 8 0 procpl 600 1771 0 1727 4 0 4 4 0 8 0 srpgc 64 24 0 24 4 4 0 1 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 481 0 462 3 0 3 3 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 127 0 0 15 0 15 15 0 8 0 mtagpl 80 2 0 0 1 0 1 1 0 8 0 mbufpl 256 207 0 0 12 0 12 12 0 8 0 bufpl 256 22361 0 16150 393 0 393 393 0 8 0 anonpl 16 80496 0 70997 75 28 47 61 0 125 2 amapchunkpl 152 4448 0 4330 18 12 6 10 0 158 0 amappl16 192 2960 0 2369 44 14 30 41 0 8 0 amappl15 184 218 0 217 1 0 1 1 0 8 0 amappl14 176 56 0 54 2 1 1 1 0 8 0 amappl13 168 164 0 164 4 4 0 1 0 8 0 amappl12 160 13 0 12 2 1 1 1 0 8 0 amappl11 152 63 0 44 1 0 1 1 0 8 0 amappl10 144 134 0 126 1 0 1 1 0 8 0 amappl9 136 700 0 697 1 0 1 1 0 8 0 amappl8 128 231 0 214 1 0 1 1 0 8 0 amappl7 120 94 0 88 1 0 1 1 0 8 0 amappl6 112 70 0 60 1 0 1 1 0 8 0 amappl5 104 162 0 148 1 0 1 1 0 8 0 amappl4 96 980 0 948 2 1 1 2 0 8 0 amappl3 88 125 0 119 1 0 1 1 0 8 0 amappl2 80 5274 0 5210 2 0 2 2 0 8 0 amappl1 72 26116 0 25643 25 15 10 20 0 8 0 amappl 72 2097 0 2055 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 28 0 13 1 0 1 1 0 8 0 uaddrrnd 24 729 0 712 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 729 0 712 1 0 1 1 0 8 0 vmmpekpl 168 9994 0 9969 2 0 2 2 0 8 0 vmmpepl 168 84905 0 83208 161 70 91 107 0 357 15 vmsppl 360 728 0 712 2 0 2 2 0 8 0 pdppl 4096 1466 0 1424 7 1 6 6 0 8 0 pvpl 32 308772 0 295486 181 43 138 152 0 265 20 pmappl 232 728 0 712 5 4 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 549 0 5 16 0 16 16 0 8 0