On Mon, Jul 4, 2011 at 12:58 PM, John David Anglin <dave.anglin@xxxxxxxx> wrote: >> Why would this mprotect fail with -EINVAL? It's not page aligned? >> >> You can see the earlier mmap/mprotect from thread one's stack looks >> page aligned. > > I believe that the stack value needs to be aligned. See comment in > arch_get_unmapped_area. Not sure if this will fix mprotect. What needs to be aligned, the stack value or the addr in a call to mprotect? The latter, yes, that appears to be the case. The stack will be at least aligned to the target requirement. > I submitted a patch to return an error if but there was no comment. Reference? Cheers, Carlos. -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html