panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: 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(ffffffff83103a00) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830b5f87,ffffffff830883c7,bc,ffffffff8303af61) at __assert+0x29 unveil_destroy(ffff8000327f6ae8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000376b8cd8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000376b8cd8,ffff80003770dd70,ffff80003770dcc0) at sys_exit+0x1a syscall(ffff80003770dd70) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77f37b962170, 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 *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(ffffffff83103a00) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830b5f87,ffffffff830883c7,bc,ffffffff8303af61) at __assert+0x29 unveil_destroy(ffff8000327f6ae8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000376b8cd8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000376b8cd8,ffff80003770dd70,ffff80003770dcc0) at sys_exit+0x1a syscall(ffff80003770dd70) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77f37b962170, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80003770dac0 rbx 0xffff8000327f6ae8 rdx 0 rcx 0 rax 0xffff8000376b8cd8 r8 0 r9 0x8080808080808080 r10 0x9514bfaefa8fcb60 r11 0x26d6fef1177e6be4 r12 0 r13 0x2 r14 0 r15 0x1 rip 0xffffffff81e36145 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003770dab0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=266080 pid=95141 tcnt=0 stat=onproc flags process=1018 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000376b8cd8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff8000376b8030,0xffff80003765af78 process=0xffff8000327f6ae8 user=0xffff800037708000, vmspace=0xfffffd806c209430 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 66290 80497 52695 0 2 0x480 syz-executor 66290 490478 52695 0 3 0x4000080 sbwait syz-executor 66290 124345 52695 0 3 0x4000080 sbwait syz-executor 86628 356047 81811 0 2 0 syz-executor 86628 267919 81811 0 3 0x4000080 fsleep syz-executor 14616 414023 90249 0 2 0 syz-executor 14616 517137 90249 0 3 0x4000080 fsleep syz-executor 29261 286925 0 0 3 0x14200 acct acct 51293 12363 86467 0 2 0x2 syz-executor 83211 11929 0 0 3 0x14280 nfsidl nfsio 48865 353924 0 0 3 0x14280 nfsidl nfsio 9641 447133 0 0 3 0x14280 nfsidl nfsio 10621 318211 0 0 3 0x14280 nfsidl nfsio 15054 283816 0 0 3 0x14280 nfsidl nfsio 64445 389078 0 0 3 0x14280 nfsidl nfsio 11775 419710 0 0 3 0x14280 nfsidl nfsio 7076 136906 0 0 3 0x14280 nfsidl nfsio 26534 64773 0 0 3 0x14280 nfsidl nfsio 49034 433144 0 0 3 0x14280 nfsidl nfsio 92328 447368 0 0 3 0x14280 nfsidl nfsio 14851 269607 0 0 3 0x14280 nfsidl nfsio 7535 218409 0 0 3 0x14280 nfsidl nfsio 67230 259917 0 0 3 0x14280 nfsidl nfsio 13949 311667 0 0 3 0x14280 nfsidl nfsio 66213 40399 0 0 3 0x14280 nfsidl nfsio 95961 155628 0 0 3 0x14280 nfsidl nfsio 60820 26746 0 0 3 0x14280 nfsidl nfsio 47457 43197 0 0 3 0x14280 nfsidl nfsio 99808 33909 0 0 3 0x14280 nfsidl nfsio 90206 364506 0 0 3 0x14200 bored sosplice 81811 305474 86467 0 2 0x3 syz-executor 22400 315031 86467 0 2 0x3 syz-executor 49722 303334 86467 0 2 0x2 syz-executor 43465 422016 86467 0 2 0x2 syz-executor 15138 139938 86467 0 2 0x2 syz-executor 52695 386244 86467 0 2 0x3 syz-executor 90249 31572 86467 0 2 0x482 syz-executor 86467 24129 43470 0 2 0x3 syz-executor 43470 516580 95471 0 3 0x10008a sigsusp ksh 95471 292731 40113 0 3 0x98 kqread sshd-session 40113 127899 81430 0 3 0x92 kqread sshd-session 40805 145269 1 0 3 0x100083 ttyin getty 81430 80533 1 0 3 0x88 kqread sshd 95543 222178 81198 73 2 0x1100090 syslogd 81198 232481 1 0 3 0x100082 sbwait syslogd 50266 521222 1 0 3 0x100080 kqread resolvd 97789 245654 17361 77 3 0x100092 kqread dhcpleased 65498 275624 17361 77 3 0x100092 kqread dhcpleased 17361 88833 1 0 3 0x80 kqread dhcpleased 52816 66265 0 0 3 0x14200 bored smr 2208 262131 0 0 2 0x14200 zerothread 15675 478897 0 0 3 0x14200 aiodoned aiodoned 66504 494659 0 0 3 0x14200 syncer update 75712 431520 0 0 3 0x14200 cleaner cleaner 67884 34995 0 0 2 0x14200 reaper 21357 314577 0 0 3 0x14200 pgdaemon pagedaemon 24433 382630 0 0 3 0x14200 bored viomb 54672 32979 0 0 3 0x40014200 acpi0 acpi0 86634 32436 0 0 3 0x14200 bored softnet3 53017 14183 0 0 3 0x14200 bored softnet2 41413 435259 0 0 3 0x14200 bored softnet1 81887 100479 0 0 3 0x14200 bored softnet0 35958 164448 0 0 3 0x14200 bored systqmp 58834 104868 0 0 3 0x14200 bored systq 75036 37131 0 0 3 0x40014200 tmoslp softclock 82516 496746 0 0 3 0x40014200 idle0 1 483054 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 devbuf 10180 11171K 11505K 166960K 11964 0 pcb 20 13K 14K 166960K 137 0 rtable 208 7K 7K 166960K 441 0 pf 31 13K 268K 166960K 43 0 ifaddr 39 7K 7K 166960K 57 0 ifgroup 46 2K 2K 166960K 63 0 sysctl 2 0K 0K 166960K 2 0 counters 29 17K 17K 166960K 33 0 ioctlops 0 0K 4K 166960K 61 0 iov 2 24K 24K 166960K 25 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1399 88K 88K 166960K 1782 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 53 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 14 49K 97K 166960K 542 0 sigio 0 0K 0K 166960K 9 0 proc 64 75K 124K 166960K 533 0 subproc 104 6K 6K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 48 0 in_multi 88 6K 7K 166960K 139 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 470 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 195 71K 83K 166960K 6491 0 UVM aobj 78 3K 3K 166960K 80 0 pinsyscall 36 72K 100K 166960K 1591 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 30 0 NDP 10 0K 2K 166960K 36 0 temp 53 6814K 6878K 166960K 10725 0 kqueue 15 24K 28K 166960K 98 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 63 0 60 1 0 1 1 0 8 0 rtentry 112 134 0 40 4 0 4 4 0 8 0 unpcb 144 478 0 461 9 3 6 6 0 8 5 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 178 0 173 8 7 1 8 0 8 0 arp 88 23 0 4 1 0 1 1 0 8 0 ipq 40 3 0 1 1 0 1 1 0 8 0 ipqe 40 48 0 46 1 0 1 1 0 8 0 inpcb 336 719 0 706 7 5 2 7 0 8 0 nd6 104 29 0 8 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 1 0 1 0 8 0 pfstitem 24 1 0 0 1 0 1 1 0 8 0 pfstkey 128 3 0 2 2 1 1 1 0 8 0 pfstate 344 2 0 1 2 1 1 1 0 8 0 pfrule 1344 1 0 0 1 0 1 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 619 0 219 29 2 27 29 0 8 0 art_table 32 622 0 219 4 0 4 4 0 8 0 art_node 16 133 0 49 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 1 1 0 1 1 0 8 0 semapl 112 51 0 41 1 0 1 1 0 8 0 shmpl 112 77 0 2 3 0 3 3 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2303 0 808 94 0 94 94 0 8 0 ffsino 240 2303 0 808 89 0 89 89 0 8 0 nchpl 144 3064 0 1392 63 0 63 63 0 8 0 uvmvnodes 80 2632 0 0 54 0 54 54 0 8 0 vnodes 216 2632 0 0 147 0 147 147 0 8 0 namei 1024 10227 0 10225 3 2 1 2 0 8 0 kstatmem 264 28 0 8 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 8732 0 8732 8 7 1 8 1 8 1 plimitpl 152 174 0 155 1 0 1 1 0 8 0 sigapl 424 843 0 778 8 0 8 8 0 8 0 futexpl 64 6964 0 6961 1 0 1 1 0 8 0 knotepl 120 25936 0 25888 29 13 16 17 0 8 14 kqueuepl 184 223 0 212 4 3 1 4 0 8 0 pipepl 288 142 0 115 4 1 3 3 0 8 0 fdescpl 432 804 0 778 5 1 4 5 0 8 0 filepl 120 4984 0 4734 16 4 12 13 0 8 3 lockfpl 104 101 0 98 1 0 1 1 0 8 0 lockfspl 48 44 0 41 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 36 0 20 1 0 1 1 0 8 0 ucredpl 104 981 0 969 1 0 1 1 0 8 0 zombiepl 144 839 0 838 2 1 1 1 0 8 0 processpl 1096 843 0 778 5 0 5 5 0 8 0 procpl 648 1470 0 1398 8 0 8 8 0 8 0 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 504 1265 0 1233 31 10 21 21 0 8 16 mcl64k 65536 6 0 6 1 1 0 1 0 8 0 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 11 0 11 1 1 0 1 0 8 0 mcl4k 4096 3193 0 3140 16 8 8 15 0 8 0 mcl2k 2048 618 0 609 3 1 2 3 0 8 0 mtagpl 96 115 0 105 2 0 2 2 0 8 0 mbufpl 256 9126 0 8955 22 7 15 21 0 8 0 bufpl 280 2905 0 95 201 0 201 201 0 8 0 anonpl 24 198323 0 195153 46 23 23 46 0 187 0 amapchunkpl 152 22104 0 21710 33 10 23 32 0 158 1 amappl16 200 5208 0 5182 14 11 3 14 0 8 0 amappl15 192 16 0 15 1 0 1 1 0 8 0 amappl14 184 115 0 105 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 1 0 1 0 8 0 amappl12 168 1434 0 1408 3 1 2 3 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 113 0 113 1 1 0 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 105 0 95 1 0 1 1 0 8 0 amappl6 120 169 0 167 1 0 1 1 0 8 0 amappl5 112 143 0 135 1 0 1 1 0 8 0 amappl4 104 292 0 275 1 0 1 1 0 8 0 amappl3 96 4013 0 3940 3 0 3 3 0 8 0 amappl2 88 1070 0 995 2 0 2 2 0 8 0 amappl1 80 8508 0 8000 14 2 12 14 0 8 0 amappl 88 6103 0 5962 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 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 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 8 0 8 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 79 0 2 2 0 2 2 0 8 0 uaddrrnd 24 804 0 777 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 804 0 777 1 0 1 1 0 8 0 vmmpekpl 168 7579 0 7538 3 0 3 3 0 8 0 vmmpepl 168 57215 0 55618 89 8 81 88 0 357 1 vmsppl 352 803 0 777 4 1 3 4 0 8 0 rwobjpl 24 22418 0 18892 22 0 22 22 0 8 0 pdppl 4096 1615 0 1554 101 34 67 83 0 8 6 pvpl 32 413929 0 406070 118 31 87 114 0 265 5 pmappl 216 803 0 777 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 421 0 83 11 0 11 11 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(ffffffff83103a00) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830b5f87,ffffffff830883c7,bc,ffffffff8303af61) at __assert+0x29 unveil_destroy(ffff8000327f6ae8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000376b8cd8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000376b8cd8,ffff80003770dd70,ffff80003770dcc0) at sys_exit+0x1a syscall(ffff80003770dd70) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77f37b962170, 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(ffffffff83103a00) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff830b5f87,ffffffff830883c7,bc,ffffffff8303af61) at __assert+0x29 unveil_destroy(ffff8000327f6ae8) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000376b8cd8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000376b8cd8,ffff80003770dd70,ffff80003770dcc0) at sys_exit+0x1a syscall(ffff80003770dd70) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77f37b962170, count: -8