From: Dan Carpenter Date: Tue, 3 Sep 2013 09:03:40 +0000 (+0300) Subject: x25: add a sanity check parsing X.25 facilities X-Git-Tag: v3.12-rc1~132^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80aa4e10963cc7d9b5dd5b2568ce28d74af20bf9;p=pandora-kernel.git x25: add a sanity check parsing X.25 facilities This was found with a manual audit and I don't have a reproducer. We limit ->calling_len and ->called_len when we get them from copy_from_user() in x25_ioctl() so when they come from skb->data then we should cap them there as well. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed