login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
9
Re: [PATCH 05/13] mm: Make use of the anon_vma ref count
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [PATCH 05/13] mm: Make use of the anon_vma ref count
Date: Friday, April 9, 2010 - 2:57 am
On Fri, 2010-04-09 at 09:04 +0200, Christian Ehrhardt wrote:
quoted text
> Hi, > > On Thu, Apr 08, 2010 at 09:17:42PM +0200, Peter Zijlstra wrote: > > @@ -302,23 +307,33 @@ again: > > goto out; > > > > anon_vma = (struct anon_vma *) (anon_mapping - PAGE_MAPPING_ANON); > > - spin_lock(&anon_vma->lock); > > + if (!atomic_inc_not_zero(&anon_vma->ref)) > > + anon_vma = NULL; > > > > if (page_rmapping(page) != anon_vma) { > > - spin_unlock(&anon_vma->lock); > > + anon_vma_put(anon_vma); > > goto again; > > } > > AFAICS anon_vma_put might be called with anon_vma == NULL here which > will oops on the ref count. Not sure if > > page_rmapping(page) == anon_vma == NULL > > is possible, too.
Gah, you're right, thanks! --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 05/13] mm: Make use of the anon_vma ref count
, Peter Zijlstra
, (Thu Apr 8, 12:17 pm)
Re: [PATCH 05/13] mm: Make use of the anon_vma ref count
, Christian Ehrhardt
, (Fri Apr 9, 12:04 am)
Re: [PATCH 05/13] mm: Make use of the anon_vma ref count
, Peter Zijlstra
, (Fri Apr 9, 2:57 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
Pierre Ossman
Re: sdio: enhance IO_RW_EXTENDED support
git
:
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Jonathan Nieder
Re: [PATCH v2] git-send-email.perl: fix In-Reply-To for second and subsequent patc...
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
linux-netdev
:
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Stas Miasnikou
Re: Another question: device naming convention
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
Colocation donated by:
Syndicate