panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 200 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 429680 8741 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82201f4e,ffffffff821b1020,c8,ffffffff821bcb81) at __assert+0x2b sys/kern/subr_prf.c:154 unveil_destroy(ffff800020adc700) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020a898c8,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020a898c8,ffff800024f77740,ffff800024f77790) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800024f77810) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024f77810) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffe02e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe02b0, 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/setuid/kernel/sys/kern/kern_unveil.c", line 200 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:207 __assert(ffffffff82201f4e,ffffffff821b1020,c8,ffffffff821bcb81) at __assert+0x2b sys/kern/subr_prf.c:154 unveil_destroy(ffff800020adc700) at unveil_destroy+0x19f sys/kern/kern_unveil.c:200 exit1(ffff800020a898c8,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020a898c8,ffff800024f77740,ffff800024f77790) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800024f77810) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024f77810) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffe02e4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe02b0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800024f77550 rbx 0xffff800024f77600 rdx 0xffff800020a898c8 rcx 0 rax 0 r8 0xffffffff816953ef kprintf+0x16f r9 0x1 r10 0x25 r11 0x37c909f0aabd5845 r12 0x3000000008 r13 0xffff800024f77560 r14 0x100 r15 0x1 rip 0xffffffff8142c8c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024f77540 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=438088 stat=onproc flags process=1018 proc=2000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020a88ee8,0xffffffff82621120 process=0xffff800020adc700 user=0xffff800024f72000, vmspace=0xfffffd807f00b450 estcpu=31, cpticks=8, pctcpu=0.10 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 80126 12553 16988 32767 2 0x490 syz-executor.1 16988 63841 99066 0 3 0x82 wait syz-executor.1 31720 320848 0 0 3 0x14200 bored sosplice 99066 76674 68097 0 3 0x82 thrsleep syz-fuzzer 99066 381102 68097 0 3 0x4000082 thrsleep syz-fuzzer 99066 355586 68097 0 3 0x4000082 thrsleep syz-fuzzer 99066 570 68097 0 3 0x4000082 thrsleep syz-fuzzer 99066 14127 68097 0 3 0x4000082 kqread syz-fuzzer 99066 67659 68097 0 3 0x4000082 thrsleep syz-fuzzer 99066 316605 68097 0 3 0x4000082 thrsleep syz-fuzzer 99066 312377 68097 0 3 0x4000082 thrsleep syz-fuzzer 99066 87013 68097 0 3 0x4000082 thrsleep syz-fuzzer 99066 170253 68097 0 3 0x4000082 thrsleep syz-fuzzer 68097 366981 11435 0 3 0x10008a pause ksh 11435 327846 46137 0 3 0x92 select sshd 90196 307651 1 0 3 0x100083 ttyin getty 46137 321539 1 0 3 0x80 select sshd 40728 13560 38994 73 3 0x100090 kqread syslogd 38994 445258 1 0 3 0x100082 netio syslogd 15097 335266 1 77 3 0x100090 poll dhclient 77690 229723 1 0 3 0x80 poll dhclient 33331 379551 0 0 3 0x14200 pgzero zerothread 17554 438876 0 0 3 0x14200 aiodoned aiodoned 68423 423007 0 0 3 0x14200 syncer update 7183 37070 0 0 3 0x14200 cleaner cleaner 8741 429680 0 0 7 0x14200 reaper 31527 32003 0 0 3 0x14200 pgdaemon pagedaemon 86571 43657 0 0 3 0x14200 bored crynlk 77811 143881 0 0 3 0x14200 bored crypto 7784 142292 0 0 3 0x40014200 acpi0 acpi0 84066 182197 0 0 3 0x40014200 idle1 9883 521292 0 0 3 0x14200 bored softnet 86077 318959 0 0 3 0x14200 bored systqmp 12083 164286 0 0 3 0x14200 bored systq 168 477312 0 0 3 0x40014200 bored softclock 26781 441418 0 0 3 0x40014200 idle0 71501 55025 0 0 3 0x14200 bored smr 1 294087 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 9462 6320K 6322K 78643K 11254 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 85 2K 3K 78643K 5951 0 0 ifaddr 30 13K 15K 78643K 904 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 245 0 0 iov 0 0K 32K 78643K 923 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 4320 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 62 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 1627 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 33K 78643K 6164 0 0 sigio 0 0K 0K 78643K 119 0 0 proc 51 62K 83K 78643K 6858 0 0 subproc 17 1K 2K 78643K 2414 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 400 0 0 in_multi 22 1K 2K 78643K 1672 0 0 ether_multi 1 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 2751 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 121 14K 33K 78643K 22613 0 0 UVM aobj 130 5K 5K 78643K 151 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 571 0 0 NDP 4 0K 0K 78643K 429 0 0 temp 97 3553K 3634K 78643K 32274 0 0 kqueue 0 0K 0K 78643K 65 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 305 0 301 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 694 0 692 1 0 1 1 0 8 0 rtentry 112 1464 0 1430 2 0 2 2 0 8 0 unpcb 120 2912 0 2893 7 6 1 2 0 8 0 syncache 264 23 0 23 10 9 1 1 0 8 1 tcpqe 32 2918 0 2918 2 2 0 1 0 8 0 tcpcb 544 1847 0 1843 24 23 1 14 0 8 0 ipq 40 64 0 64 19 19 0 1 0 8 0 ipqe 40 257 0 257 19 19 0 1 0 8 0 inpcb 280 5998 0 5990 46 44 2 13 0 8 0 nd6 48 284 0 282 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 6443 0 6271 14 0 14 14 0 8 3 art_table 32 6444 0 6271 2 0 2 2 0 8 0 art_node 16 1463 0 1432 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 12 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1625 0 1615 1 0 1 1 0 8 0 shmpl 112 149 0 21 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7416 0 6011 46 0 46 46 0 8 0 ffsino 272 7416 0 6011 95 0 95 95 0 8 0 nchpl 144 14907 0 13284 62 1 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 77967 0 77967 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 47201 0 47201 36 35 1 7 0 8 1 plimitpl 152 1069 0 1062 1 0 1 1 0 8 0 sigapl 432 5915 0 5902 8 5 3 3 0 8 1 futexpl 56 92192 0 92192 3 2 1 1 0 8 1 knotepl 112 4336 0 4323 8 7 1 2 0 8 0 kqueuepl 104 2073 0 2071 6 5 1 4 0 8 0 pipepl 112 3970 0 3957 13 12 1 2 0 8 0 fdescpl 488 5916 0 5903 3 0 3 3 0 8 1 filepl 152 53896 0 53823 47 42 5 13 0 8 2 lockfpl 104 1074 0 1073 1 0 1 1 0 8 0 lockfspl 48 384 0 383 1 0 1 1 0 8 0 sessionpl 112 157 0 148 1 0 1 1 0 8 0 pgrppl 48 210 0 201 1 0 1 1 0 8 0 ucredpl 96 9085 0 9077 1 0 1 1 0 8 0 zombiepl 144 5903 0 5902 5 4 1 1 0 8 0 processpl 896 5932 0 5902 4 0 4 4 0 8 0 procpl 632 15896 0 15855 14 9 5 5 0 8 1 srpgc 64 282 0 282 22 21 1 1 0 8 1 sosppl 128 107 0 107 19 18 1 1 0 8 1 sockpl 384 10074 0 10046 82 77 5 22 0 8 1 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 34 0 0 2 0 2 2 0 8 0 mcl9k 9216 20 0 0 2 0 2 2 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 156 0 0 15 3 12 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 511 0 0 12 0 12 12 0 8 0 bufpl 256 23247 0 16203 441 0 441 441 0 8 0 anonpl 16 786663 0 779053 210 163 47 71 0 124 0 amapchunkpl 152 55613 0 55517 108 99 9 18 0 158 5 amappl16 192 30609 0 30100 271 244 27 50 0 8 0 amappl15 184 633 0 631 14 13 1 1 0 8 0 amappl14 176 1691 0 1687 2 1 1 1 0 8 0 amappl13 168 637 0 637 12 12 0 1 0 8 0 amappl12 160 755 0 750 2 1 1 1 0 8 0 amappl11 152 880 0 868 1 0 1 1 0 8 0 amappl10 144 631 0 624 1 0 1 1 0 8 0 amappl9 136 3032 0 3027 1 0 1 1 0 8 0 amappl8 128 2194 0 2141 3 1 2 2 0 8 0 amappl7 120 1177 0 1164 1 0 1 1 0 8 0 amappl6 112 554 0 535 1 0 1 1 0 8 0 amappl5 104 1827 0 1815 1 0 1 1 0 8 0 amappl4 96 6110 0 6083 1 0 1 1 0 8 0 amappl3 88 1357 0 1351 1 0 1 1 0 8 0 amappl2 80 36035 0 35969 4 2 2 3 0 8 0 amappl1 72 172276 0 171850 24 14 10 20 0 8 0 amappl 80 18366 0 18329 1 0 1 1 0 84 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 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 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 150 0 21 3 0 3 3 0 8 0 uaddrrnd 24 5916 0 5902 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5916 0 5902 1 0 1 1 0 8 0 vmmpekpl 168 55373 0 55347 2 0 2 2 0 8 0 vmmpepl 168 793046 0 791414 204 109 95 101 0 357 13 vmsppl 368 5915 0 5902 2 0 2 2 0 8 0 pdppl 4096 11839 0 11804 6 0 6 6 0 8 0 pvpl 32 2037292 0 2026080 426 314 112 177 0 265 0 pmappl 232 5915 0 5902 16 14 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 628 0 30 18 0 18 18 0 8 0