[PATCHv6 2/3] x86/vdso: add mremap hook to vm_special_mapping

2016-04-18 Thread Dmitry Safonov
Add possibility for userspace 32-bit applications to move vdso mapping. Previously, when userspace app called mremap for vdso, in return path it would land on previous address of vdso page, resulting in segmentation violation. Now it lands fine and returns to userspace with remapped vdso. This

[PATCHv6 2/3] x86/vdso: add mremap hook to vm_special_mapping

2016-04-18 Thread Dmitry Safonov
Add possibility for userspace 32-bit applications to move vdso mapping. Previously, when userspace app called mremap for vdso, in return path it would land on previous address of vdso page, resulting in segmentation violation. Now it lands fine and returns to userspace with remapped vdso. This