Files
linux/kernel
Oleg Nesterov 66832eb4ba perf: Validate cpu early in perf_event_alloc()
Starting from perf_event_alloc()->perf_init_event(), the kernel
assumes that event->cpu is either -1 or the valid CPU number.

Change perf_event_alloc() to validate this argument early. This
also means we can remove the similar check in
find_get_context().

Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Prasad <[email protected]>
Cc: Roland McGrath <[email protected]>
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
2011-01-18 19:34:23 +01:00
..
2010-12-08 20:15:29 +01:00
2011-01-14 18:06:35 -05:00
2010-08-09 16:48:42 -04:00
2010-07-14 11:29:46 +02:00
2010-10-30 01:42:19 -04:00
2010-10-30 01:42:19 -04:00
2010-10-30 08:45:43 -04:00
…
2010-10-29 04:17:06 -04:00
2010-10-29 04:17:06 -04:00
…
…
…
2011-01-05 14:14:46 +01:00
…
2010-11-10 15:01:34 +01:00
2010-12-16 11:36:43 +01:00
2010-11-18 13:18:47 +01:00
…
2010-10-01 10:50:58 -07:00
2010-10-18 18:44:26 +02:00
…
…
2010-08-11 23:04:20 +09:30
2010-08-19 17:18:02 -07:00
…
…
…
2010-11-18 13:27:46 +01:00
…
2010-10-27 17:28:36 +01:00
2010-07-27 12:40:54 +02:00
…
…
2010-12-29 11:31:38 -08:00
…