Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp881336rdb; Fri, 20 Oct 2023 02:03:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5fiJ2YBeQdWNWJL6FP9Rhxbu2/JY/vAtiAX6zKfOMs3Pj0taUK3IqwwDk+y7pqQZXsHA7 X-Received: by 2002:a17:90a:e49:b0:263:f630:228f with SMTP id p9-20020a17090a0e4900b00263f630228fmr1386614pja.23.1697792602365; Fri, 20 Oct 2023 02:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697792602; cv=none; d=google.com; s=arc-20160816; b=uLOoQIblex2Hej5+I/bklynweBh0JeEuoeGB6tczfgekJ6Ra3jfFA0kMg+xCBTj3cZ TzB0v7OrIfy3lWkK5Y2XLeKBYtBhH1O6ClcW8EdtAsWc1m/iJFFHflniQneks75lvtM4 KNOS7UBxG5vSVPJKtz3iFOe/kT181//ryxw4hoIMpuywP4FQnp3lN72nKKt0GowEu8Ue 1sdT8fMI5Fms5nioACs0hhzQVQ6qpGvdh4hvJaAY5gzyurcgCKjbqK8HJ2Su9lEi55Q1 trHSxuUURbmGwtCYXBrQ+Veowngelou/7HJD1xu+PoNZ9VYWF7O58wvP8fvbf9PLbhRR 9GUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=FcZxcWmN4rt6MTl87TIqjXzrg56uxVeaVVCYhpBR/1c=; fh=ePSum2WFTiyXBz/VPZzPxNcxQUpj7ZYF7DmuF99BVlY=; b=JbLLjzRWBFqNmSV6mWc2S0FLAP2SW9Xx+ueVsDISu88sGqjR57MXyKsGkW1vPFEtct Xztu/r4qPZvGa3xEJP92hBTFNYbTWfw5rRuiPoNRMbD4qDOyGY14gnZ8ttEjcUBbNb1K nRi6mPtEvyjMj/ZMODRBnrwdlqC5r2FVOJHCcIokUR7QB3Ky8ggaS59AmTsY9gJSTOkN 2BIRnrKI/hoIUEYYPvVR+efiPH3B101+yCsnperkB1l56SlL2oNx8bnAb1nedvWneWcf uWKRsIwqnYWUThwxFaBqriGkckORgUonmkK4kXJ4j3i3FSd1kLwY7Q460BONEvvIN/gO 7MPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=MRQLJuJP; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=oIyow9b1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id na10-20020a17090b4c0a00b0026cab818aa2si4267151pjb.100.2023.10.20.02.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 02:03:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=MRQLJuJP; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=oIyow9b1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2BEBC807F4DC; Fri, 20 Oct 2023 02:02:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376559AbjJTJCa (ORCPT + 99 others); Fri, 20 Oct 2023 05:02:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376521AbjJTJC2 (ORCPT ); Fri, 20 Oct 2023 05:02:28 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FA85AB; Fri, 20 Oct 2023 02:02:26 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E97685C0B5A; Fri, 20 Oct 2023 05:02:23 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 20 Oct 2023 05:02:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1697792543; x=1697878943; bh=FcZxcWmN4rt6MTl87TIqjXzrg56uxVeaVVC YhpBR/1c=; b=MRQLJuJP+RdPNLMAMRf+iNgyoLGXB9KXbG1vpvhq7wH+4P/CU1l zgTQpC3h4pdgs9A00oMW3iODj1i+tL5Zr/Ec2pRGpcuR3RisyfpjIOS1QxRp9HDz 0jWBSev0WZtdnO2FrINsEklmKGeXcGvQ+q1qb3IqiCW1msYaE6Jrdx99QnkR6vKD 8n8eZpSA2dI8r/Pk4nTV98lzjEO3iRVkCSP00Nx6vTNRVH09lI/Dn82RD0NbMUdo UorEI9ENA5745xsHM+IIp5PJY6fyiyLqeS3r21yQmnbh/5EtZJtoOM9ZjUm7UqqQ +no/IejmP8YpO7nZ6tCMvbdURxeZJQHMBdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1697792543; x=1697878943; bh=FcZxcWmN4rt6MTl87TIqjXzrg56uxVeaVVC YhpBR/1c=; b=oIyow9b1clhk2b+4VPVoCXOD13GCwm7ZrfX5pQRbJc0c6/tkKrK DiFiVAvvBWPxTpGgPT3L9MRIsEH8fDpWZ2DCO2xY0GDPBOJd6AyDp+l0f0Z6QtHn ILWGMnF0M8royoZhfSbrS2DtAv43Cnpnq/wBF+r2c1vPUBAbpbZ6NnugmWjOhrWc 0Ivn4Rnt+wOaP3YjJS1bgaoCtxqdOnMDVpcwTuyIxjs4HCpllp+gA2WTwFkT+9Fz IOwhCNAjjc7/bS8nUKGgXmUSMvAEDjSp6wOkoN4pgoLjLL1SQkUYv0Fnbwrsdphf rRWnrWB40CbDYX//FuZQlQHfZ3u43WWGowA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeekgddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepleevgfettdduheetkedtgeefffdvtdduveehtdfgveehieelvdegffdvudek feelnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpthhugigsohhothdrtghomhdplh hinhgrrhhordhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id F0C5EB60089; Fri, 20 Oct 2023 05:02:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <6dde13bc-590d-483c-950c-4d8aeee98823@app.fastmail.com> In-Reply-To: References: <71adfca4-4e80-4a93-b480-3031e26db409@app.fastmail.com> Date: Fri, 20 Oct 2023 11:02:02 +0200 From: "Arnd Bergmann" To: "Naresh Kamboju" Cc: "open list" , lkft-triage@lists.linaro.org, linux-fsdevel@vger.kernel.org, autofs@vger.kernel.org, "Ian Kent" , "Bill O'Donnell" , "Christian Brauner" , "Dan Carpenter" , "Anders Roxell" Subject: Re: autofs: add autofs_parse_fd() Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 20 Oct 2023 02:02:45 -0700 (PDT) On Fri, Oct 20, 2023, at 09:48, Naresh Kamboju wrote: > On Fri, 20 Oct 2023 at 12:07, Arnd Bergmann wrote: >> >> On Thu, Oct 19, 2023, at 17:27, Naresh Kamboju wrote: >> > The qemu-x86_64 and x86_64 booting with 64bit kernel and 32bit root= fs we call >> > it as compat mode boot testing. Recently it started to failed to ge= t login >> > prompt. >> > >> > We have not seen any kernel crash logs. >> > >> > Anders, bisection is pointing to first bad commit, >> > 546694b8f658 autofs: add autofs_parse_fd() >> > >> > Reported-by: Linux Kernel Functional Testing >> > Reported-by: Anders Roxell >> >> I tried to find something in that commit that would be different >> in compat mode, but don't see anything at all -- this appears >> to be just a simple refactoring of the code, unlike the commits >> that immediately follow it and that do change the mount >> interface. >> >> Unfortunately this makes it impossible to just revert the commit >> on top of linux-next. Can you double-check your bisection by >> testing 546694b8f658 and the commit before it again? > > I will try your suggested ways. > > Is this information helpful ? > Linux-next the regression started happening from next-20230925. > > GOOD: next-20230925 > BAD: next-20230926 > > $ git log --oneline next-20230925..next-20230926 -- fs/autofs/ > dede367149c4 autofs: fix protocol sub version setting > e6ec453bd0f0 autofs: convert autofs to use the new mount api > 1f50012d9c63 autofs: validate protocol version > 9b2731666d1d autofs: refactor parse_options() > 7efd93ea790e autofs: reformat 0pt enum declaration > a7467430b4de autofs: refactor super block info init > 546694b8f658 autofs: add autofs_parse_fd() > bc69fdde0ae1 autofs: refactor autofs_prepare_pipe() Right, and it looks like the bottom five patches of this should be fairly harmless as they only try to move code around in preparation of the later changes, and even the other ones should not cause any difference between a 32-bit or a 64-bit /sbin/mount binary. If the native (full 64-bit or full 32-bit) test run still works with the same version, there may be some other difference here. >> What are the exact mount options you pass to autofs in your fstab? > > mount output shows like this, > systemd-1 on /proc/sys/fs/binfmt_misc type autofs > (rw,relatime,fd=3D30,pgrp=3D1,timeout=3D0,minproto=3D5,maxproto=3D5,di= rect,pipe_ino=3D1421) This is only the binfmt-misc mount, which should not prevent your rootfs from getting mounted, but it's possible that failure to mount this prevents you from running 32-bit binaries. I see this comes from the "proc-sys-fs-binfmt_misc.automount" service in systemd. I see this is defined in https://github.com/systemd/systemd/blob/main/units/proc-sys-fs-binfmt_mi= sc.automount but I don't know exactly what its purpose is here. On a 64-bit system, you normally use compat_binfmt_elf.ko to run 32-bit binaries, and this does not require any specific mount points. Alternatively, you could use binfmt_misc.ko with the procfs mount to configure running arbitrary binary formats such as arm32 on x86_64 with qemu-user emulation. I double-checked your rootfs image from=20 https://storage.tuxboot.com/debian/bookworm/i386/rootfs.ext4.xz to ensure that this indeed contains i386 executables rather than arm32 ones, and that is all fine. I also see in your log file at https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230926= /testrun/20125035/suite/boot/test/gcc-13-lkftconfig-compat/log that it is running the i386 binaries from the rootfs, but it does get stuck soon after trying to set up the binfmt-misc mount at the end of the log: [[0;32m OK [0m] Reached target [0;1;39mlocal-fs.target[0m - Local File= Systems. Starting [0;1;39msystemd-binfmt.se=C3=A2=E2=82=AC=C2=A6et Up Ad= ditional Binary Formats... Starting [0;1;39msystemd-tmpfiles-=C3=A2=E2=82=AC=C2=A6 Volatil= e Files and Directories... Starting [0;1;39msystemd-udevd.ser=C3=A2=E2=82=AC=C2=A6ger for = Device Events and Files... [ 15.869404] igb 0000:01:00.0 eno1: renamed from eth0 (while UP) [ 15.883753] igb 0000:02:00.0 eno2: renamed from eth1 [ 20.053885] (udev-worker) (175) used greatest stack depth: 12416 byte= s left =1Dquit I'm a bit out of ideas at that point, my best guess now is that your bisection points to something in autofs that makes it hang while setting up autofs, but that neither autofs nor binfmt-misc are actually being used otherwise. Maybe you can try to modify your rootfs to disable or remove the systemd-binfmt.service, to confirm that autofs is not actually needed here but does cause the crash? Arnd