[PATCH] autofs4: check dev ioctl size before allocating

2014-04-06 Thread Ian Kent
From: Sasha Levin There wasn't any check of the size passed from userspace before trying to allocate the memory required. This meant that userspace might request more space than allowed, triggering an OOM. Signed-off-by: Sasha Levin Signed-off-by: Ian Kent --- fs/autofs4/dev-ioctl.c |3 +

Re: [PATCH] autofs4: check dev ioctl size before allocating

2014-04-06 Thread Sasha Levin
On 04/05/2014 11:53 PM, Ian Kent wrote: > On Sat, 2014-04-05 at 23:11 -0400, Sasha Levin wrote: >> On 04/05/2014 11:03 PM, Ian Kent wrote: >>> On Sat, 2014-04-05 at 11:06 -0400, Sasha Levin wrote: Ping? Anyone wants to take this? >>> >>> Is this causing a problem for users? >>> If it is I'll s

Re: [PATCH] autofs4: check dev ioctl size before allocating

2014-04-05 Thread Ian Kent
On Sat, 2014-04-05 at 23:11 -0400, Sasha Levin wrote: > On 04/05/2014 11:03 PM, Ian Kent wrote: > > On Sat, 2014-04-05 at 11:06 -0400, Sasha Levin wrote: > >> Ping? Anyone wants to take this? > > > > Is this causing a problem for users? > > If it is I'll send it to Andrew straight away. > > > > I

Re: [PATCH] autofs4: check dev ioctl size before allocating

2014-04-05 Thread Sasha Levin
On 04/05/2014 11:03 PM, Ian Kent wrote: > On Sat, 2014-04-05 at 11:06 -0400, Sasha Levin wrote: >> Ping? Anyone wants to take this? > > Is this causing a problem for users? > If it is I'll send it to Andrew straight away. > > I do have this on my queue but don't have any other patches to send so

Re: [PATCH] autofs4: check dev ioctl size before allocating

2014-04-05 Thread Ian Kent
On Sat, 2014-04-05 at 11:06 -0400, Sasha Levin wrote: > Ping? Anyone wants to take this? Is this causing a problem for users? If it is I'll send it to Andrew straight away. I do have this on my queue but don't have any other patches to send so it's just sitting there. If it worries you I'll send

Re: [PATCH] autofs4: check dev ioctl size before allocating

2014-04-05 Thread Sasha Levin
Ping? Anyone wants to take this? On 03/15/2014 09:40 PM, Sasha Levin wrote: > There wasn't any check of the size passed from userspace before > trying to allocate the memory required. > > This meant that userspace might request more space than allowed, > triggering an OOM. > > Signed-off-by: Sas

[PATCH] autofs4: check dev ioctl size before allocating

2014-03-15 Thread Sasha Levin
There wasn't any check of the size passed from userspace before trying to allocate the memory required. This meant that userspace might request more space than allowed, triggering an OOM. Signed-off-by: Sasha Levin --- fs/autofs4/dev-ioctl.c |3 +++ 1 files changed, 3 insertions(+), 0 delet