]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/hexagon/kernel/vdso.c
vdso: make arch_setup_additional_pages wait for mmap_sem for write killable
[karo-tx-linux.git] / arch / hexagon / kernel / vdso.c
index 0bf5a87e4d0a9b7f5e57a2831fbb81118285549d..3ea968415539f3d0244b0da2d257dd0bda686a1a 100644 (file)
@@ -65,7 +65,8 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
        unsigned long vdso_base;
        struct mm_struct *mm = current->mm;
 
-       down_write(&mm->mmap_sem);
+       if (down_write_killable(&mm->mmap_sem))
+               return -EINTR;
 
        /* Try to get it loaded right near ld.so/glibc. */
        vdso_base = STACK_TOP;