Merge branch 'sctp-Some-sockopt-optlen-fixes'
authorDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 19:53:23 +0000 (14:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 19:53:23 +0000 (14:53 -0500)
commite5143f863c92f9f37b0977e482d6c78e74500f3b
treeda82823b2b3fa04568f7ab98c984476728ea6cbc
parent661e4e33a984fbd05e6b573ce4bb639ca699c130
parentc76f97c99ae6d26d14c7f0e50e074382bfbc9f98
Merge branch 'sctp-Some-sockopt-optlen-fixes'

Marcelo Ricardo Leitner says:

====================
sctp: Some sockopt optlen fixes

Hangbin Liu reported that some SCTP sockopt are allowing the user to get
the kernel to allocate really large buffers by not having a ceiling on
optlen.

This patchset address this issue (in patch 2), replace an GFP_ATOMIC
that isn't needed and avoid calculating the option size multiple times
in some setsockopt.
====================

Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>