git: d0105578f05f - stable/13 - inet6: add the missing lock acquire to nd6_get_llentry
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Mar 2025 14:38:39 UTC
The branch stable/13 has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=d0105578f05f507614185436cf5aba92a2b61782
commit d0105578f05f507614185436cf5aba92a2b61782
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2025-02-10 14:27:37 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2025-03-18 14:38:00 +0000
inet6: add the missing lock acquire to nd6_get_llentry
Reported by: Lexi Winter
PR: 282378
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit d6138a65405f697715189363b2b18581e7abd982)
---
sys/netinet6/nd6.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 70fb468176a5..91e48bc8b991 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -2338,6 +2338,7 @@ nd6_get_llentry(struct ifnet *ifp, const struct in6_addr *addr, int family)
} else {
/* child lle already exists, free newly-created one */
lltable_free_entry(LLTABLE6(ifp), child_lle);
+ LLE_WLOCK(lle_tmp);
child_lle = lle_tmp;
}
LLE_WUNLOCK(lle);