git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2fe37b
)
inet_diag: fix possible overflow in inet_diag_dump_one_icsk()
author
Eric Dumazet
<edumazet@google.com>
Fri, 13 Mar 2015 16:49:59 +0000
(09:49 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 13 Mar 2015 19:54:27 +0000
(15:54 -0400)
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>
net/ipv4/inet_diag.c
patch
|
blob
|
history
diff --cc
net/ipv4/inet_diag.c
Simple merge