mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
perf_counter: Fix stack corruption in perf_read_hw
With PERF_FORMAT_ID, perf_read_hw now needs space for up to 4 values. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
87847b8f26
commit
d5e8da6449
1 changed files with 1 additions and 1 deletions
|
@ -1553,7 +1553,7 @@ static int perf_release(struct inode *inode, struct file *file)
|
||||||
static ssize_t
|
static ssize_t
|
||||||
perf_read_hw(struct perf_counter *counter, char __user *buf, size_t count)
|
perf_read_hw(struct perf_counter *counter, char __user *buf, size_t count)
|
||||||
{
|
{
|
||||||
u64 values[3];
|
u64 values[4];
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue