]> err.no Git - linux-2.6/commit
[SCTP]: Add RCU synchronization around sctp_localaddr_list
authorVlad Yasevich <vladislav.yasevich@hp.com>
Sun, 16 Sep 2007 23:02:12 +0000 (16:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2007 23:02:12 +0000 (16:02 -0700)
commit293035479942400a7fe8e4f72465d4e4e466b91a
treeaf9890403a554b4cf8389a9116080a0d1aa187fb
parentddeee3ce7fbf0e800f2a26a76d6018b42b337cc2
[SCTP]: Add RCU synchronization around sctp_localaddr_list

sctp_localaddr_list is modified dynamically via NETDEV_UP
and NETDEV_DOWN events, but there is not synchronization
between writer (even handler) and readers.  As a result,
the readers can access an entry that has been freed and
crash the sytem.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Sridhar Samdurala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h
include/net/sctp/structs.h
net/sctp/bind_addr.c
net/sctp/ipv6.c
net/sctp/protocol.c
net/sctp/socket.c