Re: [PATCH AUTOSEL 4.4 04/14] perf header: Fix divide by zero error if f_header.attr_size==0

2019-08-19 Thread Jiri Olsa
On Mon, Aug 19, 2019 at 02:07:53PM +0200, Jack Wang wrote: > Sasha Levin 于2019年8月6日周二 下午11:39写道: > > > > From: Vince Weaver > > > > [ Upstream commit 7622236ceb167aa3857395f9bdaf871442aa467e ] > > > > So I have been having lots of trouble with hand-crafted perf.data files > > causing segfaults

Re: [PATCH AUTOSEL 4.4 04/14] perf header: Fix divide by zero error if f_header.attr_size==0

2019-08-19 Thread Jack Wang
Sasha Levin 于2019年8月6日周二 下午11:39写道: > > From: Vince Weaver > > [ Upstream commit 7622236ceb167aa3857395f9bdaf871442aa467e ] > > So I have been having lots of trouble with hand-crafted perf.data files > causing segfaults and the like, so I have started fuzzing the perf tool. > > First issue

[PATCH AUTOSEL 4.4 04/14] perf header: Fix divide by zero error if f_header.attr_size==0

2019-08-06 Thread Sasha Levin
From: Vince Weaver [ Upstream commit 7622236ceb167aa3857395f9bdaf871442aa467e ] So I have been having lots of trouble with hand-crafted perf.data files causing segfaults and the like, so I have started fuzzing the perf tool. First issue found: If f_header.attr_size is 0 in the perf.data file,