Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755728AbYBKOkx (ORCPT ); Mon, 11 Feb 2008 09:40:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752759AbYBKOkq (ORCPT ); Mon, 11 Feb 2008 09:40:46 -0500 Received: from alephnull.demon.nl ([83.160.184.112]:57306 "EHLO xi.wantstofly.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752756AbYBKOkp (ORCPT ); Mon, 11 Feb 2008 09:40:45 -0500 X-Greylist: delayed 1471 seconds by postgrey-1.27 at vger.kernel.org; Mon, 11 Feb 2008 09:40:45 EST DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=1148133259; d=wantstofly.org; h=date:from:to:cc:subject:message-id:mime-version:content-type: content-disposition:in-reply-to:user-agent; b=jLZm6aOVyQTNkMC2ZeoXt6mT/UCQKqfc4YE801k9ktppuPMHxxnHww2sFKHVf ACzLbgnUZMTelWGr187paZ8xQ== Date: Mon, 11 Feb 2008 15:16:12 +0100 From: Lennert Buytenhek To: Thomas Gleixner Cc: Adrian Bunk , Ingo Molnar , linux-kernel@vger.kernel.org, Riku Voipio , Mikael Pettersson , Rusty Russell Subject: Re: futex local DoS on most architectures Message-ID: <20080211141612.GC20381@xi.wantstofly.org> References: <20080211130700.GF27537@movial.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1052 Lines: 28 On Mon, Feb 11, 2008 at 02:59:34PM +0100, Thomas Gleixner wrote: > Subject: futex: disable PI/robust on archs w/o valid implementation > From: Thomas Gleixner > > We have to disable the complete PI/robust functionality for those > archs, which do not implement futex_atomic_cmpxchg_inatomic(). The > code in question relies on a valid implementation and does not expect > -ENOSYS, which is returned by the stub implementation in > asm-generic/futex.h > > Pointed out by: Mikael Pettersson, Riku Voipio and Adrian Bunk FWIW, I reported it originally. > This patch is intended for easy backporting and needs to be cleaned up > further for current mainline. > > Signed-off-by: Thomas Gleixner > Acked-by: Ingo Molnar Looks good to me. Thanks. -- 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/