[Devel] [PATCH 03/11] x86/vdso/prctl: Return size of vdso blob for ARCH_MAP_VDSO_32

Dmitry Safonov dsafonov at virtuozzo.com
Thu May 18 11:39:42 PDT 2017


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 776face0d979..81a16c803f11 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);
-- 
2.12.2



More information about the Devel mailing list