Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5872660rwb; Tue, 17 Jan 2023 20:45:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXuvPZK9Pvzx8PgjuAPQ9qbUusxBJfDjyE3kPuycAfWtuuZfPjhG0TMXNI5Rb9RdngwPNM2V X-Received: by 2002:a05:6402:1944:b0:49c:1fe4:9f17 with SMTP id f4-20020a056402194400b0049c1fe49f17mr16223132edz.37.1674017151360; Tue, 17 Jan 2023 20:45:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017151; cv=none; d=google.com; s=arc-20160816; b=gm5P5QpOlIow59Wo1Sgb3j5Et5ZW25LLpAGsANn79riA4xQY7tqhcRFxJIff157RqN gWtui9loQlAjoMTjy9+uqEx2M0kk0h6O6RU6wSo/7JKuZqp+dWV6lH65OgW0wAOfgPv0 EoFD+oFiAKrlHJKWonDznaEwNpA0ocldldet5eA6SA6wfTDDCTrjZMfkPhfy48yGUl5Q fWZPGmhdXe9ZJvtfslo/yvV4rFCwSmvmDB28j21lceNaalW9ij6eYfYcnIxoEBJ+JpBE DT/79ySQJvZlGLkowuT3GHmh5qS8vexeubJ+J8yeVFRhciVxuQYSmzB2ERVW8C1Pks+s QJOw== 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:reply-to:user-agent :mime-version:date:message-id:dkim-signature; bh=KNEkL77+Yf10oyJKy3gBDpH06+cEzlkxsfnfr0mnfTo=; b=roBGkoC9Q7ero2nhFNlFOesidV1XQjLHOW3Miqwn2MvW46QFABdYU0HQeDxr7yYAGR tlUu/EsKdyG6hciR/NValF54DI8iV8x1EU29+5NoVsyjtqmgwEqNbFLvJpGULYc6l4vh c3rZ+rm8+LGE6yB4TABW1aNGW1AAIEbQ9OVJ7Y0zRDLhSZFHxm6093nvPJEwLq2467Xy cs6OtkQhT4kNRPgqXIZp8jhj+fYcsGluxhdUvRLcc4oWeJWCpjPBhjI5ZQo/YgogbWTv umT9vBwIg1LpmSzgB0jXOeCJuyvVPPm+4EHq5xlMOapqlGNZZKY4yYpoOsfJki9eQTGe eUnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eitmlabs-org.20210112.gappssmtp.com header.s=20210112 header.b=oiy1xxTh; 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 d14-20020a056402400e00b0045c93142111si13177773eda.70.2023.01.17.20.45.37; Tue, 17 Jan 2023 20:45:51 -0800 (PST) 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=@eitmlabs-org.20210112.gappssmtp.com header.s=20210112 header.b=oiy1xxTh; 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 S229705AbjARDmA (ORCPT + 46 others); Tue, 17 Jan 2023 22:42:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjARDlz (ORCPT ); Tue, 17 Jan 2023 22:41:55 -0500 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E2355410B for ; Tue, 17 Jan 2023 19:41:53 -0800 (PST) Received: by mail-il1-x133.google.com with SMTP id u8so16507886ilg.0 for ; Tue, 17 Jan 2023 19:41:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitmlabs-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=KNEkL77+Yf10oyJKy3gBDpH06+cEzlkxsfnfr0mnfTo=; b=oiy1xxThU4TFxhrAjE4jpkIiZq0/F5ktgVCk6aJt7iQ87rcGRpNxwun+e96tcls+Cg BfW4+OLjuZ0K+Dz70cqs8lph8Y5UR7Jqtp2v4tEALqp630TySTyD1XmPEOIRXtYi/MIV s9jb6lpgMWaefgtJ6YogmQ29Uf+Fpv6qgauk3jFjBL2B318a2yGPaFJe1sgNIByPlcRS OjleCEHthooLMneQb87mjnH8XJPVM2RNETm1TGs21GKuVXVXy14TbWfDRB0VEH/ERbgn M7qlkF79CorfUc5CLHPjA8LxbKdTMWm+CG+9CNW8wUxaVar9tlUchDTLvgMzr5AcvW4+ 87aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KNEkL77+Yf10oyJKy3gBDpH06+cEzlkxsfnfr0mnfTo=; b=hIj2FZKstIf/GY1r2TXDLgmXZM+RI8Wj7V0kyhCPvg0Ps63CvevvF9E2H+JbrM9s6x qRmRhEFlT/N8V5PER6VulpbfUC6+gfPTBlNDHIEBEhuJW3MB6UH67GwsEueDRIp44dlf H7ilGPxe7/oEwqviifRgSKby5ZoBUxt+TIBz5vgynJM8hSOFFttYomqrWpL7gJEPuRm9 kURGDauHF+neMWjeP+/J3GMu4H6NlHUkJ3spghK6zh6j7mqxQjfKVnII+Pz5wIJC1lMM 4dCH6rgaDb9E2shd59I0770/J0t6n+7nSy5PTMpYRycw4WAiuBR9l9hImHs3QOpukaIn Eb5A== X-Gm-Message-State: AFqh2krE7bwQK8p3fbSphPc7V+NDeAzvC1oC936Sq1iieT2/gH7cKurD 0KdH11Y+IhCk8Uq49f3PcqtuZw== X-Received: by 2002:a92:3601:0:b0:30f:1c5:fb89 with SMTP id d1-20020a923601000000b0030f01c5fb89mr4634861ila.5.1674013312438; Tue, 17 Jan 2023 19:41:52 -0800 (PST) Received: from [10.20.22.12] ([64.124.71.89]) by smtp.gmail.com with ESMTPSA id b91-20020a0295e4000000b0038a760ab9a4sm4850261jai.161.2023.01.17.19.41.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 19:41:51 -0800 (PST) Message-ID: <490c5026-27bd-1126-65dd-2ec975aae94c@eitmlabs.org> Date: Tue, 17 Jan 2023 19:41:46 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Reply-To: jonathan@eitm.org Subject: Re: [PATCH] [REGRESSION] ovl: Handle ENOSYS when fileattr support is missing in lower/upper fs Content-Language: en-US To: =?UTF-8?Q?Christian_Kohlsch=c3=bctter?= , Linus Torvalds Cc: Miklos Szeredi , overlayfs , linux-kernel , linux-fsdevel References: <4B9D76D5-C794-4A49-A76F-3D4C10385EE0@kohlschutter.com> <83A29F9C-1A91-4753-953A-0C98E8A9832C@kohlschutter.com> <56E6CAAE-FF25-4898-8F9D-048164582E7B@kohlschutter.com> From: Jonathan Katz In-Reply-To: <56E6CAAE-FF25-4898-8F9D-048164582E7B@kohlschutter.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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/18/22 13:33, Christian Kohlschütter wrote: >> Am 18.07.2022 um 22:12 schrieb Linus Torvalds : >> >> On Mon, Jul 18, 2022 at 12:28 PM Miklos Szeredi wrote: >>> So this is a bug in the kernel part of fuse, that doesn't catch and >>> convert ENOSYS in case of the ioctl request. >> Ahh, even better. No need to worry about external issues. >> >> Linus > My concern was fixing it in fuse instead of ovl would leave non-fuse filesystems affected (even though I don't have proof that such filesystems exist). > > I'm glad you are OK with Miklos' change; the outcome of this discussion certainly adds some nuance to the famous "don't break userspace" / error code thread from 2012. > > Best, > Christian > I believe that I am still having issues occur within Ubuntu 22.10 with the 5.19 version of the kernel that might be associated with this discussion.  I apologize up front for any faux pas I make in writing this email. An example error from our syslog: kernel: [2702258.538549] overlayfs: failed to retrieve lower fileattr (8020 MeOHH2O RecoverySample2-20221219-A-JJL-WebinarHilic10C-TOF-TT54-Neg-1722.d/analysis.tsf, err=-38) The only other related log notification I get occurs when I do the overlay mount: kernel: [2702222.266404] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off. In the following description, the error is occurring on FileServer2 Our configuration is as follows: FileServer1 "/data" --- NFS(ro)----->  FileServer2 On FileServer2 I wish to export that /data directory via Samba so it appears as RW by a specific user.  I accomplish this with bindfs followed by overlayfs: # bindfs -u 1001 -g 1001 /data /overlay/lowers/data-1001 # mount -t overlay overlay -o lowerdir= /overlay/lowers/data-1001,\ upperdir=/overlay/uppers/upper-1001,\ workdir=/overlay/work/work-1001,\ /overlay/mountpoints/data-1001 Then I serve this out via Samba: FileServer2 "/overlay/mountpoints/data-1001" ------ ( SAMBA/CIFS) --->  Win-Client I repeat this bind/mount for several users - each with their own "writable" copy of the data.  This mostly works very well... but there are some software packages on the win client that fail mysteriously and my FileSystem2 log shows "err=-38" messages for various files at the same time. I am guessing there is some relation between the lack of uuid (because it is NFS or a bindfs?) and the failure to retrieve the low fileattr, but, I am humbly out of my depth here. -Jonathan