Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1008314rdb; Fri, 20 Oct 2023 06:09:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESe/49BFLi9FVyW5GY1LsljwGLkODY9qy7GZP1zFDJZwYEfFGCFEmCzcp7QDcD25eGjSOi X-Received: by 2002:a17:903:22c5:b0:1ca:8541:e1e7 with SMTP id y5-20020a17090322c500b001ca8541e1e7mr2052172plg.22.1697807396331; Fri, 20 Oct 2023 06:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697807396; cv=none; d=google.com; s=arc-20160816; b=IcNsjCy7XKUfp2ZnREjCeY5okR5jCp8Qjw8luqcUQyUZSsVFUlmstpfJKeGHALUhge SG3vw+J4SGvM0WN8vko+0gmCT6QfET/tTU8bJz902Amnk79PbUFVJldpmWW6ppm1/NJa GemV0RpCEY6eOi6h/CA3VcF7a/arW9KfQvzJe0kUJtE7tX+5js8YKNb85kZmAKnBrhBp Wx03SLk8JgecU9rad1imZ0HaKDxJ62mom3RUaFMcxtqAOd9M5Ew7BNmVwHVk32Zz/Ded glGRUf0hkQZWs+lkHzdLD1n92i9zyp0LPHeUvhjhUQbrWZYrVEkxcryW3c7PGduuBMpg p0qQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=H9rjDKi86egy+CCMRQXTpLLy3mneqPSVJpZ0V0aMB0U=; fh=jz6IBWw+NgTfsGN9dyOlcHHw/4bbRPjG+rUh2WIT7BQ=; b=MQeFygXvq7QpIi/DgktB2PmoO2I4/WSzBWkOqDeV7ttjpiGkKUg8YDUb8+1L8qYrOF 4b+JdaZHcLAXd6X+CSw2ONxI3ooJkDUiMuHoigoK9RyMaNsEJcIwkUuxurSZ9XcYanfp Apjio7doukeYGHSwUPPw0DsIRX0QXLvv/ww2BEkpVsfgvoypBKuksrGeyzXIK1Okt5TZ 3SvGWmp84IR+fJZCXxAwfO+vPuMMy93997kexb8aTT3BZZVZVT0QChuIe4W22ejIeawF 4q4JGAQF573mQAUdvHcztv4tupmwTQ9nKlhuFcmz5WzGwjDIcOYX6UGwPSvw3a4bP1U7 uwng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@themaw.net header.s=fm2 header.b=PpYuKcxu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=R2ODgfmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-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 a23-20020a170902b59700b001c9ff840285si1778514pls.414.2023.10.20.06.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 06:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@themaw.net header.s=fm2 header.b=PpYuKcxu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=R2ODgfmr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id DA0B6801E77F; Fri, 20 Oct 2023 06:09:53 -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 S1377405AbjJTNJp (ORCPT + 99 others); Fri, 20 Oct 2023 09:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377239AbjJTNJo (ORCPT ); Fri, 20 Oct 2023 09:09:44 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C90DBE; Fri, 20 Oct 2023 06:09:42 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 991F45C0ACE; Fri, 20 Oct 2023 09:09:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 20 Oct 2023 09:09:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; 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= 1697807381; x=1697893781; bh=H9rjDKi86egy+CCMRQXTpLLy3mneqPSVJpZ 0V0aMB0U=; b=PpYuKcxuV5/b9Dm0fNrNjLqu/+9aNEJ2L3jN7yvAaHzQLKwGkv8 5RQffEtTT8vxlyYSw7eP7+3KdRxE5nrvajVnq7bN3M1xNK/5q1vG+vloYKb3BVKc nNkJDuszSN7/Mb3uUI867osCmN3Y7GAve9ZLVS235ihtRV6zZmVn7zwGT6oSaOUM 9KPJ5EFl5SQ1xqMo97yjpqAkTIW/fnJY6txMtIVZpJqES7EgCivhuK5oN9SsErM+ eNWZ3jl2GYc/oIsCtCow1FYiyD32kY4A6d+57qmOyrYS90MFrcwCKWSLaFII7P8y t0CuXoZRHyaVTmMF1Yc0+bN7/sNK8QUcwVg== 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= 1697807381; x=1697893781; bh=H9rjDKi86egy+CCMRQXTpLLy3mneqPSVJpZ 0V0aMB0U=; b=R2ODgfmrxMoUKcsW5mCxmmxN5E/hV/wqa5/bE0QMHV1+TiYGFgc caGjErhizrHXg5YVmMteojh7wgESXzGq2XgDwe/vAmKBdJx5tth5db7xNhJ8FHbH gDjDq/M8YPDkoGMsGP5rNme4iuIVgmHDlh7UzvtDmwoRaxPKNX4vLTOKNd10Fg/O 5rUTdIONjl93uvkCQ+C94HR/5E+xKgWb2BAzsUJyEn65w4Z7LUZoKgFk82Hojms1 AVwNj3XJhS7knhXNEtJQZ9TnaBC4vvusIS03hY20+I313aPnExWzFMqS0mVoZ1BF uWI/B5URD1ieK0b37XI/fTUkPh6ulFk9xQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeekgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepkfgrnhcu mfgvnhhtuceorhgrvhgvnhesthhhvghmrgifrdhnvghtqeenucggtffrrghtthgvrhhnpe euhfeuieeijeeuveekgfeitdethefguddtleffhfelfeelhfduuedvfefhgefhheenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrrghvvghnse hthhgvmhgrfidrnhgvth X-ME-Proxy: Feedback-ID: i31e841b0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Oct 2023 09:09:37 -0400 (EDT) Message-ID: <11ba98f2-2e59-d64b-1a1a-fd32fd8ba358@themaw.net> Date: Fri, 20 Oct 2023 21:09:35 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: autofs: add autofs_parse_fd() Content-Language: en-US To: Arnd Bergmann , Dan Carpenter , Anders Roxell Cc: Naresh Kamboju , open list , lkft-triage@lists.linaro.org, linux-fsdevel@vger.kernel.org, autofs@vger.kernel.org, Bill O'Donnell , Christian Brauner References: <71adfca4-4e80-4a93-b480-3031e26db409@app.fastmail.com> <432f1c1c-2f77-4b1b-b3f8-28330fd6bac3@kadam.mountain> From: Ian Kent In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 06:09:54 -0700 (PDT) On 20/10/23 19:23, Arnd Bergmann wrote: > On Fri, Oct 20, 2023, at 12:45, Dan Carpenter wrote: >> On Fri, Oct 20, 2023 at 11:55:57AM +0200, Anders Roxell wrote: >>> On Fri, 20 Oct 2023 at 08:37, 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 rootfs we call >>>>> it as compat mode boot testing. Recently it started to failed to get 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 tried these two patches again: >>> 546694b8f658 ("autofs: add autofs_parse_fd()") - doesn't boot >>> bc69fdde0ae1 ("autofs: refactor autofs_prepare_pipe()") - boots >>> >> One difference that I notice between those two patches is that we no >> long call autofs_prepare_pipe(). We just call autofs_check_pipe(). > Indeed, so some of the f_flags end up being different. I assumed > this was done intentionally, but it might be worth checking if > the patch below makes any difference when the flags get put > back the way they were. This is probably not the correct fix, but > may help figure out what is going on. It should apply to anything > from 546694b8f658 ("autofs: add autofs_parse_fd()") to the current > linux-next: > > --- a/fs/autofs/inode.c > +++ b/fs/autofs/inode.c > @@ -358,6 +358,11 @@ static int autofs_fill_super(struct super_block *s, struct fs_context *fc) > pr_debug("pipe fd = %d, pgrp = %u\n", > sbi->pipefd, pid_nr(sbi->oz_pgrp)); > > + /* We want a packet pipe */ > + sbi->pipe->f_flags |= O_DIRECT; > + /* We don't expect -EAGAIN */ > + sbi->pipe->f_flags &= ~O_NONBLOCK; > + That makes sense, we do want a packet pipe and that does also mean we don't want a non-blocking pipe, it will be interesting to see if that makes a difference. It's been a long time since Linus implemented that packet pipe and I can't remember now what the case was that lead to it. Ian > sbi->flags &= ~AUTOFS_SBI_CATATONIC; > > /*