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

Submitted by Dmitry Safonov on May 18, 2017, 6:39 p.m.

Details

Message ID 20170518183950.4372-4-dsafonov@virtuozzo.com
State New
Series "x86: C/R for ia32 tasks"
Headers show

Commit Message

Dmitry Safonov May 18, 2017, 6:39 p.m.
Adjust to mainstream API.

Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
---
 arch/x86/vdso/vdso32-setup.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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);