Mikulas Patocka 86f4a49f32 dm: limit the number of targets and parameter size area
commit bd504bcfec41a503b32054da5472904b404341a4 upstream.

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>
[srish: Apply to stable branch linux-5.4.y]
Signed-off-by: Srish Srinivasan <srish.srinivasan@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-02 16:18:37 +02:00
..
2023-09-23 10:59:52 +02:00
2024-04-13 12:51:26 +02:00
2023-11-20 10:30:12 +01:00
2024-02-23 08:25:15 +01:00
2024-02-23 08:24:54 +01:00
2024-01-25 14:34:21 -08:00
2024-05-02 16:18:32 +02:00
2023-07-27 08:37:19 +02:00