From: Yann Droneaud Date: Wed, 11 Dec 2013 22:01:52 +0000 (+0100) Subject: IB/uverbs: Check input length in flow steering uverbs X-Git-Tag: v3.13-rc6~12^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bcca3d4a3bcc9859cf001a0a21c8796edae2dc0;p=pandora-kernel.git IB/uverbs: Check input length in flow steering uverbs Since ib_copy_from_udata() doesn't check yet the available input data length before accessing userspace memory, an explicit check of this length is required to prevent: - reading past the user provided buffer, - underflow when subtracting the expected command size from the input length. This will ensure the newly added flow steering uverbs don't try to process truncated commands. Link: http://marc.info/?i=cover.1386798254.git.ydroneaud@opteya.com> Signed-off-by: Yann Droneaud Signed-off-by: Roland Dreier --- Reading git-diff-tree failed