Re: [PATCH v3] powerpc: Avoid code patching freed init sections

2018-09-12 Thread Christophe LEROY
Le 13/09/2018 à 05:03, Michael Neuling a écrit : This stops us from doing code patching in init sections after they've been freed. In this chain: kvm_guest_init() -> kvm_use_magic_page() -> fault_in_pages_readable() -> __get_user() -> __get_user_nocheck() ->

[PATCH v3] powerpc: Avoid code patching freed init sections

2018-09-12 Thread Michael Neuling
This stops us from doing code patching in init sections after they've been freed. In this chain: kvm_guest_init() -> kvm_use_magic_page() -> fault_in_pages_readable() -> __get_user() -> __get_user_nocheck() -> barrier_nospec(); We have a code patching