* Fix a number of cases where too much kernel memory might be allocated to
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 26 May 2006 16:56:34 +0000 (16:56 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 26 May 2006 16:56:34 +0000 (16:56 +0000)
commitfb0466c92925dedf5573525b075c09892eae861e
tree63a92d6e480accf791c4e481b0d33e5f905c47f6
parent3b564f1f123da6278084dda50a9f142ab01a7b72
* Fix a number of cases where too much kernel memory might be allocated to
  satisfy a directory read operation.

* Calculate a minimum of (1) allocated directory cookie and limit the maximum
  to 1024.

* Rewrite ufs_readdir() (part 1/2) to use the buffer cache instead of
  allocating a kernel buffer and to do better validation of the scanned
  directory entries.

* Use a simpler fix for EXT2FS.

Reported-by: [NetBSD.org #7471]
sys/vfs/gnu/ext2fs/ext2_lookup.c
sys/vfs/isofs/cd9660/cd9660_vnops.c
sys/vfs/msdosfs/msdosfs_vnops.c
sys/vfs/procfs/procfs_vnops.c
sys/vfs/udf/udf_vnops.c
sys/vfs/ufs/ufs_vnops.c