]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
locking/barriers: introduce new memory barrier gmb()
authorElena Reshetova <elena.reshetova@intel.com>
Mon, 4 Sep 2017 10:11:43 +0000 (13:11 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 11 Jan 2018 18:49:41 +0000 (19:49 +0100)
commit6834bd7e6159da957a6c01deebf16132a694bc23
tree419e5e8b89ee9ca434635e4521cb1be4bf41fa74
parent9935124a5c771c004a578423275633232fb7a006
locking/barriers: introduce new memory barrier gmb()

CVE-2017-5753
CVE-2017-5715

In constrast to existing mb() and rmb() barriers,
gmb() barrier is arch-independent and can be used to
implement any type of memory barrier.
In x86 case, it is either lfence or mfence, based on
processor type. ARM and others can define it according
to their needs.

Suggested-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/x86/include/asm/barrier.h
include/asm-generic/barrier.h