Good spotting.
I suspect the _correct_ fix is to change the test
if (!pte_write(*pgtable))
to
if (!(pte_val(*pgtable) & _PAGE_RW))
(What the above does is checks that the page is just writable, even if it
is marked _PAGE_PROTNONE).
Does this fix it for you? If so, send me email, and I'll do it in my
kernel.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/