linux/block/partitions
Josef Bacik 6c55f94317 block: partitions/mac: compute the sectors in 64 bits
start_block and block_count are converted to 512 byte sectors in 32-bit
arithmetic, although put_partition() takes a sector_t. With a block size
above 512 bytes anything beyond 2TiB wraps and the partition lands on
top of another one.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Link: https://patch.msgid.link/20261028164415.1262013-43-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-10-29 07:15:47 -06:00
..
acorn.c block/partitions/acorn: use min in {riscix,linux}_partition 2026-06-02 11:14:52 -06:00
aix.c partitions: aix: bound the lvd scan to one sector 2026-07-15 16:32:49 -06:00
amiga.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
atari.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
atari.h block: declare all partition detection routines in check.h 2020-03-24 07:57:08 -06:00
check.h block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
cmdline.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
core.c block: partitions: replace __get_free_page() with kmalloc() 2026-05-27 08:34:32 -06:00
efi.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
efi.h block: store GPT attributes as a raw value 2026-09-10 14:42:00 -06:00
ibm.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
karma.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
Kconfig block: add support for partition table defined in OF 2024-10-22 08:14:56 -06:00
ldm.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
ldm.h partitions: ldm: remove the initial kernel-doc notation 2025-01-13 07:47:19 -07:00
mac.c block: partitions/mac: compute the sectors in 64 bits 2026-10-29 07:15:47 -06:00
mac.h block: declare all partition detection routines in check.h 2020-03-24 07:57:08 -06:00
Makefile block: add support for partition table defined in OF 2024-10-22 08:14:56 -06:00
msdos.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
of.c block: partitions: fix of_node refcount leak in of_partition() 2026-05-26 09:52:20 -06:00
osf.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
sgi.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
sun.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
sysv68.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00
ultrix.c block: partitions: Replace pp_buf with struct seq_buf 2026-03-21 08:27:08 -06:00