[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <65e984ce3175a_f5b79294a8@willemb.c.googlers.com.notmuch>
Date: Thu, 07 Mar 2024 04:11:42 -0500
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Gavrilov Ilia <Ilia.Gavrilov@...otecs.ru>,
Willem de Bruijn <willemdebruijn.kernel@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>,
David Ahern <dsahern@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"lvc-project@...uxtesting.org" <lvc-project@...uxtesting.org>
Subject: Re: [PATCH net-next] udp: fix incorrect parameter validation in the
udp_lib_getsockopt() function
Gavrilov Ilia wrote:
> The 'len' variable can't be negative because all 'min_t' parameters
> cast to unsigned int, and then the minimum one is chosen.
>
> To fix it, move the if statement higher.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Gavrilov Ilia <Ilia.Gavrilov@...otecs.ru>
Reviewed-by: Willem de Bruijn <willemb@...gle.com>
Powered by blists - more mailing lists