diff --git a/kernel/module.c b/kernel/module.c index bf2269aa3..c52adc976 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1350,7 +1350,7 @@ static int check_version(const struct load_info *info, bad_version: pr_warn("%s: disagrees about version of symbol %s\n", info->name, symname); - return 1; + return 0; } static inline int check_modstruct_version(const struct load_info *info, @@ -2917,10 +2917,6 @@ static int module_sig_check(struct load_info *info, int flags) const char *reason; const void *mod = info->hdr; -#if 1 - return 0; -#endif - /* * Require flags == 0, as a module with version information * removed is no longer the module that was signed @@ -4017,11 +4013,6 @@ static int load_module(struct load_info *info, const char __user *uargs, goto free_copy; } -#if 1 - flags |= MODULE_INIT_IGNORE_MODVERSIONS; - flags |= MODULE_INIT_IGNORE_VERMAGIC; -#endif - err = rewrite_section_headers(info, flags); if (err) goto free_copy;