]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sctp: allow setting SCTP_SACK_IMMEDIATELY by the application
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Fri, 22 Jan 2016 20:29:49 +0000 (18:29 -0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:45:15 +0000 (15:45 -0700)
commit29adc97a03d89457698a828bb0ed4244027d0c07
tree0ed334070a66a46d79083f7d309be958c2f98b0e
parent362bc3ee53730d30eadcc6868829dd9b8d85e234
sctp: allow setting SCTP_SACK_IMMEDIATELY by the application

Orabug: 23330933

[ Upstream commit 27f7ed2b11d42ab6d796e96533c2076ec220affc ]

This patch extends commit b93d6471748d ("sctp: implement the sender side
for SACK-IMMEDIATELY extension") as it didn't white list
SCTP_SACK_IMMEDIATELY on sctp_msghdr_parse(), causing it to be
understood as an invalid flag and returning -EINVAL to the application.

Note that the actual handling of the flag is already there in
sctp_datamsg_from_user().

https://tools.ietf.org/html/rfc7053#section-7

Fixes: b93d6471748d ("sctp: implement the sender side for SACK-IMMEDIATELY extension")
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 6e13e7b0183e0b9945ff350bd5fad573c2ece83c)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
net/sctp/socket.c