summaryrefslogtreecommitdiff
path: root/drivers/md/dm-verity-target.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2024-01-09 18:00:57 +0300
committerMike Snitzer <snitzer@kernel.org>2024-01-30 22:07:30 +0300
commit40ef8756fbdd9faec4da5d70352b28f1196132ed (patch)
tree72a4b244381deac50876953f9a3d1c0e6b8c10d0 /drivers/md/dm-verity-target.c
parent9cf11ce06ea52911245578032761e40a6409cf35 (diff)
downloadlinux-40ef8756fbdd9faec4da5d70352b28f1196132ed.tar.xz
dm writecache: allow allocations larger than 2GiB
The function kvmalloc_node limits the allocation size to INT_MAX. This limit will be overflowed if dm-writecache attempts to map a device with 1TiB or larger length. This commit changes kvmalloc_array to vmalloc_array to avoid the limit. The commit also changes vmalloc(array_size()) to vmalloc_array(). Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-verity-target.c')
0 files changed, 0 insertions, 0 deletions