Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp123777rdh; Mon, 18 Dec 2023 13:43:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZOH/Vq650Av6XH1BMMFZHpCM1dhW9ycDVALBroAOISQsJw1gZEfk8AUFPy3pVrDv+I2dw X-Received: by 2002:a17:902:d2cf:b0:1d0:6ffd:9e1f with SMTP id n15-20020a170902d2cf00b001d06ffd9e1fmr17228388plc.113.1702935808918; Mon, 18 Dec 2023 13:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702935808; cv=none; d=google.com; s=arc-20160816; b=X25XLCRQkVJ1nfSfZ2OlKLv9IcAbNu0wVMwEY2526DEwI8BrdxbIDklWDnsTt4R9QN gOMK7gNzb0Nn09FurjVcRc9XHHJ+12MsWpOoO8tgaoZExAwUv07nCcx0jlWqkmIibC20 /c3tFoI9y/sa7GHbbBKaH1r7VNmck51/NG0gPCQMp6ZhChpYiAAQd5xPjKRsFlIn/SwT RXiOqwDDkX1N248W6C30iV8EberQkpOtreF5uzf9IQacJV0MLRaQu3kLcDJsUDCYsgml ZzJrL2bTvFung9f8jC604F5E3+1P7s0mpbtCmJ9eBToeTeiOjXh2pq9nkaPpDxO+Da2u s3ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cHVJ5zrpR55h/f4c4+uxF5tJhuYM/8xsXcdIalJ9mlk=; fh=sNPrBjA++yHSLwvfVTpITizLEq/w9O7gi5qJ/WgO1Ko=; b=BV3AAIlldhkXVHe7GfyzvRDcGksGn5oOvK9o/v7DxGuvP+hHLUskO8qzuZXrtnPoFA mPNBIrpiZmFQ7osehlNjW5MakKODTE7/6My/4qN2SR5yM7NFHoyCYSWXr42JYoOV5YzM nc1lLRsw7IUzJhusvxFeu8pD5lvMgexyyBlkGWtVNSX+EbE95rL2qe1mBIpUlxoGRKtC kjAZS2RKHBsjt1tkAgofN4H9Bc9ESHMDzfABmyb5Cu5KDtXUOvxkSiaHcA+ZBpTgPwE2 208/GbTHolHU+OB2MuX30AMzutJu1U5Wn4V2GFiwKwNigYVofHXor7obrf7Yq7rKptje gycQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ctm+njDw; spf=pass (google.com: domain of linux-nfs+bounces-696-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c9-20020a170902b68900b001d37d4f6f6dsi7049076pls.114.2023.12.18.13.43.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 13:43:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-696-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ctm+njDw; spf=pass (google.com: domain of linux-nfs+bounces-696-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 61CCD2861C0 for ; Mon, 18 Dec 2023 21:43:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A03F11DA3A; Mon, 18 Dec 2023 21:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ctm+njDw" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED62E6FB6 for ; Mon, 18 Dec 2023 21:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702935803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cHVJ5zrpR55h/f4c4+uxF5tJhuYM/8xsXcdIalJ9mlk=; b=Ctm+njDwCfShF4O1T1hwOIM/0gkIBbZ21nj5Q/FZsdur+2nOqFn/p6k5rGXJ9bb+fjdQ3g iR5VXnqnm9fxVQAKlISqiiJwP/Rt46vqoyyhrzUnoY1iGdUu+sP2EecgCfMt0hK2u8lQnT Thxs31Tz5g+O7RfjTyZh6VRWK9Q2hjw= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-117-31nYh-qXMb-EsHPc7G-_oA-1; Mon, 18 Dec 2023 16:43:19 -0500 X-MC-Unique: 31nYh-qXMb-EsHPc7G-_oA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9AC753806702; Mon, 18 Dec 2023 21:43:19 +0000 (UTC) Received: from [100.85.132.103] (ovpn-0-5.rdu2.redhat.com [10.22.0.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 22274C15968; Mon, 18 Dec 2023 21:43:18 +0000 (UTC) From: Benjamin Coddington To: Martin Wege Cc: Linux NFS Mailing List Subject: Re: umount.nfs: /mnt: block devices not permitted on fs Date: Mon, 18 Dec 2023 16:43:17 -0500 Message-ID: In-Reply-To: References: <7849E95F-603B-49B8-B251-73CAB4811E48@redhat.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 On 18 Dec 2023, at 3:37, Martin Wege wrote: > On Thu, Nov 30, 2023 at 1:26 PM Benjamin Coddington wrote: >> >> On 29 Nov 2023, at 22:45, Martin Wege wrote: >> >>> ? >>> >>> On Fri, Nov 24, 2023 at 9:57 AM Martin Wege wrote: >>>> >>>> Hello, >>>> >>>> We get a umount.nfs: /mnt: block devices not permitted on fs in a snap >>>> container on Ubuntu. >>>> >>>> Can anyone explain what is going wrong? >> >> Something in umount is calling umount_error() with -EACCES. I admit that >> error message makes no sense, it seems to be cruft. > > Can this be fixed, please? Probably, have to figure out the problem first. >> Maybe you can run the umount in gdb with a breakpoint on umount_error() and >> send along the stack. > > This is much more difficult than I expected - the target system is a > Ubuntu Core system, which uses SNAPs, and debugging there is a > disaster. Hm, I don't know what SNAPs are.. > Does umount have an extended debug output? Not really, maybe try with "strace" and we can see what the kernel's returning? From there, it might look like flipping on some debugging (check out the dprintk's in fs/nfs and net/sunrpc and the `rpcdebug` userspace tool), or maybe some tracepoints would help. Ben