From: Will Deacon <will.deacon@arm.com>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: Stephen Boyd <sboyd@codeaurora.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Mark Rutland <Mark.Rutland@arm.com>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Ingo Molnar <mingo@redhat.com>, Paul Mackerras <paulus@samba.org>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
"trinity@vger.kernel.org" <trinity@vger.kernel.org>
Subject: Re: perf,arm -- another (different) fuzzer oops
Date: Thu, 8 Aug 2013 13:13:37 +0100 [thread overview]
Message-ID: <20130808121337.GC18724@mudshark.cambridge.arm.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1308072251210.20629@vincent-weaver-1.um.maine.edu>
On Thu, Aug 08, 2013 at 03:53:31AM +0100, Vince Weaver wrote:
> On Wed, 7 Aug 2013, Vince Weaver wrote:
> > On Wed, 7 Aug 2013, Stephen Boyd wrote:
> > > diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
> > > index d9f5cd4..21f7790 100644
> > > --- a/arch/arm/kernel/perf_event.c
> > > +++ b/arch/arm/kernel/perf_event.c
> > > @@ -53,7 +53,12 @@ armpmu_map_cache_event(const unsigned (*cache_map)
> > > static int
> > > armpmu_map_hw_event(const unsigned (*event_map)[PERF_COUNT_HW_MAX], u64 config)
> > > {
> > > - int mapping = (*event_map)[config];
> > > + int mapping;
> > > +
> > > + if (config >= PERF_COUNT_HW_MAX)
> > > + return -ENOENT;
> > > +
> > > + mapping = (*event_map)[config];
> > > return mapping == HW_OP_UNSUPPORTED ? -ENOENT : mapping;
> > > }
> >
> > I've tested this patch and my testcase no longer causes the kernel to
> > oops, so
> >
> > Tested-by: Vince Weaver <vincent.weaver@maine.edu>
>
> P.S. I re-ran the fuzzer again after applying the patch and the good news
> is there were no further oopsen. The bad news is the machine locked
> up solid. I'll investigate further when I'm not remote.
On the flip side, the good news is that we know the problem is there. We're
probably generating interrupts at some horrendous rate for the lock-up....
are you running your fuzzer as root?
Also, is your fuzzer available somewhere? I could take it for a spin on some
different architectures if you like.
Thanks,
Will
next prev parent reply other threads:[~2013-08-08 12:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 20:14 perf,arm -- another (different) fuzzer oops Vince Weaver
2013-08-07 22:31 ` Will Deacon
2013-08-07 23:18 ` Stephen Boyd
2013-08-08 2:03 ` Vince Weaver
2013-08-08 2:31 ` Vince Weaver
2013-08-08 2:53 ` Vince Weaver
2013-08-08 12:13 ` Will Deacon [this message]
2013-08-08 13:40 ` Vince Weaver
2013-08-08 12:09 ` Will Deacon
2013-08-08 17:44 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130808121337.GC18724@mudshark.cambridge.arm.com \
--to=will.deacon@arm.com \
--cc=Mark.Rutland@arm.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paulus@samba.org \
--cc=sboyd@codeaurora.org \
--cc=trinity@vger.kernel.org \
--cc=vincent.weaver@maine.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox