FreeBSD Bugzilla – Attachment 161327 Details for
Bug 203175
Daily kernel crashes in tcp_twclose <Address 0x1 out of bounds> on 10.2-p2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
First tentative patch for this issue
tcp-close-fix-v1.patch (text/plain), 606 bytes, created by
Julien Charbon
on 2015-09-24 09:45:07 UTC
(
hide
)
Description:
First tentative patch for this issue
Filename:
MIME Type:
Creator:
Julien Charbon
Created:
2015-09-24 09:45:07 UTC
Size:
606 bytes
patch
obsolete
>diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c >index be9e0e7..4379e19 100644 >--- a/sys/netinet/tcp_usrreq.c >+++ b/sys/netinet/tcp_usrreq.c >@@ -199,10 +199,11 @@ tcp_detach(struct socket *so, struct inpcb *inp) > * In all three cases the tcptw should not be freed here. > */ > if (inp->inp_flags & INP_DROPPED) { >- KASSERT(tp == NULL, ("tcp_detach: INP_TIMEWAIT && " >- "INP_DROPPED && tp != NULL")); > in_pcbdetach(inp); >- in_pcbfree(inp); >+ if (tp == NULL) >+ in_pcbfree(inp); >+ else >+ INP_WUNLOCK(inp); > } else { > in_pcbdetach(inp); > INP_WUNLOCK(inp);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203175
:
161149
|
161296
|
161327