Skip to content

Commit 78afc57

Browse files
committed
Merge: net/ipv6: release expired exception dst cached in socket
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6128 JIRA: https://issues.redhat.com/browse/RHEL-72264 Upstream Status: linux.git CVE: CVE-2024-56644 Signed-off-by: Guillaume Nault <gnault@redhat.com> Approved-by: Paolo Abeni <pabeni@redhat.com> Approved-by: Hangbin Liu <haliu@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Rado Vrbovsky <rvrbovsk@redhat.com>
2 parents dc42504 + 9ca54b8 commit 78afc57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/ipv6/route.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,10 +2774,10 @@ static void ip6_negative_advice(struct sock *sk,
27742774
if (rt->rt6i_flags & RTF_CACHE) {
27752775
rcu_read_lock();
27762776
if (rt6_check_expired(rt)) {
2777-
/* counteract the dst_release() in sk_dst_reset() */
2778-
dst_hold(dst);
2777+
/* rt/dst can not be destroyed yet,
2778+
* because of rcu_read_lock()
2779+
*/
27792780
sk_dst_reset(sk);
2780-
27812781
rt6_remove_exception_rt(rt);
27822782
}
27832783
rcu_read_unlock();

0 commit comments

Comments
 (0)