summaryrefslogtreecommitdiff
path: root/net/mac802154
diff options
context:
space:
mode:
authorRao Shoaib <rao.shoaib@oracle.com>2021-05-21 21:08:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-16 12:59:35 +0300
commita3842219a69d23d3b7cc72274af1beb51434449a (patch)
tree74ceaeea0b6654f74a6319c34d54ea12210a7a46 /net/mac802154
parent3e324774411dc94282e166a301af822d75741263 (diff)
downloadlinux-a3842219a69d23d3b7cc72274af1beb51434449a.tar.xz
RDS tcp loopback connection can hang
[ Upstream commit aced3ce57cd37b5ca332bcacd370d01f5a8c5371 ] When TCP is used as transport and a program on the system connects to RDS port 16385, connection is accepted but denied per the rules of RDS. However, RDS connections object is left in the list. Next loopback connection will select that connection object as it is at the head of list. The connection attempt will hang as the connection object is set to connect over TCP which is not allowed The issue can be reproduced easily, use rds-ping to ping a local IP address. After that use any program like ncat to connect to the same IP address and port 16385. This will hang so ctrl-c out. Now try rds-ping, it will hang. To fix the issue this patch adds checks to disallow the connection object creation and destroys the connection object. Signed-off-by: Rao Shoaib <rao.shoaib@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/mac802154')
0 files changed, 0 insertions, 0 deletions