login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
24
Re: 2.6.xxx race condition in x86_64's global_flush_tlb???
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy Dunlap <rdunlap@...>
To: Doug Reiland <dreiland@...>
Cc: <linux-kernel@...>
Subject:
Re: 2.6.xxx race condition in x86_64's global_flush_tlb???
Date: Wednesday, October 24, 2007 - 5:14 pm
On Wed, 24 Oct 2007 16:39:57 -0400 Doug Reiland wrote:
quoted text
> I have seen some hangs in 2.6-x86_64 in flush_kernel_map(). The tests > cause alot of ioremap/iounmap to occur concurrently across many > processor threads. > > Looking at the hung processor hangs, they are looping in > flush_kernel_map() and the list they get from the smp_call_function() > appears to be corrupt. In fact, I see deferred_pages as an entry and > that isn't supposed to happen. > > I am questioning the locking in global_flush_tlb() listed below. The > down_read/up_read protection doesn't seen safe. If several threads are > rushing thru here, deferred_pages could be getting changed as they > look at it. I don't think there any protection when > list_replace_init() calls INIT_LIST_HEAD(). > > I changed the down_read()/up_read() around list_replace_init() to > down_write()/up_write() and my test runs fine. > > > void global_flush_tlb(void) > { > struct page *pg, *next; > struct list_head l; > > down_read(&init_mm.mmap_sem); // XXX should be down_write()??? > list_replace_init(&deferred_pages, &l); > up_read(&init_mm.mmap_sem); // XXX should be up_write()???? > flush_map(&l); > > list_for_each_entry_safe(pg, next, &l, lru) { > ClearPagePrivate(pg); > __free_page(pg); > } > }
Seems to be already fixed in current git tree. --- ~Randy -
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:
2.6.xxx race condition in x86_64's global_flush_tlb???
, Doug Reiland
, (Wed Oct 24, 4:39 pm)
Re: 2.6.xxx race condition in x86_64's global_flush_tlb???
, Randy Dunlap
, (Wed Oct 24, 5:14 pm)
Re: 2.6.xxx race condition in x86_64's global_flush_tlb???
, Doug Reiland
, (Wed Oct 24, 6:07 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.21
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Con Kolivas
Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2
Andrew Morton
echo mem > /sys/power/state
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [GIT]: Networking
Michael S. Tsirkin
Re: [RFC PATCH v2 03/19] vbus: add connection-client helper infrastructure
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
742 guests
online.
Syndicate