diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-08-09 18:43:46 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-08-09 18:43:46 +0200 |
commit | 146430a0c26eb7b515abb04664e1a516078ec5c2 (patch) | |
tree | fb2e101fc6b771bf5d7eb38530d9debb2b62cc50 /kernel | |
parent | Merge tag 'block-6.11-20240809' of git://git.kernel.dk/linux (diff) | |
parent | kprobes: Fix to check symbol prefixes correctly (diff) | |
download | linux-146430a0c26eb7b515abb04664e1a516078ec5c2.tar.xz linux-146430a0c26eb7b515abb04664e1a516078ec5c2.zip |
Merge tag 'probes-fixes-v6.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull kprobe fixes from Masami Hiramatsu:
- Fix misusing str_has_prefix() parameter order to check symbol prefix
correctly
- bpf: remove unused declaring of bpf_kprobe_override
* tag 'probes-fixes-v6.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
kprobes: Fix to check symbol prefixes correctly
bpf: kprobe: remove unused declaring of bpf_kprobe_override
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kprobes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index e85de37d9e1e..da59c68df841 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -1557,8 +1557,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, |