Re: mprotect pgprot handling weirdness
From: Benjamin Herrenschmidt
Date: Tue Apr 06 2010 - 01:32:19 EST
On Tue, 2010-04-06 at 15:09 +1000, Benjamin Herrenschmidt wrote:
> Hi folks !
> While looking at untangling a bit some of the mess with vm_flags and
> pgprot (*), I notices a few things I can't quite explain... they may ..
> or may not be bugs, but I though it was worth mentioning:
And another one:
/* The open routine did something to the protections already? */
if (pgprot_val(vma->vm_page_prot) !=
That's going to blow if any -other- prot bit is used here.
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/