lkml.org 
[lkml]   [2003]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.5.55-rmk1: user space lossage
Date

akpm@digeo.com said:
> Linus did it!

> diff -puN mm/filemap.c~generic_file_readonly_mmap-fix mm/filemap.c
> --- 25/mm/filemap.c~generic_file_readonly_mmap-fix 2003-01-23 01:55:41 -0800
> +++ 25-akpm/mm/filemap.c 2003-01-23 01:55:45 -0800
> @@ -1312,7 +1312,6 @@ int generic_file_readonly_mmap(struct fi
> {
> if ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_WRITE))
> return -EINVAL;
> - vma->vm_flags &= ~VM_MAYWRITE;
> return generic_file_mmap(file, vma);
> }
> #else


- if ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_WRITE))
+- if ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_WRITE))
++ if ((vma->vm_flags & VM_SHARED) && (vma->vm_flags & VM_MAYWRITE))



...?

--
dwmw2


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.050 / U:2.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site