summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLalithambika Krishnakumar <lalithambika.krishnakumar@intel.com>2020-12-24 01:09:00 +0300
committerChristoph Hellwig <hch@lst.de>2021-01-06 12:30:37 +0300
commit62df80165d7f197c9c0652e7416164f294a96661 (patch)
tree9d613daac28ccc1da9bcfc7e581293b7a9c3c3c5 /Makefile
parent5c11f7d9f843bdd24cd29b95401938bc3f168070 (diff)
downloadlinux-62df80165d7f197c9c0652e7416164f294a96661.tar.xz
nvme: avoid possible double fetch in handling CQE
While handling the completion queue, keep a local copy of the command id from the DMA-accessible completion entry. This silences a time-of-check to time-of-use (TOCTOU) warning from KF/x[1], with respect to a Thunderclap[2] vulnerability analysis. The double-read impact appears benign. There may be a theoretical window for @command_id to be used as an adversary-controlled array-index-value for mounting a speculative execution attack, but that mitigation is saved for a potential follow-on. A man-in-the-middle attack on the data payload is out of scope for this analysis and is hopefully mitigated by filesystem integrity mechanisms. [1] https://github.com/intel/kernel-fuzzer-for-xen-project [2] http://thunderclap.io/thunderclap-paper-ndss2019.pdf Signed-off-by: Lalithambika Krishna Kumar <lalithambika.krishnakumar@intel.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions