Re: [PATCH 1/2] setup_arg_pages can insert overlapping vma

From: Chris Wright
Date: Thu Nov 18 2004 - 15:12:56 EST


* Hugh Dickins (hugh@xxxxxxxxxxx) wrote:
> Check the comment on find_vma in mm/mmap.c:
> /* Look up the first VMA which satisfies addr < vm_end, NULL if none. */
> but perhaps you thought it returns NULL if addr is not covered by a vma?

Ah, yes, being at top of stack was part of my assumption. But I see
your point. I think find_vma_intersection() might make best sense then.

thanks,
-chris
-
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/