Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1161121rda; Mon, 23 Oct 2023 04:45:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+9NB2VhEtfjVf9NAdFo1YIeoccCNqCuu7Q4knrgz3FfuoPSTCtg/578Az5CayMFXb1dLo X-Received: by 2002:a17:90a:9a90:b0:27d:4ede:75b0 with SMTP id e16-20020a17090a9a9000b0027d4ede75b0mr8601630pjp.16.1698061553886; Mon, 23 Oct 2023 04:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698061553; cv=none; d=google.com; s=arc-20160816; b=vexOucobR+oR8zl03dWex9czWtQt12ilkTwbq10TZ0ija/9CU70j1NtOuXtsRUHzYA O69SK9guqbbnsuy9fPqMqlkEN3zubu7rw7TToZLX0rFl2PoI2pzL/gGAgU1B1HptSXYl Te2b6DBpuKH9bS1py5aPZnC1mOQ7tZSOe5r9p5RuI76SOCQJ1cAZ/u3svC6crSiBMgTV u/HVvLrVdFiStpP23ULH6vq6MRbGCKKN3vbv0aygZRsmXhZvl5FaKydh/UAdQl4BDyFK ICC4vSc16OtqHX2v3wVJHJ/NbTG8kc0j5XzLGa6eMVxGoINMsOmMA/jljCSWgPOKnliS CcFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=sxyc4NHE2fPuZk/ibv+JtLM9SDr6YBm4QruN5k1gTiU=; fh=jo5mhoFyZuvJLeihGWuHoNe1zm042xEb1KFIjDnDLd8=; b=t/9qimvezLpCPXLrcvLiMR0y83eFKs89offg8OOR4ihUsVlyQwE+UhqFa+1++FQGw9 DO5lNKsVKkN4VCFyAmu6J8hhKbEUcyypRVCt3i1iNuUdmxnxTfSmO0ObHxeneyPnR356 KY7SkwcycWGZgGWp3p4D4BPuJcRUkCGv13xtCAKUhT9/kv9h3ObsdiVCkI4EIC4X0dGr S6S0pK3yYULXMk+mNqfHd7Fxb+YKl6OpWveWq5uD0M1O0sGZwIxAcmwdsKrrgxUafwAo jrYKVEs01/ZhAT5NMmATrEY4YiZXlJ8B1E/qhaJM3PgoJSmoaHTzpOrmD22jQjwLGlkJ RDVg== 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:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id e8-20020a17090a77c800b0026b698fdda6si8451768pjs.98.2023.10.23.04.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:45:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 99D4380A236F; Mon, 23 Oct 2023 04:45:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234391AbjJWLp3 (ORCPT + 99 others); Mon, 23 Oct 2023 07:45:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234390AbjJWLpN (ORCPT ); Mon, 23 Oct 2023 07:45:13 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04BDEDB; Mon, 23 Oct 2023 04:45:11 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="385701223" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="385701223" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 04:45:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="874681317" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="874681317" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 04:45:08 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC2) (envelope-from ) id 1qutMn-00000007vRG-3QFa; Mon, 23 Oct 2023 14:45:05 +0300 Date: Mon, 23 Oct 2023 14:45:05 +0300 From: Andy Shevchenko To: Kees Cook Cc: Jan Kara , Baokun Li , Josh Poimboeuf , 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 04:45:50 -0700 (PDT) On Sat, Oct 21, 2023 at 04:36:19PM -0700, Kees Cook wrote: > On October 20, 2023 1:36:36 PM PDT, andy.shevchenko@gmail.com wrote: > >That said, if you or anyone has ideas how to debug futher, I'm all ears! > > I don't think this has been tried yet: > > When I've had these kind of hard-to-find glitches I've used manual > built-binary bisection. Assuming you have a source tree that works when built > with Clang and not with GCC: > - build the tree with Clang with, say, O=build-clang > - build the tree with GCC, O=build-gcc > - make a new tree for testing: cp -a build-clang build-test > - pick a suspect .o file (or files) to copy from build-gcc into build-test > - perform a relink: "make O=build-test" should DTRT since the copied-in .o > files should be newer than the .a and other targets > - test for failure, repeat > > Once you've isolated it to (hopefully) a single .o file, then comes the > byte-by-byte analysis or something similar... > > I hope that helps! These kinds of bugs are super frustrating. I'm sorry, but I can't see how this is not an error prone approach. If it's a timing issue then the arbitrary object change may help and it doesn't prove anything. As earlier I tried to comment out the error message, and it worked with GCC as well. The difference is so little (according to Linus) that it may not be suspectible. Maybe I am missing the point... -- With Best Regards, Andy Shevchenko