Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145491333
D14622.id40075.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
861 B
Referenced Files
None
Subscribers
None
D14622.id40075.diff
View Options
Index: sys/netinet6/ip6_output.c
===================================================================
--- sys/netinet6/ip6_output.c
+++ sys/netinet6/ip6_output.c
@@ -2067,6 +2067,7 @@
{
u_long pmtu = 0;
struct ip6_mtuinfo mtuinfo;
+ struct in6_addr addr;
if (!(so->so_state & SS_ISCONNECTED))
return (ENOTCONN);
@@ -2074,9 +2075,14 @@
* XXX: we dot not consider the case of source
* routing, or optional information to specify
* the outgoing interface.
+ * Copy faddr out of in6p to avoid holding lock
+ * on inp during route lookup.
*/
+ INP_RLOCK(in6p);
+ bcopy(&in6p->in6p_faddr, &addr, sizeof(addr));
+ INP_RUNLOCK(in6p);
error = ip6_getpmtu_ctl(so->so_fibnum,
- &in6p->in6p_faddr, &pmtu);
+ &addr, &pmtu);
if (error)
break;
if (pmtu > IPV6_MAXPACKET)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 21, 12:16 PM (14 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28922628
Default Alt Text
D14622.id40075.diff (861 B)
Attached To
Mode
D14622: handle locking and memory safety for IPV6_PATHMTU in ip6_ctloutput()
Attached
Detach File
Event Timeline
Log In to Comment