From nobody Tue Mar 24 03:42:59 2026 X-Original-To: freebsd-hackers@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 4ffwqb0tbRz6W23K for ; Tue, 24 Mar 2026 03:43:23 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ffwqY1V7Vz3GbW for ; Tue, 24 Mar 2026 03:43:21 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20251104 header.b=scrxSvkm; dmarc=pass (policy=none) header.from=gmail.com; arc=pass ("google.com:s=arc-20240605:i=1"); spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2a00:1450:4864:20::52e as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-66a4c6bb6ecso46995a12.1 for ; Mon, 23 Mar 2026 20:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774323794; cv=none; d=google.com; s=arc-20240605; b=BeUvSZOvW/2PdTB77NfgabbybXExcnVKggSVI38I3sliaKgi9YDKy7NHy9/U/KVbBV nIJSR/K2cS+i5ELOIgVEV9OR/bwrxBBEL/AvvXz+kDX4m6G1D9aj3MJOXEloeTBfhsr1 9BUEZZdJ5f4+Uf7HJMJoPrruZkGR4kvoW6mx1uzoLq1thfhXOpUnnb1SHgZuhq3Y7tFs zl/vMHnbzZ0ZFKQAuQQhdYxb9ZGu2t1lG9/IoZfCxs7YxER5M9o/OD6Mi050xpaNsQ0b Idzvm7UlQBFZbcRwSKxXNeFCJntDGm93k5/C28UthB09u2LrM6jXO7nN9VdNPmaSO3xR sqEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/Lc8ngqt2Zf4OhCsjMN2zzZTXOhaxX4QmkesB9wk0rk=; fh=fVlNH0ckEBffkk865hDjLEKMEqAmysVF6ih4C2Pyc3Y=; b=D4Ja6naOXSl9/rJTTxnfH/AIFlYDgVDcGBHQTG0qpVVVtls4PLGWx3Ea8zjeP+9ipY 7EJUZ2DFprMb/oXOhtrfZt4xGj2l2QYIvi+NOl/v2ZWfobaF67ONkDbl/Av4LRhZBtJ9 yeDwY25pfNjFZK89ln+anqBXaSOSb9t1NzZZqdxlvnliNOjbVo0Rk9sJlzTsPg6ZD6m1 Z+NprYwdEG1ONVCzm7lloevUiR8cWO6UxNlZvPMRy2E/fBA9tMa6OoI2nM8+weSZaAWU Z8r9QiKx6IQMYLOj7Ot2vaMPqZsUBBnIi86JstHSsWvyTQt1mdhAUKKjH2Bn6xDLBbzM Hg5w==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774323794; x=1774928594; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/Lc8ngqt2Zf4OhCsjMN2zzZTXOhaxX4QmkesB9wk0rk=; b=scrxSvkmR2BewVGjzv/8/U8Rg8QREO/2uoq8h3PXNolffG5laqZfXcHKD3LwNyEgkM OR5QwHltwT3WxyKBCtVhVZNAWIhmUp6UQgXoCnz3YDb3wek6EAQjTBFUO2dpRlujed/2 ma9ss/CS7C2eV4tbswYx5+ITudNHFJR5dLHIq0D3MnGClxzpvYqQhX22S9EQAGZt0mYP qJK+vgQXEpWJflEjEtjba/wXqnN/ynblsr1WfOfGxt4DaUdM5O7t6KkCez+xFrxVYQ8s BOimG+dE6Bjl+KK299FqeTqTvtoC4gpzFQ8lmnmCYhvwIEw2nUMu5QZ59GGdzVgh2Ufo WmBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774323794; x=1774928594; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/Lc8ngqt2Zf4OhCsjMN2zzZTXOhaxX4QmkesB9wk0rk=; b=exGGcUH3zrtdC3friu3Ud7NW3kQchyuGTyN1YD5/OJph4eV9cXbSlpzprTr/HKl/1g QTRoTQgFFnn2CdGnduYaFyOdPcyK7jW6YURQGqhJRJv75fV4ZrBEvSM1J/Mhzmb6yEQd jdm+22TyYMZgtAzOxl4eG1Ex3hAJ0hJgrrBt4F7ntv84TjD77AaixGGXQn2hEKEbd+xf MPcsqEF1lOVtJq8OnIeWN5T250yIEpBEvZwVkGvAn2wc7hZXjNvgVkvBaPZpxxvdHhlE MwZYP5k/eu5choc6nrGJ+Pe0HTrfCCrOpOXOly2LNGQ02gySR5uhTiEF1eNosNpWA872 uq/Q== X-Gm-Message-State: AOJu0YzPzM462TF8xdqdZHCceIlNDzxFbqah5UjNmFqlff50norYjKKk 9Vyio8qurW4i0GJCGOP6sxun0TSWik4fSRE98bkyW7IUNO+ZjCEsgxm0+QkxgeHN9Q84jAqzrfF Hy+SIPxUpBGvRM+J11q/CwF21ZPCSbA== X-Gm-Gg: ATEYQzzS+gjOSZs5rQ3j6OJi7DEHEBGLPpt9C2o0/9OWVrguNFjQAN+31AMgwW59u99 c7mhciIROEqhZ/HGs59YHXcpbcAbvVrnRr5te7w6uOEDecYjLLRDx/iA5svd3Un7oH5tAirZTb9 YcEqAj1xTlcJS2gkqmatqXwu+GHJDQ7PRZEQgwHpGYXXFFiiDbLUcAgi/Qvjx5QRRT3Ml+0C2+q Wun2XO6heL3u8nMulSht4t8uTLMXERTn9e6xEN2nI1YdpzhvCpCy3rxfdNK2m4sO5NFp6hIVZs/ M7gRVPnxafuWefCIZxCVK/ypXRuiZnumb7L+Q8Q= X-Received: by 2002:a05:6402:529a:b0:662:ce20:f226 with SMTP id 4fb4d7f45d1cf-668c9526568mr10222937a12.11.1774323793798; Mon, 23 Mar 2026 20:43:13 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Rick Macklem Date: Mon, 23 Mar 2026 20:42:59 -0700 X-Gm-Features: AQROBzDed5DmO1bA_5OQUeieYx2SCk7rSLXmH54g9VEYsJbXdnuyzC2xVWqP8Jo Message-ID: Subject: Re: [Ms-nfs41-client-devel] FreeBSD-16.0-CURRENT-amd64-20260224: NFSv4.2 on Windows: mkdir fails, touch works To: Dan Shelton Cc: freebsd-hackers@freebsd.org, ms-nfs41-client-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-5.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_ALLOW(-1.00)[google.com:s=arc-20240605:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20251104]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TAGGED_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_TO(0.00)[gmail.com]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TAGGED_RCPT(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52e:from] X-Rspamd-Queue-Id: 4ffwqY1V7Vz3GbW X-Spamd-Bar: ---- On Mon, Mar 23, 2026 at 7:56=E2=80=AFPM Dan Shelton wrote: > > On Tue, 17 Mar 2026 at 01:29, Rick Macklem wrote= : > > > > On Mon, Mar 16, 2026 at 3:23=E2=80=AFPM Dan Shelton wrote: > > > > > > On Thu, 12 Mar 2026 at 00:20, Rick Macklem w= rote: > > > > > > > > On Mon, Mar 9, 2026 at 4:36=E2=80=AFPM Rick Macklem wrote: > > > > > > > > > > On Mon, Mar 9, 2026 at 9:43=E2=80=AFAM Roland Mainz wrote: > > > > > > > > > > > > On Sat, Mar 7, 2026 at 10:28=E2=80=AFPM Rick Macklem wrote: > > > > > > > > > > > > > > On Sat, Mar 7, 2026 at 9:27=E2=80=AFAM Dan Shelton wrote: > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > some odd issue with FreeBSD 16.0-CURRENT main-n284403-895a9= 7c875a0 > > > > > > > > (installed from > > > > > > > > FreeBSD-16.0-CURRENT-amd64-20260224-16822dac32ab-284159-dis= c1.iso) and > > > > > > > > ms-nfs41-client: > > > > > > > > $ /sbin/nfs_mount -o rw 'F:' 'nfs://42.28.16.228//nfsdata' > > > > > > > > Successfully mounted '42.28.16.228@NFS@2049' to drive 'F:' > > > > > > > > $ cd /cygdrive/f/dsheldon/tmp/freebsdtests > > > > > > > > > > > > > > > > $ touch x > > > > > > > > $ mkdir y_dir > > > > > > > > mkdir: cannot create directory =E2=80=98y_dir=E2=80=99: Per= mission denied > > > > > > > > > > > > > > > > I tried this: > > > > > > > > $ chmod a+rwx . > > > > > > > > $ mkdir y_dir > > > > > > > > mkdir: cannot create directory =E2=80=98y_dir=E2=80=99: Per= mission denied > > > > > > > > > > > > > > > > > > > > > > > > No ACLs involved. > > > > > > > > The same setup works with FreeBSD 15.0. > > > > > > > > > > > > > > > > How can I debug this, or is this a known issue? > > > > > > > Hmm. I don't think anything has changed for mkdir between > > > > > > > 15.0 and man/16 in the NFS server code. > > > > > Yep, the change was that FreeBSD16 supports Archive, but didn't > > > > > handle setting it when doing a CREATE operation. > > > > > > > > > > > > > > > > > > > - If the mkdir request (actually MKNOD in NFSv4) specifies > > > > > > > an owner or owner_group, the permissions are checked as fol= lows: > > > > > > > - For setting owner to anything other than the uid of the c= aller in > > > > > > > the RPC request's credentials, the caller must be root an= d the > > > > > > > file system exported -maproot=3Droot. > > > > > > > - For setting an owner_group, the gid owner_group maps to mu= st > > > > > > > be in the gid list of the RPC's credentials. > > > > > > > > > > > > > > I'd suggest you capture packets when the mkdir fails and then= .. > > > > > > > - Either look at them in wireshark yourself and see what attr= ibutes > > > > > > > are being set by the operation. In particular, check for an= y ACL > > > > > > > being specified (I know you said ACLs are not involved, but= ..) > > > > > > > along with OWNER and OWNER_GROUP. > > > > > > > or > > > > > > > - Make the packet capture available to me and I'll look at it= . > > > > > > > > > > > > > > I suspect the NFS4ERR_PERM is being generated because of > > > > > > > the attributes being set by the MKNOD operation and I suspect > > > > > > > there is some difference between how you have 15.0 configured > > > > > > > and main/16 configured. > > > > > > [snip] > > > > > > > > > > > > It seems to be an issue with |FATTR4_ARCHIVE| ... I filed > > > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293691 ("NF= Sv4.1 > > > > > > client trying to set |FATTR4_ARCHIVE| gets EPERM for file/dir c= reation > > > > > > attempts") for this, and added > > > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D292283 ("Bu= g 292283 > > > > > > - (JAVA) NFSv4.1 client trying to set FATTR4_SYSTEM or FATTR4_H= IDDEN > > > > > > gets EPERM for file and dir creation attemps") as reference sin= ce the > > > > > > same kind of workaround seems to work. > > > > > > > > > > > > Next release for ms-nfs41-client includes a workaround (see > > > > > > https://github.com/kofemann/ms-nfs41-client/commit/7156d9f9deb2= 5843e57fd455d8ec67951b82c737) > > > > > > which should avoid this bug, but I will remove that workaround = as soon > > > > > > as a fixed release version of FreeBSD will become available... > > > > > I've put a patch on this FreeBSD PR and am attaching it here. > > > > Dan, can you test the patch and let us know if it works for you? > > > > > > https://bz-attachments.freebsd.org/attachment.cgi?id=3D268667 works, = and > > > fixes the bug. > > > > > > Could you send a comment around when the next iso for FreeBSD > > > 16.0-CURRENT comes out with that bugfix, please? > > The patch is now committed to main/16.0-current, so any snapshot > > generated after to-day should have it. > > (They are typically generated once per week on Thursdays.) > > Is this fix included in > https://download.freebsd.org/snapshots/ISO-IMAGES/16.0/FreeBSD-16.0-CURRE= NT-amd64-20260316-e6083790f217-284522-disc1.iso Don't know. If you look, I posted on Mar. 17 at 01:29 and the date on this one is Mar 16 (look for 20260316 in the name). So, I doubt it, but it might have made it into it, rick > > > > > Thanks for testing it, rick > > Thank you for fixing this! > > Dan > -- > Dan Shelton - Cluster Specialist Win/Lin/Bsd >