aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/module.c
AgeCommit message (Expand)AuthorFilesLines
2022-04-04module: Move all into module/Aaron Tomlin1-4810/+0
2022-02-28NFSD: Remove svc_serv_ops::svo_moduleChuck Lever1-1/+1
2022-02-03Revert "module, async: async_synchronize_full() on module init iff async is u...Igor Pylypiv1-20/+5
2022-01-17Merge branch 'modules-next' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-16/+29
2022-01-17Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-3/+3
2022-01-16Merge tag 'livepatching-for-5.17' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-0/+2
2022-01-14module: fix signature check failures when using in-kernel decompressionDmitry Torokhov1-4/+5
2022-01-11module: add in-kernel support for decompressingDmitry Torokhov1-11/+24
2022-01-11module: Remove outdated commentYu Chen1-1/+0
2022-01-07livepatch: Avoid CPU hogging with cond_reschedDavid Vernet1-0/+2
2021-12-13exit: Rename module_put_and_exit to module_put_and_kthread_exitEric W. Biederman1-3/+3
2021-11-05module: change to print useful messages from elf_validity_check()Shuah Khan1-21/+54
2021-11-05module: fix validate_section_offset() overflow bug on 64-bitShuah Khan1-0/+4
2021-09-28module: fix clang CFI with MODULE_UNLOAD=nArnd Bergmann1-0/+2
2021-07-19printk: Userspace format indexing supportChris Down1-0/+5
2021-07-08module: add printk formats to add module build ID to stacktracesStephen Boyd1-5/+37
2021-07-07Merge tag 'modules-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-3/+3
2021-06-22module: limit enabling module.sig_enforceMimi Zohar1-5/+9
2021-05-26module: correctly exit module_kallsyms_on_each_symbol when fn() != 0Jon Mediero1-1/+2
2021-05-17module: check for exit sections in layout_sections() instead of module_init_s...Jessica Yu1-6/+11
2021-05-14kernel/module: Use BUG_ON instead of if condition followed by BUGzhouchuangao1-2/+1
2021-04-30Merge tag 'modules-for-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-5/+4
2021-04-08add support for Clang CFISami Tolvanen1-0/+43
2021-03-29module: treat exit sections the same as init sections when !CONFIG_MODULE_UNLOADJessica Yu1-5/+4
2021-02-10module: potential uninitialized return in module_kallsyms_on_each_symbol()Dan Carpenter1-1/+1
2021-02-08module: remove EXPORT_UNUSED_SYMBOL*Christoph Hellwig1-65/+6
2021-02-08module: remove EXPORT_SYMBOL_GPL_FUTUREChristoph Hellwig1-27/+2
2021-02-08module: move struct symsearch to module.cChristoph Hellwig1-0/+11
2021-02-08module: pass struct find_symbol_args to find_symbolChristoph Hellwig1-61/+52
2021-02-08module: merge each_symbol_section into find_symbolChristoph Hellwig1-79/+69
2021-02-08module: remove each_symbol_in_sectionChristoph Hellwig1-22/+7
2021-02-08module: mark module_mutex staticChristoph Hellwig1-1/+1
2021-02-08kallsyms: only build {,module_}kallsyms_on_each_symbol when requiredChristoph Hellwig1-0/+2
2021-02-08kallsyms: refactor {,module_}kallsyms_on_each_symbolChristoph Hellwig1-9/+4
2021-02-08module: use RCU to synchronize find_moduleChristoph Hellwig1-1/+0
2021-02-08module: unexport find_module and module_mutexChristoph Hellwig1-2/+0
2021-01-19module: harden ELF info handlingFrank van der Linden1-19/+124
2021-01-18module: Ignore _GLOBAL_OFFSET_TABLE_ when warning for undefined symbolsFangrui Song1-2/+19
2020-12-17Merge tag 'modules-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-83/+117
2020-12-09module: delay kobject uevent until after module init callJessica Yu1-2/+3
2020-12-03bpf: Keep module's btf_data_size intact after loadAndrii Nakryiko1-1/+0
2020-11-25bpf: Sanitize BTF data pointer after module is loadedAndrii Nakryiko1-0/+5
2020-11-10bpf: Load and verify kernel module BTFsAndrii Nakryiko1-0/+32
2020-11-09module: fix comment styleSergey Shtylyov1-43/+74
2020-11-09module: add more 'kernel-doc' commentsSergey Shtylyov1-8/+8
2020-11-09module: fix up 'kernel-doc' commentsSergey Shtylyov1-6/+4
2020-11-04module: only handle errors with the *switch* statement in module_sig_check()Sergey Shtylyov1-12/+14
2020-11-04module: avoid *goto*s in module_sig_check()Sergey Shtylyov1-10/+10
2020-11-04module: merge repetitive strings in module_sig_check()Sergey Shtylyov1-4/+5
2020-10-29module: set MODULE_STATE_GOING state when a module fails to loadMiroslav Benes1-0/+1
2020-10-22Merge tag 'modules-for-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-12/+11
2020-10-15Merge tag 'char-misc-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-9/+15
2020-10-12module: statically initialize init section freeing dataDaniel Jordan1-10/+3
2020-10-05fs/kernel_file_read: Add "offset" arg for partial readsKees Cook1-1/+1
2020-10-05module: Call security_kernel_post_load_data()Kees Cook1-4/+10
2020-10-05LSM: Introduce kernel_post_load_data() hookKees Cook1-1/+1
2020-10-05fs/kernel_read_file: Add file_size output argumentKees Cook1-1/+1
2020-10-05fs/kernel_read_file: Remove redundant size argumentKees Cook1-4/+3
2020-10-05fs/kernel_read_file: Split into separate include fileScott Branden1-0/+1
2020-10-05fs/kernel_read_file: Remove FIRMWARE_PREALLOC_BUFFER enumKees Cook1-1/+1
2020-09-02module: Add more error message for failed kernel module loadingQu Wenruo1-2/+8
2020-09-01static_call: Add inline static call infrastructureJosh Poimboeuf1-0/+5
2020-09-01module: Properly propagate MODULE_STATE_COMING failurePeter Zijlstra1-3/+7
2020-08-14Merge tag 'modules-for-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-17/+43
2020-08-07Merge tag 'kallsyms_show_value-fix-v5.9-rc1' of git://git.kernel.org/pub/scm/...Linus Torvalds1-3/+19
2020-08-07module: Correctly truncate sysfs sections outputKees Cook1-3/+19
2020-08-05modules: inherit TAINT_PROPRIETARY_MODULEChristoph Hellwig1-0/+26
2020-08-01modules: return licensing information from find_symbolChristoph Hellwig1-5/+11
2020-08-01modules: rename the licence field in struct symsearch to licenseChristoph Hellwig1-2/+2
2020-08-01modules: unexport __module_addressChristoph Hellwig1-1/+0
2020-08-01modules: unexport __module_text_addressChristoph Hellwig1-1/+0
2020-08-01modules: mark each_symbol_section staticChristoph Hellwig1-2/+1
2020-08-01modules: mark find_symbol staticChristoph Hellwig1-2/+1
2020-08-01modules: mark ref_module staticChristoph Hellwig1-4/+2
2020-07-24dyndbg: rename __verbose section to __dyndbgJim Cromie1-1/+1
2020-07-09Merge tag 'kallsyms_show_value-v5.8-rc5' of git://git.kernel.org/pub/scm/linu...Linus Torvalds1-24/+27
2020-07-08module: Do not expose section addresses to non-CAP_SYSLOGKees Cook1-3/+3
2020-07-08module: Refactor section attr into bin attributeKees Cook1-21/+24
2020-07-08kallsyms: Refactor kallsyms_show_value() to take credKees Cook1-1/+1
2020-07-03vmalloc: fix the owner argument for the new __vmalloc_node_range callersChristoph Hellwig1-1/+1
2020-06-26mm: remove vmalloc_execChristoph Hellwig1-1/+3
2020-06-08module: move the set_fs hack for flush_icache_range to m68kChristoph Hellwig1-8/+0
2020-06-05Merge tag 'modules-for-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-10/+40
2020-06-04Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/liv...Linus Torvalds1-18/+8
2020-06-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-nextLinus Torvalds1-0/+3
2020-06-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+1
2020-06-02mm: remove the pgprot argument to __vmallocChristoph Hellwig1-2/+1
2020-06-01Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-armLinus Torvalds1-2/+7
2020-05-19kprobes: Prevent probes in .noinstr.text sectionThomas Gleixner1-0/+3
2020-05-19ARM: 8976/1: module: allow arch overrides for .init section namesVincent Whitchurch1-2/+7
2020-05-12kprobes: Support NOKPROBE_SYMBOL() in modulesMasami Hiramatsu1-0/+3
2020-05-12kprobes: Support __kprobes blacklist in modulesMasami Hiramatsu1-0/+4
2020-05-08module: Make module_enable_ro() static againJosh Poimboeuf1-1/+2
2020-05-08module: Remove module_disable_ro()Josh Poimboeuf1-13/+0
2020-05-08livepatch: Apply vmlinux-specific KLP relocations earlyJosh Poimboeuf1-4/+6
2020-04-21kernel/module: Hide vermagic header file from general useLeon Romanovsky1-0/+3
2020-04-21module: Harden STRICT_MODULE_RWXPeter Zijlstra1-0/+24
2020-04-17module: break nested ARCH_HAS_STRICT_MODULE_RWX and STRICT_MODULE_RWX #ifdefsJessica Yu1-11/+18
2020-04-09Merge tag 'modules-for-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-2/+2
2020-04-07proc: faster open/read/close with "permanent" filesAlexey Dobriyan1-0/+1
2020-02-17kernel: module: Replace zero-length array with flexible-array memberGustavo A. R. Silva1-2/+2
2020-02-04proc: convert everything to "struct proc_ops"Alexey Dobriyan1-6/+6
2020-01-31Merge tag 'modules-for-v5.6' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-9/+13
2020-01-20module: avoid setting info->name early in case we can fall back to info->mod-...Jessica Yu1-5/+4
2020-01-15modsign: print module name along with error messageJessica Yu1-1/+1
2020-01-08kernel/module: Fix memleak in module_add_modinfo_attrs()YueHaibing1-0/+2
2019-12-25Merge branch 'core/kprobes' into perf/core, to pick up a completed branchIngo Molnar1-43/+0
2019-12-11Merge tag 'trace-v5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/ros...Linus Torvalds1-5/+1
2019-12-10module: Remove accidental change of module_enable_x()Steven Rostedt (VMware)1-5/+1
2019-12-10Merge tag 'v5.5-rc1' into core/kprobes, to resolve conflictsIngo Molnar1-2/+8
2019-12-09modules: lockdep: Suppress suspicious RCU usage warningMasami Hiramatsu1-3/+6
2019-12-05Merge tag 'modules-for-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+3
2019-11-27Merge tag 'trace-v5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds1-1/+5
2019-11-27module: Remove set_all_modules_text_*()Peter Zijlstra1-43/+0
2019-11-15kernel/module.c: wakeup processes in module_wq on module unloadKonstantin Khorenko1-0/+2
2019-11-13tracing: Verify if trace array exists before destroying it.Divya Indi1-1/+5
2019-11-06module/ftrace: handle patchable-function-entryMark Rutland1-1/+1
2019-10-28export: avoid code duplication in include/linux/export.hMasahiro Yamada1-1/+1
2019-09-28Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-7/+30
2019-09-27Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+1
2019-09-11module: remove unneeded casts in cmp_name()Masahiro Yamada1-5/+2
2019-09-11module: Fix link failure due to invalid relocation on namespace offsetWill Deacon1-0/+2
2019-09-10module: add config option MODULE_ALLOW_MISSING_NAMESPACE_IMPORTSMatthias Maennich1-2/+9
2019-09-10module: add support for symbol namespaces.Matthias Maennich1-0/+43
2019-09-10module: support reading multiple values per modinfo tagMatthias Maennich1-2/+15
2019-08-21modules: page-align module section allocations only for arches supporting str...He Zhe1-1/+6
2019-08-19lockdown: Enforce module signatures if the kernel is locked downDavid Howells1-7/+30
2019-08-05MODSIGN: Export module signature definitionsThiago Jung Bauermann1-0/+1
2019-07-30modules: always page-align module section allocationsJessica Yu1-6/+1
2019-07-18Merge tag 'modules-for-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-19/+41
2019-06-28Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/pau...Ingo Molnar1-0/+5
2019-06-26modules: fix compile error if don't have strict module rwxYang Yingliang1-4/+9
2019-06-24module: allow arch overrides for .exit section namesMatthias Schiffer1-1/+6
2019-06-24modules: fix BUG when load module with rodata=nYang Yingliang1-4/+7
2019-06-14kernel/module: Fix mem leak in module_add_modinfo_attrsYueHaibing1-5/+17
2019-06-07kernel: module: Use struct_size() helperGustavo A. R. Silva1-2/+1
2019-06-05kernel/module.c: Only return -EEXIST for modules that have finished loadingPrarit Bhargava1-4/+2
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156Thomas Gleixner1-13/+1
2019-05-28srcu: Allocate per-CPU data for DEFINE_SRCU() in modulesPaul E. McKenney1-0/+5
2019-05-14Merge tag 'modules-for-v5.2' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-7/+14
2019-05-09Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+5
2019-04-30modules: Use vmalloc special flagRick Edgecombe1-38/+39
2019-04-30x86/modules: Avoid breaking W^X while loading modulesNadav Amit1-0/+5
2019-03-28kallsyms: store type information in its own arrayEugene Loh1-7/+14
2019-03-27x86/ima: require signed kernel modulesMimi Zohar1-0/+5
2019-03-07dynamic_debug: add static inline stub for ddebug_add_moduleRasmus Villemoes1-2/+0
2019-03-07dynamic_debug: move pr_err from module.c to ddebug_add_moduleRasmus Villemoes1-3/+1
2019-01-06jump_label: move 'asm goto' support test to KconfigMasahiro Yamada1-1/+1
2018-12-28Merge tag 'driver-core-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-2/+4
2018-12-27Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-0/+5
2018-12-27Merge tag 'modules-for-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-51/+72
2018-12-18bpf: support raw tracepoints in modulesMatt Mullins1-0/+5
2018-12-14ARM: module: Fix function kallsyms on Thumb-2Vincent Whitchurch1-16/+27
2018-12-14module: Overwrite st_size instead of st_infoVincent Whitchurch1-2/+2
2018-12-06kobject: return error code if writing /sys/.../uevent failsPeter Rajnoha1-2/+4
2018-11-29module: make it clearer when we're handling kallsyms symbols vs exported symbolsJessica Yu1-34/+44
2018-11-27modules: Replace synchronize_sched() and call_rcu_sched()Paul E. McKenney1-7/+7
2018-09-27jump_table: Move entries into ro_after_init regionArd Biesheuvel1-0/+9
2018-08-22module: use relative references for __ksymtab entriesArd Biesheuvel1-6/+26
2018-08-17Merge tag 'modules-for-v4.19' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-77/+66
2018-08-02kernel/module: Use kmemdup to replace kmalloc+memcpyzhong jiang1-4/+2
2018-07-16module: replace the existing LSM hook in init_moduleMimi Zohar1-1/+1
2018-07-02modsign: log module name in the event of an errorJessica Yu1-21/+1
2018-06-25module: replace VMLINUX_SYMBOL_STR() with __stringify() or string literalMasahiro Yamada1-4/+2
2018-06-25module: print sensible error codeJason A. Donenfeld1-2/+2
2018-06-22module: setup load info before module_sig_check()Jessica Yu1-34/+43
2018-06-22module: make it clear when we're handling the module copy in info->hdrJessica Yu1-21/+21
2018-06-18module: exclude SHN_UNDEF symbols from kallsyms apiJessica Yu1-1/+5
2018-06-16Merge tag 'modules-for-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-3/+1
2018-06-06Merge tag 'overflow-v4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-2/+1
2018-06-06treewide: Use struct_size() for kmalloc()-familyKees Cook1-2/+1
2018-05-11init: fix false positives in W+X checkingJeffrey Hugo1-0/+5
2018-04-18module: Fix display of wrong module .text addressThomas Richter1-1/+2
2018-04-16module: Allow to always show the status of modsignJia Zhang1-2/+0
2018-04-16module: Do not access sig_enforce directlyJia Zhang1-1/+1
2018-04-02Merge tag 'arch-removal' of git://git.kernel.org/pub/scm/linux/kernel/git/arn...Linus Torvalds1-4/+0
2018-03-16mm: remove blackfin MPU supportArnd Bergmann1-4/+0
2018-03-08module: propagate error in modules_open()Leon Yu1-1/+1
2018-02-07Merge tag 'modules-for-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-6/+1
2018-02-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/pml...Linus Torvalds1-0/+6
2018-01-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-1/+5
2018-01-29Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-0/+11
2018-01-26module/retpoline: Warn about missing retpoline in moduleAndi Kleen1-0/+11
2018-01-15ftrace/module: Move ftrace_release_mod() to ddebug_cleanup labelNamit Gupta1-6/+1
2018-01-12error-injection: Separate error-injection from kprobeMasami Hiramatsu1-4/+4
2018-01-09sections: split dereference_function_descriptor()Sergey Senozhatsky1-0/+6
2017-12-12add infrastructure for tagging functions as error injectableJosef Bacik1-1/+5
2017-11-29kallsyms: take advantage of the new '%px' formatLinus Torvalds1-3/+3
2017-11-17Merge tag 'trace-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/rost...Linus Torvalds1-0/+2
2017-11-15Merge tag 'modules-for-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-3/+1
2017-11-13Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+10
2017-11-12/proc/module: use the same logic as /proc/kallsyms for address exposureLinus Torvalds1-2/+18
2017-11-12modules: make sysfs attribute files readable by owner onlyLinus Torvalds1-1/+1
2017-11-08module: export module signature enforcement statusBruno E. O. Meneguele1-0/+10
2017-10-19kernel/module: Delete an error message for a failed memory allocation in add_...Markus Elfring1-3/+1
2017-10-05ftrace: Save module init functions kallsyms symbols for tracingSteven Rostedt (VMware)1-1/+1
2017-10-05ftrace: Allow module init functions to be tracedSteven Rostedt (VMware)1-0/+2
2017-07-25module: fix ddebug_remove_module()Zhou Chengming1-6/+6
2017-07-12Merge tag 'modules-for-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-31/+54
2017-07-10lib/extable.c: use bsearch() library function in search_extable()Thomas Meyer1-1/+1