From nobody Mon Jun 29 13:56:46 2026 X-Original-To: dev-commits-src-main@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 4gpnrc1k6hz6hj9X; Mon, 29 Jun 2026 13:56:48 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gpnrb4MDMz47Qf; Mon, 29 Jun 2026 13:56:47 +0000 (UTC) (envelope-from brooks@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782741407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RonEC4WBlrIMi6L//fP2oSR9f13u84BFVGtsNaLJdDw=; b=tMj5+OhNoyGDIhKb2ii+FhECZhsCcEi01EQj1nTqGgbJ93S5haI4eSXVXS+k083vVzDyFq yBKa4QbYpqPTy0Rq85x0wnSn/yCmYNNZMJZI6ZLfSmw8s+2+MIeEqdDcIRCdz9xh4n0IcT YJ1sFYhh+m7RanZFDYU0ODerxTVs+bCF5HFuXCgqWD806pDWMENB9u61SFqAC/dXGtlPrs 4HW0mt8AycB5ibzie4eJATCkctmwP+cR/MKQZcKsVWuWtXImohX1qhfG7/nSgasDIqSTW3 yKS2KwgO7Cc933NawhqCDlptUnD/ortyBAY1AFcJO+y9+2BUjqYjWlZmgtXIdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782741407; a=rsa-sha256; cv=none; b=Ccg1SGFOt9NEK22oSeFDZegK2j021TwxtwzpA5BrLzjq2kU5zSbiRccvnjceVojoVglWmh FGXiUEbOICNYvfJjeerQ8vNrg+vRKS7MmBhggv5Pc9sgmTjiqws8yB81n1uKpkOMnk+Sc8 kTcpdvJi5YQOYqhG5bg0139/POVFGkOtgW6l2f7reRZMnRYXvTfTc8/7Sq2sWxs/SO2o58 iSnoRZavLeT10xB31PNTFFKvKKEqBGqshAp407PBpMhx4Nj/AqWGUN6pVsbQ25Ho3GhSHo htSDzNUsfTbv3eVGw0fKLsS9a8DipPguz+rWnCHBq6qlMYrsllP0gyE/5SaBuA== 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=1782741407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RonEC4WBlrIMi6L//fP2oSR9f13u84BFVGtsNaLJdDw=; b=vzdIBbJDtubIEW15zPCPMaG8f5ZcTZL5VzVl8TTWZ6qFzen72p2zODF7FGBi69KZzoSsyr mnzb+ApFQVR/5E4OQJr+p18879WPVUEwSX4STkhZ5AssE4gZfLVoMbrKcL8AaZiHeeNnVB ON8HfjxMxjiKwHcrUb3jB4sI8jOjAyvXYq3YH3nf9volTFp7ma20T5FEOWp24Y8j7/gThu atJOHYsnNhffjBKWmBXjusRPUBBkampT7tgIU6VWL19CTFfzAf2U+YZmi4dZg+AkcPAuxP UlBAFFfIdCFYM0AYA6nGq0YQchXD5rHJbCUayv5IEByxFU/alZ4KEjwGsLYqpQ== Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (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) (Authenticated sender: brooks/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4gpnrb3LrPz18JK; Mon, 29 Jun 2026 13:56:47 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id B3E423C01A0; Mon, 29 Jun 2026 13:56:46 +0000 (UTC) Date: Mon, 29 Jun 2026 13:56:46 +0000 From: Brooks Davis To: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: b517edb8deed - main - CHERI: declare copy{in,out}ptr{,_nofault} Message-ID: References: <6a426cb3.21ca8.6f79461f@gitrepo.freebsd.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a426cb3.21ca8.6f79461f@gitrepo.freebsd.org> On Mon, Jun 29, 2026 at 01:01:39PM +0000, Brooks Davis wrote: > The branch main has been updated by brooks: > > URL: https://cgit.FreeBSD.org/src/commit/?id=b517edb8deed23b8c616f0ad4453e4dee7b0ac0f > > commit b517edb8deed23b8c616f0ad4453e4dee7b0ac0f > Author: Brooks Davis > AuthorDate: 2026-06-29 12:58:52 +0000 > Commit: Brooks Davis > CommitDate: 2026-06-29 12:59:29 +0000 > > CHERI: declare copy{in,out}ptr{,_nofault} > > These provenance-preserving functions are to be used when copying > objects that are expected to contain pointers. Data buffers which do > not contain pointers should be copied by the traditional copyin/copyout > functions which *do not* preserve pointer provenance (on CHERI they > clear validity tags). > > NOTE: Going forward, this requires changes when adding new syscalls or > ioctl that take pointers to objects containing pointers. Fortunately, > the vast majority (>90%) of copyin and copyout statements do not copy > pointers and require no change. Failure to make the chance will have no > effect on non-CHERI architectures. Note to devlopers: don't stress about copy{in,out}ptr for now. I'll be adding them where needed as I pull in futher CHERI patches and code that needs them doesn't typically change all that fast so some ways it's less work for me if you don't start making changes. -- Brooks