[CRIU] [PATCH 1/2] vdso: x86 -- Fix missing ability to remap vDSO if only one zone present

Cyrill Gorcunov gorcunov at openvz.org
Tue Aug 5 02:59:18 PDT 2014


Occasionally I ruined the ability to do a in-place remap for
pre 3.16 kernels. Bring it back.

CID 1230182:  Logically dead code  (DEADCODE)

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/x86/vdso-pie.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/vdso-pie.c b/arch/x86/vdso-pie.c
index 7fa458d98445..da86a5bc6b77 100644
--- a/arch/x86/vdso-pie.c
+++ b/arch/x86/vdso-pie.c
@@ -357,7 +357,8 @@ int vdso_proxify(char *who, struct vdso_symtable *sym_rt,
 
 					remap_rt = (delta_rt ^ delta_this) < 0 ? false : true;
 				}
-			}
+			} else
+				remap_rt = true;
 		}
 	}
 
-- 
1.9.3



More information about the CRIU mailing list