]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: use RCU protection in inet_select_addr()
authorEric Dumazet <edumazet@google.com>
Wed, 5 Feb 2025 15:51:14 +0000 (15:51 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 00:14:14 +0000 (16:14 -0800)
commit719817cd293e4fa389e1f69c396f3f816ed5aa41
tree32204021cb989aaf6dd8976d60629468c8791211
parentdd205fcc33d92d54eee4d7f21bb073af9bd5ce2b
ipv4: use RCU protection in inet_select_addr()

inet_select_addr() must use RCU protection to make
sure the net structure it reads does not disappear.

Fixes: c4544c724322 ("[NETNS]: Process inet_select_addr inside a namespace.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250205155120.1676781-7-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/devinet.c