[PATCH] perf: treat attr.config as u64 in perf_swevent_init()

2013-04-13 Thread Tommi Rantala
Trinity discovered that we fail to check all 64 bits of attr.config passed by user space, resulting to out-of-bounds access of the perf_swevent_enabled array in sw_perf_event_destroy(). Introduced in commit b0a873ebb ("perf: Register PMU implementations"). Signed-off-by: Tommi Rantala Cc: Peter

[PATCH] perf: treat attr.config as u64 in perf_swevent_init()

2013-04-13 Thread Tommi Rantala
Trinity discovered that we fail to check all 64 bits of attr.config passed by user space, resulting to out-of-bounds access of the perf_swevent_enabled array in sw_perf_event_destroy(). Introduced in commit b0a873ebb (perf: Register PMU implementations). Signed-off-by: Tommi Rantala