Thread (31 messages) flat view 31 messages, 3 authors, 2011-08-29
STALE5460d

[PATCH 1/9] mac80211: Fix RCU pointer dereference in mesh_path_discard_frame()

From: Thomas Pedersen <hidden>
Date: 2011-08-25 01:41:07
Subsystem: mac80211, the rest · Maintainers: Johannes Berg, Linus Torvalds

From: Javier Cardona <redacted>

Reported by Pedro Larbig (ASPj)

Signed-off-by: Javier Cardona <redacted>
---
 net/mac80211/mesh_pathtbl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index 3c2bcb2..ee35f75 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -991,7 +991,9 @@ void mesh_path_discard_frame(struct sk_buff *skb,
 
 		da = hdr->addr3;
 		ra = hdr->addr1;
+		rcu_read_lock();
 		mpath = mesh_path_lookup(da, sdata);
+		rcu_read_unlock();
 		if (mpath)
 			sn = ++mpath->sn;
 		mesh_path_error_tx(sdata->u.mesh.mshcfg.element_ttl, skb->data,
-- 
1.7.4.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help