[SCTP]: Fix couple of races between sctp_peeloff() and sctp_rcv().
authorSridhar Samudrala <sri@us.ibm.com>
Tue, 17 Jan 2006 19:56:26 +0000 (11:56 -0800)
committerSridhar Samudrala <sri@us.ibm.com>
Tue, 17 Jan 2006 19:56:26 +0000 (11:56 -0800)
commitc4d2444e992c4eda1d7fc3287e93ba58295bf6b9
tree04f2096c141ede308356bd2d8277d4c291fae24d
parent313e7b4d2588539e388d31c1febd50503a0083fc
[SCTP]: Fix couple of races between sctp_peeloff() and sctp_rcv().

Validate and update the sk in sctp_rcv() to avoid the race where an
assoc/ep could move to a different socket after we get the sk, but before
the skb is added to the backlog.

Also migrate the skb's in backlog queue to new sk when doing a peeloff.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
include/net/sctp/sctp.h
net/sctp/input.c
net/sctp/socket.c