Skip to content

Amiga RDB partition support fixes

Michael Schmitz linux-block linux-m68k 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 24 repliesIn review
  2. v6 posting 2/20 of 2 patches 0 repliesSuperseded
  3. v6 posting 1/22 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v52 patches9 repliesSuperseded
v42 patches2 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: fix signed int overflow in Amiga partition supportblock/partitions/amiga.c+5 -40 replies
2/2block: add overflow checks for Amiga partition supportblock/partitions/amiga.c+89 -2223 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenMartin Steigerwald
1/2R-b T-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/2] Amiga RDB partition support fixes

(hopefully) final version of the Amiga RDB partition table patch follows.

I've split off the part fixing the incorrect use of signed int for partition start address and size as separate patch. It does fix the bug that Martin Steigerwald reported six years ago for a 2 TB disk. I have tested this patch with the identical RDB partition data that Martin saw the bug with. I have incorporated Andreas' feedback on proper use of casts to avoid integer overflow in this version.

The simple fix still leaves ample room for overflows in calculating start address and size of a RDB partition, though such overflows should only be seen in rather unusual cases. To address these potential overflows, checks are added in the second patch of this series. Comments by Geert have been addressed in full.

Both patches now reviewed by Geert - Reviewed-by tags added.

Cheers,

Michael