Re: [PATCH net] sctp: call iov_iter_revert() after sending ABORT

2019-03-04 Thread David Miller
From: Xin Long Date: Sun, 3 Mar 2019 16:50:26 +0800 > The user msg is also copied to the abort packet when doing SCTP_ABORT in > sctp_sendmsg_check_sflags(). When SCTP_SENDALL is set, iov_iter_revert() > should have been called for sending abort on the next asoc with copying > this msg. Otherwis

Re: [PATCH net] sctp: call iov_iter_revert() after sending ABORT

2019-03-04 Thread Neil Horman
On Sun, Mar 03, 2019 at 04:50:26PM +0800, Xin Long wrote: > The user msg is also copied to the abort packet when doing SCTP_ABORT in > sctp_sendmsg_check_sflags(). When SCTP_SENDALL is set, iov_iter_revert() > should have been called for sending abort on the next asoc with copying > this msg. Other

[PATCH net] sctp: call iov_iter_revert() after sending ABORT

2019-03-03 Thread Xin Long
The user msg is also copied to the abort packet when doing SCTP_ABORT in sctp_sendmsg_check_sflags(). When SCTP_SENDALL is set, iov_iter_revert() should have been called for sending abort on the next asoc with copying this msg. Otherwise, memcpy_from_msg() in sctp_make_abort_user() will fail and re