From: Marek Lindner <lindner_marek@yahoo.de>
To: lesniak@sra.uni-hannover.de, b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] batman-adv crash on Intel 3945ABG & 4965 AGN
Date: Sun, 21 Nov 2010 14:32:43 +0100 [thread overview]
Message-ID: <201011211432.44862.lindner_marek@yahoo.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
Hi,
2 days ago I proposed a patch which fixes the crash you reported in ticket
#141. Although you confirmed the patch solves the issue I haven't pushed it yet
as the cause seems to be a bug within the Intel driver and should be fixed
there (unless we do something horribly wrong).
Could you please let us know the driver version that was used in your test
setup ? A 'modinfo iwlagn | grep version' should do. We will then get in touch
with the Intel wifi maintainers.
Regards,
Marek
[-- Attachment #2: 0001-batman-adv-dropped-skbs-that-are-too-short-intel-bug.patch --]
[-- Type: text/x-patch, Size: 1099 bytes --]
From a2496fe3ade7f6295b47f1271279de319831a8a7 Mon Sep 17 00:00:00 2001
From: Marek Lindner <lindner_marek@yahoo.de>
Date: Sun, 21 Nov 2010 14:15:22 +0100
Subject: [PATCH] batman-adv: dropped skbs that are too short (intel bug?)
Reported-by: Lesniak <lesniak@sra.uni-hannover.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
batman-adv/soft-interface.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/batman-adv/soft-interface.c b/batman-adv/soft-interface.c
index e93a99f..6ba796f 100644
--- a/batman-adv/soft-interface.c
+++ b/batman-adv/soft-interface.c
@@ -493,6 +493,11 @@ void interface_rx(struct net_device *soft_iface,
goto out;
}
+ printk(KERN_INFO "interface_rx(): skb->len: %i, skb->data_len: %i, bug: %i\n", skb->len, skb->data_len, skb->len - ETH_HLEN < skb->data_len);
+ if (!pskb_may_pull(skb, ETH_HLEN)) {
+ printk(KERN_INFO "interface_rx(): dropping small packet\n");
+ goto dropped;
+ }
/* skb->dev & skb->pkt_type are set here */
skb->protocol = eth_type_trans(skb, soft_iface);
--
1.7.2.3
next reply other threads:[~2010-11-21 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-21 13:32 Marek Lindner [this message]
2010-11-21 14:33 ` [B.A.T.M.A.N.] [PATCH] batman-adv: Ensure that eth_type_trans gets linear memory Sven Eckelmann
2010-11-21 23:07 ` Marek Lindner
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=201011211432.44862.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=lesniak@sra.uni-hannover.de \
/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