]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:42 +0000 (12:50 +0100)
commit4561343d2b6c04311ab61cd7837fd63fdf396d53
treea8ffb96acd31c58e2ba00f0a21794b0a66f12fbe
parent50d356db0542448dda30f37a08de2724b92cbc7c
ipv4: use RCU protection in inet_select_addr()

[ Upstream commit 719817cd293e4fa389e1f69c396f3f816ed5aa41 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/devinet.c