Skip to content

Return EADDRNOTAVAIL when func matches several symbols

Francis Laniel stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1tracing/kprobes: Return EADDRNOTAVAIL when func matches several symbolskernel/trace/trace_kprobe.c kernel/trace/trace_probe.h+75 -00 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchMasami Hiramatsu (Google)
1/1A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 5.15.y 0/1] Return EADDRNOTAVAIL when func matches several symbols

Hi!

Applying the upstream patch leaded to compilation error regarding kallsyms_on_each_match_symbol().
So, I adapted the patch to use kallsyms_on_each_symbol() instead:

root@vm-amd64:~# uname -a
Linux vm-amd64 5.15.136+ #126 SMP Mon Oct 23 15:18:02 EEST 2023 x86_64 GNU/Linux
root@vm-amd64:~# echo 'p:probe/name_show name_show' > /sys/kernel/tracing/kprobe_events
bash: echo: write error: Cannot assign requested address

As I modified the patch, I would like to get some reviews before it lands in stable.

Francis Laniel (1):
tracing/kprobes: Return EADDRNOTAVAIL when func matches several
symbols

 kernel/trace/trace_kprobe.c | 74 +++++++++++++++++++++++++++++++++++++
 kernel/trace/trace_probe.h  |  1 +
 2 files changed, 75 insertions(+)

Best regards and thank you in advance.
--
2.34.1