From: Al Viro Date: Thu, 8 Sep 2005 01:28:51 +0000 (-0700) Subject: [PATCH] Fix 32bit sendmsg() flaw X-Git-Tag: v2.6.14-rc1~256^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8920e8f94c44e31a73bdf923b04721e26e88cadd;p=pandora-kernel.git [PATCH] Fix 32bit sendmsg() flaw When we copy 32bit ->msg_control contents to kernel, we walk the same userland data twice without sanity checks on the second pass. Second version of this patch: the original broke with 64-bit arches running 32-bit-compat-mode executables doing sendmsg() syscalls with unaligned CMSG data areas Another thing is that we use kmalloc() to allocate and sock_kfree_s() to free afterwards; less serious, but also needs fixing. Signed-off-by: Al Viro Signed-off-by: David Woodhouse Signed-off-by: Chris Wright Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed