-
Notifications
You must be signed in to change notification settings - Fork 149
s390/bpf: Write back the tail call counter #9455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Upstream branch: fa47913 |
2a0e5cd
to
2562e0e
Compare
Upstream branch: 9e293d4 |
010f224
to
66a8f99
Compare
2562e0e
to
5583eb6
Compare
Upstream branch: 3e2b799 |
66a8f99
to
b8d3c0f
Compare
5583eb6
to
601ea2d
Compare
Upstream branch: c93c59b |
b8d3c0f
to
3216dc3
Compare
601ea2d
to
7390c2c
Compare
Upstream branch: bf0c2a8 |
3216dc3
to
d361daf
Compare
7390c2c
to
3a736b5
Compare
Upstream branch: 2caa6b8 |
d361daf
to
3f1c563
Compare
3a736b5
to
c210f22
Compare
Upstream branch: 0786654 |
3f1c563
to
a7abd29
Compare
c210f22
to
2530e45
Compare
Upstream branch: dc0fe95 |
The tailcall_bpf2bpf_hierarchy_1 test hangs on s390. Its call graph is as follows: entry() subprog_tail() bpf_tail_call_static(0) -> entry + tail_call_start subprog_tail() bpf_tail_call_static(0) -> entry + tail_call_start entry() copies its tail call counter to the subprog_tail()'s frame, which then increments it. However, the incremented result is discarded, leading to an astronomically large number of tail calls. Fix by writing the incremented counter back to the entry()'s frame. Fixes: dd691e8 ("s390/bpf: Implement bpf_jit_supports_subprog_tailcalls()") Signed-off-by: Ilya Leoshkevich <[email protected]>
The tailcall_bpf2bpf_hierarchy_fentry test hangs on s390. Its call graph is as follows: entry() subprog_tail() trampoline() fentry() the rest of subprog_tail() # via BPF_TRAMP_F_CALL_ORIG return to entry() The problem is that the rest of subprog_tail() increments the tail call counter, but the trampoline discards the incremented value. This results in an astronomically large number of tail calls. Fix by making the trampoline write the incremented tail call counter back. Fixes: 528eb2c ("s390/bpf: Implement arch_prepare_bpf_trampoline()") Signed-off-by: Ilya Leoshkevich <[email protected]>
a7abd29
to
0931a02
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=990598 expired. Closing PR. |
Pull request for series with
subject: s390/bpf: Write back the tail call counter
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=990598