-
- Downloads
modules: don't hand 0 to vmalloc.
In commit d0a21265 David Rientjes unified various archs' module_alloc implementation (including x86) and removed the graduitous shortcut for size == 0. Then, in commit de7d2b56, Joe Perches added a warning for zero-length vmallocs, which can happen without kallsyms on modules with no init sections (eg. zlib_deflate). Fix this once and for all; the module code has to handle zero length anyway, so get it right at the caller and remove the now-gratuitous checks within the arch-specific module_alloc implementations. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42608 Reported-by:Conrad Kostecki <ConiKost@gmx.de> Cc: David Rientjes <rientjes@google.com> Cc: Joe Perches <joe@perches.com> Signed-off-by:
Rusty Russell <rusty@rustcorp.com.au>
Showing
- arch/cris/kernel/module.c 0 additions, 2 deletionsarch/cris/kernel/module.c
- arch/parisc/kernel/module.c 0 additions, 2 deletionsarch/parisc/kernel/module.c
- arch/sparc/kernel/module.c 0 additions, 4 deletionsarch/sparc/kernel/module.c
- arch/tile/kernel/module.c 0 additions, 2 deletionsarch/tile/kernel/module.c
- arch/unicore32/kernel/module.c 0 additions, 3 deletionsarch/unicore32/kernel/module.c
- kernel/module.c 18 additions, 15 deletionskernel/module.c
Loading
Please register or sign in to comment