diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2024-01-09 15:57:56 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-01-30 14:05:02 -0500 |
commit | bd504bcfec41a503b32054da5472904b404341a4 (patch) | |
tree | cb99fb5518b4b0a663750dd6559073299a2c8070 /drivers/md/dm-thin-metadata.c | |
parent | 41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff) | |
download | linux-bd504bcfec41a503b32054da5472904b404341a4.tar.gz linux-bd504bcfec41a503b32054da5472904b404341a4.tar.bz2 linux-bd504bcfec41a503b32054da5472904b404341a4.zip |
dm: limit the number of targets and parameter size area
The kvmalloc function fails with a warning if the size is larger than
INT_MAX. The warning was triggered by a syscall testing robot.
In order to avoid the warning, this commit limits the number of targets to
1048576 and the size of the parameter area to 1073741824.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-thin-metadata.c')
0 files changed, 0 insertions, 0 deletions