FreeBSD Bugzilla – Attachment 223546 Details for
Bug 254478
Panic when using ipfw and divert sockets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch (untested)
ip_divert.diff (text/plain), 525 bytes, created by
Andrey V. Elsukov
on 2021-03-24 09:19:57 UTC
(
hide
)
Description:
proposed patch (untested)
Filename:
MIME Type:
Creator:
Andrey V. Elsukov
Created:
2021-03-24 09:19:57 UTC
Size:
525 bytes
patch
obsolete
>diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c >index bcde5416456b..81e70177e641 100644 >--- a/sys/netinet/ip_divert.c >+++ b/sys/netinet/ip_divert.c >@@ -278,6 +278,10 @@ divert_packet(struct mbuf *m, int incoming) > /* 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,
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 254478
: 223546