Re: [RFC] perf: mmap2 not covering VM_CLONE regions

From: Peter Zijlstra
Date: Tue Oct 08 2013 - 05:37:05 EST


On Tue, Oct 08, 2013 at 09:15:30AM +0200, Stephane Eranian wrote:
> Yes, it is but I am trying to see whether or not we could unify that and
> use a single u64 number to uniquely identify each mapping.

No you cannot; two unrelated executables which have distinct mm_ids can
easily mmap() the same shared file.
--
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/