]>
Commit | Line | Data |
---|---|---|
fbdc0d16 GKH |
1 | From 1b3865d016815cbd69a1879ca1c8a8901fda1072 Mon Sep 17 00:00:00 2001 |
2 | From: Andrew Morton <akpm@linux-foundation.org> | |
3 | Date: Tue, 15 Jun 2021 18:23:39 -0700 | |
4 | Subject: mm/slub.c: include swab.h | |
5 | ||
6 | From: Andrew Morton <akpm@linux-foundation.org> | |
7 | ||
8 | commit 1b3865d016815cbd69a1879ca1c8a8901fda1072 upstream. | |
9 | ||
10 | Fixes build with CONFIG_SLAB_FREELIST_HARDENED=y. | |
11 | ||
12 | Hopefully. But it's the right thing to do anwyay. | |
13 | ||
14 | Fixes: 1ad53d9fa3f61 ("slub: improve bit diffusion for freelist ptr obfuscation") | |
15 | Link: https://bugzilla.kernel.org/show_bug.cgi?id=213417 | |
16 | Reported-by: <vannguye@cisco.com> | |
17 | Acked-by: Kees Cook <keescook@chromium.org> | |
18 | Cc: <stable@vger.kernel.org> | |
19 | Signed-off-by: Andrew Morton <akpm@linux-foundation.org> | |
20 | Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> | |
21 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
22 | --- | |
23 | mm/slub.c | 1 + | |
24 | 1 file changed, 1 insertion(+) | |
25 | ||
26 | --- a/mm/slub.c | |
27 | +++ b/mm/slub.c | |
28 | @@ -15,6 +15,7 @@ | |
29 | #include <linux/module.h> | |
30 | #include <linux/bit_spinlock.h> | |
31 | #include <linux/interrupt.h> | |
32 | +#include <linux/swab.h> | |
33 | #include <linux/bitops.h> | |
34 | #include <linux/slab.h> | |
35 | #include "slab.h" |