commit | 4e59f142e04c50a76962f33bf94b058a76586ada | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <[email protected]> | Tue Jan 09 15:57:56 2024 +0100 |
committer | He Gao <[email protected]> | Wed Feb 28 01:22:50 2024 +0000 |
tree | 8a43371306b1dc833b2aa319efa2d083730cb9bc | |
parent | 357efc96bfd432e7d842755342af9746174a3e39 [diff] |
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. BUG=b/322957905 TEST=presubmit RELEASE_NOTE=Fixed CVE-2024-23851 in the Linux kernel. Change-Id: I10e54d17233270701281d0d37eaf2b854bab7889 Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/65690 Tested-by: Cusky Presubmit Bot <[email protected]> Reviewed-by: Michael Kochera <[email protected]>