linux-stable/net/802
David Ward fb745e9a03 net/802/mrp: fix possible race condition when calling mrp_pdu_queue()
(Adapted from a very similar change to net/802/garp.c by Cong Wang.)

mrp_pdu_queue() should ways be called with the applicant spin lock.
mrp_uninit_applicant() only holds the rtnl lock which is not enough;
a race is possible because mrp_rcv() is called in BH context:

	mrp_rcv()
	  |->mrp_pdu_parse_msg()
	    |->mrp_pdu_parse_vecattr()
	      |->mrp_pdu_parse_vecattr_event()
	        |-> mrp_attr_event()
	          |-> mrp_pdu_append_vecattr_event()
	            |-> mrp_pdu_queue()

Cc: Cong Wang <amwang@redhat.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David Ward <david.ward@ll.mit.edu>
Acked-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-12 15:10:48 -04:00
..
fc.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
fddi.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
garp.c net/garp: fix GID rbtree ordering 2012-04-13 13:10:33 -04:00
hippi.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
Kconfig net/802: Implement Multiple Registration Protocol (MRP) 2013-02-10 20:37:22 -05:00
Makefile net/802: Implement Multiple Registration Protocol (MRP) 2013-02-10 20:37:22 -05:00
mrp.c net/802/mrp: fix possible race condition when calling mrp_pdu_queue() 2013-04-12 15:10:48 -04:00
p8022.c net: delete all instances of special processing for token ring 2012-05-15 20:14:35 -04:00
p8023.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
psnap.c snap: remove one synchronize_net() 2011-05-23 16:29:24 -04:00
stp.c 802: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:17 -04:00