summaryrefslogtreecommitdiffstats
path: root/kernel/crash_dump.c
diff options
context:
space:
mode:
authorRichard Alpe <richard.alpe@ericsson.com>2016-07-01 11:11:21 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-01 16:47:38 -0400
commit55e77a3e8297581c919b45adcc4d0815b69afa84 (patch)
tree0cb62f0b56846452a22feebad21d22fb0844bffd /kernel/crash_dump.c
parent016eb55157166132b094e53434748cae35e18455 (diff)
downloadlinux-55e77a3e8297581c919b45adcc4d0815b69afa84.tar.bz2
tipc: fix nl compat regression for link statistics
Fix incorrect use of nla_strlcpy() where the first NLA_HDRLEN bytes of the link name where left out. Making the output of tipc-config -ls look something like: Link statistics: dcast-link 1:data0-1.1.2:data0 1:data0-1.1.3:data0 Also, for the record, the patch that introduce this regression claims "Sending the whole object out can cause a leak". Which isn't very likely as this is a compat layer, where the data we are parsing is generated by us and we know the string to be NULL terminated. But you can of course never be to secure. Fixes: 5d2be1422e02 (tipc: fix an infoleak in tipc_nl_compat_link_dump) Signed-off-by: Richard Alpe <richard.alpe@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/crash_dump.c')
0 files changed, 0 insertions, 0 deletions