Re: mmap() doesn't like certain value...

From: Denis Vlasenko (vda@port.imtp.ilyichevsk.odessa.ua)
Date: Fri May 10 2002 - 14:41:12 EST


On 10 May 2002 06:39, DervishD wrote:
> > if ((len = PAGE_ALIGN(len)) == 0)
> > return addr;
>
> This is the problem.
>
> > if (len > TASK_SIZE)
> > return -EINVAL;
>
> And is corrected just by inverting the two quoted code snips :)

You are right

> I'll give a try to the inversion, that should work. I have
> written a small stress program for mmap, so in a few hours the patch
> will be ready. Must I post it here or send it directly to Marcello?

Post here and to Marcelo. BTW, is 2.5 affected?

--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:14 EST