FreeBSD Bugzilla – Attachment 163350 Details for
Bug 204437
10.2 STABLE Crashing with IPSec Support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix race in in_pcbrele_wlocked
patch-204437 (text/plain), 563 bytes, created by
emeric.poupon
on 2015-11-20 09:42:02 UTC
(
hide
)
Description:
Fix race in in_pcbrele_wlocked
Filename:
MIME Type:
Creator:
emeric.poupon
Created:
2015-11-20 09:42:02 UTC
Size:
563 bytes
patch
obsolete
>--- netinet/in_pcb.c.orig 2014-11-05 09:30:01.000000000 +0100 >+++ netinet/in_pcb.c 2015-11-17 09:49:47.000000000 +0100 >@@ -1150,8 +1208,17 @@ > > INP_WLOCK_ASSERT(inp); > >- if (refcount_release(&inp->inp_refcount) == 0) >+ if (refcount_release(&inp->inp_refcount) == 0) { >+ /* >+ * If the inpcb has been freed, let the caller know, even if >+ * this isn't the last reference. >+ */ >+ if (inp->inp_flags2 & INP_FREED) { >+ INP_WUNLOCK(inp); >+ return (1); >+ } > return (0); >+ } > > KASSERT(inp->inp_socket == NULL, ("%s: inp_socket != NULL", __func__)); >
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 204437
:
163095
| 163350