diff options
author | Breno Leitao <leitao@debian.org> | 2023-10-16 15:47:40 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-10-19 22:05:37 +0200 |
commit | 3f31e0d14d44ad491a81b7c1f83f32fbc300a867 (patch) | |
tree | e69d7c1110eef9f75be5837577e5ba0df99cfd8a /include/net/sock.h | |
parent | bpf: Add sockptr support for getsockopt (diff) | |
download | linux-3f31e0d14d44ad491a81b7c1f83f32fbc300a867.tar.xz linux-3f31e0d14d44ad491a81b7c1f83f32fbc300a867.zip |
bpf: Add sockptr support for setsockopt
The whole network stack uses sockptr, and while it doesn't move to
something more modern, let's use sockptr in setsockptr BPF hooks, so, it
could be used by other callers.
The main motivation for this change is to use it in the io_uring
{g,s}etsockopt(), which will use a userspace pointer for *optval, but, a
kernel value for optlen.
Link: https://lore.kernel.org/all/ZSArfLaaGcfd8LH8@gmail.com/
Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20231016134750.1381153-3-leitao@debian.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/net/sock.h')
0 files changed, 0 insertions, 0 deletions