]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Revert "s390/spinlock: add gmb memory barrier"
authorAndy Whitcroft <apw@canonical.com>
Wed, 31 Jan 2018 15:37:55 +0000 (15:37 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 5 Feb 2018 15:52:55 +0000 (16:52 +0100)
CVE-2017-5753 (revert embargoed)
CVE-2017-5715 (revert embargoed)

This reverts commit 74d11fe3e7d95384d51521d312a262cfcf81f791.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/s390/include/asm/barrier.h

index 08fbfef6469f1be0364e7dcd706e3fcd2bf07b6a..5c8db3ce61c8e34009a5f236a378e81783c57e98 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef __ASM_BARRIER_H
 #define __ASM_BARRIER_H
 
-#include <asm/alternative.h>
-
 /*
  * Force strict CPU ordering.
  * And yes, this is required on UP too when we're talking
 
 #define mb() do {  asm volatile(__ASM_BARRIER : : : "memory"); } while (0)
 
-static inline void gmb(void)
-{
-       asm volatile(
-               ALTERNATIVE("", ".long 0xb2e8f000", 81)
-               : : : "memory");
-}
-#define gmb gmb
-
 #define rmb()                          barrier()
 #define wmb()                          barrier()
 #define dma_rmb()                      mb()