diff options
author | Baptiste Lepers <baptiste.lepers@gmail.com> | 2021-01-07 16:11:10 +1100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-08 19:15:40 -0800 |
commit | fd2ddef043592e7de80af53f47fa46fd3573086e (patch) | |
tree | fbd086182ba7049c4a7b6552809ee757b426a84f /net/tipc/socket.h | |
parent | 53475c5dd856212e91538a9501162e821cc1f791 (diff) |
udp: Prevent reuseport_select_sock from reading uninitialized socks
reuse->socks[] is modified concurrently by reuseport_add_sock. To
prevent reading values that have not been fully initialized, only read
the array up until the last known safe index instead of incorrectly
re-reading the last index of the array.
Fixes: acdcecc61285f ("udp: correct reuseport selection with connected sockets")
Signed-off-by: Baptiste Lepers <baptiste.lepers@gmail.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20210107051110.12247-1-baptiste.lepers@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/tipc/socket.h')
0 files changed, 0 insertions, 0 deletions