diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-27 06:23:32 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-27 06:23:50 +0100 |
commit | 1839a591e89e625cca023406a82a2017a0882833 (patch) | |
tree | 8ece23629701200d7c07bc7f7c4293baef8573c0 /target/linux/patches/4.8.11/sparc32.patch | |
parent | b87c247f891fc030032bd1fca18277eb80a281e6 (diff) |
linux: update to 4.8.11, fix sparc32 invalid frame-pointer check
Diffstat (limited to 'target/linux/patches/4.8.11/sparc32.patch')
-rw-r--r-- | target/linux/patches/4.8.11/sparc32.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/patches/4.8.11/sparc32.patch b/target/linux/patches/4.8.11/sparc32.patch new file mode 100644 index 000000000..b11e3b7f1 --- /dev/null +++ b/target/linux/patches/4.8.11/sparc32.patch @@ -0,0 +1,31 @@ +commit 07b5ab3f71d318e52c18cc3b73c1d44c908aacfa +Author: Andreas Larsson <andreas@gaisler.com> +Date: Wed Nov 9 10:43:05 2016 +0100 + + sparc32: Fix inverted invalid_frame_pointer checks on sigreturns + + Signed-off-by: Andreas Larsson <andreas@gaisler.com> + Signed-off-by: David S. Miller <davem@davemloft.net> + +diff --git a/arch/sparc/kernel/signal_32.c b/arch/sparc/kernel/signal_32.c +index c3c12ef..9c0c8fd 100644 +--- a/arch/sparc/kernel/signal_32.c ++++ b/arch/sparc/kernel/signal_32.c +@@ -89,7 +89,7 @@ asmlinkage void do_sigreturn(struct pt_regs *regs) + sf = (struct signal_frame __user *) regs->u_regs[UREG_FP]; + + /* 1. Make sure we are not getting garbage from the user */ +- if (!invalid_frame_pointer(sf, sizeof(*sf))) ++ if (invalid_frame_pointer(sf, sizeof(*sf))) + goto segv_and_exit; + + if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) +@@ -150,7 +150,7 @@ asmlinkage void do_rt_sigreturn(struct pt_regs *regs) + + synchronize_user_stack(); + sf = (struct rt_signal_frame __user *) regs->u_regs[UREG_FP]; +- if (!invalid_frame_pointer(sf, sizeof(*sf))) ++ if (invalid_frame_pointer(sf, sizeof(*sf))) + goto segv; + + if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) |