kcov: remove stale RANDOMIZE_BASE text
PATCH 1/1 kcov: remove stale RANDOMIZE_BASE text
The Kconfig help text for CONFIG_KCOV describes that recorded PC values will not be stable across machines or reboots when RANDOMIZE_BASE is selected. This was the case when KCOV was introduced in commit:
5c9a8750a6409c63 ("kernel: add kcov code coverage")
However, this changed in commit:
4983f0ab7ffaad1e ("kcov: make kcov work properly with KASLR enabled")
Since that commit KCOV always subtracts the KASLR offset from PC values, which ensures that these are stable across machines and across reboots even when RANDOMIZE_BASE is selected.
Unfortunately, that commit failed to update the Kconfig help text, which still suggests disabling RANDOMIZE_BASE even though this is no longer necessary.
Remove the stale Kconfig text.
--- lib/Kconfig.debug | 4 ---- 1 file changed, 4 deletions(-)
lib/Kconfig.debug +0 -4
@@ -2103,10 +2103,6 @@ config KCOV KCOV exposes kernel code coverage information in a form suitable for coverage-guided fuzzing (randomized testing). - If RANDOMIZE_BASE is enabled, PC values will not be stable across - different machines and across reboots. If you need stable PC values, - disable RANDOMIZE_BASE. - For more details, see Documentation/dev-tools/kcov.rst. config KCOV_ENABLE_COMPARISONS
Signature · 1 line
2.30.2
Quoted 19 lines · Mark Rutland
The
Kconfighelp text forCONFIG_KCOVdescribes that recorded PC values will not be stable across machines or reboots whenRANDOMIZE_BASEis selected. This was the case when KCOV was introduced in commit:
5c9a8750a6409c63("kernel: add kcov code coverage")However, this changed in commit:
4983f0ab7ffaad1e("kcov: make kcov work properly with KASLR enabled")Since that commit KCOV always subtracts the KASLR offset from PC values, which ensures that these are stable across machines and across reboots even when
RANDOMIZE_BASEis selected.Unfortunately, that commit failed to update the
Kconfighelp text, which still suggests disablingRANDOMIZE_BASEeven though this is no longer necessary.
Quoted 8 lines
Remove the stale
Kconfigtext.Reported-by Borislav Petkov <[email protected]>Signed-off-by Mark Rutland <[email protected]>Cc Alexander Popov <[email protected]>Cc Andrew Morton <[email protected]>Cc Andrey Konovalov <[email protected]>Cc Dmitry Vyukov <[email protected]>
Thanks for fixing this.
Quoted 22 lines
--- lib/Kconfig.debug | 4 ---- 1 file changed, 4 deletions(-)lib/Kconfig.debug +0
-5@@ -2103,10 +2103,6 @@ config KCOV KCOV exposes kernel code coverage information in a form suitable for coverage-guided fuzzing (randomized testing). - If RANDOMIZE_BASE is enabled, PC values will not be stable across - different machines and across reboots. If you need stable PC values, - disable RANDOMIZE_BASE. - For more details, see Documentation/dev-tools/kcov.rst. config KCOV_ENABLE_COMPARISONS --2.30.2