[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 3 Mar 2010 22:19:46 +0800
From: "Zhu, Yi" <yi.zhu@...el.com>
To: Vlad Yasevich <vladislav.yasevich@...com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Sridhar Samudrala <sri@...ibm.com>
Subject: RE: [PATCH V2 5/7] sctp: use limited socket backlog
Vlad Yasevich <vladislav.yasevich@...com> wrote:
> I think this will result in a double-free of the skb, because sctp_chunk_free
> attempts to free the skb that's been assigned to the chunk. You can set the skb
> to NULL to get around that.
Ah, I missed that. Thanks!
<...>
> You also leak the ref counts here since now it's possible to not add a packet to
> the backlog queue. That means you'll take refs, but never drop them because
> the receive routing will never run.
Good catch. I'll fix it.
BTW, does the current backlog limit (sysctl_rmem_default[1] << 1) enough for sctp?
I noticed the sysctl_sctp_rmem[1] is set to 373500 in my box.
Thanks,
-yi
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists