Module Name:    src
Committed By:   riz
Date:           Sat Apr 21 23:12:17 UTC 2012

Modified Files:
        src/doc [netbsd-5-0]: CHANGES-5.0.3
        src/sys/miscfs/genfs [netbsd-5-0]: genfs_io.c

Log Message:
Back out a commit included in the ticket 1750 patch which obviously
doesn't belong there.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.70 -r1.1.2.71 src/doc/CHANGES-5.0.3
cvs rdiff -u -r1.13.4.2.2.2 -r1.13.4.2.2.3 src/sys/miscfs/genfs/genfs_io.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/CHANGES-5.0.3
diff -u src/doc/CHANGES-5.0.3:1.1.2.70 src/doc/CHANGES-5.0.3:1.1.2.71
--- src/doc/CHANGES-5.0.3:1.1.2.70	Sat Apr 21 15:54:27 2012
+++ src/doc/CHANGES-5.0.3	Sat Apr 21 23:12:17 2012
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-5.0.3,v 1.1.2.70 2012/04/21 15:54:27 riz Exp $
+# $NetBSD: CHANGES-5.0.3,v 1.1.2.71 2012/04/21 23:12:17 riz Exp $
 
 A complete list of changes from the NetBSD 5.0.2 release to the NetBSD 5.0.3
 release:
@@ -3004,10 +3004,10 @@ sys/dev/wscons/wsksymdef.h			1.62
 
 	s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 	[bouyer, ticket #1727]
+
 crypto/dist/openssl/crypto/mem.c		patch
 crypto/dist/openssl/crypto/asn1/a_d2i_fp.c	patch
 crypto/dist/openssl/crypto/buffer/buffer.c	patch
-sys/miscfs/genfs/genfs_io.c			patch
 
 	Address CVE-2012-2110.
 	[spz, ticket #1750]

Index: src/sys/miscfs/genfs/genfs_io.c
diff -u src/sys/miscfs/genfs/genfs_io.c:1.13.4.2.2.2 src/sys/miscfs/genfs/genfs_io.c:1.13.4.2.2.3
--- src/sys/miscfs/genfs/genfs_io.c:1.13.4.2.2.2	Sat Apr 21 15:54:03 2012
+++ src/sys/miscfs/genfs/genfs_io.c	Sat Apr 21 23:12:17 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: genfs_io.c,v 1.13.4.2.2.2 2012/04/21 15:54:03 riz Exp $	*/
+/*	$NetBSD: genfs_io.c,v 1.13.4.2.2.3 2012/04/21 23:12:17 riz Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.13.4.2.2.2 2012/04/21 15:54:03 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.13.4.2.2.3 2012/04/21 23:12:17 riz Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -802,19 +802,7 @@ genfs_do_putpages(struct vnode *vp, off_
 
 	KASSERT(origflags & (PGO_CLEANIT|PGO_FREE|PGO_DEACTIVATE));
 	KASSERT((startoff & PAGE_MASK) == 0 && (endoff & PAGE_MASK) == 0);
-//	KASSERT(startoff < endoff || endoff == 0);
-
-// replacement for the previous KASSERT to get debug output, by rmind
-	if (!(startoff < endoff || endoff == 0)) {
-		proc_t *p = curproc;
-		mutex_exit(slock);
-		printf("genfs_do_putpages: startoff 0x%lx, endoff 0x%lx vm_map %p\n", (uint64_t) startoff, (uint64_t) endoff, &p->p_vmspace->vm_map);
-		void uvm_map_printit(struct vm_map *, bool, void (*)(const char *, ...));
-		uvm_map_printit(&p->p_vmspace->vm_map, true, printf);
-		KASSERT(p == l->l_proc);
-		Debugger();	/* Bang ! */
-		return EIO;
-	}
+	KASSERT(startoff < endoff || endoff == 0);
 
 	UVMHIST_LOG(ubchist, "vp %p pages %d off 0x%x len 0x%x",
 	    vp, uobj->uo_npages, startoff, endoff - startoff);

Reply via email to