linux/drivers/md/dm-table.c
Mikulas Patocka 174dedce64 dm: restrict dm device size to 2^63-512 bytes
[ Upstream commit 45fc728515 ]

The devices with size >= 2^63 bytes can't be used reliably by userspace
because the type off_t is a signed 64-bit integer.

Therefore, we limit the maximum size of a device mapper device to
2^63-512 bytes.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-29 11:02:17 +02:00

2004 lines
48 KiB