]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Documentation/srso: Document a method for checking safe RET operates properly
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 31 Jul 2024 16:05:31 +0000 (18:05 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 27 Aug 2024 07:16:35 +0000 (09:16 +0200)
commit40153505259d8dc0e4ea6889fca5e567c42b76a9
treecbbb13971f885fd15ee2b62fe7c69a29d72a8d76
parent225f2bd064c32397acfe3d9dfd9a2b3bc6d64fd7
Documentation/srso: Document a method for checking safe RET operates properly

Add a method to quickly verify whether safe RET operates properly on
a given system using perf tool.

Also, add a selftest which does the same thing.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240731160531.28640-1-bp@kernel.org
Documentation/admin-guide/hw-vuln/srso.rst
tools/testing/selftests/x86/Makefile
tools/testing/selftests/x86/srso.c [new file with mode: 0644]