Re: [PATCH v3 2/3] selftests: livepatch: save and restore kprobe state

2024-09-27 Thread Miroslav Benes
Hi, On Fri, 20 Sep 2024, Michael Vetter wrote: > Save the state of /sys/kernel/livepatch/debug/kprobes/enabled I believe it is /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

[PATCH v3 2/3] selftests: livepatch: save and restore kprobe state

2024-09-20 Thread Michael Vetter
Save the state of /sys/kernel/livepatch/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: Mi