diff options
| author | Daniel Borkmann <[email protected]> | 2017-07-27 19:02:46 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-07-29 21:28:54 +0000 |
| commit | 89b096898a8450b0a5b97d521e000ae9f94f81f9 (patch) | |
| tree | fab22c5fc592d584692e3b4f29634825d50a1f18 /net/ipv4/tcp_output.c | |
| parent | udp6: fix socket leak on early demux (diff) | |
| download | kernel-89b096898a8450b0a5b97d521e000ae9f94f81f9.tar.gz kernel-89b096898a8450b0a5b97d521e000ae9f94f81f9.zip | |
bpf: don't indicate success when copy_from_user fails
err in bpf_prog_get_info_by_fd() still holds 0 at that time from prior
check_uarg_tail_zero() check. Explicitly return -EFAULT instead, so
user space can be notified of buggy behavior.
Fixes: 1e2709769086 ("bpf: Add BPF_OBJ_GET_INFO_BY_FD")
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
