[Devel] [PATCH RHEL7 COMMIT] x86/vdso/prctl: Return size of vdso blob for ARCH_MAP_VDSO_32

Konstantin Khorenko khorenko at virtuozzo.com
Wed May 31 04:59:53 PDT 2017


The commit is pushed to "branch-rh7-3.10.0-514.16.1.vz7.32.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.16.1.vz7.32.5
------>
commit 34197f07cead355b0630360a3012d0689c11956b
Author: Dmitry Safonov <dsafonov at virtuozzo.com>
Date:   Wed May 31 15:59:53 2017 +0400

    x86/vdso/prctl: Return size of vdso blob for ARCH_MAP_VDSO_32
    
    Adjust to mainstream API.
    
    Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 arch/x86/vdso/vdso32-setup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
index 776face..81a16c8 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -560,6 +560,8 @@ int do_map_compat_vdso(unsigned long req_addr)
 	ret = __arch_setup_additional_pages(req_addr, compat);
 	if (ret)
 		current->mm->context.vdso = NULL;
+	else
+		ret = ARRAY_SIZE(vdso32_pages) * PAGE_SIZE;
 
 up_fail:
 	up_write(&mm->mmap_sem);


More information about the Devel mailing list