From: Eric Dumazet <eric.dumazet@gmail.com>
To: Govindarajulu Varadarajan <govindarajulu90@gmail.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: sk_buff: memset(skb,0) after alloc in skb_clone
Date: Tue, 10 Sep 2013 05:40:32 -0700 [thread overview]
Message-ID: <1378816832.26319.75.camel@edumazet-glaptop> (raw)
In-Reply-To: <1378788533-5609-1-git-send-email-govindarajulu90@gmail.com>
On Tue, 2013-09-10 at 10:18 +0530, Govindarajulu Varadarajan wrote:
> The following patch memset the skb to 0 after alloc. We do this in
> __alloc_skb_head, __alloc_skb, build_skb. We are missing this in
> skb_clone.
>
> The following call to __skb_clone in skb_clone does not copy all the
> members of sk_buff. If we donot clear the skb to 0, we will have some
> uninitialized members in new skb.
Which ones exactly ?
I would rather make sure all fields are properly copied.
Your patch is incomplete, because it doesn't handle the fast clone case.
next prev parent reply other threads:[~2013-09-10 12:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 4:48 [PATCH net-next] net: sk_buff: memset(skb,0) after alloc in skb_clone Govindarajulu Varadarajan
2013-09-10 12:40 ` Eric Dumazet [this message]
2013-09-12 6:21 ` Govindarajulu Varadarajan
-- strict thread matches above, loose matches on Subject: below --
2013-09-10 6:33 Erik Hugne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1378816832.26319.75.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=govindarajulu90@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox