]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mm: Use overflow helpers in kmalloc_array*()
authorKees Cook <keescook@chromium.org>
Tue, 8 May 2018 19:52:32 +0000 (12:52 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 5 Jun 2018 19:16:51 +0000 (12:16 -0700)
commit49b7f8983aa78581bfd511a26891b26cd734e293
treee897c47ee7eacb557d129287451e736cb345ae8d
parentca90800a91ba723d78ded634d037c1d2df8b54d6
mm: Use overflow helpers in kmalloc_array*()

Instead of open-coded multiplication and bounds checking, use the new
overflow helper.

Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/slab.h