summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-08-15 16:06:10 -0400
committerBen Hutchings <ben@decadent.org.uk>2014-11-05 20:27:38 +0000
commitcaef3d5a04fd43316fccb25e93d350605ed54a23 (patch)
tree85a23ecbf3237625b8a77d188ab22fb163d697ca /mm
parentc039250e175f15b4fa15c2aa6ae0b14162eff27d (diff)
percpu: perform tlb flush after pcpu_map_pages() failure
commit 849f5169097e1ba35b90ac9df76b5bb6f9c0aabd upstream. If pcpu_map_pages() fails midway, it unmaps the already mapped pages. Currently, it doesn't flush tlb after the partial unmapping. This may be okay in most cases as the established mapping hasn't been used at that point but it can go wrong and when it goes wrong it'd be extremely difficult to track down. Flush tlb after the partial unmapping. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'mm')
-rw-r--r--mm/percpu-vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/percpu-vm.c b/mm/percpu-vm.c
index f0fc139bc43a..0539f6afd244 100644
--- a/mm/percpu-vm.c
+++ b/mm/percpu-vm.c
@@ -273,6 +273,7 @@ err:
__pcpu_unmap_pages(pcpu_chunk_addr(chunk, tcpu, page_start),
page_end - page_start);
}
+ pcpu_post_unmap_tlb_flush(chunk, page_start, page_end);
return err;
}