diff options
author | Mark Rutland <[email protected]> | 2018-04-25 17:13:40 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2018-04-26 16:58:39 +0100 |
commit | 19791a7ca674fb3009bb068260e852a2f05b605c (patch) | |
tree | dd3b7b1e9dc98708b0f28711df83b16b7eb85ebf /lib/string_helpers.c | |
parent | ad40bdafb495f30e5af837e15b3c2a4cb2176e47 (diff) |
arm64: fix possible spectre-v1 in ptrace_hbp_get_event()
It's possible for userspace to control idx. Sanitize idx when using it
as an array index.
Found by smatch.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions