commit | 3a3a1c12c77aebc63e52fc66a2ca01c622ecf859 | [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:42:54 2024 -0800 |
tree | 0d2a4de7a30a802778c6ab64b141df286c64887b | |
parent | 22ab4f9e2983b524374643a79765d51a42e82e7e [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/322958784 TEST=presubmit RELEASE_NOTE=Fixed CVE-2024-23851 in the Linux kernel. cos-patch: security-moderate Change-Id: I056fb5d7ea695a87730fcc79fe25d7b720c3118a Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: He Gao <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/65570 Tested-by: Cusky Presubmit Bot <[email protected]> Main-Branch-Verified: Cusky Presubmit Bot <[email protected]> Reviewed-by: Michael Kochera <[email protected]>