Re: [PATCH net 0/3] Some sockopt optlen fixes

2018-01-10 Thread David Miller
From: Marcelo Ricardo Leitner Date: Mon, 8 Jan 2018 19:02:26 -0200 > 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_ATOM

Re: [PATCH net 0/3] Some sockopt optlen fixes

2018-01-08 Thread Neil Horman
On Mon, Jan 08, 2018 at 07:02:26PM -0200, Marcelo Ricardo Leitner wrote: > 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_A

[PATCH net 0/3] Some sockopt optlen fixes

2018-01-08 Thread Marcelo Ricardo Leitner
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 som