]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/powerpc: entry flush test
authorDaniel Axtens <dja@axtens.net>
Thu, 19 Nov 2020 23:35:16 +0000 (10:35 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Nov 2020 09:14:11 +0000 (10:14 +0100)
commit01474e8cc3421cc55f55c5a0c6e1aef40efa43ab
tree203b7bd1f24ee135e2c5e8c1bf0562031818f338
parenteb37345ed224c579b0a1b0e9bd72b788122ae91d
selftests/powerpc: entry flush test

commit 89a83a0c69c81a25ce91002b90ca27ed86132a0a upstream.

Add a test modelled on the RFI flush test which counts the number
of L1D misses doing a simple syscall with the entry flush on and off.

For simplicity of backporting, this test duplicates a lot of code from
the upstream rfi_flush. This is cleaned up upstream, but we don't clean
it up here because it would involve bringing in even more commits.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/setup_64.c
arch/powerpc/platforms/powernv/setup.c
tools/testing/selftests/powerpc/security/.gitignore
tools/testing/selftests/powerpc/security/Makefile
tools/testing/selftests/powerpc/security/entry_flush.c [new file with mode: 0644]