Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3677959imw; Mon, 18 Jul 2022 12:29:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tw0YDlYhttNEbfWKMh0GLSVGy8B93X5CLRsgFsXWStcune7uwLJkzBjwd6R9KINZT4RyQN X-Received: by 2002:a63:4918:0:b0:419:66f9:7b01 with SMTP id w24-20020a634918000000b0041966f97b01mr25205878pga.121.1658172589217; Mon, 18 Jul 2022 12:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658172589; cv=none; d=google.com; s=arc-20160816; b=Xg4XRozq/Fcn9iACb3ObajVjL0eGZFtbvoVM/noR6XBJimGo+ooyrJ00D3HHt6xgKy C/aQ4S9t13nYuUKAatohwnbD1yUtFeNPZKdLo/Zwxs5h2saYEZ4I1i7CM7iYjsrMPC8l RjdfUE9niTkPK0QVQjT/iJlmhuN4MoPNw9D/XtMyRNCBlAxKcbEwINDpvsKbhPy70pMy 2pxBNlFa4DHAflRCKqeDAON/7K74HBbFFPfVj/uokX2EdYtev65zZrunUNWR253e9UmI +k/2oBCcGhbQ2SO1IE1bvAPGySNSBbUi6Q/GE3ReWQT6B/KEuTCb19G6OWKjJ4JNHvNZ lHpw== 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=TdpNh/OtxrXAgRkyZLTx7sdU3f7L5qyIViCiqKyQJ5I=; b=wr3u3SGYo6PmlzwKcNUJMfEBUQ4D4A/j1PozZh0h4IvBfq1wCnj2KeAwLD0aUd2Cmr m3+SOEdg62e8ARAr6ii+RC9Z9q/9URRX6cKnFw+sYVMPUt/urJ4zC3sErbqE/80ux2OU C+jbg4zibOfh9INmrWpL77I82Xz0S1Nm6ctZPt2umFshijGtxiNQtafreTWghaWLq1Lu 16hM8mpmFnGqerfTM9kSd8hdp5feDpHnLyVOr19ro9bObQPMG8vSMHaFbGBb9cuNrzfs tm9L8iT2tEYjFqMh4RmiGHGXIrkH+aEvQk5Mx+ozm5h/gawji/gGLMr73wSb4QIwHSrh ISmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OFD0dfOk; 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 e25-20020a633719000000b0041299eaed06si12790952pga.430.2022.07.18.12.29.34; Mon, 18 Jul 2022 12:29: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=pass header.i=@linux-foundation.org header.s=google header.b=OFD0dfOk; 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 S235338AbiGRTR7 (ORCPT + 99 others); Mon, 18 Jul 2022 15:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230317AbiGRTR6 (ORCPT ); Mon, 18 Jul 2022 15:17:58 -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 4CAA82F660 for ; Mon, 18 Jul 2022 12:17:57 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id ez10so23056325ejc.13 for ; Mon, 18 Jul 2022 12:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TdpNh/OtxrXAgRkyZLTx7sdU3f7L5qyIViCiqKyQJ5I=; b=OFD0dfOkX/Ub3w/l4upU/yo1HLwEnU8/D4qFP8bCzSuiF0FPoYp9aqVZAXPaNWYmg5 j6RR4FW3j0s/IQEJ24FN9jyOjGCh5Wrep+tS1pwAh/psbXQ75dFjKYKDtw5SUqUfKpAk pF8xp6rX5tMH86kWWgvw2+CO5ipjAHrRrG0vY= 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=TdpNh/OtxrXAgRkyZLTx7sdU3f7L5qyIViCiqKyQJ5I=; b=4sv7/5/hyXw9nuttMz44Vg5CadqfdhCDpET1O15fgZjcnqIq59FzJehDOhn6p+HkW4 lvKH42f7cSlcCph2Tem08dfOlhFpvTELTMsmLGFJN0/5D+h9nBq+IqZL/xxmyHwElYYe 3z0cK1WP5IV9MBDUcabSNQjBGQ9Fc8FYPfpClxNb23EEJs1iUMZ/UJvo2rllO30+p4K/ sfEw5C8Rq4Al8bi+5IU+EmfFPCQCwjhwD9PnHhoHp6LX1Pt1sUOP2KUeGrh9OJ0zNGBH G/OXj+Ik3gVYllkhdLrtvGwbX+v7Zkx5qFBYvn9T+pGmrFz6CIopi5uTWK8BmuJEaocq KZcg== X-Gm-Message-State: AJIora/ef9wRxhASilbxDQfgoEvOWvtfnfI7qLOHoc58rtN+ueDmzYmM HVaxEVaPSjkA8eeSahBjm9bGSGaDVnqR/tT1xNE= X-Received: by 2002:a17:907:970b:b0:72b:5919:506c with SMTP id jg11-20020a170907970b00b0072b5919506cmr26383766ejc.241.1658171875507; Mon, 18 Jul 2022 12:17:55 -0700 (PDT) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com. [209.85.221.48]) by smtp.gmail.com with ESMTPSA id j26-20020aa7de9a000000b0043a7293a03dsm9052653edv.7.2022.07.18.12.17.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jul 2022 12:17:54 -0700 (PDT) Received: by mail-wr1-f48.google.com with SMTP id n12so5624564wrc.8 for ; Mon, 18 Jul 2022 12:17:54 -0700 (PDT) X-Received: by 2002:a05:6000:1f8c:b0:21d:7e98:51ba with SMTP id bw12-20020a0560001f8c00b0021d7e9851bamr22879411wrb.442.1658171873851; Mon, 18 Jul 2022 12:17:53 -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: Linus Torvalds Date: Mon, 18 Jul 2022 12:17:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [REGRESSION] ovl: Handle ENOSYS when fileattr support is missing in lower/upper fs To: =?UTF-8?Q?Christian_Kohlsch=C3=BCtter?= Cc: Miklos Szeredi , overlayfs , linux-kernel , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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, Jul 18, 2022 at 12:04 PM Christian Kohlsch=C3=BCtter wrote: > > The regression in question caused overlayfs to erroneously return ENOSYS = when one lower filesystem (e.g., davfs2) returned this upon checking extend= ed attributes (there were two relevant submissions triggering this somewher= e 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? Yes, yes, you point to that commit to util-linux to also accept ENOSYS, but that's from 2021. So it's presumably triggered by the same issue - a rare (or new) and broken filesystem returned the wrong error code. Let's just fix that. I do not object to *also* doing the ovlfs "accept ENOSYS too", since it seems harmless and understandable, but at the same time this all does make me go "the actual *fundamental* cause of this was davfs2 being confused, it should be fixed there too. And yes, yes, I realize that davfs2 is out-of-tree fuse filesystem, and is not in the kernel. But have people made the bug-report to the maintainers there? I don't think we should *only* have a kernel-side fix for a broken FUSE filesystem. Particularly not one to some random bystander like ovlfs. In fact if we do a kernel patch for this dodgy filesystem, it would seem to me to make more sense to have FUSE notice that "ok, ENOSYS is broken for this situation, let's translate it to the right ENOTTY", and that would have fixed both the ovlfs case and the util-linux one. Hmm? Linus