]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ba817570ed25b633bc1696b7ff12b4dfd17b639
tree8f3bba690f3c674383e9c30ea14a087c44a95dec
parent480338e188094497a2ce081f8c6b0169d4a92501
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