Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2]: src/sys/kern Pull up following revision(s) (requested by simo...
details: https://anonhg.NetBSD.org/src/rev/15c61ef730cb
branches: netbsd-2
changeset: 564482:15c61ef730cb
user: tron <tron%NetBSD.org@localhost>
date: Wed May 31 21:27:59 2006 +0000
description:
Pull up following revision(s) (requested by simonb in ticket #10633):
sys/kern/vfs_vnops.c: revision 1.112
Limit the size of any kernel buffers allocated by the VOP_READDIR
routines to MAXBSIZE.
diffstat:
sys/kern/vfs_vnops.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 2303ba7b742d -r 15c61ef730cb sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c Tue May 30 19:50:30 2006 +0000
+++ b/sys/kern/vfs_vnops.c Wed May 31 21:27:59 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_vnops.c,v 1.77.4.1 2005/11/14 22:16:26 riz Exp $ */
+/* $NetBSD: vfs_vnops.c,v 1.77.4.2 2006/05/31 21:27:59 tron Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.77.4.1 2005/11/14 22:16:26 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.77.4.2 2006/05/31 21:27:59 tron Exp $");
#include "fs_union.h"
@@ -450,6 +450,9 @@
struct uio auio;
int error, eofflag;
+ /* Limit the size on any kernel buffers used by VOP_READDIR */
+ count = min(MAXBSIZE, count);
+
unionread:
if (vp->v_type != VDIR)
return (EINVAL);
Home |
Main Index |
Thread Index |
Old Index