Re: [PATCH v3] kprobes, x86/alternatives: use text_mutex to protect smp_alt_modules

From: Steven Rostedt
Date: Wed Nov 01 2017 - 12:25:02 EST


On Wed, 1 Nov 2017 19:00:34 +0800
Zhou Chengming <zhouchengming1@xxxxxxxxxx> wrote:

> diff --git a/kernel/extable.c b/kernel/extable.c
> index 9aa1cc4..ec64cf5 100644
> --- a/kernel/extable.c
> +++ b/kernel/extable.c
> @@ -31,6 +31,8 @@
> * mutex protecting text section modification (dynamic code patching).
> * some users need to sleep (allocating memory...) while they hold this lock.
> *
> + * Note: also protect smp alternatives modification on x86.

"Note: Also protects smp alternatives modification on x86"

Slight grammar fix, but other than that.

Acked-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

-- Steve

> + *
> * NOT exported to modules - patching kernel text is a really delicate matter.
> */
> DEFINE_MUTEX(text_mutex);