linux/net/tipc
Hoang Le 28efacc21d tipc: fix unique bearer names sanity check
[ Upstream commit f20a46c3044c3f75232b3d0e2d09af9b25efaf45 ]

When enabling a bearer by name, we don't sanity check its name with
higher slot in bearer list. This may have the effect that the name
of an already enabled bearer bypasses the check.

To fix the above issue, we just perform an extra checking with all
existing bearers.

Fixes: cb30a63384 ("tipc: refactor function tipc_enable_bearer()")
Cc: stable@vger.kernel.org
Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-06-10 13:37:08 +02:00
..
Kconfig
Makefile
addr.c tipc: initialise addr_trail_end when setting node addresses 2019-08-11 21:40:04 -07:00
addr.h
bcast.c tipc: fix potential hanging after b/rcast changing 2020-01-23 08:22:44 +01:00
bcast.h
bearer.c tipc: fix unique bearer names sanity check 2021-06-10 13:37:08 +02:00
bearer.h
core.c tipc: wait and exit until all work queues are done 2021-06-03 08:59:07 +02:00
core.h tipc: wait and exit until all work queues are done 2021-06-03 08:59:07 +02:00
diag.c
discover.c
discover.h
eth_media.c
group.c tipc: Fix memory leak in tipc_group_create_member() 2020-09-26 18:03:13 +02:00
group.h
ib_media.c
link.c tipc: fix NULL deref in tipc_link_xmit() 2021-01-23 15:58:00 +01:00
link.h
monitor.c tipc: update mon's self addr when node addr generated 2020-01-26 10:01:00 +01:00
monitor.h tipc: update mon's self addr when node addr generated 2020-01-26 10:01:00 +01:00
msg.c tipc: skb_linearize the head skb when reassembling msgs 2021-06-03 08:59:07 +02:00
msg.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-08-19 11:54:03 -07:00
name_distr.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-09-15 14:17:27 +02:00
name_distr.h
name_table.c
name_table.h
net.c tipc: fix a deadlock when flushing scheduled work 2020-12-11 13:23:32 +01:00
net.h tipc: fix a deadlock when flushing scheduled work 2020-12-11 13:23:32 +01:00
netlink.c tipc: add missing attribute validation for MTU property 2020-03-18 07:17:45 +01:00
netlink.h
netlink_compat.c tipc: convert dest node's address to network order 2021-05-19 10:08:20 +02:00
node.c tipc: clean up skb list lock handling on send path 2019-08-18 14:01:07 -07:00
node.h
socket.c Revert "net:tipc: Fix a double free in tipc_sk_mcast_rcv" 2021-06-03 08:59:07 +02:00
socket.h
subscr.c
subscr.h
sysctl.c
topsrv.c tipc: fix memory leak in tipc_topsrv_start() 2020-11-18 19:20:33 +01:00
topsrv.h
trace.c
trace.h
udp_media.c tipc: wait and exit until all work queues are done 2021-06-03 08:59:07 +02:00
udp_media.h