diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-03-29 16:05:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-31 14:07:24 -0400 |
commit | 5899f0478528b59ea9ced201eacb3e56ca406c39 (patch) | |
tree | b260bb0d9c9089954268ba60a625f0d995334060 /lib/kfifo.c | |
parent | f5e2dc5d7fe78fe4d8748d217338f4f7b6a5d7ea (diff) | |
download | linux-stable-5899f0478528b59ea9ced201eacb3e56ca406c39.tar.gz linux-stable-5899f0478528b59ea9ced201eacb3e56ca406c39.tar.bz2 linux-stable-5899f0478528b59ea9ced201eacb3e56ca406c39.zip |
netlink: pad nla_memcpy dest buffer with zeroes
This is especially important in cases where the kernel allocs a new
structure and expects a field to be set from a netlink attribute. If such
attribute is shorter than expected, the rest of the field is left containing
previous data. When such field is read back by the user space, kernel memory
content is leaked.
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/kfifo.c')
0 files changed, 0 insertions, 0 deletions