lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 21 Jul 2020 08:25:04 -0400
From:   Willem de Bruijn <>
To:     Kuniyuki Iwashima <>
Cc:     "David S . Miller" <>,
        Alexey Kuznetsov <>,
        Hideaki YOSHIFUJI <>,
        Jakub Kicinski <>,
        Eric Dumazet <>,
        Craig Gallek <>,
        Paolo Abeni <>,
        Network Development <>,
        Kuniyuki Iwashima <>,
        Benjamin Herrenschmidt <>,
Subject: Re: [PATCH net 1/2] udp: Copy has_conns in reuseport_grow().

On Tue, Jul 21, 2020 at 2:16 AM Kuniyuki Iwashima <> wrote:
> If an unconnected socket in a UDP reuseport group connect()s, has_conns is
> set to 1. Then, when a packet is received, udp[46]_lib_lookup2() scans all
> sockets in udp_hslot looking for the connected socket with the highest
> score.
> However, when the number of sockets bound to the port exceeds max_socks,
> reuseport_grow() resets has_conns to 0. It can cause udp[46]_lib_lookup2()
> to return without scanning all sockets, resulting in that packets sent to
> connected sockets may be distributed to unconnected sockets.
> Therefore, reuseport_grow() should copy has_conns.
> Fixes: acdcecc61285 ("udp: correct reuseport selection with connected sockets")
> CC: Willem de Bruijn <>
> Reviewed-by: Benjamin Herrenschmidt <>
> Signed-off-by: Kuniyuki Iwashima <>

Acked-by: Willem de Bruijn <>

Thanks. Yes, I missed this resize operation when adding the field.

Powered by blists - more mailing lists