]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Reject connection protocol message sent to unconnected port
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 1 Jun 2011 19:08:10 +0000 (15:08 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 24 Jun 2011 20:18:18 +0000 (16:18 -0400)
commite807dd5382914e1b3ac580f6ebaba7ab356d2ef2
tree902c7102e6d8159916c918372b6c880b109300dc
parent522353c697cab0c8c24f0839884463ae6b0ef693
tipc: Reject connection protocol message sent to unconnected port

Restructures the logic used in tipc_port_recv_proto_msg() to ensure
that incoming connection protocol messages are handled properly. The
routine now uses a two-stage process that first ensures the message
applies on an existing connection and then processes the request.
This corrects a loophole that allowed a connection probe request to
be processed if it was sent to an unconnected port that had no names
bound to it.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/port.c