]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0177-x86-uv-Use-the-right-TLB-flush-API.patch
update sources to Ubuntu-4.13.0-32.35
[pve-kernel.git] / patches / kernel / 0177-x86-uv-Use-the-right-TLB-flush-API.patch
CommitLineData
59d5af67 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
321d628a
FG
2From: Peter Zijlstra <peterz@infradead.org>
3Date: Tue, 5 Dec 2017 13:34:50 +0100
59d5af67 4Subject: [PATCH] x86/uv: Use the right TLB-flush API
321d628a
FG
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9CVE-2017-5754
10
11Since uv_flush_tlb_others() implements flush_tlb_others() which is
12about flushing user mappings, we should use __flush_tlb_single(),
13which too is about flushing user mappings.
14
15Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
16Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17Acked-by: Andrew Banman <abanman@hpe.com>
18Cc: Andy Lutomirski <luto@kernel.org>
19Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
20Cc: Borislav Petkov <bp@alien8.de>
21Cc: Brian Gerst <brgerst@gmail.com>
22Cc: Dave Hansen <dave.hansen@linux.intel.com>
23Cc: David Laight <David.Laight@aculab.com>
24Cc: Denys Vlasenko <dvlasenk@redhat.com>
25Cc: Eduardo Valentin <eduval@amazon.com>
26Cc: Greg KH <gregkh@linuxfoundation.org>
27Cc: H. Peter Anvin <hpa@zytor.com>
28Cc: Josh Poimboeuf <jpoimboe@redhat.com>
29Cc: Juergen Gross <jgross@suse.com>
30Cc: Linus Torvalds <torvalds@linux-foundation.org>
31Cc: Mike Travis <mike.travis@hpe.com>
32Cc: Peter Zijlstra <peterz@infradead.org>
33Cc: Will Deacon <will.deacon@arm.com>
34Cc: aliguori@amazon.com
35Cc: daniel.gruss@iaik.tugraz.at
36Cc: hughd@google.com
37Cc: keescook@google.com
38Cc: linux-mm@kvack.org
39Signed-off-by: Ingo Molnar <mingo@kernel.org>
40(cherry picked from commit 3e46e0f5ee3643a1239be9046c7ba6c66ca2b329)
41Signed-off-by: Andy Whitcroft <apw@canonical.com>
42Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
43(cherry picked from commit 532216cdf02174dc08ca998b570c4699899fa355)
44Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
45---
46 arch/x86/platform/uv/tlb_uv.c | 2 +-
47 1 file changed, 1 insertion(+), 1 deletion(-)
48
49diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
50index f44c0bc95aa2..8538a6723171 100644
51--- a/arch/x86/platform/uv/tlb_uv.c
52+++ b/arch/x86/platform/uv/tlb_uv.c
53@@ -299,7 +299,7 @@ static void bau_process_message(struct msg_desc *mdp, struct bau_control *bcp,
54 local_flush_tlb();
55 stat->d_alltlb++;
56 } else {
57- __flush_tlb_one(msg->address);
58+ __flush_tlb_single(msg->address);
59 stat->d_onetlb++;
60 }
61 stat->d_requestee++;
62--
632.14.2
64