Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3277378imw; Mon, 18 Jul 2022 05:26:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYfkr7Dsz7F9ImMyWXk3uSGb3FVNBA5P64wCPprGnjbk2iSbRtq4Ty0aOIUQWudKLBX0bZ X-Received: by 2002:a17:90b:1644:b0:1ef:88c6:6e39 with SMTP id il4-20020a17090b164400b001ef88c66e39mr37893205pjb.122.1658147196236; Mon, 18 Jul 2022 05:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658147196; cv=none; d=google.com; s=arc-20160816; b=max3gEbKA/mBafyqEITBj/Z7xfuJ34i/WjyVsCDP7GoA5m1SL713hS2BS7U1PdywYs DqqUUnfiJpIWUs8m1M73hCiLobHxALjEu72Bv89sFiP3OwX5opD3qwzLliCoRNKiuD0R Cgv4j62QxL8ngcXlc9yQ10ehogI8v4Idj0BcthqInHJY0B7v7HfeNhe3/95ynCRWkh3T zZNBkOejGNlAG4XnB+mDXRNbkozZwABHEWPb0Y6JyTrfnGLJwqOTWmWYSjOtSyfRuP8B PXFUtBvGhVu0qpiTTeug8Z5iBF/17y1jSSgEUrfRscz6I0N3AHOW4W5AWvPXnKZv76rE GsAA== 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=ie8y8xom7gdgORK3/wgC6v2nBY/N6LA9J5NWgTDl2HM=; b=xqvO7AbAvCQucTN+O+ArR4ad9Ypa/IERwz9+QsoCFP5KHFvJNX7SjkSZjitZEKqpna FsnhZNoWdqG+SPC+Lz/taiw57+o/xDO+0oGesf8mnMpmqXXw2HxA4e71zg57Qb4Ysklo hlZXJu8qXkPI67v1j8G/KuDV3wUzURPB3LJl6vCCvMXlcQ6YKQSVWIvHgKVBoRMOLue6 sosd3ogn20AXYI+A5Kuqm9LYdnQvrstLpElQ+dUvxXqlvN9rgYQbGj3Jl6Mw79Wlvuy7 DwyMnCQDMFROWlmF1kD6rqy4/Qoeaii5ZOmMx+Qw2vZoMkU+RDkLpLjCugxoq95ePyg5 GkKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=dZ9jScMt; 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 v28-20020a63465c000000b0040da3e73d46si14119756pgk.139.2022.07.18.05.26.21; Mon, 18 Jul 2022 05:26:36 -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=dZ9jScMt; 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 S235020AbiGRMVd (ORCPT + 99 others); Mon, 18 Jul 2022 08:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235036AbiGRMVb (ORCPT ); Mon, 18 Jul 2022 08:21:31 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EFF725282 for ; Mon, 18 Jul 2022 05:21:29 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id oy13so20848088ejb.1 for ; Mon, 18 Jul 2022 05:21:29 -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=ie8y8xom7gdgORK3/wgC6v2nBY/N6LA9J5NWgTDl2HM=; b=dZ9jScMt4MO13dtuzooZqTSxO2bjJkLycwSI6B0TBmg9pnUReCQ76CmaV4WQ6A5J1F BXd0HR3D0YzUSUo21ICIN4NsTAl3SmzYXTrgawKRuq35PsRaR1GgaemH76YDIv0NQeDv D1EK/PliBPHo5GdlCRd296v+4mVWyx5UzS/OI= 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=ie8y8xom7gdgORK3/wgC6v2nBY/N6LA9J5NWgTDl2HM=; b=6ArFf2iTYJ4khQBBIo+80nV2+od1KaJ/r08PKPalQdpZkNaTS1vn5cW2reVI49Gw4k KYUhYoEcMCtbZQuVKgguhVKf5tdqkNGyYOK441sVN8wC7VTOALRX2/NOCeGIpUfqQmZj CtWagZI13tEczMhX7hvTHE2DGPRpjKaneVs+Gx545VKU8Nb/Dz5yLg6ssPxuSwtY1zok vUKLPmbQZgrbuqMmmI5Rwt+EvHD74pVWHxCgeNO7fm5zPnkKEV2sjEeuQaSERuFiggnF 09zJPE1PmGkiBs7DXopcCFHRYTIkb0Puy4ayyE4QLNZCwZA1GB2wQQxhwSK5CUE+CDoF XPuA== X-Gm-Message-State: AJIora8h3su0l1DU1DDKUKcR5R517iij/Hoe+Bf15Rzosr05LP483333 kc8O5VjMR7jam0luDZ6AGt0W/1TiIG1Ka0X35k+STQ== X-Received: by 2002:a17:906:93ef:b0:72b:44e2:bdd8 with SMTP id yl15-20020a17090693ef00b0072b44e2bdd8mr25545654ejb.192.1658146887863; Mon, 18 Jul 2022 05:21:27 -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 14:21:16 +0200 Message-ID: Subject: Re: [PATCH] ovl: Handle ENOSYS when fileattr support is missing in lower/upper fs To: =?UTF-8?Q?Christian_Kohlsch=C3=BCtter?= Cc: overlayfs , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org 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 12:56, Christian Kohlsch=C3=BCtter wrote: > However, users of fuse that have no business with overlayfs suddenly see = their ioctl return ENOTTY instead of ENOSYS. And returning ENOTTY is the correct behavior. See this comment in : /* * This error code is special: arch syscall entry code will return * -ENOSYS if users try to call a syscall that doesn't exist. To keep * failures of syscalls that really do exist distinguishable from * failures due to attempts to use a nonexistent syscall, syscall * implementations should refrain from returning -ENOSYS. */ #define ENOSYS 38 /* Invalid system call number */ Thanks, Miklos