Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3678960imw; Mon, 18 Jul 2022 12:30:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHLRIl0uy9OzVt4zfQSXVZYWGwJoOUD+IC4Fmqqxd4EBT+xBwzgs0arf5UjcVWQ9rLSlMq X-Received: by 2002:a17:902:ce83:b0:16c:2e89:d640 with SMTP id f3-20020a170902ce8300b0016c2e89d640mr29077445plg.23.1658172649337; Mon, 18 Jul 2022 12:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658172649; cv=none; d=google.com; s=arc-20160816; b=F4SWejt6A9/wbttk+rvkuKmhOKfclFAgqabrVLblVadZM7jmXPG/7IqTlbXWr3LeGz Zq4ppqw4Wal46hmNicOEmDm1SFFrfaccbc7KNhuOZ40DEFWxmp7dpD6v/7jb6ZKfovU7 CqqA2RKCZZFyM+RrvsZ0kdXGoSCy3EsurO8U5vrklZ5McQkT4ufablmYjTRhCmVGRS+K bRp6Rs+dNmaBted4Y4GpXFhhv7aRjIJw+yFfcIlqabOHKd/HftFxRWaMk63R6gdcy/g3 8Azu4J8LmcBKQRAludFVBT2zE84Zopw81PXwrlvQlj9Nizx3nBUyChbd7sUQpc0rvTYm c+9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=glVmtsuU15Iaox1iZcFTntcIxvzzo12UNdGz2h5AEHU=; b=E4AwuSm/KZ81CotzytJN4sK7U+36gS3cDklstxaAj8KsPTEbcsgsXWx1qm3JQ25xBv RksdkKVavQUcMlW+vqRK2WnkxKsiBZHQcP2WTByLoB/AEdU69xUErEa+A9jOtrobjrBM RYSsssy7R14f4b8PBbstm8WYyhdD7Un7bJuLlqe6KTOA2Ne0PLhjciR+wqjGkKrEjuep YwVwkvAIavAazhjybFMwNegG707Sv232ZIe5aSJFHkRAvOAEE1kbrrJVIkOpzUFMYebW n46+2VUL4TL2XoRsxfV2vd7VcJukH8JnKOgcXWeUvR/8VUP95MF2F7DMlFnkbMof5eFz uoqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=aSZgaWhE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dw4-20020a17090b094400b001efe6a71602si2136077pjb.168.2022.07.18.12.30.32; Mon, 18 Jul 2022 12:30:49 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=aSZgaWhE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235884AbiGRT2L (ORCPT + 99 others); Mon, 18 Jul 2022 15:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233932AbiGRT2J (ORCPT ); Mon, 18 Jul 2022 15:28:09 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA7022F67D for ; Mon, 18 Jul 2022 12:28:07 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id bp15so23172713ejb.6 for ; Mon, 18 Jul 2022 12:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=glVmtsuU15Iaox1iZcFTntcIxvzzo12UNdGz2h5AEHU=; b=aSZgaWhEpqugDki03ICBGmsvTrcI45a/Gg144M0CC2+3qihdGYp0Dzmpkilf8GwM2T FP0uyixIPyan05aTJxgyStEzgKas9WUBCMWpIxManFkBhcYzUBWPTLcdouv6+lJwkNDX GI2kI5TVbCS0YI/Y8Zk65yubZwt2bd3k9YffY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=glVmtsuU15Iaox1iZcFTntcIxvzzo12UNdGz2h5AEHU=; b=r6qYMru+kpjyzqO3KZkJ8eiiPnDN6rDqAbvaMJaWrDGpCuOADzOq6UskxBsEVADklm 9PID1Vkflmu88EQnW8CrGhAYX+BLUv/UII0M4CZOGbAEkKLQX6ptyPYhB16bJmLT1Q2h UxqsQn+K51F8xI8IBGwZFQ92eJR8nykl4WxGTyOfM8K0TNDGckNZU4WfUSc+bXRmohbg lWPj7f9f0qpz3Qm6yDkFJ4xCfHGkPIjihDN9P18RD8REs5R5kbawZMmCphbPt5/XBlAv 9BK4fi6NnjGy7aqXui1yA5gNeDwb/7n6m7JzmY35SFsjn4S9Rs4tsH4NzV/lLXUBrF39 INCA== X-Gm-Message-State: AJIora93LsEbRa93G4q1hEvp4kaEbtqVlRAEhvdLuuW1/CTU1lYMmtdE fgkoZcgOpbCJEKakmtvnqHfllc2pQsq1ynKn0+PM0fcyN7qSIQ== X-Received: by 2002:a17:907:75f1:b0:72b:9e40:c1a9 with SMTP id jz17-20020a17090775f100b0072b9e40c1a9mr25166610ejc.523.1658172486510; Mon, 18 Jul 2022 12:28:06 -0700 (PDT) MIME-Version: 1.0 References: <4B9D76D5-C794-4A49-A76F-3D4C10385EE0@kohlschutter.com> <83A29F9C-1A91-4753-953A-0C98E8A9832C@kohlschutter.com> In-Reply-To: From: Miklos Szeredi Date: Mon, 18 Jul 2022 21:27:55 +0200 Message-ID: Subject: Re: [PATCH] [REGRESSION] ovl: Handle ENOSYS when fileattr support is missing in lower/upper fs To: Linus Torvalds Cc: =?UTF-8?Q?Christian_Kohlsch=C3=BCtter?= , overlayfs , linux-kernel , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Jul 2022 at 21:17, Linus Torvalds wrote: > > On Mon, Jul 18, 2022 at 12:04 PM Christian Kohlsch=C3=BCtter > wrote: > > > > The regression in question caused overlayfs to erroneously return ENOSY= S when one lower filesystem (e.g., davfs2) returned this upon checking exte= nded attributes (there were two relevant submissions triggering this somewh= ere around 5.15, 5.16) > > Well, if that's the case, isn't the proper fix to just fix davfs2? > > If ENOSYS isn't a valid error, and has broken apps that want to just > ignore "no fattr support", then it's a davfs2 bug, and fixing it there > will presumably magically just fix the ovl case too? Libfuse returns ENOSYS for requests which the filesystem doesn't support. Hence this is not a davfs bug, davfs knows nothing about itoctls, the userspace filesystem is just returning the error value that is used to mean "no support for this type of request". So this is a bug in the kernel part of fuse, that doesn't catch and convert ENOSYS in case of the ioctl request. Fixing it in fuse should fix it in overlayfs as well, as you say. Thanks, Miklos