-
Notifications
You must be signed in to change notification settings - Fork 151
selftests/bpf: Fix htab_update/reenter_update selftest failure #10303
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
base: bpf-next_base
Are you sure you want to change the base?
Conversation
|
Upstream branch: 4722981 |
4a6b8b7 to
1efb39d
Compare
|
Upstream branch: 7dc211c |
a527aca to
2e6e3c0
Compare
|
Upstream branch: 7dc211c |
2e6e3c0 to
587f729
Compare
1efb39d to
5b97b4a
Compare
|
Upstream branch: ec12ab2 |
587f729 to
0fab581
Compare
5b97b4a to
7b6b51d
Compare
|
Upstream branch: d6ec090 |
0fab581 to
e829253
Compare
7b6b51d to
2412df8
Compare
|
Upstream branch: d6ec090 |
e829253 to
bf1c563
Compare
2412df8 to
bfb0726
Compare
|
Upstream branch: d088da9 |
bf1c563 to
5657d36
Compare
bfb0726 to
b0a5b86
Compare
|
Upstream branch: e0940c6 |
5657d36 to
b4d8e81
Compare
b0a5b86 to
44cbecf
Compare
|
Upstream branch: 792f258 |
b4d8e81 to
9ecb412
Compare
44cbecf to
e8ba78a
Compare
|
Upstream branch: 878ee3c |
9ecb412 to
e83c458
Compare
e8ba78a to
c1a1f03
Compare
|
Upstream branch: ae24fc8 |
e83c458 to
ade815e
Compare
c1a1f03 to
ca453f8
Compare
|
Upstream branch: 4dd3a48 |
ade815e to
d3c4fb7
Compare
ca453f8 to
b3f74e5
Compare
|
Upstream branch: 8f7cf30 |
d3c4fb7 to
f866438
Compare
b3f74e5 to
b57110f
Compare
Since commit 31158ad ("rqspinlock: Add deadlock detection and recovery") the updated path on re-entrancy now reports deadlock via -EDEADLK instead of the previous -EBUSY. Also, the way reentrancy was exercised (via fentry/lookup_elem_raw) has been fragile because lookup_elem_raw may be inlined (find_kernel_btf_id() will return -ESRCH). To fix this fentry is attached to bpf_obj_free_fields() instead of lookup_elem_raw() and: - The htab map is made to use a BTF-described struct val with a struct bpf_timer so that check_and_free_fields() reliably calls bpf_obj_free_fields() on element replacement. - The selftest is updated to do two updates to the same key (insert + replace) in prog_test. - The selftest is updated to align with expected errno with the kernel’s current behavior. Signed-off-by: Saket Kumar Bhaskar <[email protected]> Tested-by: Venkat Rao Bagalkote <[email protected]>
|
Upstream branch: c427320 |
f866438 to
1d44af4
Compare
Pull request for series with
subject: selftests/bpf: Fix htab_update/reenter_update selftest failure
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1024103