From: Nicolas Pitre Date: Sat, 25 Mar 2006 22:44:05 +0000 (+0000) Subject: [ARM] 3030/2: fix permission check in the obscur cmpxchg syscall X-Git-Tag: v2.6.17-rc1~661^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ce9804fbd9d4da75fb5bb53331b46b614a7d5c3;p=pandora-kernel.git [ARM] 3030/2: fix permission check in the obscur cmpxchg syscall Patch from Nicolas Pitre Quoting RMK: |pte_write() just says that the page _may_ be writable. It doesn't say |that the MMU is programmed to allow writes. If pte_dirty() doesn't |return true, that means that the page is _not_ writable from userspace. |If you write to it from kernel mode (without using put_user) you'll |bypass the MMU read-only protection and may end up writing to a page |owned by two separate processes. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King --- Reading git-diff-tree failed