From nobody Thu Jan 09 20:53:20 2025 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 4YTcSc4nKXz5k1l7 for ; Thu, 09 Jan 2025 20:53:20 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YTcSc2nxrz4tGx for ; Thu, 9 Jan 2025 20:53:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736456000; 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: in-reply-to:in-reply-to:references:references; bh=XQnw8YhzXMmbJIYHyUESTuOblPGqZarBO7WXuA3MI/Q=; b=BUHwW1hyXnjX2cW0CRvg5psQXvuGDR3lzB26vy9jHfR1nWZwZFOKdCiC2xt4fHhAxjxi95 B2iAS8zqDbMNHe+iaRhfGd1aomxr0GrbDePwTRNbpW577eWcGeqOtuGizXBzWQi/8nwZfZ q8Fu9DLznwWGEnQdVKHMK7pKnGCuIM0Ev33R3PDuxyHLvFN1mVPF5IdUGROKEL9HmpT5vT /AuQz9nLwLncWnuhWShddfthMf332hgF/+x83+/FZ/J5/PS4Ms6hG53vNaD7NJ7QAtpGzM gtM7Gn7yJBiyvXXbpxmPhPbOWfpCJazC+vjWvhlAvOEtB/osXJkh5hnjfKBFUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736456000; a=rsa-sha256; cv=none; b=b3H9e4b1dogaug0RRB5i2GthL6AkeWC4XqNN5io4f+82zW6ILMcMg+UCHB0E2H14H/AOtu ZTqTNP/xhcf6Bj3n7ntAzUSNGhyItbg5+H589qn6w/ejePKKq5SaHo5WkN+UKJDDn1g6F+ 8R+DXjxDjXgOWHfeK1sjjW5I0Vy+qDVuWJWx43AkDjIIT3iBUPg0CMNUp1BpuwZ5upxmjA GyQtjbIIty+cz94XyjyW6DaUubYzAwuET3Y3cSGT0m7sCSeJJSpu1SWvrQ93Yv6+a6O7O/ Si8RVfAXMP14r0/gOHWUTA2cZ9DPIgYCIQEL6awCNvetSlw9dTZ5zbV9PzOYmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YTcSc2LckzjY7 for ; Thu, 09 Jan 2025 20:53:20 +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 509KrK3m039939 for ; Thu, 9 Jan 2025 20:53:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 509KrKDG039938 for bugs@FreeBSD.org; Thu, 9 Jan 2025 20:53:20 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 283965] nfs: page fault during nfsrpc_readdir Date: Thu, 09 Jan 2025 20:53:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@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: Message-ID: In-Reply-To: References: 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 MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283965 --- Comment #1 from Alan Somers --- I've determined that the cause of the failure in nfscl_invalidfname is beca= use my test fuse file system includes the NUL character in its readdir entries.= =20 That is, it replies something like this: ents[0].d_namlen =3D 3; ents[0].d_name =3D ".."; ents[1].d_namlen =3D 2; ents[1].d_name =3D "."; I can and will fix that in the tests. But I can't guarantee that other fuse file systems won't do the same. Even if I have fusefs sanitize these strin= gs in-kernel, other file systems might do the same. For example, I see that e= xt2 trusts the on-disk data, and copies it into a dirent without sanitizing it.= So NFS must be able to handle that. --=20 You are receiving this mail because: You are the assignee for the bug.=