mm/slub.c: include swab.h
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 16 Jun 2021 01:23:39 +0000 (18:23 -0700)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:54 +0000 (08:48 -0400)
commit44a05a27ff5585dc1ff1b457675842f65be61246
tree00fc12af6a6ee5685598dab77552cf03b23820ed
parent42020f7f37a90d24b9551f5f7eba3f7c7c102968
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>
mm/slub.c