summaryrefslogtreecommitdiffstats
path: root/crypto/serpent_generic.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2017-06-29 16:05:04 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-06-30 04:42:15 +0200
commit854236363370995a609a10b03e35fd3dc5e9e4a1 (patch)
tree018ed1df38ce86f1576e664a3104de867ec95028 /crypto/serpent_generic.c
parentMIPS: Perform post-DMA cache flushes on systems with MAARs (diff)
downloadlinux-854236363370995a609a10b03e35fd3dc5e9e4a1.tar.xz
linux-854236363370995a609a10b03e35fd3dc5e9e4a1.zip
MIPS: Avoid accidental raw backtrace
Since commit 81a76d7119f6 ("MIPS: Avoid using unwind_stack() with usermode") show_backtrace() invokes the raw backtracer when cp0_status & ST0_KSU indicates user mode to fix issues on EVA kernels where user and kernel address spaces overlap. However this is used by show_stack() which creates its own pt_regs on the stack and leaves cp0_status uninitialised in most of the code paths. This results in the non deterministic use of the raw back tracer depending on the previous stack content. show_stack() deals exclusively with kernel mode stacks anyway, so explicitly initialise regs.cp0_status to KSU_KERNEL (i.e. 0) to ensure we get a useful backtrace. Fixes: 81a76d7119f6 ("MIPS: Avoid using unwind_stack() with usermode") Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: linux-mips@linux-mips.org Cc: <stable@vger.kernel.org> # 3.15+ Patchwork: https://patchwork.linux-mips.org/patch/16656/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'crypto/serpent_generic.c')
0 files changed, 0 insertions, 0 deletions