Skip to content

Commit f199fd9

Browse files
committed
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()
2 parents 043fe50 + b3e62e3 commit f199fd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/perf_counter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4215,6 +4215,7 @@ static int perf_copy_attr(struct perf_counter_attr __user *uattr,
42154215
if (val)
42164216
goto err_size;
42174217
}
4218+
size = sizeof(*attr);
42184219
}
42194220

42204221
ret = copy_from_user(attr, uattr, size);

0 commit comments

Comments
 (0)