md/raid5: validate disk count before reshape assembly
Status from this message: Applied to md-7.4
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyApplied
- v12 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Added Link
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | md/raid5: extract min_raid_disks()drivers/ | +11 | 0 replies | |
| 2/2 | md/raid5: reject invalid reshape disks in raid5_run()drivers/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] md/raid5: validate disk count before reshape assembly
From: Chen Cheng <[email protected]>
The previous patch rejects raid4/5 arrays with too few disks in setup_conf(). During reshape assembly, raid5_run() still divides by the data-disk count before that check, so a crafted superblock can hit division by zero.
Extract min_raid_disks() and reject invalid reshape geometries in raid5_run() first.
v1 -> v2:
- Added Link
Chen Cheng (2):
md/raid5: extract min_raid_disks()
md/raid5: reject invalid reshape disks in raid5_run()
drivers/md/raid5.c | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-)
Signature · 1 line
2.55.0