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

2017-11-01 Thread Ingo Molnar
* Zhou Chengming wrote: > Changes: > - Add a comment about text_mutex protecting this on x86. > > Fixes: 2cfa197 "ftrace/alternatives: Introducing *_text_reserved > functions" > > We use alternatives_text_reserved() to check if the address is in > the fixed pieces of alternative reserved, but

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

2017-10-31 Thread Zhou Chengming
Changes: - Add a comment about text_mutex protecting this on x86. Fixes: 2cfa197 "ftrace/alternatives: Introducing *_text_reserved functions" We use alternatives_text_reserved() to check if the address is in the fixed pieces of alternative reserved, but the problem is that we don't hold the smp_a