Re: [PATCH 1/9] pstore/zone: cap the maximum device size

2020-12-01 Thread Kees Cook
On Fri, 16 Oct 2020 15:20:39 +0200, Christoph Hellwig wrote: > Introduce an abritrary 128MiB cap to avoid malloc failures when using > a larger block device. I've applied 1-3 of the series to for-next/pstore, thanks! [1/9] pstore/zone: cap the maximum device size

Re: [PATCH 1/9] pstore/zone: cap the maximum device size

2020-12-01 Thread Kees Cook
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 Yeah, this seems reasonable. I'm always worried about arbitrary size limits, but if 128M is

Re: [PATCH 1/9] pstore/zone: cap the maximum device size

2020-11-08 Thread 廖威雄
On Fri, Oct 16, 2020 at 9:27 PM Christoph Hellwig wrote: > > Introduce an abritrary 128MiB cap to avoid malloc failures when using > a larger block device. > > Signed-off-by: Christoph Hellwig > --- > fs/pstore/zone.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/fs/pstore/zone.c

[PATCH 1/9] pstore/zone: cap the maximum device size

2020-10-16 Thread Christoph Hellwig
Introduce an abritrary 128MiB cap to avoid malloc failures when using a larger block device. Signed-off-by: Christoph Hellwig --- fs/pstore/zone.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c index 3ce89216670c9b..5266ccbec007f3 100644 ---