From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Pekka J Enberg <penberg@cs.helsinki.fi>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] revoke: misc fixes
Date: Fri, 16 Mar 2007 18:21:48 +1100 [thread overview]
Message-ID: <45FA458C.8050605@yahoo.com.au> (raw)
In-Reply-To: <Pine.LNX.4.64.0703160916430.14651@sbz-30.cs.Helsinki.FI>
Pekka J Enberg wrote:
> From: Pekka Enberg <penberg@cs.helsinki.fi>
>
> This is a rollup patch of the following fixes to address some of Andrew's
> review comments:
>
> - Fix return value type of system calls to long
> - Add comment for vma->vm_flag barrier
> - No need for GFP_NOFS for inode allocation, use GFP_KERNEL instead
> - Remove unnecessary line break before EXPORT_SYMBOL
>
> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
> ---
> fs/revoke.c | 9 +++++----
> include/linux/syscalls.h | 4 ++--
> 2 files changed, 7 insertions(+), 6 deletions(-)
>
> Index: uml-2.6/fs/revoke.c
> ===================================================================
> --- uml-2.6.orig/fs/revoke.c 2007-03-16 08:58:31.000000000 +0200
> +++ uml-2.6/fs/revoke.c 2007-03-16 09:00:37.000000000 +0200
> @@ -167,7 +167,9 @@ static int revoke_vma(struct vm_area_str
> end_addr = vma->vm_end;
>
> /*
> - * Not holding ->mmap_sem here.
> + * Not holding ->mmap_sem here but we must watch out for page
> + * faults and after the shared mappings have been taken down
> + * and sys_mmap() trying to remap the revoked range.
> */
> vma->vm_flags |= VM_REVOKED;
> smp_mb();
> @@ -455,7 +457,7 @@ int err = 0;
You're still modifying vm_flags without down_write mmap_sem, so this will
corrupt vm_flags.
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com
next prev parent reply other threads:[~2007-03-16 7:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-16 7:17 [PATCH 1/3] revoke: misc fixes Pekka J Enberg
2007-03-16 7:21 ` Nick Piggin [this message]
2007-03-16 7:29 ` Pekka J Enberg
2007-03-16 7:38 ` Nick Piggin
2007-03-16 7:45 ` Pekka J Enberg
2007-03-16 7:50 ` Nick Piggin
2007-03-16 7:51 ` Pekka J Enberg
2007-03-16 8:52 ` Pekka Enberg
2007-03-19 5:37 ` Nick Piggin
2007-03-19 6:59 ` Pekka J Enberg
-- strict thread matches above, loose matches on Subject: below --
2007-03-16 9:47 Pekka J Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45FA458C.8050605@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.