login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
27
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] seeing the wrong VMA information
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Mel Gorman
Subject:
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] seeing the wrong VMA information
Date: Tuesday, April 27, 2010 - 1:59 am
On Tue, Apr 27, 2010 at 12:50:40PM +0900, KAMEZAWA Hiroyuki wrote:
quoted text
> On Tue, 27 Apr 2010 09:07:06 +0900 > KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote: > > > On Mon, 26 Apr 2010 23:37:58 +0100 > > Mel Gorman <mel@csn.ul.ie> wrote: > > > > > vma_adjust() is updating anon VMA information without any locks taken. > > > In contrast, file-backed mappings use the i_mmap_lock and this lack of > > > locking can result in races with page migration. During rmap_walk(), > > > vma_address() can return -EFAULT for an address that will soon be valid. > > > This leaves a dangling migration PTE behind which can later cause a BUG_ON > > > to trigger when the page is faulted in. > > > > > > With the recent anon_vma changes, there can be more than one anon_vma->lock > > > that can be taken in a anon_vma_chain but a second lock cannot be spinned > > > upon in case of deadlock. Instead, the rmap walker tries to take locks of > > > different anon_vma's. If the attempt fails, the operation is restarted. > > > > > > Signed-off-by: Mel Gorman <mel@csn.ul.ie> > > > > Ok, acquiring vma->anon_vma->spin_lock always sounds very safe. > > (but slow.) > > > > I'll test this, too. > > > > Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> > > > > Sorry. reproduced. It seems the same bug before patch. > mapcount 1 -> unmap -> remap -> mapcount 0. And it was SwapCache. >
Same here, reproduced after 18 hours. -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab --
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 0/2] Fix migration races in rmap_walk()
, Mel Gorman
, (Mon Apr 26, 3:37 pm)
[PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] see ...
, Mel Gorman
, (Mon Apr 26, 3:37 pm)
Re: [PATCH 0/2] Fix migration races in rmap_walk()
, Andrea Arcangeli
, (Mon Apr 26, 4:04 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Minchan Kim
, (Mon Apr 26, 4:05 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Minchan Kim
, (Mon Apr 26, 4:15 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, KAMEZAWA Hiroyuki
, (Mon Apr 26, 5:07 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, KAMEZAWA Hiroyuki
, (Mon Apr 26, 5:30 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Rik van Riel
, (Mon Apr 26, 5:30 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, KAMEZAWA Hiroyuki
, (Mon Apr 26, 5:31 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Rik van Riel
, (Mon Apr 26, 7:13 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, KAMEZAWA Hiroyuki
, (Mon Apr 26, 8:50 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, KAMEZAWA Hiroyuki
, (Mon Apr 26, 9:03 pm)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Mel Gorman
, (Tue Apr 27, 1:59 am)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, KAMEZAWA Hiroyuki
, (Tue Apr 27, 2:09 am)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Mel Gorman
, (Tue Apr 27, 2:17 am)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Mel Gorman
, (Tue Apr 27, 3:29 am)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Andrea Arcangeli
, (Tue Apr 27, 8:37 am)
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] ...
, Mel Gorman
, (Tue Apr 27, 9:35 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Bill Fink
Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Jack J. Woehr
Re: Real men don't attack straw men
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Tony Abernethy
Re: The Atheros story in much fewer words
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Alex Riesen
Re: git exclude patterns for directory
David Kastrup
Re: I'm a total push-over..
Colocation donated by:
Syndicate