mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 18:56:14 +00:00
Merge branch 'perfcounters-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'perfcounters-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: perf_counter: Fix buffer overflow in perf_copy_attr()
This commit is contained in:
commit
f199fd9906
1 changed files with 1 additions and 0 deletions
|
@ -4215,6 +4215,7 @@ static int perf_copy_attr(struct perf_counter_attr __user *uattr,
|
|||
if (val)
|
||||
goto err_size;
|
||||
}
|
||||
size = sizeof(*attr);
|
||||
}
|
||||
|
||||
ret = copy_from_user(attr, uattr, size);
|
||||
|
|
Loading…
Reference in a new issue