Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1274117rdb; Fri, 20 Oct 2023 13:36:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFETgWTHQrQiEi827vKv8MdMVZ0Lwnt6stXIvTW5EzYf5tx5Ct2VIN2hu0J2KOUgcXxvL0k X-Received: by 2002:a05:6358:9986:b0:166:c218:e517 with SMTP id j6-20020a056358998600b00166c218e517mr2757977rwb.24.1697834207628; Fri, 20 Oct 2023 13:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697834207; cv=none; d=google.com; s=arc-20160816; b=IESKvyUqZwJWkDqZLo9er9xo4GnbD3HBiAspF0Rs2f1zH5nA2KWeqWmLFdz9UgHFT2 Bmwa7Ik3hDpTLqfwzAehG1fxYIGbY6pPZhbheWVRQBRAkZToVNVdJ72yMQPj/qkCo1Oc sCYavxk1rfgHXcdDBrLO307Cg0TJ+tucqoKtH5T6XLn4phTBQajmMtCF3qohgCRNARIh t8P3C6dneD6SYbA1teLx05IAl+qXifoOjFTz/RaFRrYfgPhLK2Xhv/Y/Tp6UfeCXyC1x YEyNA0RiZ4OcHGQUzLhdampQ51PRULPtHvLpsZyNtbBWQNmC/h5RnCCnPcdz6iBcw4SE ySYg== 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:date:from; bh=3GrBEq9uZbfVxsIlVFueCA1Y3Vl+tZRwkbm1k9EXIMo=; fh=nlyeutP1NJcZCy42Z4rTnkxyg1Gtmb/VbcbpZGShCY8=; b=xkqbtd7g8MauxHGtwa9bmo8LoNFcL/TiYCEtgfn1U8+FMOx28yeuiVa/x53U9AtxZh f7IBA0d+aSlUZP+4fiDVViEcT9hpVsMDKpCEBpdO/HghFpNGWrGX20Hn5Ho//wYmsUS8 nZ5KVpaH96DUTi6tTUmQlGIzNGObYWRf03aahvugc2fF+kCYSiw9yhxCh5PNteEbACgp G/YQ24fjweD0DjIqjkKRU9D5OW2HaUZl2dNl5/rkRxa4YHKt6zxvaay/MqlfRLuyaSK7 W68vghL0SDvhkLu8Eobfsb/nOo7qwnSWzHiwDmhxBmBU1eNIp9kdafMH5hMdqu5b2mse 1ZaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q66-20020a632a45000000b00565335587absi2489513pgq.802.2023.10.20.13.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:36:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1295B830153B; Fri, 20 Oct 2023 13:36:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229764AbjJTUgm (ORCPT + 99 others); Fri, 20 Oct 2023 16:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbjJTUgl (ORCPT ); Fri, 20 Oct 2023 16:36:41 -0400 Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E093D68 for ; Fri, 20 Oct 2023 13:36:40 -0700 (PDT) Received: from localhost (88-113-24-34.elisa-laajakaista.fi [88.113.24.34]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 5d4b40fc-6f88-11ee-b972-005056bdfda7; Fri, 20 Oct 2023 23:36:37 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Fri, 20 Oct 2023 23:36:36 +0300 To: Jan Kara Cc: Andy Shevchenko , Baokun Li , Josh Poimboeuf , Jan Kara , Nathan Chancellor , Nick Desaulniers , Kees Cook , Ferry Toth , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [GIT PULL] ext2, quota, and udf fixes for 6.6-rc1 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 13:36:45 -0700 (PDT) Fri, Oct 20, 2023 at 12:43:56PM -0700, Linus Torvalds kirjoitti: > On Fri, 20 Oct 2023 at 11:29, Andy Shevchenko > wrote: > > > > I'll reply to this with the attached object file, I assume it won't go to the > > mailing list, but should be available in your mailbox. > > Honestly, both cases (that function gets inlined twice) look > *identical* from a quick look, apart from obviously the extra call to > __quota_error(). > > I might be missing something, but this most definitely is not a "gcc > ends up creating very different code when it doesn't need to > synchronize around the call" thing. > > So a compiler issue looks very unlikely. No absolute guarantees - I > didn't do *that* kind of walk-through instruction by instruction - but > the results actually seem to line up perfectly. > > Even register allocation didn't change, making the compare between #if > 0 and without rather easy. > > There's one extra spill/reload due to the call in the "non-#if0" case, > and that actually made me look twice (because it spilled %eax, and > then reloaded it as %rcx), but it turns that %eax/%ecx had the same > value at the time of the spill, so even that was not a "real" > difference. > > So I will claim that no, it's not the compiler. It's some unrelated > subtle timing, or possibly just a random code layout issue (because > the code addresses do obviously change). Okay, but since now I can't use the certain configuration, the bug is persistent to me after this merge with the GCC. Yet, you mentioned that you would expect some reports but I don't think many people have a configuration similar to what I have. In any case a bug is lurking somewhere there. Let me check next week on different CPU (but I'm quite sceptical that it may anyhow trigger the same behaviour as if it's a timing, many parameters are involved, including hardware clocks, etc). That said, if you or anyone has ideas how to debug futher, I'm all ears! -- With Best Regards, Andy Shevchenko