diff options
| author | Kevin Brodsky <kevin.brodsky@arm.com> | 2026-04-27 13:03:34 +0100 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-05-19 11:54:03 +0100 |
| commit | c364aa56d6738c8759e88941d7a45a1d6b4c52d0 (patch) | |
| tree | f9c45cf6e6b5d1b8b650180dd6a7ec8159e2b895 /scripts/Makefile.thinlto | |
| parent | 254f49634ee16a731174d2ae34bc50bd5f45e731 (diff) | |
selftests/mm: Fix resv_sz when parsing arm64 signal frame
get_header() wants the size of the reserved area in struct
sigcontext, but instead we pass it the size of the entire struct.
This could in theory result in an out-of-bounds read (if the signal
frame is malformed).
Fix this using one of the existing macros from
tools/testing/selftests/arm64/signal/testcases/testcases.h.
This issue was reported by Sashiko on a patch that copied this
portion of the code.
Link: https://sashiko.dev/#/patchset/20260421144252.1440365-1-kevin.brodsky%40arm.com
Fixes: f5b5ea51f78f ("selftests: mm: make protection_keys test work on arm64")
Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
