summaryrefslogtreecommitdiff
path: root/mm/sparse-vmemmap.c
diff options
context:
space:
mode:
authorKangjie Lu <kangjielu@gmail.com>2016-06-02 04:04:56 -0400
committerBen Hutchings <ben@decadent.org.uk>2016-08-22 22:37:19 +0100
commit9fa075340941fc16110bca226c50819b2453fa9b (patch)
tree0a1cf1bb45d2b3e861abc78353cfeaee40117338 /mm/sparse-vmemmap.c
parent370db426e5eb8b6823c0e8099616e91f21e3136c (diff)
downloadlinux-stable-9fa075340941fc16110bca226c50819b2453fa9b.tar.gz
tipc: fix an infoleak in tipc_nl_compat_link_dump
commit 5d2be1422e02ccd697ccfcd45c85b4a26e6178e2 upstream. link_info.str is a char array of size 60. Memory after the NULL byte is not initialized. Sending the whole object out can cause a leak. Signed-off-by: Kangjie Lu <kjlu@gatech.edu> Signed-off-by: David S. Miller <davem@davemloft.net> [bwh: Backported to 3.2: the unpadded strcpy() is in tipc_node_get_links() and no nlattr is involved, so use strncpy()] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'mm/sparse-vmemmap.c')
0 files changed, 0 insertions, 0 deletions