opnsense-src/sys/geom/raid
Rose ad1f936ab7 Reject providers with too small a size for metadata
Otherwise, if a misbehaving device claims a sectorsize smaller than 256, the
memcpy will overflow the allocated buffer, since sizeof(*meta) is 256.

Signed-off-by: Rose <gfunni234@gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1668
2025-04-20 13:30:41 -06:00
..
g_raid.c geom: Push GEOM sysinit ordering to after devctl 2025-03-26 10:55:24 -04:00
g_raid.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
g_raid_ctl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
g_raid_md_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
g_raid_tr_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
md_ddf.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
md_ddf.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
md_intel.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
md_jmicron.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
md_nvidia.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
md_promise.c graid: unbreak Promise RAID1 with 4+ providers 2024-02-12 14:33:43 +07:00
md_sii.c Reject providers with too small a size for metadata 2025-04-20 13:30:41 -06:00
tr_concat.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tr_raid0.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tr_raid1.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tr_raid1e.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tr_raid5.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00