wok-stable view linux/stuff/linux-perf_event-2.6.37.u @ rev 12457

linux: CVE-2016-5195
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 21 16:31:54 2016 +0200 (2016-10-21)
parents
children
line source
1 FIX: Linux local privilege escalation 0day, 2.6.37 - 3.8.10
2 --- linux-2.6.37/kernel/perf_event.c
3 +++ linux-2.6.37/kernel/perf_event.c
4 @@ -4705,7 +4705,7 @@
6 static int perf_swevent_init(struct perf_event *event)
7 {
8 - int event_id = event->attr.config;
9 + u64 event_id = event->attr.config;
11 if (event->attr.type != PERF_TYPE_SOFTWARE)
12 return -ENOENT;