Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp679939ybx; Tue, 5 Nov 2019 03:57:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwIAf1bNq5CVcmsIX+SsSrTV4ma157POTLnYoZha31BTYXPk+TpHC/WTFX0H17xbYvMT1e1 X-Received: by 2002:aa7:d554:: with SMTP id u20mr34790156edr.6.1572955067906; Tue, 05 Nov 2019 03:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572955067; cv=none; d=google.com; s=arc-20160816; b=YzxTqtC2lofhvYmia1D5gvhmo2q4ZR7HX1a/shIDAPMW50gGqmYO3G2GkttsvaWgHS XEqZO2yqYvSOO1YQQM+oaGK30EgoCh6jP5T1kkJ8qIrWFW4EknOppvSPxQrZf7gGzuth qCvwOQOSDfnKJNab1RB6FcF4SC4sdlOBrSmiABaUV0zFGYenn2I72+kRAKoPEqRMsp9y Z/2Sd2TDd55RAQ5FTusFZkz4HB24FIOzP1Kg7t2qo6dLj5HKuDAOOLLDLUTyZkUAkEUO 6C8xW4KF76zevfidzLHa50JEOue4K45tS7O6u16YIWAReN6Y1Tya2WGELeJxhfPDcwLy yNrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=ObboHc3rFJAX0oNzKya/QpsKiNJwuM+RylgXFsAs5pg=; b=BDTcW9XV2nc2tXl6YVovLopGBWV8rb1X92mOOL5tl/8KAi3FcVzv5OTaAulMILMIRb P4zmkz6E/AyprhgGqp0qkfvTo/ml3KJzIdoXLDSCr5KOrtV1Th7oVHQMAzTREMGMOHid KvQSdWbKixT12+WI/ysNiCiu6WoNb7Ms5Kf3Sk0oaKxwQob7fMuHmbtSwvN5JXs8wzSa Xeqvhn0aSlQE6aRTPGB0aPfFcFvJwRuHBf81qrQFBd7QkujSmAmEblrD6llxOR9GO6fz XY63zEyyBQDlpTqQ84XmMZECBtyIAIJuZmfsUkxsTwkfx5ZdLt2TVKCHfBKOt///BFBZ zttg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si3014616ejr.262.2019.11.05.03.57.23; Tue, 05 Nov 2019 03:57:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730880AbfKEL4p (ORCPT + 99 others); Tue, 5 Nov 2019 06:56:45 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:41022 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbfKEL4p (ORCPT ); Tue, 5 Nov 2019 06:56:45 -0500 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iRxRx-00034c-0y; Tue, 05 Nov 2019 12:56:41 +0100 Date: Tue, 5 Nov 2019 12:56:40 +0100 (CET) From: Thomas Gleixner To: Florian Weimer cc: Shawn Landden , libc-alpha@sourceware.org, linux-api@vger.kernel.org, LKML , Arnd Bergmann , Deepa Dinamani , Oleg Nesterov , Andrew Morton , Catalin Marinas , Keith Packard , Peter Zijlstra Subject: Re: [RFC v2 PATCH] futex: extend set_robust_list to allow 2 locking ABIs at the same time. In-Reply-To: <87sgn2skm6.fsf@oldenburg2.str.redhat.com> Message-ID: References: <20191104002909.25783-1-shawn@git.icu> <87woceslfs.fsf@oldenburg2.str.redhat.com> <87sgn2skm6.fsf@oldenburg2.str.redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 5 Nov 2019, Florian Weimer wrote: > * Thomas Gleixner: > > On Tue, 5 Nov 2019, Florian Weimer wrote: > >> * Shawn Landden: > >> > If this new ABI is used, then bit 1 of the *next pointer of the > >> > user-space robust_list indicates that the futex_offset2 value should > >> > be used in place of the existing futex_offset. > >> > >> The futex interface currently has some races which can only be fixed by > >> API changes. I'm concerned that we sacrifice the last bit for some > >> rather obscure feature. What if we need that bit for fixing the > >> correctness issues? > > > > That current approach is going nowhere and if we change the ABI ever then > > this needs to happen with all *libc folks involved and agreeing. > > > > Out of curiosity, what's the race issue vs. robust list which you are > > trying to solve? > > Sadly I'm not trying to solve them. Here's one of the issues: > > That one seems more a life time problem, i.e. the mutex is destroyed, memory freed and map address reused while another thread was not yet out of the mutex_unlock() call. Nasty. Thanks, tglx