diff options
| author | Kuniyuki Iwashima <[email protected]> | 2022-01-04 01:31:48 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-01-05 22:15:42 +0000 |
| commit | 04c350b1ae6bdb12b84009a4d0bf5ab4e621c47b (patch) | |
| tree | 6cde31e1e89f7e4d8b7e8e6e2017c0d59a58b494 /tools/bpf/bpftool/prog.c | |
| parent | bpf: Fix verifier support for validation of async callbacks (diff) | |
| download | kernel-04c350b1ae6bdb12b84009a4d0bf5ab4e621c47b.tar.gz kernel-04c350b1ae6bdb12b84009a4d0bf5ab4e621c47b.zip | |
bpf: Fix SO_RCVBUF/SO_SNDBUF handling in _bpf_setsockopt().
The commit 4057765f2dee ("sock: consistent handling of extreme
SO_SNDBUF/SO_RCVBUF values") added a change to prevent underflow
in setsockopt() around SO_SNDBUF/SO_RCVBUF.
This patch adds the same change to _bpf_setsockopt().
Fixes: 4057765f2dee ("sock: consistent handling of extreme SO_SNDBUF/SO_RCVBUF values")
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
