Re: [PATCH v5 08/10] powerpc/lib: Refactor __patch_instruction() to use __put_user_asm()

2019-03-08 Thread Christophe Leroy
Le 08/03/2019 à 02:16, Michael Ellerman a écrit : From: Russell Currey __patch_instruction() is called in early boot, and uses __put_user_size(), which includes the allow/prevent calls to enforce KUAP, which could either be called too early, or in the Radix case, forced to use "early_" versi

[PATCH v5 08/10] powerpc/lib: Refactor __patch_instruction() to use __put_user_asm()

2019-03-07 Thread Michael Ellerman
From: Russell Currey __patch_instruction() is called in early boot, and uses __put_user_size(), which includes the allow/prevent calls to enforce KUAP, which could either be called too early, or in the Radix case, forced to use "early_" versions of functions just to safely handle this one case.