Skip to content

bpf: Add check for negative uprobe multi offset

Jiri Olsa bpf 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesApplied 2/2
  2. v1 RFC2 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- add more failure checks [Alan]
- move the offset retrieval/check up in the loop to be done earlier [Song]

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Fail uprobe multi link with negative offsetkernel/trace/bpf_trace.c+6 -23 repliesApplied
2/2selftests/bpf: Add more uprobe multi fail teststools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c+146 -32 repliesApplied

Reviews trailers per patch

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

PatchSong Liu
1/2A-b
2/2A-b

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

Read the v2 thread

Cover letter [PATCHv2 bpf-next 0/2] bpf: Add check for negative uprobe multi offset

hi,
adding the check for negative offset for uprobe multi link.

v2 changes:
- add more failure checks [Alan]
- move the offset retrieval/check up in the loop to be done earlier [Song]

thanks,
jirka

---
Jiri Olsa (2):
bpf: Fail uprobe multi link with negative offset selftests/bpf: Add more uprobe multi fail tests

 kernel/trace/bpf_trace.c                                   |   8 +++--
 tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c | 149 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 152 insertions(+), 5 deletions(-)