freebsd-skq/sys/geom
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
..
bde Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
cache Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
concat Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
eli Move kernel env global variables, etc to sys/kenv.h 2020-10-07 06:16:37 +00:00
gate geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
journal Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
label Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
linux_lvm Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
mirror Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
mountver Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
multipath Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
nop geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
part geom_part: make it possible recovering broken GPT after some LBAs cut off 2020-09-17 04:39:39 +00:00
raid Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
raid3 Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
shsec Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
stripe Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
uzip Fix fallout from r366811. 2020-10-19 20:26:37 +00:00
vinum geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
virstor Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
zero geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
geom_bsd_enc.c sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
geom_ccd.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
geom_ctl.c geom_ctl.c: remove stale header files 2020-10-20 20:59:13 +00:00
geom_ctl.h Define a constant for the maximum number of GEOM_CTL arguments. 2019-02-20 17:07:08 +00:00
geom_dbg.h GEOM: Reduce unnecessary log interleaving with sbufs 2019-08-07 19:28:35 +00:00
geom_dev.c Remove frontstuff 2020-10-27 06:43:24 +00:00
geom_disk.c Remove frontstuff 2020-10-27 06:43:24 +00:00
geom_disk.h Add GEOM attribute to report physical device name, and report it 2019-11-09 17:30:19 +00:00
geom_dump.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
geom_event.c Move TDP_GEOM check from userret() to ast(); this code path is quite 2020-09-14 10:14:03 +00:00
geom_flashmap.c Remove NAND and NANDFS support 2019-06-25 04:50:09 +00:00
geom_flashmap.h geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
geom_int.h Remove duplicate g_debugflags declaration. 2019-12-05 15:07:32 +00:00
geom_io.c ffs: Clamp BIO_SPEEDUP length 2020-11-11 13:48:07 +00:00
geom_kern.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
geom_map.c geom: clean up empty lines in .c and .h files 2020-09-01 22:14:09 +00:00
geom_redboot.c geom_map and geom_redboot: Remove unused ctlreq handler. 2020-07-26 22:30:01 +00:00
geom_slice.c Pass BIO_SPEEDUP through all the geom layers 2020-01-17 01:15:55 +00:00
geom_slice.h sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
geom_subr.c Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
geom_vfs.c Make g_attach() return ENXIO for orphaned providers; update various 2020-10-18 16:24:08 +00:00
geom_vfs.h sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
geom.h ffs: Clamp BIO_SPEEDUP length 2020-11-11 13:48:07 +00:00
notes