b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] batman-adv crash on Intel 3945ABG & 4965 AGN
@ 2010-11-21 13:32 Marek Lindner
  2010-11-21 14:33 ` [B.A.T.M.A.N.] [PATCH] batman-adv: Ensure that eth_type_trans gets linear memory Sven Eckelmann
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Lindner @ 2010-11-21 13:32 UTC (permalink / raw)
  To: lesniak, b.a.t.m.a.n

[-- 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-21 23:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-21 13:32 [B.A.T.M.A.N.] batman-adv crash on Intel 3945ABG & 4965 AGN Marek Lindner
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).