Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2013-05-15 09:26:33 +0200
committerJiri Kosina <jkosina@suse.cz>2013-05-15 09:26:33 +0200
commit446798fe4548751196be35caaf8cf0906ffdeb11 (patch)
tree4adfd6c61abbd03baf2de6c2a4cfdd41d602f940
parentd7ec0db23280885cf75e9e5713c88826508083bb (diff)
- patches.fixes/perf-treat-attr.config-as-u64-in-perf_swevent_init.patch:rpm-3.0.74-0.6.8
perf: Treat attr.config as u64 in perf_swevent_init() (bnc#819789, CVE-2013-2094). suse-commit: 5e244d71e04c1b45a88aca2e76a3bd9a493289ac
-rw-r--r--kernel/events/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 4061064c86a5..bd553aa34891 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -5474,7 +5474,7 @@ static void sw_perf_event_destroy(struct perf_event *event)
static int perf_swevent_init(struct perf_event *event)
{
- int event_id = event->attr.config;
+ u64 event_id = event->attr.config;
if (event->attr.type != PERF_TYPE_SOFTWARE)
return -ENOENT;