Linux NFS development
 help / color / mirror / Atom feed
From: VeroFess <coderzeng@gmail.com>
To: cel@kernel.org
Cc: jlayton@kernel.org, neil@brown.name, okorniev@redhat.com,
	Dai.Ngo@oracle.com, tom@talpey.com, linux-nfs@vger.kernel.org
Subject: Re: [PATCH v5 0/3] NFSD: Enforce export security after a deferred PUTFH check
Date: Sun,  1 Nov 2026 02:57:13 +0800	[thread overview]
Message-ID: <20261031185714.1021-1-coderzeng@gmail.com> (raw)
In-Reply-To: <20261030-verofess-v5-0-242eea2991f3@kernel.org>

On Sat, Oct 31, 2026 at 05:27:34AM +0800, Chuck Lever wrote:
> The series as posted has not been run against the reproducer yet.

Thanks for splitting the series. I tested it incrementally in an
x86_64 KASAN guest on d9130c9f6535: patch 1 alone, then patches 1 and
2, then the full series. I'm happy to test further revisions.

With only patch 1 applied, the NFSv4.0 reproducer returned
NFS4ERR_WRONGSEC at PUTFH for AUTH_SYS PUTFH; SAVEFH; READ and
PUTFH; SAVEFH; WRITE. The file was unchanged and the Kerberos client
could still read it, so patch 1 by itself stops the reported sequence.

Adding patch 2: with patch 1 only, an AUTH_SYS local COPY of a krb5p
source still completed and changed the destination; with patch 2 the
saved-source check made COPY and CLONE return NFS4ERR_ACCESS and leave
the destination unchanged. A permitted AUTH_SYS local COPY still
succeeded.

Adding patch 3: LOOKUPP into a krb5p parent, which succeeded before
patch 3, returned WRONGSEC, while SECINFO_NO_NAME(PARENT) still
succeeded. READDIR with rdattr_error reported WRONGSEC for the strict
child, and the NFSv2/v3 CREATE cases returned ACCESS. Over plaintext
TCP, SECINFO into an xprtsec=tls child returned NFS4ERR_ACCESS while
LOOKUP returned WRONGSEC.

On the full series I reran the earlier regression suite: Btrfs local
COPY and reflink CLONE succeeded with matching destination bytes, and
asynchronous inter-server COPY completed 4096 bytes between two guests.

I also rebuilt the full series with CONFIG_TLS=y for an RPC-over-TLS
run. On NFSv4.0, v4.1, and v4.2, a plaintext client could read the
parent export but could not enter its xprtsec=tls child; a TLS client
could read the child. For an xprtsec=mtls child, TLS without a client
certificate was denied, and mTLS with a trusted certificate succeeded
on all three versions. A raw NFSv4.0 PUTROOTFH; SECINFO request
returned NFS4_OK over both TLS and mTLS.

The W=1 fs/nfsd/nfs4proc.o build and the 259-case ASan/UBSan check
passed, with no KASAN reports.

Tested-by: VeroFess <coderzeng@gmail.com>

Thanks,
VeroFess

      parent reply	other threads:[~2026-10-31 18:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 21:27 [PATCH v5 0/3] NFSD: Enforce export security after a deferred PUTFH check Chuck Lever
2026-10-30 21:27 ` [PATCH v5 1/3] NFSD: Fix PUTFH wrongsec check when SAVEFH follows Chuck Lever
2026-10-30 21:27 ` [PATCH v5 2/3] NFSD: Check export security on the COPY and CLONE source Chuck Lever
2026-10-30 21:27 ` [PATCH v5 3/3] NFSD: Enforce export security on LOOKUP, READDIR, and SECINFO Chuck Lever
2026-10-31 18:57 ` VeroFess [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261031185714.1021-1-coderzeng@gmail.com \
    --to=coderzeng@gmail.com \
    --cc=Dai.Ngo@oracle.com \
    --cc=cel@kernel.org \
    --cc=jlayton@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neil@brown.name \
    --cc=okorniev@redhat.com \
    --cc=tom@talpey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox