Allocate module text and data separately
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest6 patches 1 replyIn review
- v56 patches 1 replySuperseded
- v46 patches 0 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 6 patches | 7 replies | Superseded | |
| v2 | 5 patches | 6 replies | Superseded | |
| v1 | 7 patches | 14 replies | Superseded |
Changes in v6 from the cover letter
- Rebased on top of my series "miscellanuous cleanups" v4
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | module: Always have struct mod_tree_rootkernel/ kernel/ | +3 | 0 replies | |
| 2/6 | module: Prepare for handling several RB treeskernel/ kernel/ kernel/ | +20 | 0 replies | |
| 3/6 | module: Introduce data_layoutkernel/ kernel/ kernel/ +1 more | +28 | 0 replies | |
| 4/6 | module: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOCarch/ include/ kernel/ +5 more | +96 | 0 replies | |
| 5/6 | module: Remove module_addr_min and module_addr_maxkernel/ | +3 | 0 replies | |
| 6/6 | powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and 8xxarch/ | +1 | 0 replies |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Aaron Tomlin | Daniel Thompson |
|---|---|---|
| 1/6 | R-b | |
| 2/6 | ||
| 3/6 | ||
| 4/6 | A-b | |
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/6] Allocate module text and data separately
This series applies on top of my series "miscellanuous cleanups" v4.
This series allow architectures to request having modules data in vmalloc area instead of module area.
This is required on powerpc book3s/32 in order to set data non executable, because it is not possible to set executability on page basis, this is done per 256 Mbytes segments. The module area has exec right, vmalloc area has noexec. Without this change module data remains executable regardless of CONFIG_STRICT_MODULES_RWX.
This can also be useful on other powerpc/32 in order to maximize the chance of code being close enough to kernel core to avoid branch trampolines.
Changes in v6:
- Rebased on top of my series "miscellanuous cleanups" v4
Changes in v5:
- Rebased on top of Aaron's series "module: core code clean up" v8
Changes in v4:
- Rebased on top of Aaron's series "module: core code clean up" v6
Changes in v3:
- Fixed the tree for data_layout at one place (Thanks Miroslav)
- Moved removal of module_addr_min/module_addr_max macro out of patch 1 in a new patch at the end of the series to reduce churn.
Changes in v2:
- Dropped first two patches which are not necessary. They may be added back later as a follow-up series.
- Fixed the printks in GDB
Christophe Leroy (6):
module: Always have struct mod_tree_root
module: Prepare for handling several RB trees
module: Introduce data_layout
module: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC
module: Remove module_addr_min and module_addr_max
powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and
8xx
arch/Kconfig | 6 +++ arch/powerpc/Kconfig | 1 + include/linux/module.h | 8 +++ kernel/debug/kdb/kdb_main.c | 10 +++- kernel/module/internal.h | 13 +++-- kernel/module/kallsyms.c | 18 +++---- kernel/module/main.c | 103 +++++++++++++++++++++++++++--------- kernel/module/procfs.c | 8 ++- kernel/module/strict_rwx.c | 11 ++-- kernel/module/tree_lookup.c | 28 ++++++---- 10 files changed, 150 insertions(+), 56 deletions(-)
Signature · 1 line
2.34.1