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

2021-05-06 Thread Christophe Leroy
Le 06/05/2021 à 04:34, 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 v12 2/8] powerpc/lib/code-patching: Set up Strict RWX patching earlier

2021-05-05 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