Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177674654
D31878.1795003978.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
765 B
Referenced Files
None
Subscribers
None
D31878.1795003978.diff
View Options
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -1845,6 +1845,8 @@
struct sctppcbhead *head;
struct sctp_inpcb *tinp, *ninp;
+ SCTP_INP_INFO_WLOCK_ASSERT();
+
if (sctp_is_feature_off(inp, SCTP_PCB_FLAGS_PORTREUSE)) {
/* only works with port reuse on */
return (-1);
@@ -1853,7 +1855,6 @@
return (0);
}
SCTP_INP_RUNLOCK(inp);
- SCTP_INP_INFO_WLOCK();
head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(inp->sctp_lport,
SCTP_BASE_INFO(hashmark))];
/* Kick out all non-listeners to the TCP hash */
@@ -1885,7 +1886,6 @@
LIST_INSERT_HEAD(head, inp, sctp_hash);
SCTP_INP_WUNLOCK(inp);
SCTP_INP_RLOCK(inp);
- SCTP_INP_INFO_WUNLOCK();
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 12:12 PM (32 m, 7 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41799972
Default Alt Text
D31878.1795003978.diff (765 B)
Attached To
Mode
D31878: sctp: Fix lock recursion in sctp_swap_inpcb_for_listen()
Attached
Detach File
Event Timeline