m68k: Do not set global share for non-kernel shared pages
authorAlexander Stein <alexander.stein@systec-electronic.com>
Mon, 23 Jan 2012 14:45:56 +0000 (15:45 +0100)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 7 Feb 2012 01:25:57 +0000 (11:25 +1000)
commit3372f5a7d005dd42e754490fed6a0171c4a018c6
tree8f3bba690f3c674383e9c30ea14a087c44a95dec
parent57e00098cc0e43d001c9c8a018a1f8396faa0d16
m68k: Do not set global share for non-kernel shared pages

If the SG bit is set in MMUTR the page is accessible for all
userspace processes (ignoring the ASID). So a process might randomly
access a page from a different process which had a shared page
(from shared memory) in its context.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/mm/mcfmmu.c