Re: [PATCH 11/33] userfaultfd: non-cooperative: Add mremap() event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday, November 03, 2016 3:34 AM Andrea Arcangeli wrote:
> @@ -576,7 +581,8 @@ SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
>  			goto out;
>  		}
> 
> -		ret = move_vma(vma, addr, old_len, new_len, new_addr, &locked);
> +		ret = move_vma(vma, addr, old_len, new_len, new_addr,
> +			       &locked, &uf);
>  	}
>  out:
>  	if (offset_in_page(ret)) {
> @@ -586,5 +592,6 @@ SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
>  	up_write(&current->mm->mmap_sem);
>  	if (locked && new_len > old_len)
>  		mm_populate(new_addr + old_len, new_len - old_len);
> +	mremap_userfaultfd_complete(uf, addr, new_addr, old_len);

nit: s/uf/&uf/

>  	return ret;
>  }
> 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]