summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2021-06-15 18:23:39 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-23 14:41:30 +0200
commit4f69c8930674add482d8b79b6279bed8bc6d7d69 (patch)
treec50cbf380684341f16c83b2e1978e37a986f024e /mm
parent9ddeea35c47da5cb1da3713cc1c52360d66ccfbe (diff)
downloadlinux-stable-4f69c8930674add482d8b79b6279bed8bc6d7d69.tar.gz
linux-stable-4f69c8930674add482d8b79b6279bed8bc6d7d69.tar.bz2
linux-stable-4f69c8930674add482d8b79b6279bed8bc6d7d69.zip
mm/slub.c: include swab.h
commit 1b3865d016815cbd69a1879ca1c8a8901fda1072 upstream. Fixes build with CONFIG_SLAB_FREELIST_HARDENED=y. Hopefully. But it's the right thing to do anwyay. Fixes: 1ad53d9fa3f61 ("slub: improve bit diffusion for freelist ptr obfuscation") Link: https://bugzilla.kernel.org/show_bug.cgi?id=213417 Reported-by: <vannguye@cisco.com> Acked-by: Kees Cook <keescook@chromium.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/slub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 6d8d2f0b9921..ca7143fe25b5 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -15,6 +15,7 @@
#include <linux/module.h>
#include <linux/bit_spinlock.h>
#include <linux/interrupt.h>
+#include <linux/swab.h>
#include <linux/bitops.h>
#include <linux/slab.h>
#include "slab.h"