From: Eric Dumazet <eric.dumazet@gmail.com>
To: Ian Campbell <Ian.Campbell@eu.citrix.com>,
David Miller <davem@davemloft.net>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
Andrew Morton <akpm@linux-foundation.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Chris Wright <chrisw@sous-sol.org>,
"bugzilla-daemon@bugzilla.kernel.org"
<bugzilla-daemon@bugzilla.kernel.org>,
"bugme-daemon@bugzilla.kernel.org"
<bugme-daemon@bugzilla.kernel.org>,
James Chapman <jchapman@katalix.com>,
"heil@terminal-consulting.de" <heil@terminal-consulting.de>,
"Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>
Subject: Re: [Bugme-new] [Bug 16529] New: xennet driver crashes when using with pseudowire aka l2tpv3
Date: Thu, 26 Aug 2010 10:03:08 +0200 [thread overview]
Message-ID: <1282809788.2476.59.camel@edumazet-laptop> (raw)
In-Reply-To: <1282806640.3469.26.camel@localhost.localdomain>
Here is the patch, could you test it please ?
Thanks !
[PATCH] l2tp: test for malicious frames in l2tp_eth_dev_recv()
close https://bugzilla.kernel.org/show_bug.cgi?id=16529
Before calling dev_forward_skb(), we should make sure skb contains at
least an ethernet header, even if length included in upper layer said
so.
Reported-by: Thomas Heil <heil@terminal-consulting.de>
Reported-by: Ian Campbell <Ian.Campbell@eu.citrix.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
net/l2tp/l2tp_core.c | 2 +-
net/l2tp/l2tp_eth.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c
index 58c6c4c..0687c5c 100644
--- a/net/l2tp/l2tp_eth.c
+++ b/net/l2tp/l2tp_eth.c
@@ -132,7 +132,7 @@ static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb,
printk("\n");
}
- if (data_len < ETH_HLEN)
+ if (skb->len < ETH_HLEN)
goto error;
secpath_reset(skb);
next prev parent reply other threads:[~2010-08-26 8:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-16529-10286@https.bugzilla.kernel.org/>
2010-08-25 22:31 ` [Bugme-new] [Bug 16529] New: xennet driver crashes when using with pseudowire aka l2tpv3 Andrew Morton
2010-08-25 22:56 ` Jeremy Fitzhardinge
2010-08-26 7:10 ` Ian Campbell
2010-08-26 7:22 ` Eric Dumazet
2010-08-26 8:03 ` Eric Dumazet [this message]
2010-08-26 8:14 ` Ian Campbell
2010-08-26 8:34 ` Eric Dumazet
2010-08-26 8:55 ` Ian Campbell
2010-08-26 9:44 ` Eric Dumazet
2010-08-26 20:30 ` David Miller
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=1282809788.2476.59.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=Xen-devel@lists.xensource.com \
--cc=akpm@linux-foundation.org \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=bugzilla-daemon@bugzilla.kernel.org \
--cc=chrisw@sous-sol.org \
--cc=davem@davemloft.net \
--cc=heil@terminal-consulting.de \
--cc=jchapman@katalix.com \
--cc=jeremy@goop.org \
--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