Messages in this thread | | | Date | Wed, 02 Dec 2015 23:40:08 -0500 (EST) | Subject | Re: [PATCH] sctp: use GFP_USER for user-controlled kmalloc | From | David Miller <> |
| |
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Date: Mon, 30 Nov 2015 14:32:54 -0200
> Dmitry Vyukov reported that the user could trigger a kernel warning by > using a large len value for getsockopt SCTP_GET_LOCAL_ADDRS, as that > value directly affects the value used as a kmalloc() parameter. > > This patch thus switches the allocation flags from all user-controllable > kmalloc size to GFP_USER to put some more restrictions on it and also > disables the warn, as they are not necessary. > > Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> > Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Applied.
| |