commit | d7b0d57ca7071d3e6567b3ce465c3c6bf24ed7a4 | [log] [tgz] |
---|---|---|
author | Mikulas Patocka <[email protected]> | Tue Jan 09 15:57:56 2024 +0100 |
committer | COS Cherry Picker <[email protected]> | Tue Feb 27 17:45:36 2024 -0800 |
tree | 215df31b596a24b9ca52fed8c59af23d463cac51 | |
parent | f394f12169e7ba0dc7770794ea623e255028cb93 [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/322958349 TEST=presubmit RELEASE_NOTE=Fixed CVE-2024-23851 in the Linux kernel. cos-patch: security-moderate Change-Id: Ie22a90c2b54e8fceaa8929c4641aca3aa6bbbae6 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/+/65650 Reviewed-by: Michael Kochera <[email protected]> Tested-by: Cusky Presubmit Bot <[email protected]> Main-Branch-Verified: Cusky Presubmit Bot <[email protected]>