]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf309657639518cf1ef7922f41042e4100067b857
treeda82823b2b3fa04568f7ab98c984476728ea6cbc
parentad1c1ea838a3af27be1918eee2722743ee780392
parent9944044392971bd75a21a704791d85740c7dad1c
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>