HardenedBSD/sys/geom
John Baldwin 4c89c0127d g_raid concat: Fail requests to read beyond the end of the volume
Previously a debug kernel would trigger an assertion failure if an I/O
request attempted to read off the end of a concat volume, but a
non-debug kernel would use an invalid sub-disk to try to complete the
request eventually resulting in some sort of fault in the kernel.

Instead, turn the assertions into explicit checks that fail requests
beyond the end of the volume with EIO.  For requests which run over
the end of the volume, return a short request.

PR:		257838
Reported by:	Robert Morris <rtm@lcs.mit.edu>
Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D41222
2023-08-04 16:41:05 -07:00
..
bde
cache
concat
eli
gate
journal
label
linux_lvm
mirror
mountver
multipath
nop
part base: Remove support for the VTOC8 partitioning scheme 2023-07-26 13:16:12 +02:00
raid g_raid concat: Fail requests to read beyond the end of the volume 2023-08-04 16:41:05 -07:00
raid3
shsec
stripe
union
uzip
vinum
virstor
zero
geom_bsd_enc.c
geom_ccd.c spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
geom_ctl.c
geom_ctl.h
geom_dbg.h
geom_dev.c
geom_disk.c bios: Don't keep sending BIO_FLUSH after first ENOTSUPP. 2023-07-01 11:14:49 -06:00
geom_disk.h
geom_dump.c
geom_event.c
geom_flashmap.c
geom_flashmap.h
geom_int.h
geom_io.c
geom_kern.c
geom_map.c
geom_redboot.c
geom_slice.c
geom_slice.h
geom_subr.c
geom_vfs.c
geom_vfs.h
geom.h
notes