Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1377118pxb; Wed, 4 Nov 2020 07:25:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp6HdIOvGN1O21o3h9ldqdlU1pzWX/69fV+alxo0YnvF0A4ViXADB+a4R8t6y/aNsixACx X-Received: by 2002:a17:906:9458:: with SMTP id z24mr17608965ejx.318.1604503501905; Wed, 04 Nov 2020 07:25:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604503501; cv=none; d=google.com; s=arc-20160816; b=UUGDj4HAB4R3n9OZEUOa7Hx8dw9UNmZ9pBsybYlu32/FiQ0UCQ/g7NkV9IAaRyqan5 EEnpr9uy3J4MtOQeIFeDxRzGFKRbA++pPJQ7+jSLWpTLIttowepsp7iawZbxqV3+2WAq e5wio/IIoagaSO9Jchbu8FA5Iy0EDUJtM13qpjaLFy6LpZQWvbKJ8vMvjEE4yCksIwCx 76mSxx1jLNPzgF8/UxFYH2bbrFUhlf4FnoxYHyyL/DsaBWpv8+asYCvBeNrTK8sJMOsK 7YHDywCptkAM65Se2rmRrXMGnXy5NnUk00EoFu5+W/kKfpOLg7Us/ertXlGkFr1hb8XO /Ssg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=BVd2BFkWc5of5VjVKoE7YuBvmfMgyY8s0e7wNvJzc9Y=; b=W9TYjCGMMP6qqWYlcX4lydjlvT/tC9k45mzlFb8rjTC8KYWO3d/vVijS81tQHtTbhZ Xz9AjmfcyPBReSulTdF9l71rhpmwTYewFyfSIJy+ZJT778Ov3cHgeH7W6ISXrqePKOnF EH92rkdnP0lhJopXA1jizSYNl/RspAlre9FKdOthdCbDw6HsAyu/DgONrdVKq9RAUEQd wWxjMBJZ6Q5xpuQx4nGxEGCYVaOX0Odo9w9qUOzteQ/VLNOPf3fe8uD3ZzVeaRAAKoxz cXTtvTyHol/XaIDZXLix4WIpkKoY1xxh2z9P7FZdvXzQiZxzvgWVX4kUpkJLAyDVdYMz v38g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aUe4S6Xr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="qmWGkWn/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si1605813ejb.335.2020.11.04.07.24.38; Wed, 04 Nov 2020 07:25:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aUe4S6Xr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="qmWGkWn/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730802AbgKDPWJ (ORCPT + 99 others); Wed, 4 Nov 2020 10:22:09 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:50108 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730779AbgKDPWH (ORCPT ); Wed, 4 Nov 2020 10:22:07 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604503324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BVd2BFkWc5of5VjVKoE7YuBvmfMgyY8s0e7wNvJzc9Y=; b=aUe4S6Xr/tG5JNcVOCup5DkipBY4q7JofDrO/mndYO+T6YC9O+auQQkrhFMehNInuj8/DW Q/CNSDGmi75+X7GGeEGS4m0IAHindGcYt7DG3XIKZEQfucFmHR2nXx9WjZpb/AMIEccZIs A6t+CdR6tY3OchTgP2/JXXz6c/7HOfhtgqXN/sqBmyIyHAZt+nxkUH8jRmREaKpxH1Gfux CJD6rJ29eHGmflGduQ5KGRoCr8O1n5nJy4HoY2/PlGi2jhN/J6e7GMIxgwmKUdCjiKld/w 5h3nlZPb6+RBodvOomMm0ktrQUYa+x76jCUUEQDuLS3n1jtD+8SKgsPmlfYfaw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604503324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BVd2BFkWc5of5VjVKoE7YuBvmfMgyY8s0e7wNvJzc9Y=; b=qmWGkWn/9p1JskciaKaDF2eqiSRvs3Ba4ns8B5M/WqSbvsVhb0JPoMAGV6qXKC9EYgmFTy BZ14/chYLMqCc2Cw== To: Mike Galbraith , Gratian Crisan , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Brandon Streiff , Ingo Molnar , Darren Hart , James Minor , Sebastian Andrzej Siewior Subject: Re: [PATCH] futex: Handle transient "ownerless" rtmutex state correctly In-Reply-To: <87sg9pkvf7.fsf@nanos.tec.linutronix.de> References: <87a6w6x7bb.fsf@ni.com> <878sbixbk4.fsf@ni.com> <2376f4e71c638aee215a4911e5efed14c5adf56e.camel@gmx.de> <5f536491708682fc3b86cb5b7bc1e05ffa3521e7.camel@gmx.de> <874km5mnbf.fsf@nanos.tec.linutronix.de> <871rh9mkvr.fsf@nanos.tec.linutronix.de> <87v9ell0cn.fsf@nanos.tec.linutronix.de> <87sg9pkvf7.fsf@nanos.tec.linutronix.de> Date: Wed, 04 Nov 2020 16:22:04 +0100 Message-ID: <87pn4tkuzn.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04 2020 at 16:12, Thomas Gleixner wrote: > From: Mike Galbraith > > Gratian managed to trigger the BUG_ON(!newowner) in fixup_pi_state_owner(). > This is one possible chain of events leading to this: > > Task Prio Operation > T1 120 lock(F) > T2 120 lock(F) -> blocks (top waiter) > T3 50 (RT) lock(F) -> boosts T3 and blocks (new top waiter) boosts T1 obviously as Sebastian just pointed out to me. /me pulls the futex induced brain damage excuse ...