diff options
author | Md Haris Iqbal <[email protected]> | 2021-02-12 14:45:23 +0100 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-02-16 14:42:59 -0400 |
commit | 03e9b33a0fd677f554b03352646c13459bf60458 (patch) | |
tree | 5482b09c5bf17a8b5ff80276559d6c20cf322bf1 /tools/perf/scripts/python/flamegraph.py | |
parent | e6daa8f61d8def10f0619fe51b4c794f69598e4f (diff) |
RDMA/rtrs: Only allow addition of path to an already established session
While adding a path from the client side to an already established
session, it was possible to provide the destination IP to a different
server. This is dangerous.
This commit adds an extra member to the rtrs_msg_conn_req structure, named
first_conn; which is supposed to notify if the connection request is the
first for that session or not.
On the server side, if a session does not exist but the first_conn
received inside the rtrs_msg_conn_req structure is 1, the connection
request is failed. This signifies that the connection request is for an
already existing session, and since the server did not find one, it is an
wrong connection request.
Fixes: 6a98d71daea1 ("RDMA/rtrs: client: main functionality")
Fixes: 9cb837480424 ("RDMA/rtrs: server: main functionality")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Md Haris Iqbal <[email protected]>
Reviewed-by: Lutz Pogrell <[email protected]>
Signed-off-by: Jack Wang <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions