bpf: fix bpf_setsockopts return value
Subsystems (4)
PATCH 1/1 bpf: fix bpf_setsockopts return value
This patch fixes a bug causing any sock operations to always return EINVAL.
--- net/core/filter.c | 1 - 1 file changed, 1 deletion(-)
net/core/filter.c +0 -1
@@ -2872,7 +2872,6 @@ BPF_CALL_5(bpf_setsockopt, struct bpf_sock_ops_kern *, bpf_sock, ret = -EINVAL; } } - ret = -EINVAL ;#endif }else { ret = -EINVAL ;
Signature · 1 line
2.14.1.342.g6490525c54-goog
Quoted 7 lines · Yuchung Cheng
This patch fixes a bug causing any sock operations to always return EINVAL.
Fixes a5192c52377e ("bpf: fix to bpf_setsockops").Reported-by Neal Cardwell <[email protected]>Signed-off-by Yuchung Cheng <[email protected]>Acked-by Neal Cardwell <[email protected]>Acked-by Craig Gallek <[email protected]>
Ohh well, thanks for the fix!
On 8/24/17, 4:37 PM, "Daniel Borkmann" <[email protected]> wrote:
On 08/25/2017 12:48 AM, Yuchung Cheng wrote:
> This patch fixes a bug causing any sock operations to always return EINVAL. >
> Fixes: a5192c52377e ("bpf: fix to bpf_setsockops").
> Reported-by: Neal Cardwell <[email protected]>
> Signed-off-by: Yuchung Cheng <[email protected]>
> Acked-by: Neal Cardwell <[email protected]>
> Acked-by: Craig Gallek <[email protected]>
Ohh well, thanks for the fix!
Thanks! I never checked return values in by bpf test programs
From: Yuchung Cheng <[email protected]>
Date: Thu, 24 Aug 2017 15:48:21 -0700
Quoted 7 lines
This patch fixes a bug causing any sock operations to always return EINVAL.
Fixes a5192c52377e ("bpf: fix to bpf_setsockops").Reported-by Neal Cardwell <[email protected]>Signed-off-by Yuchung Cheng <[email protected]>Acked-by Neal Cardwell <[email protected]>Acked-by Craig Gallek <[email protected]>
Applied.