diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /kernel/module.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'kernel/module.c')
| -rw-r--r-- | kernel/module.c | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/module.c b/kernel/module.c index c9bea7f2b43e..f475f30eed8c 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -274,9 +274,7 @@ static void module_assert_mutex_or_preempt(void)  }  static bool sig_enforce = IS_ENABLED(CONFIG_MODULE_SIG_FORCE); -#ifndef CONFIG_MODULE_SIG_FORCE  module_param(sig_enforce, bool_enable_only, 0644); -#endif /* !CONFIG_MODULE_SIG_FORCE */  /*   * Export sig_enforce kernel cmdline parameter to allow other subsystems rely @@ -1604,8 +1602,7 @@ static void add_notes_attrs(struct module *mod, const struct load_info *info)  	if (notes == 0)  		return; -	notes_attrs = kzalloc(sizeof(*notes_attrs) -			      + notes * sizeof(notes_attrs->attrs[0]), +	notes_attrs = kzalloc(struct_size(notes_attrs, attrs, notes),  			      GFP_KERNEL);  	if (notes_attrs == NULL)  		return; @@ -2786,7 +2783,7 @@ static int module_sig_check(struct load_info *info, int flags)  	}  	/* Not having a signature is only an error if we're strict. */ -	if (err == -ENOKEY && !sig_enforce) +	if (err == -ENOKEY && !is_module_sig_enforced())  		err = 0;  	return err;  | 
