summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorXixin Liu <liuxixin@kylinos.cn>2026-07-01 14:30:00 +0800
committerKeith Busch <kbusch@kernel.org>2026-07-06 11:38:44 -0700
commit3a6d89836ab09d53f4c32c57588689a378ce4363 (patch)
tree48343a16c91e7bc0d4c903f02180442c569ce83e /tools/perf/scripts/python/bin/stackcollapse-record
parentdd516cd7624648c71d338d99368587f10ecc9f0b (diff)
nvme-auth: use crypto_memneq for DH-HMAC-CHAP response comparison
DH-HMAC-CHAP authentication compares HMAC response digests with memcmp(). Standard memcmp() may stop at the first differing byte, which can leak timing information to a remote attacker and allow incremental recovery of the expected digest. Use crypto_memneq() for constant-time comparison on both the host path that validates the controller Success1 response and the target path that validates the host Reply digest. Other memcmp() uses in the NVMe auth code (e.g. fixed string prefix checks) are not security-sensitive and are left unchanged. Signed-off-by: Xixin Liu <liuxixin@kylinos.cn> Reviewed-by: Hannes Reinecke <hare@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions