]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm: restrict dm device size to 2^63-512 bytes
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 14 Mar 2025 12:51:32 +0000 (13:51 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 14 Mar 2025 12:58:33 +0000 (13:58 +0100)
commit45fc728515c14f53f6205789de5bfd72a95af3b8
tree1e897f26ec835c5eec09c2b258a98a20b6a41cb7
parentc2662b1544cbd8ea3181381bb899b8e681dfedc7
dm: restrict dm device size to 2^63-512 bytes

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>
drivers/md/dm-table.c