diff options
author | James Cowgill <James.Cowgill@imgtec.com> | 2017-04-11 12:51:07 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-03 15:36:38 (GMT) |
commit | 92f0ddece7dabeb47a7ce0ecf3f67c1e6fea1cf8 (patch) | |
tree | d9947757ca9360769fb774ebd0debd7100583cfc /tools/net | |
parent | 6fbb6c02df304dffbadd020e0c0acbbc61ce79ab (diff) | |
download | linux-92f0ddece7dabeb47a7ce0ecf3f67c1e6fea1cf8.tar.xz |
MIPS: Avoid BUG warning in arch_check_elf
commit c46f59e90226fa5bfcc83650edebe84ae47d454b upstream.
arch_check_elf contains a usage of current_cpu_data that will call
smp_processor_id() with preemption enabled and therefore triggers a
"BUG: using smp_processor_id() in preemptible" warning when an fpxx
executable is loaded.
As a follow-up to commit b244614a60ab ("MIPS: Avoid a BUG warning during
prctl(PR_SET_FP_MODE, ...)"), apply the same fix to arch_check_elf by
using raw_current_cpu_data instead. The rationale quoted from the previous
commit:
"It is assumed throughout the kernel that if any CPU has an FPU, then
all CPUs would have an FPU as well, so it is safe to perform the check
with preemption enabled - change the code to use raw_ variant of the
check to avoid the warning."
Fixes: 46490b572544 ("MIPS: kernel: elf: Improve the overall ABI and FPU mode checks")
Signed-off-by: James Cowgill <James.Cowgill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15951/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/net')
0 files changed, 0 insertions, 0 deletions