• Richard Alpe's avatar
    tipc: fix nl compat regression for link statistics · 55e77a3e
    Richard Alpe authored
    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: 5d2be142 (tipc: fix an infoleak in tipc_nl_compat_link_dump)
    Signed-off-by: default avatarRichard Alpe <richard.alpe@ericsson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    55e77a3e
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
addr.c Loading commit data...
addr.h Loading commit data...
bcast.c Loading commit data...
bcast.h Loading commit data...
bearer.c Loading commit data...
bearer.h Loading commit data...
core.c Loading commit data...
core.h Loading commit data...
discover.c Loading commit data...
discover.h Loading commit data...
eth_media.c Loading commit data...
ib_media.c Loading commit data...
link.c Loading commit data...
link.h Loading commit data...
msg.c Loading commit data...
msg.h Loading commit data...
name_distr.c Loading commit data...
name_distr.h Loading commit data...
name_table.c Loading commit data...
name_table.h Loading commit data...
net.c Loading commit data...
net.h Loading commit data...
netlink.c Loading commit data...
netlink.h Loading commit data...
netlink_compat.c Loading commit data...
node.c Loading commit data...
node.h Loading commit data...
server.c Loading commit data...
server.h Loading commit data...
socket.c Loading commit data...
socket.h Loading commit data...
subscr.c Loading commit data...
subscr.h Loading commit data...
sysctl.c Loading commit data...
udp_media.c Loading commit data...