Re: [PATCH v11 2/9] powerpc/lib/code-patching: Set up Strict RWX patching earlier

2021-05-04 Thread Jordan Niethe
On Thu, Apr 29, 2021 at 2:53 PM Christophe Leroy wrote: > > > > Le 29/04/2021 à 05:15, Jordan Niethe a écrit : > > setup_text_poke_area() is a late init call so it runs before > > mark_rodata_ro() and after the init calls. This lets all the init code > > patching simply write to their locations.

Re: [PATCH v11 2/9] powerpc/lib/code-patching: Set up Strict RWX patching earlier

2021-04-28 Thread Christophe Leroy
Le 29/04/2021 à 05:15, Jordan Niethe a écrit : setup_text_poke_area() is a late init call so it runs before mark_rodata_ro() and after the init calls. This lets all the init code patching simply write to their locations. In the future, kprobes is going to allocate its instruction pages RO

[PATCH v11 2/9] powerpc/lib/code-patching: Set up Strict RWX patching earlier

2021-04-28 Thread Jordan Niethe
setup_text_poke_area() is a late init call so it runs before mark_rodata_ro() and after the init calls. This lets all the init code patching simply write to their locations. In the future, kprobes is going to allocate its instruction pages RO which means they will need setup_text__poke_area() to