git: 00f1ccf959a6 - stable/14 - 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:31:35 UTC
The branch stable/14 has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=00f1ccf959a62865a563857f7ab34f81e91def1b
commit 00f1ccf959a62865a563857f7ab34f81e91def1b
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:31:22 +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 e1fd421060df..887da1ebe21a 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -2357,6 +2357,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);