Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25667539rwd; Sun, 2 Jul 2023 22:32:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4V2yjMoEAzK0WYRC5zjokJKwYTyU+vhk7JkGKILfrSOYPgFHtN0b7p4HRDWz1Z8Gxl9OHY X-Received: by 2002:a05:6808:254:b0:3a1:f40a:1862 with SMTP id m20-20020a056808025400b003a1f40a1862mr6945782oie.9.1688362360575; Sun, 02 Jul 2023 22:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688362360; cv=none; d=google.com; s=arc-20160816; b=REcp3cVvptkRKrw5wmPw+6gSeGfP/nwk8D4u/8Ck1hKxkt49Q2CVLkxUWVsaWf7QcB Xxvb6eWwsnJxRWV3JZxmEmF6DnI2fHbD2ioPSFeoWkXPaeFrhSBNxfvljwO/TGu4xV+P 2S/Z5J8mlbQkqZwcrMUNAI59fKdDmD0PcnDkV2RPLFbdUK8kRhClx+EA5lrgtSpjBROR c9CfUkJXMZ2QxPGXTRVSn8cY6MaGJgIkbTB0XA40DzmEAc2gxkjwKwjzb0Tay8f1XDsP qRpTjznNir5Its6fb6x7m8HRorTbeofqKr6Gcg9EjRq2oJrMr8nSdtJ4RS9X/c6uze1C DGlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature:dkim-signature; bh=L+j0bbyTPfaUWG9uaocyb8hA+fLl6ZRghgbkdKvuauw=; fh=6og+EV4J5/cByBVS1pS9lmMOW5u9uBz/QEDVlCQ7iQQ=; b=TGiVhf83NH+ikK4EL0DBZAc+DADW1QauF8tl/pw87jsuAUhNfgnaG2fVBIrcuyt7nt hdBTd7w++ZasG7jhbWnAeJYQinoEYjH2yZWuBUK3pkY+s1oy9mQEedvqHh8BluG9ttab i7jLnAw2BZAaggBJ5g2pPyavEzCQJRG9GB9v/mfz7D/bTz5xqfD6CdyPrlvcSp7rf0Uw +2I88q+O1EIK5OE0PA6fcfJ0RXLvGD2A9lt6uzB1dmCBIhBm0wYhRmtJHUBggXJnMxJk KopBWH7A4ulI84arCi7+H1vlwTw5Xbq1ooZU6IHBf+tg5lCc3falgQ2TSaMp2e7wgzeC 9UUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=m7MXUPZA; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=P73OlW3Y; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d24-20020a17090ab31800b00263046538e1si13600113pjr.84.2023.07.02.22.32.26; Sun, 02 Jul 2023 22:32:40 -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=fail header.i=@alu.unizg.hr header.s=mail header.b=m7MXUPZA; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=P73OlW3Y; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbjGCFTD (ORCPT + 99 others); Mon, 3 Jul 2023 01:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbjGCFTC (ORCPT ); Mon, 3 Jul 2023 01:19:02 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [IPv6:2001:b68:2:2800::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A8D11AC; Sun, 2 Jul 2023 22:19:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 25F3F60174; Mon, 3 Jul 2023 07:18:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1688361538; bh=YrRwssvEZf7TEjeYffqKvvPzOJpbpuQXW2iU38aXF1Y=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=m7MXUPZA5UnauwU6zesw56WCc+DpfX7cJoMbwYM0hFP+qfI6GLtZaxWaZMCKuP/tp YQ6cFyFib37FQWBXhCqucczAoC1wayKY28bdvjMSNGM8gIWfBQYvjDTeFgj5OL1JD4 ijjMn5J7/yR7D209nz1rFrgAyQTEngIX1hWfYmOH9rHztysyoDLdv1ktB1JIKZ1u0Z HlfWSYDwG7zfYC7tpXkgTt6qlJOT/C8zWEF6izapWH0dmenu0kn513xZs7K6X81tTv Saey0AVuFuh0JjI3UXfPbDWH/JSz8PvxTpoFGiaPUgPdF7V19wwkYSu8qbbX+i/gCx L8gcWNShFw4tw== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JDCTbZ3jgSbF; Mon, 3 Jul 2023 07:18:55 +0200 (CEST) Received: from [192.168.1.6] (unknown [94.250.191.183]) by domac.alu.hr (Postfix) with ESMTPSA id 7866B60171; Mon, 3 Jul 2023 07:18:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1688361535; bh=YrRwssvEZf7TEjeYffqKvvPzOJpbpuQXW2iU38aXF1Y=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=P73OlW3YHMZFWS3ahRxQ2sZR5Jj8Sw+norYEwt2u0iO6AXcAG4ut4Gnw+E13qpjFp NRH1OnTjRo2+cCiD3dFEK8qztad/o/6y5iYH5owkQCIdLgApy84Pjim476VGPTb95f EnvDsOhRc7SEpA4zynOG5CezxA7xq4FKK774FK/UigDc/CL8ONDJDPqLYbQ08aXwOZ qLxidDgMH/Djj+qBNY08F21t/gIHD4UhI4xLy8+3mi1qJzvrH0vtysE67DR5/ieM40 ZKa3Fh8qEdMLdoV8Os5MyyJIzX8i/XevVr94U8n4BOWBhpfSnz97llsw2+XzDjHfk0 QnWCdp3yxhd+Q== Message-ID: <6fbd0c06-0e1a-d2a9-cfdf-c953e559fec1@alu.unizg.hr> Date: Mon, 3 Jul 2023 07:18:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 From: Mirsad Goran Todorovac Subject: Re: [CRASH][BISECTED] 6.4.1 crash in boot To: Guenter Roeck , Kees Cook , Bagas Sanjaya Cc: Linux Kernel Mailing List , Linux LLVM , linux-kbuild@vger.kernel.org, Linux Regressions , Nathan Chancellor , Nick Desaulniers References: <9a8e34ad-8a8b-3830-4878-3c2c82e69dd9@alu.unizg.hr> <202307022018.B26F5795@keescook> <625e951e-9922-d15d-5520-e8cd5eba1995@roeck-us.net> <4fa56264-f188-46f9-cc77-117b469b3328@roeck-us.net> Content-Language: en-US In-Reply-To: <4fa56264-f188-46f9-cc77-117b469b3328@roeck-us.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 7/3/23 05:58, Guenter Roeck wrote: > On 7/2/23 20:26, Guenter Roeck wrote: >> On 7/2/23 20:20, Kees Cook wrote: >>> On Mon, Jul 03, 2023 at 08:44:37AM +0700, Bagas Sanjaya wrote: >>>> On Sun, Jul 02, 2023 at 06:36:12PM +0200, Mirsad Goran Todorovac wrote: >>>>> Hi, >>>>> >>>>> After new git pull the kernel in Torvalds tree with default debug config >>>>> failed to boot with error that occurs prior to mounting filesystems, so there >>>>> is no log safe for the screenshot(s) here: >>>>> >>>>> [1] https://domac.alu.unizg.hr/~mtodorov/linux/crashes/2023-07-02/ >>>>> >>>>> Bisect shows the first bad commit is 2d47c6956ab3 (v6.4-rc2-1-g2d47c6956ab3): >>>>> >>>>> # good: [98be618ad03010b1173fc3c35f6cbb4447ee2b07] Merge tag 'Smack-for-6.5' of https://github.com/cschaufler/smack-next >>>>> git bisect good 98be618ad03010b1173fc3c35f6cbb4447ee2b07 >>>>> # bad: [f4a0659f823e5a828ea2f45b4849ea8e2dd2984c] drm/i2c: tda998x: Replace all non-returning strlcpy with strscpy >>>>> git bisect bad f4a0659f823e5a828ea2f45b4849ea8e2dd2984c >>>>> . >>>>> . >>>>> . >>>>> # bad: [2d47c6956ab3c8b580a59d7704aab3e2a4882b6c] ubsan: Tighten UBSAN_BOUNDS on GCC >>>>> git bisect bad 2d47c6956ab3c8b580a59d7704aab3e2a4882b6c >>>>> # first bad commit: [2d47c6956ab3c8b580a59d7704aab3e2a4882b6c] ubsan: Tighten UBSAN_BOUNDS on GCC >>>>> >>>>> The architecture is Ubuntu 22.04 with lshw and config give in the attachment. >>>> >>>> Can you show early kernel log (something like dmesg)? >>>> >>>> Anyway, I'm adding it to regzbot: >>>> >>>> #regzbot ^introduced: 2d47c6956ab3c8 >>>> #regzbot title: Linux kernel fails to boot due to UBSAN_BOUNDS tightening >>> >>> I'm confused. Commit 2d47c6956ab3c8b580a59d7704aab3e2a4882b6c isn't in the v6.4 >>> tree... it's only in Linus's ToT. >>> >> >> In ToT: >> >> $ git describe 2d47c6956ab3 >> v6.4-rc2-1-g2d47c6956ab3 >> >> $ git describe --contains 2d47c6956ab3 >> next-20230616~2^2~51 >> $ git describe --contains --match 'v*' 2d47c6956ab3 >> fatal: cannot describe '2d47c6956ab3c8b580a59d7704aab3e2a4882b6c' >> >> "git describe" always shows the parent tree, which I guess was based on >> v6.4-rc2. >> > > Ah, sorry, I didn't realize that the subject claims that the problem > would be in 6.4.1. That indeed does not match the bisect results. I apologise for confusion. In fact, I have cloned the Torvalds tree after 6.4.1 was released, but I actually cloned the Torvalds tree, not the 6.4.1 from the stable branch as the Subject line might have misled. But I think the text explained that the Torvalds tree was cloned and the method: ] After new git pull the kernel in Torvalds tree with default debug config ] failed to boot with error that occurs prior to mounting filesystems, so there ] is no log safe for the screenshot(s) here: I will try to be more consistent and precise the next time. Sorry again for the confusion. I am right now cloning directly from the Torvalds tree for the third time and with the Ubuntu generic production kernel and the result is the same: crash in boot for 2d47c6956ab3. Best regards, Mirsad Todorovac