]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/mm: fix gmap tlb flush issues
authorSasha Levin <alexander.levin@verizon.com>
Sun, 14 Aug 2016 22:23:56 +0000 (18:23 -0400)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 22 Aug 2016 16:23:08 +0000 (12:23 -0400)
commit5e33de127d9789a376b93ed8dc70f3b11ea3b9e5
tree15434bfcea3f324f62d73ca3f4ff1ec60c1da868
parentb2637b76a98d0632b3008d2e789b683e0b699492
s390/mm: fix gmap tlb flush issues

[ Upstream commit f045402984404ddc11016358411e445192919047 ]

__tlb_flush_asce() should never be used if multiple asce belong to a mm.

As this function changes mm logic determining if local or global tlb
flushes will be neded, we might end up flushing only the gmap asce on all
CPUs and a follow up mm asce flushes will only flush on the local CPU,
although that asce ran on multiple CPUs.

The missing tlb flushes will provoke strange faults in user space and even
low address protections in user space, crashing the kernel.

Fixes: 1b948d6caec4 ("s390/mm,tlb: optimize TLB flushing for zEC12")
Cc: stable@vger.kernel.org # 3.15+
Reported-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/s390/mm/pgtable.c