Messages in this thread | | | Date | Thu, 1 Jul 2004 15:50:04 +0100 | From | Jamie Lokier <> | Subject | Re: [OT] Testing PROT_NONE and other protections, and a surprise |
| |
Kyle Moffett wrote: > >The error code is -1, aka. MAP_FAILED. > Oops! I guess I was just lucky that part didn't fail :-D On the > other hand, it couldn't legally return 0 anyway, could it?
Yes it could -- if you request a mapping at address 0 with MAP_FIXED. A few OSes won't do that, but Linux and many others will.
-- Jamie - 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/
| |