bpf: Document EFAULT changes for sockopt
authorStanislav Fomichev <sdf@google.com>
Thu, 11 May 2023 17:04:56 +0000 (10:04 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sat, 13 May 2023 23:55:46 +0000 (16:55 -0700)
commit6b6a23d5d8e857e0dda1bbe5043cf4d5e9c711d3
treea9447b5600d3d980f8445bb223db5cbab058042b
parente01b4a72f132c1ca63e3ed851bef9b3c62ae6149
bpf: Document EFAULT changes for sockopt

And add examples for how to correctly handle large optlens.
This is less relevant now when we don't EFAULT anymore, but
that's still the correct thing to do.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20230511170456.1759459-5-sdf@google.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Documentation/bpf/prog_cgroup_sockopt.rst