Skip to content

x86/ftrace: Cure boot time W+X mapping

Peter Zijlstra lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/mm branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5mm: Move mm_cachep initialization to mm_init()include/linux/sched/task.h init/main.c kernel/fork.c+20 -140 replies
2/5x86/mm: Use mm_alloc() in poking_init()arch/x86/mm/init.c include/linux/sched/task.h kernel/fork.c+1 -70 replies
3/5x86/mm: Initialize text poking earlierinit/main.c+1 -20 replies
4/5x86/ftrace: Remove SYSTEM_BOOTING exceptionsarch/x86/kernel/alternative.c arch/x86/kernel/ftrace.c+1 -122 replies
5/5x86/mm: Do verify W^X at boot uparch/x86/mm/pat/set_memory.c+0 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] x86/ftrace: Cure boot time W+X mapping

Hi,

These few patches re-work and re-order boot things enough to avoid ftrace creating boot time W+X maps.

The patches compile and boot for the one config I tested things on (with ftrace=function enabled; *slooooow*).

I've pushed them out for the robots to have a go at here:

git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/mm.poke_me