Re: Do x86 NX and AMD prefetch check cause page fault infinite loop?
From: Jamie Lokier
Date: Wed Jun 30 2004 - 09:41:06 EST
On x86 and x86-64 with NX, is a fault due to non-exec permission
distinguishable from a fault due to lack of read/write permissions?
I.e. does the flags word have a different bit set?
If so, the solution is simple: don't just return if it's a non-exec fault.
(It's possible that won't work if the CPU is very speculative and
generates data faults from prefetches despite them being in non-exec
area -- i.e. if the buggy data fault gets precedence over the non-exec
fault or segment. But I'd hope that's not the case).
-- Jamie
-
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/