🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
2 messages
2 total messages Started by "Chuck Lever" Wed, 21 Oct 2026 17:35
Re: [RFC PATCH v2 40/41] nfsd, nfs: carry UUID and GUID owners as their text form
#6134
Author: "Chuck Lever"
Date: Wed, 21 Oct 2026 17:35
40 lines
12120 bytes
On 10/20/26 11:16 PM, Jan Koester wrote:
> Encode such an id as its text form -- "xxxxxxxx-xxxx-xxxx-xxxx-
> xxxxxxxxxxxx" for a UUID, the same in braces for a GUID -- in both
> directions on the server and the client, and take such a string (it
> has no '@', so it can't be a user@domain name) as that id again.

A bare UUID in an owner, owner_group, or ACE 'who' string is a new
owner-string syntax for NFSv4, one that only Linux would recognize.
Thus it isn't interoperable with other NFSv4 stacks as proposed
here.

RFC 8881 Section 5.9 says a string without an '@' that is not a
decimal number means no translation was available and the receiver
"should not use that string as a basis for translation into its
own internal format." RFC 8000 Section 6.1 forbids bare numeric
ids in multi-domain deployments because they collide; the same
applies to bare UUIDs, and more so to GUIDs.

If you are serious about pursuing this, you'll have to start by
raising the proposed wire format on nfsv4@ietf.org before the
Linux kernel's NFS stack commits to it.

With nfs4_disable_idmapping and AUTH_SYS, numeric_name_to_id() and
encode_ascii_id() handle decimal ids in the kernel because there is
nothing to look up. Recognizing the text form in that branch only
would be the natural analogue once the format is agreed. Everything
else should go through the idmapper: extend the nametoid/idtoname
channels and the client keyring upcall to carry a 128-bit id, and
let rpc.idmapd and nfsidmap decide which strings map to which ids.
As written, the UUID check runs before idmapd for every name and
auth flavor, bypassing the cache and any site policy.

So my general preference for NFSv4 would be to pass the new format
up to the user space idmapper instead of handling these in-kernel
with no opportunity to apply local policy.


-- 
Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
Re: [RFC PATCH v2 40/41] nfsd, nfs: carry UUID and GUID owners as their text form
#6274
Author: Takeshi Nishimura
Date: Thu, 22 Oct 2026 02:52
40 lines
12425 bytes
On Wed, Oct 21, 2026 at 7:44 PM Chuck Lever <cel@kernel.org> wrote:
>
> On 10/20/26 11:16 PM, Jan Koester wrote:
> > Encode such an id as its text form -- "xxxxxxxx-xxxx-xxxx-xxxx-
> > xxxxxxxxxxxx" for a UUID, the same in braces for a GUID -- in both
> > directions on the server and the client, and take such a string (it
> > has no '@', so it can't be a user@domain name) as that id again.
>
> A bare UUID in an owner, owner_group, or ACE 'who' string is a new
> owner-string syntax for NFSv4, one that only Linux would recognize.
> Thus it isn't interoperable with other NFSv4 stacks as proposed
> here.
>
> RFC 8881 Section 5.9 says a string without an '@' that is not a
> decimal number means no translation was available and the receiver
> "should not use that string as a basis for translation into its
> own internal format." RFC 8000 Section 6.1 forbids bare numeric
> ids in multi-domain deployments because they collide; the same
> applies to bare UUIDs, and more so to GUIDs.
>
> If you are serious about pursuing this, you'll have to start by
> raising the proposed wire format on nfsv4@ietf.org before the
> Linux kernel's NFS stack commits to it.

I recall rumors of MS wanting to stick Windows SID in text form into
the NFSv4 protocol.

THIS proposal is even worse, in every imaginable way:
Stuff an unreadable 128bit blob everywhere. I am sure people having to
debug that in the kernel will LOVE the idea (compare blob a with blob
b as human,YAY!), and admins facing the 128bit hexdump will send
marriage proposals to the author, for making their lives even more
heartless and miserable.

NAK, -1, for the whole patch series.
-- 
Internationalization&localization dev / 大阪大学
Takeshi Nishimura <takeshi.nishimura.linux@gmail.com>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads