From nobody Tue Jun 16 15:01:19 2026 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 4gfqv32sgqz6hJMg for ; Tue, 16 Jun 2026 15:01:19 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gfqv32CpDz42kc for ; Tue, 16 Jun 2026 15:01:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781622079; 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; bh=v5G9IPMVJQZUYY1jXnXMOakPFBvKdyJJV6OAX+B5atg=; b=gumwcXPXMhGQq42R3lQatAjLy/iOVNYYXJfdCmdNghxjSgRnjgXEjzMDwKmyeJA0SNRKXC X+J+OCqnpNg+xsUECZpWYh/dwGu/aSrDGjlOuNROaCCnrgPKk4sXAEFpxnt3osHpwNn2K5 DUERYLoHCMFVpqohTmY2STyPOUxws+v+LY+CrueOyr7mcFWr/X8HFBRAQS1yeJPCrIgzlq RhOuIW+BemSf/qCwpfdvesoELfRnMxKC7qOO2NiIGxoik4/YbYNgLna1sksNwxeS0jtZBC fK83jHXNXw6p8Pw/IzuXcpwOb70+ANwNzwetd9eGKk63Hc0llwoX6wJpj1Eg+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781622079; a=rsa-sha256; cv=none; b=yLP8CewV/jpGYU2kmFR8G9H4ZRG5SkwlGEsO6T2FVWtjDSkGX8C6sOSiLSDgKAAWRnYW6b zlmFMhSY3Hpsb1hReSBPoKlBYwnBlwnspd5aLodWLJKuUd4pAoxpXkhsJCv1ZUJIhCT1oX tjQG6IX4UvIyCI0o18ewA2kkOWG8AGhmbJZBkf3f+K3b3dG5qsCSMeDVqhdyu1O62tPxrV uOpb/Jhkuc1Sc1DZYS/Mc+bQ/+++PJdu0FpEMTGJzswwGWEk9eHyyNXkvXhq7N1GziG/mh SanX6S8lDO5lNgVDQxuoCn414sHoeL/sQmOSPusgqT7mTQPlQIuq4zFgXyWs0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781622079; 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; bh=v5G9IPMVJQZUYY1jXnXMOakPFBvKdyJJV6OAX+B5atg=; b=AgoS/e5tXxNEHamWzNs8zKRulKQaZpe/xFfL8u4jibhiPoRVKgZBkP7O0uVGU9Ghnz1kXO +afNANTMkI30YNc4PoS+seszyBL3lTCL8BKNOwVoCqcFvgV69FkJmluHbDeTznQMsmIUYO vqjv02AwyB087ZBh8RYaauJo3ocq24XA4qmjIeW1jy1Dqvv7jN0vXMJnCo7kU2R7b1aYRn oYnaeL679CCjvveidHVOO7uOLSpcNmFL8Y1W04DOVpu5iS8NNGwx1QpurZY942uo4y8BBk fCX1vMRv9HW/SOmsTbL7a22FkVzBBgzITmR+GCCZvYD5v5rY6m83IVB1YorI0A== 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 4gfqv31pnVzVQq for ; Tue, 16 Jun 2026 15:01:19 +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 65GF1JYI061477 for ; Tue, 16 Jun 2026 15:01:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 65GF1Ji3061476 for bugs@FreeBSD.org; Tue, 16 Jun 2026 15:01:19 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 296088] nfscl: chflags(, 0) on an NFSv4.x mount returns EIO instead of being handled as a NOP. Date: Tue, 16 Jun 2026 15:01:19 +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: 15.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@kumba.dev 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296088 Bug ID: 296088 Summary: nfscl: chflags(, 0) on an NFSv4.x mount returns EIO instead of being handled as a NOP. Product: Base System Version: 15.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: freebsd@kumba.dev Note: I had assistance from Google's AI in tracing down the cause of this b= ug, so the analysis represents of that plus my own. It looks like there is a regression in 15.1-RELEASE for chflags(2) operatio= ns on an NFSv4 mount when 'chflags(, 0)' is used. In 15.0, my understan= ding is that call gets treated as a NOP by the nfscl layer, but in 15.1, due to = the change in commit d842c511d84c (nfscl: Add some support for POSIX draft ACLs= ), the NFS layer is returning an explicit error back and this breaks userland components expecting something else.=20=20 In my case, the error manifests when trying to run "make package" on sysutils/flashrom when /usr/ports is mounted over NFSv4.2. Changing to NFS= v4.1 or 4.0 doesn't resolve it (I don't run NFSv3). Python, called by meson dur= ing flashrom's build, bails out because it is only expecting errno.EOPNOTSUPP or errno.ENOTSUP, not errno.EIO. Here's a test case (originally generated by Google's AI, but modified by me= to make it return the errno to the shell): > #include > #include > #include > #include >=20 > int main() > { > int result =3D chflags("test.txt", 0); >=20 > if (result =3D=3D -1) > return errno; >=20 > return result; > } 1. Create an empty file: > # touch test.txt 2. Compile: > # cc -O2 -pipe text.c -o test 3. Run the test case; on 15.0: > # ./test > # echo $? > 0 But on 15.1: > # ./test > nfsv4 err=3D10032 > # echo $? > 5 That "nfsv4 err=3D10032" string is literally printed to the screen, I assum= e from the kernel layer. My guess is this could affect other meson-based packages built over NFS. My workaround is to set WRKDIRPREFIX in /etc/make.conf to = make it build locally vs over NFS, and that allows the build to complete. --=20 You are receiving this mail because: You are the assignee for the bug.=