commit | f4a2d282cca57607a0d6718fafa1ab2d62703254 | [log] [tgz] |
---|---|---|
author | Gustavo A. R. Silva <gustavoars@kernel.org> | Wed Sep 29 17:05:26 2021 -0500 |
committer | John Johansen <john.johansen@canonical.com> | Wed Nov 03 15:57:19 2021 -0700 |
tree | 16fb63da1fc76313944707c9be9061f218f81c3c | |
parent | 4d47fbbe54bf75b72eac3f5a0caa664300937620 [diff] |
apparmor: Use struct_size() helper in kzalloc() Make use of the struct_size() helper instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worse scenario, could lead to heap overflows. Link: https://github.com/KSPP/linux/issues/160 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: John Johansen <john.johansen@canonical.com>