diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 258d425b2c4a..0d463859ad32 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -1545,8 +1545,8 @@ static bool is_cfi_preamble_symbol(unsigned long addr) if (lookup_symbol_name(addr, symbuf)) return false; - return str_has_prefix("__cfi_", symbuf) || - str_has_prefix("__pfx_", symbuf); + return str_has_prefix(symbuf, "__cfi_") || + str_has_prefix(symbuf, "__pfx_"); } static int check_kprobe_address_safe(struct kprobe *p,