From nobody Sat Mar 23 16:58:39 2024 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 4V254b4xplz5FQSY for ; Sat, 23 Mar 2024 16:58:39 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V254b3tvjz4rjD for ; Sat, 23 Mar 2024 16:58:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711213119; a=rsa-sha256; cv=none; b=l3i5NsLp9ep/ii03qUtBXSsr4YFZpzOVBxlBkk77nXxXEhOCCXbf/MgR7UosNGOIQ1u4BX vVdI3Us5vYoD02JejJJCpF1dgCLSUqP4iG/StdSmPYXF4h1HL07+bOVMV82XcipT0tA8/I 0X+SNSsPfNMXbJskaYdWr0p2TkHqLSQqjF9GW997FQo4M4VFoxFCZWvCCTo4AOVOH936OY iCEryliMuS68aFBkOf/jQKkMdFZ5TXqzbkLe9lEjgwOQajmUJmmusoNy1/1MDCKcXFGsuT 8dYA4GnS3LsyW9sesFttko5EgQO/mGbd/JYDegdgWW8ifn2GxJVrUqx1IFRNZg== 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=1711213119; 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=TB540Mflz+d4vhRQ8a6VJwgXPLmucWcvN2sqWw4PDME=; b=v5aAk4Xae1aryJoeOgvUTWWJxQUJPfI0Jm2x4sfCutVcg7vwA9nY39cjbiI27WA5p6lFwD E37laGf3flik5Rqr4rUjZoabOTJ/WdnjNlOhc18LJA1QVvZXabRUnPMkvbg85BiaQKht37 6wjjVMt0UqboT3U2+rdtmS5t1EBT4I9nWbpmEqB5gfI7v+JXYKJcs4/XtxUCMuEe+V1SVF XEnss9Xo589M1YRmgKTnGJbeo167TpMskGv5Mk28qyec+IwOf2GU4BCGoPrydndyv/hTHm YPBqGkzPRGLge7Ke8frgCJv6x5+NjYOZ5x/7PEiZjtKLlR6FtcdkGodFHmBDqA== 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 4V254b3Nr1zwd1 for ; Sat, 23 Mar 2024 16:58:39 +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 42NGwd8c067683 for ; Sat, 23 Mar 2024 16:58:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42NGwdDn067682 for bugs@FreeBSD.org; Sat, 23 Mar 2024 16:58:39 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 277908] Capsicum filesystem extended attribute support is broken Date: Sat, 23 Mar 2024 16:58:39 +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: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D277908 Alan Somers changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |asomers@FreeBSD.org Status|New |Open --- Comment #2 from Alan Somers --- Ahh, so it's ECAPMODE instead of ENOTCAPABLE. I missed that at first. Her= e's what I've learned through some more dtracing: ZFS has two ways to store extended attributes: SA or dir. IIRC, "dir" is intended for large attributes, which this is not. But zfs_getextattr_sa returns ENOENT, so ZFS then tries zfs_getextattr_dir. But that does vn_open_cred, which calls namei. namei is normally used to look up path na= mes. Looking up absolute pathnames is forbidden in capability mode, so namei returns ECAPMODE. What remains to be determined is why namei thinks we're doing an absolute lookup. I tested this on FreeBSD stable/12, which was before the openzfs import, and got the same result. So the bug has probably been there forever. --=20 You are receiving this mail because: You are the assignee for the bug.=