Re: [PATCH net] sctp: fix sockopt size check

2015-07-30 Thread Marcelo Ricardo Leitner
On Wed, Jul 29, 2015 at 05:07:31PM -0700, David Miller wrote: > From: Marcelo Ricardo Leitner > Date: Tue, 28 Jul 2015 11:16:23 -0300 > > > The problem is not on being bigger than what we want, but on being > > smaller, as it causes read of invalid memory. > > > > Note that the struct changes on

Re: [PATCH net] sctp: fix sockopt size check

2015-07-29 Thread David Miller
From: Marcelo Ricardo Leitner Date: Tue, 28 Jul 2015 11:16:23 -0300 > The problem is not on being bigger than what we want, but on being > smaller, as it causes read of invalid memory. > > Note that the struct changes on commit 7e8616d8e773 didn't affect > sctp_setsockopt_events one but that's w

[PATCH net] sctp: fix sockopt size check

2015-07-28 Thread Marcelo Ricardo Leitner
The problem is not on being bigger than what we want, but on being smaller, as it causes read of invalid memory. Note that the struct changes on commit 7e8616d8e773 didn't affect sctp_setsockopt_events one but that's where this check was flipped. Fixes: 7e8616d8e773 ("[SCTP]: Update AUTH structur