mirror of
https://github.com/dynup/kpatch
synced 2024-12-25 23:02:02 +00:00
kmod/core: check force flag in replace case
When unpatching a function due to "kpatch replace", check the force flag before doing the activeness safety check.
This commit is contained in:
parent
6f38498d95
commit
dfc759227a
@ -229,7 +229,7 @@ static void kpatch_backtrace_address_verify(void *data, unsigned long address,
|
||||
|
||||
/* in the replace case, need to check the func hash as well */
|
||||
hash_for_each_rcu(kpatch_func_hash, i, func, node) {
|
||||
if (func->op == KPATCH_OP_UNPATCH) {
|
||||
if (func->op == KPATCH_OP_UNPATCH && !func->force) {
|
||||
args->ret = kpatch_compare_addresses(address,
|
||||
func->new_addr,
|
||||
func->new_size,
|
||||
|
Loading…
Reference in New Issue
Block a user