* Modules creating PLT entries
@ 2020-11-21 22:36 Derrick McKee
0 siblings, 0 replies; 2+ messages in thread
From: Derrick McKee @ 2020-11-21 22:36 UTC (permalink / raw)
To: Linux ARM, Catalin Marinas
Hi,
I am working on a project that is attempting to make two regions for
module allocation, and embed an identifier in the address of modules
allocated in the new region. However, when I try to load a module in
the new area, I hit the warning on arch/arm64/kernel/module-plts.c:105
because I guess the loader is creating a PLT entry, which triggers the
warning and loading stops. The changes I have made to
arch/arm64/include/asm/memory.h are the following:
#if IS_ENABLED(CONFIG_PAC_MTE_COMPART)
#define PMC_MODULES_START (BPF_JIT_REGION_END + MODULES_VSIZE)
#define PMC_MODULES_END (PMC_MODULES_START + MODULES_VSIZE)
#define MODULES_VADDR (PMC_MODULES_END)
#else
#define MODULES_VADDR (BPF_JIT_REGION_END)
#endif
The definition of PMC_MODULES_START adds MODULES_VSIZE to make room
for the identifier. Reading the help for CONFIG_ARM64_MODULE_PLTS, it
seems like having PLT entries are expected and supported, but the
warning seems to indicate that they aren't. Any suggestions? Thanks
--
Derrick McKee
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Modules creating PLT Entries
@ 2020-12-21 15:26 Derrick McKee
0 siblings, 0 replies; 2+ messages in thread
From: Derrick McKee @ 2020-12-21 15:26 UTC (permalink / raw)
To: Linux ARM, Catalin Marinas
Hi,
I am working on a project that is attempting to make two regions for
module allocation, and embed an identifier in the address of modules
allocated in the new region. However, when I try to load a module in
the new area, I hit the warning on arch/arm64/kernel/module-plts.c:105
because I guess the loader is creating a PLT entry, which triggers the
warning and loading stops. The changes I have made to
arch/arm64/include/asm/memory.h are the following:
#if IS_ENABLED(CONFIG_PAC_MTE_COMPART)
#define PMC_MODULES_START (BPF_JIT_REGION_END + MODULES_VSIZE)
#define PMC_MODULES_END (PMC_MODULES_START + MODULES_VSIZE)
#define MODULES_VADDR (PMC_MODULES_END)
#else
#define MODULES_VADDR (BPF_JIT_REGION_END)
#endif
The definition of PMC_MODULES_START adds MODULES_VSIZE to make room
for the identifier. Reading the help for CONFIG_ARM64_MODULE_PLTS, it
seems like having PLT entries are expected and supported, but the
warning seems to indicate that they aren't. Any suggestions? Thanks
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-21 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-21 22:36 Modules creating PLT entries Derrick McKee
2020-12-21 15:26 Modules creating PLT Entries Derrick McKee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).