Skip to content
Commit 50e43a57 authored by Al Viro's avatar Al Viro Committed by Geert Uytterhoeven
Browse files

m68k: Update ->thread.esp0 before calling syscall_trace() in ret_from_signal



We get there when sigreturn has performed obscene acts on kernel stack;
in particular, the location of pt_regs has shifted.  We are about to call
syscall_trace(), which might stop for tracer.  If that happens, we'd better
have task_pt_regs() returning correct result...

Fucked-up-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Fixes: bd6f56a7 ("m68k: Missing syscall_trace() on sigreturn")
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Tested-by: default avatarMichael Schmitz <schmitzmic@gmail.com>
Reviewed-by: default avatarMichael Schmitz <schmitzmic@gmail.com>
Tested-by: default avatarFinn Thain <fthain@linux-m68k.org>
Link: https://lore.kernel.org/r/YP2dMWeV1LkHiOpr@zeniv-ca.linux.org.uk


Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 4bb0bd81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment