diff options
| author | Yousef Alhouseen <alhouseenyousef@gmail.com> | 2026-06-29 17:28:57 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-17 15:50:22 +0200 |
| commit | 7a7a0d97d541512f7a935125274b79914223c2c1 (patch) | |
| tree | 2fa7430acbe4fe671680c6101fd7d51b345b85d9 /tools/perf/scripts/python/stackcollapse.py | |
| parent | f6e2ed54db95286d9512b1cff38264e2f6299814 (diff) | |
misc: xilinx_sdfec: validate LDPC code register offsets
The LDPC code register helpers check the target MMIO address after
adding code_id * XSDFEC_LDPC_REG_JUMP to the register base. code_id is
supplied through the ioctl path, so the multiplication and addition can
wrap before the bounds check.
Validate the code_id against the register window size before computing
the final address, then write using the checked address.
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Reviewed-by: Cvetic, Dragan <dragan.cvetic@amd.com>
Link: https://patch.msgid.link/20260629152857.13553-1-alhouseenyousef@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
