Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131553128
D29420.id86545.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
442 B
Referenced Files
None
Subscribers
None
D29420.id86545.diff
View Options
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -280,6 +280,10 @@
/* XXX why does only one socket match? */
if (inp->inp_lport == nport) {
INP_RLOCK(inp);
+ if (__predict_false(inp->inp_flags2 & INP_FREED)) {
+ INP_RUNLOCK(inp);
+ continue;
+ }
sa = inp->inp_socket;
SOCKBUF_LOCK(&sa->so_rcv);
if (sbappendaddr_locked(&sa->so_rcv,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 10, 5:04 AM (17 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23518948
Default Alt Text
D29420.id86545.diff (442 B)
Attached To
Mode
D29420: ip_divert: check that PCB is still valid after INP_RLOCK taking
Attached
Detach File
Event Timeline
Log In to Comment