Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp80095rwo; Tue, 1 Aug 2023 13:15:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlF/4tvmm9mtoBU3sgXOokOGgPtcPIhfeeREWIsT/1BUJHK6t0dBquZaDTL/Hoy0Cwv429Ks X-Received: by 2002:a05:6a21:7189:b0:115:5ed5:34d3 with SMTP id wq9-20020a056a21718900b001155ed534d3mr10659523pzb.20.1690920957484; Tue, 01 Aug 2023 13:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690920957; cv=none; d=google.com; s=arc-20160816; b=m1Joccv6O3vm3rZ1uhEhK6HkDMtO0Z67GMYsgxBXLeDDBuj+ijgcYxHEL68xpub8R2 nAuHjEulVN8Z6i6+HWID+MXcClzOLYc3xjpaeOCh4413YIfLvdGjJ9rzvquGPNxjga4R k+BHvFJjLb5zeLQ4Jl6zOhf8LFHoTuYLUqhm0/CZH2QCV9uw1thUfOL/OfeYVh/V6afw NepeWCZfVmeBLIbRBdfXGGm3zYPCZqHclIc1hqCuKL44dnpq/jCzfhYDiSJXo2ZQ3bHJ aS4jd77FEwcmd2Ayphvm8gLKl+ovjKogBlKiGCAIW4u6nVajPmmJ2NAhurNOTo5YzSA/ XkCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bVP85O9/QcNBPIvfcxax7LD7hWg5oCRrHtBzjxz8bi4=; fh=aND8UAz/HpRHAOxIolasb4wjTo/Hp+t0rmm+HaH6aNw=; b=AiZEF76O0v5FrNpdbZfsoE3jpmETroUa2/G4KMcSwyC3C3C2VTEDcCVX81xr+pLuKY 4gFE+VLK6ChDudiKoDw1ffCdk3u52dhjE34eCLmgYxLSNusRxGMgEl55t+mRnHzsye0d HBe1XbJkMa/QhPz6Uj3Ef8A2myxCDHadCtZ2aM1k5NwyyNYY6BUIFyKD0NteasZ33FXD bQLkHE+dFkpE5D8jzqZE+bcmtKLFJ3nuL0EGHMRF+N1GRjDdNChOdsCYPRRJSyRwnNAA mK/Gvo+MLkoPx3B/XDIcaEiKgz3dzm2nsnFGfpc4w3RVdpSKvZnFQjcNeG9QoTy/i5PT Y1cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WIo8351O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a63d809000000b0055b640a6b3csi9094727pgh.884.2023.08.01.13.15.44; Tue, 01 Aug 2023 13:15:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WIo8351O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232120AbjHATJ0 (ORCPT + 99 others); Tue, 1 Aug 2023 15:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbjHATJY (ORCPT ); Tue, 1 Aug 2023 15:09:24 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC1F1BF1; Tue, 1 Aug 2023 12:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bVP85O9/QcNBPIvfcxax7LD7hWg5oCRrHtBzjxz8bi4=; b=WIo8351O6aN09tVsscNgMq+qor xOZP9/a7mh273Btla3YmqEMCZnBtPeJjHw6u5T7VA6FxqJRFehzBcG6QBIC3FZ6goP173sts64DnD gpcB6/u9ZpcBnGWmYMY0Uw1S47k5JWvL5vGNAMzoAL276v7iIVVxRAAQBm5c9g81MwqE5miESZk91 e2+LHOZmkHpK2qB9X+b46spycuXObuWAMu0v0zd1yNNTv1xiUG25Al+dPk4rwpPd5MeOuBZilsg3x ysx+ZazrzVRb44wiSKmxLKaVf7k//WZwMTwYlWQGybC1VHtyV6ZI6J1AtwICDlav4vLoSRtGhyw3W gyeoy/JQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qQujl-00AUuc-PR; Tue, 01 Aug 2023 19:08:53 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 92BF6300134; Tue, 1 Aug 2023 21:08:52 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 81821201BD3C3; Tue, 1 Aug 2023 21:08:52 +0200 (CEST) Date: Tue, 1 Aug 2023 21:08:52 +0200 From: Peter Zijlstra To: Guenter Roeck Cc: Roy Hopkins , Joel Fernandes , paulmck@kernel.org, Pavel Machek , Greg Kroah-Hartman , stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, srw@sladewatkins.net, rwarsow@gmx.de, conor@kernel.org, rcu@vger.kernel.org, Ingo Molnar , Kees Cook , Marco Elver Subject: Re: scheduler problems in -next (was: Re: [PATCH 6.4 000/227] 6.4.7-rc1 review) Message-ID: <20230801190852.GG11704@hirez.programming.kicks-ass.net> References: <3da81a5c-700b-8e21-1bde-27dd3a0b8945@roeck-us.net> <20230731141934.GK29590@hirez.programming.kicks-ass.net> <20230731143954.GB37820@hirez.programming.kicks-ass.net> <20230731145232.GM29590@hirez.programming.kicks-ass.net> <7ff2a2393d78275b14ff867f3af902b5d4b93ea2.camel@suse.de> <20230731161452.GA40850@hirez.programming.kicks-ass.net> <20230731211517.GA51835@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 01, 2023 at 10:32:45AM -0700, Guenter Roeck wrote: > On 7/31/23 14:15, Peter Zijlstra wrote: > > On Mon, Jul 31, 2023 at 09:34:29AM -0700, Guenter Roeck wrote: > > > > Ha!, I was poking around the same thing. My hack below seems to (so far, > > > > <20 boots) help things. > > > > > > > > > > So, dumb question: > > > How comes this bisects to "sched/fair: Remove sched_feat(START_DEBIT)" ? > > > > That commit changes the timings of things; dumb luck otherwise. > > Kind of scary. So I only experienced the problem because the START_DEBIT patch > happened to be queued roughly at the same time, and it might otherwise have > found its way unnoticed into the upstream kernel. That makes me wonder if this > or other similar patches may uncover similar problems elsewhere in the kernel > (i.e., either hide new or existing race conditions or expose existing ones). > > This in turn makes me wonder if it would be possible to define a test which > would uncover such problems without the START_DEBIT patch. Any idea ? IIRC some of the thread sanitizers use breakpoints to inject random sleeps, specifically to tickle races.