Commit 146430a0 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'probes-fixes-v6.11-rc2' of...

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
parents b7768c48 8c8acb8f
...@@ -880,7 +880,6 @@ do { \ ...@@ -880,7 +880,6 @@ do { \
struct perf_event; struct perf_event;
DECLARE_PER_CPU(struct pt_regs, perf_trace_regs); DECLARE_PER_CPU(struct pt_regs, perf_trace_regs);
DECLARE_PER_CPU(int, bpf_kprobe_override);
extern int perf_trace_init(struct perf_event *event); extern int perf_trace_init(struct perf_event *event);
extern void perf_trace_destroy(struct perf_event *event); extern void perf_trace_destroy(struct perf_event *event);
......
...@@ -1557,8 +1557,8 @@ static bool is_cfi_preamble_symbol(unsigned long addr) ...@@ -1557,8 +1557,8 @@ static bool is_cfi_preamble_symbol(unsigned long addr)
if (lookup_symbol_name(addr, symbuf)) if (lookup_symbol_name(addr, symbuf))
return false; return false;
return str_has_prefix("__cfi_", symbuf) || return str_has_prefix(symbuf, "__cfi_") ||
str_has_prefix("__pfx_", symbuf); str_has_prefix(symbuf, "__pfx_");
} }
static int check_kprobe_address_safe(struct kprobe *p, static int check_kprobe_address_safe(struct kprobe *p,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment