diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-21 02:10:04 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-21 02:10:04 +0200 |
commit | b732d9680b7a2968823851f1163507ad9c45c8cb (patch) | |
tree | d4584316d00a021d3d54052676a870c8b2999f23 | |
parent | alpha: resurrect Cypress IDE quirk (diff) | |
parent | [IA64] SN2: security hole in sn2_ptc_proc_write (diff) | |
download | linux-b732d9680b7a2968823851f1163507ad9c45c8cb.tar.xz linux-b732d9680b7a2968823851f1163507ad9c45c8cb.zip |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
[IA64] SN2: security hole in sn2_ptc_proc_write
-rw-r--r-- | arch/ia64/sn/kernel/sn2/sn2_smp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ia64/sn/kernel/sn2/sn2_smp.c b/arch/ia64/sn/kernel/sn2/sn2_smp.c index 49d3120415eb..6dd886c5d860 100644 --- a/arch/ia64/sn/kernel/sn2/sn2_smp.c +++ b/arch/ia64/sn/kernel/sn2/sn2_smp.c @@ -512,6 +512,8 @@ static ssize_t sn2_ptc_proc_write(struct file *file, const char __user *user, si int cpu; char optstr[64]; + if (count > sizeof(optstr)) + return -EINVAL; if (copy_from_user(optstr, user, count)) return -EFAULT; optstr[count - 1] = '\0'; |