Messages in this thread | | | Date | Wed, 1 Nov 2017 12:24:55 -0400 | From | Steven Rostedt <> | Subject | Re: [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);
| |