Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1178595rda; Mon, 23 Oct 2023 05:15:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHY6ZXiWJcsCxyXa/RykWLSw2IW6cyOUY/J2RysVfxYsOl+3B+DXHcGbhBRHgAEEEIwF3iJ X-Received: by 2002:a05:6a21:7783:b0:16b:79b3:2285 with SMTP id bd3-20020a056a21778300b0016b79b32285mr9701069pzc.56.1698063312737; Mon, 23 Oct 2023 05:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698063312; cv=none; d=google.com; s=arc-20160816; b=IXjelihjjM2gCi/3V3+fj9c7JzBuhCR30auY6QIegJr7ocR8BJVCxf+dONkhNk/QzR VIPNyClAbv0J8Kimxes5bJd62KnmuFIzzwkd8kIpz9BcTAugiuNyFbt/g0lapDpyuZHV Hfn01LAMUwnSkwmcgEyyZltSnFjZbSwMbuNWo/g2+5nXhThuFGUt9/AItEzpfMTWRPmy cYitJH7arMGmipIzK4AFssQzqjl/oAXsDTwTFqFJXkVznsyN3C5+jURyyQm1Dl8bY5if 31gmwr0G24GPlD5vTGXYUwlvxD25iloeuSi/VIAJyaMBrIUFS/kUIXd7u9fwvAY0lUzo 1Oqw== 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 :dkim-signature; bh=fCVjdIorGL328eSvpeDsjkbIAiI2WLV9/fKgg09waUI=; fh=H5gU+xKJSl1tL7NLTgWqiTaD2sv8g13+kj8Rl/S+bI8=; b=nhP8kB/UOM6vXdF6f75y3jeVOxNhrLkoffbwYowF3eiKTgNMFedRIPLcKQLnykOG9E lJ3I+dF/aRg45ATkdw1Th6ykheNYZ3isawTjRxmXebzpcWsknUgKe96kBM9XpL/bCMpp X9EKv32VyTcxt4eAZeu4s1krPSj8IqeTrHHKWHyIti85+L1v/jX4nnOfCJVeQdth8TFw OLYpwgDejRdWvykDvaJXQVNXzK367dNSEiXvCYzUOQCjdw+GmqwRt+DIlt9Es6p9OkSn T3osx9MdBsUZfraS4OSHExm6V19mzNfYkCo2SjuUOM9+xJB5GJ1E6JHS7ZVeRVRo0Zzz edcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=1RmvGYUb; dkim=neutral (no key) header.i=@suse.cz header.b=A4unGTXs; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p7-20020a170902e74700b001ca4ad8634dsi6539584plf.360.2023.10.23.05.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:15:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=1RmvGYUb; dkim=neutral (no key) header.i=@suse.cz header.b=A4unGTXs; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A661D8051165; Mon, 23 Oct 2023 05:15:08 -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 S230024AbjJWMPI (ORCPT + 99 others); Mon, 23 Oct 2023 08:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbjJWMPH (ORCPT ); Mon, 23 Oct 2023 08:15:07 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1F7AEE; Mon, 23 Oct 2023 05:15:04 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 176351FE10; Mon, 23 Oct 2023 12:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1698063302; h=from:from:reply-to: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=fCVjdIorGL328eSvpeDsjkbIAiI2WLV9/fKgg09waUI=; b=1RmvGYUburDpT4P3Va5WOx/gyJUOx2uc3MYvVsjPVIhAPKYAxMg6ru3xVEa0W57RPz2VYJ oEMpBKReud5ieRvph+3QjgKDQXx9zxPHP0y09ZxxxXdYHDNCTUAV1SJLX0Fzn0a+wW/sIJ gOv4IvCk5UAy/8PtA0TbnGByuH3QMHM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1698063302; h=from:from:reply-to: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=fCVjdIorGL328eSvpeDsjkbIAiI2WLV9/fKgg09waUI=; b=A4unGTXseIO8r0J+WMJbXCyQxORvABtLyWVbs0KcoipdTxjUs7THIiAONmPzI2H5mz3Uan cez+GBSQfojmJUDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 02B69139C2; Mon, 23 Oct 2023 12:15:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WheUAMZjNmWSIgAAMHmgww (envelope-from ); Mon, 23 Oct 2023 12:15:02 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 809F0A06B2; Mon, 23 Oct 2023 14:15:01 +0200 (CEST) Date: Mon, 23 Oct 2023 14:15:01 +0200 From: Jan Kara To: Andy Shevchenko Cc: Kees Cook , 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: <20231023121501.ae3ig3hzxqycglyt@quack3> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -5.10 X-Spamd-Result: default: False [-5.10 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_HAM(-3.00)[100.00%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-3.00)[-1.000]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_SEVEN(0.00)[11]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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]); Mon, 23 Oct 2023 05:15:09 -0700 (PDT) On Mon 23-10-23 14:45:05, Andy Shevchenko wrote: > 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... Given how reliably you can hit the problem with some kernels while you cannot hit them with others (only slightly different in a code that doesn't even get executed on your system) I suspect this is really more a code placement issue than a timing issue. Like if during the linking phase of vmlinux some code ends up at some position, the kernel fails, otherwise it boots fine. Not sure how to debug such thing though. Maybe some playing with the linker and the order of object files linked could reveal something but I'm just guessing. Honza -- Jan Kara SUSE Labs, CR