[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <74217193-2568-0fbf-ea2c-2737bdd9184d@iogearbox.net>
Date: Sat, 31 Aug 2019 01:23:48 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Petar Penkov <ppenkov.kernel@...il.com>, netdev@...r.kernel.org,
bpf@...r.kernel.org
Cc: davem@...emloft.net, ast@...nel.org,
Petar Penkov <ppenkov@...gle.com>,
Stanislav Fomichev <sdf@...gle.com>
Subject: Re: [bpf-next] bpf: fix error check in bpf_tcp_gen_syncookie
On 8/28/19 1:46 AM, Petar Penkov wrote:
> From: Petar Penkov <ppenkov@...gle.com>
>
> If a SYN cookie is not issued by tcp_v#_gen_syncookie, then the return
> value will be exactly 0, rather than <= 0. Let's change the check to
> reflect that, especially since mss is an unsigned value and cannot be
> negative.
>
> Fixes: 70d66244317e ("bpf: add bpf_tcp_gen_syncookie helper")
> Reported-by: Stanislav Fomichev <sdf@...gle.com>
> Signed-off-by: Petar Penkov <ppenkov@...gle.com>
Applied, thanks!
Powered by blists - more mailing lists