kpatch/kmod/core
Evgenii Shatokhin f447c6f40e kmod/core: Check all patched functions only if replacement is in progress
kpatch_verify_activeness_safety() calls kpatch_backtrace_address_verify()
for each address in the call traces of the processes.

Among other things, kpatch_backtrace_address_verify() searches the whole
set of functions for the ones being replaced (func->op == KPATCH_OP_UNPATCH).
This is a waste of time when the patch is loaded or unloaded rather than
replaced. Let us do the searching only if patch replacement is in
progress.

Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
2019-07-02 17:51:28 +03:00
..
core.c kmod/core: Check all patched functions only if replacement is in progress 2019-07-02 17:51:28 +03:00
kpatch.h kmod: add support for in-kernel livepatch hooks 2018-03-23 10:32:14 -04:00
Makefile kmod/core: fix definition of KERNELRELEASE 2018-02-19 13:13:03 +03:00
shadow.c smatch: fix kpatch_shadow_alloc cleanup 2016-12-16 14:26:11 -05:00