-
Notifications
You must be signed in to change notification settings - Fork 146
bpf: add bpf_dynptr_memset() kfunc #9228
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: c4b1be9 |
4b7c0fe
to
29dabce
Compare
Upstream branch: c4b1be9 |
1adb8a9
to
7a6ab37
Compare
29dabce
to
e4c7a26
Compare
Upstream branch: 26d0e53 |
7a6ab37
to
888078b
Compare
e4c7a26
to
2917a29
Compare
Upstream branch: 0df1a55 |
888078b
to
f9bc6aa
Compare
2917a29
to
cbe2f3c
Compare
Upstream branch: cce3fee |
f9bc6aa
to
4e5b39f
Compare
cbe2f3c
to
a6d5592
Compare
Upstream branch: 1230be8 |
4e5b39f
to
ebb25c0
Compare
a6d5592
to
9362e73
Compare
Upstream branch: 212ec92 |
ebb25c0
to
b6218fa
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=977483 expired. Closing PR. |
Upstream branch: 38d95be |
b6218fa
to
2b4bb3a
Compare
Currently there is no straightforward way to fill dynptr memory with a value (most commonly zero). One can do it with bpf_dynptr_write(), but a temporary buffer is necessary for that. Implement bpf_dynptr_memset() - an analogue of memset() from libc. Signed-off-by: Ihor Solodrai <[email protected]>
Upstream branch: 38d95be |
Add tests to verify the behavior of bpf_dynptr_memset(): * normal memset 0 * normal memset non-0 * memset with an offset * memset in dynptr that was adjusted * error: size overflow * error: offset+size overflow * error: readonly dynptr * memset into non-linear xdp dynptr Signed-off-by: Ihor Solodrai <[email protected]> Acked-by: Mykyta Yatsenko <[email protected]>
2b4bb3a
to
a1d0e14
Compare
cc01c15
to
901b4c5
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=978368 irrelevant now. Closing PR. |
Pull request for series with
subject: bpf: add bpf_dynptr_memset() kfunc
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=977483