selftests/bpf: modify_return: isolate fmod_ret hooks by pid#11390
selftests/bpf: modify_return: isolate fmod_ret hooks by pid#11390kernel-patches-daemon-bpf[bot] wants to merge 2 commits intobpf-next_basefrom
Conversation
|
Upstream branch: ca0f39a |
15b24d7 to
43a1b48
Compare
|
Upstream branch: bb41fce |
43cb4d0 to
39b03da
Compare
43a1b48 to
912a12b
Compare
|
Upstream branch: bb41fce |
39b03da to
11f2c80
Compare
912a12b to
71c9f15
Compare
|
Upstream branch: 202e42e |
11f2c80 to
c840b41
Compare
71c9f15 to
45bc2d7
Compare
|
Upstream branch: 6c8e1a9 |
c840b41 to
1f97d19
Compare
45bc2d7 to
1e267ee
Compare
|
Upstream branch: 2364959 |
1f97d19 to
37682b0
Compare
1e267ee to
52ba927
Compare
|
Upstream branch: 2364959 |
37682b0 to
b37d948
Compare
52ba927 to
75c8856
Compare
|
Upstream branch: 2364959 |
b37d948 to
0680b1e
Compare
75c8856 to
6f71402
Compare
|
Upstream branch: 2364959 |
0680b1e to
da1d850
Compare
6f71402 to
3aabcc8
Compare
|
Upstream branch: 2364959 |
da1d850 to
8de99d0
Compare
3aabcc8 to
fa794bf
Compare
|
Upstream branch: 77378da |
8de99d0 to
c454b39
Compare
fa794bf to
6e67145
Compare
|
Upstream branch: 77378da |
c454b39 to
33e59e2
Compare
6e67145 to
c0ba5e6
Compare
|
Upstream branch: 888329b |
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>
33e59e2 to
cfb079c
Compare
c0ba5e6 to
9f8e178
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1066051 irrelevant now. Closing PR. |
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