mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: P J P <ppandit@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: vincent.weaver@maine.edu
Subject: About perf,arm -- oops in validate_event
Date: Tue, 20 Aug 2013 15:33:00 +0530 (IST)	[thread overview]
Message-ID: <alpine.LFD.2.03.1308201522230.15482@erqung.pbz> (raw)

   Hello,

  -> https://lkml.org/lkml/2013/8/7/259

I wanted to confirm if this above fix should also go into ARM64 build Or is 
ARM64 platform not vulnerable?

===
$ git diff
diff --git a/arch/arm64/kernel/perf_event.c b/arch/arm64/kernel/perf_event.c
index 9ba33c4..cbed82f 100644
--- a/arch/arm64/kernel/perf_event.c
+++ b/arch/arm64/kernel/perf_event.c
@@ -317,6 +317,9 @@ validate_event(struct pmu_hw_events *hw_events,
         struct hw_perf_event fake_event = event->hw;
         struct pmu *leader_pmu = event->group_leader->pmu;

+    if (is_software_event(event))
+        return 1;
+
         if (event->pmu != leader_pmu || event->state <= PERF_EVENT_STATE_OFF)
                 return 1;
===


Thank you.
--
Prasad J Pandit / Red Hat Security Response Team
DB7A 84C5 D3F9 7CD1 B5EB  C939 D048 7860 3655 602B

             reply	other threads:[~2013-08-20 10:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20 10:03 P J P [this message]
2013-08-20 10:39 ` Catalin Marinas
2013-08-20 14:42   ` Vince Weaver
2013-08-20 16:15     ` Catalin Marinas

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=alpine.LFD.2.03.1308201522230.15482@erqung.pbz \
    --to=ppandit@redhat.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®