From: Christoph Hellwig Date: Tue, 16 May 2017 06:51:38 +0000 (+0300) Subject: net/smc: Add warning about remote memory exposure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=19a0f7e37c0761a0a1cbf550705a6063c9675223;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net/smc: Add warning about remote memory exposure The driver explicitly bypasses APIs to register all memory once a connection is made, and thus allows remote access to memory. Signed-off-by: Christoph Hellwig Signed-off-by: Leon Romanovsky Acked-by: Ursula Braun Signed-off-by: David S. Miller --- diff --git a/net/smc/Kconfig b/net/smc/Kconfig index c717ef0896aa..33954852f3f8 100644 --- a/net/smc/Kconfig +++ b/net/smc/Kconfig @@ -8,6 +8,10 @@ config SMC The Linux implementation of the SMC-R solution is designed as a separate socket family SMC. + Warning: SMC will expose all memory for remote reads and writes + once a connection is established. Don't enable this option except + for tightly controlled lab environment. + Select this option if you want to run SMC socket applications config SMC_DIAG