From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751965Ab2CFMrb (ORCPT ); Tue, 6 Mar 2012 07:47:31 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:19197 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163Ab2CFMr3 (ORCPT ); Tue, 6 Mar 2012 07:47:29 -0500 X-Authority-Analysis: v=2.0 cv=M9vP2lMs c=1 sm=0 a=ZycB6UtQUfgMyuk2+PxD7w==:17 a=XQbtiDEiEegA:10 a=OPymKhBv_mMA:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=HfUacAxWxGoRkQ_U69oA:9 a=PUjeQqilurYA:10 a=ZycB6UtQUfgMyuk2+PxD7w==:117 X-Cloudmark-Score: 0 X-Originating-IP: 74.67.80.29 Message-ID: <1331038048.25686.368.camel@gandalf.stny.rr.com> Subject: Re: [PATCH RT] seqlock/rt: Prevent livelocks with seqlocks in RT From: Steven Rostedt To: Thomas Gleixner Cc: LKML , RT , Clark Williams , John Kacur , Carsten Emde , Peter Zijlstra Date: Tue, 06 Mar 2012 07:47:28 -0500 In-Reply-To: References: <1331006584.25686.362.camel@gandalf.stny.rr.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2012-03-06 at 09:18 +0100, Thomas Gleixner wrote: > > Because read_seqlocks are used in the VDSO area, a raw_read_seqcount_begin() > > was created to allow userspace tasks to access read_seqcount(). > > As the grabbing of the write_lock() is not allowed in VDSO, nor > > is even referencing it. > > This is completely bogus. The VDSO update write side runs with > interrupts disabled, so it cannot be preempted at all. > > > Note, a live lock can still happen if the userspace task that > > does the read_seqlock is of higher priority than a user doing > > the write_lock, so userspace needs to be careful. > > What the hell are you smoking? Cherries. I forgot I still had that in my changelog. I wrote this code before I had your changes. I noticed later that the vdso seqlocks were raw spinlocks and shouldn't be an issue. As you told me that you had this fixed, I never bothered to change the log. Then last night when I hit this bug, I simply cherry picked this fixed and posted it. -- Steve