Skip to content

Commit bcc0a8a

Browse files
akpm00gregkh
authored andcommitted
mm/slub.c: include swab.h
commit 1b3865d upstream. Fixes build with CONFIG_SLAB_FREELIST_HARDENED=y. Hopefully. But it's the right thing to do anwyay. Fixes: 1ad53d9 ("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>
1 parent ce6e8be commit bcc0a8a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎mm/slub.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/module.h>
1616
#include <linux/bit_spinlock.h>
1717
#include <linux/interrupt.h>
18+
#include <linux/swab.h>
1819
#include <linux/bitops.h>
1920
#include <linux/slab.h>
2021
#include "slab.h"

0 commit comments

Comments
 (0)