Thread (40 messages) 40 messages, 10 authors, 2024-10-16

Re: [PATCH v5 4/8] module: prepare to handle ROX allocations for text

From: Song Liu <song@kernel.org>
Date: 2024-10-09 22:23:52
Also in: bpf, linux-alpha, linux-arch, linux-m68k, linux-mips, linux-mm, linux-modules, linux-riscv, linux-sh, linux-trace-kernel, linux-um, lkml, loongarch, sparclinux

On Wed, Oct 9, 2024 at 11:10 AM Mike Rapoport [off-list ref] wrote:
[...]
quoted hunk ↗ jump to hunk
diff --git a/include/linux/module.h b/include/linux/module.h
index 88ecc5e9f523..7039f609c6ef 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -367,6 +367,8 @@ enum mod_mem_type {

 struct module_memory {
        void *base;
+       void *rw_copy;
+       bool is_rox;
        unsigned int size;
Do we really need to hold the rw_copy all the time? I was
thinking we only need a temporary buffer when we want to
update anything. The buffer might be much smaller than "size".

Thanks,
Song

[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help