]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.196/mm-slub.c-include-swab.h.patch
Linux 5.10.211
[thirdparty/kernel/stable-queue.git] / releases / 4.19.196 / mm-slub.c-include-swab.h.patch
CommitLineData
fbdc0d16
GKH
1From 1b3865d016815cbd69a1879ca1c8a8901fda1072 Mon Sep 17 00:00:00 2001
2From: Andrew Morton <akpm@linux-foundation.org>
3Date: Tue, 15 Jun 2021 18:23:39 -0700
4Subject: mm/slub.c: include swab.h
5
6From: Andrew Morton <akpm@linux-foundation.org>
7
8commit 1b3865d016815cbd69a1879ca1c8a8901fda1072 upstream.
9
10Fixes build with CONFIG_SLAB_FREELIST_HARDENED=y.
11
12Hopefully. But it's the right thing to do anwyay.
13
14Fixes: 1ad53d9fa3f61 ("slub: improve bit diffusion for freelist ptr obfuscation")
15Link: https://bugzilla.kernel.org/show_bug.cgi?id=213417
16Reported-by: <vannguye@cisco.com>
17Acked-by: Kees Cook <keescook@chromium.org>
18Cc: <stable@vger.kernel.org>
19Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
20Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
21Signed-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"