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: KAMEZAWA Hiroyuki
Subject:
Re: [PATCH 2/2] mm,migration: Prevent rmap_walk_[anon|ksm] seeing the wrong VMA information
Date: Monday, April 26, 2010 - 8:50 pm
On Tue, 27 Apr 2010 09:07:06 +0900 KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
quoted text
> 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. Thanks, -Kame --
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
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
swhiteho
[PATCH 42/51] [GFS2] Move inode deletion out of blocking_cb
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Benjamin Herrenschmidt
[git pull] Please pull powerpc.git merge branch
Vivek Goyal
Re: [PATCH v4] sched: automated per session task groups
Bart Van Assche
Re: Integration of SCST in the mainstream Linux kernel
git
:
Mike Miller
git message
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
Christian MICHON
Re: VCS comparison table
Scott Chacon
Re: why not TortoiseGit
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
David Miller
Re: [PATCH 2/5] dccp: Auto-load (when supported) CCID plugins for negotiation
Chuck Lever
Re: svc: failed to register lockdv1 RPC service (errno 97).
David Miller
Re: [PATCH 2/3] [TCP]: Comment fastpath_cnt_hint off-by-one trap
git-commits-head
:
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
NFSv4: Move error handling out of the delegation generic code
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
Linux Kernel Mailing List
V4L/DVB: au8522: fix race condition in switching from digital to analog mode
Linux Kernel Mailing List
[ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations
openbsd-misc
:
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
Vikas N Kumar
Re: Singularity OS
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate