SCTP: Fix local_addr deletions during list traversals.
authorChidambar 'ilLogict' Zinnoury <illogict@online.fr>
Mon, 7 Apr 2008 06:42:35 +0000 (23:42 -0700)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:26 +0000 (18:53 -0700)
commit746b23e44e933a993777eb054ab6b44724a43d6e
tree5175da3f74b41850c60a40dad269b01c161c34ee
parented03865a4621b60f8c1b4c3932db85303c3ec349
SCTP: Fix local_addr deletions during list traversals.

Upstream commit: 22626216c46f2ec86287e75ea86dd9ac3df54265

Since the lists are circular, we need to explicitely tag
the address to be deleted since we might end up freeing
the list head instead.  This fixes some interesting SCTP
crashes.

Signed-off-by: Chidambar 'ilLogict' Zinnoury <illogict@online.fr>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/sctp/bind_addr.c
net/sctp/ipv6.c
net/sctp/protocol.c