]> git.baikalelectronics.ru Git - 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)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Aug 2019 15:34:11 +0000 (11:34 -0400)
commit1aeee62f8c68aefe08d2083963b0ff2a673035d9
treea67d72f9d2a8e6ddf6486a2b784c62673f551992
parentad806072ac2115a8ff6a79101126b728e4e9e25b
IB/core: Add mitigation for Spectre V1

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>
drivers/infiniband/core/user_mad.c