diff options
author | 2025-04-09 10:14:49 -0700 | |
---|---|---|
committer | 2025-04-14 13:07:07 +0000 | |
commit | 0b4cce68efb93e31a8e51795d696df6e379cb41c (patch) | |
tree | f0aa8c478a414e668794227bfca25bcbe11f45e3 /scripts/lib/kdoc/kdoc_output.py | |
parent | riscv: Properly export reserved regions in /proc/iomem (diff) | |
download | wireguard-linux-0b4cce68efb93e31a8e51795d696df6e379cb41c.tar.xz wireguard-linux-0b4cce68efb93e31a8e51795d696df6e379cb41c.zip |
riscv: module: Fix out-of-bounds relocation access
The current code allows rel[j] to access one element past the end of the
relocation section. Simplify to num_relocations which is equivalent to
the existing size expression.
Fixes: 080c4324fa5e ("riscv: optimize ELF relocation function in riscv")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250409171526.862481-1-samuel.holland@sifive.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions