panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 515854 98619 0 0x14000 0x200 0 reaper 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(ffffffff81f987de,ffffffff81f523f2,c4,ffffffff81f5c7b8) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3a6a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38270,ffff800020bfd120,ffff800020bfd190) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020bfd200) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020bfd200) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(0,1,0,1,431bde82d7b634db,7f7ffffd3178) 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 196 ddb{1}> 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(ffffffff81f987de,ffffffff81f523f2,c4,ffffffff81f5c7b8) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3a6a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38270,ffff800020bfd120,ffff800020bfd190) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020bfd200) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020bfd200) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(0,1,0,1,431bde82d7b634db,7f7ffffd3178) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020bfcf20 rbx 0xffff800020bfcfd0 rdx 0xffff800020b38270 rcx 0 rax 0 r8 0xffffffff81db28a3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xfe14f29d29d798aa r12 0x3000000008 r13 0xffff800020bfcf30 r14 0x100 r15 0x1 rip 0xffffffff81422368 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020bfcf10 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=366296 stat=onproc flags process=1018 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38720,0xffff800020b38e38 process=0xffff800020b3a6a0 user=0xffff800020bf8000, vmspace=0xfffffd806f245710 estcpu=36, cpticks=30, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82350 218961 95027 0 2 0x2 ndp 95027 389897 7809 0 3 0x10008a pause sh 7809 499021 65411 0 3 0x80 wait syz-executor.1 65411 117306 90713 0 3 0x82 wait syz-executor.1 24860 97071 69089 32767 3 0x90 nanosleep syz-executor.0 69089 353971 90713 0 3 0x82 wait syz-executor.0 89450 422295 0 0 3 0x14200 bored sosplice 90713 179641 3425 0 3 0x82 thrsleep syz-fuzzer 90713 181402 3425 0 3 0x4000082 thrsleep syz-fuzzer 90713 399404 3425 0 3 0x4000082 thrsleep syz-fuzzer 90713 115847 3425 0 3 0x4000082 thrsleep syz-fuzzer 90713 515781 3425 0 3 0x4000082 thrsleep syz-fuzzer 90713 231615 3425 0 3 0x4000082 thrsleep syz-fuzzer 90713 311777 3425 0 3 0x4000082 thrsleep syz-fuzzer 90713 205488 3425 0 3 0x4000082 thrsleep syz-fuzzer 90713 322162 3425 0 3 0x4000082 kqread syz-fuzzer 90713 157201 3425 0 3 0x4000082 thrsleep syz-fuzzer 90713 11845 3425 0 3 0x4000082 thrsleep syz-fuzzer 3425 397230 60631 0 3 0x10008a pause ksh 60631 64124 1584 0 3 0x92 select sshd 28969 382915 1 0 3 0x100083 ttyin getty 1584 522417 1 0 3 0x80 select sshd 95605 6376 88409 73 3 0x100090 kqread syslogd 88409 257016 1 0 3 0x100082 netio syslogd 68061 331857 1 77 3 0x100090 poll dhclient 51164 199238 1 0 3 0x80 poll dhclient 68917 482991 0 0 3 0x14200 pgzero zerothread 56675 293260 0 0 3 0x14200 aiodoned aiodoned 17566 409500 0 0 3 0x14200 syncer update 89947 353975 0 0 3 0x14200 cleaner cleaner 98619 515854 0 0 7 0x14200 reaper 895 377759 0 0 3 0x14200 pgdaemon pagedaemon 94803 154970 0 0 3 0x14200 bored crynlk 97511 97494 0 0 3 0x14200 bored crypto 58320 418094 0 0 3 0x40014200 acpi0 acpi0 42671 408007 0 0 3 0x40014200 idle1 98502 460997 0 0 3 0x14200 bored softnet 87275 242860 0 0 3 0x14200 bored systqmp 76806 230227 0 0 3 0x14200 bored systq 67054 12108 0 0 3 0x40014200 bored softclock 56098 299184 0 0 3 0x40014200 idle0 59259 398467 0 0 3 0x14200 bored smr 1 32675 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9460 6321K 6321K 78643K 10747 0 0 pcb 23 9K 11K 78643K 833 0 0 rtable 103 3K 3K 78643K 1958 0 0 ifaddr 36 11K 11K 78643K 285 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 68 0 0 iov 0 0K 16K 78643K 157 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 2125 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 24 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 206 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 8 25K 33K 78643K 1817 0 0 sigio 0 0K 0K 78643K 34 0 0 proc 44 50K 86K 78643K 2056 0 0 subproc 68 69634K 69634K 78643K 1428 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 214 0 0 in_multi 33 2K 2K 78643K 524 0 0 ether_multi 1 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 773 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 85 20K 29K 78643K 6787 0 0 UVM aobj 80 3K 3K 78643K 91 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 99 0 0 NDP 7 0K 0K 78643K 129 0 0 temp 121 2730K 2858K 78643K 14438 0 0 kqueue 0 0K 0K 78643K 20 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 86 0 80 1 0 1 1 0 8 0 inpcbpl 280 939 0 932 1 0 1 1 0 8 0 plimitpl 152 221 0 212 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 484 0 441 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 333 0 329 1 0 1 1 0 8 0 nd6 48 125 0 120 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1989 0 1799 13 1 12 13 0 8 0 art_table 32 1990 0 1799 2 0 2 2 0 8 0 art_node 16 483 0 444 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 4 1 0 1 1 0 8 0 semapl 112 204 0 194 1 0 1 1 0 8 0 shmpl 112 89 0 11 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3102 0 1623 48 0 48 48 0 8 0 ffsino 272 3102 0 1623 99 0 99 99 0 8 0 nchpl 144 5227 0 3576 62 0 62 62 0 8 0 uvmvnodes 72 3825 0 0 70 0 70 70 0 8 0 vnodes 200 3825 0 0 202 0 202 202 0 8 0 namei 1024 20186 0 20186 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 32179 0 32179 11 10 1 6 0 8 1 sigapl 432 1867 0 1850 5 3 2 3 0 8 0 futexpl 56 14397 0 14397 1 0 1 1 0 8 1 knotepl 112 1216 0 1195 1 0 1 1 0 8 0 kqueuepl 104 405 0 403 1 0 1 1 0 8 0 pipepl 112 1338 0 1319 4 3 1 2 0 8 0 fdescpl 488 1868 0 1851 3 0 3 3 0 8 0 filepl 152 11076 0 10979 10 5 5 7 0 8 1 lockfpl 104 462 0 462 4 3 1 1 0 8 1 lockfspl 48 135 0 135 4 3 1 1 0 8 1 sessionpl 112 57 0 47 1 0 1 1 0 8 0 pgrppl 48 79 0 69 1 0 1 1 0 8 0 ucredpl 96 2743 0 2735 1 0 1 1 0 8 0 zombiepl 144 1851 0 1850 2 1 1 1 0 8 0 processpl 840 1884 0 1850 4 0 4 4 0 8 0 procpl 600 4508 0 4463 4 0 4 4 0 8 0 srpgc 64 240 0 240 4 3 1 1 0 8 1 sosppl 128 38 0 38 8 8 0 1 0 8 0 sockpl 384 1811 0 1794 7 4 3 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 116 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 271 0 0 12 0 12 12 0 8 0 bufpl 256 33628 0 27414 390 1 389 390 0 8 0 anonpl 16 230577 0 224482 86 43 43 44 0 125 13 amapchunkpl 152 15209 0 15097 24 17 7 9 0 158 2 amappl16 192 9428 0 9045 87 59 28 31 0 8 8 amappl15 184 123 0 123 5 4 1 1 0 8 1 amappl14 176 548 0 544 2 1 1 1 0 8 0 amappl13 168 311 0 311 5 4 1 1 0 8 1 amappl12 160 187 0 185 1 0 1 1 0 8 0 amappl11 152 307 0 288 1 0 1 1 0 8 0 amappl10 144 403 0 401 2 1 1 1 0 8 0 amappl9 136 1196 0 1193 1 0 1 1 0 8 0 amappl8 128 673 0 657 1 0 1 1 0 8 0 amappl7 120 439 0 430 1 0 1 1 0 8 0 amappl6 112 172 0 162 1 0 1 1 0 8 0 amappl5 104 528 0 516 1 0 1 1 0 8 0 amappl4 96 2025 0 1995 2 1 1 2 0 8 0 amappl3 88 430 0 419 1 0 1 1 0 8 0 amappl2 80 11746 0 11693 2 0 2 2 0 8 0 amappl1 72 58977 0 58505 23 13 10 19 0 8 0 amappl 72 5398 0 5358 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 90 0 11 2 0 2 2 0 8 0 uaddrrnd 24 1868 0 1850 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1868 0 1850 1 0 1 1 0 8 0 vmmpekpl 168 18959 0 18933 2 0 2 2 0 8 0 vmmpepl 168 216237 0 214751 123 47 76 84 0 357 11 vmsppl 360 1867 0 1850 2 0 2 2 0 8 0 pdppl 4096 3744 0 3700 6 0 6 6 0 8 0 pvpl 32 636250 0 626335 178 62 116 116 0 265 29 pmappl 232 1867 0 1850 5 3 2 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 547 0 5 16 0 16 16 0 8 0