diff options
author | Ursula Braun <ubraun@linux.vnet.ibm.com> | 2017-05-15 17:33:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-16 14:49:42 -0400 |
commit | 263eec9b2a82e8697d064709414914b5b10ac538 (patch) | |
tree | d8d9e5dedc4e3b8b8db7652d5f883e765918ac86 /net/smc/smc_core.h | |
parent | bcfc7d33110b0f33069d74138eeb7ca9acbb3c85 (diff) | |
download | linux-263eec9b2a82e8697d064709414914b5b10ac538.tar.gz linux-263eec9b2a82e8697d064709414914b5b10ac538.tar.bz2 linux-263eec9b2a82e8697d064709414914b5b10ac538.zip |
smc: switch to usage of IB_PD_UNSAFE_GLOBAL_RKEY
Currently, SMC enables remote access to physical memory when a user
has successfully configured and established an SMC-connection until ten
minutes after the last SMC connection is closed. Because this is considered
a security risk, drivers are supposed to use IB_PD_UNSAFE_GLOBAL_RKEY in
such a case.
This patch changes the current SMC code to use IB_PD_UNSAFE_GLOBAL_RKEY.
This improves user awareness, but does not remove the security risk itself.
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_core.h')
-rw-r--r-- | net/smc/smc_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_core.h b/net/smc/smc_core.h index 27eb38056a27..b013cb43a327 100644 --- a/net/smc/smc_core.h +++ b/net/smc/smc_core.h @@ -93,7 +93,7 @@ struct smc_buf_desc { u64 dma_addr[SMC_LINKS_PER_LGR_MAX]; /* mapped address of buffer */ void *cpu_addr; /* virtual address of buffer */ - struct ib_mr *mr_rx[SMC_LINKS_PER_LGR_MAX]; + u32 rkey[SMC_LINKS_PER_LGR_MAX]; /* for rmb only: * rkey provided to peer */ |