mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
Merge branch 'modules-next' of git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git
This commit is contained in:
commit
bfb2b1bbdb
@ -15,10 +15,10 @@
|
||||
#else
|
||||
#define MODULE_VERMAGIC_SMP ""
|
||||
#endif
|
||||
#ifdef CONFIG_PREEMPT_BUILD
|
||||
#define MODULE_VERMAGIC_PREEMPT "preempt "
|
||||
#elif defined(CONFIG_PREEMPT_RT)
|
||||
#ifdef CONFIG_PREEMPT_RT
|
||||
#define MODULE_VERMAGIC_PREEMPT "preempt_rt "
|
||||
#elif defined(CONFIG_PREEMPT_BUILD)
|
||||
#define MODULE_VERMAGIC_PREEMPT "preempt "
|
||||
#else
|
||||
#define MODULE_VERMAGIC_PREEMPT ""
|
||||
#endif
|
||||
|
@ -2332,11 +2332,20 @@ static int rewrite_section_headers(struct load_info *info, int flags)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const char *module_license_offenders[] = {
|
||||
/* driverloader was caught wrongly pretending to be under GPL */
|
||||
"driverloader",
|
||||
|
||||
/* lve claims to be GPL but upstream won't provide source */
|
||||
"lve",
|
||||
};
|
||||
|
||||
/*
|
||||
* These calls taint the kernel depending certain module circumstances */
|
||||
static void module_augment_kernel_taints(struct module *mod, struct load_info *info)
|
||||
{
|
||||
int prev_taint = test_taint(TAINT_PROPRIETARY_MODULE);
|
||||
size_t i;
|
||||
|
||||
if (!get_modinfo(info, "intree")) {
|
||||
if (!test_taint(TAINT_OOT_MODULE))
|
||||
@ -2385,15 +2394,11 @@ static void module_augment_kernel_taints(struct module *mod, struct load_info *i
|
||||
if (strcmp(mod->name, "ndiswrapper") == 0)
|
||||
add_taint(TAINT_PROPRIETARY_MODULE, LOCKDEP_NOW_UNRELIABLE);
|
||||
|
||||
/* driverloader was caught wrongly pretending to be under GPL */
|
||||
if (strcmp(mod->name, "driverloader") == 0)
|
||||
add_taint_module(mod, TAINT_PROPRIETARY_MODULE,
|
||||
LOCKDEP_NOW_UNRELIABLE);
|
||||
|
||||
/* lve claims to be GPL but upstream won't provide source */
|
||||
if (strcmp(mod->name, "lve") == 0)
|
||||
add_taint_module(mod, TAINT_PROPRIETARY_MODULE,
|
||||
LOCKDEP_NOW_UNRELIABLE);
|
||||
for (i = 0; i < ARRAY_SIZE(module_license_offenders); ++i) {
|
||||
if (strcmp(mod->name, module_license_offenders[i]) == 0)
|
||||
add_taint_module(mod, TAINT_PROPRIETARY_MODULE,
|
||||
LOCKDEP_NOW_UNRELIABLE);
|
||||
}
|
||||
|
||||
if (!prev_taint && test_taint(TAINT_PROPRIETARY_MODULE))
|
||||
pr_warn("%s: module license taints kernel.\n", mod->name);
|
||||
|
Loading…
Reference in New Issue
Block a user