freebsd-dev/sys/ufs/ffs
Mark Johnston f44994874b ffs: Clamp BIO_SPEEDUP length
On 32-bit platforms, the computed size of the BIO_SPEEDUP requested by
softdep_request_cleanup() may be negative when assigned to bp->b_bcount,
which has type "long".

Clamp the size to LONG_MAX.  Also convert the unused g_io_speedup() to
use an off_t for the magnitude of the shortage for consistency with
softdep_send_speedup().

Reviewed by:	chs, kib
Reported by:	pho
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D27081
2020-11-11 13:48:07 +00:00
..
ffs_alloc.c Do not copy vp into f_data for DTYPE_VNODE files. 2020-09-15 21:55:21 +00:00
ffs_balloc.c ufs: clean up empty lines in .c and .h files 2020-09-01 21:23:00 +00:00
ffs_extern.h ufs: clean up empty lines in .c and .h files 2020-09-01 21:23:00 +00:00
ffs_inode.c ufs: clean up empty lines in .c and .h files 2020-09-01 21:23:00 +00:00
ffs_rawread.c vmapbuf: don't smuggle address or length in buf 2020-10-21 16:00:15 +00:00
ffs_snapshot.c Move the pointers stored in the superblock into a separate 2020-06-19 01:02:53 +00:00
ffs_softdep.c ffs: Clamp BIO_SPEEDUP length 2020-11-11 13:48:07 +00:00
ffs_subr.c Various new check-hash checks have been added to the UFS filesystem 2020-10-25 00:43:48 +00:00
ffs_suspend.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
ffs_tables.c
ffs_vfsops.c Various new check-hash checks have been added to the UFS filesystem 2020-10-25 00:43:48 +00:00
ffs_vnops.c UFS2: Fix DoS due to corrupted extattrfile 2020-10-30 19:00:42 +00:00
fs.h Various new check-hash checks have been added to the UFS filesystem 2020-10-25 00:43:48 +00:00
softdep.h This commit enables a UFS filesystem to do a forcible unmount when 2020-05-25 23:47:31 +00:00