Re: [PATCH 4/5] x86/alternative: make .altinstr_replacement section non-executable

From: Peter Zijlstra
Date: Sat Mar 12 2022 - 10:31:57 EST


On Fri, Mar 11, 2022 at 05:43:11PM +0300, Alexey Dobriyan wrote:
> Instructions in .altinstr_replacement section aren't meant to be
> executed by CPU directly, only after being copied to the real
> instruction stream in .text/.init_text.

But who cares; the entire section is deleted right along with
.init_text.