Re: [PATCH] x86/alternatives: Disable KASAN on text_poke_early() in apply_alternatives()

From: Peter Zijlstra
Date: Tue Oct 10 2023 - 07:24:55 EST


On Tue, Oct 10, 2023 at 01:25:37PM +0300, Kirill A. Shutemov wrote:

> > That said, I don't particularly like the patch, I think it should, at
> > the veyr least, cover all of apply_alternatives, not just
> > text_poke_early().
>
> I can do this, if it is the only stopper.
>
> Do you want it disabled on caller side or inside apply_alternatives()?

Inside probably, covering the whole for()-loop thingy. Ideally with a
comment explaining how KASAN doesn't like partial LA57 patching.