freebsd-dev/sys/geom
Zhenlei Huang c941b82e1c geom_linux_lvm: Check the offset of physical volume header
The LVM label is stored on any of the first four sectors, and the
PV (physical volume) header is stored within the same sector following
the LVM label. The current implementation does not fully check the
offset of PV header, when attaching a bad formatted LVM PV the kernel
may crash due to out-of-bounds memory read.

PR:	266562
Reviewed by:	jhb
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D36773
2023-08-22 17:20:10 +08:00
..
bde sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cache sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
concat sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
eli sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gate sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
journal sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
label sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
linux_lvm geom_linux_lvm: Check the offset of physical volume header 2023-08-22 17:20:10 +08:00
mirror sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mountver sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
multipath sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nop sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
part sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
raid sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
raid3 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
shsec sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
stripe sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
union spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
uzip sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vinum sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
virstor sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
zero sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_bsd_enc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_ccd.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_ctl.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_ctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
geom_dbg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
geom_dev.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_disk.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_disk.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
geom_dump.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_event.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_flashmap.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_flashmap.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
geom_int.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
geom_io.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_kern.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_map.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_redboot.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_slice.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_slice.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
geom_subr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_vfs.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom_vfs.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
geom.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
notes sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00