Re: [PATCH net] sctp: hold the chunks only after the chunk is enqueued in outq

2015-12-06 Thread David Miller
From: Xin Long Date: Sat, 5 Dec 2015 15:15:17 +0800 > When a msg is sent, sctp will hold the chunks of this msg and then try > to enqueue them. But if the chunks are not enqueued in sctp_outq_tail() > because of the invalid state, sctp_cmd_interpreter() may still return > success to sctp_sendmsg

[PATCH net] sctp: hold the chunks only after the chunk is enqueued in outq

2015-12-04 Thread Xin Long
When a msg is sent, sctp will hold the chunks of this msg and then try to enqueue them. But if the chunks are not enqueued in sctp_outq_tail() because of the invalid state, sctp_cmd_interpreter() may still return success to sctp_sendmsg() after calling sctp_outq_flush(), these chunks will become or