Re: [PATCH] diskfilter: don't make a RAID array with more than 1024 disks

2022-10-20 Thread Daniel Kiper
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

[PATCH] diskfilter: don't make a RAID array with more than 1024 disks

2022-10-19 Thread Daniel Axtens
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