Skip to content

Backport fix commit for kprobe_non_uniq_symbol.tc test failure

Sherry Yang stable 1 version Applied

Status from this message: Queued up, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4kallsyms: Make kallsyms_on_each_symbol generally availableinclude/linux/kallsyms.h kernel/kallsyms.c+6 -30 replies
2/4kallsyms: Make module_kallsyms_on_each_symbol generally availableinclude/linux/module.h kernel/module.c+9 -20 replies
3/4tracing/kprobes: Return EADDRNOTAVAIL when func matches several symbolskernel/trace/trace_kprobe.c kernel/trace/trace_probe.h+75 -00 replies
4/4tracing/kprobes: Fix symbol counting logic by looking at modules as wellkernel/trace/trace_kprobe.c+2 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMasami HiramatsuSong Liu
1/4R-b
2/4A-b
3/4A-b
4/4A-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.10.y 0/4] Backport fix commit for kprobe_non_uniq_symbol.tc test failure

5.10.y backported the commit
09bcf9254838 ("selftests/ftrace: Add new test case which checks non unique symbol")
which added a new test case to check non-unique symbol. However, 5.10.y
didn't backport the kernel commit
b022f0c7e404 ("tracing/kprobes: Return EADDRNOTAVAIL when func matches several symbols")to support the functionality from kernel side. Backport it in this patch series.

The first two patches are presiquisites. The 4th commit is a fix commit for the 3rd one.

Build and test case passed.
[73] Test failure of registering kprobe on non unique symbol

	[PASS]

Andrii Nakryiko (1):
tracing/kprobes: Fix symbol counting logic by looking at modules as
well

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

Jiri Olsa (2):
kallsyms: Make kallsyms_on_each_symbol generally available
kallsyms: Make module_kallsyms_on_each_symbol generally available

 include/linux/kallsyms.h    |  7 +++-
 include/linux/module.h      |  9 +++++
 kernel/kallsyms.c           |  2 -
 kernel/module.c             |  2 -
 kernel/trace/trace_kprobe.c | 76 +++++++++++++++++++++++++++++++++++++
 kernel/trace/trace_probe.h  |  1 +
 6 files changed, 92 insertions(+), 5 deletions(-)
Signature · 1 line
2.46.0