Patch "x86/signals: Fix lower/upper bound reporting in compat siginfo" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
x86/signals: Fix lower/upper bound reporting in compat siginfo
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
x86-signals-fix-lower-upper-bound-reporting-in-compat-siginfo.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
cfac6dfa42bddfa9711b20d486e521d1a41ab09fMon Sep 17 00:00:00 2001
From: Joerg Roedel <[email protected]>
Date: Tue, 4 Apr 2017 18:15:01 +0200
Subject: x86/signals: Fix lower/upper bound reporting in compat siginfo
From: Joerg Roedel <[email protected]>
commit cfac6dfa42bddfa9711b20d486e521d1a41ab09f upstream.
Put the right values from the original siginfo into the userspace compat-siginfo.
This fixes the 32-bit MPX "tabletest" testcase on 64-bit kernels.
--- arch/x86/kernel/signal_compat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/signal_compat.c +2 -2
@@ -151,8 +151,8 @@ int __copy_siginfo_to_user32(compat_sigiif (from->si_signo ==SIGSEGV ) {if (from->si_code ==SEGV_BNDERR ) { -compat_uptr_t lower = (unsigned long )&to->si_lower; -compat_uptr_t upper = (unsigned long )&to->si_upper; +compat_uptr_t lower = (unsigned long )from->si_lower; +compat_uptr_t upper = (unsigned long )from->si_upper;put_user_ex (lower, &to->si_lower);put_user_ex (upper, &to->si_upper); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/x86-signals-fix-lower-upper-bound-reporting-in-compat-siginfo.patch