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+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82768aae) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827e8b8a,ffffffff82766232,bc,ffffffff8278648f) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800021676be0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000ffff18b0,0,0,1) at exit1+0x3b5 sys/kern/kern_exit.c:220 sys_exit(ffff8000ffff18b0,ffff80002e719a60,ffff80002e719ab0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e719b30) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x766acbbd2ca0, 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+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82768aae) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827e8b8a,ffffffff82766232,bc,ffffffff8278648f) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800021676be0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000ffff18b0,0,0,1) at exit1+0x3b5 sys/kern/kern_exit.c:220 sys_exit(ffff8000ffff18b0,ffff80002e719a60,ffff80002e719ab0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e719b30) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x766acbbd2ca0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e719880 rbx 0x2 rdx 0 rcx 0 rax 0xffff8000ffff18b0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x857e033eb12e153f r11 0x9d222c269b5a5023 r12 0 r13 0xffff800021676be0 r14 0 r15 0x1 rip 0xffffffff81e754cc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002e719870 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.6) pid=144399 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff1b68,0xffff8000216d58b0 process=0xffff800021676be0 user=0xffff80002e714000, vmspace=0xfffffd8069d4d740 estcpu=36, cpticks=26, pctcpu=0.21 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51582 18956 53909 0 2 0 syz-executor.7 51582 198136 53909 0 2 0x4000000 syz-executor.7 51582 118322 53909 0 3 0x4000080 fsleep syz-executor.7 76390 372443 2843 0 2 0 syz-executor.3 76390 12073 2843 0 3 0x4000080 fsleep syz-executor.3 76390 381662 2843 0 3 0x4000080 fsleep syz-executor.3 76390 248479 2843 0 3 0x4000080 fsleep syz-executor.3 2792 192095 78746 0 2 0 syz-executor.0 2792 506004 78746 0 3 0x4000080 fsleep syz-executor.0 2792 440470 78746 0 3 0x4000080 fsleep syz-executor.0 53909 339698 10364 0 3 0x82 nanoslp syz-executor.7 2843 516464 10364 0 3 0x82 nanoslp syz-executor.3 56770 407347 10364 0 2 0x2 syz-executor.5 78746 305857 10364 0 3 0x82 nanoslp syz-executor.0 57103 1582 10364 0 2 0x2 syz-executor.2 37181 410007 10364 0 3 0x82 nanoslp syz-executor.6 466 345410 10364 0 2 0x2 syz-executor.4 46679 375316 0 0 3 0x14280 nfsidl nfsio 6319 373562 0 0 3 0x14280 nfsidl nfsio 14025 166979 0 0 3 0x14280 nfsidl nfsio 87885 192356 0 0 3 0x14280 nfsidl nfsio 80244 233693 0 0 3 0x14280 nfsidl nfsio 98188 257628 0 0 3 0x14280 nfsidl nfsio 99288 89868 0 0 3 0x14280 nfsidl nfsio 90889 461263 0 0 3 0x14280 nfsidl nfsio 64743 199284 0 0 3 0x14280 nfsidl nfsio 21962 239096 0 0 3 0x14280 nfsidl nfsio 7570 466911 0 0 3 0x14280 nfsidl nfsio 32019 466164 0 0 3 0x14280 nfsidl nfsio 27154 181820 0 0 3 0x14280 nfsidl nfsio 40931 217967 0 0 3 0x14280 nfsidl nfsio 63141 396642 0 0 3 0x14280 nfsidl nfsio 7500 208256 0 0 3 0x14280 nfsidl nfsio 63176 191702 0 0 3 0x14280 nfsidl nfsio 24814 415109 0 0 3 0x14280 nfsidl nfsio 20031 194516 0 0 3 0x14280 nfsidl nfsio 61834 407334 0 0 3 0x14280 nfsidl nfsio 22594 459439 0 0 3 0x14200 bored sosplice 60819 259865 10364 0 2 0x2 syz-executor.1 10364 192518 50904 0 3 0x82 thrsleep syz-fuzzer 10364 230675 50904 0 3 0x4000082 nanoslp syz-fuzzer 10364 237710 50904 0 3 0x4000082 wait syz-fuzzer 10364 278872 50904 0 3 0x4000082 wait syz-fuzzer 10364 144324 50904 0 3 0x4000082 wait syz-fuzzer 10364 136673 50904 0 3 0x4000082 thrsleep syz-fuzzer 10364 422599 50904 0 3 0x4000082 wait syz-fuzzer 10364 510981 50904 0 3 0x4000082 wait syz-fuzzer 10364 437404 50904 0 3 0x4000082 wait syz-fuzzer 10364 321972 50904 0 3 0x4000082 thrsleep syz-fuzzer 10364 426724 50904 0 3 0x4000082 wait syz-fuzzer 10364 85303 50904 0 3 0x4000082 kqread syz-fuzzer 10364 192889 50904 0 3 0x4000082 thrsleep syz-fuzzer 10364 490092 50904 0 3 0x4000082 wait syz-fuzzer 50904 136594 26876 0 3 0x10008a sigsusp ksh 26876 241587 90733 0 3 0x9a kqread sshd 11881 145943 1 0 3 0x100083 ttyin getty 90733 41351 1 0 3 0x88 kqread sshd 92377 395931 88884 73 3 0x1100090 kqread syslogd 88884 249159 1 0 3 0x100082 netio syslogd 95356 491456 1 0 3 0x100080 kqread resolvd 87203 308719 32920 77 3 0x100092 kqread dhcpleased 89546 112409 32920 77 3 0x100092 kqread dhcpleased 32920 495213 1 0 3 0x80 kqread dhcpleased 36198 492822 0 0 3 0x14200 bored smr 28497 42259 0 0 2 0x14200 zerothread 20149 337465 0 0 3 0x14200 aiodoned aiodoned 80045 258891 0 0 3 0x14200 syncer update 5022 72314 0 0 3 0x14200 cleaner cleaner 97675 360210 0 0 3 0x14200 reaper reaper 90706 441397 0 0 3 0x14200 pgdaemon pagedaemon 77181 449404 0 0 3 0x14200 bored viomb 34345 420509 0 0 3 0x40014200 acpi0 acpi0 36938 57377 0 0 3 0x14200 bored softnet3 89972 385291 0 0 3 0x14200 bored softnet2 75023 32805 0 0 3 0x14200 bored softnet1 72569 146262 0 0 3 0x14200 bored softnet0 83601 32501 0 0 3 0x14200 bored systqmp 44629 286167 0 0 3 0x14200 bored systq 66991 124242 0 0 2 0x40014200 softclock 56954 240868 0 0 3 0x40014200 idle0 1 413697 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 10184 6428K 6803K 78643K 23714 0 pcb 16 14K 19K 78643K 2435 0 rtable 178 15K 16K 78643K 3198 0 ifaddr 66 19K 23K 78643K 575 0 sysctl 3 1K 1K 78643K 6 0 counters 26 17K 17K 78643K 169 0 ioctlops 0 0K 4K 78643K 865 0 iov 0 0K 24K 78643K 1228 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1559 97K 98K 78643K 15640 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 93 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 1089 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 69K 78643K 10779 0 sigio 0 0K 0K 78643K 1751 0 proc 62 75K 83K 78643K 1510 0 subproc 104 6K 8K 78643K 480 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 2 0K 0K 78643K 1152 0 in_multi 68 4K 7K 78643K 569 0 ether_multi 1 0K 0K 78643K 38 0 mrt 1 0K 0K 78643K 367 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 151 678K 678K 78643K 151 0 exec 0 0K 1K 78643K 2163 0 pfkey data 0 0K 0K 78643K 13 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 379 95K 105K 78643K 102717 0 UVM aobj 131 4K 4K 78643K 143 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 340 0 NDP 11 0K 1K 78643K 203 0 temp 124 5858K 14054K 78643K 103536 0 kqueue 12 18K 26K 78643K 577 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 1993 0 1989 17 16 1 3 0 8 0 rtentry 112 707 0 633 4 0 4 4 0 8 0 unpcb 144 5873 0 5860 72 71 1 10 0 8 0 syncache 296 48 0 48 12 12 0 1 0 8 0 tcpqe 32 241 0 241 6 6 0 1 0 8 0 tcpcb 776 3995 0 3988 115 114 1 8 0 8 0 arp 88 130 0 116 1 0 1 1 0 8 0 ipq 40 9 0 9 5 5 0 1 0 8 0 ipqe 40 153 0 153 5 5 0 1 0 8 0 inpcb 336 9778 0 9764 142 140 2 15 0 8 0 ip6q 72 3 0 3 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 104 114 0 97 1 0 1 1 0 8 0 pkpcb 40 89 0 89 6 6 0 1 0 8 0 kcovpl 48 34 0 26 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 1 0 1 0 8 0 ppxss 1160 82 0 82 16 16 0 1 0 8 0 pppxif 1360 18 0 18 5 5 0 1 0 8 0 pfstscr 40 82 0 80 1 0 1 1 0 8 0 pfanchor 1288 889 331 377 43 0 43 43 0 8 0 pfstitem 24 11 0 8 1 0 1 1 0 8 0 pfstkey 128 150 0 140 1 0 1 1 0 8 0 pfstate 352 78 0 76 1 0 1 1 0 8 0 rttmr 136 28 0 28 3 3 0 1 0 8 0 art_heap8 4096 11 0 10 9 8 1 3 0 8 0 art_heap4 256 2546 0 2221 47 23 24 31 0 8 0 art_table 32 2557 0 2231 4 0 4 4 0 8 0 art_node 16 706 0 640 1 0 1 1 0 8 0 sysvmsgpl 40 70 0 41 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 1084 0 1074 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 15645 0 14198 91 0 91 91 0 8 0 ffsino 240 15645 0 14198 86 0 86 86 0 8 0 nchpl 144 30138 0 29668 63 42 21 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 112774 0 112773 12 11 1 4 0 8 0 kstatmem 264 252 0 230 2 0 2 2 0 8 0 scsiplug 72 6 0 6 2 2 0 1 0 8 0 scxspl 216 86804 0 86804 30 29 1 8 0 8 1 plimitpl 152 585 0 570 1 0 1 1 0 8 0 sigapl 424 11046 0 10983 9 1 8 8 0 8 0 futexpl 64 119701 0 119695 5 4 1 1 0 8 0 knotepl 120 125545 0 125465 105 101 4 16 0 8 0 kqueuepl 184 1674 0 1666 26 25 1 7 0 8 0 pipepl 288 1862 0 1834 51 48 3 7 0 8 0 fdescpl 432 11008 0 10983 4 0 4 4 0 8 0 filepl 120 77794 0 77548 168 156 12 17 0 8 4 lockfpl 104 3894 0 3892 7 6 1 2 0 8 0 lockfspl 48 922 0 920 1 0 1 1 0 8 0 sessionpl 144 49 0 33 1 0 1 1 0 8 0 pgrppl 48 68 0 52 1 0 1 1 0 8 0 ucredpl 104 6224 0 6214 1 0 1 1 0 8 0 zombiepl 144 13561 0 13560 1 0 1 1 0 8 0 processpl 1008 11046 0 10983 10 1 9 9 0 8 0 procpl 696 27788 0 27705 21 12 9 10 0 8 0 sosppl 168 63 0 63 14 13 1 1 0 8 1 sockpl 456 17749 0 17718 446 441 5 34 0 8 0 mcl64k 65536 338 0 338 40 39 1 1 0 8 1 mcl16k 16384 132 0 132 40 39 1 1 0 8 1 mcl12k 12288 358 0 358 41 40 1 1 0 8 1 mcl9k 9216 187 0 187 38 38 0 1 0 8 0 mcl8k 8192 440 0 440 44 44 0 1 0 8 0 mcl4k 4096 1678 0 1678 13 12 1 1 0 8 1 mcl2k2 2112 65 0 65 29 29 0 1 0 8 0 mcl2k 2048 96670 0 96627 76 69 7 27 0 8 0 mtagpl 96 325 0 314 6 5 1 5 0 8 0 mbufpl 256 245860 0 245744 395 381 14 73 0 8 0 bufpl 288 19767 0 13373 457 0 457 457 0 8 0 anonpl 24 1271033 0 1254778 219 115 104 159 0 188 0 amapchunkpl 152 349429 0 348581 156 117 39 61 0 158 0 amappl16 200 31622 0 31094 67 38 29 39 0 8 0 amappl15 192 39 0 39 1 1 0 1 0 8 0 amappl14 184 234 0 222 2 1 1 2 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 12010 0 11983 2 0 2 2 0 8 0 amappl11 160 50 0 39 1 0 1 1 0 8 0 amappl10 152 74 0 65 1 0 1 1 0 8 0 amappl9 144 221 0 220 2 1 1 2 0 8 0 amappl8 136 460 0 353 4 0 4 4 0 8 0 amappl7 128 98 0 79 1 0 1 1 0 8 0 amappl6 120 489 0 463 2 1 1 2 0 8 0 amappl5 112 426 0 420 1 0 1 1 0 8 0 amappl4 104 1024 0 992 2 1 1 2 0 8 0 amappl3 96 64341 0 64267 3 0 3 3 0 8 0 amappl2 88 11497 0 11436 4 2 2 3 0 8 0 amappl1 80 48962 0 48461 22 11 11 22 0 8 0 amappl 88 101816 0 101594 7 1 6 7 0 92 0 dma4096 4096 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 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 142 0 12 3 0 3 3 0 8 0 uaddrrnd 24 11008 0 10982 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11008 0 10982 1 0 1 1 0 8 0 vmmpekpl 168 79058 0 78998 4 0 4 4 0 8 0 vmmpepl 168 666311 0 664026 332 216 116 140 0 357 0 vmsppl 368 11007 0 10982 3 0 3 3 0 8 0 rwobjpl 24 169827 0 162200 48 1 47 47 0 8 0 pdppl 4096 22022 0 21964 709 645 64 66 0 8 6 pvpl 32 3371961 0 3350206 596 411 185 360 0 265 0 pmappl 216 11007 0 10982 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2227 0 1467 24 0 24 24 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82768aae) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827e8b8a,ffffffff82766232,bc,ffffffff8278648f) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800021676be0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000ffff18b0,0,0,1) at exit1+0x3b5 sys/kern/kern_exit.c:220 sys_exit(ffff8000ffff18b0,ffff80002e719a60,ffff80002e719ab0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e719b30) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x766acbbd2ca0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82768aae) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827e8b8a,ffffffff82766232,bc,ffffffff8278648f) at __assert+0x29 sys/kern/subr_prf.c:157 unveil_destroy(ffff800021676be0) at unveil_destroy+0x1a4 sys/kern/kern_unveil.c:188 exit1(ffff8000ffff18b0,0,0,1) at exit1+0x3b5 sys/kern/kern_exit.c:220 sys_exit(ffff8000ffff18b0,ffff80002e719a60,ffff80002e719ab0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e719b30) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x766acbbd2ca0, count: -8