lkml.org 
[lkml]   [2017]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] kprobes, x86/alternatives: use text_mutex to protect smp_alt_modules
On Wed, 1 Nov 2017 19:00:34 +0800
Zhou Chengming <zhouchengming1@huawei.com> 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@goodmis.org>

-- Steve

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

\
 
 \ /
  Last update: 2017-11-01 17:26    [W:0.038 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site