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

Peter Zijlstra
2023-10-10T11:24:55Z

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.