]> git.baikalelectronics.ru Git - kernel.git/commit
smc: switch to usage of IB_PD_UNSAFE_GLOBAL_RKEY
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Mon, 15 May 2017 15:33:37 +0000 (17:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 May 2017 18:49:42 +0000 (14:49 -0400)
commit61e2c431273191e4d241df8eaaaaddc30bb03b78
treed8d9e5dedc4e3b8b8db7652d5f883e765918ac86
parent973b240fd4a25e8a7edeac70dd2640da77fdeb17
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>
net/smc/smc_clc.c
net/smc/smc_core.c
net/smc/smc_core.h
net/smc/smc_ib.c
net/smc/smc_ib.h