panic: kernel diagnostic assertion "ps->ps_uvncount == 0" faile d: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c ", line 188 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83037d30,bc,ffffffff82fead27) at __assert+0x29 unveil_destroy(ffff80002a467368) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4f8ce0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4f8ce0,ffff8000359f36b0,ffff8000359f3600) at sys_exit+0x1a syscall(ffff8000359f36b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b40f99a3050, count: 7 https://www.openbsd.org/ddb.html describes the minimum info req uired in bug reports. Insufficient info makes it difficult to find and fix b ugs. ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 188 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83037d30,bc,ffffffff82fead27) at __assert+0x29 unveil_destroy(ffff80002a467368) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4f8ce0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4f8ce0,ffff8000359f36b0,ffff8000359f3600) at sys_exit+0x1a syscall(ffff8000359f36b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b40f99a3050, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000359f3400 rbx 0xffff80002a467368 rdx 0 rcx 0 rax 0xffff80002a4f8ce0 r8 0 r9 0x8080808080808080 r10 0x38573d79914516 r11 0x40bdafd405d57e4 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff81cf7a65 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000359f33f0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=278880 pid=24667 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=83, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4f8ce0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4c2530,0xffff80002a48c7c0 process=0xffff80002a467368 user=0xffff8000359ee000, vmspace=0xfffffd806c16f418 estcpu=34, cpticks=0, pctcpu=0.25, user=0, sys=19, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 4437 339182 96618 0 2 0 syz-executor 4437 68167 96618 0 3 0x4000080 fsleep syz-executor 40454 295881 79630 0 2 0 syz-executor 40454 242796 79630 0 2 0x4000080 syz-executor 52062 483128 75463 0 2 0 syz-executor 52062 136572 75463 0 3 0x4000080 fsleep syz-executor 17786 497813 45202 0 3 0x3000 suspend syz-executor 17786 437472 45202 0 2 0x4081000 syz-executor 40209 496319 85426 0 3 0 vmmaplk syz-executor 40209 185942 85426 0 3 0x4000080 fsleep syz-executor 40209 67161 85426 0 2 0x4000000 syz-executor 5230 38892 1272 0 2 0 syz-executor 5230 65978 1272 0 2 0x4000000 syz-executor 5230 146807 1272 0 2 0x4000000 syz-executor 40100 339131 1 0 3 0x100083 ttyin getty 59394 304180 47409 0 2 0x2 syz-executor 96618 46503 47409 0 2 0x482 syz-executor 75463 384546 47409 0 2 0x482 syz-executor 79630 56707 47409 0 2 0x482 syz-executor 1272 338206 47409 0 3 0x82 wait syz-executor 85426 430732 47409 0 2 0x482 syz-executor 9874 26232 47409 0 2 0x482 syz-executor 45202 467075 47409 0 2 0x482 syz-executor 7881 281360 0 0 3 0x14200 bored sosplice 47409 333158 19031 0 3 0x82 kqread syz-executor 19031 431943 67848 0 3 0x10008a sigsusp ksh 67848 326082 6219 0 3 0x98 kqread sshd-session 6219 325007 40659 0 3 0x92 kqread sshd-session 40659 168695 1 0 3 0x88 kqread sshd 41243 4463 38355 73 2 0x1100010 syslogd 38355 52438 1 0 3 0x100082 sbwait syslogd 84238 264529 1 0 3 0x100080 kqread resolvd 22050 362413 40614 77 3 0x100092 kqread dhcpleased 91089 254791 40614 77 3 0x100092 kqread dhcpleased 40614 283761 1 0 3 0x80 kqread dhcpleased 80241 362357 0 0 2 0x14200 smr 35360 392263 0 0 2 0x14200 zerothread 61001 283650 0 0 3 0x14200 aiodoned aiodoned 74900 81119 0 0 3 0x14200 syncer update 92254 441005 0 0 3 0x14200 cleaner cleaner 24958 291925 0 0 3 0x14200 reaper reaper 3924 197011 0 0 3 0x14200 pgdaemon pagedaemon 1660 478319 0 0 3 0x14200 bored viomb 47179 328775 0 0 3 0x40014200 acpi0 acpi0 2666 487707 0 0 3 0x14200 bored softnet3 23311 151393 0 0 3 0x14200 bored softnet2 21866 238469 0 0 3 0x14200 bored softnet1 2260 280762 0 0 2 0x14200 softnet0 84880 183597 0 0 3 0x14200 bored systqmp 12237 133895 0 0 3 0x14200 bored systq 52926 108105 0 0 2 0x40014200 softclock 44269 145753 0 0 3 0x40014200 idle0 1 157289 0 0 3 0x80082 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 devbuf 10182 11071K 11299K 166960K 12109 0 pcb 17 14K 16K 166960K 215 0 rtable 200 6K 8K 166960K 3084 0 pf 33 13K 18K 166960K 234 0 ifaddr 38 7K 8K 166960K 408 0 ifgroup 54 2K 2K 166960K 425 0 sysctl 2 0K 0K 166960K 2 0 counters 31 17K 17K 166960K 126 0 ioctlops 0 0K 4K 166960K 243 0 iov 0 0K 16K 166960K 58 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1399 88K 88K 166960K 2917 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 11 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 24 0 dirhash 15 2K 3K 166960K 24 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 97K 166960K 2065 0 sigio 0 0K 0K 166960K 18 0 proc 65 75K 124K 166960K 2940 0 subproc 104 6K 6K 166960K 1222 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 74 0 in_multi 85 6K 7K 166960K 1077 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 1543 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 226 76K 108K 166960K 15392 0 UVM aobj 15 2K 2K 166960K 16 0 pinsyscall 38 76K 96K 166960K 5323 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 31 0 NDP 12 0K 1K 166960K 297 0 temp 49 6809K 6880K 166960K 113011 0 kqueue 13 20K 30K 166960K 112 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 252 0 249 1 0 1 1 0 8 0 rtentry 112 1081 0 992 4 0 4 4 0 8 1 unpcb 144 591 0 573 5 1 4 4 0 8 3 syncache 336 7 0 7 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 808 248 0 244 5 1 4 4 0 8 3 arp 88 195 0 181 1 0 1 1 0 8 0 ipq 40 11 0 8 1 0 1 1 0 8 0 ipqe 40 204 0 201 1 0 1 1 0 8 0 inpcb 336 1175 0 1168 14 5 9 9 0 8 8 nd6 104 288 0 270 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 94 0 86 1 0 1 1 0 8 0 ppxss 1072 5 0 5 2 1 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 3 0 3 1 1 0 1 0 8 0 pfanchor 1288 2 0 2 1 1 0 1 0 8 0 pfstkey 128 2 0 2 1 1 0 1 0 8 0 pfstate 344 1 0 1 1 1 0 1 0 8 0 pfrule 1344 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4350 0 3950 31 0 31 31 0 8 2 art_table 32 4351 0 3950 4 0 4 4 0 8 0 art_node 16 1079 0 997 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 1 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 21 0 11 1 0 1 1 0 8 0 shmpl 112 13 0 1 1 0 1 1 0 8 0 dirhash 1024 25 0 6 3 0 3 3 0 8 0 dino2pl 256 2828 0 1162 105 0 105 105 0 8 0 ffsino 240 2828 0 1162 99 0 99 99 0 8 0 nchpl 144 3971 0 2174 67 0 67 67 0 8 0 uvmvnodes 80 4309 0 0 88 0 88 88 0 8 0 vnodes 216 4309 0 0 240 0 240 240 0 8 0 namei 1024 20975 0 20975 3 1 2 2 0 8 2 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 kstatmem 264 214 0 190 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 38742 0 38742 10 7 3 8 1 8 3 plimitpl 152 208 0 192 1 0 1 1 0 8 0 sigapl 424 2195 0 2149 9 1 8 8 0 8 1 futexpl 64 9629 0 9625 1 0 1 1 0 8 0 knotepl 120 25249 0 25202 17 8 9 10 0 8 7 kqueuepl 184 171 0 161 1 0 1 1 0 8 0 pipepl 288 498 0 471 5 2 3 5 0 8 0 fdescpl 432 2156 0 2128 5 1 4 5 0 8 0 filepl 120 8722 0 8483 14 3 11 12 0 8 3 lockfpl 104 296 0 294 1 0 1 1 0 8 0 lockfspl 48 138 0 136 1 0 1 1 0 8 0 sessionpl 144 109 0 101 1 0 1 1 0 8 0 pgrppl 48 208 0 192 1 0 1 1 0 8 0 ucredpl 104 746 0 733 1 0 1 1 0 8 0 zombiepl 144 2470 0 2469 1 0 1 1 0 8 0 processpl 1096 2195 0 2149 5 0 5 5 0 8 1 procpl 648 3285 0 3231 8 1 7 7 0 8 1 sosppl 168 8 0 8 2 1 1 1 0 8 1 sockpl 504 2030 0 2002 24 12 12 16 0 8 7 mcl64k 65536 28 0 28 2 1 1 1 0 8 1 mcl16k 16384 10 0 10 2 1 1 1 0 8 1 mcl12k 12288 3 0 3 2 1 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 25 0 25 2 1 1 1 0 8 1 mcl4k 4096 3813 0 3758 17 8 9 16 0 8 1 mcl2k2 2112 3 0 3 2 1 1 1 0 8 1 mcl2k 2048 2520 0 2517 5 2 3 3 0 8 2 mtagpl 96 21 0 20 2 1 1 1 0 8 0 mbufpl 256 20544 0 20329 55 31 24 46 0 8 8 bufpl 280 9997 0 2177 560 0 560 560 0 8 0 anonpl 24 330399 0 327121 115 50 65 79 0 187 31 amapchunkpl 152 48444 0 47955 57 22 35 41 0 158 15 amappl16 200 4602 0 4583 26 18 8 14 0 8 6 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 279 0 269 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 4143 0 4114 3 1 2 3 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 40 0 40 1 1 0 1 0 8 0 amappl9 144 129 0 129 1 1 0 1 0 8 0 amappl8 136 56 0 55 1 0 1 1 0 8 0 amappl7 128 269 0 257 1 0 1 1 0 8 0 amappl6 120 1024 0 1023 1 0 1 1 0 8 0 amappl5 112 469 0 460 1 0 1 1 0 8 0 amappl4 104 557 0 542 1 0 1 1 0 8 0 amappl3 96 8899 0 8790 4 0 4 4 0 8 1 amappl2 88 1857 0 1795 2 0 2 2 0 8 0 amappl1 80 18450 0 17922 14 1 13 13 0 8 0 amappl 88 14375 0 14204 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 256 0 256 2 1 1 1 0 8 1 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 15 0 1 1 0 1 1 0 8 0 uaddrrnd 24 2156 0 2127 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2156 0 2127 1 0 1 1 0 8 0 vmmpekpl 168 18281 0 18222 3 0 3 3 0 8 0 vmmpepl 168 136686 0 134948 91 7 84 85 0 357 4 vmsppl 344 2155 0 2127 4 1 3 4 0 8 0 rwobjpl 24 44229 0 39055 32 0 32 32 0 8 0 pdppl 4096 4318 0 4254 234 168 66 82 0 8 2 pvpl 32 1065567 0 1054652 588 259 329 343 0 265 237 pmappl 216 2155 0 2127 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 613 0 237 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83037d30,bc,ffffffff82fead27) at __assert+0x29 unveil_destroy(ffff80002a467368) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4f8ce0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4f8ce0,ffff8000359f36b0,ffff8000359f3600) at sys_exit+0x1a syscall(ffff8000359f36b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b40f99a3050, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830b4120) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83068a43,ffffffff83037d30,bc,ffffffff82fead27) at __assert+0x29 unveil_destroy(ffff80002a467368) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff80002a4f8ce0,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff80002a4f8ce0,ffff8000359f36b0,ffff8000359f3600) at sys_exit+0x1a syscall(ffff8000359f36b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b40f99a3050, count: -8