From nobody Tue Sep 13 02:30:41 2022 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MRSBB2fsbz4c5hM for ; Tue, 13 Sep 2022 02:30:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MRSBB1dl8z4FFJ for ; Tue, 13 Sep 2022 02:30:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MRSBB0hlrz1B9f for ; Tue, 13 Sep 2022 02:30:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 28D2UgBq082267 for ; Tue, 13 Sep 2022 02:30:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28D2UgY9082259 for standards@FreeBSD.org; Tue, 13 Sep 2022 02:30:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 266236] ZFS NFS : .zfs/snapshot : Stale file handle Date: Tue, 13 Sep 2022 02:30:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: eborisch+FreeBSD@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663036242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QlZojaYl+LGbNeoIgYOMIbZsGkVsUKa0wwSBy6pFwFM=; b=JWeUpJI42X/DfF2RUCjArmpqjEgxPHUGd8hA+iW9RCwaOGtCFzVjJrV+wj/+qgguPSsrmO NARMqf/INhVUPbBsoUmAFTzDkbBCiN/5DhIzlAkhvh6dueAlzw2zobU/f2GPRTkK6IOc3r jaYjFGrS/7EpauCuRNtTpvkwrAMlSGU5LOpWYhVTn+p9b19oYjhL2CMnjyuZcIEcVlMXFi l2wQ528P89ZPUwJc5Evpr9sLkkvSYJLmaXasqtdwtFbjuuXA6ccA99o+JcAjoItAAAFimZ ZDSliFpbARxrNLtDz112qVnNAuIz6H0xIYv7Or+2caD0jCWA0/+ll26MeiJJwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663036242; a=rsa-sha256; cv=none; b=tGkR6fa4tM+SyNOxeCu1t9LK0aEVGtCw72skUzPGItPQVrGHV2rpM/PEq09cEQyjPHJpNQ nDpswPhvh7Z9eoqm/utN2wXhHbj08PEGeuVyXdQAhC1DSGdTJZbd/GtGKpES+ql4zcJjDY qNWX8O+1bbghy3SN63bUFHe4cxblZAJP+uL4zI2O6HAxJeteR60VAC8k2Gp3XwW6Sngp0v uUc/STPzXqlNhAiS85Id2lPtzVJ+GtCQTtJ0rKCjTq/rdQtFlUlbr5avh7HLv2KQ8ceihs ouFFuETAIjf2h8OZIGc8Oq7cl3ib1AFXQoKAgNOIEDk8AKQ1mI0mXwaIDRVFlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266236 --- Comment #6 from eborisch+FreeBSD@gmail.com --- Some extra info: Steps I took to reproduce: 1) Mount NFS-exported zfs filesystem on client. 2) Try to enter a snapshot (.zfs/snapshot/foo) directory on client -> Stale file handle error. 3) Unmount on client; stop nfsd on server 4) mount -v on server shows the requested snapshot as mounted 5) Try explicit unmount of the snapshot path -> umount hangs (but the snaps= hot path no longer shows up in mount -v) 6) Try deleting snapshot -> zfs hangs procstat -k $hung_unmount_pid:=20 PID TID COMM TDNAME KSTACK=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 5260 101043 umount - mi_switch _sleep rms_w= lock zfsvfs_teardown zfs_umount dounmount kern_unmount amd64_syscall fast_syscall_common=20 procstat -k $hung_zfs_destroy: PID TID COMM TDNAME KSTACK=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 5826 101058 zfs - mi_switch _sleep vfs_b= usy zfs_vfs_ref getzfsvfs_impl getzfsvfs zfsctl_snapshot_unmount zfs_ioc_destroy_snaps zfsdev_ioctl_common zfsdev_ioctl devfs_ioctl vn_ioctl devfs_ioctl_f kern_ioctl sys_ioctl amd64_syscall fast_syscall_common At this point no _zfs_ or _zpool_ commands succeed. (Or at least, none that= I tried; all hang.) Restart required to unwedge. --=20 You are receiving this mail because: You are the assignee for the bug.=