Skip to content

arm64: wire up VM_FLUSH_RESET_PERMS

Ard Biesheuvel linux-arm-kernel lkml 1 version Applied

Status from this message: I queued them in for-next/core (and fixed a minor conflict). Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4arm64: module: create module allocations without exec permissionsarch/arm64/kernel/module.c+2 -22 replies
2/4arm64/mm: wire up CONFIG_ARCH_HAS_SET_DIRECT_MAParch/arm64/Kconfig arch/arm64/include/asm/cacheflush.h arch/arm64/mm/pageattr.c +1 more+44 -194 replies
3/4arm64/kprobes: set VM_FLUSH_RESET_PERMS on kprobe instruction pagesarch/arm64/kernel/probes/kprobes.c+3 -12 replies
4/4arm64: bpf: do not allocate executable memoryarch/arm64/net/bpf_jit_comp.c+1 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWill Deacon
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] arm64: wire up VM_FLUSH_RESET_PERMS

Wire up the code introduced in v5.2 to manage the permissions of executable vmalloc regions (and their linear aliases) more strictly.

One of the things that came up in the internal discussion is whether non-x86 architectures have any benefit at all from the lazy vunmap feature, and whether it would perhaps be better to implement eager vunmap instead.

Cc Nadav Amit <[email protected]>
Cc Rick Edgecombe <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Will Deacon <[email protected]>
Cc Masami Hiramatsu <[email protected]>
Cc James Morse <[email protected]>

Ard Biesheuvel (4):
arm64: module: create module allocations without exec permissions arm64/mm: wire up CONFIG_ARCH_HAS_SET_DIRECT_MAP arm64/kprobes: set VM_FLUSH_RESET_PERMS on kprobe instruction pages
arm64: bpf: do not allocate executable memory

 arch/arm64/Kconfig                  |  1 +
 arch/arm64/include/asm/cacheflush.h |  3 ++
 arch/arm64/kernel/module.c          |  4 +-
 arch/arm64/kernel/probes/kprobes.c  |  4 +-
 arch/arm64/mm/pageattr.c            | 48 ++++++++++++++++----
 arch/arm64/net/bpf_jit_comp.c       |  2 +-
 mm/vmalloc.c                        | 11 -----
 7 files changed, 50 insertions(+), 23 deletions(-)
Signature · 1 line
2.17.1