Re: [External] Re: [PATCH 1/2] ftrace: clear module from hash of all ftrace ops

2020-07-30 Thread Chengming Zhou
在 2020/7/29 上午1:26, Steven Rostedt 写道: > On Wed, 29 Jul 2020 00:59:33 +0800 > Chengming Zhou wrote: > > >>> i.e. >>> >>> # echo some_module_function > set_ftrace_filter >>> # rmmod module_with_that_function >>> # insmod module_with_same_address_of_function >>> # echo function > current_t

Re: [External] Re: [PATCH 1/2] ftrace: clear module from hash of all ftrace ops

2020-07-28 Thread Steven Rostedt
On Wed, 29 Jul 2020 00:59:33 +0800 Chengming Zhou wrote: > > i.e. > > > > # echo some_module_function > set_ftrace_filter > > # rmmod module_with_that_function > > # insmod module_with_same_address_of_function > > # echo function > current_tracer > > > > Now the tr->ops->hash would still

Re: [External] Re: [PATCH 1/2] ftrace: clear module from hash of all ftrace ops

2020-07-28 Thread Chengming Zhou
在 2020/7/28 下午8:53, Steven Rostedt 写道: On Tue, 28 Jul 2020 18:27:19 +0800 Chengming Zhou wrote: We should clear module from hash of all ops on ftrace_ops_list when module going, or the ops including these modules will be matched wrongly by new module loaded later. This is really up to the o