]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
IB/core: Add mitigation for Spectre V1
authorLuck, Tony <tony.luck@intel.com>
Wed, 31 Jul 2019 04:39:57 +0000 (21:39 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 17 Sep 2019 16:02:18 +0000 (18:02 +0200)
commit5ebf36c7379f1985d2349b37a0b2d9680b182b7d
treec0cc847eaebcb4697b7951c900ee67af5fd7a723
parent38d8c9b039dc82924ddb0018e7165def942d1656
IB/core: Add mitigation for Spectre V1

BugLink: https://bugs.launchpad.net/bugs/1841652
[ Upstream commit 61f259821dd3306e49b7d42a3f90fb5a4ff3351b ]

Some processors may mispredict an array bounds check and
speculatively access memory that they should not. With
a user supplied array index we like to play things safe
by masking the value with the array size before it is
used as an index.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20190731043957.GA1600@agluck-desk2.amr.corp.intel.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/infiniband/core/user_mad.c