From: Jeff Garzik <jgarzik@pobox.com>
To: Yusuf Wilajati Purna <purna@jcom.home.ne.jp>
Cc: netdev@oss.sgi.com
Subject: Re: [PATCH] fix skb binding time in some network drivers due to skb_padto conversion
Date: Sun, 31 Aug 2003 09:25:12 -0400 [thread overview]
Message-ID: <3F51F738.5040607@pobox.com> (raw)
In-Reply-To: <3F515DD0.9000409@jcom.home.ne.jp>
Yusuf Wilajati Purna wrote:
> Hi Jeff,
>
> It seems that skb_padto security fixes in 2.4 and 2.5 trying
> to fix "CAN-2003-0001:Multiple ethernet NID device drivers
> do not pad frames with null bytes", do not put the skb_padto
> blocks in proper places in the 3c527, eth16i, fmv18x, seeq8005,
> yellowfin device drivers.
>
> In case a driver calls skb_padto(), it is possible
> that the space available in the original skb buffer tailroom is less
> than the space to pad. In this case, in short, the skb_padto()
> will create a new skb buffer, copy data from the original
> skb buffer to a new skb buffer, free the original buffer,
> and finally return the new buffer.
>
> If this happens to the aforementioned device drivers, they come to
> point to wrong data. And, for 3c527 and yellowfin, the drivers can
> unexpectedly double free the original skb buffers since they still
> point to the original skb buffers. The attached patch against
> 2.4.23pre1 fixes these issues.
>
> If the patch looks okay, please consider including it in
> 2.4 and 2.5/6.
Yes, this looks needed. Thanks!
Jeff
next prev parent reply other threads:[~2003-08-31 13:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-31 2:30 [PATCH] fix skb binding time in some network drivers due to skb_padto conversion Yusuf Wilajati Purna
2003-08-31 13:25 ` Jeff Garzik [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-08-29 21:25 Yusuf Wilajati Purna
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=3F51F738.5040607@pobox.com \
--to=jgarzik@pobox.com \
--cc=netdev@oss.sgi.com \
--cc=purna@jcom.home.ne.jp \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.