[PATCH 1/9] pstore/zone: cap the maximum device size
Kees Cook
keescook at chromium.org
Tue Dec 1 14:08:19 EST 2020
On Fri, Oct 16, 2020 at 03:20:39PM +0200, Christoph Hellwig wrote:
> Introduce an abritrary 128MiB cap to avoid malloc failures when using
> a larger block device.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Yeah, this seems reasonable. I'm always worried about arbitrary size
limits, but if 128M is needed for pstore, something is likely very very
wrong. :)
Reviewed-by: Kees Cook <keescook at chromium.org>
--
Kees Cook
More information about the linux-mtd
mailing list