aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2023-04-18 15:53:38 -0700
committerDaniel Borkmann <[email protected]>2023-04-21 17:09:53 +0200
commit00e74ae0863827d944e36e56a4ce1e77e50edb91 (patch)
tree45386bd1708469bd4cb557ef4bb1b11c56261d58 /drivers/usb/cdns3/cdns3-debug.h
parent02e93e0475df21a1091a9833c52c0e241586573a (diff)
bpf: Don't EFAULT for getsockopt with optval=NULL
Some socket options do getsockopt with optval=NULL to estimate the size of the final buffer (which is returned via optlen). This breaks BPF getsockopt assumptions about permitted optval buffer size. Let's enforce these assumptions only when non-NULL optval is provided. Fixes: 0d01da6afc54 ("bpf: implement getsockopt and setsockopt hooks") Reported-by: Martin KaFai Lau <[email protected]> Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]/T/#mb68daf700f87a9244a15d01d00c3f0e5b08f49f7 Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions