Re: [PATCH] kernel/kprobes: add check to avoid kprobe memory leak

2017-10-25 Thread Masami Hiramatsu
On Thu, 26 Oct 2017 09:22:23 +0800 chenjiankang wrote: > > On Tue, 24 Oct 2017 20:17:02 +0800 > > JianKang Chen wrote: > > > >> The function register_kretprobe is used to initialize a struct > >> kretprobe and allocate a list table for kprobe instance. > >> However,in this function, there is a

Re: [PATCH] kernel/kprobes: add check to avoid kprobe memory leak

2017-10-25 Thread chenjiankang
> On Tue, 24 Oct 2017 20:17:02 +0800 > JianKang Chen wrote: > >> The function register_kretprobe is used to initialize a struct >> kretprobe and allocate a list table for kprobe instance. >> However,in this function, there is a memory leak. >> >> The test case: >> >> static struct kretprobe rp; >

Re: [PATCH] kernel/kprobes: add check to avoid kprobe memory leak

2017-10-25 Thread Masami Hiramatsu
On Tue, 24 Oct 2017 20:17:02 +0800 JianKang Chen wrote: > The function register_kretprobe is used to initialize a struct > kretprobe and allocate a list table for kprobe instance. > However,in this function, there is a memory leak. > > The test case: > > static struct kretprobe rp; > struct kr