From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759583AbYHOQIj (ORCPT ); Fri, 15 Aug 2008 12:08:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753630AbYHOQI3 (ORCPT ); Fri, 15 Aug 2008 12:08:29 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:39573 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752973AbYHOQI3 (ORCPT ); Fri, 15 Aug 2008 12:08:29 -0400 Date: Fri, 15 Aug 2008 09:06:38 -0700 (PDT) From: Linus Torvalds To: Mathieu Desnoyers cc: Ingo Molnar , Jeremy Fitzhardinge , Harvey Harrison , Andi Kleen , Steven Rostedt , Steven Rostedt , LKML , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Miller , Roland McGrath , Ulrich Drepper , Rusty Russell , Gregory Haskins , Arnaldo Carvalho de Melo , "Luis Claudio R. Goncalves" , Clark Williams , Christoph Lameter , "H. Peter Anvin" Subject: Re: [PATCH] x86 alternatives : fix LOCK_PREFIX race with preemptible kernel and CPU hotplug In-Reply-To: <20080814205815.GA14076@Krystal> Message-ID: References: <20080814205815.GA14076@Krystal> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Aug 2008, Mathieu Desnoyers wrote: > > Changing the 0x90 (single-byte nop) currently used into a 0x3E DS segment > override prefix should fix this issue. Since the default of the atomic > instructions is to use the DS segment anyway, it should not affect the > behavior. Ok, so I think this is an _excellent_ patch, but I'd like to also then use LOCK_PREFIX in include/asm-x86/futex.h. See commit 9d55b9923a1b7ea8193b8875c57ec940dc2ff027. Linus