Re: [PATCH] arm: cmpxchg syscall should data abort if page notwrite or not young

From: Russell King - ARM Linux
Date: Mon Mar 14 2011 - 06:41:02 EST


On Mon, Mar 14, 2011 at 06:28:36PM +0800, Po-Yu Chuang wrote:
> From: Po-Yu Chuang <ratbert@xxxxxxxxxxxxxxxx>
>
> If the page to cmpxchg is user mode read only (not write)
> or invalid (not young), we should simulate a data abort first.

No. If it is not young then it should be made young. Age is an effect
of accesses. It's not a permission.
--
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/