aboutsummaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorCharlie Jenkins <charlie@rivosinc.com>2023-11-27 14:04:59 -0800
committerPalmer Dabbelt <palmer@rivosinc.com>2023-12-04 11:02:37 -0800
commitd8792a5734b0f3e58b898c2e2f910bfac48e9ee3 (patch)
tree2c619d9d155e66ab882243f5f6c15120888e8f29 /lib/dynamic_debug.c
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
riscv: Safely remove entries from relocation list
Use the safe versions of list and hlist iteration to safely remove entries from the module relocation lists. To allow mutliple threads to load modules concurrently, move relocation list pointers onto the stack rather than using global variables. Fixes: 8fd6c5142395 ("riscv: Add remaining module relocations") Reported-by: Ron Economos <re@w6rz.net> Closes: https://lore.kernel.org/linux-riscv/444de86a-7e7c-4de7-5d1d-c1c40eefa4ba@w6rz.net Signed-off-by: Charlie Jenkins <charlie@rivosinc.com> Tested-by: Björn Töpel <bjorn@rivosinc.com> Link: https://lore.kernel.org/r/20231127-module_linking_freeing-v4-1-a2ca1d7027d0@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions