]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: use RCU protection in __ip_rt_update_pmtu()
authorEric Dumazet <edumazet@google.com>
Wed, 5 Feb 2025 15:51:15 +0000 (15:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:43 +0000 (12:50 +0100)
commitce3c6165fce0f06305c806696882a3ad4b90e33f
treeae2d8e805b039ba3999ba5f189f5936ec0bdfb7f
parentfc07a232326a623d0be482e307c08ea7049c2846
ipv4: use RCU protection in __ip_rt_update_pmtu()

[ Upstream commit 139512191bd06f1b496117c76372b2ce372c9a41 ]

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

Fixes: 2fbc6e89b2f1 ("ipv4: Update exception handling for multipath routes via same device")
Fixes: 1de6b15a434c ("Namespaceify min_pmtu sysctl")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250205155120.1676781-8-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/route.c