aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/x86/kernel/module.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-10-18 02:28:27 -0700
committerPaolo Abeni <pabeni@redhat.com>2022-10-20 10:13:54 +0200
commit36875a063b5e3618b42f7bace850473bb88a7c24 (patch)
tree0c80d1a45acecfebb4e788b4ddb5e8937c6e108c /arch/x86/kernel/module.c
parentopenvswitch: Use kmalloc_size_roundup() to match ksize() usage (diff)
downloadwireguard-linux-36875a063b5e3618b42f7bace850473bb88a7c24.tar.xz
wireguard-linux-36875a063b5e3618b42f7bace850473bb88a7c24.zip
net: ipa: Proactively round up to kmalloc bucket size
Instead of discovering the kmalloc bucket size _after_ allocation, round up proactively so the allocation is explicitly made for the full size, allowing the compiler to correctly reason about the resulting size of the buffer through the existing __alloc_size() hint. Cc: "David S. Miller" <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: netdev@vger.kernel.org Reviewed-by: Alex Elder <elder@linaro.org> Link: https://lore.kernel.org/lkml/4d75a9fd-1b94-7208-9de8-5a0102223e68@ieee.org Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20221018092724.give.735-kees@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'arch/x86/kernel/module.c')
0 files changed, 0 insertions, 0 deletions