x86/signals: Fix lower/upper bound reporting in compat siginfo
authorJoerg Roedel <jroedel@suse.de>
Tue, 4 Apr 2017 16:15:01 +0000 (18:15 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 5 Apr 2017 08:16:43 +0000 (10:16 +0200)
commitcfac6dfa42bddfa9711b20d486e521d1a41ab09f
tree15f56c39f4fc4aca2b6c2d6f48756c7b561c08c4
parent308ac7563944787f8afc508568a3cda601c35a48
x86/signals: Fix lower/upper bound reporting in compat siginfo

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.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: <stable@vger.kernel.org> # v4.8+
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Borislav Petkov <bp@suse.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: a4455082dc6f0 ('x86/signals: Add missing signal_compat code for x86 features')
Link: http://lkml.kernel.org/r/1491322501-5054-1-git-send-email-joro@8bytes.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/signal_compat.c