diff options
| author | Yafang Shao <[email protected]> | 2019-01-23 04:37:19 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-01-23 11:22:22 +0000 |
| commit | c9e4576743eeda8d24dedc164d65b78877f9a98c (patch) | |
| tree | 0a9240f86f043b2e67ff4cb0641f33ffd9989afc /tools/bpf/bpftool/common.c | |
| parent | bpftool: fix percpu maps updating (diff) | |
| download | kernel-c9e4576743eeda8d24dedc164d65b78877f9a98c.tar.gz kernel-c9e4576743eeda8d24dedc164d65b78877f9a98c.zip | |
bpf: sock recvbuff must be limited by rmem_max in bpf_setsockopt()
When sock recvbuff is set by bpf_setsockopt(), the value must by
limited by rmem_max. It is the same with sendbuff.
Fixes: 8c4b4c7e9ff0 ("bpf: Add setsockopt helper function to bpf")
Signed-off-by: Yafang Shao <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Acked-by: Lawrence Brakmo <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions
