aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/configs/cyanogenmod_i9300_defconfig
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2015-06-16 22:11:06 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-03-19 11:30:21 +0100
commit3b124895a2c12c8706e44599fc04ed3c7a8be734 (patch)
treed76636b5686c0085faf2e9a3a7137719517451ee /arch/arm/configs/cyanogenmod_i9300_defconfig
parent2b47842438d0d84c1f06be2c0c227048ca8e6e5d (diff)
downloadkernel_samsung_smdk4412-3b124895a2c12c8706e44599fc04ed3c7a8be734.zip
kernel_samsung_smdk4412-3b124895a2c12c8706e44599fc04ed3c7a8be734.tar.gz
kernel_samsung_smdk4412-3b124895a2c12c8706e44599fc04ed3c7a8be734.tar.bz2
pipe: iovec: Fix memory corruption when retrying atomic copy as non-atomic
pipe_iov_copy_{from,to}_user() may be tried twice with the same iovec, the first time atomically and the second time not. The second attempt needs to continue from the iovec position, pipe buffer offset and remaining length where the first attempt failed, but currently the pipe buffer offset and remaining length are reset. This will corrupt the piped data (possibly also leading to an information leak between processes) and may also corrupt kernel memory. This was fixed upstream by commits f0d1bec9d58d ("new helper: copy_page_from_iter()") and 637b58c2887e ("switch pipe_read() to copy_page_to_iter()"), but those aren't suitable for stable. This fix for older kernel versions was made by Seth Jennings for RHEL and I have extracted it from their update. CVE-2015-1805 Bug: 27275324 Change-Id: I459adb9076fcd50ff1f1c557089c4e421b036ec4 References: https://bugzilla.redhat.com/show_bug.cgi?id=1202855 Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 85c34d007116f8a8aafb173966a605fb03532f45)
Diffstat (limited to 'arch/arm/configs/cyanogenmod_i9300_defconfig')
0 files changed, 0 insertions, 0 deletions