Re: [PATCH] ftrace: fix kmemleak in unregister_ftrace_graph

2017-10-03 Thread Steven Rostedt
12, 2017 10:14:54 AM > > Subject: [PATCH] ftrace: fix kmemleak in unregister_ftrace_graph > > > > From: Shu Wang > > > > The trampoline allocated by function tracer was > > overwrite by function_graph tracer, and cause > > memory leak. The save_global_tramp

Re: [PATCH] ftrace: fix kmemleak in unregister_ftrace_graph

2017-09-26 Thread Shu Wang
> From: shuw...@redhat.com > To: rost...@goodmis.org, mi...@redhat.com > Cc: ch...@redhat.com, liw...@redhat.com, linux-kernel@vger.kernel.org, "Shu > Wang" > Sent: Tuesday, September 12, 2017 10:14:54 AM > Subject: [PATCH] ftrace: fix kmemleak in unregister_ftra

[PATCH] ftrace: fix kmemleak in unregister_ftrace_graph

2017-09-11 Thread shuwang
From: Shu Wang The trampoline allocated by function tracer was overwrite by function_graph tracer, and cause memory leak. The save_global_trampoline should save previous trampoline in register_ftrace_graph and restore it in unregister_ftrace_graph. But as it implemented, save_global_trampoline wa