From: Linus Torvalds Date: Fri, 30 Apr 2021 19:29:36 +0000 (-0700) Subject: Merge tag 'modules-for-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu... X-Git-Tag: accepted/tizen/unified/20230118.172025~7330 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65c61de9d090edb8a3cfb3f45541e268eb2cdb13;p=platform%2Fkernel%2Flinux-rpi.git Merge tag 'modules-for-v5.13' of git://git./linux/kernel/git/jeyu/linux Pull module updates from Jessica Yu: "Fix an age old bug involving jump_calls and static_labels when CONFIG_MODULE_UNLOAD=n. When CONFIG_MODULE_UNLOAD=n, it means you can't unload modules, so normally the __exit sections of a module are not loaded at all. However, dynamic code patching (jump_label, static_call, alternatives) can have sites in __exit sections even if __exit is never executed. Reported by Peter Zijlstra: 'Alternatives, jump_labels and static_call all can have relocations into __exit code. Not loading it at all would be BAD.' Therefore, load the __exit sections even when CONFIG_MODULE_UNLOAD=n, and discard them after init" * tag 'modules-for-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux: module: treat exit sections the same as init sections when !CONFIG_MODULE_UNLOAD --- 65c61de9d090edb8a3cfb3f45541e268eb2cdb13