Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/miscfs/genfs genfs_do_putpages(): add a missing call to ...



details:   https://anonhg.NetBSD.org/src/rev/475fac68315f
branches:  trunk
changeset: 847274:475fac68315f
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Dec 16 18:17:32 2019 +0000

description:
genfs_do_putpages(): add a missing call to uvm_page_array_advance().

Spotted by the automated test runs and:

Reported-by: syzbot+adc1f0ce21bcece5307d%syzkaller.appspotmail.com@localhost

diffstat:

 sys/miscfs/genfs/genfs_io.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 9c3f49d582b9 -r 475fac68315f sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c       Mon Dec 16 15:59:04 2019 +0000
+++ b/sys/miscfs/genfs/genfs_io.c       Mon Dec 16 18:17:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_io.c,v 1.80 2019/12/16 08:50:42 ad Exp $ */
+/*     $NetBSD: genfs_io.c,v 1.81 2019/12/16 18:17:32 ad Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.80 2019/12/16 08:50:42 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.81 2019/12/16 18:17:32 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -978,6 +978,7 @@
                if (pg->flags & (PG_RELEASED|PG_PAGEOUT)) {
                        wasclean = false;
                        nextoff = pg->offset + PAGE_SIZE;
+                       uvm_page_array_advance(&a);
                        continue;
                }
 



Home | Main Index | Thread Index | Old Index