forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/li…
…nux/kernel/git/rusty/linux Pull module updates from Rusty Russell: "The only interesting thing here is Jessica's patch to add ro_after_init support to modules. The rest are all trivia" * tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: extable.h: add stddef.h so "NULL" definition is not implicit modules: add ro_after_init support jump_label: disable preemption around __module_text_address(). exceptions: fork exception table content from module.h into extable.h modules: Add kernel parameter to blacklist modules module: Do a WARN_ON_ONCE() for assert module mutex not held Documentation/module-signing.txt: Note need for version info if reusing a key module: Invalidate signatures on force-loaded modules module: Issue warnings when tainting kernel module: fix redundant test. module: fix noreturn attribute for __module_put_and_exit()
- Loading branch information
Showing
8 changed files
with
155 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef _LINUX_EXTABLE_H | ||
#define _LINUX_EXTABLE_H | ||
|
||
#include <linux/stddef.h> /* for NULL */ | ||
|
||
struct module; | ||
struct exception_table_entry; | ||
|
||
const struct exception_table_entry * | ||
search_extable(const struct exception_table_entry *first, | ||
const struct exception_table_entry *last, | ||
unsigned long value); | ||
void sort_extable(struct exception_table_entry *start, | ||
struct exception_table_entry *finish); | ||
void sort_main_extable(void); | ||
void trim_init_extable(struct module *m); | ||
|
||
/* Given an address, look for it in the exception tables */ | ||
const struct exception_table_entry *search_exception_tables(unsigned long add); | ||
|
||
#ifdef CONFIG_MODULES | ||
/* For extable.c to search modules' exception tables. */ | ||
const struct exception_table_entry *search_module_extables(unsigned long addr); | ||
#else | ||
static inline const struct exception_table_entry * | ||
search_module_extables(unsigned long addr) | ||
{ | ||
return NULL; | ||
} | ||
#endif /*CONFIG_MODULES*/ | ||
|
||
#endif /* _LINUX_EXTABLE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.