From nobody Wed Jul 14 16:20:16 2021 X-Original-To: bugs@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 E9A2B8D69A1 for ; Wed, 14 Jul 2021 16:20:21 +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 4GQ2m423pwz4j86 for ; Wed, 14 Jul 2021 16:20:20 +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 DA13919394 for ; Wed, 14 Jul 2021 16:20:15 +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 16EGKFTk033248 for ; Wed, 14 Jul 2021 16:20:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16EGKFOr033247 for bugs@FreeBSD.org; Wed, 14 Jul 2021 16:20:15 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: bugs@FreeBSD.org Subject: [Bug 257187] NFSv3 server creates symlinks that local clients can't read [ZFS] Date: Wed, 14 Jul 2021 16:20:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wollman@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257187 Bug ID: 257187 Summary: NFSv3 server creates symlinks that local clients can't read [ZFS] Product: Base System Version: 12.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: wollman@FreeBSD.org Our backup vendor alerted us to this issue. Most of our NFS clients are Ub= untu systems, and use NFSv3. Somehow, one of our users managed to create a bunc= h of symbolic links for which lstat(2) succeeds, but readlink(2) fails with [ENOENT]. The links work just fine on the Linux clients over NFS. Example ktrace on the server side: 7597 readlink CALL=20 fstatat(AT_FDCWD,0x7fffffffed99,0x7fffffffe9d0,0x200) 7597 readlink NAMI=20 "/export/sanchez/results/pls/victory/scc/2021/04-ugf/symlinks/RC/ugf_cc_scc= -road_central" 7597 readlink STRU struct stat {dev=3D16608010843616580276, ino=3D149163= 86, mode=3D0120777, nlink=3D1, uid=3D23398, gid=3D21158, rdev=3D184467440737095= 51615, atime=3D1619701157.648845720, mtime=3D1619701157.648845720, ctime=3D1619701157.648845720, birthtime=3D1619701157.648845720, size=3D298, blksize=3D4096, blocks=3D1, flags=3D0x800 } 7597 readlink RET fstatat 0 7597 readlink CALL readlink(0x7fffffffed99,0x7fffffffdff4,0x3ff) 7597 readlink NAMI=20 "/export/sanchez/results/pls/victory/scc/2021/04-ugf/symlinks/RC/ugf_cc_scc= -road_central" 7597 readlink RET readlink -1 errno 2 No such file or directory Results of Linux stat(1) utility on the client side: $ stat /data/sanchez/results/pls/victory/scc/2021/04-ugf/symlinks/RC/ugf_cc_scc-ro= ad_central File: /data/sanchez/results/pls/victory/scc/2021/04-ugf/symlinks/RC/ugf_cc_scc-ro= ad_central -> ../../41-cc-clean/2021_04_25-01-r5326-ugf_scc-1_4_16_64cores-34cqCap-200gvt= P-OoO-t_2-prio_Timestamp-issWidth_4-bfrs_16-l1KB_32-l2PerCoreKB_256-l2Laten= cy_9-llcPerCoreKB_1024-llcLatency_12-memGBps_192-freq_3500-lnkByts_24-subnt= s_4-serializeHints_True-tbPolicy_Dequeue-clea.../ugf_cc_scc-road_central/ Size: 298 Blocks: 27 IO Block: 131072 symbolic link Device: 36h/54d Inode: 14916386 Links: 1 Access: (0777/lrwxrwxrwx) Uid: (23398/ victory) Gid: (21158/sanchez-grp) Access: 2021-07-14 12:06:14.024176419 -0400 Modify: 2021-04-29 08:59:17.648845720 -0400 Change: 2021-04-29 08:59:17.648845720 -0400 Birth: - This seems like a bug in either the ZPL or the NFS server. I can't even see how local lstat() and NFSPROC_READLINK could succeed and local readlink() s= till fail. --=20 You are receiving this mail because: You are the assignee for the bug.=