mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
fc3d092c6b
The Amiga partition parser module uses signed int for partition sector
address and count, which will overflow for disks larger than 1 TB.
Use sector_t as type for sector address and size to allow using disks
up to 2 TB without LBD support, and disks larger than 2 TB with LBD.
This bug was reported originally in 2012, and the fix was created by
the RDB author, Joanne Dow <jdow@earthlink.net>. A patch had been
discussed and reviewed on linux-m68k at that time but never officially
submitted. This patch differs from Joanne's patch only in its use of
sector_t instead of unsigned int. No checking for overflows is done
(see patch 3 of this series for that).
Reported-by: Martin Steigerwald <Martin@lichtvoll.de>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=43511
Fixes:
|
||
---|---|---|
.. | ||
acorn.c | ||
aix.c | ||
amiga.c | ||
atari.c | ||
atari.h | ||
check.h | ||
cmdline.c | ||
core.c | ||
efi.c | ||
efi.h | ||
ibm.c | ||
karma.c | ||
Kconfig | ||
ldm.c | ||
ldm.h | ||
mac.c | ||
mac.h | ||
Makefile | ||
msdos.c | ||
osf.c | ||
sgi.c | ||
sun.c | ||
sysv68.c | ||
ultrix.c |