Skip to content

Commit

Permalink
Merge branch 'perfcounters-fixes-for-linus' of git://git.kernel.org/p…
Browse files Browse the repository at this point in the history
…ub/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()
  • Loading branch information
torvalds committed Sep 15, 2009
2 parents 043fe50 + b3e62e3 commit f199fd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f199fd9

Please sign in to comment.