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

Denis Vlasenko (vda@port.imtp.ilyichevsk.odessa.ua)
Fri, 10 May 2002 17:41:12 -0200


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/