[SCTP] ipv6: inconsistent lock state ipv6_add_addr/sctp_v6_copy_addrlist
authorJarek Poplawski <jarkao2@o2.pl>
Thu, 8 Mar 2007 22:43:41 +0000 (14:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2007 22:43:41 +0000 (14:43 -0800)
commite2eb8d452827b8d1f73db384cd7c6482eac29478
treef54eb5b8fee852dc1e670cd3c10efe751f4e4434
parentca4266359d0c1199af088447f209ab5bcc32a989
[SCTP] ipv6: inconsistent lock state ipv6_add_addr/sctp_v6_copy_addrlist

lockdep found that dev->lock taken from softirq in ipv6_add_addr
is also taken in sctp_v6_copy_addrlist with softirqs enabled, so
lockup is possible.

Noticed-by: Simon Arlott <simon@arlott.org>
Signed-off-by: Jarek Poplawski <jarkao2@o2.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/ipv6.c