bpf: Document optval > PAGE_SIZE behavior for sockopt hooks
authorStanislav Fomichev <sdf@google.com>
Wed, 17 Jun 2020 01:04:16 +0000 (18:04 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 17 Jun 2020 17:54:05 +0000 (10:54 -0700)
commit8030e250d882db174cbcd88273570ffb36a13080
treedc7cd3c1ae17b73b2a7e56cef6eaac706ae3c080
parenta0cb12b03132befbdb29d835ca330c18792e8134
bpf: Document optval > PAGE_SIZE behavior for sockopt hooks

Extend existing doc with more details about requiring ctx->optlen = 0
for handling optval > PAGE_SIZE.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200617010416.93086-3-sdf@google.com
Documentation/bpf/prog_cgroup_sockopt.rst