diff options
| author | Cong Wang <[email protected]> | 2013-04-02 21:52:40 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-04-07 21:04:17 +0000 |
| commit | cfbe800b8b771afc7d5aa113e19f85ec933b7618 (patch) | |
| tree | 153b62e924d6a9982788f294590d0e78d7e53d08 /net/unix/af_unix.c | |
| parent | selftests: net: add PF_PACKET TPACKET v1/v2/v3 selftests (diff) | |
| download | kernel-cfbe800b8b771afc7d5aa113e19f85ec933b7618.tar.gz kernel-cfbe800b8b771afc7d5aa113e19f85ec933b7618.zip | |
802: fix a possible race condition
(Resend with a better changelog)
garp_pdu_queue() should ways be called with this spin lock.
garp_uninit_applicant() only holds rtnl lock which is not
enough here. A possible race can happen as garp_pdu_rcv()
is called in BH context:
garp_pdu_rcv()
|->garp_pdu_parse_msg()
|->garp_pdu_parse_attr()
|-> garp_gid_event()
Found by code inspection.
Cc: Eric Dumazet <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: David Ward <[email protected]>
Cc: "Jorge Boncompte [DTI2]" <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
