Module load failure race fix.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | module_arch_freeing_init(): new hook for archs before module->module_init freed.arch/ arch/ arch/ +4 more | +17 | 2 replies | |
| 2/3 | module: remove mod arg from module_free, rename module_memfree().arch/ arch/ arch/ +8 more | +18 | 0 replies | |
| 3/3 | module: fix race in kallsyms resolution during module load success.kernel/ | +42 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Hans-Christian Egtvedt | Helge Deller |
|---|---|---|
| 1/3 | A-b | A-b |
| 2/3 | ||
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] Module load failure race fix.
Hi all,
This bug has been around since 2009, but only reported now.
I'm debating whether to cc: stable.
To fix it, I had to change module_free. Please ensure I haven't broken your arch!
Thanks,
Rusty.
Rusty Russell (3):
module_arch_freeing_init(): new hook for archs before
module->module_init freed.
module: remove mod arg from module_free, rename module_memfree().
module: fix race in kallsyms resolution during module load success.
arch/avr32/kernel/module.c | 13 +------- arch/cris/kernel/module.c | 2 +- arch/ia64/kernel/module.c | 6 ++-- arch/mips/net/bpf_jit.c | 2 +- arch/nios2/kernel/module.c | 2 +- arch/parisc/kernel/module.c | 6 +--- arch/powerpc/net/bpf_jit_comp.c | 2 +- arch/s390/kernel/module.c | 10 ++---- arch/sparc/net/bpf_jit_comp.c | 4 +-- arch/tile/kernel/module.c | 4 +-- arch/x86/kernel/ftrace.c | 2 +- include/linux/moduleloader.h | 4 ++- kernel/bpf/core.c | 2 +- kernel/kprobes.c | 2 +- kernel/module.c | 74 ++++++++++++++++++++++++++++++----------- 15 files changed, 76 insertions(+), 59 deletions(-)
Signature · 1 line
2.1.0