]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sctp: Do not reset the packet during sctp_packet_config().
authorVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 15 Sep 2010 14:00:26 +0000 (10:00 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Sep 2010 00:18:42 +0000 (17:18 -0700)
commit21a32e679ffa7491e89bfbefa0d36413ca9cb64c
tree8784ba7f7dfa5ff4384d2dd98b1924595c57d4b5
parent2178c26dbdca2ac63c0e4183aa9e570e2ffe593e
sctp: Do not reset the packet during sctp_packet_config().

commit 4bdab43323b459900578b200a4b8cf9713ac8fab upstream.

sctp_packet_config() is called when getting the packet ready
for appending of chunks.  The function should not touch the
current state, since it's possible to ping-pong between two
transports when sending, and that can result packet corruption
followed by skb overlfow crash.

Reported-by: Thomas Dreibholz <dreibh@iem.uni-due.de>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sctp/output.c