]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tipc: fix link name length check
authorJohn Rutherford <john.rutherford@dektech.com.au>
Tue, 26 Nov 2019 02:52:55 +0000 (13:52 +1100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:45 +0000 (14:21 -0300)
commiteb49d8bf163625b247c9d585ff12c4486c3c3548
tree372c58f8c081a70833369707f66041df20070a4d
parent71a4fd7a2ead509be8020bc1da2bc42eaa384141
tipc: fix link name length check

BugLink: https://bugs.launchpad.net/bugs/1855787
[ Upstream commit fd567ac20cb0377ff466d3337e6e9ac5d0cb15e4 ]

In commit 4f07b80c9733 ("tipc: check msg->req data len in
tipc_nl_compat_bearer_disable") the same patch code was copied into
routines: tipc_nl_compat_bearer_disable(),
tipc_nl_compat_link_stat_dump() and tipc_nl_compat_link_reset_stats().
The two link routine occurrences should have been modified to check
the maximum link name length and not bearer name length.

Fixes: 4f07b80c9733 ("tipc: check msg->reg data len in tipc_nl_compat_bearer_disable")
Signed-off-by: John Rutherford <john.rutherford@dektech.com.au>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/tipc/netlink_compat.c