summaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2021-05-12 19:42:13 +0200
committerIngo Molnar <mingo@kernel.org>2021-05-12 21:17:01 +0200
commitf66c05d6baf36069c01a02f869bebb75586f2318 (patch)
tree9a4b9a0f7beb3453214f17bee4db3a8934c5e549 /mm/vmalloc.c
parent46c7405df7de8deb97229eacebcee96d61415f3f (diff)
downloadlinux-f66c05d6baf36069c01a02f869bebb75586f2318.tar.bz2
objtool/x86: Fix elf_add_alternative() endianness
Currently x86 kernel cross-compiled on big endian system fails at boot with: kernel BUG at arch/x86/kernel/alternative.c:258! Corresponding bug condition look like the following: BUG_ON(feature >= (NCAPINTS + NBUGINTS) * 32); Fix that by converting alternative feature/cpuid to target endianness. Fixes: 9bc0bb50727c ("objtool/x86: Rewrite retpoline thunk calls") Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: https://lore.kernel.org/r/patch-2.thread-6c9df9.git-6c9df9a8098d.your-ad-here.call-01620841104-ext-2554@work.hours
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions