diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-04-30 21:29:36 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-04-30 21:29:36 +0200 |
commit | 65c61de9d090edb8a3cfb3f45541e268eb2cdb13 (patch) | |
tree | f8298d9571a200b42824929bfd2d679fce162361 /drivers/gpu/drm/radeon | |
parent | Merge tag 'powerpc-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p... (diff) | |
parent | module: treat exit sections the same as init sections when !CONFIG_MODULE_UNLOAD (diff) | |
download | linux-65c61de9d090edb8a3cfb3f45541e268eb2cdb13.tar.xz linux-65c61de9d090edb8a3cfb3f45541e268eb2cdb13.zip |
Merge tag 'modules-for-v5.13' of git://git.kernel.org/pub/scm/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
Diffstat (limited to 'drivers/gpu/drm/radeon')
0 files changed, 0 insertions, 0 deletions