Re: [PATCH v2] fix use-after-free in perf_sched__lat

2019-07-04 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 04, 2019 at 07:21:28PM +0800, liwei (GF) escreveu: > Hi Arnaldo, > I found this issue has not been fixed in mainline now, please take a glance > at this. See below. > On 2019/5/23 10:50, Namhyung Kim wrote: > > On Wed, May 22, 2019 at 08:08:23AM -0300, Arnaldo Carvalho de Melo wrote

Re: [PATCH v2] fix use-after-free in perf_sched__lat

2019-07-04 Thread liwei (GF)
Hi Arnaldo, I found this issue has not been fixed in mainline now, please take a glance at this. On 2019/5/23 10:50, Namhyung Kim wrote: > On Wed, May 22, 2019 at 08:08:23AM -0300, Arnaldo Carvalho de Melo wrote: >> Em Wed, May 22, 2019 at 03:56:10PM +0900, Namhyung Kim escreveu: >>> On Wed, May

Re: [PATCH v2] fix use-after-free in perf_sched__lat

2019-05-22 Thread Namhyung Kim
On Wed, May 22, 2019 at 08:08:23AM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, May 22, 2019 at 03:56:10PM +0900, Namhyung Kim escreveu: > > On Wed, May 08, 2019 at 10:36:48PM +0800, Wei Li wrote: > > > After thread is added to machine->threads[i].dead in > > > __machine__remove_thread, the mac

Re: [PATCH v2] fix use-after-free in perf_sched__lat

2019-05-22 Thread Arnaldo Carvalho de Melo
Em Wed, May 22, 2019 at 03:56:10PM +0900, Namhyung Kim escreveu: > On Wed, May 08, 2019 at 10:36:48PM +0800, Wei Li wrote: > > After thread is added to machine->threads[i].dead in > > __machine__remove_thread, the machine->threads[i].dead is freed > > when calling free(session) in perf_session__del

Re: [PATCH v2] fix use-after-free in perf_sched__lat

2019-05-21 Thread Namhyung Kim
On Wed, May 08, 2019 at 10:36:48PM +0800, Wei Li wrote: > After thread is added to machine->threads[i].dead in > __machine__remove_thread, the machine->threads[i].dead is freed > when calling free(session) in perf_session__delete(). So it get a > Segmentation fault when accessing it in thread__put(