]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ARM: module: recognize unwind exit sections
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Fri, 7 Jun 2019 10:49:12 +0000 (12:49 +0200)
committerJessica Yu <jeyu@kernel.org>
Mon, 24 Jun 2019 12:05:10 +0000 (14:05 +0200)
commit70bac08d4157fda334fe21ee38a2e93bc434bac4
tree33c91f336746cba92b4772e3c0a3803ed98efa07
parent38b37d631aec80da0c65ac03a7ef680b468c7857
ARM: module: recognize unwind exit sections

In addition to the prefix ".exit", ".ARM.extab.exit" and ".ARM.exidx.exit"
must be recognized as exit sections as well. Otherwise, loading modules can
fail without CONFIG_MODULE_UNLOAD depending on the memory layout, when
relocations for the unwind sections refer to the .exit.text section:

  imx_sdma: section 16 reloc 0 sym '': relocation 42 out of range
  (0x7f015260 -> 0xc0f5a5e8)

where 0x7F000000 is the module load area and 0xC0000000 is the vmalloc
area. Relocation 42 refers to R_ARM_PREL31, which is limited to signed
31bit offsets.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
arch/arm/kernel/module.c