login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
20
Re: [BUG] kvm: dereference srcu-protected pointer without srcu_read_lock() held
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Marcelo Tosatti
Subject:
Re: [BUG] kvm: dereference srcu-protected pointer without srcu_read_lock() held
Date: Monday, April 19, 2010 - 6:45 pm
On Mon, Apr 19, 2010 at 01:08:29PM +0300, Avi Kivity wrote:
quoted text
> On 04/19/2010 12:58 PM, Lai Jiangshan wrote: > >Applied the patch I just sent and let CONFIG_PROVE_RCU=y, > >we can got the following dmesg. And we found that it is > >because some codes in KVM dereferences srcu-protected pointer without > >srcu_read_lock() held or update-side lock held. > > > >It is not hard to fix, the problem is that: > >Where is the most proper place to put a srcu_read_lock()? > > > >I can not determine the answer, so I report this bug > >instead of fixing it. > > > > I think the else branch in complete_pio() should work. Marcelo? > > Longer term I'd like to see the lock taken at the high levels > (ioctls, in virt/kvm) and dropped only for guest entry and when we > explicitly sleep (hlt emulation). > > Note: complete_pio() is gone in the current code.
Yes, this was fixed by 7fb2ea1e6. --
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] kvm: use the correct RCU API
, Lai Jiangshan
, (Mon Apr 19, 2:41 am)
Re: [PATCH] kvm: use the correct RCU API
, Avi Kivity
, (Mon Apr 19, 2:49 am)
[BUG] kvm: dereference srcu-protected pointer without srcu ...
, Lai Jiangshan
, (Mon Apr 19, 2:58 am)
Re: [BUG] kvm: dereference srcu-protected pointer without ...
, Avi Kivity
, (Mon Apr 19, 3:08 am)
Re: [PATCH] kvm: use the correct RCU API
, Paul E. McKenney
, (Mon Apr 19, 4:35 pm)
Re: [BUG] kvm: dereference srcu-protected pointer without ...
, Marcelo Tosatti
, (Mon Apr 19, 6:45 pm)
Re: [PATCH] kvm: use the correct RCU API
, Lai Jiangshan
, (Mon Apr 19, 7:09 pm)
Re: [BUG] kvm: dereference srcu-protected pointer without ...
, Lai Jiangshan
, (Mon Apr 19, 11:29 pm)
Re: [PATCH] kvm: use the correct RCU API
, Paul E. McKenney
, (Tue Apr 20, 11:42 am)
Re: [PATCH] kvm: use the correct RCU API
, Paul E. McKenney
, (Tue Apr 20, 2:55 pm)
Re: [BUG] kvm: dereference srcu-protected pointer without ...
, Paul E. McKenney
, (Tue Apr 20, 3:21 pm)
Re: [BUG] kvm: dereference srcu-protected pointer without ...
, Avi Kivity
, (Wed Apr 21, 1:17 am)
Re: [PATCH] kvm: use the correct RCU API
, Avi Kivity
, (Wed Apr 21, 1:22 am)
Re: [PATCH] kvm: use the correct RCU API
, Avi Kivity
, (Wed Apr 21, 1:22 am)<