linux_dsm_epyc7002/kernel/events
Tommi Rantala 8176cced70 perf: Treat attr.config as u64 in perf_swevent_init()
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 <tt.rantala@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: davej@redhat.com
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Link: http://lkml.kernel.org/r/1365882554-30259-1-git-send-email-tt.rantala@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2013-04-15 11:42:12 +02:00
..
callchain.c perf: Add attribute to filter out callchains 2012-08-10 12:40:57 -03:00
core.c perf: Treat attr.config as u64 in perf_swevent_init() 2013-04-15 11:42:12 +02:00
hw_breakpoint.c perf/hwbp: Fix cleanup in case of kzalloc failure 2013-02-14 17:06:39 -03:00
internal.h perf: Fix ring_buffer perf_output_space() boundary calculation 2013-03-21 12:04:35 +01:00
Makefile uprobes: Move to kernel/events/ 2012-02-22 11:08:00 +01:00
ring_buffer.c perf: Fix ring_buffer perf_output_space() boundary calculation 2013-03-21 12:04:35 +01:00
uprobes.c uprobes: Introduce uprobe_apply() 2013-02-08 18:28:04 +01:00