projects
/
cascardo
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
043fe50
)
Merge branch 'perfcounters-fixes-for-linus' of git://git.kernel.org/pub/scm/linux...
author
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 15 Sep 2009 16:34:27 +0000
(09:34 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 15 Sep 2009 16:34:27 +0000
(09:34 -0700)
* '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()
kernel/perf_counter.c
patch
|
blob
|
history
diff --git
a/kernel/perf_counter.c
b/kernel/perf_counter.c
index
e0d91fd
..
e7f60f8
100644
(file)
--- a/
kernel/perf_counter.c
+++ b/
kernel/perf_counter.c
@@
-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);