From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56419C4742C for ; Wed, 4 Nov 2020 15:22:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ECE8B20759 for ; Wed, 4 Nov 2020 15:22:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aUe4S6Xr"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qmWGkWn/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730246AbgKDPWI (ORCPT ); Wed, 4 Nov 2020 10:22:08 -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-rt-users@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 ...