From: Eric Dumazet Date: Fri, 13 Mar 2015 16:49:59 +0000 (-0700) Subject: inet_diag: fix possible overflow in inet_diag_dump_one_icsk() X-Git-Tag: omap-for-v4.2/o2_dc~296^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8e2c80d7ec00d020320f905822bf49c5ad85250;p=pandora-kernel.git inet_diag: fix possible overflow in inet_diag_dump_one_icsk() inet_diag_dump_one_icsk() allocates too small skb. Add inet_sk_attr_size() helper right before inet_sk_diag_fill() so that it can be updated if/when new attributes are added. iproute2/ss currently does not use this dump_one() interface, this might explain nobody noticed this problem yet. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed