[lkml]   [2020]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mm/mremap: Add comment explaining the untagging behaviour of mremap()
On Wed, Mar 25, 2020 at 11:13:46AM +0000, Will Deacon wrote:
> Commit dcde237319e6 ("mm: Avoid creating virtual address aliases in
> brk()/mmap()/mremap()") changed mremap() so that only the 'old' address
> is untagged, leaving the 'new' address in the form it was passed from
> userspace. This prevents the unexpected creation of aliasing virtual
> mappings in userspace, but looks a bit odd when you read the code.
> Add a comment justifying the untagging behaviour in mremap().
> Cc: Catalin Marinas <>
> Reported-by: Linus Torvalds <>
> Signed-off-by: Will Deacon <>

Reviewed-by: Catalin Marinas <>

 \ /
  Last update: 2020-03-25 12:23    [W:0.066 / U:30.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site