opnsense-src/sys/dev/md
Mark Johnston b036a48de6 md: Clamp to a multiple of the sector size when resizing
We do this when creating md(4) devices, in kern_mdattach_locked(), but
not when resizing the provider.  Apply the same policy when resizing, as
many GEOM classes do not expect to deal with providers for which
pp->mediasize % pp->sectorsize != 0.

Reported by:	syzkaller
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 47619b6044)
2021-09-07 09:36:19 -04:00
..
embedfs.S Use a template assembly file to generate the embedded MFS. 2020-10-20 16:48:45 +00:00
md.c md: Clamp to a multiple of the sector size when resizing 2021-09-07 09:36:19 -04:00