From: Peter Zijlstra <peterz@infradead.org>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [perf] yet another 32/64-bit range check failure
Date: Thu, 15 May 2014 10:37:30 +0200 [thread overview]
Message-ID: <20140515083730.GF30445@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <alpine.DEB.2.10.1405150106410.30079@vincent-weaver-1.umelst.maine.edu>
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
On Thu, May 15, 2014 at 01:07:34AM -0400, Vince Weaver wrote:
> On Thu, 24 Apr 2014, Vince Weaver wrote:
>
> > On Wed, 23 Apr 2014, Peter Zijlstra wrote:
> > >
> > > Something like so should do I suppose.
> > >
> > > ---
> > > Subject: perf: Fix perf_event_open(.flags) test
> > >
> > > Vince noticed that we test the (unsigned long) flags field against an
> > > (unsigned int) constant. This would allow setting the high bits on 64bit
> > > platforms and not get an error.
> > >
> > > There is nothing that uses the high bits, so it should be entirely
> > > harmless, but we don't want userspace to accidentally set them anyway,
> > > so fix the constants.
> > >
> > > Reported-by: Vince Weaver <vincent.weaver@maine.edu>
> > > Signed-off-by: Peter Zijlstra <peterz@infradead.org>
> >
> > Tested-by: Vince Weaver <vincent.weaver@maine.edu>
> >
> > Your patch fixes the problem, or at least the test I wrote to check the
> > issue now fails properly.
>
> Even though this isn't as pressing an issue as the other perf_event
> problems, I wanted to make sure this patch didn't get forgotten...
Thanks for reminding me, got it queued now.
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2014-05-15 8:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 3:40 [perf] yet another 32/64-bit range check failure Vince Weaver
2014-04-23 4:14 ` Vince Weaver
2014-04-23 10:10 ` Peter Zijlstra
2014-04-23 13:33 ` Vince Weaver
2014-04-23 10:22 ` Peter Zijlstra
2014-04-23 14:14 ` Vince Weaver
2014-04-23 14:37 ` Vince Weaver
2014-04-24 21:14 ` Vince Weaver
2014-05-15 5:07 ` Vince Weaver
2014-05-15 8:37 ` Peter Zijlstra [this message]
2014-05-19 12:55 ` [tip:perf/core] perf: Fix perf_event_open(.flags) test tip-bot for Peter Zijlstra
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=20140515083730.GF30445@twins.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--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