lkml.org 
[lkml]   [2018]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 8/8] x86: vma: pass atomic parameter to do_munmap()
    Date
    It sounds unnecessary to release mmap_sem in the middle of unmmaping
    vdso map.

    This is API change only.

    Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: x86@kernel.org
    ---
    arch/x86/entry/vdso/vma.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/x86/entry/vdso/vma.c b/arch/x86/entry/vdso/vma.c
    index 5b8b556..6359ae5 100644
    --- a/arch/x86/entry/vdso/vma.c
    +++ b/arch/x86/entry/vdso/vma.c
    @@ -192,7 +192,7 @@ static int map_vdso(const struct vdso_image *image, unsigned long addr)

    if (IS_ERR(vma)) {
    ret = PTR_ERR(vma);
    - do_munmap(mm, text_start, image->size, NULL);
    + do_munmap(mm, text_start, image->size, NULL, true);
    } else {
    current->mm->context.vdso = (void __user *)text_start;
    current->mm->context.vdso_image = image;
    --
    1.8.3.1
    \
     
     \ /
      Last update: 2018-03-20 22:34    [W:3.293 / U:0.284 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site