Skip to content
Commit 59766286 authored by Michael Vetter's avatar Michael Vetter Committed by Petr Mladek
Browse files

selftests: livepatch: save and restore kprobe state



Save the state of /sys/kernel/debug/kprobes/enabled
during setup_config() and restore it during cleanup().

This is in preparation for a future commit that will add a test
that should confirm that we cannot livepatch a kprobed function
if that kprobe has a post handler.

Signed-off-by: default avatarMichael Vetter <mvetter@suse.com>
Reviewed-by: default avatarMiroslav Benes <mbenes@suse.cz>
Reviewed-by: default avatarJoe Lawrence <joe.lawrence@redhat.com>
Tested-by: default avatarMarcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: default avatarMarcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Tested-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20241017200132.21946-3-mvetter@suse.com


[pmladek@suse.com: Added few more substitutions in test-syscall.sh]
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent 637c7309
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment