]> git.baikalelectronics.ru Git - kernel.git/commit
selftests, x86, protection_keys: fix wrong offset in siginfo
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 3 Feb 2017 18:51:35 +0000 (10:51 -0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 8 Feb 2017 18:15:43 +0000 (11:15 -0700)
commitc426635c93c8ff633ae7faad1d24a2b74b3c2206
treee6c9d26b02dd210190f595e9dd5bf0c332a48298
parentee36045df20cff8ac2f8d6a4a7c150e0b389139e
selftests, x86, protection_keys: fix wrong offset in siginfo

The siginfo contains a bunch of information about the fault.
For protection keys, it tells us which protection key's
permissions were violated.

The wrong offset in here leads to reading garbage and thus
failures in the tests.

We should probably eventually move this over to using the
kernel's headers defining the siginfo instead of a hard-coded
offset.  But, for now, just do the simplest fix.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/x86/protection_keys.c