Merge patch series "riscv: modules: Fix module loading error handling"
authorPalmer Dabbelt <palmer@rivosinc.com>
Wed, 10 Jan 2024 14:48:16 +0000 (06:48 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 Jan 2024 15:36:25 +0000 (07:36 -0800)
commit3a58275099b9cbfb9d86b85824fb3a5de796c815
tree1bdd9984dff5134f818a4d63ac2e1dc2aa8821d7
parent17f2c308051f8adccd913b63d105afdd9a1c7d9e
parenta35551c7244d9d061643a01eb96cc3ba04eaf45c
Merge patch series "riscv: modules: Fix module loading error handling"

Charlie Jenkins <charlie@rivosinc.com> says:

When modules are loaded while there is not ample allocatable memory,
there was previously not proper error handling. This series fixes a
use-after-free error and a different issue that caused a non graceful
exit after memory was not properly allocated.

* b4-shazam-merge:
  riscv: Fix relocation_hashtable size
  riscv: Correctly free relocation hashtable on error
  riscv: Fix module loading free order

Link: https://lore.kernel.org/r/20240104-module_loading_fix-v3-0-a71f8de6ce0f@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/module.c