[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <520598A2.8040206@gmail.com>
Date: Fri, 09 Aug 2013 21:34:26 -0400
From: Vlad Yasevich <vyasevich@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>
CC: netdev@...r.kernel.org, davem@...emloft.net,
linux-sctp@...r.kernel.org, dborkman@...hat.com
Subject: Re: [PATCH] net: sctp: fix panic during skb_orphan()
On 08/09/2013 09:20 PM, Eric Dumazet wrote:
> On Fri, 2013-08-09 at 20:39 -0400, Vlad Yasevich wrote:
>> On 08/09/2013 07:20 PM, Eric Dumazet wrote:
>
>>> Why not using a dummy destructor ?
>>
>> It would just be useless once we do proper accounting for all chunks.
>> But, I'll send a different idea if this is just too ugly.
>
> Setting skb->sk is no accounting.
Right. It is only really used right now when constructing a packet to
transmit out of a set of chunks.
>
> It seems you would better use skb->cb[] so that you are 100% sure this
> skb->sk doesn't leak outside of SCTP code.
Hmm.. That might work too. I am building a framework right now that
we can use to add proper buffer accounting. That's probably a better
long term solution.
-vlad
--
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