diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-13 09:49:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-13 15:54:27 -0400 |
commit | c8e2c80d7ec00d020320f905822bf49c5ad85250 (patch) | |
tree | fba6ff42961ccce00d9d070ac44c2d26e48258ad /include | |
parent | a2fe37b69d4fe369c284d50927193fed81c238a0 (diff) | |
download | linux-c8e2c80d7ec00d020320f905822bf49c5ad85250.tar.bz2 |
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 <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions