Skip to content

selftests/bpf: modify_return: isolate fmod_ret hooks by pid#11390

Closed
kernel-patches-daemon-bpf[bot] wants to merge 2 commits intobpf-next_basefrom
series/1066051=>bpf-next
Closed

selftests/bpf: modify_return: isolate fmod_ret hooks by pid#11390
kernel-patches-daemon-bpf[bot] wants to merge 2 commits intobpf-next_basefrom
series/1066051=>bpf-next

Conversation

@kernel-patches-daemon-bpf
Copy link
Copy Markdown

Pull request for series with
subject: selftests/bpf: modify_return: isolate fmod_ret hooks by pid
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: ca0f39a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: bb41fce
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: bb41fce
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 202e42e
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 6c8e1a9
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 2364959
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 2364959
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 2364959
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 2364959
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 2364959
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 77378da
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 77378da
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 888329b
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051
version: 2

modify_return's fmod_ret programs can override bpf_modify_return_test()'s
return value, which conflicts with get_func_ip_test when selftests run in
parallel.

Store current tgid in BSS and make modify_return hooks act only for that
tgid. For other tasks, fentry/fexit become no-ops and fmod_ret returns the
original ret.

Drop the serial-only restriction and remove the TODO comment.

Tested:
  sudo ./test_progs -t modify_return
  sudo ./test_progs -t get_func_ip_test
  sudo ./test_progs -j$(nproc) -t modify_return
  sudo ./test_progs -j$(nproc) -t get_func_ip_test

Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051 irrelevant now. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf Bot deleted the series/1066051=>bpf-next branch March 19, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant