]> 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)
commit5147aa62e8c220e50660b917c169c4a86bac0f62
tree8f3bba690f3c674383e9c30ea14a087c44a95dec
parentb583422da7f03c0869900e66211163ab830c9f9a
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