summaryrefslogtreecommitdiff
path: root/net/packet
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2022-10-21 19:10:47 -0700
committerPaolo Abeni <pabeni@redhat.com>2022-10-25 12:59:04 +0200
commitd6dd508080a3cdc0ab34ebf66c3734f2dff907ad (patch)
tree6346dfe9f195b2d1dfe59af5dae563b2d0d718a1 /net/packet
parent6459838af0c08ea2b38fad6e153576549ca3b92f (diff)
bnx2: Use kmalloc_size_roundup() to match ksize() usage
Round up allocations with kmalloc_size_roundup() so that build_skb()'s use of ksize() is always accurate and no special handling of the memory is needed by KASAN, UBSAN_BOUNDS, nor FORTIFY_SOURCE. Cc: Rasesh Mody <rmody@marvell.com> Cc: GR-Linux-NIC-Dev@marvell.com 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 Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20221022021004.gonna.489-kees@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions