[PATCH 0/3] Module load failure race fix.

From: Rusty Russell
Date: Wed Jan 07 2015 - 20:02:20 EST


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(-)

--
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/