Re: [patch] mm: vmap fix overflow

From: Nick Piggin
Date: Wed Feb 11 2009 - 21:30:20 EST


On Wed, Feb 11, 2009 at 06:20:50PM -0800, Andrew Morton wrote:
> On Thu, 12 Feb 2009 02:39:31 +0100 Nick Piggin <npiggin@xxxxxxx> wrote:
> >
> > Oh that's true, good catch. I guess that should be (addr + size - 1)?
> > Because we care about the last byte that was actually allocated to us
> > (inclusive, rather than exclusive).
>
> That would work. It wouldd give weird results for size==0, but probably
> that's already checked for somewhere(?)

It's checked down in __get_vm_area_node.

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