diff options
author | Tejun Heo <tj@kernel.org> | 2014-08-15 16:06:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-05 14:52:20 -0700 |
commit | a43ff216853cfa92bd45e06c619a5c81af627e14 (patch) | |
tree | 1f128548e0423a205c5da13139c6798cc38d840c /mm/percpu-vm.c | |
parent | 6d5d76b07571706adc73e02a6e0d72a6749ddc83 (diff) | |
download | lwn-a43ff216853cfa92bd45e06c619a5c81af627e14.tar.gz lwn-a43ff216853cfa92bd45e06c619a5c81af627e14.zip |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/percpu-vm.c')
-rw-r--r-- | mm/percpu-vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/percpu-vm.c b/mm/percpu-vm.c index 8d9bb2c00c68..51108165f829 100644 --- a/mm/percpu-vm.c +++ b/mm/percpu-vm.c @@ -272,6 +272,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; } |