From: Marcelo Ricardo Leitner Date: Fri, 22 Jan 2016 20:29:49 +0000 (-0200) Subject: sctp: allow setting SCTP_SACK_IMMEDIATELY by the application X-Git-Tag: v3.2.78~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3efe4725b6d87ef5f1a3e4ba08bbfa20d069e2c;p=pandora-kernel.git sctp: allow setting SCTP_SACK_IMMEDIATELY by the application commit 27f7ed2b11d42ab6d796e96533c2076ec220affc upstream. 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 Acked-by: Vlad Yasevich Signed-off-by: David S. Miller [bwh: Backported to 3.2: drop the second hunk as we don't have SCTP_SNDINFO cmsg support] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed