[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] diskfilter: don't make a RAID array with more than 1024 disk
From: |
Daniel Kiper |
Subject: |
Re: [PATCH] diskfilter: don't make a RAID array with more than 1024 disks |
Date: |
Thu, 20 Oct 2022 15:08:18 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Wed, Oct 19, 2022 at 08:23:22PM +1100, Daniel Axtens wrote:
> This is 'belt and braces' with commit 12e20a6a695f ("disk/diskfilter:
> Check calloc() result for NULL"): we end up trying to use too much memory
> in situations like corrupted Linux software raid setups purporting to
> use a huge number of disks. Simply refuse to permit such configurations.
>
> 1024 is a bit arbitrary, yes, and I feel a bit like I'm tempting fate
> here, but I think 1024 disks in an array (that grub has to read to boot!)
> should be enough for anyone.
>
> Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel