From: Peter Hurley Date: Fri, 8 Mar 2013 20:43:27 +0000 (-0800) Subject: ipc: don't allocate a copy larger than max X-Git-Tag: v3.9-rc2~7^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b9e456b1649722673ffa147914299799dc9041;p=pandora-kernel.git ipc: don't allocate a copy larger than max When MSG_COPY is set, a duplicate message must be allocated for the copy before locking the queue. However, the copy could not be larger than was sent which is limited to msg_ctlmax. Signed-off-by: Peter Hurley Acked-by: Stanislav Kinsbursky Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed