Re: [PATCH v9 2/7] powerpc/code-patching: Handle RWX patching initialisation error

2022-11-02 Thread Benjamin Gray
On Wed, 2022-11-02 at 09:36 +, Christophe Leroy wrote: > Le 25/10/2022 à 06:44, Benjamin Gray a écrit : > > Detect and abort __do_patch_instruction() when there is no > > text_poke_area, > > which implies there is no patching address. This allows > > patch_instruction() > > to fail gracefully a

Re: [PATCH v9 2/7] powerpc/code-patching: Handle RWX patching initialisation error

2022-11-02 Thread Christophe Leroy
Le 25/10/2022 à 06:44, Benjamin Gray a écrit : > Detect and abort __do_patch_instruction() when there is no text_poke_area, > which implies there is no patching address. This allows patch_instruction() > to fail gracefully and let the caller decide what to do, as opposed to > the current behaviou

[PATCH v9 2/7] powerpc/code-patching: Handle RWX patching initialisation error

2022-10-24 Thread Benjamin Gray
Detect and abort __do_patch_instruction() when there is no text_poke_area, which implies there is no patching address. This allows patch_instruction() to fail gracefully and let the caller decide what to do, as opposed to the current behaviour of kernel panicking when the null pointer is dereferenc