lkdtm/bugs: XFAIL UNALIGNED_LOAD_STORE_WRITE
commita15676ac8fupstream. When built under CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS, this test is expected to fail (i.e. not trip an exception). Fixes:46d1a0f03d("selftests/lkdtm: Add tests for LKDTM targets") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20210623203936.3151093-5-keescook@chromium.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
baedb1f5a0
commit
0af643fa7e
1 changed files with 3 additions and 0 deletions
|
|
@ -144,6 +144,9 @@ void lkdtm_UNALIGNED_LOAD_STORE_WRITE(void)
|
|||
if (*p == 0)
|
||||
val = 0x87654321;
|
||||
*p = val;
|
||||
|
||||
if (IS_ENABLED(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS))
|
||||
pr_err("XFAIL: arch has CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS\n");
|
||||
}
|
||||
|
||||
void lkdtm_SOFTLOCKUP(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue