freebsd-nq/sys/fs/ext2fs
Pedro F. Giffuni 7cbd6d338e {ext2|ufs}_readdir: Avoid setting negative ncookies.
ncookies cannot be negative or the allocator will fail. This should only
happen if a caller is very broken but we can still try to survive the
event.

We should probably also verify for uio_resid > MAXPHYS but in that case
it is not clear that just clipping the ncookies value is an adequate
response.

MFC after:	2 weeks
2018-02-06 22:38:19 +00:00
..
ext2_acl.c SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
ext2_acl.h SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
ext2_alloc.c Add flex_bg/meta_bg features RW support. 2018-01-29 21:54:13 +00:00
ext2_balloc.c Add 64bit feature support. 2018-01-05 10:04:01 +00:00
ext2_bmap.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_csum.c extfs: Remove unused variables. 2018-01-23 14:17:04 +00:00
ext2_dinode.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
ext2_dir.h Add metadata_csum feature support. 2018-01-14 20:46:39 +00:00
ext2_extattr.c Add metadata_csum feature support. 2018-01-14 20:46:39 +00:00
ext2_extattr.h Add metadata_csum feature support. 2018-01-14 20:46:39 +00:00
ext2_extents.c ext2fs: Cleanup variable assignments for extents. 2018-02-05 14:30:27 +00:00
ext2_extents.h Add metadata_csum feature support. 2018-01-14 20:46:39 +00:00
ext2_extern.h Add metadata_csum feature support. 2018-01-14 20:46:39 +00:00
ext2_hash.c Add 64bit feature support. 2018-01-05 10:04:01 +00:00
ext2_htree.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
ext2_inode_cnv.c Fix mistake in case of zeroed inode check. 2018-01-29 22:15:46 +00:00
ext2_inode.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_lookup.c {ext2|ufs}_readdir: Avoid setting negative ncookies. 2018-02-06 22:38:19 +00:00
ext2_mount.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ext2_subr.c Add metadata_csum feature support. 2018-01-14 20:46:39 +00:00
ext2_vfsops.c ext2fs: remove EXT4F_RO_INCOMPAT_SUPP 2018-02-05 15:14:01 +00:00
ext2_vnops.c Add metadata_csum feature support. 2018-01-14 20:46:39 +00:00
ext2fs.h ext2fs: remove EXT4F_RO_INCOMPAT_SUPP 2018-02-05 15:14:01 +00:00
fs.h Add 64bit feature support. 2018-01-05 10:04:01 +00:00
htree.h Add metadata_csum feature support. 2018-01-14 20:46:39 +00:00
inode.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00