[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130412.151125.1267276967257090325.davem@davemloft.net>
Date: Fri, 12 Apr 2013 15:11:25 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: david.ward@...mit.edu
Cc: netdev@...r.kernel.org, amwang@...hat.com, eric.dumazet@...il.com
Subject: Re: [PATCH] net/802/mrp: fix possible race condition when calling
mrp_pdu_queue()
From: David Ward <david.ward@...mit.edu>
Date: Thu, 11 Apr 2013 19:47:15 -0400
> (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@...hat.com>
> Cc: Eric Dumazet <eric.dumazet@...il.com>
> Signed-off-by: David Ward <david.ward@...mit.edu>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists