diff options
author | Mark Rutland <mark.rutland@arm.com> | 2018-07-10 19:01:22 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-07-23 14:49:14 +0100 |
commit | 14d6e289a89780377f8bb09de8926d3c62d763cd (patch) | |
tree | 7d8c11258a34c3d2576122ff5566c62456f98f59 /arch/arm64/Makefile | |
parent | arm64: Drop asmlinkage qualifier from syscall_trace_{enter,exit} (diff) | |
download | linux-dev-14d6e289a89780377f8bb09de8926d3c62d763cd.tar.xz linux-dev-14d6e289a89780377f8bb09de8926d3c62d763cd.zip |
arm64: fix possible spectre-v1 write in ptrace_hbp_set_event()
It's possible for userspace to control idx. Sanitize idx when using it
as an array index, to inhibit the potential spectre-v1 write gadget.
Found by smatch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/Makefile')
0 files changed, 0 insertions, 0 deletions