Re: [PATCH v2] ftrace: Clear hashes of stale ips of init memory

2017-10-09 Thread Joel Fernandes
On Mon, Oct 9, 2017 at 12:11 PM, Joel Fernandes wrote: > On Mon, Oct 9, 2017 at 11:53 AM, Joel Fernandes wrote: > [..] >> + >> void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr) >> { >> unsigned long start = (unsigned

Re: [PATCH v2] ftrace: Clear hashes of stale ips of init memory

2017-10-09 Thread Joel Fernandes
On Mon, Oct 9, 2017 at 12:11 PM, Joel Fernandes wrote: > On Mon, Oct 9, 2017 at 11:53 AM, Joel Fernandes wrote: > [..] >> + >> void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr) >> { >> unsigned long start = (unsigned long)(start_ptr); >> @@ -6076,8 +6135,12 @@

Re: [PATCH v2] ftrace: Clear hashes of stale ips of init memory

2017-10-09 Thread Joel Fernandes
On Mon, Oct 9, 2017 at 11:53 AM, Joel Fernandes wrote: [..] > + > void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr) > { > unsigned long start = (unsigned long)(start_ptr); > @@ -6076,8 +6135,12 @@ void ftrace_free_mem(struct module *mod, void >

Re: [PATCH v2] ftrace: Clear hashes of stale ips of init memory

2017-10-09 Thread Joel Fernandes
On Mon, Oct 9, 2017 at 11:53 AM, Joel Fernandes wrote: [..] > + > void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr) > { > unsigned long start = (unsigned long)(start_ptr); > @@ -6076,8 +6135,12 @@ void ftrace_free_mem(struct module *mod, void > *start_ptr, void

[PATCH v2] ftrace: Clear hashes of stale ips of init memory

2017-10-09 Thread Joel Fernandes
Filters should be cleared of init functions during freeing of init memory when the ftrace dyn records are released. However in current code, the filters are left as is. This patch clears the hashes of the saved init functions when the init memory is freed. This fixes the following issue

[PATCH v2] ftrace: Clear hashes of stale ips of init memory

2017-10-09 Thread Joel Fernandes
Filters should be cleared of init functions during freeing of init memory when the ftrace dyn records are released. However in current code, the filters are left as is. This patch clears the hashes of the saved init functions when the init memory is freed. This fixes the following issue