From nobody Mon Nov 4 00:55:55 2024 X-Original-To: dev-commits-src-all@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 4XhY1R5yncz5bmfy; Mon, 04 Nov 2024 00:55:55 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhY1R5PWRz4L9C; Mon, 4 Nov 2024 00:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730681755; 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=OldzB6vvBl9Q4rohK4r17+dtD6ERFNSPd8C4Gva5OFk=; b=Sj14DKT/NNRhZ9nGJll5TBj/Lwpzp1Xa6N4KemxAtFxXHEXcu2zjYRkDdJq2t9x74T0AJR vnEfmy/Ud4Puciw/+E2hsIkS1fb73uCJSa0WBirqHpkHGQkvYa3tPjNTrmByv9Kupe7TQs gz2TLyLZJ+TCf+4Ly/HVkhiK8kfeTb5SMOuqok7F8IMK2Nf+vQA9bmNi2FM3jkpcym+MaB FhCHjRgcSb9Aem22pfw4e/7tKaBB3hpXkh7xus5nNHba2LXl5Q71FqZKRjV/8uMurVpn2D bDhT1DsS2OAwMjmQqbZN7eNB7UUOWFugpymmwJ5AWP0KAHC38WVvBVGU0J2MqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730681755; 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=OldzB6vvBl9Q4rohK4r17+dtD6ERFNSPd8C4Gva5OFk=; b=T55UGk0JN/8BhT87qzRX3Nb8Y/gvUzjwmv0RsiFMMkRCdpp5sw+0KO19jjA4WiJ3eBY6uW Syp+5RXxWVU522BYSTVQOTan2hPzk8/02uDu4EqxnwNfth4cfDiYgNl65LSCim2Tt34kiq be71BpUjD3DDSCkmVlfZM2x2pupPQjKx6u/CXEQJkoBstqepLcuB4eQLhbBs+SSujdWrth ByG1zR6TbS8JEp0bZTMUHRrJU7iZBHk/EFOxzVHOYxHNRp7nSMOJcCHEw6zYea/wChAusE CbCerpMXZpYCcsp9wPAhzU34MbJUoB0pOoJnfpckLJH+3U1rVNpHVj9+ZOtB7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730681755; a=rsa-sha256; cv=none; b=XukJ/ko8TdVAky8sXQbolVzoBqisP9MdVUu9weSNbg1383mTm/6UlotRKDc6wOu6cI7jcT pbR4RPFnHPn2ZlV3MghCFLecoYtFCxCxeSd+7PpWGiqhYNnmuiwEeIqhYqxDhOu+GALb0O 1MCYe6NjqCkerwRe6omw58xbWUuQtLImUM2o8PTjrW4GBOp9QAwfBdnO1LEFjrImH4dvsb n+jWYhoUzlblrqwnmCwYmDbLkGQzshUEcdQxGgAarY+Kiv7YKOSIPxpWCmlTWITA/tyFQv gsI9hCiT/Rrg8OCzY7nrlOJp9BqAyaGr2jne+8JW1VcCouqTHNjmkjYmIgJh3Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhY1R4rccz1Bhm; Mon, 4 Nov 2024 00:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A40ttRM001957; Mon, 4 Nov 2024 00:55:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A40ttWD001954; Mon, 4 Nov 2024 00:55:55 GMT (envelope-from git) Date: Mon, 4 Nov 2024 00:55:55 GMT Message-Id: <202411040055.4A40ttWD001954@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 2ce493e1693b - main - Cleanup commit. Use PROGRAM instead of PROGGRAM. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2ce493e1693b55a330079ac5fce8beb66e26ddeb Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2ce493e1693b55a330079ac5fce8beb66e26ddeb commit 2ce493e1693b55a330079ac5fce8beb66e26ddeb Author: Artem Hevorhian AuthorDate: 2024-11-02 09:40:22 +0000 Commit: Warner Losh CommitDate: 2024-11-04 00:55:56 +0000 Cleanup commit. Use PROGRAM instead of PROGGRAM. Reviewed by: imp, emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/1508 --- sys/kern/genassym.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/genassym.sh b/sys/kern/genassym.sh index e17c1642ecc7..8b3d7aa1a2e1 100644 --- a/sys/kern/genassym.sh +++ b/sys/kern/genassym.sh @@ -45,7 +45,7 @@ work() # -#MAIN PROGGRAM +# MAIN PROGRAM # use_outfile="no" while getopts "o:" option From nobody Mon Nov 4 03:23:48 2024 X-Original-To: dev-commits-src-all@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 4XhcJ74sbPz5c1pS; Mon, 04 Nov 2024 03:23:51 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhcJ729dyz4WyD; Mon, 4 Nov 2024 03:23:51 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTPS id 7ZH8taxeuAHbZ7nh0t4mhw; Mon, 04 Nov 2024 03:23:50 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id 7ngzt50MV2M9q7nh0tj0w8; Mon, 04 Nov 2024 03:23:50 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=ce5xrWDM c=1 sm=1 tr=0 ts=67283e46 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=VlfZXiiP6vEA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=EkcXrb_YAAAA:8 a=sBeMAxy3m3l4eF98PuwA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id D5EE71FE; Sun, 03 Nov 2024 19:23:48 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id BF6D01A5; Sun, 03 Nov 2024 19:23:48 -0800 (PST) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Olivier Certner cc: Cy Schubert , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 5169d4307eb9 - main - nfs: Fallback to GID_NOGROUP on no groups In-reply-to: <2094473.mIT35NG9lc@ravel> References: <202411031547.4A3Fl0Lh079122@gitrepo.freebsd.org> <20241103171056.E8299280@slippy.cwsent.com> <2094473.mIT35NG9lc@ravel> Comments: In-reply-to Olivier Certner message dated "Sun, 03 Nov 2024 19:16:27 +0100." List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 03 Nov 2024 19:23:48 -0800 Message-Id: <20241104032348.BF6D01A5@slippy.cwsent.com> X-CMAE-Envelope: MS4xfHSho2DaKys4lNRwYPqcFZZq/G3LQbmwF8pJ3OWxRnLA5B68VUVcgadA62BtLIlDwBvKKT14aQy0XXCvvCFTBSdlNdM+Sumzp2dXY7sVyG+lIV+K7q0p KnHLRmZg9J83u+GY5siCX6MrfeIQSVQFQXPqf59eF1W5+BBp4QjtX6sTUeVUviBOL+sDxRNJIHVVPuIxJXKa7Pq1UedqlyBp9beJE7rDQpx95iQqy9SbLBwi F70ZZm2829AR5weX1Vpe/lc2B04BHoITxo2ZZ6MfPHKPujeTMXcvOL9GX/o9hJUHHhMX1aAMgWKGjc/RlrGjgxxsLKRh8DZnQQs9IAL9p3o= X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4XhcJ729dyz4WyD X-Spamd-Bar: ---- In message <2094473.mIT35NG9lc@ravel>, Olivier Certner writes: > > This is a multi-part message in MIME format. > > --nextPart17542189.7ycxSsYEdt > Content-Transfer-Encoding: 7Bit > Content-Type: text/plain; charset="UTF-8" > > > I'm getting a different panic this time. > > Sigh... I see why, and it seems straightforward to fix. Could you please tr > y the attached patch? It is also available at: https://people.freebsd.org/~o > lce/0001-cred-crsetgroups-Throw-away-old-groups-before-crexte.patch . > > Hopefully, this was the last problem to solve. All patches in the series, ex > cept the "nfs, rpc: *" one, have been tested and actually used on my machines > for weeks. I however don't use NFS on a daily basis, and it is now pretty c > lear that I have a big problem in my NFS testing setup, or messed up the rela > ted tests (am still not sure). > > If you can't test this patch or if you still have a problem after this one, t > hen I'll just revert the series pending my re-testing in a correctly setup NF > S environment. > > Sorry to have dragged you in this debugging session, and thanks for your effo > rts and feedback. > > -- > Olivier Certner This certainly fixed the panic. Thank you. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0 From nobody Mon Nov 4 03:57:26 2024 X-Original-To: dev-commits-src-all@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 4Xhd2z3Jsfz5c48D; Mon, 04 Nov 2024 03:57:31 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhd2y6GMJz4Z3M; Mon, 4 Nov 2024 03:57:30 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTPS id 7g8wte1E1MArN7oDatZAsf; Mon, 04 Nov 2024 03:57:30 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id 7oDYt56SN2M9q7oDZtj2nX; Mon, 04 Nov 2024 03:57:30 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=ce5xrWDM c=1 sm=1 tr=0 ts=6728462a a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=VlfZXiiP6vEA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=EkcXrb_YAAAA:8 a=gE3rUWh60-tMV4sXS5QA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 6C217260; Sun, 03 Nov 2024 19:57:26 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 753B614; Sun, 03 Nov 2024 19:57:26 -0800 (PST) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Ed Maste cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: a5f7047f2865 - main - gvinum: Postpone removal to FreeBSD 15 In-reply-to: <202411032128.4A3LSpEd015424@gitrepo.freebsd.org> References: <202411032128.4A3LSpEd015424@gitrepo.freebsd.org> Comments: In-reply-to Ed Maste message dated "Sun, 03 Nov 2024 21:28:51 +0000." List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 03 Nov 2024 19:57:26 -0800 Message-Id: <20241104035726.753B614@slippy.cwsent.com> X-CMAE-Envelope: MS4xfO8m9hFbiKoi55tZDWgQag8r2PDKFg4TCfHdodloEGbRx69RU8FZ766SEtreQwr44HIdBSFuTV1vddKpf1u/OkaMpeBMQX63XWulHiqlpLgQ3issFzo5 HEbaTRlmdKl0Z1+B05nzihXMlZsS9ISqv0aN/vmDZQGnYtHEn93eMz4Phxy/Dodg4RFlRfdbqwKzoiTPL4nuixpzjvMcTraGJ7iiP0r7Az+kpKACgScpNsH4 hnqyEvzH53fZgUOhexQoSb/L+EJIf/FaWhzpuzVTgYJckW9gnuf7e9+Rbv2A+zRbqCdtg0YNylaVGFBPXCVw3DGXQahu7B4cgNx+Mt/X7Lw= X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4Xhd2y6GMJz4Z3M X-Spamd-Bar: ---- In message <202411032128.4A3LSpEd015424@gitrepo.freebsd.org>, Ed Maste writes: > The branch main has been updated by emaste: > > URL: https://cgit.FreeBSD.org/src/commit/?id=a5f7047f28654aa297c57a9d24f6d140 > 8641b975 > > commit a5f7047f28654aa297c57a9d24f6d1408641b975 > Author: Ed Maste > AuthorDate: 2022-12-12 16:57:12 +0000 > Commit: Ed Maste > CommitDate: 2024-11-03 21:28:16 +0000 > > gvinum: Postpone removal to FreeBSD 15 > > It was not removed for FreeBSD 14. Yeah, the fact that vinum and gvinum implemented a Veritas Volume Manager (VxVM) like capability for FreeBSD, it's not the most straightforward concept to understand. Back in my Solaris days Sun offered courses on VxVM. And later removed it for this very reason (plus licensing). I get why people didn't use it. It was somewhat complex, and so was gvinum. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0 From nobody Mon Nov 4 04:58:23 2024 X-Original-To: dev-commits-src-all@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 4XhfPC45J2z5c9FQ; Mon, 04 Nov 2024 04:58:23 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhfPC3Z22z4fvZ; Mon, 4 Nov 2024 04:58:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730696303; 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=fBVMcQCU1RcyZXCJ7XttIhG0th+sh1To8Hf3EuSI3mE=; b=dCJ1oLPOz9+reyuXekc8U5JSuI2TcC9gLTYp6iY0ysszFT3chAFSyRaMMSrR/dBk5xFwyT p7I34IvNuewg0r90ct/dtLOQUoxCPWcb3eE/KuVnnMa859Fg33L/fUKSphUC9nsp8+cEgS p5ER61Vio2K07CwemkdxgJFEyogKybBDV8dokTFiUmxTflMoRj++VWtieOm8zyCpwjuw9V /b7gWaEGpXOtnwbJtoDsqln8LQEatsj34c5U73mmONTCW8NKrybTxLV7YEYACSdccNPXkd rgfsGtuo3S+tBksRv/N5+VOYlYPIie6nj/b8QxIafIZ1rmwi6ZOjHi1hj9GNfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730696303; 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=fBVMcQCU1RcyZXCJ7XttIhG0th+sh1To8Hf3EuSI3mE=; b=q/4DCW58JrEVnfVUsxpomQ4MXNyQeN42/i2DDginLoPxloiSxK+p6Fxb1QPi9ASaeW9eUt HwZlScH7J2dR9XzInUwSEjgWv9u+IpVmi7PkP0c6Rcgfr5spvalgr3C2iXONOakBfcIk6U ZJGzDOUFd3SLan32DaVCoAPzxeDDHvDvqi03g0A+54OvbThF6hc6SlWmNjlmsBeb67nj6T HDBqydAHwlV51Dfkedrm9c0Sew3pEfuwwKkKxF4ruOBCfZ1ijy3w9k5Aqd3k8ZIdaEe3J6 V09AUlNX59pPtGScAM5BYY9Io6qKdJIesCeV8teRtw/+q6TCrcjM7Wdu6D3lPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730696303; a=rsa-sha256; cv=none; b=t7TABmhT/iMaSfJO0HXLO/mzq9jAJ7uJ1U5Rp+etKTWVkt6oWU0mEh2Jsj5EuV+TWMjqX8 rhGrSnZPTNKrgAiM3DFJm7bLgy4t5I0uDc/mvY7m3CdBmFW6yO8m7eeFvwo3BZtHFM0ghX 0fnUvTDaWxErCObJBvD8m6Jg0ZVfuYbksIPvL9h4HApTpKKdB4wi66/Ify3aP36wHcLpxC N7nt3TIdvOGl49riAwZ1zMtqe0iH+nwaa91CXowlpDT2dYW3Sn9xYA9SO7WI/i8NG1JFUV l5schr0xNE4c4xJxCphk4o/h9jBzssStrRZFCMPu+LearUwt7qqbPOmV/pyjuA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhfPC337ZzKR1; Mon, 4 Nov 2024 04:58:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A44wNmH049226; Mon, 4 Nov 2024 04:58:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A44wNFj049223; Mon, 4 Nov 2024 04:58:23 GMT (envelope-from git) Date: Mon, 4 Nov 2024 04:58:23 GMT Message-Id: <202411040458.4A44wNFj049223@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: f2103edaf522 - stable/14 - loader: Fix boot menu on BIOS List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f2103edaf5229271f3f6769844c0c747d8352228 Auto-Submitted: auto-generated The branch stable/14 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f2103edaf5229271f3f6769844c0c747d8352228 commit f2103edaf5229271f3f6769844c0c747d8352228 Author: Warner Losh AuthorDate: 2024-11-02 22:02:44 +0000 Commit: Warner Losh CommitDate: 2024-11-04 00:51:24 +0000 loader: Fix boot menu on BIOS Only the gfx-enabled boot loader supports unicode. Otherwise, we have to use the old cons25 / ibmpc upper code page drawing characters. Check to see if we have the gfx.term_drawbox function. If we do, we support the unicode drawing characters. If we don't, then we have an older loader that doesn't support it *OR* we have the reduced function, text-only boot loader. In either of those cases, we need to use the old graphics characters. Abstract all those details into core.hasUnicode function. PR: 282465 MFC After: 2 day Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D47403 (cherry picked from commit c2ba66d4d01f23303352bfe3cbd50ff5d9a05947) --- stand/lua/core.lua | 9 +++++++++ stand/lua/drawer.lua | 32 +++++++++++++++++++++++++++----- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/stand/lua/core.lua b/stand/lua/core.lua index 72b19462ae5c..3582720f2a81 100644 --- a/stand/lua/core.lua +++ b/stand/lua/core.lua @@ -543,6 +543,15 @@ function core.nextConsoleChoice() end end +-- The graphical-enabled loaders have unicode drawing character support. The +-- text-only ones do not. We check the old and new bindings for term_drawrect as +-- a proxy for unicode support, which will work on older boot loaders as well +-- as be future proof for when we remove the old binding. This also abstracts +-- out the test to one spot in case we start to export this notion more directly. +function core.hasUnicode() + return gfx.term_drawrect ~= nil or loader.term_drawrect ~= nil +end + -- Sanity check the boot loader revision -- Loaders with version 3.0 have everything that we need without backwards -- compatible hacks. Warn users that still have old versions to upgrade so diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua index a009b78164df..612bd2f5317f 100644 --- a/stand/lua/drawer.lua +++ b/stand/lua/drawer.lua @@ -506,23 +506,45 @@ drawer.frame_styles = { top_right = "+", bottom_right = "+", }, - ["single"] = { +} + +if core.hasUnicode() then + -- unicode based framing characters + drawer.frame_styles["single"] = { horizontal = "\xE2\x94\x80", vertical = "\xE2\x94\x82", top_left = "\xE2\x94\x8C", bottom_left = "\xE2\x94\x94", top_right = "\xE2\x94\x90", bottom_right = "\xE2\x94\x98", - }, - ["double"] = { + } + drawer.frame_styles["double"] = { horizontal = "\xE2\x95\x90", vertical = "\xE2\x95\x91", top_left = "\xE2\x95\x94", bottom_left = "\xE2\x95\x9A", top_right = "\xE2\x95\x97", bottom_right = "\xE2\x95\x9D", - }, -} + } +else + -- non-unicode cons25-style framing characters + drawer.frame_styles["single"] = { + horizontal = "\xC4", + vertical = "\xB3", + top_left = "\xDA", + bottom_left = "\xC0", + top_right = "\xBF", + bottom_right = "\xD9", + } + drawer.frame_styles["double"] = { + horizontal = "\xCD", + vertical = "\xBA", + top_left = "\xC9", + bottom_left = "\xC8", + top_right = "\xBB", + bottom_right = "\xBC", + } +end function drawer.drawscreen(menudef) -- drawlogo() must go first. From nobody Mon Nov 4 04:58:24 2024 X-Original-To: dev-commits-src-all@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 4XhfPD6jsDz5c9MX; Mon, 04 Nov 2024 04:58:24 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhfPD416Fz4fRc; Mon, 4 Nov 2024 04:58:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730696304; 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=fOfacUmnxGka7QG9vKw5MOpiL5wD3uehM9XEq4bVa6A=; b=VoBb9mQmbYOW3YERFYTX/xz2t2Bq9ms3VwuUBp1AOrJr24W9RIHV2eD67LJQ8rrBAwCv4x JYJ2J7ekkv5xVnJdBZDcpZp6NZd1ke+j616Y6FU1G5B+fb/yFeAWCAGD5w5aRbmNQyCbF1 td2K30WWR/2VBnDBN98E1c3y67iKXeDyhNZ2kbUHqwWUo7sbUmYPWzRxAsQnvZalfQjBSZ gPeVUTTuqbU2U9ehomQxJpbx+ENjkp4M+P6Qkz1Fnh31EFm9f3Z8UHkB4+ZhChZCv+oWHT XQBsnqfr/prGEXqUOOwcxhKD3vo2KIHwatM4acA2BM4Z8M45d+MUbqu8mGNE0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730696304; 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=fOfacUmnxGka7QG9vKw5MOpiL5wD3uehM9XEq4bVa6A=; b=g+CCjOVVVadAKP+qBh3WXxzrvxH6X8POobehglZF87K0Oz0LfECOWvRdiXq2kQLCz05Uq7 8fGBN2ogOhxp9vwMFT2h4m6qI6a87JbM8kaCnDiwaKd+bDybR6Y5zjiQ2LNNZ5MLwmhgQR w3vhRwydUpXQHpGglFyqH+F6WbL7HhBkHePbsGIYiGsaemzNeZXo/aXgFaagee0eUyMp7/ lHu6HVQyRS7KoBaI7ZH+vaEvuaCPXH06ubembXpSOlDWVmem8Ftt7HAm7jaElJIDibcmSM m23hzxiTrGfD4ovzOZNQYnfFix3SeqMch5Vh8XrZxHpS5VmoBUBLABDALp4U4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730696304; a=rsa-sha256; cv=none; b=Efp4v9JfuaHvhwkiFWjpi04RsWb74404mfOFrl4swW7kVzuAQXKzAi8qSXJXFU69rkHJ8e mFKhJ4mYo+Skz6Zxh0b9GaRoIYv2SX5T9+SLEyDFmNepVrq/zg+ZDPUv3kmeoVLX9Nc3FP BsFxxwBNV6ToINQM+ownkejiuINHQk1fHmfI2dw+3LHnDrySYLCZBUOhaToO/4+V3NSL/4 VIpEmOwvk6KIGt3f3NIBsYsFHFLd2twB69tviEs2uJsky6mhMqTJj4vV0GEV2kiozNHZcW KkxqGziWMg/h717DHRlShlLu6nzGP/ncLx8P9aWV8XXgjCJ9Gom8vY++TSsxzw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhfPD3cWczKR2; Mon, 4 Nov 2024 04:58:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A44wOPU049268; Mon, 4 Nov 2024 04:58:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A44wOFk049265; Mon, 4 Nov 2024 04:58:24 GMT (envelope-from git) Date: Mon, 4 Nov 2024 04:58:24 GMT Message-Id: <202411040458.4A44wOFk049265@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: adce5eaab9a9 - stable/14 - loader.efi: Fix LOADER_NET_SUPPORT=no builds List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: adce5eaab9a975655cd846c9841551ed8f89207a Auto-Submitted: auto-generated The branch stable/14 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=adce5eaab9a975655cd846c9841551ed8f89207a commit adce5eaab9a975655cd846c9841551ed8f89207a Author: Tatiana AuthorDate: 2024-11-02 22:13:58 +0000 Commit: Warner Losh CommitDate: 2024-11-04 00:51:25 +0000 loader.efi: Fix LOADER_NET_SUPPORT=no builds We include too many references to networking things in the non-networking build for loader.efi. Ifdef out netserver command when we are disabling network support to resolve. PR: 277528 MFC After: 2 days Reviewed by: imp (cherry picked from commit 47ef2a131091508e049ab10cad7f91a3c1342cd9) --- stand/efi/loader/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 324150f7c8c7..61bfe7a4d673 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -1755,6 +1755,7 @@ command_chain(int argc, char *argv[]) COMMAND_SET(chain, "chain", "chain load file", command_chain); +#if defined(LOADER_NET_SUPPORT) extern struct in_addr servip; static int command_netserver(int argc, char *argv[]) @@ -1785,3 +1786,4 @@ command_netserver(int argc, char *argv[]) COMMAND_SET(netserver, "netserver", "change or display netserver URI", command_netserver); +#endif From nobody Mon Nov 4 13:39:14 2024 X-Original-To: dev-commits-src-all@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 4XhsyC0QYkz5c5Vm; Mon, 04 Nov 2024 13:39:15 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhsyB72RDz4PMq; Mon, 4 Nov 2024 13:39:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730727555; 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=9b2vPs06meaxRHgzjhLitU0svvXGOu7mb8rYLQo1ekQ=; b=iRBxHnQGITlWqMZWs7miVfA9TRytWleqlXvMa9d/8EwbFb1ybH2zoeyI6Ihh/9UUV2CBdP uloR/VO7gANbRAoQbN1lZLtLqYbi91lHduZCfgY3uqS5WpOhaGyNL5ftzOZVIDzuLuwvVk SHh7nILSBHh9L5bnKbakpDwaNLcHKJml3zF8Viv+z6pwxuTUzV/9tJAapfLDRwhzvI/WN+ dGBi//WrGG3opKxHM886/cfljNaH8STNbwDEaDHejsTpfofeTb86fsx4kIDPyKUCI4K+Tq 6DLmGMjuitaIMeeSAZURr9e3IdSUgcCoA4OfWj7+K2AGCJSL+BcG0F/NLl+d8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730727555; 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=9b2vPs06meaxRHgzjhLitU0svvXGOu7mb8rYLQo1ekQ=; b=LlfcZc+xsYxmlq6t1JLaMeh6h5w7Sea8Bp4JwvhwT8xq69ljSBUOjIHbOkZ7BIfqp97Kuc dNqeLdvA0TwfA/ebc2lzdVzd5Va91pIDMD72KnM59pSy82HtuArYvxKYaj880ihtU09Gtr 7XKFKKfwuR7+/drSEPF7LWY1cWTfVenZQfKq9aq6bXR+S/DBQJSHbRL4oI7caX8SNONENA 87A0gkdhvGbvjLZuJwrVk/vJZmW4zfY5dqyS6YU4Z4OPiZxl71RH52oytqXmXtLlQCfO+h egtUlZ5SmdUKIqxmvrj3dvKCkyw7z4z+g0cdlLrFlIDHI1J16hWGbt63NLOVNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730727555; a=rsa-sha256; cv=none; b=s/i/CGpQTDM8Uu6ez/nwBJoZFxaW0asqForTY0PCI2mXnGXw+gu9VmF5VXCuq2jE6481tB ELLTZktMtwdwnXt8sbtE+w3f6XzSQ867mlj/khe5msWSvuFKZMbUO5VV4Hkg9QZzpqC/1I hKEfQf2AmtLPs3x6/fK/gvqZFPxr3V92YyNXKY7ZmKoiA8ocM+qugO1CVBRhyzmSsbA+zD rPHg8pVfRkQx79gMTfWfhNgsNWucupRm2lW7Qosgbzu4KfVEyFSB2q1FvrS91T4yP9YUw/ 9Rh2pqxSZkPWXiubqKypqgvhJm8OKSA8HH/ACalsHshlcLbot8sXqOn5y+nYhQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhsyB6Mngzb9f; Mon, 4 Nov 2024 13:39:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4DdEgh010903; Mon, 4 Nov 2024 13:39:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4DdEGW010900; Mon, 4 Nov 2024 13:39:14 GMT (envelope-from git) Date: Mon, 4 Nov 2024 13:39:14 GMT Message-Id: <202411041339.4A4DdEGW010900@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 169a10853a50 - main - cred: crsetgroups(): Throw away old groups before crextend() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 169a10853a50f9bbb037492e6f2737cce10f6b99 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=169a10853a50f9bbb037492e6f2737cce10f6b99 commit 169a10853a50f9bbb037492e6f2737cce10f6b99 Author: Olivier Certner AuthorDate: 2024-11-03 18:04:02 +0000 Commit: Olivier Certner CommitDate: 2024-11-04 13:38:08 +0000 cred: crsetgroups(): Throw away old groups before crextend() Now that crextend() asserts that groups are not set (rightfully so, since it may change the backing storage without copying the content of the old one), have crsetgroups() throw away the old groups before calling it, as it installs an entirely new set anyway. This allows to reuse unshared credentials by resetting their groups set, as NFS exports actually do. Reported by: cy Tested by: cy Fixes: ea26c0e79752 ("cred: crextend(): Harden, simplify") Pointy hat to: olce While here, as I forgot these credits in commit 77d652b4b472 ("nfs: Fallback to GID_NOGROUP on no groups"): Tested by: cy, David Wolfskill (panics caused by mountd(8)) Tested by: kib (MINIMAL/custom kernel compile breakup) --- sys/kern/kern_prot.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index b522edbf4e69..d29833f944ab 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -2217,16 +2217,14 @@ void crcopy(struct ucred *dest, struct ucred *src) { + /* + * Ideally, 'cr_ngroups' should be moved out of 'struct ucred''s bcopied + * area, but this would break the ABI, so is deferred until there is + * a compelling need to change it. + */ bcopy(&src->cr_startcopy, &dest->cr_startcopy, (unsigned)((caddr_t)&src->cr_endcopy - (caddr_t)&src->cr_startcopy)); - /* - * Avoids an assertion in crsetgroups() -> crextend(). Ideally, - * 'cr_ngroups' should be moved out of 'struct ucred''s bcopied area, - * but this would break the ABI, so is deferred until there is a real - * need to change the ABI. - */ - dest->cr_ngroups = 0; dest->cr_flags = src->cr_flags; crsetgroups(dest, src->cr_ngroups, src->cr_groups); uihold(dest->cr_uidinfo); @@ -2475,6 +2473,13 @@ crsetgroups(struct ucred *cr, int ngrp, const gid_t *groups) if (ngrp > ngroups_max + 1) ngrp = ngroups_max + 1; + /* + * crextend() asserts that groups are not set, as it may allocate a new + * backing storage without copying the content of the old one. Since we + * are going to install a completely new set anyway, signal that we + * consider the old ones thrown away. + */ + cr->cr_ngroups = 0; crextend(cr, ngrp); crsetgroups_internal(cr, ngrp, groups); groups_normalize(&cr->cr_ngroups, cr->cr_groups); From nobody Mon Nov 4 13:50:02 2024 X-Original-To: dev-commits-src-all@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 4XhtBn6Jmzz5c6Jp; Mon, 04 Nov 2024 13:50:09 +0000 (UTC) (envelope-from olce@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhtBn5dVcz4PrB; Mon, 4 Nov 2024 13:50:09 +0000 (UTC) (envelope-from olce@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730728209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5qxwp+7y3XHL14O/U+2C3oCzhM4OL1wL8DzxDhTi/GQ=; b=QkHK/xMoxiKRwhu7vJfhTpQP/J/dHoW3fZtKajNiO0q24e4dtHrQi1iNgOQdIh/xlCYbVU OToPq7HWFNAzSJrabXqcEMzI2RIewwrulze5JgQK1nIsbN84kvheD08tIttTjpPkuKm71o qMs1jgSmgRCym+T4E+QJGp0PYNhRKDEetVkT0xiUQQ/RsKSC3VkA2T8kXpzOjh+ce2JMI/ p/n9ujPEPdxenUWHaRjIKkSMr9n1FxLjbgqXc0EqXElLSg73LPNstLvvO3Ngu885cHzXop ZzgCUGs92CinVWj2H8WNpOwoyqlwesD9iSLjOplP2Q0rSwqszMSca1AthrjIXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730728209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5qxwp+7y3XHL14O/U+2C3oCzhM4OL1wL8DzxDhTi/GQ=; b=qHrCKmVbSvLhYLuu84r9H0HjEodVjGQUpPGbAejTWY+Lw+PEGOH7OajRpC6//LT7866RUQ ZOCRuYoPfrHAt6gD+qcCoFu899KuQCjeQY9IhUm0BH0MlP2heW6weBHUOR5BB7WDPzZ4dC /XQvzkCCgpWn9LnySgtj9+jOTKD66Xz/fZWyYS/WsOBYicYMMXpxUkpKky5bU63wAmzi6R kf4tV6E3PsQyueeh5dYn/Q6XVaROwUUpvU9Py2vbWNzUr1GZr4IweftV2BpJi8lPqhIfI7 jahFsIv9h2PLXC/qkNgGdKbNDGAwf3v0w1bk34dzpyTByKdr0pGsk2XgzCHrhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730728209; a=rsa-sha256; cv=none; b=C6AbUonQceoKOkLkhw5qZvcU3/y/M7J/5250ZRpFYON56OFpwx+ZLty/uEc4pcY2XhX6Ng 0yK4JBwWIAfmqhTsBcUr765Ci0mfrEnSCkYrztYO3Qtm6XiWB+nUiF+55/ZIDZGf8ED31k HoU9nPd5dekUNqmLqkKDgGg5vFTm1gW/3bWJesAGPSQ0hyEdz1FS/y+XobqwmqIgN0r5o4 MVRSqagEkJ6nHVrCuX6eGlTBQLZLweXl8xT0ckNizsg9hPwBxm81jHMjEScW6BKn0SM/vd aeJkjOzCXUAFAyCvxGm7NxhNJRqlqc6B1atZBRTqk/Xx77Fg5yDagtfJvgA1IA== Received: from ravel.localnet (aclermont-ferrand-653-1-222-123.w90-14.abo.wanadoo.fr [90.14.66.123]) (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: olce/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XhtBn1c5TzcNF; Mon, 4 Nov 2024 13:50:09 +0000 (UTC) (envelope-from olce@freebsd.org) From: Olivier Certner To: Cy Schubert Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 5169d4307eb9 - main - nfs: Fallback to GID_NOGROUP on no groups Date: Mon, 04 Nov 2024 14:50:02 +0100 Message-ID: <2989864.slGk94SIus@ravel> In-Reply-To: <20241104032348.BF6D01A5@slippy.cwsent.com> References: <202411031547.4A3Fl0Lh079122@gitrepo.freebsd.org> <2094473.mIT35NG9lc@ravel> <20241104032348.BF6D01A5@slippy.cwsent.com> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3041317.hHqAuc6tWs"; micalg="pgp-sha384"; protocol="application/pgp-signature" --nextPart3041317.hHqAuc6tWs Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Olivier Certner To: Cy Schubert Date: Mon, 04 Nov 2024 14:50:02 +0100 Message-ID: <2989864.slGk94SIus@ravel> In-Reply-To: <20241104032348.BF6D01A5@slippy.cwsent.com> MIME-Version: 1.0 > This certainly fixed the panic. Thank you. Well, thank *you* for your patience and support. I'm not completely sure how I messed up the NFS tests, but it seems I was not testing the right code. The good news is that I've redone my testing NFS setup correctly this time and actually was able to reproduce the problems you and David reported with original series of changes (except your 'yppasswd' scenario, as I have not set up NIS). And I confirm that they are gone with the amending commits with a number of different configuration variations (I've just committed the last one, whose functional changes are identical to the one I had posted and you tested; it just has slightly amended commit message and comments). Hopefully, this is the end of it, but I'll watch in case of reports saying otherwise. Sorry again for the breakages and disturbance. -- Olivier Certner --nextPart3041317.hHqAuc6tWs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCQAdFiEEmNCxHjkosai0LYIujKEwQJceJicFAmco0QoACgkQjKEwQJce JidmUA//TZDUX9xryo/8jngsc7SonZVXE5n19Z75eXBvAGy9C5wgS0sL5CcmV9es tDUwZSkzsEvJ5a5EuB5h/ReYQK21F2taqIOBLTb7fRbuPf3AY0bKwqqhm4jXXOin hRV9K4kD/V6GM6c4695L+hAue9ja6GLVMG3ZRtCeIjxMktB0ZbfUO/VqJOA3FwfV lcONDayL7pGMf/ipa5s5M5jANmVh/OTAf+hfktOcFEyLKbWFXdVZKkWkkUiE07d0 EoTJetAlXuyM1vbxGuMEbmMHequ+IQJwkkzg5MhFC/eYxQJGi0ur5904mczdYOkp qf7Qw+rG/AjkFWJBzOKeOyGZ6Tch/K1FVDhZtDCD2WzzlChRE2cSL+X2CqdEpW3w yjOEIf5x9H4KZZpJ5gtFUfQNT2TgofvxHKWhUi8WqBpcoUfZ65Afl83M914WXqjn 6JbBvPDvXOwnSS+KebE3mkaqY97Mz9iYPRfYxYByLlPITfNceGaC8auE2zjmyeZL Mu3c7MZT6SKUZ4jMLJF+kRhvr8RV4JspPiH3VkKjjQaWEekngYuXvEqdpggufhCW l6emRGpGFFblhzVRU9OaXVU0w+xwlZVJO6/8RECoIrxbicmYeNC+PVWnP3waw7CS 8c99xPVfTu1uqxmEWoz58DfCJcTVGqjy2ky9pD9CSE4stIXKbs0= =OAJt -----END PGP SIGNATURE----- --nextPart3041317.hHqAuc6tWs-- From nobody Mon Nov 4 13:55:10 2024 X-Original-To: dev-commits-src-all@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 4XhtJZ54qlz5c6dW; Mon, 04 Nov 2024 13:55:10 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhtJZ4CXzz4Qp8; Mon, 4 Nov 2024 13:55:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730728510; 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=bvq7EJN7CPZ9sL3ig+1fhW7T6EBtlYuhpSmYLAlZ90c=; b=bw1UYeJ6jAxglnei35qzSj7otI6EQeyET86bchj0vAfsG++aNgoNuHq+OwSIxomjfuLl3j XhKyI2HkNMNAy6uwN/ZV+GZQeoPohlarzN8PpLZPjuKo4SIl3bZ6trVmDzvZ5oziAiLQHG bLhJje/fSAFjwVXvybqWP7jQma59ar1SdaujEnAGC/IKsksQA7kPYUUcgefxBUIpp0xuRL C6sEJae1ZTuTHrqF/wrgmzr0oULvp1/KG8tdcWeB2TAUTASpqbxu1Hjd5JHF6A4u+IARJR BtBT9a9xyR7fV6/9RsFBwW8iAVl0l2IBQSFCvTGTX6NuEHKkLKV1SdZzzMkz/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730728510; 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=bvq7EJN7CPZ9sL3ig+1fhW7T6EBtlYuhpSmYLAlZ90c=; b=viue3JFeb8BvxJhbLHyJaYEaHH4pXdLo/lZFcvyLoVG6Ueu0+8V7eXM32qXtkQDMSbrEXP RCL+jllqSZqvGE4LxWgVLSH6OT1HbG/XZMdex6OnrS26DhccSMZPjZM0VMMPPB+rg8b8G0 6UDI4lPPHZzlAuO8iZcKnOgmopbNKrtqGOHn9B9lsvLR2fmkmV4adN6F363b2TNDcaB/0S et9MBR0zxge6/MGzQxKFj6uScEQq9TN+3RQrMaviRD5+leWCzPU+34R1Iei1vqSN1Q2UCo /PWkShPLO2D09DiFE1GE/oTTZf2V5OUnU0HvgCw/ibADk+QBoS3NcBDDlP59dQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730728510; a=rsa-sha256; cv=none; b=Lx60O27BUUUgvcyjkm29XkYLOou0V/ohnOmKNoFdqZt8YAyF1z9j49sl/+6lPgPndSadDP C8S+h6+03xqclpw7RK4CF490b9YkvXCgxSHGM2hNw3AoCc7qOfbWhDDzf/weVi7ZfZ0yG5 bTMBhaWLibBM02czN4yBFe6pnC2Bjqa82nno0O6ixaAR8AY+hA+xJE10hLS1DKG20Q1Xwc gZQcgYlf51/wIOwqvXULRD+9nad5gKsgaT10R449DdNqoegH3M75mPdEnR3KWK9s7Ul9gI G2r72OhFkpy//zB1v8FO1dximgwgoQqAhKyenbjyL6G3uTkEW2aH6Ih0F1YZ9Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhtJZ3hWVzbwF; Mon, 4 Nov 2024 13:55:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4DtARN046809; Mon, 4 Nov 2024 13:55:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4DtAOr046806; Mon, 4 Nov 2024 13:55:10 GMT (envelope-from git) Date: Mon, 4 Nov 2024 13:55:10 GMT Message-Id: <202411041355.4A4DtAOr046806@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 8c922db4f3d9 - stable/14 - syscons: add deprecation notice List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8c922db4f3d9dc41f228357d391f0a899292427e Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=8c922db4f3d9dc41f228357d391f0a899292427e commit 8c922db4f3d9dc41f228357d391f0a899292427e Author: Ed Maste AuthorDate: 2024-11-01 16:51:01 +0000 Commit: Ed Maste CommitDate: 2024-11-04 13:54:10 +0000 syscons: add deprecation notice syscons(4) is not compatible with UEFI, does not support UTF-8, and is Giant-locked. There is no specific timeline yet for removing it, but support for the Giant lock is expected to go away in one or two major release cycles. Add a deprecation notice to avoid surprises, and help ensure that any material deficiencies in vt(4) become known. Reviewed by: manu, markj, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47396 (cherry picked from commit fc2a3ec6fe6aa00d9be0c293c38e0ef9ac7e2b64) --- share/man/man4/syscons.4 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/share/man/man4/syscons.4 b/share/man/man4/syscons.4 index 19ecd5e3746e..7e31680ced3f 100644 --- a/share/man/man4/syscons.4 +++ b/share/man/man4/syscons.4 @@ -24,7 +24,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd May 25, 2022 +.Dd November 2, 2024 .Dt SYSCONS 4 .Os .Sh NAME @@ -69,6 +69,14 @@ In In .Pa /boot/loader.conf : .Cd kern.vty=sc +.Sh DEPRECATION NOTICE +The +.Nm +console is deprecated, and will be removed in a future version of +.Fx . +Users are advised to migrate to the +.Xr vt 4 +console instead. .Sh DESCRIPTION The .Nm From nobody Mon Nov 4 13:55:11 2024 X-Original-To: dev-commits-src-all@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 4XhtJb5M49z5c66C; Mon, 04 Nov 2024 13:55:11 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhtJb4rY3z4R3N; Mon, 4 Nov 2024 13:55:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730728511; 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=QY0ljIjPSLzPRJfnDo1+dnafg1gH08WTdT21cUldpK4=; b=FCN3R16RzGJ0T5TiJYyCCKLDk0YSPjY1VfoFMxc5BiWy2iwQ1kBYZXr1+t7XeOzm5QgZ+T XUf/2sQckpw0G1w2MUsVe6uLL3ZMA0uhA5Vu1FXVJzk137TyNVw07LSkp8Bzufi2bOmYYd x8FSRDC/uSZEAdZtihklJAO4M1p26bhf0scQdyxbbcx9LOj3Z/7rSMSZTa+3iXWdbKSSaE +XdaGbwtC3YpYatILdKj8HZsvX5c0bgXkqIbSLlahkupvY6y6xF4r4mpTGmPEqKPvx9d32 zzHdZXoK+DC55p60tufMeyqdczZnUBodQNymZItEYaB7jUo7roF8WsOnjO0Cyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730728511; 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=QY0ljIjPSLzPRJfnDo1+dnafg1gH08WTdT21cUldpK4=; b=gb4eEMZjN/RE5QCtxmd9Sl2zU17hEBIwrQJS5Lav6Lekw4jAJGrbEXt9ofVmoIQPlxAuRS o/wU3/K8myql+y7r8cRTLCTZ8nnyerXJqDjicrRT8cn3sytM+q7iW7cEr6Lycp8N36AQla 1N7/8hfJ3cOZTyH9iWSYKD87+UlUtxkR5zfoM93wzl79RL5LYU78lvfIfuXF7+hT+4SKbf yp6Bma9jEgLSxjeEpwbG2wLKpXG2ncv+4qVRm2Fso/dS+6FL2xxXW8LoahAno8dlNli3Gv TEKsgHVmm1AkJTm/otCMNoG441CglsAn3/XtArXz4kWSir1RvlP5Qhg6GhL4YA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730728511; a=rsa-sha256; cv=none; b=kmFYZE3PMziVHk52bW0dVtH2j/GlqoMODt0dKneeZ+x7+S3DXo1O/tRElDZ64RJM7pgqC7 Rw4qB/qfZcRqyCWs72RvLrz02kecy1GYbydsEx54KC/E6VXzToUFXZ3A95zWLyGAI9DH4A KQgMtyH9Cy06RViQaSWGqClT0iVW4wNPLOjv0WzxOsiBxF3T5c/OFyinQyVT3oFTJgt1Fl wnZZYHXSu2hXvntFQmpaofEwR9x4OCKx0VWMhkU3y2rSlL4jrguvF2dVB0yE5K9b/B27Ts TOl0T73RZHGaj+kkuP8IjkPx0L1z8BRnA+ab4Q6XaWguRpSiMDcztAgptMMgwg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhtJb4S5szbwG; Mon, 4 Nov 2024 13:55:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4DtB3N046869; Mon, 4 Nov 2024 13:55:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4DtBHU046866; Mon, 4 Nov 2024 13:55:11 GMT (envelope-from git) Date: Mon, 4 Nov 2024 13:55:11 GMT Message-Id: <202411041355.4A4DtBHU046866@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 752c25c01c17 - stable/14 - vt: add comments for KDMKTONE ioctl implementation List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 752c25c01c171811bab622b558e97d611c228c7d Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=752c25c01c171811bab622b558e97d611c228c7d commit 752c25c01c171811bab622b558e97d611c228c7d Author: Ed Maste AuthorDate: 2024-11-01 16:29:32 +0000 Commit: Ed Maste CommitDate: 2024-11-04 13:54:10 +0000 vt: add comments for KDMKTONE ioctl implementation The KDMKTONE ioctl, introduced in commit 916347f77e6c, is used to beep the PC speaker. For historical reasons the frequency is specified as an 8254 PIT divisor for a 1.19MHz clock. Linux provides this same ioctl. Add a comment to vtterm_beep to avoid someone wanting to "fix" this in the future. Also add an XXX comment that the period unit is supposed to be "timer ticks." Note that nothing in the base system uses this ioctl. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47395 (cherry picked from commit adba3c74209eb5d2197b9092002cc9d7505fd3c6) --- sys/dev/vt/vt_core.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index f3cc4e29cf07..50f12512a81c 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -1136,6 +1136,13 @@ vtterm_bell(struct terminal *tm) sysbeep(vw->vw_bell_pitch, vw->vw_bell_duration); } +/* + * Beep with user-provided frequency and duration as specified by a KDMKTONE + * ioctl (compatible with Linux). The frequency is specified as a 8254 PIT + * divisor for a 1.19MHz clock. + * + * See https://tldp.org/LDP/lpg/node83.html. + */ static void vtterm_beep(struct terminal *tm, u_int param) { @@ -1149,6 +1156,7 @@ vtterm_beep(struct terminal *tm, u_int param) return; } + /* XXX period unit is supposed to be "timer ticks." */ period = ((param >> 16) & 0xffff) * SBT_1MS; freq = 1193182 / (param & 0xffff); From nobody Mon Nov 4 13:58:03 2024 X-Original-To: dev-commits-src-all@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 4XhtMw1HFnz5c6dB; Mon, 04 Nov 2024 13:58:04 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhtMw0jvxz4Rb3; Mon, 4 Nov 2024 13:58:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730728684; 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=55RdRNQCWT9dyRsj0c+hR9PiZGQMIThPVz5JZ6Gu2lY=; b=gVPsOx5yQ0WTHaUDJhmGhh/AuKommdxB9MeDeTXIsVhGDRAUebrVOHqyrpyGnaUVcx5pM4 f8yIAwI7MJ0ZNVi1jHfRRO2aCj23mRmA30mv3rSq15K/CyltT+Nm4WKHbzDs1LqKVCK8aq 58G04LbAzqdEvO57nvLaV52UKATjPgwuc6aWIWWdGNSikAGJ00VQ0sqg7EzYEw5ZBtTVSh 9UDwb8Mq8eAS08Gp1tGlN9nLkqqV/muAjxgnDhfHn739SaXh4K+O5s3A23pF4D0QWCefQi MXf3OrZxqkKzBcEhN0WFRnQq3ciY4bVvaSlvdc2U8d82drS0f7haucR7ZFJPig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730728684; 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=55RdRNQCWT9dyRsj0c+hR9PiZGQMIThPVz5JZ6Gu2lY=; b=wDHyFvVhOA2HjGnNFeLLgY4v+ooS5wF5V3/FuS4JtK+MWS21S5T+UxNY+2OxtAs7oF50sX QrVSVshVr/dvKVhHuMZSuNwaaskPDfEk9hD2uB4qBwoT54xaCPf1FrekQz3/e2b59fhc+w pYqBcwMuJ/JhIXI4D1JzLdyxjAzPZEg8KTT3lkh20gVeDQYfpyEmhj4IMOS9yGUxupAgeU GA9WN4A86258YWHFs9Exg5FBad4n3p7F+bAIqE4D1MBiqT/G8shuj3dDwZshRA2bhgg8jg FHRO2tDwOk7Bh89DVquqS08eqF0MGk1s4IRwquwoNGPePB2OfyZVX7hBLuS0WQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730728684; a=rsa-sha256; cv=none; b=yimhLY8qt9ren9OARj376DmYqmd4O1Kx3K+wpYUH3mURjcrd/xaKg4bbsNl3ltl9U4cVyr Gru5RENQ3HIQDaHcLkYdyD3ziUfv/Cudah9DLI4ssVV38nrvRdFGD+Z8EUATe8pGrYTduZ Gi8JIy14IVy1Q48jUWXZXrA3+T9AmNZqvCQ0G2orlrBumbwGFfDp9uaImjRx66BUlFM4Gu JSzGOw3ePVX0iKIIPDawKxoxZx6FHFCi9wUmj8TDIy72nwnnWYKkB/uWXH5lUCBaHtnD2t DyReE89SPfTBzjsIrVVCUtqRnD6YZCv1zkfFKeOPOlyTgHZ8DnRRB/nsIA5Aww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhtMv72nzzbGH; Mon, 4 Nov 2024 13:58:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4Dw354047875; Mon, 4 Nov 2024 13:58:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Dw32K047872; Mon, 4 Nov 2024 13:58:03 GMT (envelope-from git) Date: Mon, 4 Nov 2024 13:58:03 GMT Message-Id: <202411041358.4A4Dw32K047872@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 914752d0f7f8 - main - praudit: correct test case List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 914752d0f7f874ab4fc8393aee28c22df87324f2 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=914752d0f7f874ab4fc8393aee28c22df87324f2 commit 914752d0f7f874ab4fc8393aee28c22df87324f2 Author: Ed Maste AuthorDate: 2024-11-04 13:42:00 +0000 Commit: Ed Maste CommitDate: 2024-11-04 13:57:13 +0000 praudit: correct test case The -n flag specifies that user and group IDs should remain numeric, not be mapped to names. The golden output for praudit -n, however, contained user and group names. Reported by: markj Reviewed by: markj Fixes: ba10bfe509dc ("libbsm: honour AU_OFLAG_NORESOLVE") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47434 --- usr.sbin/praudit/tests/input/numeric_form | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/praudit/tests/input/numeric_form b/usr.sbin/praudit/tests/input/numeric_form index 09f089450ac3..144be694f2e4 100644 --- a/usr.sbin/praudit/tests/input/numeric_form +++ b/usr.sbin/praudit/tests/input/numeric_form @@ -2,6 +2,6 @@ header,113,11,socket(2),0,Mon Jun 11 10:18:45 2018, + 380 msec argument,1,0x1c,domain argument,2,0x2,type argument,3,0x0,protocol -subject,root,root,wheel,root,wheel,7053,4724,37636,10.0.2.2 +subject,0,0,0,0,0,7053,4724,37636,10.0.2.2 return,success,3 trailer,113 From nobody Mon Nov 4 14:02:44 2024 X-Original-To: dev-commits-src-all@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 4XhtTP1Nk2z5c7Jj; Mon, 04 Nov 2024 14:02:49 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhtTN5gR3z4RxP; Mon, 4 Nov 2024 14:02:48 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTPS id 7x6ItedCFMArN7xfKtZbLk; Mon, 04 Nov 2024 14:02:46 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id 7xfJtS8dKKHV87xfJtW6OY; Mon, 04 Nov 2024 14:02:46 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=XeEqz555 c=1 sm=1 tr=0 ts=6728d406 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=VlfZXiiP6vEA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=PxZaom5FXS5mHa0N_XkA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id A090F2FA; Mon, 04 Nov 2024 06:02:44 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 9699D6F; Mon, 04 Nov 2024 06:02:44 -0800 (PST) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Olivier Certner cc: Cy Schubert , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 5169d4307eb9 - main - nfs: Fallback to GID_NOGROUP on no groups In-reply-to: <2989864.slGk94SIus@ravel> References: <202411031547.4A3Fl0Lh079122@gitrepo.freebsd.org> <2094473.mIT35NG9lc@ravel> <20241104032348.BF6D01A5@slippy.cwsent.com> <2989864.slGk94SIus@ravel> Comments: In-reply-to Olivier Certner message dated "Mon, 04 Nov 2024 14:50:02 +0100." List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 04 Nov 2024 06:02:44 -0800 Message-Id: <20241104140244.9699D6F@slippy.cwsent.com> X-CMAE-Envelope: MS4xfFlnPUyEpntLLh1Q2BaTcC/fIEVVyJvLjjY/I8nVJXCNAKVLzEwd5U0mrlzKwVrXQX91FQmr1YNiW6qWYayEZp2QoDNQ81KD8rZ4d+R2m23DoeWRZ4nS A7l7zMrWNLaOEtFW5n+9cOz309ndvnJRNoDfVxkYqXfSXNiKA5chSw6m6JYhph0eBsyUzoOzqdnSGX16hpqXzB8wf3MgM5bQ/+kBnXQXc0tD9O3HV+epxgNc q/o9CJWMU3R4agzS30O+cjYKQpPu2695gIM0kgjKTHUaswvnbIlvSAlTevfefvAXya4EnwVhtsq2p8AgpnfDZYOX8pqlDQ0hxu7c5WznG1g= X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4XhtTN5gR3z4RxP X-Spamd-Bar: ---- In message <2989864.slGk94SIus@ravel>, Olivier Certner writes: > > > This certainly fixed the panic. Thank you. No need to thank me. My setup here makes it easy to capture console outputs. > > Well, thank *you* for your patience and support. Again, you're welcome. > > I'm not completely sure how I messed up the NFS tests, but it seems I was not > testing the right code. The good news is that I've redone my testing NFS se > tup correctly this time and actually was able to reproduce the problems you a > nd David reported with original series of changes (except your 'yppasswd' sce > nario, as I have not set up NIS). And I confirm that they are gone with the > amending commits with a number of different configuration variations (I've ju > st committed the last one, whose functional changes are identical to the one > I had posted and you tested; it just has slightly amended commit message and > comments). The first panic happened when mountd was started on the NFS server. The second panic happened when one of the clients mounted an NFS share served by the NFS server. I share my /usr/obj and didn't catch that until the next installworld/installkernel on that machine (my firewall here at home). > > Hopefully, this is the end of it, but I'll watch in case of reports saying ot > herwise. It looks this is the end of it. Thanks for all your help fixing it. I was pretty much AFK during the weekend working around the yard. No time for computers. > > Sorry again for the breakages and disturbance. NP > > -- > Olivier Certner -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0 From nobody Mon Nov 4 14:46:31 2024 X-Original-To: dev-commits-src-all@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 4XhvRr2tPDz5c9W0; Mon, 04 Nov 2024 14:46:32 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhvRr0wZ3z4Wlw; Mon, 4 Nov 2024 14:46:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730731592; 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=wAdF9pEq75lPCLbAQjdEt23LDT3JPjHrUKjUiom9sJo=; b=MV0t3hPWIcWcGiiH9fpVCUPGwaF8U8Pkz1ORYnaZCa0cSTnwNYKLBpNQc+WiJdejNhG7xv 5lPnDP0MjGyDNg2zwQh4DwAvYSID11FDsloqPS2Sqju72rSa1PCTsgDNhnVETXfj6aK1Zz j6uL4p1DUC5mANuHZ3fvECMF4zckZ06vBLyibCim8T8qSO7yp1mBMbbS3BE48qkLK6vngE rlgObIGI7cqqnWTAY1SYh8pfh5/8O+FCitGw9HkMPAlqBtREh+Gba3lkmaTLcbxN5WnrIP 3UNV/nfGrAtfM3Kn5gTOdqoCMVGKoDPQ0KhXzPd8CABH8Tu50hAYZjjXMIKyzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730731592; 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=wAdF9pEq75lPCLbAQjdEt23LDT3JPjHrUKjUiom9sJo=; b=mVXJnI2JNnaYX9CZ9YgkFAsDNtEtwQhNfITNLc3WmCzbMvB8oLhEJ0z0TyGhtDhCZNXr/w 5vkqO7fYZExGgYnge5JloFyqeajqfVnA17r7jI4FfEDYg4KewqjbBPX8unLs19xU7leWDH p21mv4zipSHsqOlKT9OM+tZLx0/+IcU/2pGkvDcE7Q9pSX9Y7w9Cweah5MK4tzw+cwsrem U6oz5y/2XrwTvW7AprtanNqCB2tEh0lWK7F8P6d/HwDJrJo22+cQGIqE8EeS+JTthAEcjq 2MEHqf5MgsoRb9ZW8wntMCQEvTx9y7BYULD451s4oTbEMF0X35ib7t0h8AbkuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730731592; a=rsa-sha256; cv=none; b=NsEhF4eTtPSL3N/AFkLAGxZISx7rLwYzVycY0calHaRjaZcoCBKjH+oxukEeOUi5WODTKP WZK6i9BrlzEZkfwI89hJglsQEIspCS73bpeYyK1VJPvMUVGllCRRfBGl/CR7T7BoJnJW1u 2HbBdDS3bH4MxChQUJ1XQcrIEWSQrpxO2U2EQFvsgPscmFYgKLk3M+7byEbZM2xGIp6HLk 1T3xtZlDP+UJOmqR3/uFdgamXwXXuMowx+GhGiBb5+OF/JpHWVtPJB10wbDvllOUKGyU29 rpCLrlawOEkJ2GeqjSKSeZhOXfl5vEZM2AVZTG07Hsn0NIxL8Uaii2JLHSolBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhvRq6LfPzdCh; Mon, 4 Nov 2024 14:46:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4EkVfC040425; Mon, 4 Nov 2024 14:46:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4EkVxI040422; Mon, 4 Nov 2024 14:46:31 GMT (envelope-from git) Date: Mon, 4 Nov 2024 14:46:31 GMT Message-Id: <202411041446.4A4EkVxI040422@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f95acbd89d59 - main - vmm: Rename the amdiommu driver to amdviiommu List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f95acbd89d594b5932197679d94d2ba23c1d0331 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f95acbd89d594b5932197679d94d2ba23c1d0331 commit f95acbd89d594b5932197679d94d2ba23c1d0331 Author: Mark Johnston AuthorDate: 2024-11-04 14:44:19 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 14:45:57 +0000 vmm: Rename the amdiommu driver to amdviiommu To avoid a conflict with the new amdiommu driver imported recently. Fixes: 0f5116d7efe3 ("AMD IOMMU driver") Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D47415 --- sys/amd64/vmm/amd/{amdiommu.c => amdviiommu.c} | 38 +++++++++++++------------- sys/modules/vmm/Makefile | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/sys/amd64/vmm/amd/amdiommu.c b/sys/amd64/vmm/amd/amdviiommu.c similarity index 85% rename from sys/amd64/vmm/amd/amdiommu.c rename to sys/amd64/vmm/amd/amdviiommu.c index 69432498a5c2..5f5822a667b5 100644 --- a/sys/amd64/vmm/amd/amdiommu.c +++ b/sys/amd64/vmm/amd/amdviiommu.c @@ -40,36 +40,36 @@ #include "amdvi_priv.h" #include "ivhd_if.h" -struct amdiommu_softc { +struct amdviiommu_softc { struct resource *event_res; /* Event interrupt resource. */ void *event_tag; /* Event interrupt tag. */ int event_rid; }; -static int amdiommu_probe(device_t); -static int amdiommu_attach(device_t); -static int amdiommu_detach(device_t); +static int amdviiommu_probe(device_t); +static int amdviiommu_attach(device_t); +static int amdviiommu_detach(device_t); static int ivhd_setup_intr(device_t, driver_intr_t, void *, const char *); static int ivhd_teardown_intr(device_t); -static device_method_t amdiommu_methods[] = { +static device_method_t amdviiommu_methods[] = { /* device interface */ - DEVMETHOD(device_probe, amdiommu_probe), - DEVMETHOD(device_attach, amdiommu_attach), - DEVMETHOD(device_detach, amdiommu_detach), + DEVMETHOD(device_probe, amdviiommu_probe), + DEVMETHOD(device_attach, amdviiommu_attach), + DEVMETHOD(device_detach, amdviiommu_detach), DEVMETHOD(ivhd_setup_intr, ivhd_setup_intr), DEVMETHOD(ivhd_teardown_intr, ivhd_teardown_intr), DEVMETHOD_END }; -static driver_t amdiommu_driver = { - "amdiommu", - amdiommu_methods, - sizeof(struct amdiommu_softc), +static driver_t amdviiommu_driver = { + "amdviiommu", + amdviiommu_methods, + sizeof(struct amdviiommu_softc), }; static int -amdiommu_probe(device_t dev) +amdviiommu_probe(device_t dev) { int error; int capoff; @@ -99,7 +99,7 @@ amdiommu_probe(device_t dev) } static int -amdiommu_attach(device_t dev) +amdviiommu_attach(device_t dev) { device_set_desc(dev, "AMD-Vi/IOMMU PCI function"); @@ -107,7 +107,7 @@ amdiommu_attach(device_t dev) } static int -amdiommu_detach(device_t dev) +amdviiommu_detach(device_t dev) { return (0); @@ -117,7 +117,7 @@ static int ivhd_setup_intr(device_t dev, driver_intr_t handler, void *arg, const char *desc) { - struct amdiommu_softc *sc; + struct amdviiommu_softc *sc; int error, msicnt; sc = device_get_softc(dev); @@ -158,7 +158,7 @@ fail: static int ivhd_teardown_intr(device_t dev) { - struct amdiommu_softc *sc; + struct amdviiommu_softc *sc; sc = device_get_softc(dev); @@ -176,5 +176,5 @@ ivhd_teardown_intr(device_t dev) } /* This driver has to be loaded before ivhd */ -DRIVER_MODULE(amdiommu, pci, amdiommu_driver, 0, 0); -MODULE_DEPEND(amdiommu, pci, 1, 1, 1); +DRIVER_MODULE(amdviiommu, pci, amdviiommu_driver, 0, 0); +MODULE_DEPEND(amdviiommu, pci, 1, 1, 1); diff --git a/sys/modules/vmm/Makefile b/sys/modules/vmm/Makefile index 47504a053c34..15454b345934 100644 --- a/sys/modules/vmm/Makefile +++ b/sys/modules/vmm/Makefile @@ -107,7 +107,7 @@ SRCS+= ept.c \ # amd-specific files .PATH: ${SRCTOP}/sys/amd64/vmm/amd SRCS+= vmcb.c \ - amdiommu.c \ + amdviiommu.c \ ivhd_if.c \ ivhd_if.h \ svm.c \ From nobody Mon Nov 4 14:55:57 2024 X-Original-To: dev-commits-src-all@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 4Xhvfj3nbHz5cB3r; Mon, 04 Nov 2024 14:55:57 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhvfj37nfz4XVG; Mon, 4 Nov 2024 14:55:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732157; 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=SjweT/vFy2IOyfVNhz1Jd1HCGhK1etP9+9PHAX2Dia4=; b=ulg2gLJO1DfC+Xj1SrJGuDd6qUvtcP2ltLfATkzC5kX36+3wLtfJvgsk1HvQcPNwkedrQY NeR1oWaCyzPiApG3a6mdjtysru5L8Md0r5Y4UkBuBgFHyUwxjLHBE2o2L+xWVte0XDEeJP hN1Snjppyv8WKmCrQryijTvE6EP7t+Rapxj/z2T8pnEckInMvSaLRkeLq8y8Y/jOdV2kTE Kj7xphvHRNqJRHBWlyydYs6M+CPiKITA28DhgYVR4AAUwzBKz1isF4LPOwkXJKmMXJ5aM+ dmBiE1XhK4pELMFNS8acNfFhUOC4xgygyDE5U5PDQNRs53sQn2FMwxP3led+WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732157; 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=SjweT/vFy2IOyfVNhz1Jd1HCGhK1etP9+9PHAX2Dia4=; b=OjB5X/1O1+1vbTVGIIHsrcPrkbnaPEzceGXaXzq6/fQF8MCfATGqFDZ6eFbyfFoSGVQ1HE WzK5SJl+mBwCedifKBCAe9ifH/ENRrgsN8mUa/mtY7SQs249oCXp2vMblpMEs2pT59QXzU fGPUdrRohQ+MfyK/99A+p5keJYf2O7YduLMJ6rrc3xoElBhVg823vn6kqIHyYtWfwEYY2Z rOzC1PlXsNAb4JaKbRr+af2cKhbsbXNXejQFiXZhdsr81e9Twm/lE2L2BeumMc0JjNng13 JxchxTCTfJF6+JlOe7MSf9ltqQLTv0Vqy3JAqW+08rSHsUR7sJns0akrAWTxBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730732157; a=rsa-sha256; cv=none; b=pLCZ5AZ8MFkpl/YXEb82ATZzHRtzE+y1C2cLKG/CzUkIvOhnv+GY1X6AJhfkqWHjghwCYN X8Q0VPNrRQzF7hDu3DHnt+4Gjs7jb2CVjy6Oxws+zZpjbKwtdvikNNIOvQvrM4FSn99R6/ ZXWIGpnnBGn2GiY/mjS4qAACVLny9wYvX+xkKm6DBLM2wP99tIJ8rYXZ29IsX9f82/phb/ 2gUtgbHyBDKDHJbEHzrKbJnhqk6GaUg0NP/yG40lklBTB/0vc1rmzv3Y+8MwCovq55ed/r I2eCJuvd0NQMPCkJbzrUDCx7+Hk8NLZuHDdeTMZZZGClMqnDCQc+OkSVZjNZ3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhvfj2J17zdZV; Mon, 4 Nov 2024 14:55:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4EtvQC059154; Mon, 4 Nov 2024 14:55:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Etve0059151; Mon, 4 Nov 2024 14:55:57 GMT (envelope-from git) Date: Mon, 4 Nov 2024 14:55:57 GMT Message-Id: <202411041455.4A4Etve0059151@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 4ff71ffaa79b - stable/14 - rc.d/sendmail: Return non-zero if the daemon fails to start or is not running List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4ff71ffaa79b4b609b70b60d716faffce768bb41 Auto-Submitted: auto-generated The branch stable/14 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=4ff71ffaa79b4b609b70b60d716faffce768bb41 commit 4ff71ffaa79b4b609b70b60d716faffce768bb41 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2024-10-21 10:10:52 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-11-04 14:55:40 +0000 rc.d/sendmail: Return non-zero if the daemon fails to start or is not running If you have a mail server that is running sendmail daemon (sendmail_enable=YES) and sendmail queue runner (sendmail_msp_queue=YES) and the sendmail daemon dies, /etc/rc.d/sendmail status does see the daemon is not running but returns 0 as the exit code. This prevents other programs (like puppet) from restarting sendmail to fix the issue. Make sure that the exit code is propagated towards the end of the script if any of the sendmail services fail. This patch does not call exit directly but instead just sets the exit status code by calling exit in a subshell. This way we do not exit the current shell in case the service script is sourced (e.g., when rc_fast_and_loose is active). PR: 223132 MFC after: 2 weeks Reported by: pirzyk Discussed with: jilles, eugen Reviewed by: christos, gshapiro (previous version), markj Approved by: christos (mentor), markj (mentor) Differential Revision: https://reviews.freebsd.org/D46862 Co-authored-by: Jim Pirzyk (cherry picked from commit d2e7bb630b83848a774d8213014a9e0747775019) --- libexec/rc/rc.d/sendmail | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libexec/rc/rc.d/sendmail b/libexec/rc/rc.d/sendmail index ea97503890f9..28d6818eabac 100755 --- a/libexec/rc/rc.d/sendmail +++ b/libexec/rc/rc.d/sendmail @@ -204,6 +204,7 @@ sendmail_precmd() } run_rc_command "$1" +_ret=$? required_files= @@ -212,6 +213,7 @@ if checkyesno sendmail_submit_enable; then rcvar="sendmail_submit_enable" _rc_restart_done=false run_rc_command "$1" + _ret=$(( _ret > $? ? _ret : $? )) fi if checkyesno sendmail_outbound_enable; then @@ -219,6 +221,7 @@ if checkyesno sendmail_outbound_enable; then rcvar="sendmail_outbound_enable" _rc_restart_done=false run_rc_command "$1" + _ret=$(( _ret > $? ? _ret : $? )) fi name="sendmail_msp_queue" @@ -227,3 +230,6 @@ pidfile="${sendmail_msp_queue_pidfile:-/var/spool/clientmqueue/sm-client.pid}" required_files="/etc/mail/submit.cf" _rc_restart_done=false run_rc_command "$1" +_ret=$(( _ret > $? ? _ret : $? )) + +(exit "$_ret") From nobody Mon Nov 4 14:56:01 2024 X-Original-To: dev-commits-src-all@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 4Xhvfn617kz5cB3t; Mon, 04 Nov 2024 14:56:01 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhvfn57Wbz4Y3q; Mon, 4 Nov 2024 14:56:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732161; 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=NzpsV/OfIZGIuSmsqQ2G4X/+9pLbJI3qolZuyMcQzxc=; b=ZsFm82RobS9wdZHNh9X/+x003Kd2acycR6nSoHOO3ZGjpGbJ0Oo4ylx8chQJvjp3p0gfI8 +b2q/d+VlbwVXNTIB0NWbqi/NFNlbulAxZEqOeMYCpDEz+pCSdfRFt7v9WQ4BTMA7YRFot 6ZfEY4IoiylOMXWHFDXEnnj5dQeDH/PExmbrymzgSZqq83ejZObzxc+yIZT/L8K7v5T2E2 iYXAgdBW12dIp9zuIolWpwlJbyWtxNgZF5V6xpjY5Fr9JErKr+9TMgx1NKtvW4TM2XEm92 p/jEYPVHLR5x0G6s/OGaL1qxva2D6bGYZkZr6mkvlYmjeQe/R8foZqNYXoQNYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732161; 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=NzpsV/OfIZGIuSmsqQ2G4X/+9pLbJI3qolZuyMcQzxc=; b=EVKcIFjODVL7Nh92J6yh6g9OcI3cMp2O61IAGIs5RAUJm79o3x8GA3Je6qSEg+QU3sAXff pAV3x5E40jjRYbjVwieKWtyr0Es6bEz8+GHMVjKEzb/HvNavlaQFGOozxeZMtr9dI3n+yh iee6bro+qv7kJHfyi+1ykwn6vsITHqlcoRWc0brqOqk/OC7bN04zrM0tBOVt7v0tMhCIrK PGcr2hlG7Y30tLFjel6lbBPHJ4EUH2XXgka5hTdgxiN7oXXsokV5MuFWYaMuqqqoTTJ7sv fKUbECeCbhCwIvAhQlLy/qqPs/UXRHb/7+3JSvrtGIUsk9fb6vhPaVPQXuQ0pg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730732161; a=rsa-sha256; cv=none; b=DxC/D1HveSuzVrwDL3vQoruY7zlj9aaK+z9SG27Z4MYS1whd1YJOBU4BetMlgfDyaZ2lQ3 fST+e3vZt/F+wdPRgyDBz8ERDytD5KpcehWcPPEfz6bkfkn+Ek6Ulg9alr5TymCjNPqM2i SJntLGs/M+qaHvllvqV+XXuKkjocbxEsSiz2cUesKO7pbIggPt+BaczPRiqv3ViWHdPGHM bWKRDqoVOLYxUOYxhZ/+SS0jKDVBrqFZpRcUUBW5/D/+2D2q7GkI3wuIaf9peouOYKwUIO ejMClFndPiXbsyDAm92u2pWrcYYjtMNRCz+dgy+NReyBLhgA+MLfvHbZag1R3w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhvfn4X9NzdDC; Mon, 4 Nov 2024 14:56:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4Eu1Ar059334; Mon, 4 Nov 2024 14:56:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Eu1na059331; Mon, 4 Nov 2024 14:56:01 GMT (envelope-from git) Date: Mon, 4 Nov 2024 14:56:01 GMT Message-Id: <202411041456.4A4Eu1na059331@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: d36998a6cc68 - stable/13 - rc.d/sendmail: Return non-zero if the daemon fails to start or is not running List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d36998a6cc6853e54066d476d146e1b510976418 Auto-Submitted: auto-generated The branch stable/13 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=d36998a6cc6853e54066d476d146e1b510976418 commit d36998a6cc6853e54066d476d146e1b510976418 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2024-10-21 10:10:52 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-11-04 14:55:55 +0000 rc.d/sendmail: Return non-zero if the daemon fails to start or is not running If you have a mail server that is running sendmail daemon (sendmail_enable=YES) and sendmail queue runner (sendmail_msp_queue=YES) and the sendmail daemon dies, /etc/rc.d/sendmail status does see the daemon is not running but returns 0 as the exit code. This prevents other programs (like puppet) from restarting sendmail to fix the issue. Make sure that the exit code is propagated towards the end of the script if any of the sendmail services fail. This patch does not call exit directly but instead just sets the exit status code by calling exit in a subshell. This way we do not exit the current shell in case the service script is sourced (e.g., when rc_fast_and_loose is active). PR: 223132 MFC after: 2 weeks Reported by: pirzyk Discussed with: jilles, eugen Reviewed by: christos, gshapiro (previous version), markj Approved by: christos (mentor), markj (mentor) Differential Revision: https://reviews.freebsd.org/D46862 Co-authored-by: Jim Pirzyk (cherry picked from commit d2e7bb630b83848a774d8213014a9e0747775019) --- libexec/rc/rc.d/sendmail | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libexec/rc/rc.d/sendmail b/libexec/rc/rc.d/sendmail index ea97503890f9..28d6818eabac 100755 --- a/libexec/rc/rc.d/sendmail +++ b/libexec/rc/rc.d/sendmail @@ -204,6 +204,7 @@ sendmail_precmd() } run_rc_command "$1" +_ret=$? required_files= @@ -212,6 +213,7 @@ if checkyesno sendmail_submit_enable; then rcvar="sendmail_submit_enable" _rc_restart_done=false run_rc_command "$1" + _ret=$(( _ret > $? ? _ret : $? )) fi if checkyesno sendmail_outbound_enable; then @@ -219,6 +221,7 @@ if checkyesno sendmail_outbound_enable; then rcvar="sendmail_outbound_enable" _rc_restart_done=false run_rc_command "$1" + _ret=$(( _ret > $? ? _ret : $? )) fi name="sendmail_msp_queue" @@ -227,3 +230,6 @@ pidfile="${sendmail_msp_queue_pidfile:-/var/spool/clientmqueue/sm-client.pid}" required_files="/etc/mail/submit.cf" _rc_restart_done=false run_rc_command "$1" +_ret=$(( _ret > $? ? _ret : $? )) + +(exit "$_ret") From nobody Mon Nov 4 14:56:33 2024 X-Original-To: dev-commits-src-all@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 4XhvgP4hDWz5c9jv; Mon, 04 Nov 2024 14:56:33 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhvgP468jz4YLh; Mon, 4 Nov 2024 14:56:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732193; 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=7hnViQkUEXHuDu0Au1ayuRAkCcRVmqb5AQWMUzMdr8Q=; b=U6CA9sRnT2vOjhrAfxGuu67F51U0Z8mezYtIPhLrb8sHjntA12+tIbTo04FY1YYmP5wqBs xTvdBcYYDkNtsQ9pNQvqmZuGUZ6nMJgJG6j75q8RM+6reclQAPiQZKcNDIvGC1QTfgHleQ guaL3K+86bLV6Uj1Pn4TtdvTVBa8aNlT/eizcIVc9ewRuyQRKFsUJPfyCS5OUd+gm14tUZ a+y4IRF4LICYuEDgEkjNejI0wmv02ZA/nRUw5q2RHlWTssbN1nRzh2QZzy1X1eqy7Qcz1O eM3xIaaj4hjFLl0cpQ3SFze+bm8aJVXxr3+loRpjxNbJRtbTJcm9EOq30mPIKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732193; 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=7hnViQkUEXHuDu0Au1ayuRAkCcRVmqb5AQWMUzMdr8Q=; b=HplrE9KxpAVoFz0cH75VpDFCfXmWmhNMDOk98Ds+XOXUqrutSQXDtwserBdMyJXGLjS0Up 9TyZ49/jqF/N+qqgfW0GQg9bzPWHAII/ZXAZA+pPBAE04SB0DAqW/OqeE8hI6z62I0z/5F 3WnQeW8EuMoubPIaXB19v1TJrfOJ/z8uRMVS9SRW2ecnDBR9oMnnZ4uclZHkUaz7qnCtId 8d+hD3DD8EJgKoqOfjoc5LGmOpaG60cIfzLgGNOk9duMEkMY9s9RvDAHR3XFyEottpS0x/ apwmh1A/t9BEi+VO3rOJFDThp11m3lrxp+6D2moJPIPKLcZ1fO05rdp8Gxmukg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730732193; a=rsa-sha256; cv=none; b=maEDCCzMaK/yKtfq+R44vGrhxWb7ABZQZPve9SSy9sLHs1ULJmjZEuKn3uKsXJvytpSQC2 TAMKRXQ9gLeMxAWaZzYVXOUDpwkwkfac0RgZp02YvdTjNdTQm4bYp3wDvXnUHyyG42ygd2 Hd+2x3eFWGbEPjJlJ7+o3B1GRpB/maL5hhSM8F358HZN590QVABgz5zbtJF4BmnRWKZlfT +nK4V5E+OMSFBw5DwCy4q+gefLDJ4oPXjCXO/4N/bThyDMTW3OGb/Hr6d6PnrOCqx0LD5K CmAdKPN70KozSF6SK/IsJzcRPzv0sIPGbGnpzoa/GDvFchScwqxqczTUj4DhTA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhvgP3cp1zdQC; Mon, 4 Nov 2024 14:56:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4EuX6I059672; Mon, 4 Nov 2024 14:56:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4EuXKm059669; Mon, 4 Nov 2024 14:56:33 GMT (envelope-from git) Date: Mon, 4 Nov 2024 14:56:33 GMT Message-Id: <202411041456.4A4EuXKm059669@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 349d1366edd2 - main - socket: Export the FIB number of sockets List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 349d1366edd23af0059e1798f436089e861d934f Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=349d1366edd23af0059e1798f436089e861d934f commit 349d1366edd23af0059e1798f436089e861d934f Author: Mark Johnston AuthorDate: 2024-11-04 14:39:48 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 14:56:19 +0000 socket: Export the FIB number of sockets Reviewed by: zlei MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D47315 --- sys/kern/uipc_socket.c | 1 + sys/sys/socketvar.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index a139a9d1f301..d8878505d511 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -5033,6 +5033,7 @@ sotoxsocket(struct socket *so, struct xsocket *xso) xso->so_uid = so->so_cred->cr_uid; xso->so_pgid = so->so_sigio ? so->so_sigio->sio_pgid : 0; SOCK_LOCK(so); + xso->so_fibnum = so->so_fibnum; if (SOLISTENING(so)) { xso->so_qlen = so->sol_qlen; xso->so_incqlen = so->sol_incqlen; diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 40464f555816..fda8d23f5649 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -615,7 +615,8 @@ struct xsocket { uint32_t so_qlimit; pid_t so_pgid; uid_t so_uid; - int32_t so_spare32[8]; + int32_t so_fibnum; + int32_t so_spare32[7]; int16_t so_type; int16_t so_options; int16_t so_linger; From nobody Mon Nov 4 14:56:34 2024 X-Original-To: dev-commits-src-all@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 4XhvgQ5qWdz5c9jx; Mon, 04 Nov 2024 14:56:34 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhvgQ5CK0z4YCV; Mon, 4 Nov 2024 14:56:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732194; 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=tdKhLexhWltEnK4kJV/yUNoh5FFEfnlyVRzGm6fJ118=; b=uJ9u9ifPXpzxxZK0mhhN+9iRXnNsD3FTUhb0oiVYlk+TTmcMY3C/DC+0HrgEs6XWDHSJoO AuHsqwnmoBETk+XTuP5iLwdTw/T6E+7b2OCzdd65MGCgFYR5bci0qpOXg3uL2TtZBr/DFf cld+EJqVPSy8rmfktDV5/zSAirsP0vsiR58RWKbmtgiLohI/VWKKTHpvwplyLifpBoF8yB xs8qvHE1UDkDnZCJbqXvjWMt1BAPqk8W0xdtgPeGtKZR0YkhX5VeIfSLBtBvP+ab0VBpcB pmTK+chVH7G3w1JuuxPPg8nG9gfSndlv/1XpgnMx+RNgn5lgleaDbJvI4f/5Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732194; 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=tdKhLexhWltEnK4kJV/yUNoh5FFEfnlyVRzGm6fJ118=; b=TWOETtnORNwgwWYyp9U31UxDIdd0bh1hWNhjya4SuyTC1I2tPLD0+88SfBJ3Wfld63asHg un/Vh+mcFucHcRduBde53BBxEXTecP7UkPNSQUfdovx987h340t5SWGbYIXYCdcDsJ4YNI X4sN+6Z5JYh53X8IxHWPc3r8OxMI7W9N+1rZCsNr0kjuI77I77ipKx0AeSaTFapmEfTZHT fU8ItAm58ewIzXkSjgtl47nqVifp/yRDwwxtkqg24u07K/Zq3zOjvZwA/ILkY6uOfcF2nf ugaxXWzXSb74SGEq8LiKQ/JaBSgmi2kAU6GZHKsKJABA2lRBO8YbPu5AHPbOrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730732194; a=rsa-sha256; cv=none; b=kRl1p56j1OIZ2owqUAyqQ7zFNzJMjBQsCZ706PFV8NvEyvw9k+eiSc0sgVAkgBLNdwSlaO 0/MqR6yUOCQGGG6M3ReGufnHnKrH3OSHSsp18tZarUoNIxZ2IUdBaC3f6HltWrfHxfCWcp CA3HRUKfIqN2Pa6++AhNhULZKjEPyst2oH6oCSXpYgLRUODm7vT5DvYT3WC9ys3P/vZGb/ 27k5fFWbB/ektxWCLuQLcwCOjvRc0/FUDQMG3aWPBa2US+VrR9H797aXls5IS3j0HsaHpL xiJXdbQSDChZmdGAC40JRkXNi5+4tmSne0m1myAGTiPyovlbtAadiTFWr1HuvQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhvgQ4fNkzdbN; Mon, 4 Nov 2024 14:56:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4EuYdS059744; Mon, 4 Nov 2024 14:56:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4EuYv3059741; Mon, 4 Nov 2024 14:56:34 GMT (envelope-from git) Date: Mon, 4 Nov 2024 14:56:34 GMT Message-Id: <202411041456.4A4EuYv3059741@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: a471d2b401c9 - main - sockstat: Add a -f option to show FIB numbers of sockets List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a471d2b401c9b2d3a95d9139c9a6b123f686a8e9 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=a471d2b401c9b2d3a95d9139c9a6b123f686a8e9 commit a471d2b401c9b2d3a95d9139c9a6b123f686a8e9 Author: Mark Johnston AuthorDate: 2024-11-04 14:40:30 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 14:56:19 +0000 sockstat: Add a -f option to show FIB numbers of sockets Reviewed by: zlei MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D47316 --- usr.bin/sockstat/sockstat.1 | 7 +++++-- usr.bin/sockstat/sockstat.c | 22 ++++++++++++++++++---- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/usr.bin/sockstat/sockstat.1 b/usr.bin/sockstat/sockstat.1 index d7174b48f8d5..ca486a088b13 100644 --- a/usr.bin/sockstat/sockstat.1 +++ b/usr.bin/sockstat/sockstat.1 @@ -25,7 +25,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 9, 2024 +.Dd October 15, 2024 .Dt SOCKSTAT 1 .Os .Sh NAME @@ -33,7 +33,7 @@ .Nd list open sockets .Sh SYNOPSIS .Nm -.Op Fl 46CcIiLlnqSsUuvw +.Op Fl 46CcfIiLlnqSsUuvw .Op Fl j Ar jail .Op Fl p Ar ports .Op Fl P Ar protocols @@ -59,6 +59,8 @@ Display the congestion control module, if applicable. This is currently only implemented for TCP. .It Fl c Show connected sockets. +.It Fl f +Show the FIB number of each socket. .It Fl I Show the local address of the socket to which the current socket is spliced, if any. @@ -228,6 +230,7 @@ $ sockstat -6 -P tcp .Xr fstat 1 , .Xr netstat 1 , .Xr procstat 1 , +.Xr setfib 1 , .Xr inet 4 , .Xr inet6 4 , .Xr protocols 5 diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index d2581d9f042e..b18c56ca6f88 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -82,6 +82,7 @@ static int opt_4; /* Show IPv4 sockets */ static int opt_6; /* Show IPv6 sockets */ static int opt_C; /* Show congestion control */ static int opt_c; /* Show connected sockets */ +static int opt_f; /* Show FIB numbers */ static int opt_I; /* Show spliced socket addresses */ static int opt_i; /* Show inp_gencnt */ static int opt_j; /* Show specified jail */ @@ -140,6 +141,7 @@ struct sock { int family; int proto; int state; + int fibnum; const char *protoname; char stack[TCP_FUNCTION_NAME_LEN_MAX]; char cc[TCP_CA_NAME_MAX]; @@ -771,6 +773,7 @@ gather_inet(int proto) sock->splice_socket = so->so_splice_so; sock->proto = proto; sock->inp_gencnt = xip->inp_gencnt; + sock->fibnum = so->so_fibnum; if (xip->inp_vflag & INP_IPV4) { sock->family = AF_INET; sockaddr(&laddr->address, sock->family, @@ -1204,6 +1207,12 @@ displaysock(struct sock *s, int pos) default: abort(); } + if (opt_f) { + while (pos < offset) + pos += xprintf(" "); + pos += xprintf("%d", s->fibnum); + offset += 7; + } if (opt_I) { if (s->splice_socket != 0) { struct sock *sp; @@ -1329,6 +1338,9 @@ display(void) "USER", "COMMAND", "PID", "FD", "PROTO", opt_w ? 45 : 21, "LOCAL ADDRESS", opt_w ? 45 : 21, "FOREIGN ADDRESS"); + if (opt_f) + /* RT_MAXFIBS is 65535. */ + printf(" %-6s", "FIB"); if (opt_I) printf(" %-*s", opt_w ? 45 : 21, "SPLICE ADDRESS"); if (opt_i) @@ -1453,9 +1465,8 @@ jail_getvnet(int jid) static void usage(void) { - fprintf(stderr, - "usage: sockstat [-46CcIiLlnqSsUuvw] [-j jid] [-p ports] [-P protocols]\n"); - exit(1); + errx(1, + "usage: sockstat [-46CcfIiLlnqSsUuvw] [-j jid] [-p ports] [-P protocols]"); } int @@ -1469,7 +1480,7 @@ main(int argc, char *argv[]) int o, i; opt_j = -1; - while ((o = getopt(argc, argv, "46CcIij:Llnp:P:qSsUuvw")) != -1) + while ((o = getopt(argc, argv, "46CcfIij:Llnp:P:qSsUuvw")) != -1) switch (o) { case '4': opt_4 = 1; @@ -1483,6 +1494,9 @@ main(int argc, char *argv[]) case 'c': opt_c = 1; break; + case 'f': + opt_f = 1; + break; case 'I': opt_I = 1; break; From nobody Mon Nov 4 15:01:54 2024 X-Original-To: dev-commits-src-all@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 4XhvnZ6K30z5cBL8; Mon, 04 Nov 2024 15:01:54 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhvnZ5tSMz4ZVS; Mon, 4 Nov 2024 15:01:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732514; 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=hdjE5/WoVwNYjUCGbG3uUlHw6V/vMEl/CYuVqNK6FB8=; b=FOeHaVk9i0V/j1Fr/6m4qN/tNU9ZuyD5iaGbzPtweRemw0ZRXIPLfpW7mBE1UiCjNric9P gifht+FNg5D88SwDOfh9ll2259KummclxNtmleBfVOTTYIKUqMzdT9e2DWgT3lM50M44qH 9KpWzEWpmR19KPHKSy64k05452qt7B5siuoVkynyy1Ymh30m58BTQJnXhp+OWEBhCp4kuK qwZJ+r9szH42Vmf/n9/pETaJjH653o2/wds3G+Qagf677cKES4wxs8RCLGHzPqoYnRTAWW 4c0m3IMawH0CyTUFop0k60SYj5nUxk6e7yjokH3d+fXKQ2YvpRrYLp2/51cWjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730732514; 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=hdjE5/WoVwNYjUCGbG3uUlHw6V/vMEl/CYuVqNK6FB8=; b=irwxwzqLDjGQcfqaef2xwo6ofPLAEtdRqCvw1qBxhU+drXvhha76n1ZznqoO3wVBSSje1y AEFbf5JWubRERCFNAZe90STQY3caMIQOVMJaGFwPnsh4pVPRYDb/R9lssDGbNdoEpltor2 PkJC3TsgvK5q1aaGBnstqxBulT49m/zaCyLgbsw3eVU9Pjt26X6B5js8MR/ZOtNmIYw6ZB nrbX+uYNsPDj1w0B1W1DVPgb2y8lHHaWfB16srJUzMNQwLFam1PCNe0Szdh1H3ypHsRPfK pEN47d3FwrDULEJH3sxw2odBvfHRAXIVhtyHJgdimZyA6FOBpFp2MCj6jrf61Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730732514; a=rsa-sha256; cv=none; b=cVHKSfjiItX+GZs9pldyMUfoDiHz8smXH+9naaNVJldoEDqO8LNBO6nd8sHMPLALoggXL/ TUjrJx+dEO1EEjjBxMJjvQlHNkv3UQ+i/uQW64kvErgsG5QF1XrGXw5UAifyHaky6RAoKY zW1RMmxq/IrXY5WuEWEIEFP+9PRG65B+uhsyazZWRKlfSniFZ+GB7nNzDlYmRF6393GSoX e+Ps60t32DqKUEDJJEiNfNUaYu8GGs/j3UsVOf6iuArCLegTDtcwImVpveLvAd+Kg2FQcS 0iB+wbmwvGZmC0yGS6T3OeHIyEC4peVYrryUvtDOGWRWczBCDXcJBuYr6rCRMg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhvnZ53p8zdDj; Mon, 4 Nov 2024 15:01:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4F1sdo078290; Mon, 4 Nov 2024 15:01:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4F1swx078287; Mon, 4 Nov 2024 15:01:54 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:01:54 GMT Message-Id: <202411041501.4A4F1swx078287@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 6e5650896fe4 - main - ice(4): properly use kernel option RSS List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e5650896fe47398e49e3d81af60cc60dbb09e6e Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=6e5650896fe47398e49e3d81af60cc60dbb09e6e commit 6e5650896fe47398e49e3d81af60cc60dbb09e6e Author: Brian Poole AuthorDate: 2024-10-11 19:57:52 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:01:37 +0000 ice(4): properly use kernel option RSS Header ice_rss.h uses the kernel RSS interface if option RSS is defined. However when ice_rss.h is included by ice_lib.h there is no prior inclusion of ice_opts.h to set RSS causing ifdef RSS to always fail. Add ice_opts.h to the top of ice_lib.h (like ice_iflib.h) so RSS can be defined when ice_rss.h is parsed. With that in place, compilation fails due to a missing defintion of ICE_DEFAULT_RSS_HASH_CONFIG. It is defined in ice_rss.h only when RSS is not defined. Since this define is not part of the kernel RSS interface but ice-specific, it should always be defined. Move its definition outside of ifdef RSS. PR: 255309 Reviewed by: mhorne, erj (earlier version) MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1460 --- sys/dev/ice/ice_lib.h | 3 +++ sys/dev/ice/ice_rss.h | 16 ++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/sys/dev/ice/ice_lib.h b/sys/dev/ice/ice_lib.h index 466cb8701b79..b6b23ec82161 100644 --- a/sys/dev/ice/ice_lib.h +++ b/sys/dev/ice/ice_lib.h @@ -40,6 +40,9 @@ #ifndef _ICE_LIB_H_ #define _ICE_LIB_H_ +/* include kernel options first */ +#include "ice_opts.h" + #include #include #include diff --git a/sys/dev/ice/ice_rss.h b/sys/dev/ice/ice_rss.h index ede1fad5abe7..df485f4b1f5a 100644 --- a/sys/dev/ice/ice_rss.h +++ b/sys/dev/ice/ice_rss.h @@ -68,14 +68,6 @@ CTASSERT(ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE >= RSS_KEYSIZE); #define RSS_HASHTYPE_RSS_UDP_IPV6 (1 << 9) /* IPv6 UDP 4-tuple */ #define RSS_HASHTYPE_RSS_UDP_IPV6_EX (1 << 10) /* IPv6 UDP 4-tuple + ext hdrs */ -#define ICE_DEFAULT_RSS_HASH_CONFIG \ - ((u_int)(RSS_HASHTYPE_RSS_IPV4 | \ - RSS_HASHTYPE_RSS_TCP_IPV4 | \ - RSS_HASHTYPE_RSS_UDP_IPV4 | \ - RSS_HASHTYPE_RSS_IPV6 | \ - RSS_HASHTYPE_RSS_TCP_IPV6 | \ - RSS_HASHTYPE_RSS_UDP_IPV6)) - #define rss_getkey(key) ice_get_default_rss_key(key) #define rss_getnumbuckets() (mp_ncpus) #define rss_get_indirection_to_bucket(index) (index) @@ -113,4 +105,12 @@ rss_hash2bucket(uint32_t hash_val, uint32_t hash_type, uint32_t *bucket_id) #endif /* !RSS */ +#define ICE_DEFAULT_RSS_HASH_CONFIG \ + ((u_int)(RSS_HASHTYPE_RSS_IPV4 | \ + RSS_HASHTYPE_RSS_TCP_IPV4 | \ + RSS_HASHTYPE_RSS_UDP_IPV4 | \ + RSS_HASHTYPE_RSS_IPV6 | \ + RSS_HASHTYPE_RSS_TCP_IPV6 | \ + RSS_HASHTYPE_RSS_UDP_IPV6)) + #endif /* _ICE_COMMON_COMPAT_H_ */ From nobody Mon Nov 4 15:19:26 2024 X-Original-To: dev-commits-src-all@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 4Xhw9p1mpzz5cCbf; Mon, 04 Nov 2024 15:19:26 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhw9p1JCBz4dYR; Mon, 4 Nov 2024 15:19:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730733566; 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=/1AxSPINhTfRAYONU6+u9OzkgNfJEWqpyary1e6/lPs=; b=vbELzQRagYl7jegwBq/jUU3W9PVZ2IukKt2t8MSLAYR5DvCOS0Lx/u9lyVD1KtzTx1Hbxg BBf9oKCf+lHUOX2E+AUPT2qBayR+183KiJmai3PMX8kSB/MOa58aCpqzHTjyhWOnq9t4Az 6kkgQwXQyqmhRwmnVIhTw7aUh4TDCQTi8nZmRraJ+xLmrjEXmqwqGRO1dLv0WhK6Z66kAg F/MnessEod9eNPC5/zpHJl9YdYBHL+efx6wm32UKBs6cd6mvmngWUp5kpVmaz3q7L7pgmb cVLIoDktkR9yBF1kTuvGzPjEN2oSO51gttkBofdY6mV0lhBHj/xvxvrwoUsjUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730733566; 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=/1AxSPINhTfRAYONU6+u9OzkgNfJEWqpyary1e6/lPs=; b=uB+a3VtyfGbFuuK9AMwR9UPnqykKLMEmDCv+SirKQx+Vll8oWPhhz9PYfhw8L+ifD4CdzE erjFKnODVbEoAaT9Tf/fxU9c7TidPbNCV282fenQm2ZlHrBB1GF1gwHDowx2ok6bVko17O 80nRRzFOTlXwQeMfKvxl2QNyWhY2RsW6B5Dj08WtcQdPKtKWC9KX+91329C6BXEaVMFxwu g5XlY53T2dBkyGoWDxkBJXyB8KpksNVP8RZRgdSUeMJWVMcXwb5oObKFJtcC+tV3Q2ZVwt gqx8/sasL5PO+xR8TZ4+IMadynER0x/9OHsQJuAWCImYAXB6ZOf6tuGO+k8GcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730733566; a=rsa-sha256; cv=none; b=Qy8JPxHcReerJo268spP2Acazq56T7PVQxFc1M48FhSksIXR+0o5npkhJq3fFoD6rNOkRB rgh0jjAsiMWjaHXD3p/2RYdFz4RlqT6pL+piWd0dke+9veCBADIS2IbLEL2xnOOFyspE2n gWjZ1/OTMwd3eCBCDXTp1Fr6CLnvnj33aHKkGIHgj5a/ADGx8iSlGw3icweq11kyrXdj+s YMbqlWyjQqlyWQ+rUAvlF8uSISznpN3+2FxHeBTxf4Sy1GbPqjufZRs10l+PG0eRcrCpwl IZ4qPE92YllTw55n2AkVHIqVg76AepRUbsCfOmQzYdSCcP4GiWDNdBEUuYEyFg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhw9p0vRnzdxN; Mon, 4 Nov 2024 15:19:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FJQM7098587; Mon, 4 Nov 2024 15:19:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FJQKW098584; Mon, 4 Nov 2024 15:19:26 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:19:26 GMT Message-Id: <202411041519.4A4FJQKW098584@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 9ca328626400 - main - pf: fix build on kernels without "options INET" List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9ca3286264006d196eeb4a284ca837ca84207a3d Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=9ca3286264006d196eeb4a284ca837ca84207a3d commit 9ca3286264006d196eeb4a284ca837ca84207a3d Author: Lexi Winter AuthorDate: 2024-11-03 16:05:05 +0000 Commit: Kristof Provost CommitDate: 2024-11-04 14:17:19 +0000 pf: fix build on kernels without "options INET" - IN_LOOPBACK() cannot be used without INET, because it references a VNET symbol vnet_entry_in_loopback_mask. - ip_fillid() is not available without INET. since this codepath is only entered in the AF_INET case, guard it with #ifnet INET. Fixes: 27f54be50bbad ("pf: merge pf_test() and pf_test6()") Fixes: 4f9e688708f1b ("pf: merge pf_scrub_ip() and pf_scrub_ip6()") Reviewed by: kp --- sys/netpfil/pf/pf.c | 2 ++ sys/netpfil/pf/pf_norm.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 17614e1a9995..90ec2b1ed033 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -576,8 +576,10 @@ static bool pf_is_loopback(sa_family_t af, struct pf_addr *addr) { switch (af) { +#ifdef INET case AF_INET: return IN_LOOPBACK(ntohl(addr->v4.s_addr)); +#endif case AF_INET6: return IN6_IS_ADDR_LOOPBACK(&addr->v6); default: diff --git a/sys/netpfil/pf/pf_norm.c b/sys/netpfil/pf/pf_norm.c index 860580812e3b..8779d599900e 100644 --- a/sys/netpfil/pf/pf_norm.c +++ b/sys/netpfil/pf/pf_norm.c @@ -2224,6 +2224,7 @@ pf_scrub(struct pf_pdesc *pd) } /* random-id, but not for fragments */ +#ifdef INET if (pd->af == AF_INET && pd->act.flags & PFSTATE_RANDOMID && !(h->ip_off & ~htons(IP_DF))) { uint16_t ip_id = h->ip_id; @@ -2231,5 +2232,6 @@ pf_scrub(struct pf_pdesc *pd) ip_fillid(h); h->ip_sum = pf_cksum_fixup(h->ip_sum, ip_id, h->ip_id, 0); } +#endif } #endif From nobody Mon Nov 4 15:26:19 2024 X-Original-To: dev-commits-src-all@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 4XhwKl2NkGz5cCZ4; Mon, 04 Nov 2024 15:26:19 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhwKl1v23z4fRd; Mon, 4 Nov 2024 15:26:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730733979; 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=zcMbbvdxF7iY/iE7r2OJ5xxpHt8GC9MzcXgPptGgGYY=; b=r5vJyTHhjsxzKOmKlFisnsg3Lo8hAot7efKAsMs6//2+l+873kJXwQ7IT0ptI1Qe0dPNsL drTBTN0bpf5OJNlBKQO/+nPptbM6/Qssa7dIMLRXrxrxxdpa1uS9Myw2xkOnOde1wE9Aix FUS4nZRRPFxtkEphhssSv9p5GtFZY+2UYA3vZEG5VIKq7533cLCEgPW9qcuZa4T/TZ12Rr tUUiFtMwkPkWtxy7PXoU4V1MpUJOz6NYCFSlBV0rEfMN04P/g0E5M2+7Bed6smrAT/yKwq wM1feVj7ZE7wtxIObff/3EAmqUqJFh5IqFTrGXdImuuuwZSMmW/R91n5lzYgnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730733979; 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=zcMbbvdxF7iY/iE7r2OJ5xxpHt8GC9MzcXgPptGgGYY=; b=ZQ+O+aOMGysmhijh37chce0xorCmycHK4VgRfKlQQlf6nkpY+2vTVMJ+8H3ws/zgPmdxl+ OnXNko4gX7NsHNPiHcJakUg/rd435vJzGv1v1mcXFivuuc6vzy1gHDMWRKtYLPh3JS17Os X0Fduy6W9Ng/at9AZ/q3Y+gGd6FD1De4hGXyaDjc6Aveov+P5fFANm3oqVJwJ94BjXHOFs SCDmapYJ4MhhnteRh/h3Sf8o7a+Ed2HwO//hr4KRBKbtEs9aggjoZsAXr1sCs/wnySNeDk 2yay54fYlM2qSVlQG3NqkeUZIvzRAYh2YQL/min/SxCau5J6geajswg2Mq1byQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730733979; a=rsa-sha256; cv=none; b=nfVBFryo69iqCdycC5QVXoSxTllpTeVevgywyxhwja9THhB0BmoOu/QclCEvsaqv1VD7Sp t6hLobGIgzyDNSp2JVIGLDFV11eabUXM85teHVhF5jc1xS2qWYKA0gD3oer19bBxS6uEJ0 kWRCA9J4wPNhv+PQ8NtZkS4EqLUljawkoQGHv4UKr0diUY+19fHDSj4/Gy2/LerUKY4G2T lEb23stPL92r98cvLrF9C4G2HciKWXTlVsHZ1xncAPGb8bcHGC+HVMeFFEilViXyAmwfxx Es1EvCLYczH3SX9LCL09aAkoTpNqiOY/nkJDiKW6X3MofgRJvX0BE8NDiW17Tg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhwKl1Tn9zdqF; Mon, 4 Nov 2024 15:26:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FQJoZ016056; Mon, 4 Nov 2024 15:26:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FQJJ0016053; Mon, 4 Nov 2024 15:26:19 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:26:19 GMT Message-Id: <202411041526.4A4FQJJ0016053@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: c7c3ef894902 - main - manuals: Remove trailing spaces List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7c3ef8949021696029fb73a513678578a9f8a46 Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=c7c3ef8949021696029fb73a513678578a9f8a46 commit c7c3ef8949021696029fb73a513678578a9f8a46 Author: Graham Percival AuthorDate: 2024-11-02 03:24:19 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:26:14 +0000 manuals: Remove trailing spaces This does not change the rendered ascii at all. Signed-off-by: Graham Percival Reviewed by: mhorne, Alexander Ziaee MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1473 --- lib/libbe/libbe.3 | 2 +- lib/libc/net/inet.3 | 2 +- sbin/mount/mntopts.3 | 2 +- sbin/nvmecontrol/nvmecontrol.8 | 2 +- secure/lib/libcrypto/man/man3/OSSL_DECODER_CTX.3 | 4 ++-- secure/lib/libcrypto/man/man3/SSL_set_retry_verify.3 | 2 +- secure/lib/libcrypto/man/man3/X509_LOOKUP.3 | 2 +- secure/usr.bin/openssl/man/openssl-speed.1 | 2 +- share/man/man3/bitstring.3 | 2 +- share/man/man3/pthread_condattr.3 | 2 +- share/man/man4/u3g.4 | 2 +- share/man/man8/debug.sh.8 | 2 +- share/man/man9/bitset.9 | 2 +- share/man/man9/mod_cc.9 | 2 +- stand/man/loader.efi.8 | 2 +- usr.sbin/i2c/i2c.8 | 2 +- usr.sbin/jail/jail.8 | 2 +- usr.sbin/newsyslog/newsyslog.conf.5 | 2 +- 18 files changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/libbe/libbe.3 b/lib/libbe/libbe.3 index eb0e9a34bb5e..4d9439206b7b 100644 --- a/lib/libbe/libbe.3 +++ b/lib/libbe/libbe.3 @@ -585,5 +585,5 @@ as mentor. .Sh AUTHORS Kyle Kneitinger, mentored as above. .Pp -Post-GSoC changes were written by +Post-GSoC changes were written by .An Kyle Evans (kevans) Aq Mt kevans@freebsd.org . diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3 index 7b1a5fcc8ede..9b822fd6805a 100644 --- a/lib/libc/net/inet.3 +++ b/lib/libc/net/inet.3 @@ -175,7 +175,7 @@ All network numbers and local address parts are returned as machine byte order integer values. .Sh INTERNET ADDRESSES (IP VERSION 4) The -.Fn inet_aton +.Fn inet_aton and .Fn inet_addr functions accept IPv4 diff --git a/sbin/mount/mntopts.3 b/sbin/mount/mntopts.3 index 2480be2bdc9e..74fca612479f 100644 --- a/sbin/mount/mntopts.3 +++ b/sbin/mount/mntopts.3 @@ -204,7 +204,7 @@ If no mount is found, NULL is returned. .Pp The .Fn chkdoreload -function takes a pointer to a +function takes a pointer to a .Vt "struct statfs" . If the filesystem associated with the mount point is mounted read-only, .Fn chkdoreload diff --git a/sbin/nvmecontrol/nvmecontrol.8 b/sbin/nvmecontrol/nvmecontrol.8 index 76c79778021d..e21079b17ed6 100644 --- a/sbin/nvmecontrol/nvmecontrol.8 +++ b/sbin/nvmecontrol/nvmecontrol.8 @@ -822,7 +822,7 @@ for the .Cm connect command. .Ss telemetry-log -Extract the telemetry log associated with +Extract the telemetry log associated with .Ar device-id , using the specified parameters: .Bl -tag -width 6n diff --git a/secure/lib/libcrypto/man/man3/OSSL_DECODER_CTX.3 b/secure/lib/libcrypto/man/man3/OSSL_DECODER_CTX.3 index ba3a05e6902c..f5b730f40096 100644 --- a/secure/lib/libcrypto/man/man3/OSSL_DECODER_CTX.3 +++ b/secure/lib/libcrypto/man/man3/OSSL_DECODER_CTX.3 @@ -182,8 +182,8 @@ OSSL_DECODER_INSTANCE_get_input_structure \& int OSSL_DECODER_CTX_set_input_structure(OSSL_DECODER_CTX *ctx, \& const char *input_structure); \& int OSSL_DECODER_CTX_add_decoder(OSSL_DECODER_CTX *ctx, OSSL_DECODER *decoder); -\& int OSSL_DECODER_CTX_add_extra(OSSL_DECODER_CTX *ctx, -\& OSSL_LIB_CTX *libctx, +\& int OSSL_DECODER_CTX_add_extra(OSSL_DECODER_CTX *ctx, +\& OSSL_LIB_CTX *libctx, \& const char *propq); \& int OSSL_DECODER_CTX_get_num_decoders(OSSL_DECODER_CTX *ctx); \& diff --git a/secure/lib/libcrypto/man/man3/SSL_set_retry_verify.3 b/secure/lib/libcrypto/man/man3/SSL_set_retry_verify.3 index fcc1c53cb096..489a4ff5423e 100644 --- a/secure/lib/libcrypto/man/man3/SSL_set_retry_verify.3 +++ b/secure/lib/libcrypto/man/man3/SSL_set_retry_verify.3 @@ -172,7 +172,7 @@ with the \fBX509_STORE_CTX\fR to call the \fBSSL_set_retry_verify()\fR function: \& \& /* this should not happen but check anyway */ \& if (idx < 0 -\& || (ssl = X509_STORE_CTX_get_ex_data(ctx, idx)) == NULL) +\& || (ssl = X509_STORE_CTX_get_ex_data(ctx, idx)) == NULL) \& return 0; \& \& if (/* we need to retry verification callback */) diff --git a/secure/lib/libcrypto/man/man3/X509_LOOKUP.3 b/secure/lib/libcrypto/man/man3/X509_LOOKUP.3 index 0cde28cae042..ce29dfe232c4 100644 --- a/secure/lib/libcrypto/man/man3/X509_LOOKUP.3 +++ b/secure/lib/libcrypto/man/man3/X509_LOOKUP.3 @@ -321,7 +321,7 @@ or \s-1NULL\s0 on error. 0 on error. .PP \&\fBX509_LOOKUP_ctrl()\fR returns \-1 if the \fBX509_LOOKUP\fR doesn't have an -associated \fBX509_LOOKUP_METHOD\fR, or 1 if the +associated \fBX509_LOOKUP_METHOD\fR, or 1 if the doesn't have a control function. Otherwise, it returns what the control function in the \&\fBX509_LOOKUP_METHOD\fR returns, which is usually 1 on success and 0 in diff --git a/secure/usr.bin/openssl/man/openssl-speed.1 b/secure/usr.bin/openssl/man/openssl-speed.1 index c6b04dd01ccd..371ef75579b5 100644 --- a/secure/usr.bin/openssl/man/openssl-speed.1 +++ b/secure/usr.bin/openssl/man/openssl-speed.1 @@ -221,7 +221,7 @@ Run benchmarks for \fInum\fR seconds. .IP "\fB\-bytes\fR \fInum\fR" 4 .IX Item "-bytes num" Run benchmarks on \fInum\fR\-byte buffers. Affects ciphers, digests and the \s-1CSPRNG.\s0 -The limit on the size of the buffer is \s-1INT_MAX\s0 \- 64 bytes, which for a 32\-bit +The limit on the size of the buffer is \s-1INT_MAX\s0 \- 64 bytes, which for a 32\-bit int would be 2147483583 bytes. .IP "\fB\-mr\fR" 4 .IX Item "-mr" diff --git a/share/man/man3/bitstring.3 b/share/man/man3/bitstring.3 index bfc0eb5ca139..07558bd41ec3 100644 --- a/share/man/man3/bitstring.3 +++ b/share/man/man3/bitstring.3 @@ -369,7 +369,7 @@ bits in the array of bits referenced by .Fa name , at or after the zero-based bit index -.Fa start +.Fa start in which all bits have the value .Fa match . If no sequence of contiguous such bits of the specified diff --git a/share/man/man3/pthread_condattr.3 b/share/man/man3/pthread_condattr.3 index f3b1d3639827..96d30263d7f2 100644 --- a/share/man/man3/pthread_condattr.3 +++ b/share/man/man3/pthread_condattr.3 @@ -52,7 +52,7 @@ .Ft int .Fo pthread_condattr_getpshared .Fa "pthread_condattr_t * restrict attr" "int * restrict pshared" -.Fc +.Fc .Ft int .Fn pthread_condattr_setpshared "pthread_condattr_t *attr" "int pshared" .Sh DESCRIPTION diff --git a/share/man/man4/u3g.4 b/share/man/man4/u3g.4 index 234b5a4b3277..4035c8d3a8df 100644 --- a/share/man/man4/u3g.4 +++ b/share/man/man4/u3g.4 @@ -16,7 +16,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd February 4, 2023 +.Dd February 4, 2023 .Dt U3G 4 .Os .Sh NAME diff --git a/share/man/man8/debug.sh.8 b/share/man/man8/debug.sh.8 index 77a1e06cc56a..bf0fdbd6bcf5 100644 --- a/share/man/man8/debug.sh.8 +++ b/share/man/man8/debug.sh.8 @@ -101,7 +101,7 @@ are ignored, they just allow for symmetry with calls to The optional .Ar rc value will be returned rather than the default of 0. -Thus if +Thus if .Fn DebugOff is the last operation in a function, .Ar rc diff --git a/share/man/man9/bitset.9 b/share/man/man9/bitset.9 index a4e360a678d7..b77cfec63e26 100644 --- a/share/man/man9/bitset.9 +++ b/share/man/man9/bitset.9 @@ -193,7 +193,7 @@ These macros are meant to be used in the kernel and are visible if or .In sys/bitset.h are included in a program. -Userland programs must define +Userland programs must define .Dv _WANT_FREEBSD_BITSET before including these files to make the macros visible. .Pp diff --git a/share/man/man9/mod_cc.9 b/share/man/man9/mod_cc.9 index 86d9c7b5312c..09580aa943a9 100644 --- a/share/man/man9/mod_cc.9 +++ b/share/man/man9/mod_cc.9 @@ -370,7 +370,7 @@ LRO system. So for example if LRO pushed three in-order acknowledgements into one acknowledgement the variable would be set to three. .Pp -The +The .Va labc variable is used in conjunction with the CCF_USE_LOCAL_ABC flag to override what labc variable the congestion controller will use diff --git a/stand/man/loader.efi.8 b/stand/man/loader.efi.8 index 736b07d2922d..1417d994478c 100644 --- a/stand/man/loader.efi.8 +++ b/stand/man/loader.efi.8 @@ -360,7 +360,7 @@ installations, setups and situations. In this section, paths that are all lower case are Unix paths. Paths that are all upper case are relative to the ESP mount point, though they may appear as lower case on your system because the -FAT filesystem of the ESP is case insensitive. +FAT filesystem of the ESP is case insensitive. .Pp Locate the ESP, which has its own partition type of .Dq efi : diff --git a/usr.sbin/i2c/i2c.8 b/usr.sbin/i2c/i2c.8 index 3415b614f87d..b5ce8aaea1a4 100644 --- a/usr.sbin/i2c/i2c.8 +++ b/usr.sbin/i2c/i2c.8 @@ -168,7 +168,7 @@ Scan the default bus (/dev/iic0) for devices: .Pp i2c -s .It -Scan the default bus (/dev/iic0) for devices and skip addresses +Scan the default bus (/dev/iic0) for devices and skip addresses 0x45 to 0x47 (inclusive) and 0x56. .Pp i2c -s -n 0x56,45-47 diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8 index 0dcab757ef24..67f325d15a93 100644 --- a/usr.sbin/jail/jail.8 +++ b/usr.sbin/jail/jail.8 @@ -951,7 +951,7 @@ A list of ZFS datasets to be attached to the jail. This requires .Va allow.mount.zfs to be set. -See +See .Xr zfs-jail 8 for information on how to configure a ZFS dataset to be operated from within a jail. diff --git a/usr.sbin/newsyslog/newsyslog.conf.5 b/usr.sbin/newsyslog/newsyslog.conf.5 index 9f229bc04402..a8ab132edaa8 100644 --- a/usr.sbin/newsyslog/newsyslog.conf.5 +++ b/usr.sbin/newsyslog/newsyslog.conf.5 @@ -305,7 +305,7 @@ flag is mostly useful in conjunction with .Cm B flag to prevent .Xr newsyslog 8 -from inserting an informational +from inserting an informational .Tn ASCII message into the new file. .It Cm G From nobody Mon Nov 4 15:38:41 2024 X-Original-To: dev-commits-src-all@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 4Xhwc13JLqz5cDYD; Mon, 04 Nov 2024 15:38:41 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhwc12mDHz4gby; Mon, 4 Nov 2024 15:38:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734721; 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=OvNeC9SCDVmxAf2WMsWyi23QakCWaOl0ItqHQCHNzIs=; b=wGJuZ8PTnr6RGQmlG10t9KVlxe+ljFdCbsHQ7L5SQn0yNhn2Dj0CujXYk/Jdp1hgoiiHuw m1k8bQINtBEVjlO91NmvdtBlaHQUdUnNCSSQhRRvLdjSDMlyqknShaY4mGic4YUPzAgnom oA3BHUESa4npwGxUGAHTAvQZKqTNFDQsl3/vvnWNVkx9UsiYuS6iJ301zj2VG8sdk2MOHj 2nQ8PMCFxSL0CFwN92xUZRYatWlf+R8JL+C86RXQDk4oZb5q9UnvYmlhwOTeCUgg4mbale 2DOhhJt2yunMeU+D4JfyVOxKy88zMBie/2wD2M2VqIHs4nA3TOFfBJEhMfq3mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734721; 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=OvNeC9SCDVmxAf2WMsWyi23QakCWaOl0ItqHQCHNzIs=; b=cS5TT+sHtY40HfzNpaBhjUzUDOyXXhKfehI5+iRoFlW2T2TbG5WTvmdb/1XXy73dP/NxoQ 6NsivUSG+5VWiyBuPkZCm5h2RnCp5xh9E23tFT41P/z2R5VuY39KwK4+kqK7jncp0B0qHg 7C4ixjx5D8u+9PWP13NVJM6/x/go/lkXE4B7uKYuCJVj1Wy6ligw0DaU0gCnVsK5itq1pg NIlA3TLSgSB/6ouAoEIwe6JuA/gd0KuNO3Ov2XhkkJ30mnmRn4VYTEJKjXtw0E8Vn7DlKl HKlpK0dL95oArOwcr3ePGcHCCLXO5WHwW+ACorLLAHfwCXxSFGdvOpkeej/acA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730734721; a=rsa-sha256; cv=none; b=fCbqPZ18VGjSlYEzZGcZ3ijrtImdtV5QRDoxJIXXU0KnBol5/XFw3lQi5005GAaRGf/tVm 1ACmCMG+Kwk8+zhOZgv4+dLLykeMclVhAujiZfp3ZpKgKY4liYMZT0gHDz17m+lPZVH90g W/6/6h8P4ALjeD8+W7RHyRmc7wmcZmX3UTiJy0+DFTBjOFoRyC2zC1LoUu6ao61oXgJD/N VsY/GGQZIRj/wK0Jk/UNbOy3/cyjHGj4g/bBfs60bubmSxonW1otEQ2tFhe3jplLWSWERD MTC7gKmr6PIQfEcWk0QUDqiauqnG6em54HmJhZT/VPPztaz3sPck15SFVv1U0Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhwc12MlLzfM4; Mon, 4 Nov 2024 15:38:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4Fcftd035924; Mon, 4 Nov 2024 15:38:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FcfIq035921; Mon, 4 Nov 2024 15:38:41 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:38:41 GMT Message-Id: <202411041538.4A4FcfIq035921@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 8635c1ad5127 - stable/14 - shm: Respect PROT_MAX when creating private mappings List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8635c1ad51274872d01075c7f66aa252491b1de1 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8635c1ad51274872d01075c7f66aa252491b1de1 commit 8635c1ad51274872d01075c7f66aa252491b1de1 Author: Mark Johnston AuthorDate: 2024-10-04 14:54:44 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 15:38:35 +0000 shm: Respect PROT_MAX when creating private mappings We were previously unconditionally adding PROT_WRITE to the maxprot of private mapping (because a private mapping can be written even if the fd is read-only), but this might violate the user's PROT_MAX request. While here, rename cap_maxprot to max_maxprot. This is the intersection of the maximum protections imposed by capsicum rights on the fd (not really relevant for private mappings) and the user-required maximum protections (which were not being obeyed). In particular, cap_maxprot is a misnomer after the introduction of PROT_MAX. Add some regression test cases. mmap__maxprot_shm fails without this patch. Note: Capsicum's CAP_MMAP_W is a bit ambiguous. Should it be required in order to create writeable private mappings? Currently it is, even though such mappings don't permit writes to the object referenced by the fd. Reported by: brooks Reviewed by: brooks MFC after: 1 month Fixes: c7841c6b8e41 ("Relax restrictions on private mappings of POSIX shm objects.") Differential Revision: https://reviews.freebsd.org/D46741 (cherry picked from commit 33c2c58f0a3db0a6d3996fa14ac7967274678771) --- sys/kern/uipc_shm.c | 8 ++--- tests/sys/posixshm/posixshm_test.c | 29 +++++++++++++++- tests/sys/vm/mmap_test.c | 70 +++++++++++++++++++++++++++++++++++++- 3 files changed, 101 insertions(+), 6 deletions(-) diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c index 8a533428790a..f51998d0ed00 100644 --- a/sys/kern/uipc_shm.c +++ b/sys/kern/uipc_shm.c @@ -1648,7 +1648,7 @@ fail: static int shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize, - vm_prot_t prot, vm_prot_t cap_maxprot, int flags, + vm_prot_t prot, vm_prot_t max_maxprot, int flags, vm_ooffset_t foff, struct thread *td) { struct shmfd *shmfd; @@ -1671,8 +1671,8 @@ shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize, * writeable. */ if ((flags & MAP_SHARED) == 0) { - cap_maxprot |= VM_PROT_WRITE; - maxprot |= VM_PROT_WRITE; + if ((max_maxprot & VM_PROT_WRITE) != 0) + maxprot |= VM_PROT_WRITE; writecnt = false; } else { if ((fp->f_flag & FWRITE) != 0 && @@ -1692,7 +1692,7 @@ shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize, goto out; } } - maxprot &= cap_maxprot; + maxprot &= max_maxprot; /* See comment in vn_mmap(). */ if ( diff --git a/tests/sys/posixshm/posixshm_test.c b/tests/sys/posixshm/posixshm_test.c index c97a10bb0a86..a3ce18f855f5 100644 --- a/tests/sys/posixshm/posixshm_test.c +++ b/tests/sys/posixshm/posixshm_test.c @@ -1191,6 +1191,33 @@ ATF_TC_BODY(accounting, tc) ATF_REQUIRE(close(fd) == 0); } +ATF_TC_WITHOUT_HEAD(mmap_prot); +ATF_TC_BODY(mmap_prot, tc) +{ + void *p; + int fd, pagesize; + + ATF_REQUIRE((pagesize = getpagesize()) > 0); + + gen_test_path(); + fd = shm_open(test_path, O_RDONLY | O_CREAT, 0644); + ATF_REQUIRE(fd >= 0); + + p = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0); + ATF_REQUIRE(p != MAP_FAILED); + ATF_REQUIRE(munmap(p, pagesize) == 0); + p = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + ATF_REQUIRE_ERRNO(EACCES, p == MAP_FAILED); + p = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); + ATF_REQUIRE(p != MAP_FAILED); + ATF_REQUIRE(munmap(p, pagesize) == 0); + + ATF_REQUIRE_MSG(shm_unlink(test_path) == 0, + "shm_unlink failed; errno=%d", errno); + ATF_REQUIRE_MSG(close(fd) == 0, + "close failed; errno=%d", errno); +} + static int shm_open_large(int psind, int policy, size_t sz) { @@ -1921,7 +1948,6 @@ ATF_TC_BODY(largepage_reopen, tc) ATF_TP_ADD_TCS(tp) { - ATF_TP_ADD_TC(tp, remap_object); ATF_TP_ADD_TC(tp, rename_from_anon); ATF_TP_ADD_TC(tp, rename_bad_path_pointer); @@ -1955,6 +1981,7 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, fallocate); ATF_TP_ADD_TC(tp, fspacectl); ATF_TP_ADD_TC(tp, accounting); + ATF_TP_ADD_TC(tp, mmap_prot); ATF_TP_ADD_TC(tp, largepage_basic); ATF_TP_ADD_TC(tp, largepage_config); ATF_TP_ADD_TC(tp, largepage_mmap); diff --git a/tests/sys/vm/mmap_test.c b/tests/sys/vm/mmap_test.c index e5f4a81a7858..6bc30f73ca95 100644 --- a/tests/sys/vm/mmap_test.c +++ b/tests/sys/vm/mmap_test.c @@ -295,14 +295,82 @@ ATF_TC_BODY(mmap__write_only, tc) munmap(p, pagesize); } -ATF_TP_ADD_TCS(tp) +ATF_TC_WITHOUT_HEAD(mmap__maxprot_basic); +ATF_TC_BODY(mmap__maxprot_basic, tc) +{ + void *p; + int error, pagesize; + + ATF_REQUIRE((pagesize = getpagesize()) > 0); + + p = mmap(NULL, pagesize, PROT_READ | PROT_MAX(PROT_READ), + MAP_ANON, -1, 0); + ATF_REQUIRE(p != MAP_FAILED); + + error = mprotect(p, pagesize, PROT_WRITE); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + error = mprotect(p, pagesize, PROT_READ | PROT_WRITE); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + error = mprotect(p, pagesize, PROT_READ | PROT_EXEC); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + + ATF_REQUIRE(munmap(p, pagesize) == 0); +} + +/* Make sure that PROT_MAX applies as expected to mappings of shm objects */ +ATF_TC_WITHOUT_HEAD(mmap__maxprot_shm); +ATF_TC_BODY(mmap__maxprot_shm, tc) { + void *p; + int error, fd, pagesize; + + ATF_REQUIRE((pagesize = getpagesize()) > 0); + fd = shm_open(SHM_ANON, O_RDWR, 0644); + ATF_REQUIRE(fd >= 0); + + error = ftruncate(fd, pagesize); + ATF_REQUIRE(error == 0); + + p = mmap(NULL, pagesize, PROT_READ | PROT_MAX(PROT_READ), + MAP_PRIVATE, fd, 0); + ATF_REQUIRE(p != MAP_FAILED); + + error = mprotect(p, pagesize, PROT_WRITE); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + error = mprotect(p, pagesize, PROT_READ | PROT_WRITE); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + error = mprotect(p, pagesize, PROT_READ | PROT_EXEC); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + + ATF_REQUIRE(munmap(p, pagesize) == 0); + + /* Again, this time with a shared mapping. */ + p = mmap(NULL, pagesize, PROT_READ | PROT_MAX(PROT_READ), + MAP_SHARED, fd, 0); + ATF_REQUIRE(p != MAP_FAILED); + + error = mprotect(p, pagesize, PROT_WRITE); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + error = mprotect(p, pagesize, PROT_READ | PROT_WRITE); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + error = mprotect(p, pagesize, PROT_READ | PROT_EXEC); + ATF_REQUIRE_ERRNO(EACCES, error == -1); + + ATF_REQUIRE(munmap(p, pagesize) == 0); + + ATF_REQUIRE(close(fd) == 0); +} + +ATF_TP_ADD_TCS(tp) +{ ATF_TP_ADD_TC(tp, mmap__map_at_zero); ATF_TP_ADD_TC(tp, mmap__bad_arguments); ATF_TP_ADD_TC(tp, mmap__dev_zero_private); ATF_TP_ADD_TC(tp, mmap__dev_zero_shared); ATF_TP_ADD_TC(tp, mmap__write_only); + ATF_TP_ADD_TC(tp, mmap__maxprot_basic); + ATF_TP_ADD_TC(tp, mmap__maxprot_shm); return (atf_no_error()); } From nobody Mon Nov 4 15:38:42 2024 X-Original-To: dev-commits-src-all@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 4Xhwc24YVlz5cDYF; Mon, 04 Nov 2024 15:38:42 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhwc23NXZz4gf0; Mon, 4 Nov 2024 15:38:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734722; 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=HIVusyVKdK/sdk2lJ9vhKLfU0GwYiMhHpFmGIlCwKkY=; b=B94/eWy+TV3XpRT/1lbYYToBPzUs8nOTG8XmYm0ePiN09rkRx93vK28xEwXXmKflBugm1H kKhMv9v+00lSOrGTtBacSGHd1N21na9zDodOZ+CWx7LbYblBf0Z60MqjyNAjgtvooXyMe2 41UmOH+SVRCCjWYl3l9KMjfqCQDsRfcCuAWVrQmWy47EU0b4+GnG1tzXUzEboimRmkzQ4L Xo3TPRtKczoRglbFAjNAlEAWeojGfGtj+qGtJzKVcSYLuMba6+5siZ/kKoXT8zTJYV9563 3XxXCYAIuBI9msKBtTy00ZgJsnxb3Iun+96fmxKnGHjmu0f47dSrl7GXeUVyLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734722; 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=HIVusyVKdK/sdk2lJ9vhKLfU0GwYiMhHpFmGIlCwKkY=; b=WI8n6LVYk/Am5NNheU4jx8LK+kIPJt60Fk+9E9cxD5WYwGSx+qQg9TVi26mPtIEUhBhBxP kYhWExTVGiO401kW9BNEU/ImfLD8pWNaown3F6d2MJkUEWmrqniI293A9vxRm6yx+d00UH 5VdVD+040H5qDrcZoHgcJA15lMyQgR7YZaMfd0zumaKUqA0KNh/AIYF0kwKN72Sw55cJE8 maGBT3OJ6OdSC8EiNKTdZ4eU3YXojUY6z0AQ0vn93oEX6YSIskrmKtUfvt0uV1JbFclBhh 8BfIugVPJQqLxccEu7Px3Iq5VhG6BvZDaxEEevAAbmyCZyvCZmscw6vzMFuLxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730734722; a=rsa-sha256; cv=none; b=BgTdPHu6x8yLdl3t6Br3MU5rpX0/7PdiGeuAkxI2cxY/YM4djGkfYnVmqXTtlBsnjZJLSS kistjBvzhVnjuH8JmNcWTt8g/qS/G1AvN+toh9LxawSXi2M2NqhnM+n3TInzes8ycHsozp O4OQShZhIdFQxu4GQmg+YFg5VOG3D2hxhcahJ3mVkwpCVL2sbqXAtNn4nMmcUPjFLpqTnW 3T7fnUBeQGd1Ia80EUwaFTySY6eoNUxNmK255UUMayjnLaN/w3qQEJvaymUhDs949D+vdf 6/f0Vhgipg/d/mxw1BonrkSoD6kZ+mlHa3h7GPsu1scO4aN45Xmp4sih4zkWpw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhwc2303bzfM5; Mon, 4 Nov 2024 15:38:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FcgDv035972; Mon, 4 Nov 2024 15:38:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Fcgle035969; Mon, 4 Nov 2024 15:38:42 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:38:42 GMT Message-Id: <202411041538.4A4Fcgle035969@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 5a07e99407ea - stable/14 - camcontrol: Plug a memory leak in getdevtree() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5a07e99407eac4211de2d985b39b4c77e94beb09 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=5a07e99407eac4211de2d985b39b4c77e94beb09 commit 5a07e99407eac4211de2d985b39b4c77e94beb09 Author: Mark Johnston AuthorDate: 2024-10-28 13:52:32 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 15:38:35 +0000 camcontrol: Plug a memory leak in getdevtree() PR: 275338 MFC after: 1 week (cherry picked from commit abfd031b482f92320e29a2c2ac80fcd23e134446) --- sbin/camcontrol/camcontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index db26b45ac508..3348d759b913 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -652,6 +652,7 @@ getdevtree(int argc, char **argv, char *combinedopt) if (need_close) fprintf(stdout, ")\n"); + free(ccb.cdm.matches); close(fd); return (error); From nobody Mon Nov 4 15:39:00 2024 X-Original-To: dev-commits-src-all@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 4XhwcN5cQnz5cDcJ; Mon, 04 Nov 2024 15:39:00 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhwcN53Qsz4h5Z; Mon, 4 Nov 2024 15:39:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734740; 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=SMuTZMv4MfWZ9hW3RFS2PIUEbgK+85oVKzeALoWM734=; b=KE5iJbiBd1Z+nYUAJEjp/bD2sDNjwo8zZAQkJq+y8PNCV3YB8ig879sRED+2DxZuqxu1CX W3ollSoSzwp94nsPmD2vczz8dF1D9F12mvi40OEZYJQPd762vhKhph+4PML7B25Ih/VuTZ n72pygIVqiGI6Sz+eVnYq2S9xIXla9EKJ8/ZDVSGP3Mx7O0Idh3Nt6wJxhfa2mB3XPtTVl gKiWqlf33w/gK5UqaGg2Y/NNu/yU361jCR+AQUzRzscY0ROv87zbnOkNtCX5eh6eT3C6yl cNjrLNcjBB+hBD/dVjZfi/J73fM7WHXT+tuylTJF7myVaMY+l2/RijepY/o0Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734740; 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=SMuTZMv4MfWZ9hW3RFS2PIUEbgK+85oVKzeALoWM734=; b=ysp3hdTtD0Mcv16kGfPhfqvs8VeDuJe9ljwolxKmVOfpTkOlSdeDWVxXsxszlL4e5j6SBY LX63wQSdKNtIxf2njbv5mzz7V6e9a8x+s4LaErTOG/Wc3XAT5Bo9nR9l3yb2lLbdHS06Ur 5pwM+204bM5Ap1XXlbkVceRgWVVHKa5Zymyd12gAHM3/2ddRNU7xkPXHavoI793bJAEjW4 56lLlXPzvFL+nNi+fn1MzPgnFLe/+iv/aJUxJWWVZ3FiFhlFUcn5Ot8kn1pwHonRlV/yM9 q2v8gxjj7y6iz7E/v5K4njD8hHWaN7NCp6vOkiLzHQPCvby4RGbW+xD+OB9x/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730734740; a=rsa-sha256; cv=none; b=Se1OPq7tmpQUuMep80T8LHZfIPBLl3xDl1sA8ZGCH4tOrCApl5Vh0/KqHqFW57l8UcWike Y6Yu8zWvzQEJFvgh3RR/eg0G7T8cuRTdCwFXQhKcqetBMRxfwWnvEcZkWqiQPNKAqH0QS4 yLEbcbnBYY78K4ctOWF0d8kZ9C28W5ixALXqsPI7otnFHGQNAvkOJ+fHynxt0jiRD4gFLl XDJ/iQYv7xy/LNH1RFJQzNIO7KK0x+WEpayPOE1vd9wNgsL5E7M31s/m2HrfPDFgRFWu6d uFWcTzxokjaiYA31fGZyy+cQ8WcO9XzTCbtjihO+bKyMONzQyVbahgF3VVSnQw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhwcN4ft7zdwG; Mon, 4 Nov 2024 15:39:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4Fd0NM036221; Mon, 4 Nov 2024 15:39:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Fd09r036215; Mon, 4 Nov 2024 15:39:00 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:39:00 GMT Message-Id: <202411041539.4A4Fd09r036215@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 4f47e1d88f91 - stable/13 - camcontrol: Plug a memory leak in getdevtree() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4f47e1d88f9107af16ffea5d36c505b1fcc44944 Auto-Submitted: auto-generated The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4f47e1d88f9107af16ffea5d36c505b1fcc44944 commit 4f47e1d88f9107af16ffea5d36c505b1fcc44944 Author: Mark Johnston AuthorDate: 2024-10-28 13:52:32 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 15:38:53 +0000 camcontrol: Plug a memory leak in getdevtree() PR: 275338 MFC after: 1 week (cherry picked from commit abfd031b482f92320e29a2c2ac80fcd23e134446) --- sbin/camcontrol/camcontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 71b2a318ccfe..4b192c48cafd 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -652,6 +652,7 @@ getdevtree(int argc, char **argv, char *combinedopt) if (need_close) fprintf(stdout, ")\n"); + free(ccb.cdm.matches); close(fd); return (error); From nobody Mon Nov 4 15:56:34 2024 X-Original-To: dev-commits-src-all@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 4Xhx0f3H44z5cFX4; Mon, 04 Nov 2024 15:56:34 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0f2Y1Bz4kYC; Mon, 4 Nov 2024 15:56:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735794; 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=lWDOX+OGu4pvEDwkvETW38ENGl05/y0lKIgbNEgqpxE=; b=GbXdpTyn97JjxNv0BwApfnz7oyBgTe1mQ8TzG7bHXLpSd00g9a/iJpY4N8Jayg04rPLeuN NWYtWTgtkrK9bwM0hbVdLl2HDxkDzo/koQRLrmLFahoOxP1PmqJXsJk8qwSDM9dmLsPpuL Mo5xHFcT2o6OwKqGPGtQEqyAk3uXjv6ERLehEMp6aQdWN6+1mDSiWvnNK7wP1oNldjobMh dfa1msRZJ9XUb35OxKnX/aCutNCB+eLjqfNtKu1cYxUdgtU5xbrqK7PyEDKGsKxEqu42Z4 xxwpHQR1c5effmPw2waHtEl1sNoP4y8f++di3aZTKIb6UbRu6372SqidbU5OmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735794; 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=lWDOX+OGu4pvEDwkvETW38ENGl05/y0lKIgbNEgqpxE=; b=gtRfX8mcfM2cpna0Z3qChJC1HPWTo/0VjaWjwOvabQ6Xmdv3ntAVFGlqVghjbso9lGoE0/ zT1HYsBc9H6LLwLJVuRWECrfVbMPJwbwgRT6xJi8MEA0aBVfne4EY9FA0U5OmG4asBplEp NxhabSBNsyrQg+HHVuKO5xoNzyRJO5ELWCjoO1aKxtMepLUxljc6MOM4+Zq4oBThUPWb++ SSVZqyYUu8rAFKZw7iHfkW8CmOUDEUlpDzCgTdP6VyxUoBO7wrr0CMXdxrBiNDfxbeTItI +9xUwUQoRWxjWEMkMUIJOmnFE7w/7K/pyzRkcYFAAS4TewZODdtlylxzMwfxYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735794; a=rsa-sha256; cv=none; b=H5Fm+21OQxeohLjGflrDCYMeSx5F7BRp8K6jTOL4frTI8/0ATL+wslx4mGDmAb2yjtXJL3 xjlAI/IGQkNBV35znhbYe5EEGnOl5jtzUXqDOIfIN6j15QMFNtNT9AZvZnaaguv50Hs5CC gg5A+My2W3wkJiHxDabWlsARiH0H/iOX+FSLiU2mccrdxIVb065LfRWG6BYRbWzFQCNrvz ECGwnnzpVM7UMtEiztzqjCgh+aJ1Iqr4wmoMGcqHzQjeVsjhJW7PK1EhQwSOP8vpNOyr6y nvwccaS8VLM2yYFxgjUOw4hq0rJBl//rzDEjU4zTkOg5pok4FO83CZ3AcWlIhg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0f28rJzfx0; Mon, 4 Nov 2024 15:56:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FuYUJ071908; Mon, 4 Nov 2024 15:56:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FuYdJ071905; Mon, 4 Nov 2024 15:56:34 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:34 GMT Message-Id: <202411041556.4A4FuYdJ071905@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 3609e56813b4 - stable/14 - manuals: Fix errors in .2 pages List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3609e56813b4322660c9f4a882f7336d57b7d723 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=3609e56813b4322660c9f4a882f7336d57b7d723 commit 3609e56813b4322660c9f4a882f7336d57b7d723 Author: Graham Percival AuthorDate: 2024-09-20 01:54:39 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 manuals: Fix errors in .2 pages These were reported by `mandoc -T lint ...` as errors. fhlink.2, fhreadlink.2: remove unneeded block closing. getfh.2, procctl.2: add necessary block closing. ptrace.2: -width only takes one argument. swapon.2: and weren't being displayed, because .It is for a list item whereas .In is for included files. Also, we want a blank line between headers and the other one. Signed-off-by: Graham Percival PR: 281597 Reviewed by: mhorne Sponsored by: Tarsnap Backup Inc. (cherry picked from commit 650056363baddb83c61c85b0539ee536f3d4b56c) --- lib/libc/sys/fhlink.2 | 1 - lib/libc/sys/fhreadlink.2 | 2 -- lib/libc/sys/getfh.2 | 1 + lib/libc/sys/procctl.2 | 1 + lib/libc/sys/ptrace.2 | 2 +- lib/libc/sys/swapon.2 | 5 +++-- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/sys/fhlink.2 b/lib/libc/sys/fhlink.2 index 332856630879..b7f7d02dd136 100644 --- a/lib/libc/sys/fhlink.2 +++ b/lib/libc/sys/fhlink.2 @@ -38,7 +38,6 @@ .Fn fhlink "fhandle_t *fhp" "const char *to" .Ft int .Fn fhlinkat "fhandle_t *fhp" "int tofd" "const char *to" -.Fc .Sh DESCRIPTION The .Fn fhlink diff --git a/lib/libc/sys/fhreadlink.2 b/lib/libc/sys/fhreadlink.2 index 23850c6a2117..222142de223e 100644 --- a/lib/libc/sys/fhreadlink.2 +++ b/lib/libc/sys/fhreadlink.2 @@ -36,7 +36,6 @@ .In sys/mount.h .Ft int .Fn fhreadlink "fhandle_t *fhp" "char *buf" "size_t bufsize" -.Fc .Sh DESCRIPTION The .Fn fhreadlink @@ -86,7 +85,6 @@ The file handle .Fa fhp is no longer valid .El -.El .Sh SEE ALSO .Xr fhstat 2 , .Xr fhlink 2 , diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2 index f5eaf4be7874..ae3b67edf1e8 100644 --- a/lib/libc/sys/getfh.2 +++ b/lib/libc/sys/getfh.2 @@ -214,6 +214,7 @@ argument is not an absolute path and is neither .Dv AT_FDCWD nor a file descriptor associated with a directory. +.El .Sh SEE ALSO .Xr fhopen 2 , .Xr open 2 , diff --git a/lib/libc/sys/procctl.2 b/lib/libc/sys/procctl.2 index cb5234b6e40c..b040116a8e60 100644 --- a/lib/libc/sys/procctl.2 +++ b/lib/libc/sys/procctl.2 @@ -712,6 +712,7 @@ following statuses: The status is or-ed with the .Va PROC_KPTI_STATUS_ACTIVE in case KPTI is active for the current address space of the process. +.El .Sh NOTES Disabling tracing on a process should not be considered a security feature, as it is bypassable both by the kernel and privileged processes, diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index ae1770315aa5..9b789a0e45b3 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -830,7 +830,7 @@ value. If the system call completed in an unusual fashion, .Va sr_error is set to a negative value: -.Bl -tag -width Dv EJUSTRETURN -compact +.Bl -tag -width EJUSTRETURN -compact .It Dv ERESTART System call will be restarted. .It Dv EJUSTRETURN diff --git a/lib/libc/sys/swapon.2 b/lib/libc/sys/swapon.2 index c0c12d9dde68..8cfac8ce1f64 100644 --- a/lib/libc/sys/swapon.2 +++ b/lib/libc/sys/swapon.2 @@ -36,8 +36,9 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.It vm/vm_param.h -.It vm/swap_pager.h +.In vm/vm_param.h +.In vm/swap_pager.h +.Pp .In unistd.h .Ft int .Fn swapon "const char *special" From nobody Mon Nov 4 15:56:35 2024 X-Original-To: dev-commits-src-all@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 4Xhx0g4CBjz5cFX5; Mon, 04 Nov 2024 15:56:35 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0g3XbCz4k8B; Mon, 4 Nov 2024 15:56:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735795; 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=pXVrxJ8SuowBigRYQud7/4cR3G9Li+te6xNKLXrPOMQ=; b=Kc2uJbM7qOg8cXyeRg4Ih3tUdc57hk7okA7Sa4UzphVn2FXJ7e6RD5iBKAAONOTeJVQewo 22V5w8zSoFWeoYe2vnk6DbVsNr9k1haevN4/AIGbDcxxUKrwoJ5Pxl7GLHLgBwSsuAVoKV jTLgr6gAaIg5ex8jqj4Qgwf7Lw1T6tPUFnTbPw3Ffj5Y/c/f+GQWX+HjLuokNQ5ogmv3N6 nQiEG5UCtq5ulNV1oe5IVKBDFXJJTIUZXvqM+On7IY5vo+GCNP5SZVXgHwhp5y9ZCfO1gQ WVqsjt9WPRwErxQv9cAiMYt/LwpDvW6UYF8MyrT7yeCxtbSjPoHllV3DD2DZiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735795; 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=pXVrxJ8SuowBigRYQud7/4cR3G9Li+te6xNKLXrPOMQ=; b=t8B0CJTqQUX5aTA3OJQi8PdmCbFguNqmKAeQMZ+5CqXGGAiBJ3W8+gzv+iIQKXlY4ECikt ewDkBiJJ+mNhrLXPeny9Kc7nbiw0SWQHPSx4IqlBUwcf5TzTJjUG+Y+h85bOKg53sC4Jr3 EJfO0FVmRDUrLS+4h1bM/YnsxzamDGvwY+iRDRT4Hvhfa+oubDkCbcFDAO48uRUNzkqilX 7zrY2L9fD9Du49KjThKgQaVex2G2gOJSQB6csqipAY4OebwF1IccBzEfepd2heUonCxL+o U/Rv76+lhk2GwEHm9YbtRJz4dRP1Pcv2afOqrSoXtktPlp+3sg+5HWPck+Hjug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735795; a=rsa-sha256; cv=none; b=yp3tBtFyOWniOgI14LyeokwjEwZAZW47vWhJb6RrnhWzRdFVYgag5JFX+eQ8lmDbXovPZk uKKb1FDH1m7U9IfQG6iNM7YfRG+HfrouDGxpITxRzwCOZ62O9niiMGHtvNSPiWLPvAjyPq xW0NcQqm/edyajtEPZ0+IOqMz+es4hXhE3IGiTLRuQbhOprYsmlS9ZvEBag+geNL19JQo7 flypGpp7csitTXRiIqUhfkvrGQO3nElZ4aZ1MROnTpdabRTGFdg2F1zEL2Cs4bodMyijgD 6k4PdHf9WEKtRw85wVGLdpS7UdBG/o7BwqYtgClyRxFojzj04SkQDCVw+Y3WLw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0g38J7zfx1; Mon, 4 Nov 2024 15:56:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FuZGc071962; Mon, 4 Nov 2024 15:56:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FuZET071959; Mon, 4 Nov 2024 15:56:35 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:35 GMT Message-Id: <202411041556.4A4FuZET071959@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 5b9e1a3ac18a - stable/14 - ipf.5: revert C style(9) applied to man page List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5b9e1a3ac18a3868b7594d6bba455dea29a29e7d Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=5b9e1a3ac18a3868b7594d6bba455dea29a29e7d commit 5b9e1a3ac18a3868b7594d6bba455dea29a29e7d Author: Graham Percival AuthorDate: 2024-09-24 17:11:33 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 ipf.5: revert C style(9) applied to man page These changes were made by accident in: ipfilter: Adjust userland returns to conform to style(9) 2582ae5740181e0d2bab10003d66ae91c9b56329 That commit made similar mistakes in other man pages, but those have already been fixed. Signed-off-by: Graham Percival Reviewed by: mhorne Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1433 (cherry picked from commit ce251baf42f32317b4b4ef60203d6f47204c47e9) --- sbin/ipf/ipf/ipf.5 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/ipf/ipf/ipf.5 b/sbin/ipf/ipf/ipf.5 index 79e6b2c45b05..8d2f6f58379b 100644 --- a/sbin/ipf/ipf/ipf.5 +++ b/sbin/ipf/ipf/ipf.5 @@ -223,7 +223,7 @@ To address this problem, a block rule can be qualified in two ways. The first of these is specific to TCP and instructs IPFilter to send back a reset (RST) packet. This packet indicates to the remote system that the packet it sent has been rejected and that it shouldn't make any further -attempts( to send packets to that port. Telling IPFilter to return a TCP); +attempts to send packets to that port. Telling IPFilter to return a TCP RST packet in response to something that has been received is achieved with the return-rst keyword like this: .PP @@ -239,18 +239,18 @@ For all of the other protocols handled by the IP protocol suite, to send back an error indicating that the received packet was dropped requires sending back an ICMP error packet. Whilst these can also be used for TCP, the sending host may not treat the received ICMP error as a hard error -in( the same way as it does the TCP RST packet. To return an ICMP error); +in the same way as it does the TCP RST packet. To return an ICMP error it is necessary to place return-icmp after the block keyword like this: .PP .nf block return-icmp in proto udp from any to 192.168.0.1/24 .fi .PP -When( electing to return an ICMP error packet, it is also possible to); +When electing to return an ICMP error packet, it is also possible to select what type of ICMP error is returned. Whilst the full compliment of ICMP unreachable codes can be used by specifying a number instead of the string below, only the following should be used in conjunction with -return-icmp.( Which return code to use is a choice to be made when); +return-icmp. Which return code to use is a choice to be made when weighing up the pro's and con's. Using some of the codes may make it more obvious that a firewall is being used rather than just the host not responding. From nobody Mon Nov 4 15:56:36 2024 X-Original-To: dev-commits-src-all@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 4Xhx0h6GFfz5cFX6; Mon, 04 Nov 2024 15:56:36 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0h4PGRz4kVd; Mon, 4 Nov 2024 15:56:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735796; 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=A9Uxy7l0VSpoRgwFrzFX4upqLc/FCspdmZf/nH+R8hI=; b=Of6qNKr9EX/5QtM4g4GxgrE1z+picV9zhxbrMw4xWbIrSDJqekQw7+znapyRxyRJxjIR5y yzzyA/D+w+ioITb2ku0pHrBOeOULzTtTxZYrBD1HJC+MHaBEIzr6GZpA9g9syoru3u71fz Fw6tkAjHIL35Crrt7s6N7nphr4CuiulQZxzjHWqmxa7Z5aUFsTq17TUBkE6EjEEspMpvGO Iaz9+wk3SAnLNABdLe3I43ScRE0r7zJNN98XfspkmEQilAYpSVuwT85eZjtLEDlQwH6NOU HCU79Rkjn/aWAjgG83D442Ec13PE8ocjO4fkcllZ2T2y7x9am1ML22J4LSxWXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735796; 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=A9Uxy7l0VSpoRgwFrzFX4upqLc/FCspdmZf/nH+R8hI=; b=cLrfqRIF92Rd6tA24zFWNqXjOVpk0jkqWOfCq0jYjMoSsdAU4lzRKpRPEufHzWb61ypGco 7yCQjYWIlvnDGKQ9zRGAUmvEYLjj3+kp8SS0ybeqmtiLxyMuRcutG4cZpM4WoO2qy6VzUa pyVW9D+8/hxs9NrIS08b+BfHmmt+nkgIEDk6QOGi7eDHhqbd5qRyzTjinChNR0idSmNWZy 84+czyYXNp9NyUfqpmdIffyBKipCkT+HX7IYqJXTpYn1Hm980XqmGCNkAzzYJ9DWTgJoCj /jsWFyXB23giFF+FSbflW/OJIffcpeieWbhA3IIEtLeIFqC/mvDpff6OfkAzYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735796; a=rsa-sha256; cv=none; b=xDeGewdkFyouN3grp4tIZMpXbday36njlBWbruLJdRGHiDqhLvz4VA7BHqCRpP9tAkux9f xrQZqFYqn3DyOnk/Ft4Ucy2v8p3bYx07ULPVMrd+GNIkUA7Nf7V7wUZLOZ76BZCIw8uy1G RYe+H42Qll0tTXM+Eg3q2v3cU6q5XuSfpFV6Z1+b6bBgMr84oSM0i73PJjlSZaawGxMEPW 6LLhCPWR3QfHrmiyDoBykCgEJ9bp9dHITTgpWqnoacgrGGIjmiXZUw0ZWu2v2iXlGqCYdp HHRui1NxZr0xk9eHK3+5E+AWmqMWDYbDI/Sqbc+ok42N36Zr/KYMVAA20wrI3w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0h3wQnzfn9; Mon, 4 Nov 2024 15:56:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FualY072013; Mon, 4 Nov 2024 15:56:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FuaTT072010; Mon, 4 Nov 2024 15:56:36 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:36 GMT Message-Id: <202411041556.4A4FuaTT072010@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 055d2819bbbc - stable/14 - stats.3: Fix "skipping end of block" syntax errors List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 055d2819bbbcd2fbff000b07f416cba3f2a83a06 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=055d2819bbbcd2fbff000b07f416cba3f2a83a06 commit 055d2819bbbcd2fbff000b07f416cba3f2a83a06 Author: Graham Percival AuthorDate: 2024-09-24 18:11:03 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 stats.3: Fix "skipping end of block" syntax errors These were reported by `mandoc -T lint ...` as errors. The rendered output (in ascii and html) is not affected by this commit. There was a small misunderstanding about the mdoc format: a 1-line enclosure does not need a closing tag. For example, Pc is for closing an Po; if a line uses Pq (enclose the remainder of this line), there's no need for Pc. Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1434 (cherry picked from commit 2d69f02c5745a89c01bcd76389d53fd2a4189f02) --- share/man/man3/stats.3 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/share/man/man3/stats.3 b/share/man/man3/stats.3 index 4dfb1dac63a2..7fe1fa613def 100644 --- a/share/man/man3/stats.3 +++ b/share/man/man3/stats.3 @@ -102,17 +102,17 @@ .Fc .Ft struct voistatspec .Fo "STATS_VSS_CRHIST<32|64>_USR" -.Fa Sy "HBKTS" Ns Pq Sy "CRBKT" Ns ( Em "lb" ) , "..." Pc , +.Fa Sy "HBKTS" Ns Pq Sy "CRBKT" Ns ( Em "lb" ) , "..." , .Fa "vsdflags" .Fc .Ft struct voistatspec .Fo "STATS_VSS_DRHIST<32|64>_USR" -.Fa Sy "HBKTS" Ns Pq Sy "DRBKT" Ns ( Em "lb" , "ub" ) , "..." Pc , +.Fa Sy "HBKTS" Ns Pq Sy "DRBKT" Ns ( Em "lb" , "ub" ) , "..." , .Fa "vsdflags" .Fc .Ft struct voistatspec .Fo "STATS_VSS_DVHIST<32|64>_USR" -.Fa Sy "HBKTS" Ns Pq Sy "DVBKT" Ns ( Em "val" ) , "..." Pc , +.Fa Sy "HBKTS" Ns Pq Sy "DVBKT" Ns ( Em "val" ) , "..." , .Fa "vsdflags" .Fc .Ft struct voistatspec @@ -316,16 +316,16 @@ The maximum VOI value. The minimum VOI value. .It Dv VS_STYPE_HIST A static bucket histogram of VOI values, including a count of -.Dq out-of-band/bucket Dc +.Dq out-of-band/bucket values which did not match any bucket. Histograms can be specified as -.Dq Em C Ns ontinuous Em R Ns ange Dc -.Pq CRHIST Pc , -.Dq Em D Ns iscrete Em R Ns ange Dc -.Pq DRHIST Pc +.Dq Em C Ns ontinuous Em R Ns ange +.Pq CRHIST , +.Dq Em D Ns iscrete Em R Ns ange +.Pq DRHIST or -.Dq Em D Ns iscrete Em V Ns alue Dc -.Pq DVHIST Pc , +.Dq Em D Ns iscrete Em V Ns alue +.Pq DVHIST , with 32 or 64 bit bucket counters, depending on the VOI semantics. .It Dv VS_STYPE_TDGST A dynamic bucket histogram of VOI values based on the t-digest method @@ -433,15 +433,15 @@ Where templates need to be referenced via textual means, for example via a MIB variable, the following string based template spec formats can be used: .Bl -enum .It -.Qq Qc Ns +.Qq Ns : .Ns , for example -.Qq TCP_DEFAULT Qc Ns +.Qq TCP_DEFAULT Ns :1731235399 .It -.Qq Qc +.Qq .Ns , for example -.Qq TCP_DEFAULT Qc +.Qq TCP_DEFAULT .It : .Ns , for example From nobody Mon Nov 4 15:56:37 2024 X-Original-To: dev-commits-src-all@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 4Xhx0j74NJz5cFf8; Mon, 04 Nov 2024 15:56:37 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0j5gNsz4kbr; Mon, 4 Nov 2024 15:56:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735797; 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=ehSM6EY3E73w5JJv//k7SRThUOai0iKO+I8k7l9q8g4=; b=NnhQkoRHzU6j0/qhWOQWh+ebtOojXrNuMDwQcjojhWJXJfBtgbC0PvHvo/oIny1vU1HYR9 rWvxOGz3MjC0nF2RDvTvGbq2NvU7NrVeyneFt7ixXFXujKIvYjvbQ3+/g9bTkhfLkeZxlK EM2xjCYpGKvhlntf9KU8TIUlx0yOdybeq3W7Uv2OSUo9/s1NKq/oyOPmZqZUD6wjXbSta6 X5Gzkd8LNOw1qmdZTj2b2YHQ8t3v7g8evWAMJUulaCA+/4fmrijtNElD6S+ydz4DK4/j1Y QbtwpbwOX4OdOvV2mN/gu4tg9lQDoh8LHVQtrf9yhaJmUOWKHdhGoIhMrHqmzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735797; 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=ehSM6EY3E73w5JJv//k7SRThUOai0iKO+I8k7l9q8g4=; b=hVHaozclMIweivDvchpyXxQGLdkeq/zcW/EjynpbCq3gioTYhZwPJJLSt50P7VXCNgPU3y v21ieV98h34/RqVkpyAD1yBchnd+b1mEav2hzye/Meydf4Fr/TXBMgXIExFUReAp1F7axB 5212p5cS15bnl5q/FwIpZdQpAntQrtOnUU1G9dzrnuGz25Gzze7liRMA9zX+R/kjWwi30g LUisanSwA2mnlUHM9Pu6A2rrivVC+GYPqPERQQygx9UHp27CJ40e1dPEHdbcXMT7bwvQRY QIHvt1HFqk65VDxqbaNuQK16xOJPsE1d+ze7uB29JTCn3NOy1RVIbXOQIpIe8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735797; a=rsa-sha256; cv=none; b=wH/v50cfpnxkacdutDqwe2umPOya0wU8dPmoDn8INMCGK/rV/qXEknLXbQhpZ9MERL3F2j PoXoFd61JyFUMEVM8PGdzYseQLWeF3ke2W0IhIy3CC9bPUma7uQQNeo9H71DxUEP33gQPo BEWNRBSjWh+440ErxZqnLvDok2m6tDCqNXB0M1LmuShhq7qJ7DGl/V06ZIyVI2Zi2qLWjF 4FwSPRegl7Bv3BkLIBOkSBps2/VyOej5YEMlDb2woB0ethX/NOxVXf1UU4npRJ1m2gGHs4 +1lc84Jg+F3S7JvcrqoJUOX0EOhfBLhaGFyJPa3jkG7XmrOExfr4jDp9R7Z+bg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0j4ryqzg9b; Mon, 4 Nov 2024 15:56:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FubR4072068; Mon, 4 Nov 2024 15:56:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Fubbw072065; Mon, 4 Nov 2024 15:56:37 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:37 GMT Message-Id: <202411041556.4A4Fubbw072065@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 3ee3a5a7681f - stable/14 - vale(4): refer to the valectl(8) management tool List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3ee3a5a7681f0bc43ad7f357d600ada6e66935cf Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=3ee3a5a7681f0bc43ad7f357d600ada6e66935cf commit 3ee3a5a7681f0bc43ad7f357d600ada6e66935cf Author: Tom Hukins AuthorDate: 2024-08-06 16:43:03 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 vale(4): refer to the valectl(8) management tool Signed-off-by: Tom Hukins Reviewed by: imp, mhorne MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1369 (cherry picked from commit 9a3fa77585e55e78004cdc9467b986968a77e8de) --- share/man/man4/vale.4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/man/man4/vale.4 b/share/man/man4/vale.4 index 77e4433d2742..a9f172e11fba 100644 --- a/share/man/man4/vale.4 +++ b/share/man/man4/vale.4 @@ -26,7 +26,7 @@ .\" distributed with 4.3BSD Unix. .\" $Id: $ .\" -.Dd March 6, 2022 +.Dd August 30, 2024 .Dt VALE 4 .Os .Sh NAME @@ -100,7 +100,8 @@ qemu -net nic -net netmap,ifname=vale2:c ... & qemu -net nic -net netmap,ifname=vale2:d ... & .Ed .Sh SEE ALSO -.Xr netmap 4 +.Xr netmap 4 , +.Xr valectl 8 .Pp Luigi Rizzo, Giuseppe Lettieri: VALE, a switched ethernet for virtual machines, June 2012, http://info.iet.unipi.it/~luigi/vale/ From nobody Mon Nov 4 15:56:38 2024 X-Original-To: dev-commits-src-all@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 4Xhx0l17jmz5cF5s; Mon, 04 Nov 2024 15:56:39 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0k6yr0z4kLV; Mon, 4 Nov 2024 15:56:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735799; 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=JlYR5yXndFvIMy1BrV4fqd/+eMg2slhEImBo41rK4fM=; b=ryQynpnPKfE4aqjHw7GxwE1/1+McNfg8M7p4RLtBOkJKIESDSU1+itmyfQo+IQB++gomrJ aG+x891i+TE/iJikolPyXaqQQrBROYvZOXl8EP1lLb1v7yPZIZNtRUdIIUX4wCwTGXForh bOoC9f1+Pc/4BDODuJqj1Kz+60eItoCXsPASwSfXZRECh9KFK03tpmxhB4hGAhSwdata1a 2D5qe4s60Zyo4xX7eqpyjhkdPf+vJcxuzGSiXTbaKr4xZwHlOmSJVxhEL8qcOEIc2DEjCB dfQAMqg9IxZh60f1k0n3D3SLFVVQSvYOl5KqwWzA7Lc3FuCXShO/40boHpqIQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735799; 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=JlYR5yXndFvIMy1BrV4fqd/+eMg2slhEImBo41rK4fM=; b=pmkG0LD8tX1Up0MUd171WHpFybdAdBpj7L8hXLQKjxECVT353L0jrmxcEuoSgFxfdrxXeS Xzcf5hEhDZa6b8C3/eBlSzvLjdCSFH72pS3dla6f1XNr/vNlx+KQlMuyO8Q2INvRuVwk1M q5+S968uBQQWDCY79x7XxMxxpPPj2ahvWfAI8O9+iJwYlitwdpZEmAj9SiEHpAMLhGkPqc i2D/BnQroJwfUIE6WuhjsmsNa8spXqaaRiSXUjdZU824lC0A/WhDPX9iZFw7RT2nGgnXOO WyIAQs3M6hQshDbArj2nilNt2jAK8rfxfeFrFoOI9kLPtBCeRpcDWIrt9mmbaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735799; a=rsa-sha256; cv=none; b=opJ0KYiCn7JxNdlX69FIpZRtv8tO54Q9aC0irlxHMrnTkwQSq5q2EEQluVu9QDm7BD7AGN 38eVEV5WlRIgxmfPtnt5ME1tynIrtgCLNlgHfpq1ktlG0CXQmNYUFN8jwMboxumbu+3/qv 2crwYLd3YI8CUtLEfQhj2DhD8f8Ld5Xdmu5PLgfrCL3DZalOu/84mXFfzvJbZsYccHyWKx Iyl1unb3ZuTCymqyoCnZcoiLW+lNJNAsIWAAndI5Jjd+FNRIVraU2teW+NfJZXwpTrn3Vu jKHs7PdDTfZEiGDbCfeIbYyTIpYCIuU65BdItopC8FjPenpJvcQY3HZDQk88rw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0k69HTzftG; Mon, 4 Nov 2024 15:56:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FucT6072110; Mon, 4 Nov 2024 15:56:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Fuc0d072107; Mon, 4 Nov 2024 15:56:38 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:38 GMT Message-Id: <202411041556.4A4Fuc0d072107@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: fcfb9a7a0333 - stable/14 - valectl(8): explicitly mention network switches List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fcfb9a7a033388d077c29e80db5fa3f6a9cf13f8 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=fcfb9a7a033388d077c29e80db5fa3f6a9cf13f8 commit fcfb9a7a033388d077c29e80db5fa3f6a9cf13f8 Author: Tom Hukins AuthorDate: 2024-08-06 16:44:00 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 valectl(8): explicitly mention network switches Use the term "network switch" instead of the ambiguous term "switch". Signed-off-by: Tom Hukins Reviewed by: imp, mhorne MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1369 (cherry picked from commit a2f53837f0a8934cfcf7ba3c1fdfc93f217d3703) --- usr.sbin/valectl/valectl.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/valectl/valectl.8 b/usr.sbin/valectl/valectl.8 index deb660bb0e4a..805d785f52cf 100644 --- a/usr.sbin/valectl/valectl.8 +++ b/usr.sbin/valectl/valectl.8 @@ -22,12 +22,12 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 2, 2021 +.Dd August 30, 2024 .Dt VALECTL 8 .Os .Sh NAME .Nm valectl -.Nd manage VALE switches provided by netmap +.Nd manage VALE network switches provided by netmap .Sh SYNOPSIS .Bk -words .Bl -tag -width "valectl" @@ -50,7 +50,7 @@ .Nm manages and inspects .Xr vale 4 -switches, for instance attaching and detaching interfaces, creating +network switches, for instance attaching and detaching interfaces, creating and deleting persistent VALE ports, or listing the existing switches and their ports. In the following, From nobody Mon Nov 4 15:56:39 2024 X-Original-To: dev-commits-src-all@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 4Xhx0m2YmVz5cFfF; Mon, 04 Nov 2024 15:56:40 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0m0V8tz4kSw; Mon, 4 Nov 2024 15:56:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735800; 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=r2R4YmHH2TVELzgAbmbkwEV28sHOVJto47JRyYBmAyk=; b=OCPwfELJGdYEVyeTyhXyOLlh2TPkNQYwzYd36p6qeTANrWwb+grqWJjcDVTDY0AIEhprvL G7ZLhdzQYGVQXAqIZ8AwdvkHUGLO3aKm2ze16NERmABeJJhlo4LQIFwzEdG/Q4giJHh+tK EN2EXhK2yT4nGDYsIn/zKZUHIpCnNSjY3Zg7TAhklmKFVrZg9gcXs4w/ltLz38Xt16eaDf aAdDYO3Hc+rc3mFTBh3KfIHzjWLpldtz1PI7csTCMmkkIuhach+rslmK1rGYP4PEPUCDgq 1VrBpC+H4CTbDPGX2hKBqIm7bz1se8Mzfc+DjqajLukYQUDfLXbo4f7X4/zxPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735800; 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=r2R4YmHH2TVELzgAbmbkwEV28sHOVJto47JRyYBmAyk=; b=ldzv9AUvm0BIj+QsO4XsI6JW/l9mueIDkkEvlmvEccHxiAkEhUBTlXNOQVTU7ruAY7PoNP aGdnKClJCeAcvJNkDliVuKweqNHxWMSnvkwXbny8TIjirc2pN/mcSNrG4c/UpdW/866u9T JpVPg4FDGJiBuynwR2tcaYhpjsJmVUPBVTUt06su6jJoTcT2s4HBLR113oDFpzUvPK2FUR VAaN3JuplT49G+SxaHQEMoIQc0F9SWv0byJ2y6WhPh5bGVeKCAXLoe7AAwZjEnZ/8CU+30 Qw9DYDhYlIVfiT+gCWJbfZNfSFTb62g1bpqeSRsyLVaKorvWMxAb7QwLxqvNkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735800; a=rsa-sha256; cv=none; b=EK7nQC7tiubCbT982fyItK0Zs6DR6N/oPTHG9O/iz8hgFdk7EgNxx+AD4+qinsxRBdDMXV eyXKknhsd12LdkvIqwVqTIkcv7mYLtUfrTy6bOki0a+EaF5qk+KVEadZGVduHBhx1O7R/S Aaqozia8EUicLSV5yLybJzt2MaT1bwpgIWOEmF6Fx+HyKAhXX6DuTwJG4kZujFnSCptDrQ gKAP2ukPpeKRJ/LV1L5gTh9oNH42A3JjPwDdEVJduvCBCvUeYAVmDyEHyeAvazxcBGcwX6 MOi4ni+Upj5GJDOs4CsvYA6P2LkpQDIC1qt6K20nnNQM4j3/ArredjZVGKnPZQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0m04QMzfx2; Mon, 4 Nov 2024 15:56:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4Fuddi072182; Mon, 4 Nov 2024 15:56:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Fudio072179; Mon, 4 Nov 2024 15:56:39 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:39 GMT Message-Id: <202411041556.4A4Fudio072179@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 34b80cbdafc8 - stable/14 - service(8): direct user to rc(8) for a list of valid commands List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 34b80cbdafc8a23243ff50c9c49fe30e4336001e Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=34b80cbdafc8a23243ff50c9c49fe30e4336001e commit 34b80cbdafc8a23243ff50c9c49fe30e4336001e Author: Lexi Winter AuthorDate: 2024-01-13 23:34:46 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 service(8): direct user to rc(8) for a list of valid commands New users may refer to service(8) to discover how to manage services, but this manpage does not explain which commands are permitted besides start/stop (for example, 'enable'). Add a paragraph that directs the reader to rc(8) to discover this. While here, add a few examples of common use-cases. Reported by: Mina Galić Pull request: https://github.com/freebsd/freebsd-src/pull/1057 (cherry picked from commit a84e01f02b15dc1ec091feab6e532d5ba36ffbbb) --- usr.sbin/service/service.8 | 51 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/usr.sbin/service/service.8 b/usr.sbin/service/service.8 index ada0e6361fb8..2c5dfa3f3a66 100644 --- a/usr.sbin/service/service.8 +++ b/usr.sbin/service/service.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd November 9, 2021 +.Dd January 29, 2024 .Dt SERVICE 8 .Os .Sh NAME @@ -64,6 +64,13 @@ see It can also be used to list the scripts using various criteria. .Pp +The set of permissible values for +.Ar command +depends on the particular rc.d script being invoked. +For a list of standard commands which are supported by most rc.d +scripts, see +.Xr rc 8 . +.Pp The options are as follows: .Bl -tag -width F1 .It Fl E Ar var=value @@ -129,13 +136,44 @@ option is used, the corresponding variable is set accordingly. .Sh EXIT STATUS .Ex -std .Sh EXAMPLES -The following are examples of typical usage of the -.Nm -command: +These are some examples of the most common service commands. +For a full list of commands available in most rc.d scripts, see +.Xr rc 8 . +.Pp +Enable a service, then start it: +.Bd -literal -offset -indent +service sshd enable +service sshd start +.Ed +.Pp +Stop a service, then disable it: +.Bd -literal -offset -indent +service sshd stop +service sshd disable +.Ed +.Pp +Start a service which is not enabled: +.Bd -literal -offset -indent +service sshd onestart +.Ed +.Pp +Report the status of a service: .Bd -literal -offset -ident service named status -service -j dns named status +.Ed +.Pp +Restart a service running in a jail: +.Bd -literal -offset -indent +service -j dns named restart +.Ed +.Pp +Start a service with a specific environment variable set: +.Bd -literal -offset -indent service -E LC_ALL=C.UTF-8 named start +.Ed +.Pp +Report a verbose listing of all available services: +.Bd -literal -offset -indent service -rv .Ed .Pp @@ -164,7 +202,8 @@ complete -F _service service .Xr bash 1 Pq Pa ports/shells/bash , .Xr rc.conf 5 , .Xr rc 8 , -.Xr rcorder 8 +.Xr rcorder 8 , +.Xr sysrc 8 .Sh HISTORY The .Nm From nobody Mon Nov 4 15:56:41 2024 X-Original-To: dev-commits-src-all@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 4Xhx0n5SP5z5cFYq; Mon, 04 Nov 2024 15:56:41 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0n1WsMz4kZ6; Mon, 4 Nov 2024 15:56:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735801; 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=Tt5rZoBvTrKPcjXktke9zi8rloFDIQPQh7LWEYoUJUc=; b=qpe5S/52BXqhx030nRqtAXr/huvH3JRFJr8B8WVesn/2qSCtb67rVSCayDpWrsVwXntdj/ 83RpDC/mzGPWxGQ+TkLiV3r+KtdPNksVfRZbtPYJBV9zSKlETdl2h14iXqCxoHPyQarPLU FopzVoW72Z8iS2zR9tPj6My3WlZUWOM6A1jIns+w7Hp3oiK1JaDuP8gMFUgvG2YslGvRtQ hhQhYsnAq6E8T24iIOq8a9ZfArSzSQ8B9T5RT7dOvU4hQhCXDzbIKbjClt+mjC/mzrsXux AN9Hdk92FYPPMDJNDpdLhXYjNZ+IhmeCCPwYh2h9PBFJ98sFMAOibFXW6mTTPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735801; 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=Tt5rZoBvTrKPcjXktke9zi8rloFDIQPQh7LWEYoUJUc=; b=sg5hG0MKknIbr11u2CSy5UvAEt+HPkZ67xFi5BIsLQzsrtvWHYjp+kpFBK2ckXtLI6kBX4 S8njgmPN1xKITRn+w3f5XXNCeG2wHE1gro91Rzh1vKvCLxbPFH5GmMgHUpenKq/hV5BRxN geuhwsriOHI2vHxv8dzZIn1Cm18Iiw8joDMR/qY4vqJD5ZvQcuODM+X6Eb9VPgVL/iIEzG qwKo2CfOC78PFVXjlkoOzPwml79ZDx/gfgExPn2X6IL6Ui41l7d3CGEXcj8AFX4gTtzFG2 SO0DqeR3lWRwKY4db2V26+Mqs1aBAf+qN2Wzv32jn6SgDDGc40LVHIrAypBOEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735801; a=rsa-sha256; cv=none; b=rehazGHAMxV92lZynQ4AEkMNKTfnCNWSPrw5+ZdnGSo4Qw21dVXqYoOGif0D5KRJuABdxV Jnk8LvPx5Kpm/nNC2k8VIxRM21pqqXLgzVWrstg1G2aQKow7w+/VMccfqwATpdsOCCPtJH HKWIT/k4CQT3xuOqTQULkoeZMze4Vcgb408IYmMjnN3NKqgmZ5xXubCOxmUghj3aeEIKJJ ayRMUp/EF3B/+BJMvrTHuLctElElSc3Q+0OaKdu+vLih0Mqx+F2P6erjBOvU3G1SO+bhSr Ny91VDEQWwMJ+pTqSZ4RQxhc9ghTpDYGnLOx347ZabcwpRvIzF4KP+XAuvQF3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0n16j6zg8G; Mon, 4 Nov 2024 15:56:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4Fuf6W072265; Mon, 4 Nov 2024 15:56:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FufMK072262; Mon, 4 Nov 2024 15:56:41 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:41 GMT Message-Id: <202411041556.4A4FufMK072262@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 7d7c17b7f638 - stable/14 - manuals: Fix typos in -offset for .Bd and .Bl List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7d7c17b7f6389bc718389d0259543ec7cabffcf5 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=7d7c17b7f6389bc718389d0259543ec7cabffcf5 commit 7d7c17b7f6389bc718389d0259543ec7cabffcf5 Author: Graham Percival AuthorDate: 2024-09-24 18:34:26 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 manuals: Fix typos in -offset for .Bd and .Bl The intended value is: -offset indent If there's any typo such that the value doesn't match the pre-defined strings, then the offset is the same width as the value. So by chance, "-offset -ident" ended up being a standard-width indent (since the default indent is 6 chars, and "-ident" also has 6 chars), whereas "-offset -indent" had a longer indent, and "-offset ident" had a shorter one. Signed-off-by: Graham Percival Reviewed by: mhorne, Alexander Ziaee MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1436 (cherry picked from commit c013ca2cf772194de340aeb452a6ccfe7e1cecd8) --- bin/sh/sh.1 | 4 ++-- share/man/man4/efidev.4 | 2 +- share/man/man4/vmd.4 | 2 +- share/man/man5/motd.5 | 2 +- share/man/man7/arch.7 | 2 +- usr.bin/elfctl/elfctl.1 | 4 ++-- usr.sbin/binmiscctl/binmiscctl.8 | 4 ++-- usr.sbin/pwd_mkdb/pwd_mkdb.8 | 2 +- usr.sbin/service/service.8 | 16 ++++++++-------- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index fb3afc7d3d4d..03e8af70c9aa 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -1076,13 +1076,13 @@ command. Commands may be grouped by writing either .Pp .Sm off -.Bd -literal -offset -ident +.Bd -literal -offset indent .Po Ar list Pc .Ed .Sm on .Pp or -.Bd -literal -offset -ident +.Bd -literal -offset indent .No { Ar list ; } .Ed .Pp diff --git a/share/man/man4/efidev.4 b/share/man/man4/efidev.4 index 684a93340d7f..defae1f31bea 100644 --- a/share/man/man4/efidev.4 +++ b/share/man/man4/efidev.4 @@ -34,7 +34,7 @@ .Sh SYNOPSIS To compile this driver into the kernel, place the following lines in your kernel configuration file: -.Bd -ragged -offset -indent +.Bd -ragged -offset indent .Cd "options EFIRT" .Ed .Pp diff --git a/share/man/man4/vmd.4 b/share/man/man4/vmd.4 index 2d6a06bc10e3..590a368f006b 100644 --- a/share/man/man4/vmd.4 +++ b/share/man/man4/vmd.4 @@ -34,7 +34,7 @@ .Sh SYNOPSIS To compile this driver into the kernel, place the following lines in your kernel configuration file: -.Bd -ragged -offset -indent +.Bd -ragged -offset indent .Cd "device vmd" .Ed .Pp diff --git a/share/man/man5/motd.5 b/share/man/man5/motd.5 index 86cb8f723634..5dce1ccd52ae 100644 --- a/share/man/man5/motd.5 +++ b/share/man/man5/motd.5 @@ -25,7 +25,7 @@ and the contents are written to can be updated without a system reboot by manually restarting the motd service after updating .Pa /etc/motd.template : -.Bd -literal -offset -ident -compact +.Bd -literal -offset indent -compact service motd restart .Ed .Pp diff --git a/share/man/man7/arch.7 b/share/man/man7/arch.7 index 35a7b0246389..24979eb6b186 100644 --- a/share/man/man7/arch.7 +++ b/share/man/man7/arch.7 @@ -173,7 +173,7 @@ and binaries aren't supported. .Pp On all supported architectures: -.Bl -column -offset -indent "long long" "Size" +.Bl -column -offset indent "long long" "Size" .It Sy Type Ta Sy Size .It short Ta 2 .It int Ta 4 diff --git a/usr.bin/elfctl/elfctl.1 b/usr.bin/elfctl/elfctl.1 index 2dbe04ee0ed2..5ba016b664a3 100644 --- a/usr.bin/elfctl/elfctl.1 +++ b/usr.bin/elfctl/elfctl.1 @@ -87,12 +87,12 @@ elfctl -e +noaslr file .Ed .Pp Features may be specified as numerical values: -.Bd -literal -offset -indent +.Bd -literal -offset indent elfctl -e =0x0001,0x0004 file .Ed .Pp Features may also be specified as a single combined value: -.Bd -literal -offset -indent +.Bd -literal -offset indent elfctl -e =0x5 file .Ed .Sh SEE ALSO diff --git a/usr.sbin/binmiscctl/binmiscctl.8 b/usr.sbin/binmiscctl/binmiscctl.8 index 4a4890146b57..17bce41a3212 100644 --- a/usr.sbin/binmiscctl/binmiscctl.8 +++ b/usr.sbin/binmiscctl/binmiscctl.8 @@ -308,13 +308,13 @@ specified in the .Nm command. Using the example above: -.Bd -literal -offset -ident +.Bd -literal -offset indent mkdir $D/usr/local/bin cp /usr/local/bin/qemu-arm-static $D/usr/local/bin .Ed .Pp Now the user can chroot into the environment normally, as root: -.Bd -literal -offset -ident +.Bd -literal -offset indent chroot $D .Ed .Sh SEE ALSO diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.8 b/usr.sbin/pwd_mkdb/pwd_mkdb.8 index 68e4911144f0..56f3024fd62f 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.8 +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.8 @@ -141,7 +141,7 @@ A Version 7 format password file. .Sh EXAMPLES Regenerate the password database after manually editing or replacing the password file: -.Bd -literal -offset -indent +.Bd -literal -offset indent /usr/sbin/pwd_mkdb -p /etc/master.passwd .Ed .Sh COMPATIBILITY diff --git a/usr.sbin/service/service.8 b/usr.sbin/service/service.8 index 2c5dfa3f3a66..380fbc8c1269 100644 --- a/usr.sbin/service/service.8 +++ b/usr.sbin/service/service.8 @@ -141,39 +141,39 @@ For a full list of commands available in most rc.d scripts, see .Xr rc 8 . .Pp Enable a service, then start it: -.Bd -literal -offset -indent +.Bd -literal -offset indent service sshd enable service sshd start .Ed .Pp Stop a service, then disable it: -.Bd -literal -offset -indent +.Bd -literal -offset indent service sshd stop service sshd disable .Ed .Pp Start a service which is not enabled: -.Bd -literal -offset -indent +.Bd -literal -offset indent service sshd onestart .Ed .Pp Report the status of a service: -.Bd -literal -offset -ident +.Bd -literal -offset indent service named status .Ed .Pp Restart a service running in a jail: -.Bd -literal -offset -indent +.Bd -literal -offset indent service -j dns named restart .Ed .Pp Start a service with a specific environment variable set: -.Bd -literal -offset -indent +.Bd -literal -offset indent service -E LC_ALL=C.UTF-8 named start .Ed .Pp Report a verbose listing of all available services: -.Bd -literal -offset -indent +.Bd -literal -offset indent service -rv .Ed .Pp @@ -189,7 +189,7 @@ complete service 'c/-/(e l r v)/' 'p/1/`service -l`/' \e The following programmable completion entry can be used in .Xr bash 1 for the names of the rc.d scripts: -.Bd -literal -offset -ident +.Bd -literal -offset indent _service () { local cur cur=${COMP_WORDS[COMP_CWORD]} From nobody Mon Nov 4 15:56:42 2024 X-Original-To: dev-commits-src-all@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 4Xhx0p440gz5cF61; Mon, 04 Nov 2024 15:56:42 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0p2ZWyz4kWN; Mon, 4 Nov 2024 15:56:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735802; 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=kd7NlK0z2cmCutZvFia5Xmt1HxARm8zP8ROnUwDDM+s=; b=NzObJ+0k1T9H9Y0Dr2wyfaao6b5KZTaC1kthg3eACAeJEWaE4d/T7eAkfq7cIh51rPtWBk LhS2NOxQ2WD5omBoHENUfHUwManelhn1DAjScaZ1xPKdSv17mvXuD3Hr4BDN56MHlrvLRG iDc4k1/GHZuFqBfTCb5TRdz1BKQ8baDmEo5G+5xj26y8z7KYwaxNSBkKHZuIQ6k44ImsAk q3eTlbrt8V6bhgTjJ6IC/M5cwge99vRUIYAclQvP6RLzcVPvyBcniQyUf7lNybNmeu4Kqr iGqi9/UDuj6o/lcx472S5QzbZBgtm47NRDCUbr3QLsM8vIJp2aXB6lmQsSbcsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735802; 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=kd7NlK0z2cmCutZvFia5Xmt1HxARm8zP8ROnUwDDM+s=; b=xlDt4dP7J+IIJ4FrMUO6d5rl3XMM3wYrxujqyBsHzl/q0PUjn2XCrPQ+RciTtywUSLB+0u ZzBlNYWTJyo8BMsBFueYgynL2bPqv1KxFGlbtC6wdH643+JF3wgp1m4B7tnarZLltqSdVA /WMHuuy63phQkszkQ4VxSXM/wlg+6WM8zKxF+mPdEnugxsMZ79UjJK9WxTsb7UO/9JzhZx vvA2i61kkBlC09rvtMsuTY/A18h2xGUbfLEBXiw8Q2EzGwuRV75ytXYrBOgcyeQaQMhZZy UNFMH5//SHhLPMvBSZAfje0DoBOZXfcsprx5hV4T3En0qPIkFFJLnLwgWjBYyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735802; a=rsa-sha256; cv=none; b=ubdzfCOaT/anmSHNm/7rX6v38EesAqpuxPhGuJV7NGXvsVfO2oXBvHIHBQe/EgHe2+0LBJ XhpCu8dq+beJDJj8xFpf2O51ZU/AIu22hpJL8JCHVCzY/j+tqQ6yVcF7wmaCijg+v3D4fv ETXiG4AQM+FKLI+gA3kElY8TrXMGkRRNhFbXoLljWZb+XKtqFsxGtPyhWLcxVg+myW30v6 pXN0bqRwI08u40THEr3YQnfR6WCGvO0fUKbPmI5Bhs9TJDbkcjER1m+774NwLuDWImsCk9 hHEkhnarJEBSfF+F7qd7cS1qZsHEWLuI5Eda990+hqBmVvhtS7Oy4VtJ4xlq1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0p26RWzfnB; Mon, 4 Nov 2024 15:56:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4Fugb8072316; Mon, 4 Nov 2024 15:56:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FugxN072313; Mon, 4 Nov 2024 15:56:42 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:42 GMT Message-Id: <202411041556.4A4FugxN072313@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: e2830c5d3545 - stable/14 - manuals: Fix "skipping end of block" .Ed errors List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e2830c5d35456d42187cd5f400111a3e5421133b Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=e2830c5d35456d42187cd5f400111a3e5421133b commit e2830c5d35456d42187cd5f400111a3e5421133b Author: Graham Percival AuthorDate: 2024-09-24 18:28:20 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 manuals: Fix "skipping end of block" .Ed errors These were reported by `mandoc -T lint ...` as errors; this commit only handles unnecessary .Ed commands. The rendered output (in ascii and html) is not affected by this commit. Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1435 (cherry picked from commit 4f2ef756a404df70272b79c16fa7b1689cb0118b) --- lib/libcapsicum/capsicum_helpers.3 | 1 - share/man/man7/networking.7 | 1 - share/man/man9/domain.9 | 1 - 3 files changed, 3 deletions(-) diff --git a/lib/libcapsicum/capsicum_helpers.3 b/lib/libcapsicum/capsicum_helpers.3 index 9c4c0bfa0229..fe25e3a460ab 100644 --- a/lib/libcapsicum/capsicum_helpers.3 +++ b/lib/libcapsicum/capsicum_helpers.3 @@ -150,7 +150,6 @@ NLS data is used for localized error printing by and .Xr err 3 , among others. -.Ed .Sh SEE ALSO .Xr cap_enter 2 , .Xr cap_rights_limit 2 , diff --git a/share/man/man7/networking.7 b/share/man/man7/networking.7 index 03e80793e98d..acd61f2864a7 100644 --- a/share/man/man7/networking.7 +++ b/share/man/man7/networking.7 @@ -43,7 +43,6 @@ Identify your Wi-Fi hardware: .Ed .Pp Configure your Wi-Fi hardware as wlan0 interface: -.Ed .Bd -literal -offset 2n .Ic # sysrc wlans_iwn0="wlan0" .Ed diff --git a/share/man/man9/domain.9 b/share/man/man9/domain.9 index eaa279cef996..dab8cff89e12 100644 --- a/share/man/man9/domain.9 +++ b/share/man/man9/domain.9 @@ -183,7 +183,6 @@ has an empty slot in its .Va dom_protosw . Dynamically added protocol can later be unloaded with .Fn protosw_unregister . -.Ed .Sh RETURN VALUES The .Fn domain_add From nobody Mon Nov 4 15:56:43 2024 X-Original-To: dev-commits-src-all@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 4Xhx0q4cBDz5cFYv; Mon, 04 Nov 2024 15:56:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0q3Hx9z4kcj; Mon, 4 Nov 2024 15:56:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735803; 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=DQtu3kyloAfdVQFv5Ax0XK5+pRjgwNYKH6qBBJIMJ/Y=; b=PUVNOQ5Zs1vrpdDQ0KdA+i9vdMEyFYsVaHe5/ly/pgCaigZ+NjidxMnQFntT3Z44lgpTSU gOdl99bhKan6CJV3IXhRJZ1UZbesHdAzpQrU/YXD2W6/b/i1JSsDfGHG4TmeIqteEoPbbV 4QDS1HXIsLrt9Y85mjzjuBn99AdZ5xLr16gIyV98HN9GrfLNwEpibR93X88M1ZgkdAiE6q cJd7bxi5PnkqUcu2SlgjtzHzcSMYjj1pQKQjilAzsro3ZGXPCmoV3mVyG67By+RQlVaQmK LkY0mhBu+3XXHpaDrAG5ION7G9OmYBB95f0v8SfE3nTt3yXfyKaU8Q7IbI/HLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735803; 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=DQtu3kyloAfdVQFv5Ax0XK5+pRjgwNYKH6qBBJIMJ/Y=; b=FaetJmoZzcfFMkF44YlyR+SlRdotqKJ7aul2jaPsFkALMDMEswGL6RbWdb4eu9vQLQU/o+ G3o6XiMprHdLQlry7uJ8cO0MaqyQ11FWxpEBYpsTgqAAj53FwArtoapSGN1dqGaW4IYCJE YDqRUysR472gZsxdGKhClwMT7KsKFDc/9RMrgJKRPdiusAqR0tLD4oxAqRCelurA6lNvuG S713cC3661yVh/8cZyfKpjjJJdfQ/De/D9XIgjBP5wTeqI3BBL28ghmhhrpRoCTNrM9P0G C9TIaMMK/hHQyyNNya5OoTZPmcQ3rEjuKqkStKMcoNwrHoDiSURQMCa/QacS7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735803; a=rsa-sha256; cv=none; b=Qj9zMQtG8vEtW8p2bmB69jghNH4Cyt7WvMXP9q7XkWOOkRpRXUQpD7JwWRbLtRnJqYutDF nL3kbgB7G5DcXLIl1oGbTztxf5GO9xHOLxFKmcw9NBwfZdn6Rv/9vpht7ZCgYdAvCwpgIp g3JzAJN2hs5QKkq27NyvWqK1K36oXfDN/Ah4DdBh7kt9UvpHNCp8Eb4S+xqMWUTUZWByaY yjJuvxtiX/T6S/Te7bhVN4SjDdg8Fl2+AUKv4M9HTJvlsEwSrkUCBrMkn31fAORIJNvL66 gh2V4CcMQ5mMtvsF3qOjEhDPI6bgAxtSPk8f+pcH8RivVqhKxxjxVq9sx2Z48w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0q2WJTzg8H; Mon, 4 Nov 2024 15:56:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FuhRN072362; Mon, 4 Nov 2024 15:56:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FuhdB072359; Mon, 4 Nov 2024 15:56:43 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:43 GMT Message-Id: <202411041556.4A4FuhdB072359@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 3a75b41bd93b - stable/14 - manuals: Misc syntax fixes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3a75b41bd93be05bab80f8c2ddcff25e8e345a2d Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=3a75b41bd93be05bab80f8c2ddcff25e8e345a2d commit 3a75b41bd93be05bab80f8c2ddcff25e8e345a2d Author: Graham Percival AuthorDate: 2024-10-04 03:40:23 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 manuals: Misc syntax fixes These were reported by `mandoc -T lint ...` as errors. The rendered output (in ascii and html) is not affected by this commit. Additional clarification: there was a non-breaking space in lib/libcasper/services/cap_grp/cap_grp.3. Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1449 (cherry picked from commit c8b31033c3971b2b7349804ffda0cea5e4835b40) --- lib/libc/gen/exec.3 | 1 - lib/libcasper/services/cap_grp/cap_grp.3 | 2 +- share/man/man4/iwlwififw.4 | 10 +++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/libc/gen/exec.3 b/lib/libc/gen/exec.3 index 8f866e5ab321..662e4f8e66f7 100644 --- a/lib/libc/gen/exec.3 +++ b/lib/libc/gen/exec.3 @@ -49,7 +49,6 @@ .Fn execlp "const char *file" "const char *arg" ... NULL .Ft int .Fn execle "const char *path" "const char *arg" ... NULL "char *const envp[]" -.Fc .Ft int .Fn exect "const char *path" "char *const argv[]" "char *const envp[]" .Ft int diff --git a/lib/libcasper/services/cap_grp/cap_grp.3 b/lib/libcasper/services/cap_grp/cap_grp.3 index 9647b1936b0c..578d8edffbfa 100644 --- a/lib/libcasper/services/cap_grp/cap_grp.3 +++ b/lib/libcasper/services/cap_grp/cap_grp.3 @@ -59,7 +59,7 @@ .Fn cap_getgrgid_r "cap_channel_t *chan" "gid_t gid" "struct group *grp" "char *buffer" "size_t bufsize" "struct group **result" .Ft int .Fn cap_setgroupent "cap_channel_t *chan" "int stayopen" -.Ft int +.Ft int .Fn cap_setgrent "cap_channel_t *chan" .Ft void .Fn cap_endgrent "cap_channel_t *chan" diff --git a/share/man/man4/iwlwififw.4 b/share/man/man4/iwlwififw.4 index a377f6b51f78..debd0cda36b5 100644 --- a/share/man/man4/iwlwififw.4 +++ b/share/man/man4/iwlwififw.4 @@ -46,10 +46,10 @@ driver. .Bl -column -compact "Vendor" "Device" "Subv. " "Subd. " "Firmware-Prefix" .It Ar Name .It Ar Vendor Ta Ar Device Ta Ar Subv. Ta Ar Subd. Ta Ar Firmware-Prefix -.% --------------------------------------------------------------------- -.% This list is manually generated from a sysctl and post-processing. -.% Edits will be overwritten on next update. -.% --------------------------------------------------------------------- +.\" --------------------------------------------------------------------- +.\" This list is manually generated from a sysctl and post-processing. +.\" Edits will be overwritten on next update. +.\" --------------------------------------------------------------------- .It "" .It Intel(R) Dual Band Wireless AC 7260 .It 0x8086 Ta 0x08b1 Ta any Ta 0x4070 Ta iwlwifi-7260 @@ -1340,7 +1340,7 @@ driver. .It "" .It Intel(R) TBD Sc device .It 0x8086 Ta any Ta any Ta any Ta (null) -.% --------------------------------------------------------------------- +.\" --------------------------------------------------------------------- .El .Pp .Em Note: From nobody Mon Nov 4 15:56:44 2024 X-Original-To: dev-commits-src-all@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 4Xhx0r5fSyz5cFKq; Mon, 04 Nov 2024 15:56:44 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0r46Lrz4kj1; Mon, 4 Nov 2024 15:56:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735804; 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=sk1wUu8VTFm1lnGTpnRIGFl9dOt/RG8Ef1ej55zc24Q=; b=uGBgf4tbfjjvjj6PmePnPOrxcZqUvH9ikhIJYUL9DQIZtfXEFL2/XfMTIsnDD/3nQTIjhZ mEdqU68KVilqQBuNDgeZP90oYGAy/SjpyfoUMzmch8ZvKI+9GV/YztsGvw9bXfLOAkr/ER OmMPqwOs3VM6+QmZn2OIkZPKF35Vnt6A83NB9e3qMeXCAHO5xGqps+w+tzLyaHcEUmP6E3 lYUg3Ap6NtcQHEfCPY9rIh6ws/CJo2fQA0Q3RRqrmiIr2imziyq6MERYLZUx2As+iqXcud q8+5Dv/Rdor1LFCIvnpqIgOCn/BB0J5EKZxN3/1loPb6QHqD7sBTsUual6X9tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735804; 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=sk1wUu8VTFm1lnGTpnRIGFl9dOt/RG8Ef1ej55zc24Q=; b=u3IwAmnExa6KFjkJAp6qKz1US14PlyzUHsJZgsjbl7DRbVm6aAKDnUqoI7D7QR6XefB30d Prpm+h4JCrtj1toWYZl4lomY8d6xlS1+uenYgK/o84uJxlddaS021WDl4YpEMUgWuoGcQR rhRNmfV1oeehwmnZbQkdhp1J9MvZTJ4usfJC1YCfJJtW01taLvbRoCYsbdSZ8BJSqHJUtH Tpu6qV0vqlIltnWvO64pqCdmmT/poMtynEEOTBb23VXfopcCYo/1wrAToZlSb3sVlKqexi ZuaZjwdu44FdjNsFaEpt9mY4xlsUNtYNAxEpFFzFqqH5zH3B6QaAByi+jMFh3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735804; a=rsa-sha256; cv=none; b=F2R/nLrejPx+aejkZxdK0oIxGku2yn1UNGt6b8MJDp1cJCWjD7Bvd1Da2UD05Hy5hpvZt6 mz0E6gh6SgEvUK+FMuuY5HQHVNOHDtthXCdFjPT5va+ovj58h75aooAE3lNgklOKtWP9Mf matbyCcC80WnJQ0961xOQmxThRBaSSgpF6r0W5WYDgAKDaLMQYxHVzpfdMot2Mtq/D8Xcj WL0FOPO3fQbpa5gzphLTHVs85ph52rbqSMny8zpoCe006b5mp9o/qN6kVL6G8RVRiV96eC b5IxlFCT+4Sn3PruKgFGEqQl+670uLFjudkO1Kmg8gXXyY0yvfFMIWWJb5EWUw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0r3cktzg8J; Mon, 4 Nov 2024 15:56:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FuitQ072408; Mon, 4 Nov 2024 15:56:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Fui0i072405; Mon, 4 Nov 2024 15:56:44 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:44 GMT Message-Id: <202411041556.4A4Fui0i072405@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 7624e1572614 - stable/14 - manuals: Misc syntax fixes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7624e15726147ee8b0d94468d020ece747aa9985 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=7624e15726147ee8b0d94468d020ece747aa9985 commit 7624e15726147ee8b0d94468d020ece747aa9985 Author: Graham Percival AuthorDate: 2024-10-07 21:17:31 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 manuals: Misc syntax fixes These were reported by `mandoc -T lint ...` as errors. Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1453 (cherry picked from commit 8b92fa1ceb95bbe80b473fc35d4276146201e802) --- lib/librss/librss.3 | 4 ++-- share/man/man4/bpf.4 | 2 +- share/man/man7/orders.7 | 4 ++-- share/man/man9/zone.9 | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/librss/librss.3 b/lib/librss/librss.3 index 655e5ca17984..3964aa36891b 100644 --- a/lib/librss/librss.3 +++ b/lib/librss/librss.3 @@ -109,8 +109,8 @@ socket. The .Fn rss_sock_set_recvrss function enables or disables receiving RSS related information -as socket options in. -.2 recvmsg +as socket options in +.Xr recvmsg 2 calls. .Pp When enabled, UDP datagrams will have a message with the diff --git a/share/man/man4/bpf.4 b/share/man/man4/bpf.4 index 4a40f4947dfd..8082f6eac39a 100644 --- a/share/man/man4/bpf.4 +++ b/share/man/man4/bpf.4 @@ -665,7 +665,7 @@ Set the VLAN PCP bits to the supplied value. now supports several standard .Xr ioctl 2 Ns 's which allow the user to do async and/or non-blocking I/O to an open -.I bpf +.Em bpf file descriptor. .Bl -tag -width SIOCGIFADDR .It Dv FIONREAD diff --git a/share/man/man7/orders.7 b/share/man/man7/orders.7 index aef44adde125..c1c2c1200e42 100644 --- a/share/man/man7/orders.7 +++ b/share/man/man7/orders.7 @@ -47,8 +47,8 @@ The following table lists common multiples of bytes. .It Zettabyte Ta ZB Ta 2^70 Ta 10^21 .It Yottabyte Ta YB Ta 2^80 Ta 10^24 .It Ronnabyte Ta RB Ta 2^90 Ta 10^27 -.It Quettabyte Ta QB Ta 2^100 Ta 10^30. -El +.It Quettabyte Ta QB Ta 2^100 Ta 10^30 +.El .Pp The following table lists common bit rates as a power of ten. .Bl -column -offset 2n \ diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9 index a6b8d2dfedbe..9f13cf0e504a 100644 --- a/share/man/man9/zone.9 +++ b/share/man/man9/zone.9 @@ -341,7 +341,7 @@ Create a zone whose items will be synchronized using the .Xr smr 9 mechanism. Upon creation the zone will have an associated -.Dt smr_t +.Ft smr_t structure which can be fetched using .Fn uma_zone_get_smr . .El From nobody Mon Nov 4 15:56:45 2024 X-Original-To: dev-commits-src-all@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 4Xhx0t0dHlz5cFN4; Mon, 04 Nov 2024 15:56:46 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0s5tvSz4kTk; Mon, 4 Nov 2024 15:56:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735805; 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=772VXoaXZwtgyYAX0ZEgThAq8CC5FmL3xq7Ak3huLRU=; b=Nz2XIvszAfcflovqNO33OIreXHhguFSLS6hBx38VwCysYs20dGlJRc6r/boeESuun/15CH zjWc4X3djSDQ/A6OSSyp8BjsP46hPayHMLkomv74fH3fEqNIxcZTiQRIhmpUFAXuhiVnSt zSA17DwFKn/TRODyv5pjL9Va8H8zpA2oyTRc/UH7eQQLVKa5RFvhzO6aCVPOXIKJ4p1CVs o0XvS07AIg6MxuXHykAJFLLmxWJJY2tP8je8gRksxd0nFY1z7qDjWMny6UsfD6K/nZC6zY V58ogBJmMvzb2RuKTt0NT0mq0KMBtKNyCozOvyz7oLTgvfP32cSYD4MRF3Yrsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735805; 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=772VXoaXZwtgyYAX0ZEgThAq8CC5FmL3xq7Ak3huLRU=; b=SC92aP6YBgEScMtqEAPU8E+uowqdXPkGiNarAUD3jfhEy3hhcGiLEbq8ncTmkSEkOB9f6m nPf18+xeVnupLun6c2q/P/8IMLa5noYjUKvYYbPbuDQ1JCvQrMBFz3XWUQtiTq49IFxIM6 rX9A1Ut8veh+yDNI894tyNhBLn32dcwksnDXi8JLxexhJN+qXtc1FICPwdVwhWek61f5KC WirjPnU6mqCGCMPVgnlJ9bgojs4IAfIRzN4OP8y/KB6VVkLq9ca+imeWzqn4rveiqdWjHC jXaN9dQK7zS615J6Ya1hgp/I2ROn2VzW4EdPBPupxwCS7pCnQ//SfMX3SDEj4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735805; a=rsa-sha256; cv=none; b=kizZpx8U31LRuqC+f6Lq4VKmk590aIUT7NszTgbhi2NWUgmChDnhPm+y8NxS6CG4sYTzk5 GV/QMUQ+ryaVJXHH9LYZDGGlr3GtvrJ05ALFgPEFUAKPtLfqYwJ/PPGZKGrh8+S96lcH+H kgefmw6/rluBAM/+0JTJdcUdIhCxt5d/BVUoCfJcSL39K4Qcq6dLIs60wac2HE5Rb6PuAm EzheY/+a+flzzJc+4o/8+KeQX6K9VyMCz+K6IScwf1T5hXfwlHK7skxEloS3i7nYyYpoun tHXUVJazFGFY2RY2qrdvmMbr/T28FXRjd6AE73Hwi95xXfpds2Gc6SyRAW1AaQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0s4q7KzftH; Mon, 4 Nov 2024 15:56:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FujwQ072453; Mon, 4 Nov 2024 15:56:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FujNn072450; Mon, 4 Nov 2024 15:56:45 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:45 GMT Message-Id: <202411041556.4A4FujNn072450@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 62cb0f713779 - stable/14 - manuals: Fix syntax of list width List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 62cb0f71377927be918435fd15b0022a0890e457 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=62cb0f71377927be918435fd15b0022a0890e457 commit 62cb0f71377927be918435fd15b0022a0890e457 Author: Graham Percival AuthorDate: 2024-10-08 01:39:51 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 manuals: Fix syntax of list width Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1455 (cherry picked from commit 9fd66e40cac02691d36386cf275d23367e34fc43) --- share/man/man9/mbuf.9 | 2 +- share/man/man9/vmem.9 | 2 +- usr.bin/bintrans/bintrans.1 | 8 ++++---- usr.bin/genl/genl.1 | 2 +- usr.sbin/dconschat/dconschat.8 | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/share/man/man9/mbuf.9 b/share/man/man9/mbuf.9 index 0b03d697b8bf..0262c598ed18 100644 --- a/share/man/man9/mbuf.9 +++ b/share/man/man9/mbuf.9 @@ -1212,7 +1212,7 @@ the following various failure/extreme cases for testing of network drivers and other parts of the kernel that rely on .Vt mbufs . -.Bl -tag -width ident +.Bl -tag -width indent .It Va net.inet.ip.mbuf_frag_size Causes .Fn ip_output diff --git a/share/man/man9/vmem.9 b/share/man/man9/vmem.9 index 1dc74e951cb2..31a82be88fd0 100644 --- a/share/man/man9/vmem.9 +++ b/share/man/man9/vmem.9 @@ -159,7 +159,7 @@ A bitwise OR of an allocation strategy and a .Xr malloc 9 wait flag. The allocation strategy is one of: -.Bl -tag width indent +.Bl -tag -width indent .It Dv M_FIRSTFIT Prefer allocation performance. .It Dv M_BESTFIT diff --git a/usr.bin/bintrans/bintrans.1 b/usr.bin/bintrans/bintrans.1 index 16ae66aa21d1..054f304d4c61 100644 --- a/usr.bin/bintrans/bintrans.1 +++ b/usr.bin/bintrans/bintrans.1 @@ -154,7 +154,7 @@ utility ignores any leading and trailing lines. .Pp The following options are available for .Nm uuencode : -.Bl -tag -width ident +.Bl -tag -width indent .It Fl m Use the Base64 method of encoding, rather than the traditional .Nm uuencode @@ -169,7 +169,7 @@ instead of standard output. .Pp The following options are available for .Nm uudecode : -.Bl -tag -width ident +.Bl -tag -width indent .It Fl c Decode more than one uuencoded file from .Ar file @@ -214,7 +214,7 @@ reasons. Additionally, .Nm b64encode accepts the following option: -.Bl -tag -width ident +.Bl -tag -width indent .It Fl w Ar column Wrap encoded output after .Ar column . @@ -229,7 +229,7 @@ through a dedicated program: .Nm qp is a quoted-printable converter and accepts the following options: -.Bl -tag -width ident +.Bl -tag -width indent .It Fl u Decode. .It Fl o Ar output_file diff --git a/usr.bin/genl/genl.1 b/usr.bin/genl/genl.1 index 9837744fa8e3..af0c6360ad83 100644 --- a/usr.bin/genl/genl.1 +++ b/usr.bin/genl/genl.1 @@ -44,7 +44,7 @@ utility is design to provide access to the user to generic netlink protocols. .Pp The following commands are available: -.Bl -tag -ident +.Bl -tag -width indent .It Cm list Po default Pc Lists all available generic netlink protocols, and presents its details: .Bl -tag -width "multicast groups" diff --git a/usr.sbin/dconschat/dconschat.8 b/usr.sbin/dconschat/dconschat.8 index 1f93e6d5a235..e2348410a04c 100644 --- a/usr.sbin/dconschat/dconschat.8 +++ b/usr.sbin/dconschat/dconschat.8 @@ -110,7 +110,7 @@ A escape character (the default is .Ql ~ ) appearing as the first character of a line is an escape signal; the following are recognized: -.Bl -tag -width ident +.Bl -tag -width indent .It Ic ~. Drop the connection and exit. .It Ic ~^G From nobody Mon Nov 4 15:56:46 2024 X-Original-To: dev-commits-src-all@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 4Xhx0v2Xqpz5cFN6; Mon, 04 Nov 2024 15:56:47 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0t6YDWz4klK; Mon, 4 Nov 2024 15:56:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735806; 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=D+1SEwLvZXjJ9GZQQpYunTmDVgbxSEAKb8BkbgoAM8I=; b=e+UkwqIgNDn1HPFpLOdpuFF5Pj4LmnjE1NyRd4jKlA0X0mAxO6k+OTufZsxqY1N4l75r+A Ce+I3hKS1Fbw119px3jc6vk8mNq9z3XAbPTJCT55TEYkXsD18JhT3lyBJtS/KCLvNQGZ0E 1+531oUrRDpXJXY/vLd3io1C/FkNPSO0qmTUvDRnBNZYq5SSsHjpEYlXbZv3Hl7OQB/UkN 4kR3pyNsikw2M/Y1JS/mFGxeTSrJs7kOKPKCCOis1IPlWtmQkwyvmRKqWFyd3UsbVhhcoT wRFicGcFJ8mNcXE8kIPL2QtVdhd33nj2FjF9CRY4bkh/rnvTpTuXOyy77FubWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735806; 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=D+1SEwLvZXjJ9GZQQpYunTmDVgbxSEAKb8BkbgoAM8I=; b=WkzvJB30HPN0sGRpvg7YZQPPE6ed7Ot7fAKHn7GKfe/h7fNdQ/OaUYWFhtXwgVP8TM0ETv bWCHjCL5BKpFwyXWPje1NGfRJk+7OEgv2sk+tAKlboiAnYOT74tYWHiqzhDcfDr9OmlZtY SnX/hXvWvlTBhidS0VK0zXEFrjp8Nayyq1t7BIwgYmDxLUhw2YmpQ4pDEHxFdq4aOg0mSd 3a774kLzS+/aN1FAsO4wk2xIXvxVN6v0l4rCQd3G5dlN+wMe9XvD1m57gvAvwC0erg3WZY vA00Q/xgqRFc+Qs2DypaEcVMTpbvVooSEh2cMVSckXei5A6ToxwBbtfzdIgPag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735806; a=rsa-sha256; cv=none; b=Mxi+aqqqHeAqY4fgTcaMzYcMvJ7xD41+uFmEiwJGLIZG9gPvFsFZLn4tGulMZ6FculdQFg mOt7olHpJv9wm4qrN7utTa+izqRqWc+OQMdZTpxIYDJ/vE7vulwA6Nc1SirCC+weCS2Q7F PlIfAQxdbspRZekiq5jOy1EOD9HLRmP5wd4TwFbwoknJYqJHUU8Sd0Fa+eh9rqdpOklL9d 2qyBdKn3oVgk8TmZswhZOlTHFTKzU5LKi7fOQIynmtNjoRiqyux+ydBZtaa89KalSFlg38 ujhmMeGDD7m4Rdxo4OH9l459ZJCHjHdhFT3teL5b5O09VZIVHz09t6+S0VhsFQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0t69s4zfnC; Mon, 4 Nov 2024 15:56:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FukIP072504; Mon, 4 Nov 2024 15:56:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FukFJ072501; Mon, 4 Nov 2024 15:56:46 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:46 GMT Message-Id: <202411041556.4A4FukFJ072501@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 64e531624f2a - stable/14 - vmem.9: align lists + tag spdx List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 64e531624f2a5b3c4f4ad1a23420a6340227c073 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=64e531624f2a5b3c4f4ad1a23420a6340227c073 commit 64e531624f2a5b3c4f4ad1a23420a6340227c073 Author: Alexander Ziaee AuthorDate: 2024-10-08 21:48:35 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 vmem.9: align lists + tag spdx Reviewed by: mhorne MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1456 (cherry picked from commit 5793008745115f9523f9de32cec3136cea2dd8d5) --- share/man/man9/vmem.9 | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/share/man/man9/vmem.9 b/share/man/man9/vmem.9 index 31a82be88fd0..053aec856a78 100644 --- a/share/man/man9/vmem.9 +++ b/share/man/man9/vmem.9 @@ -1,3 +1,6 @@ +.\"- +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" $NetBSD: vmem.9,v 1.15 2013/01/29 22:02:17 wiz Exp $ .\" .\" Copyright (c)2006 YAMAMOTO Takashi, @@ -74,7 +77,7 @@ other than virtual memory. .\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .Fn vmem_create creates a new vmem arena. -.Bl -tag -width qcache_max +.Bl -tag -offset indent -width "qcache_max" .It Fa name The string to describe the vmem. .It Fa base @@ -117,7 +120,7 @@ wait flag. .\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .Fn vmem_xalloc allocates a resource from the arena. -.Bl -tag -width nocross +.Bl -tag -offset indent -width "qcache_max" .It Fa vm The arena which we allocate from. .It Fa size @@ -159,7 +162,7 @@ A bitwise OR of an allocation strategy and a .Xr malloc 9 wait flag. The allocation strategy is one of: -.Bl -tag -width indent +.Bl -tag -width "M_FIRSTFIT" .It Dv M_FIRSTFIT Prefer allocation performance. .It Dv M_BESTFIT @@ -182,7 +185,7 @@ overwrites it with the start address of the allocated span. frees resource allocated by .Fn vmem_xalloc to the arena. -.Bl -tag -width addr +.Bl -tag -offset indent -width "qcache_max" .It Fa vm The arena which we free to. .It Fa addr @@ -203,7 +206,7 @@ argument used for .\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - .Fn vmem_alloc allocates a resource from the arena. -.Bl -tag -width flags +.Bl -tag -offset indent -width "qcache_max" .It Fa vm The arena which we allocate from. .It Fa size @@ -228,7 +231,7 @@ overwrites it with the start address of the allocated span. frees resource allocated by .Fn vmem_alloc to the arena. -.Bl -tag -width addr +.Bl -tag -offset indent -width "qcache_max" .It Fa vm The arena which we free to. .It Fa addr @@ -249,7 +252,7 @@ argument used for .\" ------------------------------------------------------------ .Fn vmem_destroy destroys a vmem arena. -.Bl -tag -width vm +.Bl -tag -offset indent -width "qcache_max" .It Fa vm The vmem arena being destroyed. The caller should ensure that no one will use it anymore. From nobody Mon Nov 4 15:56:47 2024 X-Original-To: dev-commits-src-all@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 4Xhx0w5x1pz5cFc4; Mon, 04 Nov 2024 15:56:48 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0w1rLHz4kqv; Mon, 4 Nov 2024 15:56:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735808; 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=HNimGRjiUqNQ3drajlb3DBXwAc8w44d8oIsiuX8ecmQ=; b=F3N5sDHEXF8A0XecubjXg6sleu9A+PK3pXkVjZcH1NqjIN360zHbb/qLMRWm32m/JfIY8Z phOMYG+GUZTYYkeYDbfuy8x/hKgrog7ysUE5XgABEjNU3c7f21ba77udG4+JxJdJ1N53J/ Y6wuDnVtPLXj/hbnWIrjhnPcDiJ2ocfwUu5SjCGXyooSmijY5g5wJLMUjmr4SxoclqC5DZ 2sU1zDXcx2n1rFIkvTVYxfX5hl6dNddZ4ftQZhdzwisgBUN7UQRtdFHc5old2DCx5hz+YS OSOPY9h8fwEGltPx92L2VPtrhBzcKJSOoMxY8TWk8RIV1VBX485sVW6IUxAXbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735808; 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=HNimGRjiUqNQ3drajlb3DBXwAc8w44d8oIsiuX8ecmQ=; b=ZKTHXrI3OSIjbLTFMdd4BJ7VxWCoCbEnwy5cCyVvcDaACOOiFUnXBlgac26tShD793prM/ N1kZZxxhs/p/PPF6+rEIReMGyH7hgvnGGzgkF0uyR3QpdGtly1j9iYEhNyklXux/6tUnvx 8Qj9yH2HKoZ6tgRFbxAi3C+6d+4600Ya2nkEABMvKry55snm/COv5bMIUj96z6Ksm2MuHb jNf2QITGNur5xGfKofl9qSDTzrZqfFBfSDyWf+/xTT6aFlG2fLGZrNF4NEWAd+GZeGotpA pvKGqc7E/ta7xvpwufQBbz/uaxibNZZUs5byCagUx1teMX51NbaP9KF7LuBWcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735808; a=rsa-sha256; cv=none; b=FNCtrCmwSDnHctFhayHFkMj70GMK1GnMDeXn4L/JR8kzdmw3pEy11/g6/YrMWE+308pZQ0 Pvjt2vn5Nnm9XF2wOUbooXHzINFDybOyUALThKPHkVeVukT7H+oO+6Iw8WkxGVezTLUdwz dqnONH+8Z4h8dRVOxZNIXUz8d8UP0DP0W9HMePyEo9ENR3rB7aCLE9REkCqiGc4XFZxPiN tvlh1y8OhzEqokT6cq51p/OomIshAHN+PT4vLth8Cm+QZ6E1Ss/MOCiRtP1p6pKCoz0UCc lx4trBXPW9tngeHIC4aOZqlZf5EIMPkJJFxVzdfegx9IfHil8iQK8WX5V7ULQg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0v6qYlzftJ; Mon, 4 Nov 2024 15:56:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FulZH072560; Mon, 4 Nov 2024 15:56:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FulsN072557; Mon, 4 Nov 2024 15:56:47 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:47 GMT Message-Id: <202411041556.4A4FulsN072557@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: babcb8291085 - stable/14 - manpath.1: align lists + tag spdx List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: babcb8291085b81a1ea9a912a163c3ecd42de7d7 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=babcb8291085b81a1ea9a912a163c3ecd42de7d7 commit babcb8291085b81a1ea9a912a163c3ecd42de7d7 Author: Alexander Ziaee AuthorDate: 2024-10-09 11:49:01 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:24 +0000 manpath.1: align lists + tag spdx Reviewed by: mhorne MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1458 (cherry picked from commit d928328f8d2d25a4632401795e1c0ebbaeb7b10d) --- usr.bin/man/manpath.1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr.bin/man/manpath.1 b/usr.bin/man/manpath.1 index c964e028a244..ac9e3b2db5a7 100644 --- a/usr.bin/man/manpath.1 +++ b/usr.bin/man/manpath.1 @@ -1,4 +1,6 @@ .\"- +.\" SPDX-License-Identifer: BSD-2-Clause +.\" .\" Copyright (c) 2010 Gordon Tetlow .\" All rights reserved. .\" @@ -40,7 +42,7 @@ the user's .Ev PATH , and local configuration files. This result is echoed to the standard output. -.Bl -tag -width ".Fl d" +.Bl -tag -width "-L" .It Fl L Output manual locales list instead of the manual path. .It Fl d @@ -89,7 +91,7 @@ entries. .Sh ENVIRONMENT The following environment variables affect the execution of .Nm : -.Bl -tag -width ".Ev MANLOCALES" +.Bl -tag -width "MANLOCALES" .It Ev MANLOCALES If set with the .Fl L @@ -103,7 +105,7 @@ Influences the manual path as described in the .Sx IMPLEMENTATION NOTES . .El .Sh FILES -.Bl -tag -width indent -compact +.Bl -tag -width "/usr/local/etc/man.d/*.conf" -compact .It Pa /etc/man.conf System configuration file. .It Pa /usr/local/etc/man.d/*.conf From nobody Mon Nov 4 15:56:48 2024 X-Original-To: dev-commits-src-all@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 4Xhx0x5gNLz5cFfR; Mon, 04 Nov 2024 15:56:49 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhx0x0r6tz4km1; Mon, 4 Nov 2024 15:56:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735809; 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=BWMGpwiBDy1tP70ra0ChyJ3b1rA47OOgwI9Qdm7Ucec=; b=Ld1cWFT9yjK1E+DD6KUpj9JXjOU7EvK7vQIgGn+1NkvhvWSOhMzOiXRRczDwo8fDcQKLFn MpcuhTCTiGjWUX358L/Splh8BScVn2tB6zYox6f9izstmkKnqkRrfLcxqYA0sbZuiESpZx t7mzP35awHHilwBp2xXmxljsQXFlOx43+PHoHoC2+ag419ZmXyEAhr97EBSpcuyjhy7gnD YLDYwyWmpOHTMh2pb24GNsq8IariXqWC9muY0sH6wy2PgFjeTTvpBzv76kxYkrpcPepIRM aXt/BYPielONP4aj1CeApfWju59YCiH54/cebR/obVuxQpxVHqqlyEikDuPbUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730735809; 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=BWMGpwiBDy1tP70ra0ChyJ3b1rA47OOgwI9Qdm7Ucec=; b=g3SzKtA7HVMz5i/IHJh9NAFX4pFYRg5WEAwJnvv+X26KdHxf9lMJ6QKvwk0I8vuBK0FKYd doIhiobeNN5ktU1JwUvy7OY8vdRe0c1iq4MWn2XcxRp976lI997I5YZ/3TD6uLaY5B7fXm ldW488HRDbOJ5rpdrQdOPz72s2yrMBOCcOxy6iTO7Pi2vPB9ebDJV/OUxOBQDw1wzzjLcM VdriJ/9KsVIavGfvcLe9++PKo5uhWNM4ML70tlNpfGpuos/NJHdYvRZaf1Oj4Gaacln7KL 4ydorDYNOnRzCtftH6MZJcUN0OFuEc50XqrWeoVcUujZmP/WEVu5Lge9NeA2gA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730735809; a=rsa-sha256; cv=none; b=NitwCRNf/CrVIUQFTL0oP3CaoggXlWOeRkGcqrIqUpqdxbmRK2rCl3LaUDJcmgDHWvFqOl W0Bh5byYQGuyF5tDyDqrvA/HzqDC7VcWup4cB3Vz7WnJGJLt+/rwWK15qOZZCWu6EBpbwh WLx16+v6u1vBs0yS/d+ioJAcI3Wu5qMKdgGa2SgaIuym0hr0BDqWWyUPNZEVqMBNNQ1MLH ayhnvsRaILbyg0kqikSi8uHc2qMoxTjs0NPPnBgW/Gn432anN884YIWpYIQViqHn62F+1+ xh3bivnDevoEWZsublBFvNUq8WPqMZ5F0dxlqcIgoEAa+zSnsi4i7mSMGt80hA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xhx0x0PxKzg8K; Mon, 4 Nov 2024 15:56:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FumDg072610; Mon, 4 Nov 2024 15:56:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4FumET072605; Mon, 4 Nov 2024 15:56:48 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:56:48 GMT Message-Id: <202411041556.4A4FumET072605@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 7965dbfd5b70 - stable/14 - wpa_supplicant: xref relevant wpa_passphrase(8) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7965dbfd5b70ed787ad928cc3de44e19035b3e0b Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=7965dbfd5b70ed787ad928cc3de44e19035b3e0b commit 7965dbfd5b70ed787ad928cc3de44e19035b3e0b Author: Alexander Ziaee AuthorDate: 2024-10-12 15:41:03 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 15:56:25 +0000 wpa_supplicant: xref relevant wpa_passphrase(8) Reviewed by: mhorne MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1461 (cherry picked from commit 5c59e40bc419870659946156b45a390cabd69c02) --- usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8 b/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8 index 9b51c3d8688c..cba5ce0228d6 100644 --- a/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8 +++ b/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8 @@ -160,7 +160,8 @@ Wait for a control interface monitor before starting. .Xr wpa_supplicant.conf 5 , .Xr devd 8 , .Xr ifconfig 8 , -.Xr wpa_cli 8 +.Xr wpa_cli 8 , +.Xr wpa_passphrase 8 .Sh HISTORY The .Nm From nobody Mon Nov 4 16:16:42 2024 X-Original-To: dev-commits-src-all@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 4XhxRt4gRqz5cGtP; Mon, 04 Nov 2024 16:16:42 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxRt2xsdz4qdW; Mon, 4 Nov 2024 16:16:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737002; 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=Y81AWc1X4iDpue33sw5tCwaaxcqe1yOWoMTCkGjpWTE=; b=paNVMagm+iJogyU1QLHsklhDwHdAtGs79bh5tqh3ytw2oHUyH77bVC6JzjWimTlLhGP5zW IXBK63R9luMjmMFvJxiT3PjjdLUC6p2W4OuoOYwIiMV4XiCEKWdFhEZRiAvE/bWXgVha9h tks3ekpIExTnQz6SAAOvkiEPf1UjTfX/BN4alTmwNAOzgnv5kqG6eutjNqjm/meYxqbPXq Aymj+XLpKbpJG+TH6G74KeYqunHU6lkva14tAEujT+g57Dz2Eo/Eenw6TBn5Lh3+M6DAdZ YCTW5mchvFYd4T/VrtDioWuV1aGGq+Fusx2/rvYiXUAs13e8aojLdreo2f9/cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737002; 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=Y81AWc1X4iDpue33sw5tCwaaxcqe1yOWoMTCkGjpWTE=; b=SzPwcen8s/MVOLPCrt5juu6QX7lgjW3Ju1pUa1sPTsKY/sNVtFSQVKmrs83DHgaJeUgSu0 W8718arFypnef06tPL5eKF/3ptGnLh32RVW2DHF7codYLj9dxXVSo4n0ymt6pwkLt2i7kw lvk4TQx4+Wa+hrQ5JpC55QpCR9fvznN41ACPef2vJErmgbIp0iJ2c0DPKmH0bPQZmuIfTA Cun5nf2FovRo036r1LFfJuC2ZXT/oHcdEioT46xjLjnvejbrL6AOm21wXJCzajAKFgd+lB 8aYmcKOMR24RjiAN/yUW6skvusV8u10HOH9NPYADWT5N5NBi4z3a54LfkxFo+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737002; a=rsa-sha256; cv=none; b=LhfUlk3m7yeNGCVj6VuzKNxCwAaKX+ANRq9BCYGR7PGU1ccRMrxb38AJSslHR/YJLB6H3V ShfheeEZQ0rjMnOX/TgBaqj1+dKkiNmMEANbIUHhUd7sGml3gWOmHdOApE2h8luZyupqqN t9QyePmEU9o3En79llkQcxneZEUzajrssjn85nqpUheqFgrVWFmFGXeQorgkmCk+Kg1bKM 9PZBMDwdkhjdU9Z/EZjZNwGlJ4tTMAlOVNNyAH3Hd/wr5PN2gPiQ/6y6Z+xf+cvbQt56kB 3o7XkkR9+ly8CC8m9FYkYuQ3qBqo4tG/F1p7vVNQdxfT0lp/Fafr7RmFR6fjZw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxRt2G3Mzgfl; Mon, 4 Nov 2024 16:16:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGgDu010444; Mon, 4 Nov 2024 16:16:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGgMC010441; Mon, 4 Nov 2024 16:16:42 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:42 GMT Message-Id: <202411041616.4A4GGgMC010441@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 6136631124c0 - stable/14 - manuals: Fix "skipping end of block" .El errors List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 6136631124c08c24ff1d07c493fd07f1ff059ed5 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=6136631124c08c24ff1d07c493fd07f1ff059ed5 commit 6136631124c08c24ff1d07c493fd07f1ff059ed5 Author: Graham Percival AuthorDate: 2024-10-03 18:19:04 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:05:53 +0000 manuals: Fix "skipping end of block" .El errors These were reported by `mandoc -T lint ...` as errors; this commit only handles unnecessary .El commands. The rendered output (in ascii and html) is not affected by this commit. Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1447 (cherry picked from commit c801836ff43deea3c86935abcad1069bfcd3989c) --- cddl/usr.sbin/zfsd/zfsd.8 | 1 - share/man/man4/gve.4 | 2 -- share/man/man4/mem.4 | 1 - usr.sbin/pnfsdskill/pnfsdskill.8 | 1 - 4 files changed, 5 deletions(-) diff --git a/cddl/usr.sbin/zfsd/zfsd.8 b/cddl/usr.sbin/zfsd/zfsd.8 index d6b0e1d4bd22..d668e0e8ee9e 100644 --- a/cddl/usr.sbin/zfsd/zfsd.8 +++ b/cddl/usr.sbin/zfsd/zfsd.8 @@ -154,7 +154,6 @@ will log interesting events and its actions to syslog with facility .Em daemon and identity .Op zfsd . -.El .Sh FILES .Bl -tag -width a -compact .It Pa /var/db/zfsd/cases diff --git a/share/man/man4/gve.4 b/share/man/man4/gve.4 index 9bb1be1b9a53..7dba99e68773 100644 --- a/share/man/man4/gve.4 +++ b/share/man/man4/gve.4 @@ -127,7 +127,6 @@ Tx queue-specific allocation failures: .It "Failed to alloc desc ring for tx ring %d" .It "Failed to vmap fifo, qpl_id = %d" .El -.El .Pp The following messages are recorded when the interface detach fails: .Bl -diag @@ -200,7 +199,6 @@ does not support the transmission of VLAN-tagged packets. All VLAN-tagged traffic is dropped. .Sh SUPPORT Please email gvnic-drivers@google.com with the specifics of the issue encountered. -.El .Sh SEE ALSO .Xr ifconfig 8 , .Xr netstat 8 diff --git a/share/man/man4/mem.4 b/share/man/man4/mem.4 index 5df074acc8f3..3132b7f3cf86 100644 --- a/share/man/man4/mem.4 +++ b/share/man/man4/mem.4 @@ -200,7 +200,6 @@ should be set to to update an existing or establish a new range, or to .Dv MEMRANGE_SET_REMOVE to remove a range. -.El .Ss Live Kernel Dumps .Pp The diff --git a/usr.sbin/pnfsdskill/pnfsdskill.8 b/usr.sbin/pnfsdskill/pnfsdskill.8 index a08492fdb966..97919bd65a83 100644 --- a/usr.sbin/pnfsdskill/pnfsdskill.8 +++ b/usr.sbin/pnfsdskill/pnfsdskill.8 @@ -62,7 +62,6 @@ by the MDS or reported to the MDS by a client. .Pp The pNFS service should continue to run normally so long as the number of operational DSs is at least as many as the level of mirroring. -.El .Sh SEE ALSO .Xr nfsv4 4 , .Xr pnfs 4 , From nobody Mon Nov 4 16:16:43 2024 X-Original-To: dev-commits-src-all@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 4XhxRv5WB3z5cGrH; Mon, 04 Nov 2024 16:16:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxRv3JhWz4qdX; Mon, 4 Nov 2024 16:16:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737003; 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=ejvVyndv+2Fiy5U78t7Dc/WgxPK6BK6V4cjwcmPNNUQ=; b=hYe9+6dfmGyXkEXKH3yEZ17Dz/s9SRH7VK0QykIrSspB7rtHyqsg0T6/yYYWq+xF6uV3Z9 FAuwXvfIgEcGD0fgTg9GCUzrhEt+9svhOwsp2yjiaPeMO/jGHZAqDTnz843qY0GYh5XqE0 HCW+KB6rsUlwypORAwzwEjobhSkdScYFqq5vzCLrFgzAyzXYUL1H61Y2QT4v5CYHH1Wnbc jPTS4YvnDpRAfgTQuY5bkz6aXq7f2ru0TAQjn/b7ayJqHf78Z75YDgNsND6c0uA5LE36v0 m+U97x8PgBU7+g/Fg8S8MxRZq7+foz2YvsSB/fp9FP/7b/zC9dOp5yyhGNzKPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737003; 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=ejvVyndv+2Fiy5U78t7Dc/WgxPK6BK6V4cjwcmPNNUQ=; b=hPmCpEqL89Z6zJvLprFb8yuFHANHEbVsFo0CXajHmcUe3HHp5PomGFjMKIXaYHRTxOgOgU DOxNb3qbU5Ma7uzBmr9L5JoirDK1XjYW46iw3WOw0oMuGZtYIp8MYjhMC63MZf/TuaTfKl MEN/cgvXcezWJRYf+A0JDritTHFTFm6w9Q8BjB1X9BlV84qh8pyy/D3O08oT7P9xGRaQxO VJFaLlkcVrNCLMWoJyGViT8DYicfUrv5X1YD+qL0bFx2wTDdVOXA/qYI68zO2PS5BPTP/j /Kx9RXsnH3GZ6wAj1RHXz0NqmyAuwE5vZnf7c24pvKuCzMkBKi/c1GBQqWKfgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737003; a=rsa-sha256; cv=none; b=oVXl78RSZGGujrh8nP5y8pTmMRTlPBS3TO4oYFzuo4jZTua+4bUVqwJkIlv0tpMeFOm52X VwZj+UlKCGQbpP/ITHmB4Fcuhs7y1yazCRxetvel69vceT2E1dQBcTDvSTa2FDdtFWSbE1 zxj5mg4AAViL5AN5FtSyEWG9bIKjHXgDG3ekt4+0BmtifWRm/94OzW/0w4vdINimkf36mN gZn6/mWd6++6902p5EuyJmWx+y7i+DF5Yf3J+Qhg/EhW/UnhjNqnnuB358sKcVeYWLX4nC toEO3ed7SVxN67g5NlSn+7JFoIal0yZ1Rh7K79QPXKBIaVvwLXLs1gSShBNWGg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxRv2sFrzgZT; Mon, 4 Nov 2024 16:16:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGhJh010493; Mon, 4 Nov 2024 16:16:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGhEk010490; Mon, 4 Nov 2024 16:16:43 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:43 GMT Message-Id: <202411041616.4A4GGhEk010490@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: c0bd4ec70b19 - stable/14 - manuals: Fix "missing end of block" errors List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c0bd4ec70b196b919c09b04af71230596af23fcd Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=c0bd4ec70b196b919c09b04af71230596af23fcd commit c0bd4ec70b196b919c09b04af71230596af23fcd Author: Graham Percival AuthorDate: 2024-10-03 18:43:13 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:07:50 +0000 manuals: Fix "missing end of block" errors These were reported by `mandoc -T lint ...` as errors. The rendered output (in ascii and html) is not affected by this commit. Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1448 (cherry picked from commit d21e322d563e0fd1f92c22205c2ced4bcd22dc23) --- lib/libc/gen/makecontext.3 | 1 + lib/libc/posix1e/acl_cmp_np.3 | 1 + lib/libc/posix1e/acl_extended_file_np.3 | 1 + lib/libpathconv/abs2rel.3 | 1 + lib/libpathconv/rel2abs.3 | 1 + sbin/init/init.8 | 1 + share/man/man4/splash.4 | 1 + 7 files changed, 7 insertions(+) diff --git a/lib/libc/gen/makecontext.3 b/lib/libc/gen/makecontext.3 index bcf836979962..198c541d40a6 100644 --- a/lib/libc/gen/makecontext.3 +++ b/lib/libc/gen/makecontext.3 @@ -152,6 +152,7 @@ via .Fn makecontext ; portable applications should not rely on the implementation detail that it may be possible to pass pointer arguments to functions. +.Ef .Sh HISTORY The .Fn makecontext diff --git a/lib/libc/posix1e/acl_cmp_np.3 b/lib/libc/posix1e/acl_cmp_np.3 index a8dca4959d2e..5e47df833d0d 100644 --- a/lib/libc/posix1e/acl_cmp_np.3 +++ b/lib/libc/posix1e/acl_cmp_np.3 @@ -63,6 +63,7 @@ to the corresponding value: .Bl -tag -width Er .It Bq Er EINVAL Either first or second argument does not point to a valid ACL. +.El .Sh SEE ALSO .Xr acl 3 , .Xr posix1e 3 diff --git a/lib/libc/posix1e/acl_extended_file_np.3 b/lib/libc/posix1e/acl_extended_file_np.3 index 26572be9d2b3..4673e9c3e417 100644 --- a/lib/libc/posix1e/acl_extended_file_np.3 +++ b/lib/libc/posix1e/acl_extended_file_np.3 @@ -75,6 +75,7 @@ to the corresponding value: .Bl -tag -width Er .It Bq Er EACCES Search permission is denied for a component of the path prefix. +.El .Sh SEE ALSO .Xr extattr_get_file 2 , .Xr posix1e 3 diff --git a/lib/libpathconv/abs2rel.3 b/lib/libpathconv/abs2rel.3 index 634f294800e4..9240ef1662e2 100644 --- a/lib/libpathconv/abs2rel.3 +++ b/lib/libpathconv/abs2rel.3 @@ -93,6 +93,7 @@ The .Fa size argument is greater than zero but smaller than the length of the pathname plus 1. +.El .Sh SEE ALSO .Xr rel2abs 3 .Sh AUTHORS diff --git a/lib/libpathconv/rel2abs.3 b/lib/libpathconv/rel2abs.3 index f889f427450d..1f607fd739e1 100644 --- a/lib/libpathconv/rel2abs.3 +++ b/lib/libpathconv/rel2abs.3 @@ -90,6 +90,7 @@ argument is zero. The .Fa size argument is greater than zero but smaller than the length of the pathname plus 1 +.El .Sh SEE ALSO .Xr abs2rel 3 .Sh AUTHORS diff --git a/sbin/init/init.8 b/sbin/init/init.8 index 88d663a1afe8..b20860d59e35 100644 --- a/sbin/init/init.8 +++ b/sbin/init/init.8 @@ -398,6 +398,7 @@ back to the default, so that the .Pa /etc/rc script is executed with the standard shell .Pa /bin/sh . +.El .Sh FILES .Bl -tag -width /var/log/init.log -compact .It Pa /dev/console diff --git a/share/man/man4/splash.4 b/share/man/man4/splash.4 index af2ae2e4369a..d7123bf6efd9 100644 --- a/share/man/man4/splash.4 +++ b/share/man/man4/splash.4 @@ -253,6 +253,7 @@ and include the following lines: .Bd -literal -offset indent splash="/boot/images/freebsd-logo-rev.png" boot_mute="YES" +.Ed .\".Sh DIAGNOSTICS .Sh SEE ALSO .Xr vidcontrol 1 , From nobody Mon Nov 4 16:16:44 2024 X-Original-To: dev-commits-src-all@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 4XhxRw5pq7z5cGtQ; Mon, 04 Nov 2024 16:16:44 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxRw4Mv2z4qRw; Mon, 4 Nov 2024 16:16:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737004; 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=PlcpUYip4a7M3KFyTihi8+eRXZG5YPJszFhsy+Dnu5w=; b=OdHrIgK2FCOra3JwkHsde42BYTGp5CKapRvR+UwKapEgd8h/+NRAtcoZ5yCVs2BCdgUeTk znQBZw8dVXHqyMDVyYf+XOBcMNgz5ELIWk0A7PgK+uXTejsM27vaw8SFFR9R8uQKUbElEf iVTIQHBKSdVzuK3BEbt+mDjb0DHdnrPMgTIK0IhtOfIeiHVcarcqqygTzAIUgjz9JiRteA hpIO4zzBJtBN+KjlSd9ATRpzZY2PwtNM/bVlgWbIFd0fPnqtX6Y74xJfB1CuA0bG/xzAuR pOF/hejSJcjff2VlwGpeisOAg9l91Q++4zQoFqEfTQ0AzPdBmQQizgdtDPkKQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737004; 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=PlcpUYip4a7M3KFyTihi8+eRXZG5YPJszFhsy+Dnu5w=; b=K5NF0DN4CDttvO9cLkXbNa789aYt2O9YEBZqwrxa3DR42GfqTIP5Hd+JAqbE9ISUkbJ4TC Af8650jcqXz2VdQVrbh6K9Ex+d9Jf8qmY8viEQJddWoZTGA5KtmwGLo6uvrsDAcriQK0KO GOvsLN21w+1uYsKzzmHOPfhrJcQ4jruj37WI+uhbKMP3xRnyqj4Efm0F4MPdMEVe845YSS 6gqyN4Ks9307mso6UUEIyV27CScj+76jkkg274LuWOR/Dn+A9NaxxCqb66Bn63zl/QHHkG QEvcrE/jWVXGzkHeh+7ARcxWfgOVfATBluaUC2hC68kOAMQzU2IEPSCpideA1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737004; a=rsa-sha256; cv=none; b=IjVCWDT00XvUvIXCwD/rEQYb/kz3rccsJGAkt2z4++1rNjqwTvkSiH3PupYU6Cyi75LTiB oUAyk/ChgeQApLCSdO5RGlStpYgd6+l7MtX50qW0jUr2KqMAriGcEPWjG2GNQd3YrIVvda /6GmpxBhMhi7Cz7xXZrakDZDqqTsQNyYqvDBRHSuBkS38CK783BSpvDnp3ktz3o4IpPr9e HHlc36EuO74ldvmzUopmf5bO9TVr+MFNorMjuqTMhw8Z892H5mJuzeLAGaBwCcpeg2Ot/r qHu/7YsbUfPd62W9FxBbFgFFdNemskRpqBI2HfjGw7MHLaTipRztXRXnOVlFQw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxRw3SKwzfvX; Mon, 4 Nov 2024 16:16:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGiNI010545; Mon, 4 Nov 2024 16:16:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGirh010542; Mon, 4 Nov 2024 16:16:44 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:44 GMT Message-Id: <202411041616.4A4GGirh010542@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 6a65bb7ed867 - stable/14 - manuals: Fix "missing end of block" errors List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 6a65bb7ed867d734dbaa14ac4bdbba65072db2f2 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=6a65bb7ed867d734dbaa14ac4bdbba65072db2f2 commit 6a65bb7ed867d734dbaa14ac4bdbba65072db2f2 Author: Graham Percival AuthorDate: 2024-10-08 01:37:45 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:08:13 +0000 manuals: Fix "missing end of block" errors These were reported by `mandoc -T lint ...` as errors. The rendered output (in ascii and html) is not affected by this commit. Signed-off-by: Graham Percival Reviewed by: mhorne, Alexander Ziaee MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1454 (cherry picked from commit 643fc698203b9b0ed386b0583c2200c428135c9d) --- stand/man/loader_lua.8 | 1 + stand/man/loader_simp.8 | 2 ++ usr.bin/bintrans/bintrans.1 | 1 + 3 files changed, 4 insertions(+) diff --git a/stand/man/loader_lua.8 b/stand/man/loader_lua.8 index 1ba0939e60bd..0aa467237266 100644 --- a/stand/man/loader_lua.8 +++ b/stand/man/loader_lua.8 @@ -197,6 +197,7 @@ Loader init .Nm configuration files, as described in .Xr loader.conf 5 . +.El .Sh EXAMPLES Boot in single user mode: .Pp diff --git a/stand/man/loader_simp.8 b/stand/man/loader_simp.8 index 6eac6bf6a102..49214e78b494 100644 --- a/stand/man/loader_simp.8 +++ b/stand/man/loader_simp.8 @@ -659,6 +659,7 @@ command line by booting unconditionally in .Pa loader.rc . In order for this to be effective, one should also configure the firmware (BIOS or UEFI) to prevent booting from unauthorized devices. +.El .Sh FILES .Bl -tag -width /boot/loader_simp -compact .It Pa /boot/loader_simp @@ -668,6 +669,7 @@ itself. The script run by .Nm on startup. +.El .Sh EXAMPLES Boot in single user mode: .Pp diff --git a/usr.bin/bintrans/bintrans.1 b/usr.bin/bintrans/bintrans.1 index 054f304d4c61..3376ecd332ed 100644 --- a/usr.bin/bintrans/bintrans.1 +++ b/usr.bin/bintrans/bintrans.1 @@ -236,6 +236,7 @@ Decode. Output to .Ar output_file instead of standard output. +.El .Sh EXAMPLES The following example packages up a source tree, compresses it, uuencodes it and mails it to a user on another system. From nobody Mon Nov 4 16:16:45 2024 X-Original-To: dev-commits-src-all@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 4XhxRx6k4tz5cGtb; Mon, 04 Nov 2024 16:16:45 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxRx51v6z4qYH; Mon, 4 Nov 2024 16:16:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737005; 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=jsB20fJdFL4TxHtQGVKDBRv+UnpVTnqui0rMxsZ7Gkg=; b=Q3eGTMOACt6Oaz446QApCJqkRViwBB8IDvEPxpSUnBvPMoTDKmfLiyGrNb8cSust6YKT4y 1SsG6qfHbJ53kSxJJl+sGpp6t1by2KBjNNB3BUTX5lbsjgCnnJVFXMUQ+knrmY3N1hehWB nNTpXEDB1x8GYb2D2/48PkSPZf7D4uh5CJlZpSDzAmi5DXe38yJlcxpRQOMgMrdz3CIAc0 Hmx6FrU7ZlGLLfWGBoq6kTbCGFy6mL+2VhJcvswSPVfTnw0KW8RWXmoJ3Ra9M6saFKsX6d h1U8/jslzcZWbFUO96ua0g8yR8D+OhNUhdyWDM00cxi+hvGHv8FEQANl4gn/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737005; 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=jsB20fJdFL4TxHtQGVKDBRv+UnpVTnqui0rMxsZ7Gkg=; b=eXG/feD25i0X58dq6CjO5hvDp99Mvn9GAJ0zixlRUzY7N+Xw3M3/lJkYVNhkGv3UdFfYUr T6YOip00OUmdN93vWiOMKGrcafBxpzRpbwvyucJEciJbnmZQTwiLeRZbe8ARGXex5VEj9N 9Wm8NQC8ocWO9ZAGcYMaZAjth8wH55c2dsi7xsj8F+hp+TA2WXlU5Pv6T/J/SabHo0vYJH vSdeZzPKvRb+OHcrNa8D1vAT9JDdeJCGAfVgdzcdgqIAYVe8VKF/pExcrnS0bLo/Mhb6LY rJ3Mp4qjh+hfiFy8CMtmyFRO8rhVLxKvBkV6I3lR4Ie+FvbcibQjP+vp0Up4ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737005; a=rsa-sha256; cv=none; b=TOBTab4bagK9t9bXOhb1PzTcMKP3EZ7uxnaFA2/dMdoMjfku+7IMdvrN0kZI4zqBTf12QK /9cx8b/CnQleMi9yhJp7d05ILPS7OBm9mYOf/TJxbN0kTJ+IGFZ2iTD81CfHzBd/cw9PAw wUPalyNT6i4lCBe0wTFgTGnOrAGI8CKnuXc6ocnv/Kb78+Em4p05AN/3uQiRP8Ioo6B+qP q09LOpBW0EXD2H4HGcOuItnTvzd650Mvr3fYAr/Qki4QAR4Qty8kWfOCI/NUO/ce0npHWj XJMAghKj6b8m3LToj58ZIWiY/Y4SopANL1qqVtwHAbJnIixw/THoDWYfwOsDzg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxRx4SNlzfpM; Mon, 4 Nov 2024 16:16:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGj32010590; Mon, 4 Nov 2024 16:16:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGjGB010587; Mon, 4 Nov 2024 16:16:45 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:45 GMT Message-Id: <202411041616.4A4GGjGB010587@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 64e8a9679ead - stable/14 - mitigations.7: markup functions with Fn macro List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 64e8a9679ead6f7e2ab3617b50d5edc99f410e52 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=64e8a9679ead6f7e2ab3617b50d5edc99f410e52 commit 64e8a9679ead6f7e2ab3617b50d5edc99f410e52 Author: Alexander Ziaee AuthorDate: 2024-09-21 17:47:53 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:08:38 +0000 mitigations.7: markup functions with Fn macro + include this page in `apropos Fn=memcpy` Reviewed by: emaste MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1428 (cherry picked from commit 22fb46af90d62d8177bfa0f1a8e4d89efa0b1905) --- share/man/man7/mitigations.7 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/man/man7/mitigations.7 b/share/man/man7/mitigations.7 index 7156327a7795..0667d58c309b 100644 --- a/share/man/man7/mitigations.7 +++ b/share/man/man7/mitigations.7 @@ -288,11 +288,11 @@ When enabled, enables extra bounds checking in various functions that accept buffers to be written into. These functions currently have extra bounds checking support: -.Bl -column -offset indent "snprintf" "memmove" "strncpy" "vsnprintf" "readlink" -.It bcopy Ta bzero Ta fgets Ta getcwd Ta gets -.It memcpy Ta memmove Ta memset Ta read Ta readlink -.It snprintf Ta sprintf Ta stpcpy Ta stpncpy Ta strcat -.It strcpy Ta strncat Ta strncpy Ta vsnprintf Ta vsprintf +.Bl -column -offset indent "snprintf()" "memmove()" "strncpy()" "vsnprintf()" "readlink()" +.It Fn bcopy Ta Fn bzero Ta Fn fgets Ta Fn getcwd Ta Fn gets +.It Fn memcpy Ta Fn memmove Ta Fn memset Ta Fn read Ta Fn readlink +.It Fn snprintf Ta Fn sprintf Ta Fn stpcpy Ta Fn stpncpy Ta Fn strcat +.It Fn strcpy Ta Fn strncat Ta Fn strncpy Ta Fn vsnprintf Ta Fn vsprintf .El .Pp .Dq FORTIFY_SOURCE From nobody Mon Nov 4 16:16:46 2024 X-Original-To: dev-commits-src-all@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 4XhxRz1zdVz5cGWW; Mon, 04 Nov 2024 16:16:47 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxRy6R1mz4qYT; Mon, 4 Nov 2024 16:16:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737006; 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=Uj5UrR8ilIDlYDMt5k1Eol/xe1aW+owo29/oinrPpD0=; b=Ccpsvsp5FiSe0J+mw7FAn9g0Kf902HPXoDCx+Sx9tg2FN2m7nt71llBNZbNtzPzBOCBlK2 4r2WGz2/mBgVXBu5l/wLM/d9xpA87V129Di9h4CZyvJbA4RtMe2J7nF4NeTM1XnTXXOVTS W+7rFc+D4OxepOiLNLtN7l+EWaagGkDiwEmPV317/QbOyfBEOipiu2ryIwB/SGgk0DbiEn 5klgR9mlkDW3mUNZWyu4xS1jui7uQJ86tK4EeF97Eo2zI0XlWIaPxtRxHduPBTlQJy2JXl 2y0MO9fuQ7/IA4rTWtXbNgqCJ0WHcQ4C2wqy/zNOrzvCJscTR8uLri4gO1JVCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737006; 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=Uj5UrR8ilIDlYDMt5k1Eol/xe1aW+owo29/oinrPpD0=; b=HQGryvVOCLFgU6UiFwtcaNuqJ8wfuBkDpqAoCCVfRwhenAR9lco2LHVSDuidFfmCfgNKP1 i147F18r3b22QXW29raI193AsSwNUANQhdG0DyeG7hUlHMo0353AQrB8OtDfYGOQGRMdHZ 3xWHt74NNxlVwFZJToNidyzT98NyvJ5S8PC4ed78NNObRaAQUIRwXHFtsY4k37mlC5dNFA ZegwfCartEEFfq7BqWFXqy52dxNu/v3HGOMNXlDrx8PjwXaJsskA7e2qD6OYsKyrVttkpn k3wsa77cZwj2XXRCY9gnHEK+s0wvRtnu2K56W7TsUMGlVq1wtdP4dTaPBzZB3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737006; a=rsa-sha256; cv=none; b=pn/aBP1ObU/ROzPl69fzM04/sDvuaxKYGOpfDKHwlRYgW2+sT76MmbQXZaL3C1UDm0eHRa RF8ePAKkjD5Q4ItVB+7oNGK0f/eS8sSURK/r4pwrz6oSB7FtOe1XHkhXhcvOCg9MS4iKUW so4gWaCmF/BdLPi/+dJYPQV7VN2mQ9hdjJTEBgqViaElffKuNjEYMOFsP8wH+JRjMqaKJM yqZs9k+ydoH2gbyXxxAs5xrq06lXnjtj/9jm4GAngIDh9yG8UpGVGZ5dl19yenH+2RqJrT SE8zrsT2Fn5Hy0Adyoh5qH1QvaJABoIzeFzo7h8sc6wYRyiN5qvNwIXUrZe7XA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxRy5VgqzfpN; Mon, 4 Nov 2024 16:16:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGkIA010635; Mon, 4 Nov 2024 16:16:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGkiL010632; Mon, 4 Nov 2024 16:16:46 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:46 GMT Message-Id: <202411041616.4A4GGkiL010632@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 3dedfaa01a9c - stable/14 - mitigations.7: minor cleanup (linter errors) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3dedfaa01a9ce21bd22dafbb9b32f9d8d96b0f63 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=3dedfaa01a9ce21bd22dafbb9b32f9d8d96b0f63 commit 3dedfaa01a9ce21bd22dafbb9b32f9d8d96b0f63 Author: Alexander Ziaee AuthorDate: 2024-09-21 18:03:57 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:08:38 +0000 mitigations.7: minor cleanup (linter errors) Reviewed by: emaste MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/1428 (cherry picked from commit c3294033e024620874ecfc219174347989378a3b) --- share/man/man7/mitigations.7 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/share/man/man7/mitigations.7 b/share/man/man7/mitigations.7 index 0667d58c309b..7e3dc3078825 100644 --- a/share/man/man7/mitigations.7 +++ b/share/man/man7/mitigations.7 @@ -154,7 +154,7 @@ proccontrol .Ss Position Independent Executable (PIE) PIE binaries are executable files that do not have a fixed load address. They can be loaded at an arbitrary memory address by the -.Xr rtld +.Xr rtld 1 run-time linker. With ASLR they are loaded at a random address on each execution. .\" @@ -185,17 +185,19 @@ Allow 64-bit processes to map pages simultaneously writable and executable. .\" .Ss PROT_MAX .Dv PROT_MAX -is a FreeBSD-specific extension to +is a +.Fx Ns +-specific extension to .Xr mmap 2 . .Dv PROT_MAX provides the ability to set the maximum protection of a region allocated by -.Xr mmap +.Xr mmap 2 and later altered by -.Xr mprotect . +.Xr mprotect 2 . For example, memory allocated originally with an mmap prot argument of PROT_MAX(PROT_READ | PROT_WRITE) | PROT_READ may be made writable by a future -.Xr mprotect +.Xr mprotect 2 call, but may not be made executable. .\" .Ss Relocation Read-Only (RELRO) From nobody Mon Nov 4 16:16:48 2024 X-Original-To: dev-commits-src-all@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 4XhxS121VVz5cGWX; Mon, 04 Nov 2024 16:16:49 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxS10MzYz4qfB; Mon, 4 Nov 2024 16:16:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737009; 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=XKhe3xbxqAXO2HYgjkvD8L7hFcRM6Xdqgh8LohRN5Ow=; b=XSft5o5sf7+14XWG0/jTVecndU2cluNe6YGUE9bwZJf+AKYnQWgWcCeswN7jY4MhVv8+zO EjVx945C1AsTfNHd/7Qt3/W2P+uQJ5+37jax+6KFMpXyjYv5cglUX0Xy1IZo0z/75eG3jg sXkL/+ZUY9G9It3+uHxMOZ5KjUoChlE4rbw3IZzMvkJlg/7bdnerZhI4VRFjzrlCS/xkSG wmyKkTXFVMe1XGkUFadvvKaHO5FJxYrSEMBUvKgWbuaMTrCKKmDhzMeitrbkokE8PsMyrh JnuGGyz4nMKe44/tGOZGQY7jZ3QejRPihB1By7EP5P4Xiu4cjDRa0SAJ0OuPjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737009; 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=XKhe3xbxqAXO2HYgjkvD8L7hFcRM6Xdqgh8LohRN5Ow=; b=nEZ7MOYr9TN5yNtO8TfmNyv82zm+petU4dPgyayhdLOA7FfaS24NFmZ9ntH4ZNn/YJ+PhG EcJ9/Z2j//Ls+PR977nuGsTQg2alGeC4hkVW44zjNOMgOs4jeMndz2FEzqi6gQQq5hSNPY Afqi7k3ULKHFe7WnPkj1v75yaCh283VgV5D5yetDh8lv32CVO9oOo58AgfaK0ftbboYDfv IiRGMk+/Ro4WdTsg5QSYrm2qykUbgmyEs1zJOWVC3p5VWZoET7QiKHSbExISSARB+Udeg0 XqSR99kpT7yk5bfYS3wU5OnRsNDRlJ0LWhJA7ohCsyt6QN8mTo3whSiqN07nSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737009; a=rsa-sha256; cv=none; b=cF97EqPS+ZkixvKFjBKiOm8Ynabg4s0B4KXgap8FRn4Sq+NhOxqq39CjSZzfo/b9SrYOtk dXeeEsxuxhiEkcBzsAk3epS+J6Eg5ER1ytoIrzKMi6s2tw73vy5+L7gPvdsN7IcrykcBUH ELNiFOtOO6pAfEGfHV2uFWEvSTlq6bJ8znaLwwWfbSE9ScAzo2eh96XkpVK9uvJcykey8G k6J7LGONw7N5kgYRIz6/uBha91Ju3UZp9t8ABnCQsywGfrwbwVSx1iAQ82nvdfoA9oVmgM KwO2dvhOMrtSx5/K3HakEuCN3TSwI3gj3CZI8IPxH5cIG6z2E8glAzo+aPqNig== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxS06pgSzgfm; Mon, 4 Nov 2024 16:16:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGmwf010739; Mon, 4 Nov 2024 16:16:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGmuJ010736; Mon, 4 Nov 2024 16:16:48 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:48 GMT Message-Id: <202411041616.4A4GGmuJ010736@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 666d4c2bbdb2 - stable/14 - manuals: Misc syntax fixes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 666d4c2bbdb2c56f824f2a91769f52f4f28d9692 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=666d4c2bbdb2c56f824f2a91769f52f4f28d9692 commit 666d4c2bbdb2c56f824f2a91769f52f4f28d9692 Author: Graham Percival AuthorDate: 2024-10-11 17:18:56 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:13:50 +0000 manuals: Misc syntax fixes These were reported by `mandoc -T lint ...` as errors. The rendered output (in ascii and html) is not affected by this commit. Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1459 (cherry picked from commit 229381deb270e8e240d20b572c63234a61cbd977) --- share/man/man4/hidraw.4 | 2 +- share/man/man4/pfsync.4 | 2 -- stand/lua/menu.lua.8 | 1 + usr.sbin/bhyve/bhyve_config.5 | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/share/man/man4/hidraw.4 b/share/man/man4/hidraw.4 index 4631e253c1ef..f8eb9a21e9d7 100644 --- a/share/man/man4/hidraw.4 +++ b/share/man/man4/hidraw.4 @@ -198,7 +198,7 @@ specified by .Va buf . .It Dv HIDIOCGRAWPHYS(len) Pq Vt "char[] buf" Get the newbus path to the device. -.\For Bluetooth devices, it returns the hardware (MAC) address of the device. +.\"For Bluetooth devices, it returns the hardware (MAC) address of the device. Copies a maximum of .Va len bytes of the newbus device path diff --git a/share/man/man4/pfsync.4 b/share/man/man4/pfsync.4 index b3603c48316e..b4b96ee133bf 100644 --- a/share/man/man4/pfsync.4 +++ b/share/man/man4/pfsync.4 @@ -147,7 +147,6 @@ E.g.: # ifconfig pfsync0 version 1301 .Ed .Pp -.Bd Currently the following versions are supported: .Bl -tag -width indent .It Cm 1301 @@ -156,7 +155,6 @@ Compatibility with FreeBSD 13.1 has been verified. .It Cm 1400 FreeBSD release 14.0. .El -.Ed .Pp .Nm has the following diff --git a/stand/lua/menu.lua.8 b/stand/lua/menu.lua.8 index 6faffbe64d2e..e2a0ff09ffd9 100644 --- a/stand/lua/menu.lua.8 +++ b/stand/lua/menu.lua.8 @@ -281,6 +281,7 @@ stock_options[#stock_options + 1] = { end, alias= {"l", "L"} } +.Ed .Sh SEE ALSO .Xr loader.conf 5 , .Xr core.lua 8 , diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index 469ae06f36f4..cb2de997e63e 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -261,7 +261,7 @@ All PCI device nodes must contain a configuration variable named .Dq device which specifies the device model to use. The following PCI device models are supported: -.Bl -tag -indent +.Bl -tag -width indent .It Li hostbridge Provide a simple PCI-Host bridge device. This is usually configured at pci0:0:0 and is required by most guest @@ -316,7 +316,7 @@ All USB device nodes must contain a configuration variable named .Dq device which specifies the device model to use. The following USB device models are supported: -.Bl -tag -indent +.Bl -tag -width indent .It Li tablet A USB tablet device which provides precise cursor synchronization when using VNC. From nobody Mon Nov 4 16:16:47 2024 X-Original-To: dev-commits-src-all@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 4XhxS01Hjxz5cH25; Mon, 04 Nov 2024 16:16:48 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxRz6LPYz4qvV; Mon, 4 Nov 2024 16:16:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737007; 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=gtn5XSumj6pv4fWweEBrmCjdx+I3mLce1LQou7LC+2A=; b=gXKC0KhBYl2KzP9Kd838BGfeYJuC+9WA3GnpKZAWHPe63NC8MRN5n17XuONDmSbwdh/VZa eggA+8PSYG8brxXnNXt7teSwHm0cCjKuwRUnYH9lrmB+9Ysc6OVpqcEBV1VfLoH/0rTlNV 5u8VMSuO/ca+cvphw3MdaXdh46Hx4MTlB+glLxXFgS31rO+SF033h+HNueP1o7N52VeBxB bS4Fz6II/XhmI2V/4Y9vLzpudUsGsPB9ValAakC7kBRbjDgsbLoBexdNzLxQCyPFeI5AUH NluelmGCkCX5D7qwqHiYdlpzIh9JEaLl5jFlsbKjFhOd5ZWv3bQuTkv2/umRdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737007; 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=gtn5XSumj6pv4fWweEBrmCjdx+I3mLce1LQou7LC+2A=; b=BxfyUUf9YFcfLjNNPvBfsSmdTzMO+a+fcG6LMPtN+v6qsqb6wMrxvxXiY1F1hYU9yZRXMt 7lNcPpgPQiVyL0G4gUrjFReXciKfjvnc0P0K+uSWnqyNsx2mAls2XrUGLt9Tzco0f0Seak yH1hkdeMYIPbYHuu2tmkwLGxThCijpG8EGyk4w25wPoQ+HekiR6AKemCB5vdpgPRfwo+oq xpmb7JxYdsscZUHyfDfKbDKXraEry1lla40h9zgFekNshSOAknbQmBijeES102nGOALdDV tdzRjWokbf+jHYcqEYPmyJ+xMpvtuICD2rkH5L7XLLEITSdxDfzycv6WQMJGHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737007; a=rsa-sha256; cv=none; b=CNAhJhQIzFHeAEzdbmFSuWLchBZB9VBFJZZ/VlsCVSwDzcgrm+Sfmvox3VeaAaW1a375fK MGKfxzRo2k8Kx0pAF4dH7wCu2uD0UZcRPcBnJy8edp7BZG8tH818PywVDKebjbuzpGu5Lt 76NNdxQ84zcrtQ5vh6DnSCUukb2LVtgz9QsR1MbrbgT5rvFQZcWbnzr/LDNrtor/gvuYJ0 am8v0YgOneZq5NaxI0pKhttHswDWyrhfcY5Ook3j2RaGnortPWFH+ADY+YiTEOHC3H3Llc MqW6zU6jFVWiObWx7n9axebb6NZ4+vT0g3CUSoni0hb+QsRzF0+sAVZICt6lrA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxRz5pKVzgZV; Mon, 4 Nov 2024 16:16:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGloA010696; Mon, 4 Nov 2024 16:16:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGleR010693; Mon, 4 Nov 2024 16:16:47 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:47 GMT Message-Id: <202411041616.4A4GGleR010693@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: ddf4df54a7d3 - stable/14 - manuals: Fix "unusual .Xr" warnings with a script List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ddf4df54a7d3bf3df2cf929307e677acf86b06e2 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=ddf4df54a7d3bf3df2cf929307e677acf86b06e2 commit ddf4df54a7d3bf3df2cf929307e677acf86b06e2 Author: Graham Percival AuthorDate: 2024-10-15 15:44:42 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:13:13 +0000 manuals: Fix "unusual .Xr" warnings with a script These were reported by `mandoc -T lint ...` as warnings: - unusual Xr order - unusual Xr punctuation Fixes made by script in https://github.com/Tarsnap/freebsd-doc-scripts Signed-off-by: Graham Percival Reviewed by: mhorne, Alexander Ziaee Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1464 (cherry picked from commit 6e1fc0118033f42b7c0d3623c8f67a89ebecabb2) --- lib/libc/gen/posix_spawn.3 | 4 ++-- lib/libc/gen/setproctitle.3 | 4 ++-- lib/libc/string/bstring.3 | 1 - lib/libc/sys/fhreadlink.2 | 2 +- lib/libc/sys/getrlimitusage.2 | 2 +- lib/libc/sys/socket.2 | 6 +++--- lib/libc/sys/thr_kill.2 | 2 +- lib/libc/x86/sys/pkru.3 | 2 +- lib/libjail/jail.3 | 2 +- lib/libpam/modules/pam_chroot/pam_chroot.8 | 4 ++-- lib/libpam/modules/pam_deny/pam_deny.8 | 4 ++-- lib/libpam/modules/pam_echo/pam_echo.8 | 4 ++-- lib/libpam/modules/pam_exec/pam_exec.8 | 6 +++--- lib/libpam/modules/pam_ftpusers/pam_ftpusers.8 | 4 ++-- lib/libpam/modules/pam_group/pam_group.8 | 4 ++-- lib/libpam/modules/pam_guest/pam_guest.8 | 4 ++-- lib/libpam/modules/pam_krb5/pam_krb5.8 | 4 ++-- lib/libpam/modules/pam_ksu/pam_ksu.8 | 4 ++-- lib/libpam/modules/pam_lastlog/pam_lastlog.8 | 4 ++-- lib/libpam/modules/pam_nologin/pam_nologin.8 | 4 ++-- lib/libpam/modules/pam_passwdqc/pam_passwdqc.8 | 4 ++-- lib/libpam/modules/pam_permit/pam_permit.8 | 4 ++-- lib/libpam/modules/pam_radius/pam_radius.8 | 4 ++-- lib/libpam/modules/pam_rhosts/pam_rhosts.8 | 4 ++-- lib/libpam/modules/pam_rootok/pam_rootok.8 | 4 ++-- lib/libpam/modules/pam_securetty/pam_securetty.8 | 4 ++-- lib/libpam/modules/pam_self/pam_self.8 | 4 ++-- lib/libpam/modules/pam_ssh/pam_ssh.8 | 4 ++-- lib/libpam/modules/pam_unix/pam_unix.8 | 2 +- lib/libsysdecode/sysdecode_sctp_sinfo_flags.3 | 2 +- lib/libthr/libthr.3 | 4 ++-- lib/libveriexec/veriexec.3 | 2 +- sbin/comcontrol/comcontrol.8 | 2 +- sbin/newfs/newfs.8 | 2 +- sbin/umount/umount.8 | 4 ++-- share/man/man4/atopcase.4 | 4 ++-- share/man/man4/cd.4 | 1 + share/man/man4/cdce.4 | 4 ++-- share/man/man4/dummynet.4 | 4 ++-- share/man/man4/ftgpio.4 | 2 +- share/man/man4/ipfirewall.4 | 2 +- share/man/man4/ipsec.4 | 2 +- share/man/man4/mac_do.4 | 4 ++-- share/man/man4/man4.aarch64/rk_gpio.4 | 2 +- share/man/man4/man4.aarch64/rk_i2c.4 | 2 +- share/man/man4/man4.aarch64/rk_pinctrl.4 | 2 +- share/man/man4/man4.arm/imx6_ahci.4 | 2 +- share/man/man4/mpi3mr.4 | 2 +- share/man/man4/netmap.4 | 4 ++-- share/man/man4/ng_nat.4 | 4 ++-- share/man/man4/ng_pppoe.4 | 4 ++-- share/man/man4/procdesc.4 | 2 +- share/man/man4/virtio_gpu.4 | 2 +- share/man/man5/lindebugfs.5 | 2 +- share/man/man5/pf.conf.5 | 2 +- share/man/man8/rc.subr.8 | 1 + share/man/man9/VOP_SETLABEL.9 | 8 ++++---- share/man/man9/cr_bsd_visible.9 | 8 ++++---- share/man/man9/cr_cansee.9 | 6 +++--- share/man/man9/cr_canseeothergids.9 | 4 ++-- share/man/man9/groupmember.9 | 2 +- share/man/man9/p_candebug.9 | 8 ++++---- share/man/man9/p_cansee.9 | 4 ++-- share/man/man9/rtentry.9 | 2 +- tools/tools/ether_reflect/ether_reflect.1 | 2 +- usr.bin/beep/beep.1 | 2 +- usr.bin/gzip/gzip.1 | 2 +- usr.bin/mdo/mdo.1 | 2 +- usr.bin/msgs/msgs.1 | 2 +- usr.bin/posixmqcontrol/posixmqcontrol.1 | 2 +- usr.sbin/i2c/i2c.8 | 2 +- usr.sbin/lastlogin/lastlogin.8 | 4 ++-- usr.sbin/mailwrapper/mailwrapper.8 | 2 +- usr.sbin/rpc.tlsclntd/rpc.tlsclntd.8 | 2 +- 74 files changed, 120 insertions(+), 119 deletions(-) diff --git a/lib/libc/gen/posix_spawn.3 b/lib/libc/gen/posix_spawn.3 index 55559ae7222b..278fee88463a 100644 --- a/lib/libc/gen/posix_spawn.3 +++ b/lib/libc/gen/posix_spawn.3 @@ -446,12 +446,12 @@ action. .Xr sched_setscheduler 2 , .Xr setpgid 2 , .Xr vfork 2 , +.Xr posix_spawn_file_actions_addchdir_np 3 , .Xr posix_spawn_file_actions_addclose 3 , .Xr posix_spawn_file_actions_addclosefrom_np 3 , .Xr posix_spawn_file_actions_adddup2 3 , -.Xr posix_spawn_file_actions_addopen 3 , -.Xr posix_spawn_file_actions_addchdir_np 3 , .Xr posix_spawn_file_actions_addfchdir_np 3 , +.Xr posix_spawn_file_actions_addopen 3 , .Xr posix_spawn_file_actions_destroy 3 , .Xr posix_spawn_file_actions_init 3 , .Xr posix_spawnattr_destroy 3 , diff --git a/lib/libc/gen/setproctitle.3 b/lib/libc/gen/setproctitle.3 index 15bafa23a982..087cbe4b84e9 100644 --- a/lib/libc/gen/setproctitle.3 +++ b/lib/libc/gen/setproctitle.3 @@ -74,10 +74,10 @@ setproctitle("talking to %s", inet_ntoa(addr)); .Sh SEE ALSO .Xr ps 1 , .Xr w 1 , -.Xr setprogname 3 , .Xr kvm 3 , .Xr kvm_getargv 3 , -.Xr printf 3 +.Xr printf 3 , +.Xr setprogname 3 .Sh STANDARDS The .Fn setproctitle diff --git a/lib/libc/string/bstring.3 b/lib/libc/string/bstring.3 index bb1a0505fafd..dc3034db1d6c 100644 --- a/lib/libc/string/bstring.3 +++ b/lib/libc/string/bstring.3 @@ -85,7 +85,6 @@ See the specific manual pages for more information. .Xr memccpy 3 , .Xr memchr 3 , .Xr memcmp 3 , -.Xr memccpy 3 , .Xr memcpy 3 , .Xr memmove 3 , .Xr memset 3 diff --git a/lib/libc/sys/fhreadlink.2 b/lib/libc/sys/fhreadlink.2 index 222142de223e..2d8db95685da 100644 --- a/lib/libc/sys/fhreadlink.2 +++ b/lib/libc/sys/fhreadlink.2 @@ -86,8 +86,8 @@ The file handle is no longer valid .El .Sh SEE ALSO -.Xr fhstat 2 , .Xr fhlink 2 , +.Xr fhstat 2 .Sh HISTORY The .Fn fhreadlink diff --git a/lib/libc/sys/getrlimitusage.2 b/lib/libc/sys/getrlimitusage.2 index 2e3dc744ab23..e82e7b4443fd 100644 --- a/lib/libc/sys/getrlimitusage.2 +++ b/lib/libc/sys/getrlimitusage.2 @@ -92,7 +92,7 @@ and .Sh SEE ALSO .Xr procstat 1 , .Xr getrlimit 2 , -.Xr setrlimit 2 . +.Xr setrlimit 2 .Sh HISTORY The .Fn getrlimitusage diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2 index 3e2206aefe72..9c2b2f8f925b 100644 --- a/lib/libc/sys/socket.2 +++ b/lib/libc/sys/socket.2 @@ -284,13 +284,10 @@ The socket type is not supported by the protocol. .Xr accept 2 , .Xr bind 2 , .Xr connect 2 , -.Xr divert 4 , .Xr getpeername 2 , .Xr getsockname 2 , .Xr getsockopt 2 , .Xr ioctl 2 , -.Xr ip 4 , -.Xr ip6 4 , .Xr listen 2 , .Xr read 2 , .Xr recv 2 , @@ -301,6 +298,9 @@ The socket type is not supported by the protocol. .Xr write 2 , .Xr CMSG_DATA 3 , .Xr getprotoent 3 , +.Xr divert 4 , +.Xr ip 4 , +.Xr ip6 4 , .Xr netgraph 4 , .Xr protocols 5 .Rs diff --git a/lib/libc/sys/thr_kill.2 b/lib/libc/sys/thr_kill.2 index a18e53e61008..3252de13ed8c 100644 --- a/lib/libc/sys/thr_kill.2 +++ b/lib/libc/sys/thr_kill.2 @@ -109,12 +109,12 @@ The current process does not have sufficient privilege to check existence or send a signal to the specified process. .El .Sh SEE ALSO +.Xr _umtx_op 2 , .Xr kill 2 , .Xr thr_exit 2 , .Xr thr_new 2 , .Xr thr_self 2 , .Xr thr_set_name 2 , -.Xr _umtx_op 2 , .Xr pthread_kill 3 , .Xr signal 3 .Sh STANDARDS diff --git a/lib/libc/x86/sys/pkru.3 b/lib/libc/x86/sys/pkru.3 index 2bcb6a64baaa..7b5ceb025d62 100644 --- a/lib/libc/x86/sys/pkru.3 +++ b/lib/libc/x86/sys/pkru.3 @@ -195,7 +195,7 @@ and the range already has defined protection keys. .Xr mmap 2 , .Xr mprotect 2 , .Xr munmap 2 , -.Xr sysarch 2 . +.Xr sysarch 2 .Sh STANDARDS The .Nm diff --git a/lib/libjail/jail.3 b/lib/libjail/jail.3 index 3c3c24d75dc4..820e378eb625 100644 --- a/lib/libjail/jail.3 +++ b/lib/libjail/jail.3 @@ -270,8 +270,8 @@ A parameter is of an unknown type. .El .Sh SEE ALSO .Xr jail 2 , -.Xr jail 3lua , .Xr sysctl 3 , +.Xr jail 3lua , .Xr jail 8 .Sh HISTORY The diff --git a/lib/libpam/modules/pam_chroot/pam_chroot.8 b/lib/libpam/modules/pam_chroot/pam_chroot.8 index e65c513b7b77..1f614264ba8e 100644 --- a/lib/libpam/modules/pam_chroot/pam_chroot.8 +++ b/lib/libpam/modules/pam_chroot/pam_chroot.8 @@ -78,8 +78,8 @@ Specify the chroot directory to use if one could not be derived from the user's home directory. .El .Sh SEE ALSO -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam 3 , +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_deny/pam_deny.8 b/lib/libpam/modules/pam_deny/pam_deny.8 index 530bae05c1f3..5d70bde200d9 100644 --- a/lib/libpam/modules/pam_deny/pam_deny.8 +++ b/lib/libpam/modules/pam_deny/pam_deny.8 @@ -73,6 +73,6 @@ reasons why the user's authentication attempt was declined. .El .Sh SEE ALSO +.Xr pam 3 , .Xr syslog 3 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam.conf 5 diff --git a/lib/libpam/modules/pam_echo/pam_echo.8 b/lib/libpam/modules/pam_echo/pam_echo.8 index c38d4d8cee55..19c083917bbf 100644 --- a/lib/libpam/modules/pam_echo/pam_echo.8 +++ b/lib/libpam/modules/pam_echo/pam_echo.8 @@ -77,8 +77,8 @@ expands to the character following the .Cm % character. .Sh SEE ALSO -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam 3 , +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_exec/pam_exec.8 b/lib/libpam/modules/pam_exec/pam_exec.8 index c77162955730..be5666003557 100644 --- a/lib/libpam/modules/pam_exec/pam_exec.8 +++ b/lib/libpam/modules/pam_exec/pam_exec.8 @@ -148,15 +148,15 @@ Each valid codes numerical value is available as an environment variable etc). This is useful in shell scripts for instance. .Sh SEE ALSO -.Xr pam_get_item 3 , -.Xr pam.conf 5 , .Xr pam 3 , +.Xr pam_get_item 3 , .Xr pam_sm_acct_mgmt 3 , .Xr pam_sm_authenticate 3 , .Xr pam_sm_chauthtok 3 , .Xr pam_sm_close_session 3 , .Xr pam_sm_open_session 3 , -.Xr pam_sm_setcred 3 +.Xr pam_sm_setcred 3 , +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_ftpusers/pam_ftpusers.8 b/lib/libpam/modules/pam_ftpusers/pam_ftpusers.8 index a5c810fd2de5..d5a0f0f1fd2e 100644 --- a/lib/libpam/modules/pam_ftpusers/pam_ftpusers.8 +++ b/lib/libpam/modules/pam_ftpusers/pam_ftpusers.8 @@ -82,9 +82,9 @@ will succeed if and only if the user is not listed in .Pa /etc/ftpusers . .El .Sh SEE ALSO +.Xr pam 3 , .Xr ftpusers 5 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_group/pam_group.8 b/lib/libpam/modules/pam_group/pam_group.8 index ed96d45db503..315aaa6cc267 100644 --- a/lib/libpam/modules/pam_group/pam_group.8 +++ b/lib/libpam/modules/pam_group/pam_group.8 @@ -86,8 +86,8 @@ options are mutually exclusive, and that .Nm will fail if both are specified. .Sh SEE ALSO -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam 3 , +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_guest/pam_guest.8 b/lib/libpam/modules/pam_guest/pam_guest.8 index 541fd299ba8b..c626187d5b19 100644 --- a/lib/libpam/modules/pam_guest/pam_guest.8 +++ b/lib/libpam/modules/pam_guest/pam_guest.8 @@ -80,10 +80,10 @@ password. Requires the guest user to type in the guest account name as password. .El .Sh SEE ALSO +.Xr pam 3 , .Xr pam_get_item 3 , .Xr pam_getenv 3 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_krb5/pam_krb5.8 b/lib/libpam/modules/pam_krb5/pam_krb5.8 index b59fdbdee9c4..7c1770961272 100644 --- a/lib/libpam/modules/pam_krb5/pam_krb5.8 +++ b/lib/libpam/modules/pam_krb5/pam_krb5.8 @@ -222,9 +222,9 @@ file containing Kerberos principals that are allowed access. .Sh SEE ALSO .Xr kdestroy 1 , .Xr passwd 1 , +.Xr pam 3 , .Xr syslog 3 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam.conf 5 .Sh NOTES Applications should not call .Fn pam_authenticate diff --git a/lib/libpam/modules/pam_ksu/pam_ksu.8 b/lib/libpam/modules/pam_ksu/pam_ksu.8 index 36d6936423b1..ace570ea5b5b 100644 --- a/lib/libpam/modules/pam_ksu/pam_ksu.8 +++ b/lib/libpam/modules/pam_ksu/pam_ksu.8 @@ -115,6 +115,6 @@ the user is prompted for another password. .El .Sh SEE ALSO .Xr su 1 , +.Xr pam 3 , .Xr syslog 3 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam.conf 5 diff --git a/lib/libpam/modules/pam_lastlog/pam_lastlog.8 b/lib/libpam/modules/pam_lastlog/pam_lastlog.8 index 6e5ba8770ada..e924016151fa 100644 --- a/lib/libpam/modules/pam_lastlog/pam_lastlog.8 +++ b/lib/libpam/modules/pam_lastlog/pam_lastlog.8 @@ -84,11 +84,11 @@ Ignore I/O failures. .Xr last 1 , .Xr w 1 , .Xr getutxent 3 , +.Xr pam 3 , .Xr ulog_login 3 , .Xr ulog_logout 3 , .Xr pam.conf 5 , -.Xr lastlogin 8 , -.Xr pam 3 +.Xr lastlogin 8 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_nologin/pam_nologin.8 b/lib/libpam/modules/pam_nologin/pam_nologin.8 index 30f87a65b63e..ff49749e50f1 100644 --- a/lib/libpam/modules/pam_nologin/pam_nologin.8 +++ b/lib/libpam/modules/pam_nologin/pam_nologin.8 @@ -81,8 +81,8 @@ reasons why the user's login attempt was declined. .El .Sh SEE ALSO +.Xr pam 3 , .Xr syslog 3 , .Xr login.conf 5 , .Xr nologin 5 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam.conf 5 diff --git a/lib/libpam/modules/pam_passwdqc/pam_passwdqc.8 b/lib/libpam/modules/pam_passwdqc/pam_passwdqc.8 index f2ec1747d1f8..755e93520427 100644 --- a/lib/libpam/modules/pam_passwdqc/pam_passwdqc.8 +++ b/lib/libpam/modules/pam_passwdqc/pam_passwdqc.8 @@ -248,8 +248,8 @@ is that the former is incompatible with .El .Sh SEE ALSO .Xr getpwnam 3 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam 3 , +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_permit/pam_permit.8 b/lib/libpam/modules/pam_permit/pam_permit.8 index f0b2f5527066..270eaee8361d 100644 --- a/lib/libpam/modules/pam_permit/pam_permit.8 +++ b/lib/libpam/modules/pam_permit/pam_permit.8 @@ -68,6 +68,6 @@ debugging information at level. .El .Sh SEE ALSO +.Xr pam 3 , .Xr syslog 3 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam.conf 5 diff --git a/lib/libpam/modules/pam_radius/pam_radius.8 b/lib/libpam/modules/pam_radius/pam_radius.8 index 6b2d1ef1fa55..abc916dcfff6 100644 --- a/lib/libpam/modules/pam_radius/pam_radius.8 +++ b/lib/libpam/modules/pam_radius/pam_radius.8 @@ -123,9 +123,9 @@ The standard RADIUS client configuration file for .Nm .El .Sh SEE ALSO +.Xr pam 3 , .Xr passwd 5 , -.Xr radius.conf 5 , -.Xr pam 3 +.Xr radius.conf 5 .Sh HISTORY The .Nm diff --git a/lib/libpam/modules/pam_rhosts/pam_rhosts.8 b/lib/libpam/modules/pam_rhosts/pam_rhosts.8 index ea005738840c..1f9716b9a0ca 100644 --- a/lib/libpam/modules/pam_rhosts/pam_rhosts.8 +++ b/lib/libpam/modules/pam_rhosts/pam_rhosts.8 @@ -78,9 +78,9 @@ was declined. do not automatically fail if the target user's UID is 0. .El .Sh SEE ALSO +.Xr pam 3 , .Xr hosts.equiv 5 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_rootok/pam_rootok.8 b/lib/libpam/modules/pam_rootok/pam_rootok.8 index d1ab8226e2ca..fd0a6dd3791f 100644 --- a/lib/libpam/modules/pam_rootok/pam_rootok.8 +++ b/lib/libpam/modules/pam_rootok/pam_rootok.8 @@ -69,5 +69,5 @@ authentication attempt was declined. .El .Sh SEE ALSO .Xr getuid 2 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam 3 , +.Xr pam.conf 5 diff --git a/lib/libpam/modules/pam_securetty/pam_securetty.8 b/lib/libpam/modules/pam_securetty/pam_securetty.8 index b19979000978..582389cf101d 100644 --- a/lib/libpam/modules/pam_securetty/pam_securetty.8 +++ b/lib/libpam/modules/pam_securetty/pam_securetty.8 @@ -84,7 +84,7 @@ authentication attempt was declined. .El .Sh SEE ALSO .Xr getttynam 3 , +.Xr pam 3 , .Xr syslog 3 , .Xr pam.conf 5 , -.Xr ttys 5 , -.Xr pam 3 +.Xr ttys 5 diff --git a/lib/libpam/modules/pam_self/pam_self.8 b/lib/libpam/modules/pam_self/pam_self.8 index c3623998f0be..f875d671286b 100644 --- a/lib/libpam/modules/pam_self/pam_self.8 +++ b/lib/libpam/modules/pam_self/pam_self.8 @@ -80,8 +80,8 @@ do not automatically fail if the current real user ID is 0. .El .Sh SEE ALSO .Xr getuid 2 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam 3 , +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_ssh/pam_ssh.8 b/lib/libpam/modules/pam_ssh/pam_ssh.8 index e63930eb5340..3ef44d8b687b 100644 --- a/lib/libpam/modules/pam_ssh/pam_ssh.8 +++ b/lib/libpam/modules/pam_ssh/pam_ssh.8 @@ -138,8 +138,8 @@ SSH2 Ed25519 key .El .Sh SEE ALSO .Xr ssh-agent 1 , -.Xr pam.conf 5 , -.Xr pam 3 +.Xr pam 3 , +.Xr pam.conf 5 .Sh AUTHORS The .Nm diff --git a/lib/libpam/modules/pam_unix/pam_unix.8 b/lib/libpam/modules/pam_unix/pam_unix.8 index 170cf65f34db..5c2ae5cf52e2 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.8 +++ b/lib/libpam/modules/pam_unix/pam_unix.8 @@ -201,10 +201,10 @@ password database. .Xr getlogin 2 , .Xr crypt 3 , .Xr getpwent 3 , +.Xr pam 3 , .Xr syslog 3 , .Xr nsswitch.conf 5 , .Xr passwd 5 , -.Xr pam 3 , .Xr pw 8 , .Xr yp 8 .Sh BUGS diff --git a/lib/libsysdecode/sysdecode_sctp_sinfo_flags.3 b/lib/libsysdecode/sysdecode_sctp_sinfo_flags.3 index e5995bff8329..4eb25187f0d0 100644 --- a/lib/libsysdecode/sysdecode_sctp_sinfo_flags.3 +++ b/lib/libsysdecode/sysdecode_sctp_sinfo_flags.3 @@ -46,5 +46,5 @@ to the stream .Fa fp . In particular, the embedded PR-SCTP policies are handled. .Sh SEE ALSO -.Xr sysdecode 3 +.Xr sysdecode 3 , .Xr sysdecode_sctp_pr_policy 3 diff --git a/lib/libthr/libthr.3 b/lib/libthr/libthr.3 index 7d0c7669654a..6d33f4c378ce 100644 --- a/lib/libthr/libthr.3 +++ b/lib/libthr/libthr.3 @@ -325,15 +325,15 @@ anyway. .Sh SEE ALSO .Xr ktrace 1 , .Xr ld-elf.so.1 1 , -.Xr getrlimit 2 , +.Xr _umtx_op 2 , .Xr errno 2 , +.Xr getrlimit 2 , .Xr thr_exit 2 , .Xr thr_kill 2 , .Xr thr_kill2 2 , .Xr thr_new 2 , .Xr thr_self 2 , .Xr thr_set_name 2 , -.Xr _umtx_op 2 , .Xr dlclose 3 , .Xr dlopen 3 , .Xr getenv 3 , diff --git a/lib/libveriexec/veriexec.3 b/lib/libveriexec/veriexec.3 index 8fd5822c8067..b367fc5ea40f 100644 --- a/lib/libveriexec/veriexec.3 +++ b/lib/libveriexec/veriexec.3 @@ -59,5 +59,5 @@ If the signature does not match, .Va errno is set to the reason for the mismatch. .Sh SEE ALSO -.Xr mac_veriexec 4 +.Xr mac_veriexec 4 , .Xr veriexec 4 diff --git a/sbin/comcontrol/comcontrol.8 b/sbin/comcontrol/comcontrol.8 index 46c7f987d774..e050452498b9 100644 --- a/sbin/comcontrol/comcontrol.8 +++ b/sbin/comcontrol/comcontrol.8 @@ -52,7 +52,7 @@ dialin devices, hardwired terminals dialout devices .El .Sh SEE ALSO -.Xr stty 1 , +.Xr stty 1 .Sh HISTORY Originally part of cgd's com package patches, version 0.2.1, to .Bx 386 0.1 . diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8 index 0dc93cb8b78d..4ac6e56879b4 100644 --- a/sbin/newfs/newfs.8 +++ b/sbin/newfs/newfs.8 @@ -352,13 +352,13 @@ than the historical defaults This large fragment size may lead to much wasted space on file systems that contain many small files. .Sh SEE ALSO -.Xr fdformat 8 , .Xr geom 4 , .Xr disktab 5 , .Xr fs 5 , .Xr camcontrol 8 , .Xr dump 8 , .Xr dumpfs 8 , +.Xr fdformat 8 , .Xr fsck 8 , .Xr gjournal 8 , .Xr gpart 8 , diff --git a/sbin/umount/umount.8 b/sbin/umount/umount.8 index 086980151d60..2c26ca868dae 100644 --- a/sbin/umount/umount.8 +++ b/sbin/umount/umount.8 @@ -187,8 +187,8 @@ file system table .Xr unmount 2 , .Xr fstab 5 , .Xr autounmountd 8 , -.Xr mount 8 , -.Xr mdconfig 8 +.Xr mdconfig 8 , +.Xr mount 8 .Sh HISTORY A .Nm diff --git a/share/man/man4/atopcase.4 b/share/man/man4/atopcase.4 index fc93b7094466..830c67f872a4 100644 --- a/share/man/man4/atopcase.4 +++ b/share/man/man4/atopcase.4 @@ -101,9 +101,9 @@ device node. .El .Sh SEE ALSO .Xr acpi 4 , +.Xr loader.conf 5 , .Xr backlight 8 , -.Xr loader 8 , -.Xr loader.conf 5 . +.Xr loader 8 .Sh HISTORY The .Nm diff --git a/share/man/man4/cd.4 b/share/man/man4/cd.4 index 7c3fa6ed9850..0260d5ec5a8f 100644 --- a/share/man/man4/cd.4 +++ b/share/man/man4/cd.4 @@ -336,6 +336,7 @@ devices None. .Sh SEE ALSO .Xr cam 4 , +.Xr cd9660 4 , .Xr da 4 , .Xr cd9660 5 , .Xr disklabel 8 , diff --git a/share/man/man4/cdce.4 b/share/man/man4/cdce.4 index 9d842e475d85..87a6f5da4b08 100644 --- a/share/man/man4/cdce.4 +++ b/share/man/man4/cdce.4 @@ -140,10 +140,10 @@ is running low on mbufs. .Xr intro 4 , .Xr ipheth 4 , .Xr netintro 4 , +.Xr u3g 4 , +.Xr ucom 4 , .Xr urndis 4 , .Xr usb 4 , -.Xr ucom 4 , -.Xr u3g 4 , .Xr ifconfig 8 .Rs .%T "Universal Serial Bus Class Definitions for Communication Devices" diff --git a/share/man/man4/dummynet.4 b/share/man/man4/dummynet.4 index 81b1b33efb6e..ad82cb80011d 100644 --- a/share/man/man4/dummynet.4 +++ b/share/man/man4/dummynet.4 @@ -59,9 +59,9 @@ pipes. .Xr setsockopt 2 , .Xr if_bridge 4 , .Xr ip 4 , -.Xr ipfw 8 , -.Xr dnctl 8 , .Xr pf.conf 5 , +.Xr dnctl 8 , +.Xr ipfw 8 , .Xr sysctl 8 .Sh HISTORY The diff --git a/share/man/man4/ftgpio.4 b/share/man/man4/ftgpio.4 index e31457673fa5..7a5562841732 100644 --- a/share/man/man4/ftgpio.4 +++ b/share/man/man4/ftgpio.4 @@ -40,8 +40,8 @@ is a driver for the GPIO controller found on Fintek Super I/O chips. .Xr gpio 3 , .Xr gpio 4 , .Xr gpioled 4 , -.Xr gpioctl 8 .Xr superio 4 , +.Xr gpioctl 8 .Sh HISTORY The .Nm diff --git a/share/man/man4/ipfirewall.4 b/share/man/man4/ipfirewall.4 index bfc571bcb595..691ed3d331c0 100644 --- a/share/man/man4/ipfirewall.4 +++ b/share/man/man4/ipfirewall.4 @@ -149,11 +149,11 @@ man page for a complete description of the capabilities and how to use it. .Sh SEE ALSO .Xr setsockopt 2 , +.Xr libalias 3 , .Xr divert 4 , .Xr ip 4 , .Xr ip6 4 , .Xr ipfw 8 , -.Xr libalias 3 , .Xr natd 8 , .Xr sysctl 8 , .Xr syslogd 8 , diff --git a/share/man/man4/ipsec.4 b/share/man/man4/ipsec.4 index 952d7b925388..96a10dfb7700 100644 --- a/share/man/man4/ipsec.4 +++ b/share/man/man4/ipsec.4 @@ -333,8 +333,8 @@ routines from looking into the IP payload. .Xr ipsec_set_policy 3 , .Xr crypto 4 , .Xr enc 4 , -.Xr if_ipsec 4 , .Xr icmp6 4 , +.Xr if_ipsec 4 , .Xr intro 4 , .Xr ip6 4 , .Xr setkey 8 , diff --git a/share/man/man4/mac_do.4 b/share/man/man4/mac_do.4 index ce9f8cf25a4a..aa84a71b4953 100644 --- a/share/man/man4/mac_do.4 +++ b/share/man/man4/mac_do.4 @@ -74,5 +74,5 @@ The following rule: means the user with the uid 1001 can execute processes as user with uid 80, all the users which belongs to the group gid 0 can execute processes as any user. .Sh SEE ALSO -.Xr mac 4 , -.Xr mdo 1 +.Xr mdo 1 , +.Xr mac 4 diff --git a/share/man/man4/man4.aarch64/rk_gpio.4 b/share/man/man4/man4.aarch64/rk_gpio.4 index 69bcb1671f85..b5648662cf5e 100644 --- a/share/man/man4/man4.aarch64/rk_gpio.4 +++ b/share/man/man4/man4.aarch64/rk_gpio.4 @@ -47,7 +47,7 @@ rockchip,gpio-bank .El .Sh SEE ALSO .Xr gpiobus 4 , -.Xr gpioctl 8 , +.Xr gpioctl 8 .Sh HISTORY The .Nm diff --git a/share/man/man4/man4.aarch64/rk_i2c.4 b/share/man/man4/man4.aarch64/rk_i2c.4 index f30b510e7655..be1a0fab943e 100644 --- a/share/man/man4/man4.aarch64/rk_i2c.4 +++ b/share/man/man4/man4.aarch64/rk_i2c.4 @@ -49,7 +49,7 @@ rockchip,rk3328-i2c .El .Sh SEE ALSO .Xr iic 4 , -.Xr iicbus 4 , +.Xr iicbus 4 .Sh HISTORY The .Nm diff --git a/share/man/man4/man4.aarch64/rk_pinctrl.4 b/share/man/man4/man4.aarch64/rk_pinctrl.4 index c196c00d52b7..519b3e793cd1 100644 --- a/share/man/man4/man4.aarch64/rk_pinctrl.4 +++ b/share/man/man4/man4.aarch64/rk_pinctrl.4 @@ -46,7 +46,7 @@ compatible strings : rockchip,rk3328-pinctrl .El .Sh SEE ALSO -.Xr fdt_pinctrl 4 , +.Xr fdt_pinctrl 4 .Sh HISTORY The .Nm diff --git a/share/man/man4/man4.arm/imx6_ahci.4 b/share/man/man4/man4.arm/imx6_ahci.4 index cfe8a87deb6f..9979cef50d79 100644 --- a/share/man/man4/man4.arm/imx6_ahci.4 +++ b/share/man/man4/man4.arm/imx6_ahci.4 @@ -55,7 +55,7 @@ data and marshall resources for the standard driver. .Sh SEE ALSO .Xr ahci 4 , -.Xr fdt 4 , +.Xr fdt 4 .Sh HISTORY The .Nm diff --git a/share/man/man4/mpi3mr.4 b/share/man/man4/mpi3mr.4 index 981979e37187..f07ce13d2f23 100644 --- a/share/man/man4/mpi3mr.4 +++ b/share/man/man4/mpi3mr.4 @@ -64,7 +64,7 @@ Broadcom Ltd. 9600-8i8e 24G PCIe 4.0 Tri-Mode RAID Adapters .Xr mpr 4 , .Xr pci 4 , .Xr sa 4 , -.Xr scsi 4 . +.Xr scsi 4 .Sh HISTORY The .Nm diff --git a/share/man/man4/netmap.4 b/share/man/man4/netmap.4 index 5a12f8f32465..6be0c8662d59 100644 --- a/share/man/man4/netmap.4 +++ b/share/man/man4/netmap.4 @@ -1123,10 +1123,10 @@ with the network card or the host. .Sh SEE ALSO .Xr vale 4 , .Xr bridge 8 , -.Xr valectl 8 , .Xr lb 8 , .Xr nmreplay 8 , -.Xr pkt-gen 8 +.Xr pkt-gen 8 , +.Xr valectl 8 .Pp .Pa http://info.iet.unipi.it/~luigi/netmap/ .Pp diff --git a/share/man/man4/ng_nat.4 b/share/man/man4/ng_nat.4 index 10615b3b387d..53cd841a7392 100644 --- a/share/man/man4/ng_nat.4 +++ b/share/man/man4/ng_nat.4 @@ -396,8 +396,8 @@ SEQ .Xr libalias 3 , .Xr ng_ipfw 4 , .Xr natd 8 , -.Xr ngctl 8 , -.Xr ng_ether 8 +.Xr ng_ether 8 , +.Xr ngctl 8 .Sh HISTORY The .Nm diff --git a/share/man/man4/ng_pppoe.4 b/share/man/man4/ng_pppoe.4 index 346b2bfbe279..5b5f0dd64de2 100644 --- a/share/man/man4/ng_pppoe.4 +++ b/share/man/man4/ng_pppoe.4 @@ -565,9 +565,9 @@ setup(char *ethername, char *service, char *sessname, .Xr ng_ether 4 , .Xr ng_ppp 4 , .Xr ng_socket 4 , +.Xr vlan 4 , .Xr ngctl 8 , -.Xr ppp 8 , -.Xr vlan 4 +.Xr ppp 8 .Rs .%A L. Mamakos .%A K. Lidl diff --git a/share/man/man4/procdesc.4 b/share/man/man4/procdesc.4 index d0b99e5cbe07..f1f3757aa836 100644 --- a/share/man/man4/procdesc.4 +++ b/share/man/man4/procdesc.4 @@ -58,10 +58,10 @@ Given a process descriptor, it is possible to query its conventional PID using .Sh SEE ALSO .Xr fork 2 , .Xr kill 2 , +.Xr kqueue 2 , .Xr pdfork 2 , .Xr pdgetpid 2 , .Xr pdkill 2 , -.Xr kqueue 2 , .Xr wait4 2 , .Xr capsicum 4 .Sh HISTORY diff --git a/share/man/man4/virtio_gpu.4 b/share/man/man4/virtio_gpu.4 index bb34ec419df6..f8d48faa05f0 100644 --- a/share/man/man4/virtio_gpu.4 +++ b/share/man/man4/virtio_gpu.4 @@ -46,7 +46,7 @@ device driver provides support for VirtIO gpu devices to create a .Xr vt 4 console. .Sh SEE ALSO -.Xr virtio 4 +.Xr virtio 4 , .Xr vt 4 .Sh HISTORY The diff --git a/share/man/man5/lindebugfs.5 b/share/man/man5/lindebugfs.5 index 8e385be7d743..4e823baff132 100644 --- a/share/man/man5/lindebugfs.5 +++ b/share/man/man5/lindebugfs.5 @@ -81,7 +81,7 @@ file system on .Xr linsysfs 5 , .Xr pseudofs 9 , .Xr linux 4 , -.Xr mount 1 +.Xr pseudofs 9 .Sh HISTORY The .Nm diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5 index 3193c18760c8..7e2db95fd961 100644 --- a/share/man/man5/pf.conf.5 +++ b/share/man/man5/pf.conf.5 @@ -3407,8 +3407,8 @@ Service name database. .Xr ip6 4 , .Xr pf 4 , .Xr pfsync 4 , -.Xr tcp 4 , .Xr sctp 4 , +.Xr tcp 4 , .Xr udp 4 , .Xr hosts 5 , .Xr pf.os 5 , diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8 index 2dd46cf50c2b..844ba0356692 100644 --- a/share/man/man8/rc.subr.8 +++ b/share/man/man8/rc.subr.8 @@ -945,6 +945,7 @@ file resides in .El .Sh SEE ALSO .Xr rc.conf 5 , +.Xr debug.sh 8 , .Xr rc 8 .Sh HISTORY The diff --git a/share/man/man9/VOP_SETLABEL.9 b/share/man/man9/VOP_SETLABEL.9 index e5cf99bebd86..4ab7dd9beaba 100644 --- a/share/man/man9/VOP_SETLABEL.9 +++ b/share/man/man9/VOP_SETLABEL.9 @@ -113,13 +113,13 @@ Depending on the underlying implementation of .Fn VOP_SETLABEL , other errors may also be possible. .Sh SEE ALSO +.Xr mac 9 , +.Xr mount 9 , +.Xr vnode 9 , .Xr VOP_CLOSEEXTATTR 9 , .Xr VOP_OPENEXTATTR 9 , .Xr VOP_READEXTATTR 9 , -.Xr VOP_WRITEXTATTR 9 , -.Xr mac 9 , -.Xr mount 9 , -.Xr vnode 9 +.Xr VOP_WRITEXTATTR 9 .Sh AUTHORS This manual page was written by .An Robert Watson . diff --git a/share/man/man9/cr_bsd_visible.9 b/share/man/man9/cr_bsd_visible.9 index f2d42f3835dc..d16f4bb6dd8f 100644 --- a/share/man/man9/cr_bsd_visible.9 +++ b/share/man/man9/cr_bsd_visible.9 @@ -107,11 +107,11 @@ and are not in the same jail. .El .Sh SEE ALSO -.Xr cr_canseeotheruids 9 , -.Xr cr_canseeothergids 9 , +.Xr cr_cansee 9 , .Xr cr_canseejailproc 9 , -.Xr priv_check_cred 9 , -.Xr cr_cansee 9 +.Xr cr_canseeothergids 9 , +.Xr cr_canseeotheruids 9 , +.Xr priv_check_cred 9 *** 228 LINES SKIPPED *** From nobody Mon Nov 4 16:16:50 2024 X-Original-To: dev-commits-src-all@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 4XhxS25kMjz5cGp5; Mon, 04 Nov 2024 16:16:50 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxS22c5Vz4r42; Mon, 4 Nov 2024 16:16:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737010; 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=TB/nPcRpeAVBSn82kA5oXQ/i3aFsjE1w5MDcr3O3keQ=; b=Uhen7amtdsYZB6QMkF2/2GDrrnpN8cy3KQv2bWn1YmBHW4wkr1sM6yW/fBdERSPxZ+HMHH qnBPogoriXdY1Ie6aQp3zGRP8bp03D3bZ6myVFxnRHh3gafz9MYE4/X+53TKghpYLsWdwD SHQaV25mBCvlwORF0UV7YL/qtNemNxiRAIHVo3gcMqLX4ml8qIMM9G4L4qyorY1vanV9js T5c/ZLTkYktpX/wd4UexUYkdpISnfoxNU+B1fJYbRmbIBkrxqzWME2YF0Ad9Brc1/81M2/ 6Hum0202LI8U6H9u7sekgNmJy2h7XfvPuvmTwIx/7vNkOv5wBR5QH5DOZ5K7eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737010; 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=TB/nPcRpeAVBSn82kA5oXQ/i3aFsjE1w5MDcr3O3keQ=; b=ykmu031XsNpzqJVaZ7TgbqtX7tV2aFC08J8AZ34uTHyakg6lBBQgCIpLtcrZM3T89pS6C1 1oHcsUy+avVRF19FjiFeRtutfC4HsdVVi+gfOa49umrDQvUoYW7vvrcJuZJ0Qc3o/dWbRL WnJi1HS+KaL5Mfle2ouApu0P8y9QUskndyyUfzG02DSCJY//LkdWX793w+DjqbJUIH6Cr9 8TQtJqc9mW4/O7GouybNtH6ZOpBGI43ctLoYQJU5jMwGxMKQuWQgjFYoBDRBNttQeN/zRk H8yhuhb71+w/3kS2FJ9hts9JdJuoCT6+kJ049kTOSNtXp2ZdyQrseRQXlh6g2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737010; a=rsa-sha256; cv=none; b=xO5m5mVXiEeIX+H+OmJiP2VW2goZmgSnEBGPSJuR51GnOuCqDmWX3YZ4ZsTgS2RmvW211H YN++Ce/w26CLn8rBON5fzrGis4wyhRbsQ4r0Uk1dvwqMRe/AUxYZrZ1haaneGVfoqPpObk 5Pp/2QDizfT7GnvSzlJwF9z6JbDf6NY5P06MAVEN29fUx0DfEci4hx/1DOJa57yscEVcsg gzXuxLGLiEcQVFXgjoaJE3dz9zwAVXdodoZ7ympKOsizWYscU4d9mVeWl4JQD0LtQsjesl ZEVmRr4+0VFcIL8XjtRRv0exXJAYZ+eJ1pktsG+UUK/lO2dFjRfbPv465L18Cg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxS211PKzgcL; Mon, 4 Nov 2024 16:16:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGoW7010792; Mon, 4 Nov 2024 16:16:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGoSN010789; Mon, 4 Nov 2024 16:16:50 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:50 GMT Message-Id: <202411041616.4A4GGoSN010789@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: e40097e01a08 - stable/14 - manuals: Fix some "missing section argument" List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e40097e01a08db646f409cec81d04e8c5b92293e Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=e40097e01a08db646f409cec81d04e8c5b92293e commit e40097e01a08db646f409cec81d04e8c5b92293e Author: Graham Percival AuthorDate: 2024-10-14 02:24:00 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:15:01 +0000 manuals: Fix some "missing section argument" These were reported by `mandoc -T lint ...` as warnings. Signed-off-by: Graham Percival Reviewed by: mhorne, Alexander Ziaee Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1467 (cherry picked from commit a51584a2d2fb3731a68eaf93b59e14227e572427) --- lib/libdevctl/devctl.3 | 2 +- lib/libthr/libthr.3 | 2 +- share/man/man4/disk.4 | 2 +- share/man/man4/ng_iface.4 | 4 ++-- share/man/man4/ng_nat.4 | 2 +- share/man/man4/qat.4 | 2 +- share/man/man4/watchdog.4 | 8 ++++---- share/man/man9/VOP_ADVISE.9 | 2 +- share/man/man9/VOP_ALLOCATE.9 | 2 +- share/man/man9/osd.9 | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/libdevctl/devctl.3 b/lib/libdevctl/devctl.3 index a6823a0b3c6a..c8a4704825c2 100644 --- a/lib/libdevctl/devctl.3 +++ b/lib/libdevctl/devctl.3 @@ -209,7 +209,7 @@ method to construct the path. The .Fa buffer pointer is updated with an allocated buffer that must be freed with -.Xr free . +.Xr free 3 . .Pp The .Fn devctl_freeze diff --git a/lib/libthr/libthr.3 b/lib/libthr/libthr.3 index 6d33f4c378ce..35a7467eec14 100644 --- a/lib/libthr/libthr.3 +++ b/lib/libthr/libthr.3 @@ -217,7 +217,7 @@ recycle it at any moment, making this sysctl less useful than it sounds. .It Dv kern.ipc.umtx_max_robust The maximal number of robust mutexes allowed for one thread. The kernel will not unlock more mutexes than specified, see -.Xr _umtx_op +.Xr _umtx_op 2 for more details. The default value is large enough for most useful applications. .It Dv debug.umtx.robust_faults_verbose diff --git a/share/man/man4/disk.4 b/share/man/man4/disk.4 index 6451ff0e7370..dfe0059263ee 100644 --- a/share/man/man4/disk.4 +++ b/share/man/man4/disk.4 @@ -57,7 +57,7 @@ Operations to block devices such as .Xr lseek 2 , .Xr read 2 , and -.Xr write +.Xr write 2 may only be performed at file offsets that are integral multiple of this size. .It Dv DIOCGMEDIASIZE diff --git a/share/man/man4/ng_iface.4 b/share/man/man4/ng_iface.4 index 0579028b4c74..e2dee22b67b9 100644 --- a/share/man/man4/ng_iface.4 +++ b/share/man/man4/ng_iface.4 @@ -153,8 +153,8 @@ to the desired level of nesting. .Xr netgraph 4 , .Xr ng_cisco 4 , .Xr ifconfig 8 , -.Xr ngctl 8 -.Xr sysctl +.Xr ngctl 8 , +.Xr sysctl 8 .Sh HISTORY The .Nm iface diff --git a/share/man/man4/ng_nat.4 b/share/man/man4/ng_nat.4 index 53cd841a7392..bf9ec4052733 100644 --- a/share/man/man4/ng_nat.4 +++ b/share/man/man4/ng_nat.4 @@ -265,7 +265,7 @@ In case of .Nm failed to retrieve a certain counter from its -.Xr libalias +.Xr libalias 3 instance, the corresponding field is returned as .Va UINT32_MAX . .It Dv NGM_NAT_SET_DLT Pq Ic setdlt diff --git a/share/man/man4/qat.4 b/share/man/man4/qat.4 index b0fa0b0cbc92..03d1e6e956e7 100644 --- a/share/man/man4/qat.4 +++ b/share/man/man4/qat.4 @@ -105,7 +105,7 @@ Following variables may be used to reconfigure the QAT device.\& For configuration persistence those variables may be set before loading the driver, either via .Xr kenv 1 or -.Xr loader.conf(5). +.Xr loader.conf 5 . The device specific configuration options are prefixed with .Va dev.qat.X\&. where X is the device number. diff --git a/share/man/man4/watchdog.4 b/share/man/man4/watchdog.4 index f711d4d176d1..7663d4831464 100644 --- a/share/man/man4/watchdog.4 +++ b/share/man/man4/watchdog.4 @@ -42,7 +42,7 @@ supports several optional .Xr ioctl 2 calls for configuration, and responds to a single operational -.Xr ioctl +.Xr ioctl 2 call, .Dv WDIOCPATPAT . It takes a single argument which represents a timeout value specified as a @@ -84,7 +84,7 @@ The watchdog might still be armed! .Pp The optional configuration -.Xr ioctl +.Xr ioctl 2 commands are listed here, along with the type of the parameter used. Examples of their use can be found in .Xr watchdogd 8 . @@ -127,7 +127,7 @@ printf(9) .Sh RETURN VALUES The .Dv WDIOCPATPAT -.Xr ioctl +.Xr ioctl 2 returns zero on success and non-zero on failure. .Bl -tag -width Er .It Bq Er EOPNOTSUPP @@ -141,7 +141,7 @@ Invalid flag combination passed. .El .Pp The configuration -.Xr ioctl +.Xr ioctl 2 operations return zero on success and non-zero on failure. .Sh EXAMPLES .Bd -literal -offset indent diff --git a/share/man/man9/VOP_ADVISE.9 b/share/man/man9/VOP_ADVISE.9 index 3decc0c2eac8..c6e8791615ce 100644 --- a/share/man/man9/VOP_ADVISE.9 +++ b/share/man/man9/VOP_ADVISE.9 @@ -39,7 +39,7 @@ .Sh DESCRIPTION This call applies advice for a range of a file's data. It is used to implement the -.Xr posix_fadvise +.Xr posix_fadvise 2 system call. .Pp Its arguments are: diff --git a/share/man/man9/VOP_ALLOCATE.9 b/share/man/man9/VOP_ALLOCATE.9 index fce2ea183273..4fcbe773f236 100644 --- a/share/man/man9/VOP_ALLOCATE.9 +++ b/share/man/man9/VOP_ALLOCATE.9 @@ -45,7 +45,7 @@ .Sh DESCRIPTION This call allocates storage for a range of offsets in a file. It is used to implement the -.Xr posix_fallocate +.Xr posix_fallocate 2 system call. .Pp Its arguments are: diff --git a/share/man/man9/osd.9 b/share/man/man9/osd.9 index 82f279ef17f4..95547f5211c2 100644 --- a/share/man/man9/osd.9 +++ b/share/man/man9/osd.9 @@ -396,7 +396,7 @@ API. .Pp .Fn osd_get only acquires an -.Xr rmlock +.Xr rmlock 9 in read mode, therefore making it safe to use in the majority of contexts within the kernel including most fast paths. .Sh RETURN VALUES From nobody Mon Nov 4 16:16:51 2024 X-Original-To: dev-commits-src-all@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 4XhxS34lQ9z5cGpG; Mon, 04 Nov 2024 16:16:51 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxS32gw7z4qSm; Mon, 4 Nov 2024 16:16:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737011; 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=Yj+TQOGTvVNtqf+QCFZtxebDzNpXZr6dYpJhDkYoEy0=; b=UX5tqS9T8i0R7zEZKWwAQh2UYTGeO/IOtPF59gMkTPBkoYowNVcEjY68oSmTT8PMR2LC89 XFod362rjHndf3n2tPhBl3kvmUzc3lHSs/P6vTH7aJxPfdrIdnwDNFiydSO8+KdRFT1JwI Avqsq0j0ZiugktCn1/+XQviPCXpqOTZ2yS2NH57JOH777FVrNUqwumnjEmGX360sLe32dr qznxw6z1NmB0iZlQ9YSJv2e9dFEQFx+cD80IZvUgsXNIGpJJ1ieRD3RkXElcbgpnhhmXOc a1bXewXbwqecj6jv9QsuZw82+8Gi94tYseAoqHPIsRGACS8vgvW0WHMdPl6XEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737011; 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=Yj+TQOGTvVNtqf+QCFZtxebDzNpXZr6dYpJhDkYoEy0=; b=rcJE+pPn2W/JnUCoBeIjizVJHF74K4B0fLe7QLAe8jC06pnkC7/atLsyXrAc/jKEpUaoUF iST9TB6vUr1I5bSUHQqXwkyrol6yPdLhRx4F0S7F4ee+11fpVmk3IIVBGVhhJO3IYdWFW3 f2MqaxtQ/PiWNDrEf9HvamVxJRFaeIYr0m6EsGgtnWyXG6zBllbr8kLl8Yb2N3BfoKDP9V TFHd8E8AvDcb33NR+wbxGSAZgaaV5gghzy5bF8ju18ZK1xLyU6weheOqDhVsO6cCJr0FkR QqdhRTw/6qguRvhYvLXyeHUNvTlRYnEYAPIHcrM67wppA0j/EQIIhgsy/L1MOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737011; a=rsa-sha256; cv=none; b=U/8rDFIwj0PI1XDC4Hv1gq9lAKjOjj7/Ss3reL+ulDCSepeUsK3etgP4H+0oNucxzoKoKO g9hyhvmMWZ1F/W2R608byk9qVnvxkvvnwZ7SerAexkY00VG7MPI6cyjdn7SxoPV+2THOVh uNjkn9d7haQgyS3CoaHlUTuX3KQzvO8m8UDl7WnSMugq6BS4VySW67CkJnjplB4nnYTJR1 kXJ2L4NmhXvwZLPk83BqQJDOoy+17SUDKPiUmpNI9w9e446yP+8Y56nPObNAeAwIbKEGhp +JtCgKfh16CUhGG7bJiJCM40cWS12r6jRZGHJIxQrUJxYjw3Um2GuCZhk+YtwA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxS31jf1zgfn; Mon, 4 Nov 2024 16:16:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGpl2010837; Mon, 4 Nov 2024 16:16:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGpZm010834; Mon, 4 Nov 2024 16:16:51 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:51 GMT Message-Id: <202411041616.4A4GGpZm010834@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: ba036fce2573 - stable/14 - thr_kill(2): fix title List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ba036fce257399b328d8c829ad402234d18dd94f Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=ba036fce257399b328d8c829ad402234d18dd94f commit ba036fce257399b328d8c829ad402234d18dd94f Author: Mitchell Horne AuthorDate: 2024-10-15 14:11:28 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:15:11 +0000 thr_kill(2): fix title Mandoc emits a STYLE warning due to the lowercase letters. (cherry picked from commit 23cb03d145292d7a3e6165b4ca74837d497bd3db) --- lib/libc/sys/thr_kill.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/sys/thr_kill.2 b/lib/libc/sys/thr_kill.2 index 3252de13ed8c..63a6e40ef6fc 100644 --- a/lib/libc/sys/thr_kill.2 +++ b/lib/libc/sys/thr_kill.2 @@ -26,7 +26,7 @@ .\" SUCH DAMAGE. .\" .Dd May 5, 2020 -.Dt THR_kill 2 +.Dt THR_KILL 2 .Os .Sh NAME .Nm thr_kill From nobody Mon Nov 4 16:16:52 2024 X-Original-To: dev-commits-src-all@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 4XhxS45XqNz5cGpJ; Mon, 04 Nov 2024 16:16:52 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxS43mvDz4qwL; Mon, 4 Nov 2024 16:16:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737012; 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=ZnAztzACb5il+jbFRqSBdku9kJfGZ5RRLGcWoIxl6/E=; b=pHyS3rAPMJHpYIiSu1BwTfGY0ygxbSdcQ6sjKOx8xP0xGtW0uqO9W6aIuaxOwih6lWOvXx xX/OKZNKaimGIREPrlrk4Wz9ufbPrVeBEbKBMPikCw6fHJiUcpfOHi48/q0VMeCuW4QavI QKdLzS5AH1RjSJUoH0N4pCe6a1eiZo/CZOkyJklk5YXUWDvfPK8QDt7JQDD/UCG6B78IT5 uGmmCsplYIQQF4LsLsohobD5XAqw/lqNynnGUqY4w5P4h1O8YBw0vUXC59UkCUbNd1pzBH riZB3sQjc3ExG5+AOT1p5eePf9aCKHCuMgZUuvOBhrF00i4Wzlno81VmGGxj7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737012; 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=ZnAztzACb5il+jbFRqSBdku9kJfGZ5RRLGcWoIxl6/E=; b=Y1EFpKP4n3tKfUMUR+mllZc+taWVJvbUldxJE890l1tCmLuUrnlfDMZbB9eShWVEbvcWEA 51ZguKM62jEInAuO/8gjiZ9o3QjUyWdTT7XwTpH7Fs7+a5QFgF6s9I3/8s3z5+nWGIfZqr /rkqrpbrCnP5D540hLN+NHBgOl5vY5Q8Z+F7dGxU0tBGEZXx9XVmzoM8/qfVVbfe31HlO+ Rrjrswf5JjQpLhXjKDdpDCP9d5p2FDEM6745JGiWC06AL1GBeG0vNAauDtagEuPmuWe+Qf dEOCN9hcDiAr16gjJOrO67PreejyephKdt0ScqrXRyJ/yno2hQVi4giR25H6cA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737012; a=rsa-sha256; cv=none; b=MrAcEDwT3AS0MU5n0RK6SjXspjkx+R0DACscMTVDXG3SIKd8BkT0BPfB3KZ/xjfctRk//k /o2bUsSvFRVYtmcsacE85naXaMRBUiYm4mLpbRHcYfplm67518hhmh7ON4fgBk3GYUenuj beFUYTbv08qX6zxdloEx39LlAJaU5seG1Oo6LWrmVbrUb5Uq+SgnITB8vK+JY23g/C1aCL iK6e3CtwvoKuv1tUFVcbEn1FwPQQqQ5HKl3dmoTv9LrDjVAHThmJjO0WRokg9jhRqmXPpg xa2QhUhldLq84adZOvtWpx3kESr29NvpM1twlHpmxoW27akpe29mPxuWZ1NP4w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxS42zlPzgfp; Mon, 4 Nov 2024 16:16:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGqM3010876; Mon, 4 Nov 2024 16:16:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGq2s010873; Mon, 4 Nov 2024 16:16:52 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:52 GMT Message-Id: <202411041616.4A4GGq2s010873@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 260a43241737 - stable/14 - manuals: Misc syntax fixes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 260a432417372b2348d66b40791c942ba5be4d75 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=260a432417372b2348d66b40791c942ba5be4d75 commit 260a432417372b2348d66b40791c942ba5be4d75 Author: Graham Percival AuthorDate: 2024-10-16 22:46:40 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:15:27 +0000 manuals: Misc syntax fixes These were reported by `mandoc -T lint ...` as errors. Signed-off-by: Graham Percival Reviewed by: mhorne, Alexander Ziaee Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1472 (cherry picked from commit 759ddb4d246f5db5963369a82f1ab165d0dfccce) --- sbin/ipf/ipf/ipf.5 | 2 +- sbin/ipf/ipf/ipf.8 | 3 ++- sbin/nvmecontrol/nvmecontrol.8 | 4 ++-- stand/libsa/libsa.3 | 2 ++ stand/man/loader.efi.8 | 4 ++-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/sbin/ipf/ipf/ipf.5 b/sbin/ipf/ipf/ipf.5 index 8d2f6f58379b..be88c8c4c5ea 100644 --- a/sbin/ipf/ipf/ipf.5 +++ b/sbin/ipf/ipf/ipf.5 @@ -295,7 +295,7 @@ proto-unr (protocol unreachable) the IP protocol specified in the packet is not available to receive packets. -.DE +.RE .PP An example that shows how to send back a port unreachable packet for UDP packets to 192.168.1.0/24 is as follows: diff --git a/sbin/ipf/ipf/ipf.8 b/sbin/ipf/ipf/ipf.8 index b999f04e5d03..9ca75e47e47d 100644 --- a/sbin/ipf/ipf/ipf.8 +++ b/sbin/ipf/ipf/ipf.8 @@ -158,7 +158,8 @@ Zero global statistics held in the kernel for filtering only (this doesn't affect fragment or state statistics). .DT .SH ENVIRONMENT -.NM utilizes the following environment variable. +.B ipf +utilizes the following environment variable. .TP .B IPF_PREDEFINED ipfilter variables, see VARIABLES in ipf(5), can be specified in this diff --git a/sbin/nvmecontrol/nvmecontrol.8 b/sbin/nvmecontrol/nvmecontrol.8 index 1310184ac309..40a6400515cc 100644 --- a/sbin/nvmecontrol/nvmecontrol.8 +++ b/sbin/nvmecontrol/nvmecontrol.8 @@ -811,13 +811,13 @@ If the .Dq nvmecontrol identify -n 1 nvme2 command ended with .Pp -.Bl -verbatim +.Bd -literal LBA Format #00: Data Size: 512 Metadata Size: 0 Performance: Good LBA Format #01: Data Size: 512 Metadata Size: 8 Performance: Good LBA Format #02: Data Size: 4096 Metadata Size: 0 Performance: Good LBA Format #03: Data Size: 4096 Metadata Size: 8 Performance: Good LBA Format #04: Data Size: 4096 Metadata Size: 64 Performance: Good -.El +.Ed .Pp then this would give a 4k data format for at least namespace 1, with no metadata. diff --git a/stand/libsa/libsa.3 b/stand/libsa/libsa.3 index 7643423b342a..3e3f70610516 100644 --- a/stand/libsa/libsa.3 +++ b/stand/libsa/libsa.3 @@ -597,6 +597,8 @@ string after the device specification is written. .It Xo .Ft int .Fn devinit void +.Xc +.Pp Calls all the .Fa dv_init routines in the diff --git a/stand/man/loader.efi.8 b/stand/man/loader.efi.8 index 3527d8b66a99..616d08f81302 100644 --- a/stand/man/loader.efi.8 +++ b/stand/man/loader.efi.8 @@ -393,10 +393,10 @@ Boot to FW : false BootCurrent: 0001 Timeout : 2 seconds BootOrder : 0000, 0001, 0003, 0004, 0005, 0006, 0001, 0008, 000A, 000B, 000C, 000E, 0007 -... +\&... +Boot0001* FreeBSD ZPOOL HD(1,GPT,b5d0f86b-265d-1e1b-18aa-0ed55e1e73bd,0x28,0x96000)/File(\EFI\FREEBSD\LOADER.EFI) nda0p1:/EFI/FREEBSD/LOADER.EFI /boot/efi//EFI/FREEBSD/LOADER.EFI -... +\&... .Ed Often there are several options, depending on the BIOS. The entry that we booted with is marked with a From nobody Mon Nov 4 16:16:53 2024 X-Original-To: dev-commits-src-all@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 4XhxS56qjdz5cGwH; Mon, 04 Nov 2024 16:16:53 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhxS55CvLz4r2g; Mon, 4 Nov 2024 16:16:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737013; 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=OttHBAMw6T+3BWbox2d/bpiN6nOGASnBdaSJPtYfWZ4=; b=bu9xa4RsgaJ2R4kyewVteRHmA4X4lc+3LH/KqhSjCzSMI/0Y3Tn5SB6k0P3FcRu/iN3H3/ lZMqwM7JaITjtc5Fo65r+Iw+D5Ad3jrH2APArtitfcAGfh/zuLQLU0K4v/W8w9zr6rAGgP FzZrj7ojLSzB/CtrZeZ7TJYV57u+4+G6UxRph4lyIEPKz+Dmwocu5XvOuI45yqgo9+8asT P6g+Vzol4OcLn3icOxb9kpFwNFbF66ju/b56zc7M2d9V1JjlC+ozX4pXLmXAytNFSh6frD kpN0jn+PGU1VRodd5gH4IsbUIgkF8IkUh2YKeHFhxMJTYoAtEtvpxapDFM2egg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730737013; 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=OttHBAMw6T+3BWbox2d/bpiN6nOGASnBdaSJPtYfWZ4=; b=EWjfDLLA8mG3v8f16fy81JAspxPQRarQskg7FBG5biNhX36kwMA7r5umGI5JVIYtXrkITX Pw7ATmlDwBTYndzeL4KlXGaFGgiCFkQSyUH8zH6ixXqZ8D8R12F7S/Dq/emaxLg/XdeNjm orF1dxV11H2AbqkyJ1uc2nDOJ2cu1hU6mvci701m+yrFlXdS8a9L1awPhPSBSp24BezYk/ PlbfLdxVXxVSzJiP3PaioKHFSE/5XoApGxOJxF9TyJMZVn6Z5zDeGoIu8kGHrSpBF/tnNW F21XaHrnVDetkuk5petNrrkCuaba7u5oH6GKVY1vQ7FOGyNY70Xy1QbVgG4wMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730737013; a=rsa-sha256; cv=none; b=HhQ9Wx9g7NXKA+cHVq1z+1zPwLsCqSkfG2UqTQKqLNcqAxiRhGY3WAmzd6F6iIEaRTv+fF Oav21yxSd7cBarVHXJGRthiaVDsKrAtZBeX5jg2qaSQJBDWBEh/nsLAJp7vkvCUfn/IQmq 6t8xExGzkjh+KN2r/NOwYMBW3YzCvkhp9WFs5dCw0Op438gJBM7swAKKXYHXhAwkMMYgwo fNpBOBq4znnEveulA9e/rpklpVBGxeT2u5vwD18WQVQ6U8Xo0QLZ3bb1cAp6O0F1whJaiM 0vakEs10lsMYmLawb4TyJPze4l24Z8VX+nPVJH/+MwECnHh0LpZ6O3dxEbmRAA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhxS53yRczgfq; Mon, 4 Nov 2024 16:16:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4GGrLp010918; Mon, 4 Nov 2024 16:16:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4GGrfV010915; Mon, 4 Nov 2024 16:16:53 GMT (envelope-from git) Date: Mon, 4 Nov 2024 16:16:53 GMT Message-Id: <202411041616.4A4GGrfV010915@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: cdffbea57c0d - stable/14 - manuals: Fix dates List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: cdffbea57c0d4dc1e76cb1e2d170b7f174c53d24 Auto-Submitted: auto-generated The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=cdffbea57c0d4dc1e76cb1e2d170b7f174c53d24 commit cdffbea57c0d4dc1e76cb1e2d170b7f174c53d24 Author: Graham Percival AuthorDate: 2024-10-16 23:03:49 +0000 Commit: Mitchell Horne CommitDate: 2024-11-04 16:16:22 +0000 manuals: Fix dates These were reported by `mandoc -T lint ...` as warnings. Signed-off-by: Graham Percival Reviewed by: mhorne MFC after: 3 days Sponsored by: Tarsnap Backup Inc. Pull Request: https://github.com/freebsd/freebsd-src/pull/1475 (cherry picked from commit b74aaa1a2199261f9078247d29481a994b6b5e42) --- lib/libusb/libusb.3 | 2 +- libexec/rtld-elf/rtld.1 | 2 +- share/man/man4/enic.4 | 2 +- usr.sbin/gssd/gssd.8 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libusb/libusb.3 b/lib/libusb/libusb.3 index 43afa55380a8..fe07e86623c8 100644 --- a/lib/libusb/libusb.3 +++ b/lib/libusb/libusb.3 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January, 26, 2023 +.Dd January 26, 2023 .Dt LIBUSB 3 .Os .Sh NAME diff --git a/libexec/rtld-elf/rtld.1 b/libexec/rtld-elf/rtld.1 index 31e046a5cdc4..5631c28e1f84 100644 --- a/libexec/rtld-elf/rtld.1 +++ b/libexec/rtld-elf/rtld.1 @@ -26,7 +26,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 24, 2025 +.Dd July 24, 2024 .Dt RTLD 1 .Os .Sh NAME diff --git a/share/man/man4/enic.4 b/share/man/man4/enic.4 index 257a95fa9d32..1783b05dfa12 100644 --- a/share/man/man4/enic.4 +++ b/share/man/man4/enic.4 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd Sept 7, 2022 +.Dd September 7, 2022 .Dt ENIC 4 .Os .Sh NAME diff --git a/usr.sbin/gssd/gssd.8 b/usr.sbin/gssd/gssd.8 index 4240bf28867d..8c330a134a6f 100644 --- a/usr.sbin/gssd/gssd.8 +++ b/usr.sbin/gssd/gssd.8 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 10 2020 +.Dd April 10, 2020 .Dt GSSD 8 .Os .Sh NAME From nobody Mon Nov 4 17:03:07 2024 X-Original-To: dev-commits-src-all@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 4XhyTR3fT9z5cJKw; Mon, 04 Nov 2024 17:03:07 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhyTR2ZtCz401b; Mon, 4 Nov 2024 17:03:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730739787; 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=MgJfghUFP0kUBFTVG1WdtnWSmSiDToqUWywwEJLZn04=; b=g44P6MYEDNRPYt1PtM5oJkl4rVXXlbYwZsqRhEqmZe+vA8ixhGA0UAmO/QBhtYL8V4gtLD 9HWutYV0b892wTsTOBnDw8Qpg+fkq1ljairpW9rJJZtljlbQ+TQs/2fpTo3ynyCjWWpr/9 rcPy4k72ufpBzIxdJ/rRKQD+N8LTzVlxHrd5izft+I3dRlRC5CojgxqZWYFFvszxaRZgOk k75RPx8PZ6yzdDm5AZJEOQS8TTi86y18pUNvEZO7/u8ygSPEEPdmPdGmnNKn873pzYuxtK DX8YRNRFeeJsKljRwuwzBOqzt05zXuMfZwOvXGvt6YRg4AhKiXvJus+aHvV7mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730739787; 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=MgJfghUFP0kUBFTVG1WdtnWSmSiDToqUWywwEJLZn04=; b=C7be73W0X1K0o6XaOdc3diwUClXLDASeCt2Lvq0A5NwMkGUhrxg4CUKZ5Ld6LRlT+/yKNG ELcgfZMwGXiA8ctdSK1DXH2okXF+WV9fwzs15651v9O1fyylSyGpM3j59bCijPkOOxQMAx Sl3erjqIU9rvTZIaV6q8B9GcANMgB0Au/PGAePCzyw6dV4fmvhA6p9b4RdAXiCDFc7ds/H 4fFubKowODhzT52sHImdm2BMzsASrWgeO6OxRN+rXAvOpZMYe0rJ8biLaOaNPMjT/wIImq d0FOPCHDoj7v9X2LUG7U4uOn3byzlr0PMSyUcpug2KJvWFet0+x+TkJhfRlFpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730739787; a=rsa-sha256; cv=none; b=uQ4KsVObWq19O2zwYTHWZa4bO1OEizIXJMipkF6ns18Vd5IodWdY4tguW043CFs+NTZFOb oXtnynpkdSoUdSfFY9jiZre5fOFAyQO1BATy5MNGEdO0ghTeRFJpuevR0PFitxInzm+9Se 3aEZJzY83Tvw3GgAyU5kesrYIQ3bAEK3ZKMYG4Obb2slMX8pkO9Q0K1a18lZx6LRWykb2l 0cDeoyVnTCKLQGH2jRHE57lmV3LUrDzaa5Qfw6sm6O163OL/s23fUQ51I3K3B5GiYjgzhi hRQuAbQS8sviLrp2jWrQ1PQ60L/ukvb1oU5RoGeC/agEOL7pS4FO0jRvoRsWqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhyTR2BVhzhhv; Mon, 4 Nov 2024 17:03:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4H37BQ003335; Mon, 4 Nov 2024 17:03:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4H37xY003332; Mon, 4 Nov 2024 17:03:07 GMT (envelope-from git) Date: Mon, 4 Nov 2024 17:03:07 GMT Message-Id: <202411041703.4A4H37xY003332@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 7e98eae74037 - main - c(7): Utilise proper macros to pass mandoc's linter List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7e98eae74037aa7987ca30ea8b7b11bec7d9cc0c Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=7e98eae74037aa7987ca30ea8b7b11bec7d9cc0c commit 7e98eae74037aa7987ca30ea8b7b11bec7d9cc0c Author: Faraz Vahedi AuthorDate: 2024-11-03 09:01:23 +0000 Commit: Brooks Davis CommitDate: 2024-11-04 16:40:35 +0000 c(7): Utilise proper macros to pass mandoc's linter Reviewed by: Graham Percival Pull Request: https://github.com/freebsd/freebsd-src/pull/1507 Signed-off-by: Faraz Vahedi --- share/man/man7/c.7 | 68 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 48 insertions(+), 20 deletions(-) diff --git a/share/man/man7/c.7 b/share/man/man7/c.7 index 97869fe0f8f2..7c180797d296 100644 --- a/share/man/man7/c.7 +++ b/share/man/man7/c.7 @@ -112,9 +112,12 @@ development of the language did not stop. .Pp The ISO C standard was later extended with an amendment as ISO/IEC 9899/AMD1 in 1995. -This contained, for example, the wide-character support in and -, and also restricted character set support via diagraphs and -. +This contained, for example, the wide-character support in +.In wchar.h +and +.In wctype.h , +and also restricted character set support via diagraphs and +.In iso646.h . This amendment is usually referred to as C95. Two technical corrigenda were also published: Technical Corrigendum 1 as ISO/IEC 9899/COR1 in 1994 and Technical Corrigendum 2 as ISO/IEC 9899/COR2 @@ -130,18 +133,23 @@ The improvements include (but are not limited to) the following: .Bl -bullet -offset indent .It digraphs, trigraphs, and alternative spellings for the operators that -use non-ISO646 characters in +use non-ISO646 characters in +.In iso646.h .It -extended multibyte and wide character library support in and - +extended multibyte and wide character library support in +.In wchar.h +and +.In wctype.h .It variable length arrays .It flexible array members .It -complex (and imaginary) number arithmetic support in +complex (and imaginary) number arithmetic support in +.In complex.h .It -type-generic math macros in +type-generic math macros in +.In tgmath.h .It the long long int type and library functions .It @@ -157,15 +165,24 @@ BCPL style single-line comments .It allow mixed declarations and code .It -the vscanf family of functions in and +the +.Fn vscanf +family of functions in +.In stdio.h +and +.In wchar.h .It allow trailing comma in enum declaration .It inline functions .It -the snprintf family of functions in +the +.Fn snprintf +family of functions in +.In stdio.h .It -boolean type and macros in +boolean type and macros in +.In stdbool.h .It empty macro arguments .It @@ -173,7 +190,8 @@ _Pragma preprocessing operator .It __func__ predefined identifier .It -va_copy macro in +va_copy macro in +.In stdarg.h .It additional strftime conversion specifiers .El @@ -185,24 +203,34 @@ and ISO/IEC 9899:1999/COR3:2007. The improvements include (but are not limited to) the following: .Bl -bullet -offset indent .It -support for multiple threads of execution and atomic operations in -and +support for multiple threads of execution and atomic operations in +.In threads.h +and +.In stdatomic.h .It -additional floating-point characteristic macros in +additional floating-point characteristic macros in +.In float.h .It -querying and specifying alignment of objects in and +querying and specifying alignment of objects in +.In stdalign.h +and +.In stdlib.h .It -Unicode character types and functions in +Unicode character types and functions in +.In uchar.h .It type-generic expressions .It -static assertions in +static assertions in +.In assert.h .It anonymous structures and unions .It -remove the gets function from +remove the gets function from +.In stdio.h .It -add the aligned_alloc, at_quick_exit, and quick_exit functions in +add the aligned_alloc, at_quick_exit, and quick_exit functions in +.In stdlib.h .El .Pp C11 was later superseded by ISO/IEC 9899:2018, also known as C17 which was From nobody Mon Nov 4 17:03:08 2024 X-Original-To: dev-commits-src-all@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 4XhyTS5M0Zz5cKN7; Mon, 04 Nov 2024 17:03:08 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhyTS3lXGz400Q; Mon, 4 Nov 2024 17:03:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730739788; 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=rV0eUhE0VHo3K1TxMeR1XsOxEM1VvzAkQXhsVh9EwrU=; b=LjIN2hwMJHOrZqKyp9PCiC+/IdCzoCxHFkKqc2riJk55WBYXkCx6ZhYBzvzYgd1OYuPy3P b+B0ZKapBbTTSISj1HNTcaastk6aN072OaItrAIlTc5zD+qNvATeZsSk/UxKt5AmQZgV/q DmG52MqiAOlgVCZTr03SfD6cx7VvCtXgcPUbXGOiR/Q073EZxcxOdhOXQIDKpGEsrjBxd3 ksN/dmw6aekl22bbzRPHkwlI+obZiAH9zmfGYszS1RfENXU2PGhV4nmUg2hrIHTc3nM2uw +EKw3JAihSVCSeRfk47LRvqgW1sP3OAAOL4ReiIXM1gBRhku8J08TwUCkL4ynQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730739788; 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=rV0eUhE0VHo3K1TxMeR1XsOxEM1VvzAkQXhsVh9EwrU=; b=mB9lUu+eZjpUgfkEcGKL29p5tBIyeXz2Iz2Plqk6DXDCAcq9YIDgCmIivSHQS7P4TrVrYo gnRoPsETLvpJpZjvXKsBSVLMH9lCYepcL+Y08fpp8K9U2no1z1+ZbfhOwj9pgyqwKYuWvb EN7tACnZeWeOu0YPi8kWuRQ57e7Ihf5I1/r3saQc1ETIm/plpcSfIW1iTKUe6hSjOUHLXx riH/vshGHMWNXSLYDiofYAOYsQ2NWHu7XFX9EV0BrtHmSeH2ue7qoaBLIibvPK9f60rT9K lIfXe3eIpRwIuUqcvBL6dXIAcF5WOubTDlrAK72jCmvhBVwAEmYIYi5LGdj+og== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730739788; a=rsa-sha256; cv=none; b=PLS5uRmQ7mBUCpah43P40nkAScRkL53AlC8OxQYpH/WZi7qz3S0E/p08GDHSck7n4Q1q7Q WDwIm+YskUV6m9hAVqAn0QFIyWtTIIKNuG/weMtLu9yyOroGmY7aqXhC7tKmVbbz73zz6F 49xag9Ip379ahL4oX4+PsQgjQ1wK9YjpSemEc0TMy9LtN6yvYPMiFLzH4QRxWFT2EizwLY ZRhQffrJQ12WWMhnpQk10QsPEZ+b93Bd8TqUC6PFLuq1rx/CtJnEi4fRwr9rMvCF2Vbpyz OpsSIZcQak3oQ2N+YRvmmXLrGgSBt0yi1UYSH7xTqAKFo8uvNBqZAE9vSy4WXg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XhyTS3JnwzhsS; Mon, 4 Nov 2024 17:03:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4H38Bx003377; Mon, 4 Nov 2024 17:03:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4H38s2003374; Mon, 4 Nov 2024 17:03:08 GMT (envelope-from git) Date: Mon, 4 Nov 2024 17:03:08 GMT Message-Id: <202411041703.4A4H38s2003374@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 930654318ece - main - c(7): Add C23 standard update List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 930654318ecee172e4fc1ce57f21b4fb7b12603e Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=930654318ecee172e4fc1ce57f21b4fb7b12603e commit 930654318ecee172e4fc1ce57f21b4fb7b12603e Author: Faraz Vahedi AuthorDate: 2024-11-01 21:38:36 +0000 Commit: Brooks Davis CommitDate: 2024-11-04 16:40:52 +0000 c(7): Add C23 standard update Reviewed by: emaste, Graham Percival Pull Request: https://github.com/freebsd/freebsd-src/pull/1507 Signed-off-by: Faraz Vahedi --- ObsoleteFiles.inc | 3 + share/man/man7/Makefile | 3 +- share/man/man7/c.7 | 169 ++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 160 insertions(+), 15 deletions(-) diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index d9a8467443da..142a389a8e7a 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -51,6 +51,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20241104: remove the outdated c2x.7 symlink in favor of c23.7 +OLD_FILES+=usr/share/man/man7/c2x.7.gz + # 20241023: new clang import which bumps version from 18 to 19 OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_builtin_vars.h OLD_FILES+=usr/lib/clang/18/include/__clang_cuda_cmath.h diff --git a/share/man/man7/Makefile b/share/man/man7/Makefile index 67cca438a46d..2c4f158280f7 100644 --- a/share/man/man7/Makefile +++ b/share/man/man7/Makefile @@ -42,7 +42,8 @@ MLINKS+= c.7 c95.7 MLINKS+= c.7 c99.7 MLINKS+= c.7 c11.7 MLINKS+= c.7 c17.7 -MLINKS+= c.7 c2x.7 +MLINKS+= c.7 c23.7 +MLINKS+= c.7 c2y.7 .if ${MK_INET} != "no" MAN+= networking.7 diff --git a/share/man/man7/c.7 b/share/man/man7/c.7 index 7c180797d296..c95bab1c1f19 100644 --- a/share/man/man7/c.7 +++ b/share/man/man7/c.7 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 20, 2021 +.Dd November 4, 2024 .Dt C 7 .Os .Sh NAME @@ -34,7 +34,8 @@ .Nm c99 , .Nm c11 , .Nm c17 , -.Nm c2x +.Nm c23 , +.Nm c2y .Nd The C programming language .Sh DESCRIPTION C is a general purpose programming language, which has a strong connection @@ -239,17 +240,154 @@ It incorporates the Technical Corrigendum 1 (ISO/IEC 9899:2011/COR1:2012) which was published in 2012. It addressed defects and deficiencies in C11 without introducing new features, only corrections and clarifications. -Since there were no major changes in C17, the current standard for -Programming Language C, is still considered C11 \(em ISO/IEC 9899:2011, published -2011-12-08. .Pp -The next standard, the fifth, is currently referred to as C2x and is scheduled -to be adopted by the end of 2021, with a publication date of 2022. -When published, it will cancel and replace the fourth edition, ISO/IEC -9899:2018. +C23, formally ISO/IEC 9899:2024, is the current standard with significant +updates that supersede C17 (ISO/IEC 9899:2018). +The standardization effort began in 2016, informally as C2x, with the first +WG14 meeting in 2019, and was officially published on October 31, 2024. +C23 was originally anticipated for an earlier release, but the timeline was +extended due to COVID-19 pandemic. +With C23, the value of __STDC_VERSION__ has been updated from 201710L to +202311L. +Key changes include (but are not limited to) the following: +.Bl -bullet -offset indent +.It +Add null pointer type nullptr_t and the nullptr keyword +.It +Add constexpr keyword as a storage-class specifier for objects +.It +Redefine the usage of the auto keyword to support type inference while also +retaining its previous functionality as a storage-class specifier when used +with a type +.It +Add %b binary conversion specifier to the +.Fn printf +and +.Fn scanf +function families +.It +Add binary conversion support (0b and 0B) to the +.Fn strtol +and +.Fn wcstol +function families +.It +Add the #embed directive for binary resource inclusion and __has_embed to +check resource availability with preprocessor directives +.It +Add the #warning directive for diagnostics +.It +Add the #elifdef and #elifndef directives +.It +Add the u8 prefix for character literals to represent UTF-8 encoding, +compatible with C++17 +.It +Add the char8_t type for UTF-8 encoded data and update the types of u8 +character constants and string literals to char8_t +.It +Add functions +.Fn mbrtoc8 +and +.Fn c8rtomb +to convert between narrow multibyte +characters and UTF-8 encoding +.It +Define all char16_t strings and literals as UTF-16 encoded and char32_t +strings and literals as UTF-32 encoded unless specified otherwise +.It +Allow storage-class specifiers within compound literals +.It +Support the latest IEEE 754 standard, ISO/IEC 60559:2020, with binary and +(optional) decimal floating-point arithmetic +.It +Add single-argument _Static_assert for compatibility with C++17 +.It +Add _Decimal32, _Decimal64, _Decimal128 keywords for (optional) decimal +floating-point arithmetic +.It +Add digit separator ' (the single quote character) for literals +.It +Enable specification of the underlying type of an enum +.It +Standardize the +.Fn typeof +operator +.It +Add +.Fn memset_explicit +in +.In string.h +to securely erase sensitive data +regardless of optimizations +.It +Add +.Fn memccpy +in +.In string.h +for efficient string concatenation +.It +Add +.Fn memalignment +in +.In stdlib.h +to determine pointer alignment +.It +Add +.Fn strdup +and +.Fn strndup +in +.In string.h +to allocate string copies +.It +Introduce bit utility functions, macros, and types in the new header +.In stdbit.h +.It +Add +.Fn timegm +in +.In time.h +for converting time structures to calendar time +values +.It +Add __has_include for header availability checking via preprocessor +directives +.It +Add __has_c_attribute to check attribute availability via preprocessor +directives +.It +Add _BitInt(N) and unsigned _BitInt(N) for bit-precise integers, and +BITINT_MAXWIDTH for maximum bit width +.It +Elevate true and false to proper keywords (previously macros from +.In stdbool.h ) +.It +Add keywords alignas, alignof, bool, static_assert, thread_local; previously +defined keywords remain available as alternative spellings +.It +Enable zero initialization with {} (including initialization of VLAs) +.It +Introduce C++11 style attributes using [[]], with adding [[deprecated]], +[[fallthrough]], [[maybe_unused]], [[nodiscard]], and [[noreturn]] +.It +Deprecate _Noreturn, noreturn, header +.In stdnoreturn.h +features introduced +in C11 +.It +Remove trigraph support +.It +Remove K&R function definitions and declarations +.It +Remove non-two's-complement representations for signed integers +.El .Pp -Some useful features have been provided as extensions by some compilers, but -they cannot be considered as standard features. +The next version of the C Standard, informally named C2y, is anticipated +to release within the next six years, targeting 2030 at the latest. +A charter for C2y is still being drafted and discussed, with several +papers under debate from the January 2024 meeting in Strasbourg, France +indicating that this new version may address long-standing requests and +deficiencies noted by the C community, while preserving its core strengths. .Pp ISO/IEC JTC1/SC22/WG14 committee is responsible for the ISO/IEC 9899, C Standard. @@ -377,6 +515,11 @@ C Standard. .%A ISO/IEC .%T 9899:2018 (aka C17) .Re +.Pp +.Rs +.%A ISO/IEC +.%T 9899:2024 (aka C23) +.Re .Sh HISTORY This manual page first appeared in .Fx 9.0 . @@ -384,8 +527,6 @@ This manual page first appeared in .An -nosplit This manual page was originally written by .An Gabor Kovesdan Aq Mt gabor@FreeBSD.org . -It was updated for -.Fx 14.0 -by +It was updated by .An Faraz Vahedi Aq Mt kfv@kfv.io with information about more recent C standards. From nobody Mon Nov 4 17:07:16 2024 X-Original-To: dev-commits-src-all@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 4XhyZJ4Zygz5cKPQ; Mon, 04 Nov 2024 17:07:20 +0000 (UTC) (envelope-from fluffy@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhyZJ43xRz41GQ; Mon, 4 Nov 2024 17:07:20 +0000 (UTC) (envelope-from fluffy@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730740040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=97JRLfXhj0ixSQDDUotlWuxz9FbR6thlmqZig9TaOMM=; b=b5NspluD+Ec1q4G+ZtFFgWXcQnefxYB5puXbNMmSwywnJ+4LqKtgsemBq3sRiMgyLOO6IO rF/rkgpmewH054qqrUmtrsn0i/d8NIQXEi9XlL+Ftu8rNZX8/6AU/mKGxeDC3I43Ulj2Ff Jn2F+UyomEsXT+dSsAdZytAdCsWDCglAF/KIrVuxSSiFBbrNqoHAlxUhOdNZ1MrhnlWnrG S6WtTozK8iB++lwbcJTmLIE5Kvjv6a122zc7RNjvYxN3fnrTY35L+3S2pNDdAkHMrDjPeY 5sP63/ZpZ2FgAAtpdUxD3CVYrC2eUyiS8MY0A5fln7Pdpim2TsEI86zLC+Gczg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730740040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=97JRLfXhj0ixSQDDUotlWuxz9FbR6thlmqZig9TaOMM=; b=A8JT5oi1lOJYSD0Iekb2mZwCAcNrRT0MNX+MN8OgO1m3JnJvzURQUF06yWyENgbm9AwqvI dfWGhkuO4Bt5K2Cbpl2NZuy9Gg04oi1VScjJTqITC2kOsqE6vyKwEi+b7KNdlOwZ53rS80 4aeo5UqvaDd7ffcOiOZGRSdWmQT/fyL0ROG1ZHRMTjl4A25AGoW99UOA9xi7vDKCb7Jjb0 1tCbyArZrSlAx+fbLLeln1p/YESLpE+1mIgLPdCoZi8DYjQvA7Td2Kg2OZNBW5W6vRTE+Z m+z9Wvqf87nBnk9RSITKqD4NzuMqheTJWJ0LOA7xXSEXkhACGNPgD4UKwnJHzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730740040; a=rsa-sha256; cv=none; b=TpESc1/9qtZTgSknmHrpiKfbuBqK4cNkWtGIw//7rCb7O7jbGNvFth3nRlbpm7P4R4tLCY EuMz3ky/LwmePh68bGm8fzev90yKC4fRe697SA8dowAe6TYSvylRT/hjFjo6S2cMAw6woj dQZvjQVhPXT3c/zSy5XynpIXh2J9j4ko4O0hYbbu4kTUyfZRZnYUmn/K8rPMtoO3NpDFaE r3iAruDLXMJqR+Vfk7PdF5NKy+ux9v3HdiNT5wDtGiI+aEeCTPk1Hzqm/9+S0DwvkQqUdH kIpNWQQGgmdABnet3QhzMOqTafe0RbjErDEiuBqCYXai36HH6fMaS8wWqOcpdg== Received: from [10.216.0.111] (unknown [188.243.165.67]) (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 did not present a certificate) (Authenticated sender: fluffy) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XhyZH5sXxzgmP; Mon, 4 Nov 2024 17:07:19 +0000 (UTC) (envelope-from fluffy@FreeBSD.org) Message-ID: <7eccc976-540e-4f2d-89b5-ae1f989cd419@FreeBSD.org> Date: Mon, 4 Nov 2024 20:07:16 +0300 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: 5deeebd8c6ca - main - Merge llvm-project release/19.x llvmorg-19.1.2-0-g7ba7d8e2f7b6 To: Dimitry Andric Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" References: <202410231832.49NIWcTJ078019@gitrepo.freebsd.org> <40b4bd4a-5065-4cec-a59d-42cb456992b2@FreeBSD.org> <6D12AFD9-AFD8-4EA6-B215-B5F8986CB109@FreeBSD.org> Content-Language: ru, en-GB, en-US From: Dima Panov Autocrypt: addr=fluffy@FreeBSD.org; keydata= xsFNBEp+xiUBEAD01RkOYcyzU/Fnam2FI7PPwYqW00SwVmfUHihvVniiaMwzaYzchb+mzSha NsqRgjIN/i59OBpnS25OXMLEpQP7jDJnY2xKyJN2H4qn1HPHkF9cYuqvqkm+r5459g+2ZoGY 9Sr1PA0XSzXJMSQ1nRK3cFfqlN/L2//P36U5VuOWXGZUTwr/n2B/N0HAsYsqDOdjofLg7x9z 8p8elqwJbT/O4ltg8JBVAnof+FzqefYW4CzqkHRjq/9ORiGYh14ST9ECsCaVpfdDUTor0wgp JqzCN1HsQcHqgdMmOqigWIgN7Eg4MRQU3LDCISrNJ/45zvcKUXR0RHOjnSuflYba74q58XhZ 4eCTqHeMHjA8st4IWRzy9l0V4RunnZxjOTb806jyIhdxcb2m8o5tXwsqjf0TQ7vYowDHrQ6g XlhPg4Jvvwf+BwlB2p+w7Cs/Y9QA0YHnIOIVZAwU1wv66YSI9IDL2AbnY2gQGx+dkHiC3S5L G8HcPrMcjayyThKKIi5KQsWa3snFeK5ky+cRpVEOPQfUXFOas++91v90Xe9j+lsmRofsyvuy gzoaZE2fud0kCsOgYEg+kiLPlQicNAx5IToOs8BrVFLcxmbPKuVBfbLdWsYLjXGzbXEmzV9f NDZ1r1uNmVema8YYCiNjUDZhxIfKt8nbp6cx8UgVLGRVDEfXeQARAQABzTdEaW1hIFBhbm92 IChGcmVlQlNELk9SRyBDb21taXR0ZXIpIDxmbHVmZnlARnJlZUJTRC5PUkc+wsF2BBMBAgAg BQJKfsYlAhsDBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQ+4ugndU5jyk6dhAArHclTYjw VRjDnoRfO3Zfj9Ssab9Vrbo7DNFWeAqPE3OTCmiq9Q0fzRHzmhVyedYMm9qNA3i0J1De3KTn LanXOrBIqsmmZpSqmrp/xXdZngDLW5H6hpE0f2PeAPwxrb9uBQax8WMR7Z4STSHAP4GRjve3 0wNNS0MlawGllcs9VKRxG5PsDA8k3ACTSjdpQ76RWldORN4LA8M40yHRX377SGMzO+XsCeOw ad65GKyLrx+6Gnd3PMOjVCJCrqd04Jgqg9G0xKNImchwIZ5ulx9jAt+ixfNbY6hwslleqimr 2t5+MMqo6dRrvJ+BsR8NHt9vGi2Jy4+4smg05fR18fck0Sk4vCYyVvtvnOk3qZf0F8zJu06G cjWWC2ZbDPbmksWXFIMxoJbyVxK55xOqcFs0t12sR6gbVJb8Nb88WrQub3MgePyMF6R3Tkfa OqkjvQur1xC2AXESTxtJw1FkdGSb3UopNKgvSPHSLFW8B0LbyDxdYRTRWPGGEUhFP6tdXi5R vb1210ks2EQAqF4Cm3iRIhYgtZvQqQgMSiO9fVyeJ0U6dYGDtg2Boi+NtXKRdmtL7pRSnI3n fAbVJ05Hhd7PBnJeob6R08nHRo9DdAG7o8ToM+egUAuEsEvoRV+v4f6k3mShdxE7gG/anwVy eh3n6LGwg9KHDr1X2FODsLLxgUjOwU0ESn7GJQEQAMBTMHQgb0vcPMAiRvb357ihlh/YYA22 FXj4p3XTrDlBlRL0QCRq1I8XDeQmL3mG3s3NBtDXSefnNM06jZ3XCAfHIDBdxJJvQZZCXfvL p/JK7nnEuqoeqT6/oKs1MeZVdUnvh1nZhphs+Z6dl01GIE8YDpzT1JMD2f3G9PHChGi3Ddzq m3VdXt/87khYJkPbaf6EN5+vDthKgMjba8jwbQ+7IUPqkfnNFIZS6irZ2LYb79BLNI5JSl9l ReSfEX2d8ByQlLzuf0TS4voy3nWGeCyj6BIOMiRSxg+hZmJLYxhNkyK4GQVCt/rLT7dIfBQM syBbX0Qw2NOcfba9VgdPZBgdrawwB4/xF9SA3NB0J0lUjhjpH9iG8NxlpleEg8OSUApyFZEJ q2A/flns4kKzNH7AGYDOFORytDzA3qkgCJrZ7nzQSsdtZ2qbyAoze0tl+YrShJhOcmQBtFem omhWVeJ8T/Bw1KH8M1ihrENBTSzYzLvN18YjNP6P0Dh/7Zda5yYI8fNqd84K3Uq5xBiI0S6+ qxViw84z2tJj8TxiNqFAk7Tbeo2Ximtq7uQ9UnFRSK3jw96yi19KU9rQQZs0xUjN5gn/tF5l BZWKjwuZCkcOiI0EWHAR+ATAEsFNXcuoC9CAGK5HFW4nI4WtE3pv1KYvivlGtF1wzf0Qrhye RrmxABEBAAHCwV8EGAECAAkFAkp+xiUCGwwACgkQ+4ugndU5jymgKg//RvnI7zEDKv6nQUqK RyLawPTrCKCtQ2vSoWyTNgRB6byNS1w5wNSAMnqaESx2bdhauaxe167VEJYqgQy241yFslpC 6v/xlH25Ppos+Jg6AKaQG/JABHO6Co4tHtBbNmM+14HESxAodA4NJuEU19iIPjRhUKC8F8R9 xBmW1uLpPiljU9Km0P3EIKjAdtdZNeMLhwsbSHBwJROFrxFGiTzWNREWZoZpQxgSbHYhwYbx HEbJi1cybl9IQvSGHrysctZsxD04Jxh6ogaziiT8aV6ear6BNh008yRf61FvrinfG3USLR3i JO8aHap4QGCPjZ3cyT+DEq8/zVfDdeidTeNEhSgRKk856RcA+yAE79KYdKkvmDUiC8poAJ7F GEYHMB+g/1+LczCr2g9GYkiB/53boYfU9esYYlarxCgedCrwXv6T48FZ3xxoH3XJ2KV8K6M8 CUb04jj3kEeCwq+R6Bk2ZXrnMzyQmmn223X+Zp89B/gchH32JY8y3j7BICcoZmgMu62XNMgW I/hRgfi3JlVCne6XPj3/w00JYG7vo+eTJOflqYr3WRTPYh7DxzYtshZswHmmkZtwizUQUZzF 9dX2CM8nY7cKucEmtcnUpjGwXMOufa/DmCTlk8ggRZ0ukCUZOlIA4ILxp95sS2oqyucARv+p wMWvrqJ/LfbZexSsIjI= Organization: FreeBSD.org In-Reply-To: <6D12AFD9-AFD8-4EA6-B215-B5F8986CB109@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------0T5b9J4QYq1zt0c0l4ZBwcyi" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------0T5b9J4QYq1zt0c0l4ZBwcyi Content-Type: multipart/mixed; boundary="------------vbJztS6IXPnmgHK0zQ1sukvX"; protected-headers="v1" From: Dima Panov To: Dimitry Andric Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Message-ID: <7eccc976-540e-4f2d-89b5-ae1f989cd419@FreeBSD.org> Subject: Re: git: 5deeebd8c6ca - main - Merge llvm-project release/19.x llvmorg-19.1.2-0-g7ba7d8e2f7b6 References: <202410231832.49NIWcTJ078019@gitrepo.freebsd.org> <40b4bd4a-5065-4cec-a59d-42cb456992b2@FreeBSD.org> <6D12AFD9-AFD8-4EA6-B215-B5F8986CB109@FreeBSD.org> In-Reply-To: <6D12AFD9-AFD8-4EA6-B215-B5F8986CB109@FreeBSD.org> --------------vbJztS6IXPnmgHK0zQ1sukvX Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGVsbG8hDQoNCk9uIDAyLjExLjIwMjQgMTg6NTMsIERpbWl0cnkgQW5kcmljIHdyb3RlOg0K PiBPbiAxIE5vdiAyMDI0LCBhdCAyMzoxNywgRGltYSBQYW5vdiA8Zmx1ZmZ5QGZyZWVic2Qu b3JnPiB3cm90ZToNCj4+DQo+PiBIZWxsbyENCj4+DQo+PiBPbiAyMy4xMC4yMDI0IDIxOjMy LCBEaW1pdHJ5IEFuZHJpYyB3cm90ZToNCj4+PiBUaGUgYnJhbmNoIG1haW4gaGFzIGJlZW4g dXBkYXRlZCBieSBkaW06DQo+Pj4gVVJMOiBodHRwczovL2NnaXQuRnJlZUJTRC5vcmcvc3Jj L2NvbW1pdC8/aWQ9NWRlZWViZDhjNmNhOTkxMjY5ZTcyOTAyYTdhNjJjYWRhNTc5NDdmNg0K Pj4+IGNvbW1pdCA1ZGVlZWJkOGM2Y2E5OTEyNjllNzI5MDJhN2E2MmNhZGE1Nzk0N2Y2DQo+ Pj4gTWVyZ2U6IDZlNTE2Yzg3YjZkNyBlNmI3MzI3OTI4MTMNCj4+PiBBdXRob3I6ICAgICBE aW1pdHJ5IEFuZHJpYyA8ZGltQEZyZWVCU0Qub3JnPg0KPj4+IEF1dGhvckRhdGU6IDIwMjQt MTAtMjEgMTI6NTk6MjYgKzAwMDANCj4+PiBDb21taXQ6ICAgICBEaW1pdHJ5IEFuZHJpYyA8 ZGltQEZyZWVCU0Qub3JnPg0KPj4+IENvbW1pdERhdGU6IDIwMjQtMTAtMjMgMTg6Mjc6Mzgg KzAwMDANCj4+PiAgICAgIE1lcmdlIGxsdm0tcHJvamVjdCByZWxlYXNlLzE5LnggbGx2bW9y Zy0xOS4xLjItMC1nN2JhN2Q4ZTJmN2I2DQo+Pj4gICAgICAgICAgIFRoaXMgdXBkYXRlcyBs bHZtLCBjbGFuZywgY29tcGlsZXItcnQsIGxpYmMrKywgbGlidW53aW5kLCBsbGQsIGxsZGIg YW5kDQo+Pj4gICAgICBvcGVubXAgdG8gbGx2bS1wcm9qZWN0IHJlbGVhc2UvMTkueCBsbHZt b3JnLTE5LjEuMi0wLWc3YmE3ZDhlMmY3YjYsDQo+Pj4gICAgICBhLmsuYS4gMTkuMS4yIHJl bGVhc2UuDQo+Pj4gICAgICAgICAgIFBSOiAgICAgICAgICAgICAyODA1NjINCj4+PiAgICAg IE1GQyBhZnRlcjogICAgICAxIG1vbnRoDQo+Pg0KPj4NCj4+IEFmdGVyIHRoaXMgdXBkYXRl IGFueSBsYW5nL2djYyogZmFpbHMgdG8gYnVpbGQgb24gYWFyY2g2NCBtYWNoaW5lIDooDQo+ Pg0KPj4gbWtkaXIgYWFyY2g2NC1wb3J0YmxkLWZyZWVic2QxNS4wL2xpYmdvbXANCj4+IENo ZWNraW5nIG11bHRpbGliIGNvbmZpZ3VyYXRpb24gZm9yIGxpYmdvbXAuLi4NCj4+IENvbmZp Z3VyaW5nIHN0YWdlIDEgaW4gYWFyY2g2NC1wb3J0YmxkLWZyZWVic2QxNS4wL2xpYmdvbXAN Cj4+IGNvbmZpZ3VyZTogY3JlYXRpbmcgY2FjaGUgLi9jb25maWcuY2FjaGUNCj4+IGNoZWNr aW5nIGZvciAtLWVuYWJsZS12ZXJzaW9uLXNwZWNpZmljLXJ1bnRpbWUtbGlicy4uLiBubw0K Pj4gY2hlY2tpbmcgZm9yIC0tZW5hYmxlLWdlbmVyYXRlZC1maWxlcy1pbi1zcmNkaXIuLi4g bm8NCj4+IGNoZWNraW5nIGJ1aWxkIHN5c3RlbSB0eXBlLi4uIGFhcmNoNjQtcG9ydGJsZC1m cmVlYnNkMTUuMA0KPj4gY2hlY2tpbmcgaG9zdCBzeXN0ZW0gdHlwZS4uLiBhYXJjaDY0LXBv cnRibGQtZnJlZWJzZDE1LjANCj4+IGNoZWNraW5nIHRhcmdldCBzeXN0ZW0gdHlwZS4uLiBh YXJjaDY0LXBvcnRibGQtZnJlZWJzZDE1LjANCj4+IGNoZWNraW5nIGZvciBhIEJTRC1jb21w YXRpYmxlIGluc3RhbGwuLi4gL3Vzci9iaW4vaW5zdGFsbCAtYw0KPj4gY2hlY2tpbmcgd2hl dGhlciBidWlsZCBlbnZpcm9ubWVudCBpcyBzYW5lLi4uIHllcw0KPj4gY2hlY2tpbmcgZm9y IGEgdGhyZWFkLXNhZmUgbWtkaXIgLXAuLi4gL3dya2RpcnMvdXNyL3BvcnRzL2xhbmcvZ2Nj MTMvd29yay9nY2MtMTMuMy4wL2xpYmdvbXAvLi4vaW5zdGFsbC1zaCAtYyAtZA0KPj4gY2hl Y2tpbmcgZm9yIGdhd2suLi4gL3Vzci9iaW4vYXdrDQo+PiBjaGVja2luZyB3aGV0aGVyIGdt YWtlIHNldHMgJChNQUtFKS4uLiB5ZXMNCj4+IGNoZWNraW5nIHdoZXRoZXIgZ21ha2Ugc3Vw cG9ydHMgbmVzdGVkIHZhcmlhYmxlcy4uLiB5ZXMNCj4+IGxkLWVsZi5zby4xOiAvd3JrZGly cy91c3IvcG9ydHMvbGFuZy9nY2MxMy93b3JrLy5idWlsZC8uL2djYy9saWJnY2Nfcy5zby4x OiB2ZXJzaW9uIEdDQ18zLjMgcmVxdWlyZWQgYnkgL3dya2RpcnMvdXNyL3BvcnRzL2xhbmcv Z2NjMTMvd29yay8uYnVpbGQvLi9nY2MveGdjYyBub3QgZGVmaW5lZA0KPj4gY2hlY2tpbmcg Zm9yIGFhcmNoNjQtcG9ydGJsZC1mcmVlYnNkMTUuMC1nY2MuLi4gL3dya2RpcnMvdXNyL3Bv cnRzL2xhbmcvZ2NjMTMvd29yay8uYnVpbGQvLi9nY2MveGdjYyAtQi93cmtkaXJzL3Vzci9w b3J0cy9sYW5nL2djYzEzL3dvcmsvLmJ1aWxkLy4vZ2NjLyAtQi91c3IvbG9jYWwvYWFyY2g2 NC1wb3J0YmxkLWZyZWVic2QxNS4wL2Jpbi8gLUIvdXNyL2xvY2FsL2FhcmNoDQo+PiBjaGVj a2luZyB3aGV0aGVyIHRoZSBDIGNvbXBpbGVyIHdvcmtzLi4uIG5vDQo+PiBjb25maWd1cmU6 IGVycm9yOiBpbiBgL3dya2RpcnMvdXNyL3BvcnRzL2xhbmcvZ2NjMTMvd29yay8uYnVpbGQv YWFyY2g2NC1wb3J0YmxkLWZyZWVic2QxNS4wL2xpYmdvbXAnOg0KPj4gY29uZmlndXJlOiBl cnJvcjogQyBjb21waWxlciBjYW5ub3QgY3JlYXRlIGV4ZWN1dGFibGVzDQo+PiBTZWUgYGNv bmZpZy5sb2cnIGZvciBtb3JlIGRldGFpbHMNCj4+IGdtYWtlWzJdOiAqKiogW01ha2VmaWxl OjIyNTA1OiBjb25maWd1cmUtc3RhZ2UxLXRhcmdldC1saWJnb21wXSBFcnJvciA3Nw0KPj4g Z21ha2VbMl06IExlYXZpbmcgZGlyZWN0b3J5ICcvd3JrZGlycy91c3IvcG9ydHMvbGFuZy9n Y2MxMy93b3JrLy5idWlsZCcNCj4+IGdtYWtlWzFdOiAqKiogW01ha2VmaWxlOjI0ODYzOiBz dGFnZTEtYnViYmxlXSBFcnJvciAyDQo+PiBnbWFrZVsxXTogTGVhdmluZyBkaXJlY3Rvcnkg Jy93cmtkaXJzL3Vzci9wb3J0cy9sYW5nL2djYzEzL3dvcmsvLmJ1aWxkJw0KPj4gZ21ha2U6 ICoqKiBbTWFrZWZpbGU6MjUyMTE6IGJvb3RzdHJhcC1sZWFuXSBFcnJvciAyDQo+PiA9PT0+ IENvbXBpbGF0aW9uIGZhaWxlZCB1bmV4cGVjdGVkbHkuDQo+IA0KPiBJIGNhbm5vdCByZXBy b2R1Y2UgdGhpcy4gSSBoYXZlIGluc3RhbGxlZCBhIGZyZXNoIHNuYXBzaG90IChGcmVlQlNE LTE1LjAtQ1VSUkVOVC1hcm02NC1hYXJjaDY0LTIwMjQxMDMxLTUyMTJiOTUwMDExNi0yNzMz MzUpLCBpbnN0YWxsZWQgdGhlIHByZXJlcXVpc2l0ZXMsIHRoZW4gZGlkIGEgZnVsbCBidWls ZCBvZiB0aGUgZGVmYXVsdCBnY2MsIHdoaWNoIGlzIGN1cnJlbnRseSBsYW5nL2djYzEzLiBB bGwgb3B0aW9ucyBkZWZhdWx0ZWQuDQo+IA0KPiBEbyB5b3UgaGF2ZSBhbnkgbm9uLWRlZmF1 bHQgb3B0aW9ucyBzZWxlY3QgZm9yIHRoZXNlIHBvcnRzPw0KPiANCg0KSW5kZWVkLCByb290 IG9mIGV2aWwgd2FzIGhpZGRlbiBpbiBkZXZlbC9iaW51dGlscyB3aXRoIFJFTFJPIG9wdGlv biBlbmFibGVkLg0KQWZ0ZXIgZGlzYWJsaW5nIFJFTFJPIG9wdGlvbiBpbiBiaW51dGlscyBh bGwgbGFuZy9nY2MqIGJ1aWxkIGFyZSBmaW5lIGFnYWluLg0KDQpBbnl3YXkgaXQgaXMgYSBi aWcgYmFkIHJlZ3Jlc3Npb24gaGVyZS4NCkkgaGF2ZSBSRUxSTyBlbmFibGVkIGluIGJpbnV0 aWxzIHBvcnQgZm90IGxvbmcgdGltZSBhbmQgaGFkIG5vIGlzc3VlcyB3aXRoIGdjYyBidWls ZHMgYmVmb3JlIHRoaXMgbGx2bTE5IGltcG9ydC4NCg0KDQoNCi0tIA0KU2luY2VyZWx5LA0K RGltYSAoZmx1ZmZ5QEZyZWVCU0Qub3JnLCBodHRwczovL3QubWUvRmx1ZmZ5QlNELCBAZmx1 ZmZ5Om1hdHJpeC1kZXYuZnJlZWJzZC5vcmcpDQooZGVza3RvcCwga2RlLCB4MTEsIG9mZmlj ZSwgcG9ydHMtc2VjdGVhbSlARnJlZUJTRCB0ZWFtDQoNCg== --------------vbJztS6IXPnmgHK0zQ1sukvX-- --------------0T5b9J4QYq1zt0c0l4ZBwcyi Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEELTAsy5mEEwxvh7r8+4ugndU5jykFAmco/0UFAwAAAAAACgkQ+4ugndU5jymy 2BAAqJyuyGNg5vqZ8QNPkNdf9Tff1b1UpP6kxdQW+gu7OAbVbZPWFzU4l3MNcUPnyf4pcRDfqPsd sclmbyQp7GlRJV3zViYKOw3NitRv4d9GkIllxLpQLWJBgFaAnC0RdOX/MrsjWB6HQ5CaCm6/inLl v7YpqYms9Sutkwa+bH9MP7tqiHrSwj6CoNyToxbQTkP+th0wb4deOMQColvfpkaSWCsZl6orVIaa EujPeduZtshhVg6dRAiiNduimJ+nTVdm+1req+3J9ZgzdV2N5VchcRKks0dRX0twxz4/AYI20yQC vK+t98DUbHAHGKeL3mheJEXsqm2OQZF0+QZQjmxEa2Le8bhPRyfxwCahiemreSoLomO4XUFXy9m8 h804asu54Oojfyap17JX6/gHFUaV4OKIeYbMApXFodydwC83+aXFZtutT3wQ36YiI+3gXDjR5o0T z27lWrtZCMkTLjLc3pGvPh9uCVEtqs84TI6ImGPDDiAyk3MGCITTg3TKx4z4LTuYLla/HRB7TPlP GOiVPLIvwahjbWNksBMM8KD34n8FVhJgHa6ZrWCBBbnUSP5HiAHpg2mJovJ5FlcI/LmTuYLmZH5A Keihg/kSjOubuFSLWkTNpR3gLBeM6Z66mtsgrIrXFOtaM047UVMCIn60CW0PZFpQGqjqw+7jy+M4 LBs= =VR6Y -----END PGP SIGNATURE----- --------------0T5b9J4QYq1zt0c0l4ZBwcyi-- From nobody Mon Nov 4 19:24:58 2024 X-Original-To: dev-commits-src-all@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 4Xj1d70tknz5cSQd; Mon, 04 Nov 2024 19:24:59 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj1d709Fwz4GqS; Mon, 4 Nov 2024 19:24:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730748299; 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=9fta5UhJEUyPP0G+U3OPHIrDgr1QBLnYnVXqyCHOZkI=; b=FLnlqsPAjef7a0hpxoQwk00MPsF8hrzac984wznUwgCj8FjaD1axOA1lLQw5aUhS6cUrSb 0vkS+9GGHnZXi2mJFoV8MrzC4scYrThW1ZW5WM9llF+beaDkqPrQCEW9J2g5hyscm/B9kx eLlvXAV/SCehEc9urrtw7FNYBDd0mR2jbBt5OZWX3zOigyKrFXqwQQ+LMjTomxxDLc4Du4 g4B33esoDRF6yHxXPqBhm4TP/GaO+NkMJ6k9hK43hZmpSoFHYo+vRP/h7cY40MDgu5f6Ta zayqurAzb7VXO7cg4xTuXRa0hpJycG2kbbUiftxtRnAwD7Zaz3npXBHZn/gY+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730748299; 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=9fta5UhJEUyPP0G+U3OPHIrDgr1QBLnYnVXqyCHOZkI=; b=qW0ulcwyeOl2fhmP5lZ1vBGEIYjxO3S3nIblguyLISnieWAgKaqvCtVd8YACJ9sBL/ikqo Gi8PdtQINkuOMoJYWCvWMCPJpRvIF3JhXnAjJ40OthOuh+Ds3qIzkQTklrI0Q5b3P+1Vzd +3vOElQMBOaEK5Cj3YRV4pSPEAD36TZ8SDi2oBvH3+BtkZ0lyrqKpdggD7P4jXbTA7Z6Py J1cnLaMzDhe/w5zqEcekkouoSq3OrF5VWGwTaZ9+rEP3PBvZbz7t2+ksbI/cNxLKuVbRyh IA6fVRTUPx+KHu7n9JNWF+AwrgX4yu+8PIwUA9F09Vbh4eoFDmFl3ITvZQUNyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730748299; a=rsa-sha256; cv=none; b=Mecvprj4Zc9H1pmOFOud8DkypItDXa4jlMIAkJ0OtKbtLYW06yHr72NgK6lfVAYZwF11N8 4M0gzlPQCExiZtZRGepuqFFts4P2b0tj6HmYedM2SFHKcngVZZ9Dmh5WLufTGR7GaqUq4w z76ouWsExlr+pZSip4T4uSmCSSeq/5FFg0sA8x+T6H1dXGUxtWAU8C5Ay7QS0Dx2Nsd+yi kn8whcTSE0ArRvXTfHRRFh/XEePoPYCDgHWuv6ghyZjRrOzLKUc4kdRZL9Bn2rC4O8KaE1 fivX7Ae7oK8r1vqpogGwaJ4jPuMxFl7kKFOMXPS++/Zxrtjf4kyKFe2ItPirQg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj1d66v04zmL4; Mon, 4 Nov 2024 19:24:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4JOwQY063694; Mon, 4 Nov 2024 19:24:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4JOwXj063691; Mon, 4 Nov 2024 19:24:58 GMT (envelope-from git) Date: Mon, 4 Nov 2024 19:24:58 GMT Message-Id: <202411041924.4A4JOwXj063691@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Moore Subject: git: a905c589be67 - main - pctrie: breakup pctrie_root_store List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a905c589be67db98bbb9c99932511be70e5027fb Auto-Submitted: auto-generated The branch main has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=a905c589be67db98bbb9c99932511be70e5027fb commit a905c589be67db98bbb9c99932511be70e5027fb Author: Doug Moore AuthorDate: 2024-11-04 19:23:40 +0000 Commit: Doug Moore CommitDate: 2024-11-04 19:23:40 +0000 pctrie: breakup pctrie_root_store Break up pctrie_root_store into the part that casts the root to a smr_pctnode_t *, and the rest. The rest is just pctrie_node_store, and the casting part can be used in a few more places. This is strictly a code-cleanup change, with no functional change expected. Reviewed by: bnovkov Differential Revision: https://reviews.freebsd.org/D47347 --- sys/kern/subr_pctrie.c | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/sys/kern/subr_pctrie.c b/sys/kern/subr_pctrie.c index e4865c602ce4..a078f0587f37 100644 --- a/sys/kern/subr_pctrie.c +++ b/sys/kern/subr_pctrie.c @@ -168,22 +168,21 @@ pctrie_node_store(smr_pctnode_t *p, void *v, enum pctrie_access access) } /* - * Get the root node for a tree. + * Get the root address, cast to proper type for load/store. */ -static __inline struct pctrie_node * -pctrie_root_load(struct pctrie *ptree, smr_t smr, enum pctrie_access access) +static __inline smr_pctnode_t * +pctrie_root(struct pctrie *ptree) { - return (pctrie_node_load((smr_pctnode_t *)&ptree->pt_root, smr, access)); + return ((smr_pctnode_t *)&ptree->pt_root); } /* - * Set the root node for a tree. + * Get the root node for a tree. */ -static __inline void -pctrie_root_store(struct pctrie *ptree, struct pctrie_node *node, - enum pctrie_access access) +static __inline struct pctrie_node * +pctrie_root_load(struct pctrie *ptree, smr_t smr, enum pctrie_access access) { - pctrie_node_store((smr_pctnode_t *)&ptree->pt_root, node, access); + return (pctrie_node_load(pctrie_root(ptree), smr, access)); } /* @@ -304,7 +303,7 @@ pctrie_insert_lookup_compound(struct pctrie *ptree, uint64_t *val, if (pctrie_isleaf(node)) { if (node == PCTRIE_NULL) { if (parent == NULL) - pctrie_root_store(ptree, + pctrie_node_store(pctrie_root(ptree), pctrie_toleaf(val), PCTRIE_LOCKED); else pctrie_addnode(parent, index, @@ -354,8 +353,7 @@ pctrie_insert_lookup_compound(struct pctrie *ptree, uint64_t *val, * children 'node' and 'val'. Return the place that points to 'node' * now, and will point to to the new branching node later. */ - return ((parent != NULL) ? &parent->pn_child[slot]: - (smr_pctnode_t *)&ptree->pt_root); + return ((parent == NULL) ? pctrie_root(ptree): &parent->pn_child[slot]); } /* @@ -608,7 +606,7 @@ pctrie_iter_insert_lookup(struct pctrie_iter *it, uint64_t *val) node = _pctrie_iter_lookup_node(it, *val, NULL, PCTRIE_LOCKED); if (node == PCTRIE_NULL) { if (it->top == 0) - pctrie_root_store(it->ptree, + pctrie_node_store(pctrie_root(it->ptree), pctrie_toleaf(val), PCTRIE_LOCKED); else pctrie_addnode(it->path[it->top - 1], it->index, @@ -625,7 +623,7 @@ pctrie_iter_insert_lookup(struct pctrie_iter *it, uint64_t *val) * now, and will point to to the new branching node later. */ if (it->top == 0) - return ((smr_pctnode_t *)&it->ptree->pt_root); + return (pctrie_root(it->ptree)); node = it->path[it->top - 1]; return (&node->pn_child[pctrie_slot(node, it->index)]); } @@ -1037,7 +1035,8 @@ pctrie_remove(struct pctrie *ptree, uint64_t index, struct pctrie_node *parent, int slot; if (node == NULL) { - pctrie_root_store(ptree, PCTRIE_NULL, PCTRIE_LOCKED); + pctrie_node_store(pctrie_root(ptree), + PCTRIE_NULL, PCTRIE_LOCKED); return; } slot = pctrie_slot(node, index); @@ -1054,7 +1053,7 @@ pctrie_remove(struct pctrie *ptree, uint64_t index, struct pctrie_node *parent, KASSERT(child != PCTRIE_NULL, ("%s: bad popmap slot %d in node %p", __func__, slot, node)); if (parent == NULL) - pctrie_root_store(ptree, child, PCTRIE_LOCKED); + pctrie_node_store(pctrie_root(ptree), child, PCTRIE_LOCKED); else { slot = pctrie_slot(parent, index); KASSERT(node == @@ -1218,7 +1217,7 @@ pctrie_reclaim_begin_compound(struct pctrie_node **pnode, struct pctrie_node *node; node = pctrie_root_load(ptree, NULL, PCTRIE_UNSERIALIZED); - pctrie_root_store(ptree, PCTRIE_NULL, PCTRIE_UNSERIALIZED); + pctrie_node_store(pctrie_root(ptree), PCTRIE_NULL, PCTRIE_UNSERIALIZED); if (pctrie_isleaf(node)) { if (callback != NULL && node != PCTRIE_NULL) callback(pctrie_toptr(node, keyoff), arg); @@ -1275,7 +1274,7 @@ pctrie_replace(struct pctrie *ptree, uint64_t *newval) if (pctrie_isleaf(node)) { if ((m = pctrie_toval(node)) != NULL && *m == index) { if (parent == NULL) - pctrie_root_store(ptree, + pctrie_node_store(pctrie_root(ptree), leaf, PCTRIE_LOCKED); else pctrie_node_store( From nobody Mon Nov 4 19:38:52 2024 X-Original-To: dev-commits-src-all@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 4Xj1x83JtVz5cShl; Mon, 04 Nov 2024 19:38:52 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj1x82nR9z4H6n; Mon, 4 Nov 2024 19:38:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730749132; 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=XbKwwjEkNR6b3a1UeBTeUhLvtzGAVTpsDdlKUW6qow8=; b=V74MT9LZmNgwH6cGimjUFSTDcaJcHTnP/plUVAkAUv4VwcLIxZyugQZyB+Ha4W5J/7uj63 jzRx9VG93h/FZk3gVfTzqbQDbHfM2eL+don4ECd6JHQmnC3N0dER6ufZggs/LoAvc0LCFf st/5i9XTVD4XJM7VvyD21Rdzcu45bbp0W+pGNshW7rxG5FpVONFpyYWu3oGVZO69uYdbpe V5WtjZj/NG5X0xPpggaCY5F2CIEmqlQMzO0ZJ0RUUAacWBETXBTYeEbk88b8JqqEml9HMx Sft/U/3aOMdEBpvI4oAdyDloO276s2Ub8lAV4vI9/f13mR3Uyv/4Mksy+TPy1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730749132; 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=XbKwwjEkNR6b3a1UeBTeUhLvtzGAVTpsDdlKUW6qow8=; b=EwvViX9Xc1RW4F/T6niijDBmvjT4XSdfj+y8mhO+ZtrclmbjQNcbunMoQaoDf3iHds7i+2 fuerM5VYkujZyXpJQJ2SXhZKp3gXMeHicFmTC9X3fFY4hbH6J5jLa/XmSsK5WnMaTAewjm vp0ccTj7pKSCNThF2RAcTrgc49J1ZXHIH+iM0BuSKp70bh2ysuOI1O7i4L7H9jDUuBcAuW ZY7Tdc5YyDWchixVkpvXHfMKmppyR4+3jSAwUS9W3nmzkDXPGJV5Ex/9XupwB277k97M37 tZ0KwlLMzrZQmWwhaAl/KVWbQdtKRV84sHWNJySjcqrS/jyLXp2dw4NTvMJfsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730749132; a=rsa-sha256; cv=none; b=WUh28UD5UHQ5u2FOF8lzMPoMGNz5L1hNgP1Olh1pIw41WoxSUhzGmn4bBIfxymHVcccW3K esUE8HRcFQhI+enfGxGvJ8c8EMJeQT9NM2NA8TOFMN9Gnx1Rzd0fXpP5tNGR7JGHGytbLR o9qm2+OLKFD/dSJmAhLKjxNJe8AGiZyIiu50HZWgpwKb2TMy/el1YysTUZT3g1NYeN7KVV ImqBl0RZ8M49ma5skdUyv84ptjlNHdnSy2wC7GUWYi9qcfa7w+f3+Koqj7b9Rxct2qBxDT GxutUMZ8rVu7Gi4La80qbwNnOfi9W9wJpBOng3MVUU+2UwauzfGF9v4O55E8dg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj1x82GPTzmNy; Mon, 4 Nov 2024 19:38:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4Jcq3T082973; Mon, 4 Nov 2024 19:38:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4JcqhN082970; Mon, 4 Nov 2024 19:38:52 GMT (envelope-from git) Date: Mon, 4 Nov 2024 19:38:52 GMT Message-Id: <202411041938.4A4JcqhN082970@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: ff84f8b536ce - main - iommu: Clean up a lingering function prototype List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ff84f8b536ceaa9a16b4dca94a1856300be0216b Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ff84f8b536ceaa9a16b4dca94a1856300be0216b commit ff84f8b536ceaa9a16b4dca94a1856300be0216b Author: Mark Johnston AuthorDate: 2024-11-04 19:38:22 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 19:38:22 +0000 iommu: Clean up a lingering function prototype Reported by: clang Fixes: d97838b7c2a6 ("iommu: eliminate iommu_free_ctx()") --- sys/x86/iommu/intel_ctx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/x86/iommu/intel_ctx.c b/sys/x86/iommu/intel_ctx.c index 2bc5f8a9d361..b4ea1e82696b 100644 --- a/sys/x86/iommu/intel_ctx.c +++ b/sys/x86/iommu/intel_ctx.c @@ -76,7 +76,6 @@ static void dmar_unref_domain_locked(struct dmar_unit *dmar, static void dmar_domain_destroy(struct dmar_domain *domain); static void dmar_free_ctx_locked(struct dmar_unit *dmar, struct dmar_ctx *ctx); -static void dmar_free_ctx(struct dmar_ctx *ctx); static void dmar_ensure_ctx_page(struct dmar_unit *dmar, int bus) From nobody Mon Nov 4 19:38:53 2024 X-Original-To: dev-commits-src-all@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 4Xj1x94Tbkz5cRch; Mon, 04 Nov 2024 19:38:53 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj1x93T7Sz4HVN; Mon, 4 Nov 2024 19:38:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730749133; 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=q9AJa/NKLW28EXAadi8ojuSKeeELewQJRB+/1repe/Q=; b=XDdv4M92X2zIh+wdcrn7wUILJeA1K8JOwEzs4DhfcfSul5qpw1iNkEaKA6b/WKnD3N3GeO iFHX7/xmKTIqwn5KRpjH08v7Qj9SIFVGTp1upCXhWKK7VKzakCUp46MdAqMZoDEiP+SyVK FxSm7XdrhMild9MMUuR5B0d9shvZO/tx2M2x2q0aTI2TNbDi5VHCa49vFkcyr8zgocDhYd feMe+2z63ioJ5TT46QCA7n3X59PoSBmCuBpnneKaz/Zce9btcc1dC+13ABUtfCj470fbQw 7UHssdDmrKVlADzEjGBmyt0iTr6sLvZaCHlJMTxE3EiXH4ZPnHeF6h+X2swsvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730749133; 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=q9AJa/NKLW28EXAadi8ojuSKeeELewQJRB+/1repe/Q=; b=MNu4mEBSI95TFH3IuKIcpuSOIBsIxbU2+YALJAvwNCr7+5Ks84OOwAGfrNIHBScyLqFZDx F91Zp8s99t+dvTdDod6l2UpclUKFFWT0XLNC9oIN9HKWrykXrWzqNz5J9jI73lbi1ddjqA DdrFvZoVdTBIMN5Bqg7RDjVNiE25pHqIgAQRLT9at2UEe0vrRqysqMZRSDcf3rG9te4b6T LUUMvH6jw2RzHx/4lMBNWM1QklGf0KmevaoL8myrWGCujnwR8dt3Fw03ZxsMlIj0ZotdRd BPaRhkNA+eTga/OAB1QF/HPVbwPXX+PbVYPZCnhd9zPqjXbrzlMXOPnGXtwkNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730749133; a=rsa-sha256; cv=none; b=RuzhUYBPdzXotf1WLHjKimky+hmLhoFGgnvXYQncyFkTX8qGwyn0X5LwH8v3PbyL498uIa hoofQq5D6QC794BLuxhBUJguKEPvLvH/L8jGDJRCDO6nyznyl84YTj22hFFq9LWMLPysh0 8bJCFVfAy8obvo2YCxjmm2ZTm8FC0pkkXcJNysKvKtat9/9DlQ6QkaEWomJKOLtg2CPFiy WT1jbNT/LneGXW/VXoQ1P+WRjuRfGYaz7DbZwlKGPXAmgs+KKpLoriyUadGbhv8UbQp/1I zgWzzdh//zDMkStRfOqFGtazj3CtBta4HS9yM0hvGzTZZ/U3VAaOT3RVYdsycw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj1x934Qxzmbs; Mon, 4 Nov 2024 19:38:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4JcrSW083040; Mon, 4 Nov 2024 19:38:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4JcrWp083037; Mon, 4 Nov 2024 19:38:53 GMT (envelope-from git) Date: Mon, 4 Nov 2024 19:38:53 GMT Message-Id: <202411041938.4A4JcrWp083037@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: c477d8974374 - main - file: The f_ops table pointer can be a pointer to const List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c477d8974374402a16a42f5d62fbda19070a12a3 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=c477d8974374402a16a42f5d62fbda19070a12a3 commit c477d8974374402a16a42f5d62fbda19070a12a3 Author: Mark Johnston AuthorDate: 2024-11-04 19:38:33 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 19:38:33 +0000 file: The f_ops table pointer can be a pointer to const No functional change intended. MFC after: 2 weeks --- sys/sys/file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/file.h b/sys/sys/file.h index 6d1b8b8e1df4..820ad1015573 100644 --- a/sys/sys/file.h +++ b/sys/sys/file.h @@ -186,7 +186,7 @@ struct file { volatile u_int f_flag; /* see fcntl.h */ volatile u_int f_count; /* reference count */ void *f_data; /* file descriptor specific data */ - struct fileops *f_ops; /* File operations */ + const struct fileops *f_ops; /* File operations */ struct vnode *f_vnode; /* NULL or applicable vnode */ struct ucred *f_cred; /* associated credentials. */ short f_type; /* descriptor type */ From nobody Mon Nov 4 19:59:21 2024 X-Original-To: dev-commits-src-all@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 4Xj2Nn739Vz5cTs1; Mon, 04 Nov 2024 19:59:21 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj2Nn6SFKz4Kwm; Mon, 4 Nov 2024 19:59:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730750361; 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=DFD1eQwrCtnTj1a7wSb5b7sX72d+jQX8MO8Dbz+8HEI=; b=Pl/uBK4rWmgR48HOK8wNkAtK9YBojj6cqxCTe8OY/Stbs8x2wMi7cu4J/z+WnVUhkzGbNY ZjnANvxndgt4J0sWF2apb8nIV5X++YGgKlfQTtIHEVcFxHxnaeP93AOZXsboQvhblCzZrl I/SRQ6zoaMdzxS3gvNDwNCpwy0VK17n3Siv8EE1/28XpLgWAzirgWfgpGMKomtyheTC8cF Nh0s0pyOaFwGNZQqCYOSlUsF+TJT6xVCDqSRRiPzUe//GXZY/jnF4B/Y+KMXjtbvC7/Y3Q K4M3JAZYe7A+Slg45LaSHKoBtZ0w3IlMpS/iPY1pZNC5lyEc/RELG/7pmz/R5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730750361; 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=DFD1eQwrCtnTj1a7wSb5b7sX72d+jQX8MO8Dbz+8HEI=; b=jEDsqmP6GTh34uvuGLOGgqmKGoXw2ziiJI2bFZusZ1nJQpvewGe9cDDWZvLzGmz5RYrFzE diBlKJFJaJQFDoJOp2zzFF6RWowWnw9zldoc77t68+0ipY3i2uEgM8KyAxXmtoyUSiOTN2 TRsQ4gi4CWGGxcAC0qDjA/Axdwd4J93vTjNNwfTZpPA9JCp7cAvruORNoc+wURtKktS78f bs1N7FnhGdxQQmYzT0uXna/ZU61XmSI5urbJZEzpDWeWfzT8wLrYUSwRNEXcax8KgvatLL XfilazSQiL9fpwSIlIdLML0nJeC+jRWQqJyy4015E/eC4++spXBMAL/B+da1yg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730750361; a=rsa-sha256; cv=none; b=XUzY4orScXMRYMsA3p802jw8ownlo1xJHXoOeEZ6WGOnF6rSEnDtF+UvysHi44oIRb7UL+ lAGeLBYY1E2r+IYbbEXhYJ86/CIKZWMIl67BZ9lJNFzT+yNeT53WYsB2ZTfRtqALC0F3Pw Jck2q/l1+wCV2iYCuelVe7re9KdQaYnhBWhxHUKEpCwO78oaVCpDmCAG2nZQ/oqZp+0xJq qNxMu/tMg4UAtig2DZlq7b8/c0EfgUjRkwORuqs78lDAc9uUgUN+Nn0l4vv9+1N+azoEua kQCyuVJH7s7jGiaUxWrRCr1ECBd8+stKk8NyfNCp1Nj2gje6wMVROvUA1ER2rQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj2Nn5yT1zmSF; Mon, 4 Nov 2024 19:59:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4JxL9r019758; Mon, 4 Nov 2024 19:59:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4JxL30019755; Mon, 4 Nov 2024 19:59:21 GMT (envelope-from git) Date: Mon, 4 Nov 2024 19:59:21 GMT Message-Id: <202411041959.4A4JxL30019755@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 0187bc8a472e - main - sound: Include snd_cmi only for i386 and amd64 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0187bc8a472ef21ddb901f797d46075fc0d5eb14 Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=0187bc8a472ef21ddb901f797d46075fc0d5eb14 commit 0187bc8a472ef21ddb901f797d46075fc0d5eb14 Author: Jose Luis Duran AuthorDate: 2024-11-04 19:57:25 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-04 19:57:25 +0000 sound: Include snd_cmi only for i386 and amd64 When running FreeBSD on an arm64/aarch64 QEMU virtual machine, using the Intel HD Audio Controller (ich6) (intel-hda), for example, and by following the procedure in the handbook ("Setting Up the Sound Card"): kldload snd_driver The following error is shown: KLD snd_driver.ko: depends on snd_cmi - not available or version mismatch This is because the CMedia sound driver (snd_cmi) is only built for i386 and amd64. Add the same guards to the snd_driver metadriver. Reviewed by: christos, emaste Approved by: emaste (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47399 --- sys/dev/sound/driver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/sound/driver.c b/sys/dev/sound/driver.c index 6bfe6c51fa3e..13218f419a28 100644 --- a/sys/dev/sound/driver.c +++ b/sys/dev/sound/driver.c @@ -57,7 +57,9 @@ MODULE_VERSION(snd_driver, 1); MODULE_DEPEND(snd_driver, snd_als4000, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_atiixp, 1, 1, 1); +#if defined(__i386__) || defined(__amd64__) MODULE_DEPEND(snd_driver, snd_cmi, 1, 1, 1); +#endif MODULE_DEPEND(snd_driver, snd_cs4281, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_csa, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_csapcm, 1, 1, 1); From nobody Mon Nov 4 20:04:37 2024 X-Original-To: dev-commits-src-all@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 4Xj2Vs61v4z5cV2V; Mon, 04 Nov 2024 20:04:37 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj2Vs5Tm1z4M25; Mon, 4 Nov 2024 20:04:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730750677; 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=GceIGR5Oilc2iu2lezBC/krbXSH2/Z+wHZ0i8k4m5JI=; b=bwXxRn+yyEp9YZFNWtn1c7UC3tXJyy09SNwY80OKR/WgrdnB8h11DL7rRbP+9SdDLoKxyB jKJ09TOfqj0h5mruB7j2oLpn5LXanFpwRng944Ugdtc77YP5LwlDhFnJWK+yP6dyHRriRi Pz1sHkAA/9WoFNsg0P7ywu/e7Cij7pTEKm14NF2qZMIzvOQD6WFgUrrQ2jws+imFqAIRUl 5soNAx2incofER5UrAwpVImLOyZuvI7THeF7zHXC/+8YH1qjdPw3ZgXevjIVa/VTrmkdoY A39UxkE0qKVjypXzVeNi+6mBZfd2FAG22WeOPv/Yc8FqLAmw18l34zW4wAUIfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730750677; 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=GceIGR5Oilc2iu2lezBC/krbXSH2/Z+wHZ0i8k4m5JI=; b=C9ZLJTSVwcyiEBDeI4DmT50i9oOa1wsyKMFh0XwAztz146Cj/pwE2mbRJq9j6XOH09xixs zspPzZv/Ibd4ei5y/2CTWgKWlCYk+WoaYKCMwu9q8uu0UIF9l/g0AIozp3Z8Qgcz89tZQy RgqxTBcAa0vb6nIoloN7PRGYl98GanQ0crMiqqPskmYLJibaIa3QdfAYZvG0aYbqKPq9qy TLIe3T8LEU+hNUj4Y3bXKOf/9pEFBf28IfvkbzmXtWVCmtaRcLOkDcjMN3KnsvvY2wyPnC Fc9CVYlFwt7PSy3j7sf1x0nn/67IJA++ADP7ZTc/ecaqosC4xE1Pa8QpJDwTdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730750677; a=rsa-sha256; cv=none; b=nOF3EMtwU+9r1Tc2urf0u5/8FQj0kOKFeBxcWd59nC5Vl5myt8u85Nw9SOUrwVC6fXCsrZ nwsqsBwAtel7Aul/afOGp/JCerTD6+NGD3Vq9EE8Wy06z9SXO1OBY7QTjTAloeesl/7Rvp zSiEHFal1g2DJCYWtpUcD/Ge9Pl0U/eettWFZxUc2nALYCNO3e+UAoue/k48SIN94Te+Hl gHeOPswgj5dX77w+9gc1xbz8s2HXnTUstvK3QeXlgw1FFnhg8x58gkk3corHTa/YIwzlQB sNMFmCBOg3MQW5rLEMmPyuFd7aKjiE7gpk10PDp/yS1vMp4jrpELCs8fz+E3wQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj2Vs552yzmQD; Mon, 4 Nov 2024 20:04:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4K4bax038279; Mon, 4 Nov 2024 20:04:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4K4bbV038276; Mon, 4 Nov 2024 20:04:37 GMT (envelope-from git) Date: Mon, 4 Nov 2024 20:04:37 GMT Message-Id: <202411042004.4A4K4bbV038276@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 8934526be184 - main - rc: Update ipfilter example rules location List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8934526be1843ba033e1423f6ecd8b3b3f2a9c23 Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=8934526be1843ba033e1423f6ecd8b3b3f2a9c23 commit 8934526be1843ba033e1423f6ecd8b3b3f2a9c23 Author: Jose Luis Duran AuthorDate: 2024-11-04 20:02:01 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-04 20:02:01 +0000 rc: Update ipfilter example rules location It was originally /usr/src/contrib/ipfilter/rules and moved to /usr/src/share/examples/ipfilter/rules in 41edb306f056. Point to users to /usr/src/share/examples/ipfilter instead, as the base directory also contains example rules. Reviewed by: emaste Approved by: emaste (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47392 --- libexec/rc/rc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf index a21c587dcc07..6689a2ab85dd 100644 --- a/libexec/rc/rc.conf +++ b/libexec/rc/rc.conf @@ -212,7 +212,7 @@ natd_flags="" # Additional flags for natd. ipfilter_enable="NO" # Set to YES to enable ipfilter functionality ipfilter_program="/sbin/ipf" # where the ipfilter program lives ipfilter_rules="/etc/ipf.rules" # rules definition file for ipfilter, see - # /usr/src/contrib/ipfilter/rules for examples + # /usr/src/share/examples/ipfilter for examples ipfilter_flags="" # additional flags for ipfilter ipfilter_optionlist="" # optionlist for ipf(8) -T ippool_enable="NO" # Set to YES to enable ip filter pools From nobody Mon Nov 4 20:31:05 2024 X-Original-To: dev-commits-src-all@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 4Xj35P73Ltz5cWWb; Mon, 04 Nov 2024 20:31:05 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj35P6WvNz4Npx; Mon, 4 Nov 2024 20:31:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730752265; 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=IAvwRpXJUtjyUtzx37tUGf68NBIq5pHWl8WJJ2hmPJY=; b=nHumxyMKQ5R8hPQ4LtukZ/5FkjTqueLjD1AQMomKrFo2bBjk5jbDOxRw5QrZ6p8ZaPnfJG FFzSoSiWEjNm8IgfVCI1A1piEPhzraQcNksCMDqL8qAKS/yJNAnoRXIn71pRWEbl0mNp2P eGZ9BeSIh0B3YkZm4o7C+kcYjgPESSckY2qDJl7oGv5bmsvoAKAWFWIke+DdymeQowB1lr 0Ib/YTYxrWhO1Y+fGlziw0CsLNI9TyArVCOtS9aL9+A9x8WD9pFL0g1oa/akcdX1s9TH+a GsrSCTz0wAhIgdrvqC11IkTW1OuxX5i1MXBD3szQOyG+m0pCK/2C9Ku6tT4nQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730752265; 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=IAvwRpXJUtjyUtzx37tUGf68NBIq5pHWl8WJJ2hmPJY=; b=K06hjR1vnTFewTFQ9zIv1pJReP/BejappHDBgar+GzfzbPBr4RsdJf8yc3gatTPcG4JjTb mg2gTBGGFKzIH/EHPnBpHSqP6Oob+eHo4Qoe+C1SIDRHctNsiMs+PyhnJXgJqAfR3UUfwE 6MsJbFI/Qmtzbx//cFqFGDeW7OCDuWQA5PqnafE4jnd3idVyU6hLCEtrz3nFhSw0MqCjxh RV9cfDtZPdgR+Ex1vljoDoPYth+1T958fTrVEixWyKzHyly7c8OMLuXAeFWxsGGvOCTXmC TAMNrxv4COT32JQjYF2P0zlCHTxXzhZNHWddJt+OqOCZaFy376js/swESyRnKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730752265; a=rsa-sha256; cv=none; b=SyoEyjQEsG9fenHz/zb5hTuctlTU2ezXD51pRm3J+1IhksVdpAGebc22dxlOJvaAFtVlr9 3h8yyOXoz0Vk3YK+ddXKf5+u7x/82xXtkkDSidJikafjKVoDrEsF5LzyzjRw69bwm82Xh5 WY7B0rekcmbNk1Hl92wpmyeZa/xCk7o1VR6HHYn0jUgWMi1w9B/oXxwXjAyf07guRxFRw6 nc65NrE6tm7z+4A7PtEAhOxDN34jDzR14MBfAEVisIrepVp1YsLgX+GfY9QGwCW11J6Ky1 BglPUfvBNkNlppP5+njI1cJVYxlqnRzbUUIb+wTe4WfxThxH7f1e4HFNMNeqMw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj35P5zXsznq5; Mon, 4 Nov 2024 20:31:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4KV5oY087709; Mon, 4 Nov 2024 20:31:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4KV5Gv087706; Mon, 4 Nov 2024 20:31:05 GMT (envelope-from git) Date: Mon, 4 Nov 2024 20:31:05 GMT Message-Id: <202411042031.4A4KV5Gv087706@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Simon J. Gerraty" Subject: git: a4e7810f7137 - main - debug.sh check for :debug_add: List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a4e7810f71376ee43c47b6b092d11e582c80fe9d Auto-Submitted: auto-generated The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=a4e7810f71376ee43c47b6b092d11e582c80fe9d commit a4e7810f71376ee43c47b6b092d11e582c80fe9d Author: Simon J. Gerraty AuthorDate: 2024-11-04 20:30:01 +0000 Commit: Simon J. Gerraty CommitDate: 2024-11-04 20:30:01 +0000 debug.sh check for :debug_add: When we match a tag and turn tracing, see if we have any $DEBUG_ON:debug_add:tag in DEBUG_SH and if so add the new tag. This allows for more focused debugging during boot. Reviewed by: stevek --- libexec/rc/debug.sh | 84 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 73 insertions(+), 11 deletions(-) diff --git a/libexec/rc/debug.sh b/libexec/rc/debug.sh index b098f0b359b5..db9ed8c94b6c 100755 --- a/libexec/rc/debug.sh +++ b/libexec/rc/debug.sh @@ -31,6 +31,11 @@ # If the '-o' flag is given, tracing is turned off unless there # was a matched "tag", useful for functions too noisy to tace. # +# Further; when we set "DEBUG_ON" if we find +# "$DEBUG_ON:debug_add:tag" in "DEBUG_SH" we will +# add the new "tag" to "DEBUG_SH" so it only has effect after that +# point. +# # DebugOff turns tracing on if any "tag" matches "DEBUG_OFF" or # off if any "tag" matches "DEBUG_ON". This allows nested # functions to not interfere with each other. @@ -78,7 +83,7 @@ # Simon J. Gerraty # RCSid: -# $Id: debug.sh,v 1.41 2024/10/22 17:57:22 sjg Exp $ +# $Id: debug.sh,v 1.42 2024/10/30 18:23:19 sjg Exp $ # # @(#) Copyright (c) 1994-2024 Simon J. Gerraty # @@ -97,30 +102,82 @@ _DEBUG_SH=: Myname=${Myname:-`basename $0 .sh`} -# We want to use local if we can -# if isposix-shell.sh has been sourced isPOSIX_SHELL will be set -# as will local -case "$local" in -local|:) ;; -*) +DEBUGGING= +DEBUG_DO=: +DEBUG_SKIP= +export DEBUGGING DEBUG_DO DEBUG_SKIP + +case "$isPOSIX_SHELL,$local" in +:,:|:,local|false,:) ;; # sane +*) # this is the bulk of isposix-shell.sh if (echo ${PATH%:*}) > /dev/null 2>&1; then + # true should be a builtin, : certainly is + isPOSIX_SHELL=: + # you need to eval $local var local=local + : KSH_VERSION=$KSH_VERSION + case "$KSH_VERSION" in + Version*) local=: ;; # broken + esac else + isPOSIX_SHELL=false local=: + false() { + return 1 + } fi ;; esac -DEBUGGING= -DEBUG_DO=: -DEBUG_SKIP= -export DEBUGGING DEBUG_DO DEBUG_SKIP +is_posix_shell() { + $isPOSIX_SHELL + return +} + + +## +# _debugAdd match +# +# Called from _debugOn when $match also appears in $DEBUG_SH with +# a suffix of :debug_add:tag we will add tag to DEBUG_SH +# +_debugAdd() { + eval $local tag + + for tag in `IFS=,; echo $DEBUG_SH` + do + : tag=$tag + case "$tag" in + $1:debug_add:*) + if is_posix_shell; then + tag=${tag#$1:debug_add:} + else + tag=`expr $tag : '.*:debug_add:\(.*\)'` + fi + case ",$DEBUG_SH," in + *,$tag,*) ;; + *) set -x + : _debugAdd $1 + DEBUG_SH=$DEBUG_SH,$tag + set +x + ;; + esac + ;; + esac + done + export DEBUG_SH +} + ## # _debugOn match first # # Actually turn on tracing, set $DEBUG_ON=$match # +# Check if $DEBUG_SH contains $match:debug_add:* and call _debugAdd +# to add the suffix to DEBUG_SH. This useful when we only want +# to trace some script when run under specific circumstances. +# # If we have included hooks.sh $_HOOKS_SH will be set # and if $first (the first arg to DebugOn) is suitable as a variable # name we will run ${first}_debugOn_hooks. @@ -133,6 +190,11 @@ _debugOn() { DEBUG_DO= DEBUG_SKIP=: DEBUG_X=-x + # do this firt to reduce noise + case ",$DEBUG_SH," in + *,$1:debug_add:*) _debugAdd $1;; + *,$2:debug_add:*) _debugAdd $2;; + esac set -x DEBUG_ON=$1 case "$_HOOKS_SH,$2" in From nobody Mon Nov 4 20:41:57 2024 X-Original-To: dev-commits-src-all@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 4Xj3Kx1VzFz5cWwj; Mon, 04 Nov 2024 20:41:57 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj3Kx0vY1z4Q5K; Mon, 4 Nov 2024 20:41:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730752917; 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=+miEW736rUkPApxB9sfxJN7+tKx8E9kpY7VwREFfOfg=; b=Nkf1dUycgU/kGV8ImFpk0Be4YBxhRsmp8F3J1kUUYaFJcPNeUWgyGBMKcXjKGcGvt7ZQ1k rL6WgH4l8CRL8KFNIsxrjji/Z123RysVe8oRKcR8hHxwsvQUJ9hm73l4NmTcCEoVZDtZiK +O/TnVHj2FDYsMJJ7FWq6pYU4lGVuWWpMtCNNFxlgU5WnTbJMc6U1lLDaW0Ph+jjcOuF+n LL7bGRGP/SCZGZq6oV6jma/X3tZuXmf7wUNB64mf9KXnzgP69MxqLXWt/PphsNmCjfq3Vc pHzECxedidjUBA4DwORAvVyx0rla07olVC/dmtDDPpMmk3NjPx2rEpE1uyQFag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730752917; 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=+miEW736rUkPApxB9sfxJN7+tKx8E9kpY7VwREFfOfg=; b=VsZdsNMvhgraXY25NQhh2CYPZJiUw60T8cxH0vpYRuNpXS7/CDBfCz8WqoAU32GmpnlKPo sgT92PAvWXYRBpBO7zFXoHjAfTAkvbstgJV/R/0GozIy86LOzrpLZwk5893vD51iyVGXcF zpuus51ovoPnEg6ilbiQhb7ogN+zeIHP+NiwHPW6xNfjwDKZCnSlJFFqn0Wl60NTTOiAxV FX1LV/OS5xneJo1orqjrKEq/hJs97usLBOXkExXLl7oEOzMJFLIeCY40RcbsB/dHPxiThq PGcHb9FKXlHqADksHWvoxCMUxv9odzAQYlQNcwBApI+q46Z/MiF0a33CRqiM0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730752917; a=rsa-sha256; cv=none; b=fXk+scDvMXw0+FUGPKdpAxUOos5L/e84l/xAQDGqOOJ30oSnE5ywO8+ZZsbmYal2ZkJhaw rV+pxD3unu4t4v0Mws1H2HTJIMgM9RuBlqXMFMT0OElMXgzWrKvD4VkJz/k6sNqLgUbPlu 9rMw8X4kXRn2p5OkUFtcSJnNG0sqYct2p7sgYNxx/fqcHj0i+uEIVwHeH+xT0keINvXxYb /DW6eofQ3i4MTFJG5ksclipbecb41FgmM5LuDumSouSHMgOvVejOLWsKtFdSsPn0fIJlXY LONJSYPiFoKvwfQfZ18BIDgb6F5fYunHaHQ/Q5dVTh9VX3h4crCvOLxQOjzm8A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj3Kx0VkSznc6; Mon, 4 Nov 2024 20:41:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4KfviX010358; Mon, 4 Nov 2024 20:41:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Kfvg7010355; Mon, 4 Nov 2024 20:41:57 GMT (envelope-from git) Date: Mon, 4 Nov 2024 20:41:57 GMT Message-Id: <202411042041.4A4Kfvg7010355@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 4026b17bac6b - main - vt.4: align tables + 80 character line limit List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4026b17bac6b343acc8d3163282749384eb35e26 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=4026b17bac6b343acc8d3163282749384eb35e26 commit 4026b17bac6b343acc8d3163282749384eb35e26 Author: Alexander Ziaee AuthorDate: 2024-11-04 04:48:20 +0000 Commit: Ed Maste CommitDate: 2024-11-04 20:41:26 +0000 vt.4: align tables + 80 character line limit Reviewed by: emaste MFC after: 3 days Pull request: https://github.com/freebsd/freebsd-src/pull/1514 --- share/man/man4/vt.4 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index 6f223d67eb09..4c115b68a80d 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -312,7 +312,7 @@ or changed at runtime with Enable the terminal bell. .El .Sh FILES -.Bl -tag -width /usr/share/vt/keymaps/* -compact +.Bl -tag -width "/usr/share/vt/keymaps/*.kbd" -compact .It Pa /dev/console .It Pa /dev/consolectl .It Pa /dev/ttyv* @@ -325,13 +325,12 @@ console fonts keyboard layouts .El .Sh DEVCTL MESSAGES -.Bl -column "System" "Subsystem" "1234567" -compact +.Bl -column "System" "Subsystem" "Type" "Description" .Sy "System" Ta Sy "Subsystem" Ta Sy "Type" Ta Sy "Description" .It Li VT Ta BELL Ta RING Ta Notification that the console bell has rung. .El -.Pp -.Bl -column "Variable" "Meaning" -compact +.Bl -column "duration_ms" "Meaning" .Sy "Variable" Ta Sy "Meaning" .It Li duration_ms Ta Length of time the bell was requested to ring in milliseconds. .It Li enabled Ta true or false indicating whether or not the bell was administratively enabled when rung. @@ -357,7 +356,8 @@ To set a 1024x768 mode on all output connectors, put the following line in .Pp .Dl kern.vt.fb.default_mode="1024x768" .Pp -To set a 800x600 only on a laptop builtin screen, use the following line instead: +To set a 800x600 only on a laptop builtin screen, +use the following line instead: .Pp .Dl kern.vt.fb.modes.LVDS-1="800x600" .Pp From nobody Mon Nov 4 21:08:50 2024 X-Original-To: dev-commits-src-all@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 4Xj3y86ZvNz5cYHY; Mon, 04 Nov 2024 21:09:52 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [IPv6:2a01:4f8:13b:240c::25]) (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 ECDSA (P-384) client-digest SHA384) (Client CN "mail.bsd4all.net", Issuer "E6" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj3y84QCzz4V8r; Mon, 4 Nov 2024 21:09:52 +0000 (UTC) (envelope-from herbert@gojira.at) Authentication-Results: mx1.freebsd.org; none Date: Mon, 04 Nov 2024 22:08:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1730754584; bh=iI4/Tvjutfo9O8GZXRlS6eOoLbswB5FcFLwyZJTBPWg=; h=Date:Message-ID:From:To:Cc:Subject:MIME-Version:Content-Type; b=IqpSI+CvLWz8lkxCkggmySLZ5pJgJ6GqRlhRPmP03wxq9qpL+GyV23xpz3Ej5AxSg FUchDXTokFlkO7YMF9Tq0Cmfk4LDg32raUlQRzsh4LPtOdvn11vQFAhWzVAsRcN6wY pX4oB7QR7K0DNyhUiyNHeldLEff39VWlypjAeNAE9l3VBkrmpFuvpjiiWm3e+3X7JK R4yht1q2d3szSWuQ09TMaPepJ0TEv80GkanOj93BtkTWANt0q7Ta+7xNXg1OAdgF2v KO5KfaZN8xt1mrYp+usC4GkW+cp1xuO/RQ5q53Qq5i7XNuWHcPOcmanjeKpagpAE39 2y0kGWh5oXXQw== Message-ID: <875xp2puzh.wl-herbert@gojira.at> From: "Herbert J. Skuhra" To: Dima Panov Cc: Dimitry Andric , "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Subject: Re: git: 5deeebd8c6ca - main - Merge llvm-project release/19.x llvmorg-19.1.2-0-g7ba7d8e2f7b6 In-Reply-To: <7eccc976-540e-4f2d-89b5-ae1f989cd419@FreeBSD.org> References: <202410231832.49NIWcTJ078019@gitrepo.freebsd.org> <40b4bd4a-5065-4cec-a59d-42cb456992b2@FreeBSD.org> <6D12AFD9-AFD8-4EA6-B215-B5F8986CB109@FreeBSD.org> <7eccc976-540e-4f2d-89b5-ae1f989cd419@FreeBSD.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/31.0 Mule/6.0 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE] X-Rspamd-Queue-Id: 4Xj3y84QCzz4V8r X-Spamd-Bar: ---- On Mon, 04 Nov 2024 18:07:16 +0100, Dima Panov wrote: > > Indeed, root of evil was hidden in devel/binutils with RELRO option enabled. > After disabling RELRO option in binutils all lang/gcc* build are fine again. > > Anyway it is a big bad regression here. > I have RELRO enabled in binutils port fot long time and had no issues with gcc builds before this llvm19 import. Have you tried to rebuild devel/binutils without disabling RELRO? I have enabled RELRO and rebuilt devel/binutils and I could build lang/gcc14 on arm64. I haven't tried the other gcc ports. From nobody Tue Nov 5 01:29:07 2024 X-Original-To: dev-commits-src-all@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 4Xj9jJ2KYDz5cpYm; Tue, 05 Nov 2024 01:29:08 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9jH71Ppz4rsN; Tue, 5 Nov 2024 01:29:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770148; 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=WXeSAjbXxHyv7o8jR2ZmcQZwcTGNCPozKLWcavhLbkQ=; b=fVda0uqxL9GQNRPemERhzlYbX1vPXvAWabb7KUBXcCP/bbUUVxhbQ5e+y3AbgWTGyDvok9 SoYkJ6X01ap4AHS72wGTy9hpDvjmGyVSjdmmrnKYFXiCOsdkJWma7CfpuOwqSOPM+1zKLD mTk+tXsoqCeVc28cSHwO56JfhiMJfzABvj8Pu1hytNxG+Nek6tVTtYp270mkuBhF4Xz3ok znVLtCJcIJppCtP5YmCYrskXAoM9QRIyzB/uOgjH921kF1pelE1gIXfkKSleZ2/MzB+wib GjvDSikyVvbr5wpQNEn7qPjNhvNjit9w2OwRkSymcZQVboXmlTgRxnoap9yMwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770148; 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=WXeSAjbXxHyv7o8jR2ZmcQZwcTGNCPozKLWcavhLbkQ=; b=UQ01ajgCrXFbtSeKqRLQOvCEAqzPP/WpNdvCg43bGVKAmpZxtXEWI0q1J3FRRTguJzgPPv HelvYroPULnVcNRuy85wSxgp8J7uQmluS2T5HCZWcfFNPh9qAotviwintUiwcC9KGPNfH9 cxZjTLxq4LK8HRiCA+a3DPlO9ioNKKQCgh23+SmWKJYGzwIxtqVxYEFxEavOyma7w0IbuK HAILOPZo5J8xnsQQ6uV13odSab5aPb8ioEm+Ulq84+AfsF/iUD1VDGnQPtiOqzDnplDK/C tpiVccCeur6v+Fx+7USWWi7r0ukeOENVGMlodAEtnhEBy/mAzVhLfmTl+EuxLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770148; a=rsa-sha256; cv=none; b=YgoNHXKdNuBr+ANaluOO+HGVR+0m7oyYt3hg7czkNj15N2ljZmZJqnuWW71MvZUhKK52c1 Q6jfbBYQejG4ZyLfxyfy0A/0y6Yy+wzG3Zq2VdqQFQUjlAqwqMytvuX3mJCCZRszF+X/n6 u8QMWSJoy4X7fuYzk9P6HdsHXmLRuBjWA3blzVY4clX8g0LNaGFoNf8ZHJEk8ZcRqbOFrz bCI5+dlbvSscl7O961mlR41ayZKkO1aurDMUV14CBePmEqcCp5fD7bIKyNJ9xytfaNgTx2 iaoKKl9AsL/N01g4F7PUa6ej4kj3jZ8/uuE5ihBZ9eBkg0W6n4p8yYQ0cHeT5A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9jH4yQmzxJg; Tue, 5 Nov 2024 01:29:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51T7ib031928; Tue, 5 Nov 2024 01:29:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51T7r3031925; Tue, 5 Nov 2024 01:29:07 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:29:07 GMT Message-Id: <202411050129.4A51T7r3031925@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 8922c5b8211e - main - nvmf: Fix an off by one error when scanning active namespace IDs List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8922c5b8211e5b2f64b10791b51d08d5b7945f56 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8922c5b8211e5b2f64b10791b51d08d5b7945f56 commit 8922c5b8211e5b2f64b10791b51d08d5b7945f56 Author: John Baldwin AuthorDate: 2024-11-05 01:27:14 +0000 Commit: John Baldwin CommitDate: 2024-11-05 01:27:14 +0000 nvmf: Fix an off by one error when scanning active namespace IDs The active namespace list query fetches namespaces greater than the passed in namespace ID, not greater than or equal to the passed in namespace ID. Thus, a multi-page request should start with the last namespace ID from the previous page, not that ID plus 1. While here, make use of NVME_GLOBAL_NAMESPACE_TAG instead of a magic number to handle the edge case that the last namespace ID in a page is the largest valid namespace ID. Reviewed by: chuck Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D47393 --- sys/dev/nvmf/host/nvmf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/nvmf/host/nvmf.c b/sys/dev/nvmf/host/nvmf.c index 2c438db2eb23..804e7528c931 100644 --- a/sys/dev/nvmf/host/nvmf.c +++ b/sys/dev/nvmf/host/nvmf.c @@ -376,10 +376,10 @@ nvmf_scan_active_nslist(struct nvmf_softc *sc, struct nvme_ns_list *nslist, MPASS(nsid == nslist->ns[nitems(nslist->ns) - 1] && nsid != 0); - if (nsid >= 0xfffffffd) + if (nsid >= NVME_GLOBAL_NAMESPACE_TAG - 1) *nsidp = 0; else - *nsidp = nsid + 1; + *nsidp = nsid; return (true); } From nobody Tue Nov 5 01:29:08 2024 X-Original-To: dev-commits-src-all@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 4Xj9jK1qnCz5cplM; Tue, 05 Nov 2024 01:29:09 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9jK0lzKz4rmD; Tue, 5 Nov 2024 01:29:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770149; 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=S5sVZKmxdH8eT9UfH9hDeOTEKw1XkE8XmkKTXtNnerw=; b=nargsosMFbxkT/Tiiq1aVXPnSusSA+E6HIllyH0k6gRzIsb8bVCppNaczh8HPUOowi6CmS 851dGisecBzb+n+HXC87qZdmk3dDkD90nLMFQ1naIehlQEEf5FFuabR4964ykIy01U2IBQ PKJxY/TkuouoW0K7jWs4yvJancm5x3yE4Bz5lPjR5YJtIVlR9Zf75kwBQoK3r8jChE5Vq5 ZXIbUnnzDL3r4JdoF1nJ/YVxmWvRtrL/5kiCiocWjiiVXEggiHY74VBprnD5YIMcktyVDA xezMWmDI7hMVFtT56WxwQdl4juqkwpU0MLXrjKzdAtLfq57A0AKBnvRsbjrBNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770149; 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=S5sVZKmxdH8eT9UfH9hDeOTEKw1XkE8XmkKTXtNnerw=; b=mnBGnwY8cX5Xqq0FU54rG4eIbNTlME1DXehNUSejlZWV7PzeKj58erQH07Xl2h0V/9veom q1kilUiYwPfCRv3SnDY+z3qVdpGTC5waWHyTVioh+45lXxeSO0jS36/ENNUWgOrXVakzoh 1SLsO2A7QXaQeMXRE8SWhUtVf3v8BNCbC5x56WiXRs4108KI5miYZxYNCeCuemgOTIDpDz 9j6YLGP5gkTkW9rC3cFrxqN79s1JY2oo4qjTzvPd5mzc7gOJ89ybYKMrA4gSkAi3F2P2EB m2fQfpRqPhh6WgbqV8Fah1IeVEMPR/hR5l7dMvTYR41aorvr1CT1pbyR0d86iA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770149; a=rsa-sha256; cv=none; b=uHZB/Jds/t4ULNWtIUdbM0EG/PsUf0dpkAkH5kpwTLGwoRDEGooEhBY4NxBA0wyb3mVp9y F2DjnOZZtXxIQLbwIQ75bENAPC9cZKX+OjU1xa8ibFxB4LMm3ExSQoianx0OC7MtOhxZEv g7f8/F942RAPKgcPKWXrpiyPHbjkdmEBUYE+VfjuZ1OiXHGW3fVvCqR9dLNmCOiZOHvhdz FvN7RnxGRj2BtENqoZB8W77nrU71QfYWDiGvTqZTCXfJKlUxq5Bm6QtBTMQnVuIsMw0dIh B748aY3ilbBiPaDbz2W97GFNm1RHGM1DQ9GbsZUsC8FFGoTtwf7ENtNV+tTcUA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9jJ62WNzxP6; Tue, 5 Nov 2024 01:29:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51T8Xd032005; Tue, 5 Nov 2024 01:29:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51T8Pt032002; Tue, 5 Nov 2024 01:29:08 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:29:08 GMT Message-Id: <202411050129.4A51T8Pt032002@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 326e20fc1252 - main - nvmecontrol: Refactor devlist implementation List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 326e20fc1252577f96df0e53360507180cc9d153 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=326e20fc1252577f96df0e53360507180cc9d153 commit 326e20fc1252577f96df0e53360507180cc9d153 Author: John Baldwin AuthorDate: 2024-11-05 01:28:26 +0000 Commit: John Baldwin CommitDate: 2024-11-05 01:28:26 +0000 nvmecontrol: Refactor devlist implementation Split out helper functions for scan_namespace and scan_controller. While here, replace sprintf() calls with snprintf() and avoid leaking the contoller fd if read_controller_data() fails. Reviewed by: chuck, imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D47354 --- sbin/nvmecontrol/devlist.c | 99 +++++++++++++++++++++++++++------------------- 1 file changed, 59 insertions(+), 40 deletions(-) diff --git a/sbin/nvmecontrol/devlist.c b/sbin/nvmecontrol/devlist.c index 2b34899d3aea..b2816339bc80 100644 --- a/sbin/nvmecontrol/devlist.c +++ b/sbin/nvmecontrol/devlist.c @@ -89,16 +89,68 @@ ns_get_sector_size(struct nvme_namespace_data *nsdata) } static void -devlist(const struct cmd *f, int argc, char *argv[]) +scan_namespace(int fd, int ctrlr, uint32_t nsid) +{ + struct nvme_namespace_data nsdata; + char name[64]; + uint8_t buf[7]; + uint64_t size; + + if (read_namespace_data(fd, nsid, &nsdata) != 0) + return; + if (nsdata.nsze == 0) + return; + snprintf(name, sizeof(name), "%s%d%s%d", NVME_CTRLR_PREFIX, ctrlr, + NVME_NS_PREFIX, nsid); + size = nsdata.nsze * (uint64_t)ns_get_sector_size(&nsdata); + if (opt.human) { + humanize_number(buf, sizeof(buf), size, "B", + HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); + printf(" %10s (%s)\n", name, buf); + } else { + printf(" %10s (%juMB)\n", name, (uintmax_t)size / 1024 / 1024); + } +} + +static bool +scan_controller(int ctrlr) { struct nvme_controller_data cdata; - struct nvme_namespace_data nsdata; char name[64]; uint8_t mn[64]; - uint8_t buf[7]; uint32_t i; - uint64_t size; - int ctrlr, fd, found, ret; + int fd, ret; + + snprintf(name, sizeof(name), "%s%d", NVME_CTRLR_PREFIX, ctrlr); + + ret = open_dev(name, &fd, 0, 0); + + if (ret == EACCES) { + warnx("could not open "_PATH_DEV"%s\n", name); + return (false); + } else if (ret != 0) + return (false); + + if (read_controller_data(fd, &cdata) != 0) { + close(fd); + return (true); + } + + nvme_strvis(mn, cdata.mn, sizeof(mn), NVME_MODEL_NUMBER_LENGTH); + printf("%6s: %s\n", name, mn); + + for (i = 0; i < cdata.nn; i++) { + scan_namespace(fd, ctrlr, i + 1); + } + + close(fd); + return (true); +} + +static void +devlist(const struct cmd *f, int argc, char *argv[]) +{ + int ctrlr, found; if (arg_parse(argc, argv, f)) return; @@ -108,41 +160,8 @@ devlist(const struct cmd *f, int argc, char *argv[]) while (ctrlr < NVME_MAX_UNIT) { ctrlr++; - sprintf(name, "%s%d", NVME_CTRLR_PREFIX, ctrlr); - - ret = open_dev(name, &fd, 0, 0); - - if (ret == EACCES) { - warnx("could not open "_PATH_DEV"%s\n", name); - continue; - } else if (ret != 0) - continue; - - found++; - if (read_controller_data(fd, &cdata)) - continue; - nvme_strvis(mn, cdata.mn, sizeof(mn), NVME_MODEL_NUMBER_LENGTH); - printf("%6s: %s\n", name, mn); - - for (i = 0; i < cdata.nn; i++) { - if (read_namespace_data(fd, i + 1, &nsdata)) - continue; - if (nsdata.nsze == 0) - continue; - sprintf(name, "%s%d%s%d", NVME_CTRLR_PREFIX, ctrlr, - NVME_NS_PREFIX, i + 1); - size = nsdata.nsze * (uint64_t)ns_get_sector_size(&nsdata); - if (opt.human) { - humanize_number(buf, sizeof(buf), size, "B", - HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); - printf(" %10s (%s)\n", name, buf); - - } else { - printf(" %10s (%juMB)\n", name, (uintmax_t)size / 1024 / 1024); - } - } - - close(fd); + if (scan_controller(ctrlr)) + found++; } if (found == 0) { From nobody Tue Nov 5 01:29:09 2024 X-Original-To: dev-commits-src-all@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 4Xj9jL1MxDz5cpsq; Tue, 05 Nov 2024 01:29:10 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9jL0grHz4rkJ; Tue, 5 Nov 2024 01:29:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770150; 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=merL+sDpTQar0uMic2Ox9ArV/Q2iKgSCApjfIzgD/Kg=; b=nOh4JDTAMSNECW7wzygAWATfLJkaQe2WyYN6QPLP5XCmFyMY3pfWr6DAag92lmR0INS1K9 xZho6XtPxQifgHgoU1vBPEieVh/oySn1GK9n7TCmzInVNAqcsE+D5CVKa4K1OJb79nFElD t82hgb5zoxt1Hw24fDE7whHYoL29P4MEwP1FCa3R4B16O0CA3T3VJlRzbwakbtp28/2zh1 u3Yv/Hrq75PL80hJrq5r34jJHdsv9gYe2Ch2+cumFKl6SbAJh/h6wzfDSGMDepF1b4uFVY eRN2rT/fHC9AX4mvf/snaMCoJblKf6usbTPugJmAAMB/kW7OrTHLZjTtlCKm6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770150; 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=merL+sDpTQar0uMic2Ox9ArV/Q2iKgSCApjfIzgD/Kg=; b=X91Y21JfbD9j0y86cdhQWBNRGR6Xj4OUZNtfkG8fv5e8v35RLKTVFbkly1qykE/+lwx+BU FiNgxOm6w4zpBZgEw7hsmw0VN41aye7tHR6i/gHfCjh9YNsqpwmK1PtZmYAXP9069SkX5g 7GuRIZfd1dBqxlIaZhA0zZrWyzSY6i2zEnqD/kWPoIdnMA0PuvDVDJ8MD/xoDJvUkRh+11 TVO6M6AsVZS1VK8pePA9lEQvUnxA1MclisP6Ps3GxY5rKAF+4JsskmpjXw5y5CkJ8ZcW// CYrF9kRPiRexQJy5Y8xUlvcFj5zMQAb9uXsUka/f0fGVBFT1mDRQMKbRGDCQEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770150; a=rsa-sha256; cv=none; b=n7f52bdTR32IaD3GfSfziJtbe8F4MGo6j+Js2gqW+CkeqOJ+3hpFGU7D7M7W/TL4U/X6oX 5rBRViy4pB7AF/Yx9trY/2D66T5dY6RJOMvDT3LxPJ1Zkx9PlieFLsoYtSiV8OJXXdfe0F o4ogfaCKgwI5fuNevnMYz8EyqFPTUBGdiJ7CJPq7UcnoX1yHkm6ADKL8DOqU9moFHeVKxj LkYuGe0gDPmh7ApuM7If4MDQWCyfrqxo+jVvunUehWV/8NTq164h73/XDUWnCryDRtOQKF kpXb3NLTBbQDnslCTRLvtkUhYsJUHyh3ICWSwicR7ssLuOGrZkqgtmiSqZw0rw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9jK6gcKzwwN; Tue, 5 Nov 2024 01:29:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51T9Ib032058; Tue, 5 Nov 2024 01:29:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51T9uk032055; Tue, 5 Nov 2024 01:29:09 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:29:09 GMT Message-Id: <202411050129.4A51T9uk032055@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 9e1db51d4b5f - main - nvmecontrol: Use active nslist to enumerate namespaces List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9e1db51d4b5fce8a1ea7271018970760e396500c Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9e1db51d4b5fce8a1ea7271018970760e396500c commit 9e1db51d4b5fce8a1ea7271018970760e396500c Author: John Baldwin AuthorDate: 2024-11-05 01:28:40 +0000 Commit: John Baldwin CommitDate: 2024-11-05 01:28:40 +0000 nvmecontrol: Use active nslist to enumerate namespaces Rather than probing all namespace IDs up to cdata.nn for the devlist command, fetch the active namespace list and iterate over that. This can be much quicker on Fabrics controllers which often advertise a large cdata.nn value to support adding additional namespaces at runtime. Reviewed by: chuck Reported by: Neven Z Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D47355 --- sbin/nvmecontrol/devlist.c | 19 ++++++++++++++++--- sbin/nvmecontrol/nvmecontrol.c | 24 ++++++++++++++++++++++++ sbin/nvmecontrol/nvmecontrol.h | 1 + 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/sbin/nvmecontrol/devlist.c b/sbin/nvmecontrol/devlist.c index b2816339bc80..d2386e7ea800 100644 --- a/sbin/nvmecontrol/devlist.c +++ b/sbin/nvmecontrol/devlist.c @@ -116,9 +116,10 @@ static bool scan_controller(int ctrlr) { struct nvme_controller_data cdata; + struct nvme_ns_list nslist; char name[64]; uint8_t mn[64]; - uint32_t i; + uint32_t nsid; int fd, ret; snprintf(name, sizeof(name), "%s%d", NVME_CTRLR_PREFIX, ctrlr); @@ -139,8 +140,20 @@ scan_controller(int ctrlr) nvme_strvis(mn, cdata.mn, sizeof(mn), NVME_MODEL_NUMBER_LENGTH); printf("%6s: %s\n", name, mn); - for (i = 0; i < cdata.nn; i++) { - scan_namespace(fd, ctrlr, i + 1); + nsid = 0; + for (;;) { + if (read_active_namespaces(fd, nsid, &nslist) != 0) + break; + for (u_int i = 0; i < nitems(nslist.ns); i++) { + nsid = nslist.ns[i]; + if (nsid == 0) { + break; + } + + scan_namespace(fd, ctrlr, nsid); + } + if (nsid == 0 || nsid >= NVME_GLOBAL_NAMESPACE_TAG - 1) + break; } close(fd); diff --git a/sbin/nvmecontrol/nvmecontrol.c b/sbin/nvmecontrol/nvmecontrol.c index 8ad9703de9f6..b38fb8038fc3 100644 --- a/sbin/nvmecontrol/nvmecontrol.c +++ b/sbin/nvmecontrol/nvmecontrol.c @@ -142,6 +142,30 @@ read_namespace_data(int fd, uint32_t nsid, struct nvme_namespace_data *nsdata) return (0); } +int +read_active_namespaces(int fd, uint32_t nsid, struct nvme_ns_list *nslist) +{ + struct nvme_pt_command pt; + + memset(&pt, 0, sizeof(pt)); + pt.cmd.opc = NVME_OPC_IDENTIFY; + pt.cmd.nsid = htole32(nsid); + pt.cmd.cdw10 = htole32(2); + pt.buf = nslist; + pt.len = sizeof(*nslist); + pt.is_read = 1; + + if (ioctl(fd, NVME_PASSTHROUGH_CMD, &pt) < 0) + return (errno); + + /* Convert data to host endian */ + nvme_ns_list_swapbytes(nslist); + + if (nvme_completion_is_error(&pt.cpl)) + return (EIO); + return (0); +} + int open_dev(const char *str, int *fd, int write, int exit_on_error) { diff --git a/sbin/nvmecontrol/nvmecontrol.h b/sbin/nvmecontrol/nvmecontrol.h index 394a88608692..968e9c20160e 100644 --- a/sbin/nvmecontrol/nvmecontrol.h +++ b/sbin/nvmecontrol/nvmecontrol.h @@ -81,6 +81,7 @@ int open_dev(const char *str, int *fd, int write, int exit_on_error); void get_nsid(int fd, char **ctrlr_str, uint32_t *nsid); int read_controller_data(int fd, struct nvme_controller_data *cdata); int read_namespace_data(int fd, uint32_t nsid, struct nvme_namespace_data *nsdata); +int read_active_namespaces(int fd, uint32_t nsid, struct nvme_ns_list *nslist); void print_hex(void *data, uint32_t length); void print_namespace(struct nvme_namespace_data *nsdata); void read_logpage(int fd, uint8_t log_page, uint32_t nsid, uint8_t lsp, From nobody Tue Nov 5 01:33:42 2024 X-Original-To: dev-commits-src-all@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 4Xj9pZ6c9rz5cqDf; Tue, 05 Nov 2024 01:33:42 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9pZ5mnMz4sxh; Tue, 5 Nov 2024 01:33:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770422; 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=LDCmomfpZf8C5u42WwKjtqTLJkR7nPOgiwOTZaH9Iaw=; b=MrgMeU9mUhJrhOtdEKV0IsU9XV3TfFTgAVXxYWRffzfq8NbN4oXsvI+z4uJOehmQV0PEb5 184INVvXia9L761ffa1hAEAyx5XwGlx4keglupj6mr6aRhbx3a8NmC8To0+mgq9p/44kLz 0CriqpfSHWrC7JvI0rlP2Xa2qz33RLwjKwZqH9XHxRMSVTkcMQKE+/99nUee6Lp3C//QWF xwsN6TSB9Z5yLIi9Y4GwtwWQKWErFDfqrC8Cx9hdsyrw9yIzb1VKeu/d8Nn1qb41x/s3/7 n3ob8GIlMajx8nwH4RV2ZJDrzRREfbBjTWNsLSDXvgdcx2XpAto31AYhvB5J1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770422; 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=LDCmomfpZf8C5u42WwKjtqTLJkR7nPOgiwOTZaH9Iaw=; b=lST2Sbd35hDYDk4Yzs7FO8sT9KtniI0njrIBVbv5okLHci+HPrc69h5SwFRcHHnCZNqkzC 3+wgbXb8Xj+S0FLgFopwGQISTJ3mVLGcX9cRlaoxmpozIX2EtzB6z+JV+Vv0BBLvIkxORD oyF1Yr9VjUOaunDRjgKzA9bZMcSh68HVNES82WTel0oJpM9PGy0wssljU2c+2vW1WoyOiX cGKF40KOta7E44+I7OaPIYlbwYVPIwqKKcT8fG5dKzhmkuUxRqkviwR/QNdxUv4Cn6/gkN RfbzAbWQpTYxlQJha9jUhfLHaYoxeoCKWKWu7scnFkr3faMziDjEQ8PapP6DXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770422; a=rsa-sha256; cv=none; b=gt3u/BPax+R5TCA7X9pblORWgI7RFXwNN1QYBHCMV5T1qonMkiNd4VOW4074pDqFYKam8V +mlSdHuNmcdbRs70h6tljZo5ZSsQHR4iXZ9mfZb9J0IgVVgzx0f8atAsJM7sRGXWNju7JN vHMfqOEng3VmpBSHkM91DpzOSZ0/R+R8sfQsKz81iuclkd3vgjtandNF6387HJDEuOgvne sPYjBYzsbhJD6GXnxpf2d5pgp9T9cfrrx4L30Iws22C8MM7JIVoxrCUNHTcvViDuopLxwK RJiOrNXy9M57ADWcMt9v1POYfsm4S2IAWBRBwAOnmcLi96iqHv+2zVzFJorTeQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9pZ5Mj2zx70; Tue, 5 Nov 2024 01:33:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51Xgl2049070; Tue, 5 Nov 2024 01:33:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51XgO4049067; Tue, 5 Nov 2024 01:33:42 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:33:42 GMT Message-Id: <202411050133.4A51XgO4049067@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: d62d10eb1229 - main - Use bus_generic_detach directly instead of a wrapper List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d62d10eb1229c9aa0b3cf1b18872df59c18155db Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d62d10eb1229c9aa0b3cf1b18872df59c18155db commit d62d10eb1229c9aa0b3cf1b18872df59c18155db Author: John Baldwin AuthorDate: 2024-11-05 01:30:13 +0000 Commit: John Baldwin CommitDate: 2024-11-05 01:30:13 +0000 Use bus_generic_detach directly instead of a wrapper Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47386 --- sys/dev/acpica/acpi_container.c | 10 +--------- sys/dev/adb/adb_bus.c | 8 +------- sys/dev/mdio/mdio.c | 10 +--------- 3 files changed, 3 insertions(+), 25 deletions(-) diff --git a/sys/dev/acpica/acpi_container.c b/sys/dev/acpica/acpi_container.c index 0f23f6b25fe1..81a1ee8ce25c 100644 --- a/sys/dev/acpica/acpi_container.c +++ b/sys/dev/acpica/acpi_container.c @@ -38,7 +38,6 @@ ACPI_MODULE_NAME("CONTAINER") static int acpi_syscont_probe(device_t); static int acpi_syscont_attach(device_t); -static int acpi_syscont_detach(device_t); static int acpi_syscont_alloc_msi(device_t, device_t, int count, int maxcount, int *irqs); static int acpi_syscont_release_msi(device_t bus, device_t dev, @@ -54,7 +53,7 @@ static device_method_t acpi_syscont_methods[] = { /* Device interface */ DEVMETHOD(device_probe, acpi_syscont_probe), DEVMETHOD(device_attach, acpi_syscont_attach), - DEVMETHOD(device_detach, acpi_syscont_detach), + DEVMETHOD(device_detach, bus_generic_detach), /* Bus interface */ DEVMETHOD(bus_add_child, bus_generic_add_child), @@ -108,13 +107,6 @@ acpi_syscont_attach(device_t dev) return (bus_generic_attach(dev)); } -static int -acpi_syscont_detach(device_t dev) -{ - - return (bus_generic_detach(dev)); -} - static int acpi_syscont_alloc_msi(device_t bus, device_t dev, int count, int maxcount, int *irqs) diff --git a/sys/dev/adb/adb_bus.c b/sys/dev/adb/adb_bus.c index 8c805254a2e6..9e0d1f2a1ce5 100644 --- a/sys/dev/adb/adb_bus.c +++ b/sys/dev/adb/adb_bus.c @@ -42,7 +42,6 @@ static int adb_bus_probe(device_t dev); static int adb_bus_attach(device_t dev); -static int adb_bus_detach(device_t dev); static void adb_bus_enumerate(void *xdev); static void adb_probe_nomatch(device_t dev, device_t child); static int adb_print_child(device_t dev, device_t child); @@ -57,7 +56,7 @@ static device_method_t adb_bus_methods[] = { /* Device interface */ DEVMETHOD(device_probe, adb_bus_probe), DEVMETHOD(device_attach, adb_bus_attach), - DEVMETHOD(device_detach, adb_bus_detach), + DEVMETHOD(device_detach, bus_generic_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), DEVMETHOD(device_suspend, bus_generic_suspend), DEVMETHOD(device_resume, bus_generic_resume), @@ -188,11 +187,6 @@ adb_bus_enumerate(void *xdev) config_intrhook_disestablish(&sc->enum_hook); } -static int adb_bus_detach(device_t dev) -{ - return (bus_generic_detach(dev)); -} - static void adb_probe_nomatch(device_t dev, device_t child) { diff --git a/sys/dev/mdio/mdio.c b/sys/dev/mdio/mdio.c index c34493254e0f..64d3b23c2372 100644 --- a/sys/dev/mdio/mdio.c +++ b/sys/dev/mdio/mdio.c @@ -59,14 +59,6 @@ mdio_attach(device_t dev) return (bus_generic_attach(dev)); } -static int -mdio_detach(device_t dev) -{ - - bus_generic_detach(dev); - return (0); -} - static int mdio_readreg(device_t dev, int phy, int reg) { @@ -108,7 +100,7 @@ static device_method_t mdio_methods[] = { DEVMETHOD(device_identify, mdio_identify), DEVMETHOD(device_probe, mdio_probe), DEVMETHOD(device_attach, mdio_attach), - DEVMETHOD(device_detach, mdio_detach), + DEVMETHOD(device_detach, bus_generic_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), /* bus interface */ From nobody Tue Nov 5 01:33:43 2024 X-Original-To: dev-commits-src-all@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 4Xj9pc0VZPz5cq3D; Tue, 05 Nov 2024 01:33:44 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9pb6DWQz4tN0; Tue, 5 Nov 2024 01:33:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770423; 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=KYTqBjEio8cnucYU4fGPn5XVZx1rHon4UOzkAH6bB+s=; b=Mh9LQ7ZZpiiHgkjvNDkyyzRrSTrDZqBYND0X8ITx7tNfasbBreOenNi73VK9cEBAOeKX7N d/v3BTdFpPvZL47IBEoz8WpgRUiL0qxJWpkUdZWmzEA+tVNzls1NCAIa0MOtZapTjvT0E1 foGhnH+IELzrOAwoai9+/v4PiLoGXWqohfa1azF/6Un1V4Ml0b9HVCI4F3MNfIkc7f7sqa sUIpznMkt2FfFEIeYONQp/ey0B5m3iejIjxYbTf3UHig9hvIdLjqn0Y5imynmDlBsLUk8M BGySvzAt3F1+yCH/62j51eWZ1yrjEVlb60EhOiuxm5wabO35dOvAGf71Ue1YeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770423; 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=KYTqBjEio8cnucYU4fGPn5XVZx1rHon4UOzkAH6bB+s=; b=qEsAP6wmab6b8e7Cf/HWBvR+/pdEvALiUOaHKlTjTkxTwoxE6tWoY/gIRD0TgAirtmE2sr 6hPldrT25jqRXWiqD9/Ked1kt8O6PfWJb8AOHAj2kdV9nkxiBq/bhTjvpeedbZj68t1ktM 0s0wlwp6PSr8Vou2QmxywBOPJSZtPnetZlL3gIUnENYRmlZf6QKKOODhsbLw1nnnmblBS3 uD/U/0EU/6Ek/VgJI5bzt+29pSSJlbC6dZSPRK2AXyo//yCiPzYyZBTc+mLZXmaJx0H1xz 9QN5+gEn+d4EvP6Trx9YWo7/y5BnERTa/LtU+FAd4HYLVDaXb6SmvEhl7FFtkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770423; a=rsa-sha256; cv=none; b=ei1nruNC7njorlqaF+dshiLorL9qR/VzkN0lHql52cMXR56qHU3LhsChvXe0BlYU6/SM2p Rgy/uC88qJcllnACTPxFMAq28xovoDRKpz/EC1YXnZo7VWEoVD0pnOjvea9h3lwSufZz1O mZjC2dCdorisxndpoJ2umxE0KOnxyX9ZZJlV/uIeJ2G2wKu2Bo5ZErT9KrPphOYHqryfeD Ce4Qy+JrtgyOWFVY66Ss+Db6WkBahALcvtz2GD1BB7qNyIPSfcoD+veNU3GnMu9vbtEraY bC3Fl8N4ucjKbc/koGUlI9oI/pOar+8/acwleDtKf7Y8r2VsrBv7LNlF5ZB+2A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9pb5qXfzxZw; Tue, 5 Nov 2024 01:33:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51XhK3049127; Tue, 5 Nov 2024 01:33:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51XhaP049124; Tue, 5 Nov 2024 01:33:43 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:33:43 GMT Message-Id: <202411050133.4A51XhaP049124@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: d412c07617eb - main - Check for errors when detaching children first, not last List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d412c07617eb35435668b024bc2cecda05f57f1f Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d412c07617eb35435668b024bc2cecda05f57f1f commit d412c07617eb35435668b024bc2cecda05f57f1f Author: John Baldwin AuthorDate: 2024-11-05 01:30:33 +0000 Commit: John Baldwin CommitDate: 2024-11-05 01:30:33 +0000 Check for errors when detaching children first, not last These detach routines in these drivers all ended with 'return (bus_generic_detach())' meaning that if any child device failed to detach, the parent driver was left in a mostly destroyed state, but still marked attached. Instead, bus drivers should detach child drivers first and return errors before destroying driver state in the parent. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47387 --- sys/arm/nvidia/as3722.c | 7 ++++++- sys/arm/nvidia/drm2/tegra_dc.c | 7 ++++++- sys/arm/nvidia/drm2/tegra_hdmi.c | 8 +++++++- sys/arm/nvidia/drm2/tegra_host1x.c | 7 ++++++- sys/arm/nvidia/tegra_abpmisc.c | 7 ++++++- sys/arm/nvidia/tegra_efuse.c | 7 ++++++- sys/arm/nvidia/tegra_i2c.c | 7 ++++++- sys/arm/nvidia/tegra_mc.c | 7 ++++++- sys/arm/nvidia/tegra_rtc.c | 7 ++++++- sys/arm/ti/ti_adc.c | 7 ++++++- sys/arm64/nvidia/tegra210/max77620.c | 7 ++++++- sys/arm64/nvidia/tegra210/max77620_rtc.c | 7 ++++++- sys/dev/dwwdt/dwwdt.c | 7 ++++++- sys/dev/ena/ena.c | 6 +++++- sys/dev/fdt/simplebus.c | 7 ++++++- sys/dev/gve/gve_main.c | 7 ++++++- sys/dev/iicbus/pmic/act8846.c | 7 ++++++- sys/dev/mana/gdma_main.c | 7 ++++++- sys/powerpc/mpc85xx/pci_mpc85xx.c | 7 ++++++- sys/powerpc/powermac/cuda.c | 7 ++++++- sys/powerpc/powermac/pmu.c | 7 ++++++- 21 files changed, 126 insertions(+), 21 deletions(-) diff --git a/sys/arm/nvidia/as3722.c b/sys/arm/nvidia/as3722.c index ca5f7372aed1..ed5f47363b01 100644 --- a/sys/arm/nvidia/as3722.c +++ b/sys/arm/nvidia/as3722.c @@ -343,6 +343,11 @@ static int as3722_detach(device_t dev) { struct as3722_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); if (sc->irq_h != NULL) @@ -351,7 +356,7 @@ as3722_detach(device_t dev) bus_release_resource(dev, SYS_RES_IRQ, 0, sc->irq_res); LOCK_DESTROY(sc); - return (bus_generic_detach(dev)); + return (0); } static phandle_t diff --git a/sys/arm/nvidia/drm2/tegra_dc.c b/sys/arm/nvidia/drm2/tegra_dc.c index f4168f161f5e..a8a0e3f4abf8 100644 --- a/sys/arm/nvidia/drm2/tegra_dc.c +++ b/sys/arm/nvidia/drm2/tegra_dc.c @@ -1393,6 +1393,11 @@ static int dc_detach(device_t dev) { struct dc_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); @@ -1412,7 +1417,7 @@ dc_detach(device_t dev) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->mem_res); LOCK_DESTROY(sc); - return (bus_generic_detach(dev)); + return (0); } static device_method_t tegra_dc_methods[] = { diff --git a/sys/arm/nvidia/drm2/tegra_hdmi.c b/sys/arm/nvidia/drm2/tegra_hdmi.c index e5ce30ac2eb3..067df21c889c 100644 --- a/sys/arm/nvidia/drm2/tegra_hdmi.c +++ b/sys/arm/nvidia/drm2/tegra_hdmi.c @@ -1272,6 +1272,12 @@ static int hdmi_detach(device_t dev) { struct hdmi_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); + sc = device_get_softc(dev); TEGRA_DRM_DEREGISTER_CLIENT(device_get_parent(sc->dev), sc->dev); @@ -1294,7 +1300,7 @@ hdmi_detach(device_t dev) bus_release_resource(dev, SYS_RES_IRQ, 0, sc->irq_res); if (sc->mem_res != NULL) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->mem_res); - return (bus_generic_detach(dev)); + return (0); } static device_method_t tegra_hdmi_methods[] = { diff --git a/sys/arm/nvidia/drm2/tegra_host1x.c b/sys/arm/nvidia/drm2/tegra_host1x.c index e04a50e4c003..ee43efba5ba7 100644 --- a/sys/arm/nvidia/drm2/tegra_host1x.c +++ b/sys/arm/nvidia/drm2/tegra_host1x.c @@ -586,6 +586,11 @@ static int host1x_detach(device_t dev) { struct host1x_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); @@ -608,7 +613,7 @@ host1x_detach(device_t dev) if (sc->mem_res != NULL) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->mem_res); LOCK_DESTROY(sc); - return (bus_generic_detach(dev)); + return (0); } static device_method_t host1x_methods[] = { diff --git a/sys/arm/nvidia/tegra_abpmisc.c b/sys/arm/nvidia/tegra_abpmisc.c index 88f9ecde3f31..1f54a918f63b 100644 --- a/sys/arm/nvidia/tegra_abpmisc.c +++ b/sys/arm/nvidia/tegra_abpmisc.c @@ -166,13 +166,18 @@ static int tegra_abpmisc_detach(device_t dev) { struct tegra_abpmisc_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); if (sc->abp_misc_res != NULL) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->abp_misc_res); if (sc->strap_opt_res != NULL) bus_release_resource(dev, SYS_RES_MEMORY, 1, sc->strap_opt_res); - return (bus_generic_detach(dev)); + return (0); } static device_method_t tegra_abpmisc_methods[] = { diff --git a/sys/arm/nvidia/tegra_efuse.c b/sys/arm/nvidia/tegra_efuse.c index 35d9380a18a5..dc637e6d0bec 100644 --- a/sys/arm/nvidia/tegra_efuse.c +++ b/sys/arm/nvidia/tegra_efuse.c @@ -499,6 +499,11 @@ static int tegra_efuse_detach(device_t dev) { struct tegra_efuse_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); dev_sc = NULL; @@ -509,7 +514,7 @@ tegra_efuse_detach(device_t dev) if (sc->mem_res != NULL) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->mem_res); - return (bus_generic_detach(dev)); + return (0); } static device_method_t tegra_efuse_methods[] = { diff --git a/sys/arm/nvidia/tegra_i2c.c b/sys/arm/nvidia/tegra_i2c.c index 0fe1aa7ba48e..b01f1a1fdce4 100644 --- a/sys/arm/nvidia/tegra_i2c.c +++ b/sys/arm/nvidia/tegra_i2c.c @@ -740,6 +740,11 @@ static int tegra_i2c_detach(device_t dev) { struct tegra_i2c_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); tegra_i2c_hw_init(sc); @@ -753,7 +758,7 @@ tegra_i2c_detach(device_t dev) LOCK_DESTROY(sc); if (sc->iicbus) device_delete_child(dev, sc->iicbus); - return (bus_generic_detach(dev)); + return (0); } static phandle_t diff --git a/sys/arm/nvidia/tegra_mc.c b/sys/arm/nvidia/tegra_mc.c index 020c9617b453..0f05c32117e9 100644 --- a/sys/arm/nvidia/tegra_mc.c +++ b/sys/arm/nvidia/tegra_mc.c @@ -280,6 +280,11 @@ static int tegra_mc_detach(device_t dev) { struct tegra_mc_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); if (sc->irq_h != NULL) @@ -290,7 +295,7 @@ tegra_mc_detach(device_t dev) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->mem_res); LOCK_DESTROY(sc); - return (bus_generic_detach(dev)); + return (0); } static device_method_t tegra_mc_methods[] = { diff --git a/sys/arm/nvidia/tegra_rtc.c b/sys/arm/nvidia/tegra_rtc.c index 07bf51628665..09bd42bc64e3 100644 --- a/sys/arm/nvidia/tegra_rtc.c +++ b/sys/arm/nvidia/tegra_rtc.c @@ -266,6 +266,11 @@ static int tegra_rtc_detach(device_t dev) { struct tegra_rtc_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); if (sc->irq_h != NULL) @@ -276,7 +281,7 @@ tegra_rtc_detach(device_t dev) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->mem_res); LOCK_DESTROY(sc); - return (bus_generic_detach(dev)); + return (0); } static device_method_t tegra_rtc_methods[] = { diff --git a/sys/arm/ti/ti_adc.c b/sys/arm/ti/ti_adc.c index 5a3a337afff5..d13dd87001de 100644 --- a/sys/arm/ti/ti_adc.c +++ b/sys/arm/ti/ti_adc.c @@ -915,6 +915,11 @@ static int ti_adc_detach(device_t dev) { struct ti_adc_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); @@ -938,7 +943,7 @@ ti_adc_detach(device_t dev) if (sc->sc_mem_res) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_mem_res); - return (bus_generic_detach(dev)); + return (0); } static device_method_t ti_adc_methods[] = { diff --git a/sys/arm64/nvidia/tegra210/max77620.c b/sys/arm64/nvidia/tegra210/max77620.c index b33d73e71f90..a7d938cb8123 100644 --- a/sys/arm64/nvidia/tegra210/max77620.c +++ b/sys/arm64/nvidia/tegra210/max77620.c @@ -450,6 +450,11 @@ static int max77620_detach(device_t dev) { struct max77620_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); if (sc->irq_h != NULL) @@ -458,7 +463,7 @@ max77620_detach(device_t dev) bus_release_resource(dev, SYS_RES_IRQ, 0, sc->irq_res); LOCK_DESTROY(sc); - return (bus_generic_detach(dev)); + return (0); } static phandle_t diff --git a/sys/arm64/nvidia/tegra210/max77620_rtc.c b/sys/arm64/nvidia/tegra210/max77620_rtc.c index 29808af27819..dca90549443c 100644 --- a/sys/arm64/nvidia/tegra210/max77620_rtc.c +++ b/sys/arm64/nvidia/tegra210/max77620_rtc.c @@ -366,11 +366,16 @@ static int max77620_rtc_detach(device_t dev) { struct max77620_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); LOCK_DESTROY(sc); - return (bus_generic_detach(dev)); + return (0); } /* diff --git a/sys/dev/dwwdt/dwwdt.c b/sys/dev/dwwdt/dwwdt.c index 89f94fff9bad..c433317a8d87 100644 --- a/sys/dev/dwwdt/dwwdt.c +++ b/sys/dev/dwwdt/dwwdt.c @@ -309,6 +309,7 @@ static int dwwdt_detach(device_t dev) { struct dwwdt_softc *sc = device_get_softc(dev); + int error; if (dwwdt_started(sc)) { /* @@ -318,6 +319,10 @@ dwwdt_detach(device_t dev) return (EBUSY); } + error = bus_generic_detach(dev); + if (error != 0) + return (error); + EVENTHANDLER_DEREGISTER(watchdog_list, sc->sc_evtag); sc->sc_evtag = NULL; @@ -337,7 +342,7 @@ dwwdt_detach(device_t dev) sc->sc_mem_res); } - return (bus_generic_detach(dev)); + return (0); } static int diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c index e9d4530e9085..f0b6cec1bb61 100644 --- a/sys/dev/ena/ena.c +++ b/sys/dev/ena/ena.c @@ -4030,6 +4030,10 @@ ena_detach(device_t pdev) return (EBUSY); } + rc = bus_generic_detach(pdev); + if (rc != 0) + return (rc); + ether_ifdetach(adapter->ifp); ifmedia_removeall(&adapter->media); @@ -4096,7 +4100,7 @@ ena_detach(device_t pdev) free(ena_dev, M_DEVBUF); - return (bus_generic_detach(pdev)); + return (0); } /****************************************************************************** diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c index 37db238f2108..0f41d3433d75 100644 --- a/sys/dev/fdt/simplebus.c +++ b/sys/dev/fdt/simplebus.c @@ -189,12 +189,17 @@ int simplebus_detach(device_t dev) { struct simplebus_softc *sc; + int rv; + + rv = bus_generic_detach(dev); + if (rv != 0) + return (rv); sc = device_get_softc(dev); if (sc->ranges != NULL) free(sc->ranges, M_DEVBUF); - return (bus_generic_detach(dev)); + return (0); } void diff --git a/sys/dev/gve/gve_main.c b/sys/dev/gve/gve_main.c index f8a37b9f37a9..15d57ed0f2ac 100644 --- a/sys/dev/gve/gve_main.c +++ b/sys/dev/gve/gve_main.c @@ -820,6 +820,11 @@ gve_detach(device_t dev) { struct gve_priv *priv = device_get_softc(dev); if_t ifp = priv->ifp; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); ether_ifdetach(ifp); @@ -836,7 +841,7 @@ gve_detach(device_t dev) taskqueue_free(priv->service_tq); if_free(ifp); - return (bus_generic_detach(dev)); + return (0); } static device_method_t gve_methods[] = { diff --git a/sys/dev/iicbus/pmic/act8846.c b/sys/dev/iicbus/pmic/act8846.c index 5e166247f79b..e55fc70986a8 100644 --- a/sys/dev/iicbus/pmic/act8846.c +++ b/sys/dev/iicbus/pmic/act8846.c @@ -226,11 +226,16 @@ static int act8846_detach(device_t dev) { struct act8846_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); LOCK_DESTROY(sc); - return (bus_generic_detach(dev)); + return (0); } static device_method_t act8846_methods[] = { diff --git a/sys/dev/mana/gdma_main.c b/sys/dev/mana/gdma_main.c index 59ac6911c784..b339badad925 100644 --- a/sys/dev/mana/gdma_main.c +++ b/sys/dev/mana/gdma_main.c @@ -1879,6 +1879,11 @@ static int mana_gd_detach(device_t dev) { struct gdma_context *gc = device_get_softc(dev); + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); mana_remove(&gc->mana); @@ -1890,7 +1895,7 @@ mana_gd_detach(device_t dev) pci_disable_busmaster(dev); - return (bus_generic_detach(dev)); + return (0); } diff --git a/sys/powerpc/mpc85xx/pci_mpc85xx.c b/sys/powerpc/mpc85xx/pci_mpc85xx.c index f4080ce3b75c..8e349df03a51 100644 --- a/sys/powerpc/mpc85xx/pci_mpc85xx.c +++ b/sys/powerpc/mpc85xx/pci_mpc85xx.c @@ -673,12 +673,17 @@ static int fsl_pcib_detach(device_t dev) { struct fsl_pcib_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); mtx_destroy(&sc->sc_cfg_mtx); - return (bus_generic_detach(dev)); + return (0); } static int diff --git a/sys/powerpc/powermac/cuda.c b/sys/powerpc/powermac/cuda.c index 4d120747e0f0..367eb7a059c2 100644 --- a/sys/powerpc/powermac/cuda.c +++ b/sys/powerpc/powermac/cuda.c @@ -259,6 +259,11 @@ cuda_attach(device_t dev) static int cuda_detach(device_t dev) { struct cuda_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); @@ -267,7 +272,7 @@ static int cuda_detach(device_t dev) { bus_release_resource(dev, SYS_RES_MEMORY, sc->sc_memrid, sc->sc_memr); mtx_destroy(&sc->sc_mutex); - return (bus_generic_detach(dev)); + return (0); } static uint8_t diff --git a/sys/powerpc/powermac/pmu.c b/sys/powerpc/powermac/pmu.c index 2d38545a7046..e0358c6f9887 100644 --- a/sys/powerpc/powermac/pmu.c +++ b/sys/powerpc/powermac/pmu.c @@ -524,6 +524,11 @@ static int pmu_detach(device_t dev) { struct pmu_softc *sc; + int error; + + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); @@ -535,7 +540,7 @@ pmu_detach(device_t dev) bus_release_resource(dev, SYS_RES_MEMORY, sc->sc_memrid, sc->sc_memr); mtx_destroy(&sc->sc_mutex); - return (bus_generic_detach(dev)); + return (0); } static uint8_t From nobody Tue Nov 5 01:33:44 2024 X-Original-To: dev-commits-src-all@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 4Xj9pd44XWz5cq1Y; Tue, 05 Nov 2024 01:33:45 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9pd0VRnz4tHq; Tue, 5 Nov 2024 01:33:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770425; 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=TsHsV9oBxDBHQYFSwNpIrJUUuwJ1rIP3Cj7BliJJYR0=; b=RnDLn2baBN+UB6Bf8ZK8W4sToGrKawxDI2XRL9YwdRVhWk9QDyzrsZym5DGnnvSEDl7UjT AGI2mFJXj1BLK3J/pROqd9FVSO3O3hxdiKxJwvzm/uc/NrwOhd1eOivkuJVRmy6zHSKUlA LCirzTzUMkkjknJ28GhPBTK2zBP4KJFT62xTpnCyVStXq4b2cz1IPKsXsYdKR/sDav/mTn AwYlv64JYmkkZrXEd2Q6vRRKsrmSr878LQeHPNTQtE6l/bgmuXtGwVcsqXBFkEgs12RQZF r6m169oAHp6p9KD6ePWGJLW6jcSjtiIz6wi2osjAUoyXn3DWpRv69x1/DjYY0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770425; 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=TsHsV9oBxDBHQYFSwNpIrJUUuwJ1rIP3Cj7BliJJYR0=; b=sEdai2Hh7RtFRnSUoZiFmohPqqfQc8+AbfENwFBSi8rAFZkZVa7ppcWi6w+SeX5Nub4qs3 gotpHNvdigUlaFbLdetGkfguY8RdlpkFR7i/UBr5GY5GceBYOlcSE4wy0VYipkrZORsRQf wPL363/3H4GbDtJGYnlr1UMd+ZwEshNCRjP9x0KlQMRSghqVb2wPk4EEiHFA92rGQ9xP7w 9nDBzTZg4hd3LuXC46SI/RoQBBmtTavEu8dkc8TI2VNsZIAm86JaFI2NRbRUEicWuNsTEV teByIlhd3/aBUxuDpFw+w4UqTIurQNQNPmVABmNfFpc0YuyxT3HHep2Pl2MvHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770425; a=rsa-sha256; cv=none; b=s9TD+VJtb3Kx9sueWhGnjw8Ef+UVF0dDlEcPVdVw5A4wn/7iGbCc6ysyhJSsjf4pmP1lNr r6kTVe6sRACoQbPZyjMJhUswGYwgsQEJy7HNJyqCoidjsm7u2VBkFwS5Cgw03n2GApejQZ WTHIq6dSPWdfWrTQwQod0OoPGKc9tQ8wa7HHcFYmCzHuuCVK4+oQIL+bzuCVID9EfNNP+j SqF8lnHewicR2JpOdasYwwEpJWGBNXGvLDIWQ7mGdnSy/8LAz2CtBf8O0HbE8reXWaYHLF NJxbiHOdAxu32I8WqJT8bE6vLQhYlB1Y9s4Cm4nN/35mPyWOKRDeABZic8bpeQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9pc6rxJzwM3; Tue, 5 Nov 2024 01:33:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51XiDW049184; Tue, 5 Nov 2024 01:33:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51Xio5049181; Tue, 5 Nov 2024 01:33:44 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:33:44 GMT Message-Id: <202411050133.4A51Xio5049181@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 24d5a8e6eec2 - main - dpaa2_mc: Check for error the first time bus_generic_detach is called List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 24d5a8e6eec2b9eed9591971f223d79b8d7044c9 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=24d5a8e6eec2b9eed9591971f223d79b8d7044c9 commit 24d5a8e6eec2b9eed9591971f223d79b8d7044c9 Author: John Baldwin AuthorDate: 2024-11-05 01:30:53 +0000 Commit: John Baldwin CommitDate: 2024-11-05 01:30:53 +0000 dpaa2_mc: Check for error the first time bus_generic_detach is called This removes the need for the second call. Reviewed by: dsl Differential Revision: https://reviews.freebsd.org/D47388 --- sys/dev/dpaa2/dpaa2_mc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/dev/dpaa2/dpaa2_mc.c b/sys/dev/dpaa2/dpaa2_mc.c index da8f8a077d6b..c7553e8a514a 100644 --- a/sys/dev/dpaa2/dpaa2_mc.c +++ b/sys/dev/dpaa2/dpaa2_mc.c @@ -281,7 +281,9 @@ dpaa2_mc_detach(device_t dev) struct dpaa2_devinfo *dinfo = NULL; int error; - bus_generic_detach(dev); + error = bus_generic_detach(dev); + if (error != 0) + return (error); sc = device_get_softc(dev); if (sc->rcdev) @@ -292,10 +294,6 @@ dpaa2_mc_detach(device_t dev) if (dinfo) free(dinfo, M_DPAA2_MC); - error = bus_generic_detach(dev); - if (error != 0) - return (error); - return (device_delete_children(dev)); } From nobody Tue Nov 5 01:33:45 2024 X-Original-To: dev-commits-src-all@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 4Xj9pf2QSdz5cqRN; Tue, 05 Nov 2024 01:33:46 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9pf0Ww1z4tLG; Tue, 5 Nov 2024 01:33:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770426; 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=KGI3G7YsDxTymlgnA50ELe9wzCPa8pVwOKPwwRmQQwM=; b=IuNr5BmJ83eoeVsfXJ8tkvu3JWeZPUNRjhPXexMQtb0PW4jKTAhEDQWJLyxoEiQZ8uudx7 yAfIvvvVk8yh+pwQOW//z6jsD4hQqeCgYnpEk6B6QBcfbE9Jnjcn3UHYI8YBkyIrVg81Br UyMtZ7+84X4fjvT30lG1Elzmis3noGi5KRyYJ7udwtC+3qfpp7+hKynCOL77B0EzDEi7v0 WIYEMvIUP4zkHNRmKM/ClYizhyNeucqOF6RkL0HKqI2ciwPa3+f4lSRECP3v8k+JlC+52K 5j6/KtZ/SZd8+F6nS0Zn/Hf0sz8CC/e/NNnLZM9OL/AIs1XjJ+DqhdhJ9STMTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770426; 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=KGI3G7YsDxTymlgnA50ELe9wzCPa8pVwOKPwwRmQQwM=; b=IIo0msa2afDBczSOZSgiy4Zye/iJVkgQzJBvAnHEy1dvAfuI+h4ENexHK7QZ9IvUbWjOzG Xnxiit8zYqLsS9lEj+voNvg28CZIrz+pkXX1CJ9vLmN540C5Q4jNvxMY7ncYtJvJuN5P5g FQAssagoiWL4HrVI35dz6hw+knP/MyuWfpMeAKgz2uAGph3AEWz7AZ4ZupPKMF/pCNWMu8 sb/fKIfozCJR/iomyJu1DuImgZEqFwPGLSq5RtznjacadYMKqFfKHJ+eaIlNb0vOOEz1s7 L32fYa0IXSmn24uoEg7aOtIDy7qSdNpd/ax5I4Aa5bey+7oiCN/kIKBz/a0CKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770426; a=rsa-sha256; cv=none; b=uyVYHwIp6MSf0wdWoCqrAlaS/ZM4pgZSsOkVcXFpDCPKglQArksk7+fQzeZeuRQD3a+9O6 onGJC6XvKU4vxokF30WBS6fS/t8J58AX6nDeS/U5Y8uIM0wG0/leJwWKSITDP1Kt50qzTv D8ZBa5AGqFgps5Yxx5vKbVlIULlSOm2eTIeLLJanGVTxe1QRB59j5oc8SsPFlDl/XKDM4A sbeP3i5mr0lwsuY8lBg/xumeSCWmSB2i3JwLov55nMg7Y1y3I15G5zOKelFpouGAw0+1Ki lZGd+vTkE8RSZs9ySfq6nu9Trn89MjWe+u0+X0YS0QETYc7w4hQp5KoLgftetw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9pf07n5zx5Z; Tue, 5 Nov 2024 01:33:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51XjM6049230; Tue, 5 Nov 2024 01:33:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51Xjia049227; Tue, 5 Nov 2024 01:33:45 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:33:45 GMT Message-Id: <202411050133.4A51Xjia049227@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 7ebc7d1ab76b - main - Remove bogus detach routines List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7ebc7d1ab76b9d06be9400d6c9fc74fcc43603a1 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7ebc7d1ab76b9d06be9400d6c9fc74fcc43603a1 commit 7ebc7d1ab76b9d06be9400d6c9fc74fcc43603a1 Author: John Baldwin AuthorDate: 2024-11-05 01:31:16 +0000 Commit: John Baldwin CommitDate: 2024-11-05 01:31:16 +0000 Remove bogus detach routines These drivers are not bus drivers, and would need proper detach routines that tore down state stored in the softc. Better to just fail detach outright instead of an incorrect success. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47389 --- sys/dev/gpio/gpiomdio.c | 1 - sys/dev/sff/sfp_fdt.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sys/dev/gpio/gpiomdio.c b/sys/dev/gpio/gpiomdio.c index deb9a25bd290..dc43b2783bc5 100644 --- a/sys/dev/gpio/gpiomdio.c +++ b/sys/dev/gpio/gpiomdio.c @@ -213,7 +213,6 @@ static device_method_t gpiomdio_methods[] = { /* Device interface */ DEVMETHOD(device_probe, gpiomdio_probe), DEVMETHOD(device_attach, gpiomdio_attach), - DEVMETHOD(device_detach, bus_generic_detach), /* MDIO interface */ DEVMETHOD(miibus_readreg, gpiomdio_readreg), diff --git a/sys/dev/sff/sfp_fdt.c b/sys/dev/sff/sfp_fdt.c index 7430282ede70..e566d8ced78c 100644 --- a/sys/dev/sff/sfp_fdt.c +++ b/sys/dev/sff/sfp_fdt.c @@ -138,7 +138,6 @@ static device_method_t sfp_fdt_methods[] = { /* Device interface */ DEVMETHOD(device_probe, sfp_fdt_probe), DEVMETHOD(device_attach, sfp_fdt_attach), - DEVMETHOD(device_detach, bus_generic_detach), /* SFF */ DEVMETHOD(sff_get_i2c_bus, sfp_fdt_get_i2c_bus), From nobody Tue Nov 5 01:33:47 2024 X-Original-To: dev-commits-src-all@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 4Xj9pg4zLMz5cqHN; Tue, 05 Nov 2024 01:33:47 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9pg2BB3z4tJP; Tue, 5 Nov 2024 01:33:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770427; 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=a3yaYcKs5GTHVMrEUXRUhb7ADtKyJ99S0BEM2so85oo=; b=BMr3+GPYHvIqEgkrZt5HM54Azczh//LnbxnvRj7sREFzOSTJUgTrMBOWjDYJuh8pPTx1AI 6tnUF/xzJbBePlUrbsV50BwLJAzc0p5PzNeY5/Zexwye1fs7GZzJs6wjdAY8MlBFMYMiD2 CM21ZWo+MvRtO8vrRJwBb2HIjMUZIHk7fT/EbPD5O2XZcgcaYkjN8elrGSRXED72g9aagf ArVeAqU/tM0wkI/aWPY6A95bfrBqAYK3sxtwpFEml5TmFwb2OG5ExhGnc5vgqXDlPIRBOO XpFWpk7O+lrPymMdN2rqbIxXnkpg77EIeFLcx+Y9PU9OxbMnvLDYcKmsYfcrnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770427; 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=a3yaYcKs5GTHVMrEUXRUhb7ADtKyJ99S0BEM2so85oo=; b=pHWu6CZCJVs7hHtJ8MM5Mv6ljSyyQfUIy6fN+uG2okpwQ7BjW+zOKpE9L2jrU3ObBFaqWS NSNphmfvlvrSk7EPuw5JgMFWIecY6pkQVmMH1DO3NcdsvVF9UTRg/N1xgQ/zH5ED7VRkXi RGR3oK3sOsF3g9USnv9JZac/blhL7bkN5k9ycdlkSFIe3bsIyri5TrZhy6LysKjBW6swzp mKXxhjKYhTSy4c+N3buaDtGKL9WR381nlpVFCVqQj2toNKzaX4BLUkIbSCOU0lCo14YOkf pP6RQi1sgEpwtLJv1hEY9/KJP83FXO43Fce0fYca/4zqbEuyd52WLer3fJGj0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770427; a=rsa-sha256; cv=none; b=JJGQDv0HmErNvIPhDrWoOXkKulIdMUTartLMk41vZ/92kgtZR3hdI7RniXNTxUDZMzu6yW O68ZsbEfcG9wP67dp9bmLcbqMJ+5U7n+RTroceWj4YdLclGogvtGsoYwLqVRdTbrxFYFSh ve+PfR4hRTnB/Dz+lrFGrmjVRLiWAKW0MJjMBdTTkmfGZ0S9ukcO4F92ykPaSqbIa0Hszu AofT4zFied9gR8JzTPLtf1qB61ObW8PuBLPO9X2wxaJ70wiPiD/pjz13+xno9egKXLp6at XbOZuY62GASi+HBDd/J6HA8/Ks1J2KBYD1XqDsAHDjclhPCrO7uzdZkYAdlFxQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9pg14cMzxYk; Tue, 5 Nov 2024 01:33:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51XlCe049282; Tue, 5 Nov 2024 01:33:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51XlG1049279; Tue, 5 Nov 2024 01:33:47 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:33:47 GMT Message-Id: <202411050133.4A51XlG1049279@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 8b54d874c70d - main - hifn/safe: Remove dummy calls to bus_generic_detach List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b54d874c70d9fb3ed2e059f65c91b3e0eaadbd7 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8b54d874c70d9fb3ed2e059f65c91b3e0eaadbd7 commit 8b54d874c70d9fb3ed2e059f65c91b3e0eaadbd7 Author: John Baldwin AuthorDate: 2024-11-05 01:31:30 +0000 Commit: John Baldwin CommitDate: 2024-11-05 01:31:30 +0000 hifn/safe: Remove dummy calls to bus_generic_detach These drivers do not add child devices, so there's no need to try to detach children. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47390 --- sys/dev/hifn/hifn7751.c | 2 -- sys/dev/safe/safe.c | 1 - 2 files changed, 3 deletions(-) diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c index 23cf019b93a6..2e7545779b09 100644 --- a/sys/dev/hifn/hifn7751.c +++ b/sys/dev/hifn/hifn7751.c @@ -637,8 +637,6 @@ hifn_detach(device_t dev) crypto_unregister_all(sc->sc_cid); - bus_generic_detach(dev); /*XXX should be no children, right? */ - bus_teardown_intr(dev, sc->sc_irq, sc->sc_intrhand); /* XXX don't store rid */ bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq); diff --git a/sys/dev/safe/safe.c b/sys/dev/safe/safe.c index da2afbd38fad..c512f3fc62c0 100644 --- a/sys/dev/safe/safe.c +++ b/sys/dev/safe/safe.c @@ -464,7 +464,6 @@ safe_detach(device_t dev) mtx_destroy(&sc->sc_ringmtx); safe_dma_free(sc, &sc->sc_ringalloc); - bus_generic_detach(dev); bus_teardown_intr(dev, sc->sc_irq, sc->sc_ih); bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sc_irq); From nobody Tue Nov 5 01:40:50 2024 X-Original-To: dev-commits-src-all@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 4Xj9yq3D8Vz5cqcG; Tue, 05 Nov 2024 01:40:51 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9yq1FZ6z3wfC; Tue, 5 Nov 2024 01:40:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770851; 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=uup+6Z8gu1lyBEm/81xl9v1/12AemxtsP1Kn9bNaaFU=; b=NxBx9va8YzUqh0dnkqY3WyT0EQDUsUK7zdZCwlMpV0oykWs1Y2nnGsCENvlPEjJc/6P3gF dZ1QZJlFm5TBeYowV1ct3xeYsVfwPml0jvWcCRaFO0VqpOz8t9NUWxR0teluuw6DNIpWxw JevpLxfOr2RBp13wx2/y9MosX3azVMvV8XOKmBHYPDi4wRfJpt/YeoO+Ctb2NP8DxY/dre MQZVJ8G6KdpeVrtr4ChxT4yZ0p1ZP4u2GkSQAIBk7BbWm0jcMrjfHUeCgDkLtiMV0henzB UHQRuuyIlVdJavQcFDAX5FIW59jAFyGBryB8+KWWQ7ehURGINEQr0L6Kdedsig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770851; 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=uup+6Z8gu1lyBEm/81xl9v1/12AemxtsP1Kn9bNaaFU=; b=YP6U6QIeTMUFs854qYYGGWi5HvrxQLd8kyBL6pJl2arN8y73+x8egYAQNhB+8Tipc4mtlL cgk3UU3wg8moAvkBOm0DjTwDFfroaLyBgjzymzpVbXLg5LBM5bwTsYEG6P83lX5a2M4g3X c9wNwSN83OfJ5DPWVeaP0r9mX/Ag6rfakqDvRKSqgRHP/KhBDnmHf7GmdamhswFHVawgzw j+0TRbKy4mVXcJGCDMwLx72vV70QcaoorVfv4sKXfixihAn6yCt6fOC107mfgdsWgJ1drd 6/toSNFD5zhOrRgA86PvQxl5/DSoOmx7l7+hUVgKpHU6KwC/7bhzc63J3/hZTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770851; a=rsa-sha256; cv=none; b=rhJxtoIA/Jxc41JXvBz7gbnCWVO/JAoOJ3uMOaihmsLWAHVOKwAd2az+nPamCSROkt7ARO w6Nm3SnoAsDJFiOKaT75ubAY8Iva55aU+x/z8Ld4OFxwek0Fc9xwPTWYKoa9CxSoMTdQBQ 9M6TwOEWPytzxuGis+yycnYZ5mBLwpkTAxy4fWdlhjgeHTC5v3NFXYJYS0wKOtXvWwc2FE o12kYEITL5kknC2y7ybZ+KVuPA1gD0HIte0nHyQtssantmGVWZb/5fCJm9HvFH/2cRZDDT yCm+ozZQiQpyOJwEOWzrxk0Lr5VbGus+6VICsQiuQXSXHyrbod/uVQG/XfTdhw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9yp74VdzxKb; Tue, 5 Nov 2024 01:40:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51eofB062655; Tue, 5 Nov 2024 01:40:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51eoLC062652; Tue, 5 Nov 2024 01:40:50 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:40:50 GMT Message-Id: <202411050140.4A51eoLC062652@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: a97f683fe3c4 - main - vmm: Add a device file interface for creating and destroying VMs List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a97f683fe3c425b425cf8cc466319f54ea957c20 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=a97f683fe3c425b425cf8cc466319f54ea957c20 commit a97f683fe3c425b425cf8cc466319f54ea957c20 Author: Mark Johnston AuthorDate: 2024-11-05 01:36:06 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 01:40:41 +0000 vmm: Add a device file interface for creating and destroying VMs This supersedes the sysctl interface, which has the limitations of being root-only and not supporting automatic resource destruction, i.e., we cannot easily destroy VMs automatically when bhyve terminates. For now, two ioctls are implemented VMMCTL_VM_CREATE and VMMCTL_VM_DESTROY. Eventually I would like to support tying a VM's lifetime to that of the descriptor, so that it is automatically destroyed when the descriptor is closed. However, this will require some work in bhyve: when the guest wants to reboot, bhyve exits with a status that indicates that it is to be restarted. This is incompatible with the idea of tying a VM's lifetime to that of a descriptor, since we want to avoid creating and destroying a VM across each reboot (as this involves freeing all of the guest memory, among other things). One possible design would be to decompose bhyve into two processes, a parent which handles reboots, and a child which runs in capability mode and handles guest execution. In any case, this gets us closer to addressing the shortcomings mentioned above. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D47028 --- sys/amd64/vmm/vmm.c | 4 ++- sys/arm64/vmm/vmm.c | 4 ++- sys/dev/vmm/vmm_dev.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++- sys/dev/vmm/vmm_dev.h | 15 +++++++++- 4 files changed, 99 insertions(+), 4 deletions(-) diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c index 07d3f74b8365..77e0adda86f5 100644 --- a/sys/amd64/vmm/vmm.c +++ b/sys/amd64/vmm/vmm.c @@ -465,7 +465,9 @@ vmm_handler(module_t mod, int what, void *arg) switch (what) { case MOD_LOAD: if (vmm_is_hw_supported()) { - vmmdev_init(); + error = vmmdev_init(); + if (error != 0) + break; error = vmm_init(); if (error == 0) vmm_initialized = 1; diff --git a/sys/arm64/vmm/vmm.c b/sys/arm64/vmm/vmm.c index 4127fad5cd59..2f4f3a2b59ea 100644 --- a/sys/arm64/vmm/vmm.c +++ b/sys/arm64/vmm/vmm.c @@ -362,7 +362,9 @@ vmm_handler(module_t mod, int what, void *arg) switch (what) { case MOD_LOAD: /* TODO: if (vmm_is_hw_supported()) { */ - vmmdev_init(); + error = vmmdev_init(); + if (error != 0) + break; error = vmm_init(); if (error == 0) vmm_initialized = true; diff --git a/sys/dev/vmm/vmm_dev.c b/sys/dev/vmm/vmm_dev.c index a43d642b3925..4bea4360a51c 100644 --- a/sys/dev/vmm/vmm_dev.c +++ b/sys/dev/vmm/vmm_dev.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -917,11 +918,88 @@ SYSCTL_PROC(_hw_vmm, OID_AUTO, create, NULL, 0, sysctl_vmm_create, "A", NULL); -void +static int +vmmctl_open(struct cdev *cdev, int flags, int fmt, struct thread *td) +{ + int error; + + error = vmm_priv_check(td->td_ucred); + if (error != 0) + return (error); + + if ((flags & FWRITE) == 0) + return (EPERM); + + return (0); +} + +static int +vmmctl_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag, + struct thread *td) +{ + int error; + + switch (cmd) { + case VMMCTL_VM_CREATE: { + struct vmmctl_vm_create *vmc; + + vmc = (struct vmmctl_vm_create *)data; + vmc->name[VM_MAX_NAMELEN] = '\0'; + for (size_t i = 0; i < nitems(vmc->reserved); i++) { + if (vmc->reserved[i] != 0) { + error = EINVAL; + return (error); + } + } + + error = vmmdev_create(vmc->name, td->td_ucred); + break; + } + case VMMCTL_VM_DESTROY: { + struct vmmctl_vm_destroy *vmd; + + vmd = (struct vmmctl_vm_destroy *)data; + vmd->name[VM_MAX_NAMELEN] = '\0'; + for (size_t i = 0; i < nitems(vmd->reserved); i++) { + if (vmd->reserved[i] != 0) { + error = EINVAL; + return (error); + } + } + + error = vmmdev_lookup_and_destroy(vmd->name, td->td_ucred); + break; + } + default: + error = ENOTTY; + break; + } + + return (error); +} + +static struct cdevsw vmmctlsw = { + .d_name = "vmmctl", + .d_version = D_VERSION, + .d_open = vmmctl_open, + .d_ioctl = vmmctl_ioctl, +}; + +int vmmdev_init(void) { + struct cdev *cdev; + int error; + + error = make_dev_p(MAKEDEV_CHECKNAME, &cdev, &vmmctlsw, NULL, + UID_ROOT, GID_WHEEL, 0600, "vmmctl"); + if (error) + return (error); + pr_allow_flag = prison_add_allow(NULL, "vmm", NULL, "Allow use of vmm in a jail."); + + return (0); } int diff --git a/sys/dev/vmm/vmm_dev.h b/sys/dev/vmm/vmm_dev.h index a2dc4d11f359..410066c49cf2 100644 --- a/sys/dev/vmm/vmm_dev.h +++ b/sys/dev/vmm/vmm_dev.h @@ -18,7 +18,7 @@ struct thread; struct vm; struct vcpu; -void vmmdev_init(void); +int vmmdev_init(void); int vmmdev_cleanup(void); int vmmdev_machdep_ioctl(struct vm *vm, struct vcpu *vcpu, u_long cmd, caddr_t data, int fflag, struct thread *td); @@ -54,4 +54,17 @@ extern const size_t vmmdev_machdep_ioctl_count; #endif /* _KERNEL */ +struct vmmctl_vm_create { + char name[VM_MAX_NAMELEN + 1]; + int reserved[16]; +}; + +struct vmmctl_vm_destroy { + char name[VM_MAX_NAMELEN + 1]; + int reserved[16]; +}; + +#define VMMCTL_VM_CREATE _IOWR('V', 0, struct vmmctl_vm_create) +#define VMMCTL_VM_DESTROY _IOWR('V', 1, struct vmmctl_vm_destroy) + #endif /* _DEV_VMM_DEV_H_ */ From nobody Tue Nov 5 01:40:52 2024 X-Original-To: dev-commits-src-all@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 4Xj9yr53F8z5cqWl; Tue, 05 Nov 2024 01:40:52 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9yr1qSyz4vn6; Tue, 5 Nov 2024 01:40:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770852; 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=dS2MrQCL5QPw47Wf9Suk5pD3zfC1Eq5+PmdGouckjKg=; b=VTqum0T2DHOV6o9LrfHbuU562M4wQcLxDKJV8eaOjXxykX6TijxgDlO99AGCRwfToHn5oW FB7I0k/CWlBAy3RLaBCJH4xpeQMSR/39giLviJJJJ+dXX7JnLXvb5zzEVBHLRsgJSyTH+A M+UzmsdURE22TBZ6lTm9QzVpfpN1JKU83cPFQr/xA8MuVt0E9kRWhc2lXi0EkUoDq5kuAI F7YJHw5G31Z1zRwvYaYQduznt7rJiu7H2nQ/yu5+ls3dN0HKB1ytLFa1Y/Y5buRDl3JCmf T7nKjPUqKjMi8Ko94WdcfLJp1RuquQgvlMAgm9lKqg8qvND7YZy6BTvNhuoWqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770852; 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=dS2MrQCL5QPw47Wf9Suk5pD3zfC1Eq5+PmdGouckjKg=; b=nNw/g+aVesWfMe3onUq4MhkpZEE+voQnzSVVLIN4qviqSWt4XaQ5TqX+SijZWLLgsDbe3F 5N+k5RklvR/thJrQ8oOX1wVByvmayPjmSfOtHObJ+U9XW2MPe2QTkUIpZrZk0w1NXjLuhU BRuHiu16iRRNEQDfZeWZgq3KnUZJ7rjC7fgsQ7DCa8CBgvVaoQwcNkwr1MANCKpveXEjsq UHCgQ/3DQ7yemW6JMaVSnRoF6wSnRfA5uKfKauqj6Cx5z92qlAR+vJRmh+9nGKdjCN4GDJ lNXkd8naobBW/I4IEXAElO4FLHS8bzkT94atwBOqdXmtt3YV6SPwPckmqyhAZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770852; a=rsa-sha256; cv=none; b=KQ3D938BGk8plL0llVAieLz2frbjWT5hFuiMv9canczbthf4oJhH1WqIuUrNTlXhs89P0k udaq5Wi0Asx+pTiyeTz/4jKd5LRLbhsEGu0aWu9tqxnibNYEx3OwCdJb7qoEtaj72rR0Mb LQL5JPCVKFWAkBIa+6yDjRxsvzmJG/XCGuuXT7ZnQcIRDsASDtdUwU4SQVcBO1RF3grNwm uZ3zoGfTbjMnTOfajYUx9EF3p0OLcXUOo5aEY0MObcLwa2be93eaKZ6R1KbqgqG4fVAGvD 0Ei1DEOvbkla0u9xtCjOWQHAFYti7JZD0vev3oQpBwEGCHxmYXdlqVgGdqwDjw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9yr0xVYzxKd; Tue, 5 Nov 2024 01:40:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51eqRZ062694; Tue, 5 Nov 2024 01:40:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51eqFS062691; Tue, 5 Nov 2024 01:40:52 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:40:52 GMT Message-Id: <202411050140.4A51eqFS062691@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: ebd48f1e52d7 - main - include: Install dev/vmm headers List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ebd48f1e52d79ef5d34415d9368c564f3e9bbc08 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ebd48f1e52d79ef5d34415d9368c564f3e9bbc08 commit ebd48f1e52d79ef5d34415d9368c564f3e9bbc08 Author: Mark Johnston AuthorDate: 2024-11-05 01:36:25 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 01:40:41 +0000 include: Install dev/vmm headers In preparation for their use in libvmmapi. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D47029 --- etc/mtree/BSD.include.dist | 2 ++ include/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist index 2b32bcc5f39c..ad1b8a5f7413 100644 --- a/etc/mtree/BSD.include.dist +++ b/etc/mtree/BSD.include.dist @@ -187,6 +187,8 @@ .. vkbd .. + vmm + .. wg .. wi diff --git a/include/Makefile b/include/Makefile index 32774419f162..e0391cac87bb 100644 --- a/include/Makefile +++ b/include/Makefile @@ -52,7 +52,7 @@ LSUBDIRS= dev/acpica dev/agp dev/ciss dev/filemon dev/firewire \ dev/hwpmc dev/hyperv \ dev/ic dev/iicbus dev/io dev/mfi dev/mmc \ dev/ofw dev/pbio dev/pci ${_dev_powermac_nvram} dev/ppbus dev/pwm \ - dev/smbus dev/speaker dev/tcp_log dev/veriexec dev/vkbd dev/wg \ + dev/smbus dev/speaker dev/tcp_log dev/veriexec dev/vkbd dev/vmm dev/wg \ fs/devfs fs/fdescfs fs/msdosfs fs/nfs fs/nullfs \ fs/procfs fs/smbfs fs/udf fs/unionfs \ geom/cache geom/concat geom/eli geom/gate geom/journal geom/label \ From nobody Tue Nov 5 01:40:53 2024 X-Original-To: dev-commits-src-all@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 4Xj9ys3Sgrz5cqV7; Tue, 05 Nov 2024 01:40:53 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9ys2sLLz4vdv; Tue, 5 Nov 2024 01:40:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770853; 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=OOuI5vj/axtKT2MhzWqNdqcV2VbhBj2FNAaunpJ1nHU=; b=fY9ma3FzYw0/pY4vZ1e2Nz5zo/4KaWM/+fcS/3hy+MoPKlXZTYNx0MCUet4rxrzR1gy09q 1AzRiLZadIYgyBuwqS47PC1yuhC1WwBXxYxbkPfPrg3ZFZmvuzso//jkQczOBS88N5aet+ swwK+zdt7ObmsD4PTcqPuifgB5U1zqQ5BUX4OftHobGfR33SrnEXUrct9nL4c1zKTD6Ahx 1FXNf3M4xkZzTnQmG6P+26Sz5mlJl0VTjxKWz3mVCxJPdr2d0x7JSVvcyejnH0kFBTZZvq grgrZU+e8lDLwdVpSSSdy6ZNA2d8Tte2CltK9vlBQFl2W1jLWFEEVO6fSoleEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770853; 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=OOuI5vj/axtKT2MhzWqNdqcV2VbhBj2FNAaunpJ1nHU=; b=JvW6N6lQfn9A2JQb+h7c7v2lNjv6JupLmBze+ul4/70mp3X51kMNGt+A8k+j32RTz/ZeB8 9dzNILH8KGq3x0UJIwyCGiH32udJO+Ojum6GJeKDp0nL7A4v8/feVjqkmhjlyft8Oafwzq y2S7MG4XOPqUDnSH6DGUKPOyyz395btSHCYES7xAy8LfBMbrdNC2IJyaJTwW41XmNueFJo JWrwg3qirck+803ptVYhKjPHNcupzg2J03gxBE1RiiHHzX8TMLj0dzPoQ/zkJ5zewIKi2c DoNLeKIVQ2RNjbRQrrFDfE+XA1YgYDUgBZQj+DchZE152RNSEL/GGZDo2jPvlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770853; a=rsa-sha256; cv=none; b=iBW4gQkz+Lw5P2U+RSzEWw1CTC+k4d6bDu/E6Hrne41vP2m91RjyNkUcmUvSJnS4IXXElG p2eb1/bOxZS00JM27mXh5MPOFqmJcH32HGDCIbAU5wEg/Afxf5sMBmu76oMg8AWiODbKmG b3o7oAog7LmWTGPKxNJvL/UnGQEzqANZf/OjUtr6dtUa2Uq0ib4jkx6qEZ+zUBDHBaScMC MVf+RZ2QI9P33b5DDStqQ+OIZQ9+mYtCDdPPtc3Ov7CVXxVTd3cWhVaARfPbgAlcryaFBR lZu4IpO2OOo9LXgB6lQu+o9QKMU+GHGf6CsjnTb9SMK7qWCMwEkcADB8pyG1Hg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9ys1zmxzxnV; Tue, 5 Nov 2024 01:40:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51er9r062757; Tue, 5 Nov 2024 01:40:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51erMd062754; Tue, 5 Nov 2024 01:40:53 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:40:53 GMT Message-Id: <202411050140.4A51erMd062754@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 99127fd10362 - main - libvmmapi: Use the vmmctl device file to create and destroy VMs List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 99127fd103624de593c7d1d885387e7d3667d73d Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=99127fd103624de593c7d1d885387e7d3667d73d commit 99127fd103624de593c7d1d885387e7d3667d73d Author: Mark Johnston AuthorDate: 2024-11-05 01:36:33 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 01:40:41 +0000 libvmmapi: Use the vmmctl device file to create and destroy VMs This deprecates the vm_create() and vm_open() interfaces and introduces vm_openf(), which takes flags controlling its behaviour. In particular, it will optionally create a VM first, and it can optionally reinitialize an existing VM. This enables some simplification of existing consumers. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D47030 --- lib/libvmmapi/internal.h | 3 +- lib/libvmmapi/vmmapi.c | 104 +++++++++++++++++++++++++++++++++++------------ lib/libvmmapi/vmmapi.h | 3 ++ 3 files changed, 83 insertions(+), 27 deletions(-) diff --git a/lib/libvmmapi/internal.h b/lib/libvmmapi/internal.h index 42be9ec59770..aa7b1d8e6a93 100644 --- a/lib/libvmmapi/internal.h +++ b/lib/libvmmapi/internal.h @@ -16,7 +16,8 @@ enum { }; struct vmctx { - int fd; + int fd; /* device file descriptor */ + int ctlfd; /* vmm control descriptor */ struct { vm_paddr_t base; vm_size_t size; diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 0cf051567110..5042a1f3914e 100644 --- a/lib/libvmmapi/vmmapi.c +++ b/lib/libvmmapi/vmmapi.c @@ -37,6 +37,7 @@ #include #include +#include #include #include #include @@ -50,11 +51,12 @@ #include #include -#include #ifdef WITH_VMMAPI_SNAPSHOT #include #endif +#include + #include "vmmapi.h" #include "internal.h" @@ -78,58 +80,104 @@ #define PROT_RW (PROT_READ | PROT_WRITE) #define PROT_ALL (PROT_READ | PROT_WRITE | PROT_EXEC) -#define CREATE(x) sysctlbyname("hw.vmm.create", NULL, NULL, (x), strlen((x))) -#define DESTROY(x) sysctlbyname("hw.vmm.destroy", NULL, NULL, (x), strlen((x))) - static int vm_device_open(const char *name) { - int fd, len; - char *vmfile; + char devpath[PATH_MAX]; - len = strlen("/dev/vmm/") + strlen(name) + 1; - vmfile = malloc(len); - assert(vmfile != NULL); - snprintf(vmfile, len, "/dev/vmm/%s", name); + assert(strlen(name) <= VM_MAX_NAMELEN); + (void)snprintf(devpath, sizeof(devpath), "/dev/vmm/%s", name); + return (open(devpath, O_RDWR)); +} - /* Open the device file */ - fd = open(vmfile, O_RDWR, 0); +static int +vm_ctl_create(const char *name, int ctlfd) +{ + struct vmmctl_vm_create vmc; - free(vmfile); - return (fd); + memset(&vmc, 0, sizeof(vmc)); + if (strlcpy(vmc.name, name, sizeof(vmc.name)) >= sizeof(vmc.name)) { + errno = ENAMETOOLONG; + return (-1); + } + return (ioctl(ctlfd, VMMCTL_VM_CREATE, &vmc)); } int vm_create(const char *name) { + int error, fd; + /* Try to load vmm(4) module before creating a guest. */ - if (modfind("vmm") < 0) - kldload("vmm"); - return (CREATE(name)); + if (modfind("vmm") < 0) { + error = kldload("vmm"); + if (error != 0) + return (-1); + } + + fd = open("/dev/vmmctl", O_RDWR, 0); + if (fd < 0) + return (fd); + error = vm_ctl_create(name, fd); + if (error != 0) { + error = errno; + (void)close(fd); + errno = error; + return (-1); + } + (void)close(fd); + return (0); } struct vmctx * vm_open(const char *name) +{ + return (vm_openf(name, 0)); +} + +struct vmctx * +vm_openf(const char *name, int flags) { struct vmctx *vm; int saved_errno; + bool created; + + created = false; vm = malloc(sizeof(struct vmctx) + strlen(name) + 1); assert(vm != NULL); - vm->fd = -1; + vm->fd = vm->ctlfd = -1; vm->memflags = 0; vm->name = (char *)(vm + 1); strcpy(vm->name, name); memset(vm->memsegs, 0, sizeof(vm->memsegs)); - if ((vm->fd = vm_device_open(vm->name)) < 0) + if ((vm->ctlfd = open("/dev/vmmctl", O_RDWR, 0)) < 0) + goto err; + + vm->fd = vm_device_open(vm->name); + if (vm->fd < 0 && errno == ENOENT) { + if (flags & VMMAPI_OPEN_CREATE) { + if (vm_ctl_create(vm->name, vm->ctlfd) != 0) + goto err; + vm->fd = vm_device_open(vm->name); + created = true; + } + } + if (vm->fd < 0) + goto err; + + if (!created && (flags & VMMAPI_OPEN_REINIT) != 0 && vm_reinit(vm) != 0) goto err; return (vm); err: saved_errno = errno; - free(vm); + if (created) + vm_destroy(vm); + else + vm_close(vm); errno = saved_errno; return (NULL); } @@ -139,20 +187,24 @@ vm_close(struct vmctx *vm) { assert(vm != NULL); - close(vm->fd); + if (vm->fd >= 0) + (void)close(vm->fd); + if (vm->ctlfd >= 0) + (void)close(vm->ctlfd); free(vm); } void vm_destroy(struct vmctx *vm) { - assert(vm != NULL); + struct vmmctl_vm_destroy vmd; - if (vm->fd >= 0) - close(vm->fd); - DESTROY(vm->name); + memset(&vmd, 0, sizeof(vmd)); + (void)strlcpy(vmd.name, vm->name, sizeof(vmd.name)); + if (ioctl(vm->ctlfd, VMMCTL_VM_DESTROY, &vmd) != 0) + warn("ioctl(VMMCTL_VM_DESTROY)"); - free(vm); + vm_close(vm); } struct vcpu * diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h index 0ea1d5824271..440064ad13cb 100644 --- a/lib/libvmmapi/vmmapi.h +++ b/lib/libvmmapi/vmmapi.h @@ -117,6 +117,9 @@ int vm_munmap_memseg(struct vmctx *ctx, vm_paddr_t gpa, size_t len); int vm_create(const char *name); struct vmctx *vm_open(const char *name); +#define VMMAPI_OPEN_CREATE 0x01 /* create if the VM does not exist */ +#define VMMAPI_OPEN_REINIT 0x02 /* reinitialize the VM if it exists */ +struct vmctx *vm_openf(const char *name, int flags); void vm_close(struct vmctx *ctx); void vm_destroy(struct vmctx *ctx); int vm_limit_rights(struct vmctx *ctx); From nobody Tue Nov 5 01:40:54 2024 X-Original-To: dev-commits-src-all@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 4Xj9yt720Rz5cq8l; Tue, 05 Nov 2024 01:40:54 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9yt4Q40z3wfS; Tue, 5 Nov 2024 01:40:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770854; 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=wBFVm4T2yn3d1D4afyLm9EQ++RKcf+a9yg2uJJwyKZs=; b=a2PjF1o3HldhbUoe0VfQgixX1PicPs5Mo8Gb8IbMsdd6gt7e/XjOowhJP5qbDbB9ItLwvL A6M45M0ssO3Phh0hd4Up0+ZqFGa7bO2fbXlfrSOdPtRA1OIUbPsmuk1Un94GhvyoPSO0lh ucQBFMM9mJhwEeKHwcyL8x2nU5oLaBACZo7mulWiheX2DIh/IAypIo/V58O1TXjuwxGY09 dGRBopYhum77m2eo0qpJZfNxjqTjTBO4i3quxdpJ4aA5L8NWaLwrTB3eLVMej+Nb7v86yE wa29yT45c/TsAX6U+aE+au4fiQvqLFj0+7oyRkSAyRm5gg8Ez7NK43wnKnkYvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770854; 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=wBFVm4T2yn3d1D4afyLm9EQ++RKcf+a9yg2uJJwyKZs=; b=GpULTDXG6JFI/6Fg9OHaGyZViL539So2FxrmChzLEiVBTYycu096dms7Jid9Co3y5fBWpD 7ikqI5tR7degG9eHe0+TzIKDqHSn1D1Y0dGMTaEI3ceSU1MNwXAx/OUFxHohgTF+GjZnO/ w5xWdizTItCPfR82bOtAgJ1rmoHJAL6SDXEfeqLIPXGXcfLzIaDvqn4zZVv7xeUHaYFHjH UnVzyqWXjlUV9i9Ln3jhDA7Hd7JS/CTrOTYmU3HmYCLK8WXymAmxhksQcHDRiv0L9OB6jn C4y2wmk0GnnA6P7cepJqjvr6/DY+X24lmGtwuBcvFGeWVXDQIFZ2zQ9Je2pVJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770854; a=rsa-sha256; cv=none; b=lB31gLfrCwVwV6Hpz1n8nMD3ecTKVKreXTGkBLsy7Ip+2FTRwwxOhwQ4QVZry4hyCCukRV Awh/J3ceduBVXO2TvYb+tV6RwtgkT4xALbBXQoKkGU3GSer2kOaiXd0YKRM+w6gdi7+mwY p/O1FBwSvwV/Lxmu+UmjEOk35puWN20/Jcr4iBKeHQ8GaQdee+J2AxI81wDXEuJP8zYoAM wC+hsdHw48XQduGW7FZWQh8u4zg3vu/V52neYSlaAinoRWrWtYgbKeTG6la3IN7vrqE1Tx 8cszas3oiGPnvYaf9DBZtVdzembdgf6vkZJqz2pn/ghQ03r+nyquGnHEUvJmcA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9yt2hXfzxnW; Tue, 5 Nov 2024 01:40:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51es7v062799; Tue, 5 Nov 2024 01:40:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51es92062796; Tue, 5 Nov 2024 01:40:54 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:40:54 GMT Message-Id: <202411050140.4A51es92062796@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: c2b34d060705 - main - bhyvectl: Convert to use vm_openf() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c2b34d060705879d78bbce7e62f9fb35fb13bc55 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=c2b34d060705879d78bbce7e62f9fb35fb13bc55 commit c2b34d060705879d78bbce7e62f9fb35fb13bc55 Author: Mark Johnston AuthorDate: 2024-11-05 01:36:52 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 01:40:41 +0000 bhyvectl: Convert to use vm_openf() Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D47031 --- usr.sbin/bhyvectl/bhyvectl.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c index 5e23860d711c..41055678ac30 100644 --- a/usr.sbin/bhyvectl/bhyvectl.c +++ b/usr.sbin/bhyvectl/bhyvectl.c @@ -388,22 +388,17 @@ main(int argc, char *argv[]) if (vmname == NULL) usage(opts); - error = 0; - - if (!error && create) - error = vm_create(vmname); - if (!error) { - ctx = vm_open(vmname); - if (ctx == NULL) { - fprintf(stderr, - "vm_open: %s could not be opened: %s\n", - vmname, strerror(errno)); - exit(1); - } - vcpu = vm_vcpu_open(ctx, vcpuid); + ctx = vm_openf(vmname, create ? VMMAPI_OPEN_CREATE : 0); + if (ctx == NULL) { + fprintf(stderr, + "vm_open: %s could not be opened: %s\n", + vmname, strerror(errno)); + exit(1); } + vcpu = vm_vcpu_open(ctx, vcpuid); + error = 0; if (!error && memsize) error = vm_setup_memory(ctx, memsize, VM_MMAP_ALL); From nobody Tue Nov 5 01:40:55 2024 X-Original-To: dev-commits-src-all@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 4Xj9yw0ZzXz5cq6l; Tue, 05 Nov 2024 01:40:56 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xj9yv4yCpz3wj1; Tue, 5 Nov 2024 01:40:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770855; 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=xeqHLaRaBzGq88AdvNDAOe0QMqSWmoXAtxObNcN3qfo=; b=tzl4dwg26WTsubaq9//QBpedAEbUvkTM71FfZwmcHcJLwwNxlGjMY+msTFHysBFiUg0TBp sNtAHDtjuTAzd455kMK+2cXmaXhmlcxxLR3dWbLu22Ys44myaC1c03HSvzaaPN/0oQlqUO zRdwo7JA5NcxTPVeYIx1BSnjG1N4/a1W5A1cj/XaF7wkXlqJniBWgzo27V2tL3hkUQZdpW e6rUCvGCDR6QFv4ndDUvt17Pp4AIxmttvcxotUWI6t4UmtiD9e6QAZ2uera5sGTc0VwmDC i300eLYb3i+LqY4yDky1DcT8+leJSH/VUkg1OlwRako4Z/0rgJoIWDkrU+3Jeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730770855; 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=xeqHLaRaBzGq88AdvNDAOe0QMqSWmoXAtxObNcN3qfo=; b=btV5AW6RJKdOfe75tzzKml3Yf7/Ro9+nRW8JDpEQrfah3VgOOMW3nmoPcUAvGrqeScc4P7 wIMmd4oxFWoXCHuyHb6o7CDwFnC5pl0vGIrkbmg28YNBWs9927R08LWs9nhJPiUpg+hqQJ bTaze0ORQyL+PfuLgO1hPwKrJY0o6R2+nBfb4I0TGOg+n/LnfuPD+mcpNP5NShf1lgrF2Z Su0UmUe2tzFqqEklPSIa5E7oY1DgLsfqcs+CTgR/zDSdlppNkxkLx9mzpcsBGoMK1PGK+X n8tMuw5jdsLg9jlnKouq7D7GGgpsVYTQdqd/fiLSiZ49ILuxXtmXOgWpMqerXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730770855; a=rsa-sha256; cv=none; b=ZauqiNfpxgHtpcbz6CM+XJBlAVLdf+wySOaV8cHSu/Q6DOTvQ12wpXe6uRgJawKNotgG27 7repW9JDUSh0m7YLh+AmpxTzCaEpy/nObW9fBiEIVRnEydpsPqHqpC2BkzgRDAHqbrAPbZ 577rCAsYQmqy847966ol85+saZhjnv/ju/cS2eV0Fq5h+fozIQVF/E6qsUlFVAudYd+Nil MwtVkvbPZJoRrzTbeD2XGx2v9+P2W8rQcFsl3vw0Va1pph7SA71076i6j1xzlZFV6wQZv1 6ZP5CqWFrXQMDE6pXeKedEs+vnZfEjm2ZmD8DUWK4ZeC4E4k+jaEC4ELDHn52Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xj9yv3zg7zxdZ; Tue, 5 Nov 2024 01:40:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A51etX7062851; Tue, 5 Nov 2024 01:40:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A51etNc062848; Tue, 5 Nov 2024 01:40:55 GMT (envelope-from git) Date: Tue, 5 Nov 2024 01:40:55 GMT Message-Id: <202411050140.4A51etNc062848@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 5ef0cd25c4c9 - main - bhyve: Convert to using vm_openf() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5ef0cd25c4c90e44b556e0420005e128b8fcc6e0 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=5ef0cd25c4c90e44b556e0420005e128b8fcc6e0 commit 5ef0cd25c4c90e44b556e0420005e128b8fcc6e0 Author: Mark Johnston AuthorDate: 2024-11-05 01:37:16 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 01:40:41 +0000 bhyve: Convert to using vm_openf() Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D47032 --- usr.sbin/bhyve/bhyverun.c | 51 ++++++++++++----------------------------------- 1 file changed, 13 insertions(+), 38 deletions(-) diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index 41655a188bf9..be9cd1611700 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -521,41 +521,23 @@ do_open(const char *vmname) { struct vmctx *ctx; int error; - bool reinit, romboot; - - reinit = false; + bool romboot; romboot = bootrom_boot(); - error = vm_create(vmname); - if (error) { - if (errno == EEXIST) { - if (romboot) { - reinit = true; - } else { - /* - * The virtual machine has been setup by the - * userspace bootloader. - */ - } - } else { - perror("vm_create"); - exit(4); - } - } else { - if (!romboot) { - /* - * If the virtual machine was just created then a - * bootrom must be configured to boot it. - */ - fprintf(stderr, "virtual machine cannot be booted\n"); - exit(4); - } - } - ctx = vm_open(vmname); + /* + * If we don't have a boot ROM, the guest context must have been + * initialized by bhyveload(8) or equivalent. + */ + ctx = vm_openf(vmname, romboot ? VMMAPI_OPEN_REINIT : 0); if (ctx == NULL) { - perror("vm_open"); - exit(4); + if (errno != ENOENT) + err(4, "vm_openf"); + if (!romboot) + errx(4, "no bootrom was configured"); + ctx = vm_openf(vmname, VMMAPI_OPEN_CREATE); + if (ctx == NULL) + err(4, "vm_openf"); } #ifndef WITHOUT_CAPSICUM @@ -563,13 +545,6 @@ do_open(const char *vmname) err(EX_OSERR, "vm_limit_rights"); #endif - if (reinit) { - error = vm_reinit(ctx); - if (error) { - perror("vm_reinit"); - exit(4); - } - } error = vm_set_topology(ctx, cpu_sockets, cpu_cores, cpu_threads, 0); if (error) errx(EX_OSERR, "vm_set_topology"); From nobody Tue Nov 5 02:07:10 2024 X-Original-To: dev-commits-src-all@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 4XjBYC10zFz5crg3; Tue, 05 Nov 2024 02:07:11 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjBYC0DQzz42BQ; Tue, 5 Nov 2024 02:07:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772431; 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=6Ls/L8y3tF6DWJzrFvDZOh7BtdqKxAkyUzpFBSe/8Rc=; b=gmDz/dar3bPIGczWmzml9VJcVbvh8HzktKLwhDR8ZYrqfQZYTYP5zGoccJzG+ATr9qs+EP N/7e1C1h7j9OtYnYmLav+ZNnflnne5ZUb0oEH/Xjxq+TlSnBfKSDbnQplZh/865EMbmDy2 /HML21kjG+B7Pjw6NNVlr8Z4pQgSuTbv1O1gUedoC0DxOHfF0bjS3PqkPcrrQFmcD7LFDZ djEbrRsuG0Xj4sgPHcNVZix+MzHrg67yHv+nHVyIL/V7/Gqu7o2XEvdr8gPBhQL5Py/Ywh XJuVRgJS+CTWAKmp7rtw9kmIAKmTTwpcw4fqIoy1H3qB1K9ckzOM5VPEOtfoOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772431; 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=6Ls/L8y3tF6DWJzrFvDZOh7BtdqKxAkyUzpFBSe/8Rc=; b=RVSMTyK5xNhlkAoHz4n/7TfoBni/AFm/Xo9l4FzC+1i9BUknb3d5IORUNCcNjVPCmZ4jA5 5i0aCDNR+xptwKvrXso12gdL3wIre55zysMWTNsuEx9sWpPJie7BYBtr5ShmsMrJDu1Bvb p0W0ooshY6cUOzu3P5pMVLYDtuVKE2yHY1DOs9vxw3FPjhe1T9Tp2t03BcSZLULeWvb8rj DTsX5FgQhBsQWKt6vRyB9Xcr2qAxUTUUqCSvMPHmx4SqnOScBdl5f1STxfJWmCUvyp3NEg AB/Ob7wYF2Gu5FhHWonmOH541xGSbn5C4jZXTHb46wPPUoiM87l6HZHei8MDZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730772431; a=rsa-sha256; cv=none; b=WwXCjAH5NXyQQshSHayv30FkmGlzcHbc5Fs5Zgq7qXk9gUumxFuxTdeADtiPVzlco9JFM6 DveDbT599UB0MsMIvezGrM6K/DTkiQQkepIAHG7lhrmje88nWqZTRygE8d7E91jWTiWzdC 0ByeNSd1LnfYBhquIei9KKrWg6JGOtYrXDNBmn8f3vtomw7RHWD+2viKLdbtVfHgz0SAjL 6RaJazqhsINLeI7y7pT2vBdS8GbDONgV5m1BRf2QvPTgs4qeukXByJJoZZVq/mjKCKtrNL 8YG2MGHRFriboVc7PrbilYKwfSvVHbZmQlXwP/qweI0J4Bruj1mah4Zv3qf1EQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjBYB6xRLzxvJ; Tue, 5 Nov 2024 02:07:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A527AkV006529; Tue, 5 Nov 2024 02:07:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A527Aib006526; Tue, 5 Nov 2024 02:07:10 GMT (envelope-from git) Date: Tue, 5 Nov 2024 02:07:10 GMT Message-Id: <202411050207.4A527Aib006526@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Somers Subject: git: b032be711c74 - main - Make the CTL tests more resilient List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b032be711c740d2f25b27c92069537edcfac221c Auto-Submitted: auto-generated The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=b032be711c740d2f25b27c92069537edcfac221c commit b032be711c740d2f25b27c92069537edcfac221c Author: Alan Somers AuthorDate: 2024-11-05 00:26:01 +0000 Commit: Alan Somers CommitDate: 2024-11-05 02:06:53 +0000 Make the CTL tests more resilient Fix the find_device function to work regardless of whether "camcontrol devlist" lists the da device first and the pass device second or vice versa. On FreeBSD 14 and 15 it apparently always lists da first. But on 13 it can do it in either order. MFC after: 2 weeks MFC with: fe1755fa Sponsored by: ConnectWise Reviewed by: emaste, markj, #cam Differential Revision: https://reviews.freebsd.org/D47446 --- tests/sys/cam/ctl/ctl.subr | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/sys/cam/ctl/ctl.subr b/tests/sys/cam/ctl/ctl.subr index 18991e0fa144..868b1c809571 100644 --- a/tests/sys/cam/ctl/ctl.subr +++ b/tests/sys/cam/ctl/ctl.subr @@ -47,7 +47,14 @@ find_device() { ctladm port -o on -p 0 >/dev/null HEXLUN=`printf %x $LUN` while true; do - dev=`camcontrol devlist | awk -v lun=$HEXLUN '/FREEBSD CTL/ && $9==lun {split($10, fields, /[,]/); print fields[1];}' | sed 's:[()]::'` + dev=`camcontrol devlist | awk -v lun=$HEXLUN ' + /FREEBSD CTL.*,pass/ && $9==lun { + split($10, fields, /[,]/); print fields[1]; + } + /FREEBSD CTL.*\(pass/ && $9==lun { + split($10, fields, /[,]/); print fields[2]; + } + ' | sed 's:[()]::'` if [ -z "$dev" -o ! -c /dev/$dev ]; then retries=$(( $retries - 1 )) if [ $retries -eq 0 ]; then From nobody Tue Nov 5 02:11:55 2024 X-Original-To: dev-commits-src-all@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 4XjBfg5kL5z5cryK; Tue, 05 Nov 2024 02:11:55 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjBfg5HH7z42dP; Tue, 5 Nov 2024 02:11:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772715; 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=VFYP8oGo0GhfP2Y/l7Q4EmNujPWnA7b1UYLfMbq05MU=; b=MJYPHr6bH5NflvLfTzFv8IYAsuyWrD13309xhONfXccQznPgULvCcdoLmKn/sNVT5o9hB2 3x63PAW1AgiqE5H2peXmFshTqcGTRZRzU+hjvSiQD+iHXQjPmUfzQ+DDFWHJaSj09PbXYs GBjbebrvckvvpunCuXCsXsGnMFv0VDUK4sv5yoL9akwoXcqwyt6R99a2O2rql9ub9eIGgA g5klcSdbv5drGqc2Gn8snHBMUoJ6K/3c/VY/YEvxt/J1geaNLbuVVMDEoGRGHBBOucX1aG puwWgpUgXENB3k/pmhjZXgcGSzkuPEikxlnaOqBJ1QL9U3TkD+k/atXU6LHSew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772715; 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=VFYP8oGo0GhfP2Y/l7Q4EmNujPWnA7b1UYLfMbq05MU=; b=bIrQtPIHqqih4mjdqK46zCMS7c7I3X1BZtrfwjP9U8vDNnN21C/o7LQNRCBvFHLj/nht3b /l3Kdob8g1khOzOTb/EhaZveLlNrmUV0rHGanIplRUry/dlH22At2RiA+NaNY23tEYd6Ou wKwTK92GVKuWGM0WF8ECW9vAzGtHPetvUXi3wyEE8Tnc6m+YyoYiJRTRyKLOSig+LcsaEM viSf5IKTVFK2FR+3AIpWxoNdE74VFKNhg8mtgRd03pd8+5HXVlmFuPn0dVjXDZ4CAIw1qt bZc83RrHrGoEWfS/U8htzaBDI2MOZyN08UkqBxs6oRdMqIiJkXw4htDIpukrcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730772715; a=rsa-sha256; cv=none; b=PgFJ6c7qc+tjt9B9zrOpD817wEWjSXmXaQx4I1tEb7aoQAUBJE5VsZylusGSZAdh6Y01Pr NzpO33k4k7FdHMZhMEZl5pk/v/hjLRZ7r7BNHtDrPbmriY9US03k5gk8WI4bxCeuMt4UPW FT+DwptqmfQLdCV1Ak44fJHxwJVsjzxPeK96gAejQUlx4oowvSimORMl/aMwMLm5iEBIfz /Xhx3rL20vMuvNwAf2A4RhJyZBeBBa4GiKZlQxZ6e5nyACcKZZCvWXuIU5vteZjgnOKSPD WjCvH7DrU1h8BlnFyokbPiPoFIe5P1WyZpBpAXKTrG/ZNRfFF2Ni5xFErDyR6Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjBfg4vBRzyTn; Tue, 5 Nov 2024 02:11:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A52BtZM019290; Tue, 5 Nov 2024 02:11:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A52BtpM019287; Tue, 5 Nov 2024 02:11:55 GMT (envelope-from git) Date: Tue, 5 Nov 2024 02:11:55 GMT Message-Id: <202411050211.4A52BtpM019287@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: aa90b92ac289 - main - git-arc: Fix find_author() for external users List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aa90b92ac289b2a7eec882caf870e56dbed16a5c Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=aa90b92ac289b2a7eec882caf870e56dbed16a5c commit aa90b92ac289b2a7eec882caf870e56dbed16a5c Author: Jose Luis Duran AuthorDate: 2024-11-05 01:32:25 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-05 02:10:15 +0000 git-arc: Fix find_author() for external users When an external user submits a review in Phabricator, the find_author() subroutine may receive the author_name and author_addr as "null" from the JSON API with git-arc patch. This "null" string gets tested for length by "[ -n", and returning that is greater than zero, in other words, the shell does not understand that "null" means nothing in this case. Fix it by adding a guard, that sets an empty string when the content is "null". While here, standardize the indentation style for find_author() Reviewed by: emaste, markj Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D46789 --- tools/tools/git/git-arc.sh | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh index cca70f61a4cd..f3cae28e3009 100644 --- a/tools/tools/git/git-arc.sh +++ b/tools/tools/git/git-arc.sh @@ -493,16 +493,16 @@ find_author() case "${addr}" in *.*) ;; # external user *) - echo "${name} <${addr}@FreeBSD.org>" - return - ;; + echo "${name} <${addr}@FreeBSD.org>" + return + ;; esac # Choice 2: author_addr and author_name were set in the bundle, so use # that. We may need to filter some known bogus ones, should they crop up. if [ -n "$author_name" -a -n "$author_addr" ]; then - echo "${author_name} <${author_addr}>" - return + echo "${author_name} <${author_addr}>" + return fi # Choice 3: We can find this user in the FreeBSD repo. They've submited @@ -510,8 +510,8 @@ find_author() # similar to their phab username. email=$(git log -1 --author "$(echo ${addr} | tr _ .)" --pretty="%aN <%aE>") if [ -n "${email}" ]; then - echo "${email}" - return + echo "${email}" + return fi # Choice 4: We know this user. They've committed before, and they happened @@ -519,11 +519,11 @@ find_author() # might not be a good idea, since names can be somewhat common (there # are two Andrew Turners that have contributed to FreeBSD, for example). if ! (echo "${name}" | grep -w "[Uu]ser" -q); then - email=$(git log -1 --author "${name}" --pretty="%aN <%aE>") - if [ -n "$email" ]; then - echo "$email" - return - fi + email=$(git log -1 --author "${name}" --pretty="%aN <%aE>") + if [ -n "$email" ]; then + echo "$email" + return + fi fi # Choice 5: Wing it as best we can. In this scenario, we replace the last _ @@ -534,8 +534,8 @@ find_author() a=$(printf "%s <%s>\n" "${name}" $(echo "$addr" | sed -e 's/\(.*\)_/\1@/')) echo "Making best guess: Truning ${addr} to ${a}" if ! prompt; then - echo "ABORT" - return + echo "ABORT" + return fi echo "${a}" } @@ -572,6 +572,16 @@ patch_commit() jq -r '.response | flatten | .[]' > "$diff_data" author_addr=$(jq -r ".authorEmail?" "$diff_data" | sort -u) author_name=$(jq -r ".authorName?" "$diff_data" | sort -u) + + # JSON will return "null" when a field is not populated. + # Turn this string into an empty one. + if [ "$author_addr" = "null" ]; then + author_addr="" + fi + if [ "$author_name" = "null" ]; then + author_name="" + fi + author=$(find_author "$user_addr" "$user_name" "$author_addr" "$author_name") rm "$diff_data" From nobody Tue Nov 5 02:11:56 2024 X-Original-To: dev-commits-src-all@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 4XjBfj0rL7z5crwY; Tue, 05 Nov 2024 02:11:57 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjBfh6KMSz42qc; Tue, 5 Nov 2024 02:11:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772716; 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=pMqqipZEaqu4DjP4lVUzAJIKKsKKBdRxyasVQud7QAw=; b=oy7dKZ2rTQ/8tE60ypv/cn4F8DlCXjeHIc9j8q23VrUuC3u+7qUT6DmyzfqWd8oYHv3eZH 5tEeCG5BSrxLXwsxoIqGiqXeDm3VLJ4G+m6Scq35TAYy1WyhfZND1HAXGJTxC7vHAkMvr4 ioN+Gf0CHo1A5bFw8VvhlY6IAkLNjD9LDMMaXTgk0Mfi88HdtTk/h3wxZ2UnebYs+aDwmi B3c3ieJHrI8GIK3z4caCAKnDdmrGVyE1m4yBYCLlFjANUmdsrGbEpD8If/gIBhzYsdUNb9 l6H4J/3QSpnTHjc0zCkZvqMK4w0yOb33Zx+FsWt3lqd9oR9GVLQt9z4W2MuceQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772716; 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=pMqqipZEaqu4DjP4lVUzAJIKKsKKBdRxyasVQud7QAw=; b=l4M3JyVhSnDAkYbG2iJXZo98S4D0elvq5MlzcLdMmU7ztCq363DaC3RK87ZkxQ0YzTOB+j Zzd3ICzLletRKKhh3UKY+HkG9ZqG87o9eA7tgTcP1PMN6QGi75cjnxLYKcaHgqjmDp8Eqy G9RdMmeSu/otK+s7zrh6ZsXaY6L8wODtqQv2gIfOayOb5n/y/V8NDgIhiKhKpJAamOuSwR fxKIDBDCZ9OuGJ8jBobG5DLXkhOMHC7vVdkwLlSPtzqVSY7zOJwcJdN1wheeUds9NXe1TP ORNO5x1OI8ModSbcNWuQP59aGUGT/TyzxZ+lQ1fItrkGXoViOjceiBBc42s9GA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730772716; a=rsa-sha256; cv=none; b=O+RVEIEk+VEQ7kPfN9qZF6IfSNxxAh0UQ0xAt3MiUTXgZY8mnsKgiZjE1VD3hthh4K6shE BJNzSvTu1wlJSUB5dfFjB7C++TQYnE5YDQZHLzGqd4E71vHSR4cE0FjGb+7HTicqhEDhEG 0NxWPnsoPkYxdpfHgnnphSeXNmwYtHeNSY2YaKyzjEpVDML4qRYxhoODMY0aQhn5XEut9Y cAfljWsfooDF1uWYvJFusE487iPQIfuVLjy7XXPzTcBBfMpM9GlLMirMGGxL4ZmnBdM9lH WqVBNwheILE+rHaElZQtKYGrOI/q7Leca2Wwyn6hOv7XK1FXPHbE+zQRtshmlA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjBfh5wj3zy8b; Tue, 5 Nov 2024 02:11:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A52BuNL019904; Tue, 5 Nov 2024 02:11:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A52BuYr019901; Tue, 5 Nov 2024 02:11:56 GMT (envelope-from git) Date: Tue, 5 Nov 2024 02:11:56 GMT Message-Id: <202411050211.4A52BuYr019901@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 019981e00f23 - main - git-arc: Fix typo s/Truning/Turning/ List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 019981e00f23b0458067cbd91007f9f03b3b0b7e Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=019981e00f23b0458067cbd91007f9f03b3b0b7e commit 019981e00f23b0458067cbd91007f9f03b3b0b7e Author: Jose Luis Duran AuthorDate: 2024-11-05 01:13:20 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-05 02:10:16 +0000 git-arc: Fix typo s/Truning/Turning/ While here standardize white space. No functional change. Approved by: emaste (mentor) --- tools/tools/git/git-arc.sh | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh index f3cae28e3009..0df4ac4cd5fc 100644 --- a/tools/tools/git/git-arc.sh +++ b/tools/tools/git/git-arc.sh @@ -101,10 +101,10 @@ Config Variables: Defaults to false. arc.list [bool] -- Always use "list mode" (-l) with create and update. - In this mode, the list of git revisions to use + In this mode, the list of git revisions to use is listed with a single prompt before creating or updating reviews. The diffs for individual commits - are not shown. + are not shown. arc.verbose [bool] -- Verbose output. Equivalent to the -v flag. @@ -205,7 +205,7 @@ diff2status() arc_call_conduit -- phid.lookup > "$tmp" status=$(jq -r "select(.response != []) | .response.${diff}.status" < "$tmp") summary=$(jq -r "select(.response != []) | - .response.${diff}.fullName" < "$tmp") + .response.${diff}.fullName" < "$tmp") printf "%-14s %s\n" "${status}" "${summary}" } @@ -305,7 +305,7 @@ create_one_review() "type": "parents.add", "value": ["'"${parentphid}"'"] } - ]}' | + ]}' | arc_call_conduit -- differential.revision.edit >&3 fi rm -f "$msg" @@ -321,15 +321,15 @@ diff2reviewers() reviewid=$(diff2phid "$diff") userids=$( \ echo '{ - "constraints": {"phids": ["'"$reviewid"'"]}, - "attachments": {"reviewers": true} - }' | + "constraints": {"phids": ["'"$reviewid"'"]}, + "attachments": {"reviewers": true} + }' | arc_call_conduit -- differential.revision.search | jq '.response.data[0].attachments.reviewers.reviewers[] | select(.status == "accepted").reviewerPHID') if [ -n "$userids" ]; then echo '{ - "constraints": {"phids": ['"$(printf "%s" "$userids" | tr '[:space:]' ',')"']} - }' | + "constraints": {"phids": ['"$(printf "%s" "$userids" | tr '[:space:]' ',')"']} + }' | arc_call_conduit -- user.search | jq -r '.response.data[].fields.username' fi @@ -427,7 +427,7 @@ gitarc__create() for commit in ${commits}; do if create_one_review "$commit" "$reviewers" "$subscribers" "$prev" \ - "$doprompt"; then + "$doprompt"; then prev=$(commit2diff "$commit") else prev="" @@ -448,8 +448,8 @@ gitarc__list() diff=$(log2diff "$commit") if [ -n "$diff" ]; then - diff2status "$diff" - continue + diff2status "$diff" + continue fi # This does not use commit2diff as it needs to handle errors @@ -457,7 +457,7 @@ gitarc__list() title=$(git show -s --format=%s "$commit") diff=$(echo "$openrevs" | \ awk -F'D[1-9][0-9]*: ' \ - '{if ($2 == "'"$(echo $title | sed 's/"/\\"/g')"'") print $0}') + '{if ($2 == "'"$(echo $title | sed 's/"/\\"/g')"'") print $0}') if [ -z "$diff" ]; then echo "No Review : $title" elif [ "$(echo "$diff" | wc -l)" -ne 1 ]; then @@ -491,7 +491,7 @@ find_author() # freebsd.org (which isn't surprising for ports committers getting src # commits reviewed). case "${addr}" in - *.*) ;; # external user + *.*) ;; # external user *) echo "${name} <${addr}@FreeBSD.org>" return @@ -532,7 +532,7 @@ find_author() # don't know if the prior _ are _ or + or any number of other characters. # Since there's issues here, prompt a=$(printf "%s <%s>\n" "${name}" $(echo "$addr" | sed -e 's/\(.*\)_/\1@/')) - echo "Making best guess: Truning ${addr} to ${a}" + echo "Making best guess: Turning ${addr} to ${a}" if ! prompt; then echo "ABORT" return @@ -587,8 +587,8 @@ patch_commit() # If we had to guess, and the user didn't want to guess, abort if [ "${author}" = "ABORT" ]; then - warn "Not committing due to uncertainty over author name" - exit 1 + warn "Not committing due to uncertainty over author name" + exit 1 fi tmp=$(mktemp) @@ -620,7 +620,7 @@ gitarc__patch() while getopts c o; do case "$o" in c) - require_clean_work_tree "patch -c" + require_clean_work_tree "patch -c" commit=true ;; *) @@ -634,9 +634,9 @@ gitarc__patch() arc patch --skip-dependencies --nocommit --nobranch --force "$rev" echo "Applying ${rev}..." [ $? -eq 0 ] || break - if ${commit}; then - patch_commit $rev - fi + if ${commit}; then + patch_commit $rev + fi done } From nobody Tue Nov 5 02:11:57 2024 X-Original-To: dev-commits-src-all@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 4XjBfk3NzYz5cryN; Tue, 05 Nov 2024 02:11:58 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjBfk0bMrz42pH; Tue, 5 Nov 2024 02:11:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772718; 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=HUG/hJTPUQ6jdMVvEz4wkDdGgim+Pm0ZUsaGHxnmlfg=; b=oT3DYnQVqOc80qVfhuyUhvs8REbHT+/lRs4ndgIsPI4iM2WF+LuaBdblVXWKHitUxDKKnk gr5y3291d+sphNMfmMAsK0jAazVfxdJ/cR4IQFhh1hhfmQu1s0lmZB4s6tUL9nWWHVCPC4 w42psNVHX4I79FseNjNbcBx6vOKkoeocq9g6M0ojgOePnSdTgwzifuKp/nmIDWEIaLUJku 7vjumzlAUvZ8LUr6iRSsp7XwHCF/4OYdd1AdI3EyzJUBJRwJdtun5dPm6jh2c0ixdysIYy 4FppK3tmofylxmAoD8deWrRDL1LnrL5qGjExnpN4SmoDfhjpA0u180FzZZ2pwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772718; 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=HUG/hJTPUQ6jdMVvEz4wkDdGgim+Pm0ZUsaGHxnmlfg=; b=vZiGOMgDV03wO0EXUxom7zKwr2m0hZQQmZPtn+pUi8SaQo/hdudOTfnL6Y3YJO0QCLpC2h HKOtvH0+mxde/LEO8BjnQZUlaamhZ97permdFD4mO09ST0A0CBSX0lCSCnF6wOL4beHXUr dFmDtegdNqdSfufAxPSoUkK4RC/KM0mujOXActEIRSSpbH/83YPyV5VRL2R7NrsvChG4OM h/iJ9V/7jV2gK3XnXzwru9lOLzSovR66yQdYaE2eTUakoCIseq8RNTP/7dsizBWTbULYPs MKe28u0/2gIllf+LiJolN96JGyNFvBLhbSgvi5D59Vs5TyTpXcaEfHjvKktTig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730772718; a=rsa-sha256; cv=none; b=C2NzhgqidoVtMK19GttMorZMt4eklMTrYWIpGxWXL24ufumb94nKM/adIjlOIATWSRJjpB hBriqgfW9ez91vd35qbVEFAwL7GmomcAhgYo3GSY7Vgw0qhhMmE9YcPRjmgLEsK9J9la/z sP7jPyFsPN2baF87PUpvKn4ZcxWH1RARpIM+YRsKoeHoqbQtcRlrW8nE8AzXQOoZLM7as9 OpIUbMlBTKQLd2iQC6TwLFucOuOWYj1Z4gABYMO28b5FvEI6N0pbvCJa1DPK4WdX32LNkv pkMGQ9FhkJgZ/QghZU7MdLLvOCa0q7lxZL8g+uy9MdNgDMD9DOPW+O0ZmE1GYQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjBfj6yL7zyfq; Tue, 5 Nov 2024 02:11:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A52BvDQ019949; Tue, 5 Nov 2024 02:11:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A52Bv4n019946; Tue, 5 Nov 2024 02:11:57 GMT (envelope-from git) Date: Tue, 5 Nov 2024 02:11:57 GMT Message-Id: <202411050211.4A52Bv4n019946@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 2377c19a8c37 - main - git-arc: Trap on every mktemp List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2377c19a8c37c3494d065c2a9e8b155147c1feb4 Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=2377c19a8c37c3494d065c2a9e8b155147c1feb4 commit 2377c19a8c37c3494d065c2a9e8b155147c1feb4 Author: Jose Luis Duran AuthorDate: 2024-11-05 01:47:52 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-05 02:10:16 +0000 git-arc: Trap on every mktemp Trap: - EXIT (0) - HUP (1) - INT (2) - QUIT (3) - TRAP (5) - USR1 (10) - TERM (15) every time mktemp is called to reduce the chances of leaving stray files or directories with possible sensitive data inside. We avoid using a template with mktemp, as some operating systems may use unpredictable base paths by default (macOS). Suggested by: des Reviewed by: emaste, 0mp, des (earlier), markj Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D47289 --- tools/tools/git/git-arc.sh | 48 +++++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh index 0df4ac4cd5fc..64d1ee2bd63f 100644 --- a/tools/tools/git/git-arc.sh +++ b/tools/tools/git/git-arc.sh @@ -43,6 +43,14 @@ err() exit 1 } +cleanup() +{ + rc=$? + rm -fr "$GITARC_TMPDIR" + trap - EXIT + exit $rc +} + err_usage() { cat >&2 <<__EOF__ @@ -147,6 +155,12 @@ __EOF__ exit 1 } +# Use xmktemp instead of mktemp when creating temporary files. +xmktemp() +{ + mktemp "${GITARC_TMPDIR:?}/tmp.XXXXXXXXXX" || exit 1 +} + # # Fetch the value of a boolean config variable ($1) and return true # (0) if the variable is true. The default value to use if the @@ -200,7 +214,7 @@ diff2status() err "invalid diff ID $diff" fi - tmp=$(mktemp) + tmp=$(xmktemp) echo '{"names":["'"$diff"'"]}' | arc_call_conduit -- phid.lookup > "$tmp" status=$(jq -r "select(.response != []) | .response.${diff}.status" < "$tmp") @@ -279,7 +293,7 @@ create_one_review() return 1 fi - msg=$(mktemp) + msg=$(xmktemp) git show -s --format='%B' "$commit" > "$msg" printf "\nTest Plan:\n" >> "$msg" printf "\nReviewers:\n" >> "$msg" @@ -308,7 +322,6 @@ create_one_review() ]}' | arc_call_conduit -- differential.revision.edit >&3 fi - rm -f "$msg" return 0 } @@ -542,31 +555,30 @@ find_author() patch_commit() { - local diff reviewid review_data authorid user_data user_addr user_name author - local tmp author_addr author_name + local diff reviewid review_data authorid user_data user_addr user_name + local diff_data author_addr author_name author tmp diff=$1 reviewid=$(diff2phid "$diff") # Get the author phid for this patch - review_data=$(mktemp) + review_data=$(xmktemp) echo '{"constraints": {"phids": ["'"$reviewid"'"]}}' | \ arc_call_conduit -- differential.revision.search > "$review_data" authorid=$(jq -r '.response.data[].fields.authorPHID' "$review_data") # Get metadata about the user that submitted this patch - user_data=$(mktemp) + user_data=$(xmktemp) echo '{"constraints": {"phids": ["'"$authorid"'"]}}' | \ arc_call_conduit -- user.search | \ jq -r '.response.data[].fields' > "$user_data" user_addr=$(jq -r '.username' "$user_data") user_name=$(jq -r '.realName' "$user_data") - rm "$user_data" # Dig the data out of querydiffs api endpoint, although it's deprecated, # since it's one of the few places we can get email addresses. It's unclear # if we can expect multiple difference ones of these. Some records don't # have this data, so we remove all the 'null's. We sort the results and # remove duplicates 'just to be sure' since we've not seen multiple # records that match. - diff_data=$(mktemp) + diff_data=$(xmktemp) echo '{"revisionIDs": [ '"${diff#D}"' ]}' | \ arc_call_conduit -- differential.querydiffs | jq -r '.response | flatten | .[]' > "$diff_data" @@ -583,7 +595,6 @@ patch_commit() fi author=$(find_author "$user_addr" "$user_name" "$author_addr" "$author_name") - rm "$diff_data" # If we had to guess, and the user didn't want to guess, abort if [ "${author}" = "ABORT" ]; then @@ -591,12 +602,11 @@ patch_commit() exit 1 fi - tmp=$(mktemp) - jq -r '.response.data[].fields.title' "$review_data" > $tmp - echo >> $tmp - jq -r '.response.data[].fields.summary' "$review_data" >> $tmp - echo >> $tmp - rm "$review_data" + tmp=$(xmktemp) + jq -r '.response.data[].fields.title' "$review_data" > "$tmp" + echo >> "$tmp" + jq -r '.response.data[].fields.summary' "$review_data" >> "$tmp" + echo >> "$tmp" # XXX this leaves an extra newline in some cases. reviewers=$(diff2reviewers "$diff" | sed '/^$/d' | paste -sd ',' - | sed 's/,/, /g') if [ -n "$reviewers" ]; then @@ -605,7 +615,6 @@ patch_commit() # XXX TODO refactor with gitarc__stage maybe? printf "Differential Revision:\thttps://reviews.freebsd.org/%s\n" "${diff}" >> "$tmp" git commit --author "${author}" --file "$tmp" - rm "$tmp" } gitarc__patch() @@ -665,7 +674,7 @@ gitarc__stage() git checkout -q -b "${branch}" main fi - tmp=$(mktemp) + tmp=$(xmktemp) for commit in $commits; do git show -s --format=%B "$commit" > "$tmp" title=$(git show -s --format=%s "$commit") @@ -826,4 +835,7 @@ if get_bool_config arc.browse false; then BROWSE=--browse fi +GITARC_TMPDIR=$(mktemp -d) || exit 1 +trap cleanup EXIT HUP INT QUIT TRAP USR1 TERM + gitarc__"${verb}" "$@" From nobody Tue Nov 5 02:11:58 2024 X-Original-To: dev-commits-src-all@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 4XjBfl2Ldkz5cs8b; Tue, 05 Nov 2024 02:11:59 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjBfl0n0Cz42bT; Tue, 5 Nov 2024 02:11:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772719; 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=mdWY2w+Bw81323PcAZa2C9h3UgWIA1DWDtAtQG8CMtY=; b=ZV4S4x5uiwWHFVYl1vNBskL2+QLX+C0vSizCsS5nd0H0sqUe/0HzJAvQs5YfU6ipLWeRuz 0Rb6Uf14aIsDLAEb+mQ8L7EU2JttIF6rJWqZQaU8CAnEjLFMW9Udr9y7hcQ9XqbBWjAS1r 5ub+TS81CbEnOahwLnrR7ikPNZk8JbOHj2YjhvMpPtSybQ/sEaDKeICunnqxZZlPhHjtD5 mBCmSFsJQVTTqoJDR09bt4ICwcLyLekaUh5GcM/oU4dk18w+FvwVVM7e8lhlSvmeHYfDt/ CTMvxCuyc43lrPMXdyJTTwmr81t72CMMlDgTod67yuACBWVkU7l8aZRnIqxssA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730772719; 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=mdWY2w+Bw81323PcAZa2C9h3UgWIA1DWDtAtQG8CMtY=; b=rHBpLwlMYpaPGpzP1sHnpnArZk8eDhvhx8Ymr5srdGQOooK07pqZHXzjPb2V0NWCy+pmkd OQm1lMlGFIiWnyr+04UmAzQXqBltZhWcz432M9NKtxFcHZ9e6JDk5CzsmiQxUGqP5A4Bd4 GHANpp3FJ3R8UIOrhsAFsoR3HRT3vsQNJOu282Awp9UaiXS94w/yT2N/9QjNE0N1nLDIuQ v4UdvKd2lmUdjM8PS3jXL04660eoaFyWgdlsGw8lROlN0libxdD5uXPPUtLC82+voydAJm yyhTK26O87ZcxCzIn+FCMUIvxnD9d77pqWNJB+WlpilrjuM/aGjT9iJvURl3Wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730772719; a=rsa-sha256; cv=none; b=QRuiO33IIWqhKbyvCd+YFUeWzIwZQpeffWVQT54F9RCldLomKQvz8qY+n4hzfFGAOP9uBQ V/2Cc/hjTg4qDAgs1vyVRa3IsuUE+8rHqAzN2skB6X/GTGe2WPvhHXKrTBrMzoqtkflFxg 4OsFC31DSC0Wk9t9wy48dLUsA99FIVz5QjlXLDkDBIbco6rI6Y/pPvKCir8l53MWoHixOd nfGi88prEzuKj0CpoqFYeuQyt9U8tp8ebzsOM4WXpw9xxYCECI66XjQwkXzXg0TfHottfw LCdlv+NidxGk2dsINYCmoVFlhOWjT+4KdBPcfXN1F8vvF0mG0vWi7C2wQzXzSA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjBfl0MQkzxgl; Tue, 5 Nov 2024 02:11:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A52BwIR020000; Tue, 5 Nov 2024 02:11:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A52Bwbo019997; Tue, 5 Nov 2024 02:11:58 GMT (envelope-from git) Date: Tue, 5 Nov 2024 02:11:58 GMT Message-Id: <202411050211.4A52Bwbo019997@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 9e84289f2c7e - main - git-arc: Prefer echo over printf List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9e84289f2c7e6b632047a75b653fcd587287a8b9 Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=9e84289f2c7e6b632047a75b653fcd587287a8b9 commit 9e84289f2c7e6b632047a75b653fcd587287a8b9 Author: Jose Luis Duran AuthorDate: 2024-11-05 01:13:22 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-05 02:10:16 +0000 git-arc: Prefer echo over printf Prefer echo over printf. Prevent the newline character from being translated by using 'blank' instead of 'space' in the re_format. This change was reviewed in: https://reviews.freebsd.org/D47289 Committed separately for clarity. Suggested by: des Approved by: emaste (mentor) --- tools/tools/git/git-arc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh index 64d1ee2bd63f..050ec4ec1f2c 100644 --- a/tools/tools/git/git-arc.sh +++ b/tools/tools/git/git-arc.sh @@ -341,7 +341,7 @@ diff2reviewers() jq '.response.data[0].attachments.reviewers.reviewers[] | select(.status == "accepted").reviewerPHID') if [ -n "$userids" ]; then echo '{ - "constraints": {"phids": ['"$(printf "%s" "$userids" | tr '[:space:]' ',')"']} + "constraints": {"phids": ['"$(echo "$userids" | tr '[:blank:]' ',')"']} }' | arc_call_conduit -- user.search | jq -r '.response.data[].fields.username' From nobody Tue Nov 5 02:50:35 2024 X-Original-To: dev-commits-src-all@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 4XjCWH55TBz5ctlc; Tue, 05 Nov 2024 02:50:35 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjCWH4Yg7z465D; Tue, 5 Nov 2024 02:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730775035; 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=Yyr26AzLHT0+ch2EgFtNJrEauotj4QT7566YOlu0Shw=; b=RAnO7DSp0OrCqToHwe50U38l3jnyh+I8pM8X/1tmHkQoLJY+ilfSkI1+bJj653BnrH5cDK RDneKOdYT7w1xGLoS70aaNdeBR2qQyF2ldbEytMwlGNK1REBxvDpbL/ATHqynjl+Py5Bx+ lVIfkSghRm5E0+OibTzZLG0m+154+J6akYOCFZM4BWpYzIGX+fkNAodcAFzyX4eJlES0HR CsRh1jhcXPa70w7xMmqh1oVaE/HApnvYt21SOI0kQu/R8gyjBUJl1wuTGUotKct0w2yjEO e+VH3gonHCwIAEOu2IAZYReLang9pTMI8CLYK8D6djtF1zpqYa8NyBwqkfHSWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730775035; 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=Yyr26AzLHT0+ch2EgFtNJrEauotj4QT7566YOlu0Shw=; b=iiQck/RCxl/El6FIkfKM3QTtE+41JcRvkWih9av2toLcY4KdndyrQXTu1/TA+vMI/GRYDQ PXrCiY3ldHky0FJQM+/csJetDCHE+U+VoG6useU0lnVUUV5BAlpKKjy0gHJ/rEGxLuaL7T dzVnHgtxzhdPvszettX1LclqlEI1wajAkOEx5e/lcZhq5ZgEUAYgbfSUtjGLqBZ84xjTGn zVB9MH0D9u5T70LGSHn0sOZMbeHzkreow39mV8f4wbuzycGyIeOs26kvyxpOxmL+TovXJf OKdO+iAnTNcQjgF7P3s1W1KG+Whfuf/6CDgI6sc15SPVDD7qxmj5+b2Le+2PBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730775035; a=rsa-sha256; cv=none; b=L5VsGeYQylzeFdycW7EVCduPOMh+8ZJCu/QM8gFw97PapW6/26r13UulXwkuuATH3gUooK 99dOAKsly7OnP/jCFDaXdLj6JXX8Ru0WNeU89VIBULC+rmJQJm6Vi5jAnFAKrPeuS6YHds 7QeQ6EtZscRYJ+84zEuaBk3mh7Oar3NNynRs5VEWYlLqC7udNf/ifLIIlgRsYgzcdhqevk hUQLAeSqRtRDvIhLe3kYxet9kIo8odh7b94iPVC9QPLMIdTZ/qj7FbyWNeE2Ey9MJe6bTW 6M7lqM5UjFxW7r1zLFh2aQCIrJ3DFQJRUcb68ik8HCI4Lt5BKSHcVLLW9MW8Eg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjCWH48wPz10SZ; Tue, 5 Nov 2024 02:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A52oZ6x089111; Tue, 5 Nov 2024 02:50:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A52oZcR089108; Tue, 5 Nov 2024 02:50:35 GMT (envelope-from git) Date: Tue, 5 Nov 2024 02:50:35 GMT Message-Id: <202411050250.4A52oZcR089108@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 2e29bf7a2ae6 - main - ping: tests: Cleanup IPOption()s List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2e29bf7a2ae66acb6e65ffc1c923cfb373af67bd Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=2e29bf7a2ae66acb6e65ffc1c923cfb373af67bd commit 2e29bf7a2ae66acb6e65ffc1c923cfb373af67bd Author: Jose Luis Duran AuthorDate: 2024-11-05 02:46:45 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-05 02:46:45 +0000 ping: tests: Cleanup IPOption()s Scapy now only accepts known options with IPOption(), so our unknown option must be passed raw. While here, prefer the named options for EOL and NOP. Reviewed by: emaste, kp Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D47160 --- sbin/ping/tests/test_ping.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/ping/tests/test_ping.py b/sbin/ping/tests/test_ping.py index 8ec0f3dc74dc..90df07d0e5b9 100644 --- a/sbin/ping/tests/test_ping.py +++ b/sbin/ping/tests/test_ping.py @@ -85,11 +85,11 @@ def generate_ip_options(opts): ] routers_zero = [0, 0, 0, 0, 0, 0, 0, 0, 0] if opts == "EOL": - options = sc.IPOption(b"\x00") + options = sc.IPOption_EOL() elif opts == "NOP": - options = sc.IPOption(b"\x01") + options = sc.IPOption_NOP() elif opts == "NOP-40": - options = sc.IPOption(b"\x01" * 40) + options = sc.IPOption_NOP() * 40 elif opts == "RR": ToolsHelper.set_sysctl("net.inet.ip.process_options", 0) options = sc.IPOption_RR(pointer=40, routers=routers) @@ -116,7 +116,7 @@ def generate_ip_options(opts): options = b"\x9f" elif opts == "unk-40": ToolsHelper.set_sysctl("net.inet.ip.process_options", 0) - options = sc.IPOption(b"\x9f" * 40) + options = b"\x9f" * 40 else: options = "" return options From nobody Tue Nov 5 02:50:36 2024 X-Original-To: dev-commits-src-all@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 4XjCWJ6T8Tz5ctlf; Tue, 05 Nov 2024 02:50:36 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjCWJ5rz8z467Y; Tue, 5 Nov 2024 02:50:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730775036; 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=2mhNnaJJTEV1xi59FIJrVacvJENkdH8DJ7bpDmhByqw=; b=nF+75kMHzb/k7vLYHhE3AHh5kVclx/F+RTTZxb717AiMbQhFiGfDgrresb/OJK/sfA1+DY 6LcIFelU1vVLNsH6YZtqJo2aNdHz9ADm4DBlVskDWxVgoFlQ9S4VpRXh3nmG+gCokyaH/3 2BfN8OxgqKw6NfM2LSJ822UwgyT9agcJSeYol9q/fyuwl3+uKROtNceOTu7uh/W1qKkdxv LLAOoJUIxp3dX5CaDtOjsvaXZWryq8HocvGJJCQg9s7TMMac7cONTbzWUjq/XWPHkYx/Fc SghELSHXCdzTSqilnytZDaNtD/httYWnRz333YraYShOcTc3ZRdIUt/22L209g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730775036; 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=2mhNnaJJTEV1xi59FIJrVacvJENkdH8DJ7bpDmhByqw=; b=rk6b205EL9zAIOvZ4cI1XwznjZLvCbNwVOk2a9au3po4Yt8FooS2G1OJdBT2aYcsortBUk 7E+4hK5GwN6Q94GwjVoqiZ/8rPwCSRTWhlqXyfi2IfOwSomfXd6/L94DM3iQ7EpNmTE8wA cZhVZdhueKN25jmXnZlR25plvxT6+WIL3xn+V8LRN/dbbUW9JDVFNXulWzyqWBAGPd43EN JOn7D0EUDCcon0YnrH5egD0dO7KbdYhjcUKoMvWAh7k6q2kkdJj+aQmgNjARmrbSHYDJPE GwFlPzZjGT6sfetRJQL9/PPSyTfAOSriCjVp6ExLNht1vzqgxV0osZyDNzbo6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730775036; a=rsa-sha256; cv=none; b=rJaFq+zHtKxkT5dz+66a32f+j6XQ+A04R7Uj1OzEerxR3DV0ocYqQlD+sDdZbbljwFHHY5 OEHb4ExerZL/g2Ce4BZwgSZINj7WnHUvui/mjWhC5TfHaFolIGGB3W1un9WtlKfwBzgnmc /gLbSe13y3Qh8aXAPjlF5CsHL4H5c/jzwqEGqYomQDoKvjoNjiZVoGC59oqvK1LbyuV2CU SYJNzGi7ktzgtZ319m1o8jaR3W5z/ybElsB4gcS8RGi+aUtUr23A3Z1MCXQDlO93WNqaim n3ZJyFAAnCVLy7uGjMxNMxYyeEUrmuxI6ww7npSjqjH6uvFl/mH+uw39kabgrQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjCWJ5SFMz10DL; Tue, 5 Nov 2024 02:50:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A52oasG089177; Tue, 5 Nov 2024 02:50:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A52oaLU089174; Tue, 5 Nov 2024 02:50:36 GMT (envelope-from git) Date: Tue, 5 Nov 2024 02:50:36 GMT Message-Id: <202411050250.4A52oaLU089174@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 4859030ef193 - main - ping: tests: Align with Scapy defaults List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4859030ef193688153f490915794ae9ab77f012b Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=4859030ef193688153f490915794ae9ab77f012b commit 4859030ef193688153f490915794ae9ab77f012b Author: Jose Luis Duran AuthorDate: 2024-11-05 02:48:34 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-05 02:48:34 +0000 ping: tests: Align with Scapy defaults Align some of pinger() defaults with Scapy to facilitate debugging when printing packets. No functional change intended. Reviewed by: emaste, kp Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D47159 --- sbin/ping/tests/test_ping.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sbin/ping/tests/test_ping.py b/sbin/ping/tests/test_ping.py index 90df07d0e5b9..cf2e46a146c8 100644 --- a/sbin/ping/tests/test_ping.py +++ b/sbin/ping/tests/test_ping.py @@ -63,14 +63,14 @@ def build_response_packet(echo, ip, icmp, oip_ihl, special): if icmp.type in icmp_id_seq_types: pkt = ip / icmp / load else: - ip.options = "" + del ip.options pkt = ip / icmp / oip / oicmp / load return pkt def generate_ip_options(opts): if not opts: - return "" + return [] routers = [ "192.0.2.10", @@ -118,7 +118,7 @@ def generate_ip_options(opts): ToolsHelper.set_sysctl("net.inet.ip.process_options", 0) options = b"\x9f" * 40 else: - options = "" + options = [] return options @@ -134,7 +134,7 @@ def pinger( icmp_code: sc.scapy.fields.MultiEnumField, # IP arguments ihl: Optional[sc.scapy.fields.BitField] = None, - flags: Optional[sc.scapy.fields.FlagsField] = None, + flags: Optional[sc.scapy.fields.FlagsField] = 0, opts: Optional[str] = None, oip_ihl: Optional[sc.scapy.fields.BitField] = None, special: Optional[str] = None, @@ -169,7 +169,7 @@ def pinger( :keyword ihl: Internet Header Length, defaults to None :type ihl: class:`scapy.fields.BitField`, optional - :keyword flags: IP flags - one of `DF`, `MF` or `evil`, defaults to None + :keyword flags: IP flags - one of `DF`, `MF` or `evil`, defaults to 0 :type flags: class:`scapy.fields.FlagsField`, optional :keyword opts: Include IP options - one of `EOL`, `NOP`, `NOP-40`, `unk`, `unk-40`, `RR`, `RR-same`, `RR-trunc`, `LSRR`, `LSRR-trunc`, `SSRR` or From nobody Tue Nov 5 03:20:43 2024 X-Original-To: dev-commits-src-all@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 4XjDB32Rhtz5cvqh; Tue, 05 Nov 2024 03:20:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjDB31xhYz48WS; Tue, 5 Nov 2024 03:20:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730776843; 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=Y92KKazwHeeFNvd2AMgTynFfCGeVtbHuTb1GRlrk7B4=; b=qwBsTNt20SEgNeg18AydGr4mZsjgvM2cFXeWpchPfPGnq0QuG06lW5lPNDIjsA2Q+K2mJi x4cE6KtDh39dygncIDeN+eRuF7L8Es/HVWc/sdAs1sWgMNy6b793Gj2TkJIKcT7bXlkKd0 A6W1P2uDoqETOjwacJZnuRXpM8cCt7l+IFUrQPc2hHRUOU0A9FcV3UEKnyOZjQMLI1p55v xpf5F5lLHiDZsJqwS2kXGkCYr6giuRq01xgTkLR3A5/o/PqjZaToAJYAXflmAYZn+GrxFz 3P7the2SeKDMd11S80gqNEWV3VKfYHA8/9ArPY1i88W43jDPrYIAdl1z2I9g6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730776843; 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=Y92KKazwHeeFNvd2AMgTynFfCGeVtbHuTb1GRlrk7B4=; b=wk+UcyjSCw1FuaYIVPdWjiN6tG+CGOhTr1IczSjV9hdgtLNE49B7QXG2aoYTxvKU4WwKmU jLsamfffLG4pBj9VFdDhMflsiCef0TfNtymwkPDQefLlgFB3QZHC44ijUyFnWEOALY0HJo wzOR+uwYxBn6vjyVZYi0pXKulsUnBFSx9O2LOTmAwxM5jjfFs8slSrBe5mZNfy2FWeYgVU okljKHyhfs5vbbKTDzYvLZKLJkQCTC77af7gGD4Y+Tw1RzZtk/H/bY2dUVL5b3OFETlZED YCZBvwCsV7saFMH/uudiTxUO+LRB3Eywn9fOmO7TaZpdiYVy2w7mnyV0N74JwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730776843; a=rsa-sha256; cv=none; b=EneMLDrSf0YELWcPnct7lCB2XaNEmfjNFqlLUeR86TY7gb4V/pGVzSCVg1uc7YFcbWeN0U Edc23iE3LUkpdxgdbzKgpRH+dTaAo65xpi6VB6znjk35eKlhLqrhJdppkTnNOV38e8dsCT /YwfxdptrqAEJhFGuGX84+NwO6OCstxX9OkXeTnViVPt1HwLRQge2abSZxYVNSLxVEZF/l nodhHntQii21t8lnZ2uc6XdGgwVOO+n+sAL81vgSCMaRNyoVikvi9PQRVa5uhnye9Dm0Fg IE+CVz/FJ3Ru+vZfHo1zO9lQ0cViPWyIpiVNJ+nrGxeU9KoLeNnJ7zBsWyWowQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjDB31Y3kz10wp; Tue, 5 Nov 2024 03:20:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A53KhDX048014; Tue, 5 Nov 2024 03:20:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A53Khi5048011; Tue, 5 Nov 2024 03:20:43 GMT (envelope-from git) Date: Tue, 5 Nov 2024 03:20:43 GMT Message-Id: <202411050320.4A53Khi5048011@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 8b13cb9d654c - main - ping tests: Silence deprecation warnings List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b13cb9d654c985534d24a09ec5dab02cc4dea6e Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=8b13cb9d654c985534d24a09ec5dab02cc4dea6e commit 8b13cb9d654c985534d24a09ec5dab02cc4dea6e Author: Jose Luis Duran AuthorDate: 2024-11-05 03:04:53 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-05 03:07:03 +0000 ping tests: Silence deprecation warnings Declare some regex patterns as a raw string by prepending `r`. Reviewed by: markj Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D42174 --- sbin/ping/tests/test_ping.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/ping/tests/test_ping.py b/sbin/ping/tests/test_ping.py index cf2e46a146c8..93b42d7d53bd 100644 --- a/sbin/ping/tests/test_ping.py +++ b/sbin/ping/tests/test_ping.py @@ -270,15 +270,15 @@ def pinger( def redact(output): """Redact some elements of ping's output""" pattern_replacements = [ - ("localhost \([0-9]{1,3}(\.[0-9]{1,3}){3}\)", "localhost"), - ("from [0-9]{1,3}(\.[0-9]{1,3}){3}", "from"), + (r"localhost \([0-9]{1,3}(\.[0-9]{1,3}){3}\)", "localhost"), + (r"from [0-9]{1,3}(\.[0-9]{1,3}){3}", "from"), ("hlim=[0-9]*", "hlim="), ("ttl=[0-9]*", "ttl="), ("time=[0-9.-]*", "time="), ("cp: .*", "cp: xx xx xx xx xx xx xx xx"), ("dp: .*", "dp: xx xx xx xx xx xx xx xx"), - ("\(-[0-9\.]+[0-9]+ ms\)", "(- ms)"), - ("[0-9\.]+/[0-9.]+", "/"), + (r"\(-[0-9\.]+[0-9]+ ms\)", "(- ms)"), + (r"[0-9\.]+/[0-9.]+", "/"), ] for pattern, repl in pattern_replacements: output = re.sub(pattern, repl, output) From nobody Tue Nov 5 03:20:44 2024 X-Original-To: dev-commits-src-all@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 4XjDB45P3Gz5cwDs; Tue, 05 Nov 2024 03:20:44 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjDB43Z1Dz487d; Tue, 5 Nov 2024 03:20:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730776844; 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=htWL6vTcBpMLIikay8Bm8SrbnBQsMm5zFcYLFDdoR3Y=; b=QqE/C5pKhF6GFHK1DDcuGFag0uHG6Epj3cexOzqKvBZNp4lJpolqJdCHxLT6F+h6xfrT+1 weHWt1jwJAc8YxDoJo6dkoY/BRA94Qjr+IbXAEjFfMSETYKKe0206eWnbfUwodqB9a5Aps WAVo5suY5v8N9rBdAVjBIx93dnY4hZtqJC6qdvsEVIoubhFMmegCC8SQqCcjP1P/1NoXhB DmCeQQ5sYpYwL2DX2dX4t7koFsc/EPzEJ6gLVe9uhxBWjqzpaGESZ9BisRxEW3PqUJWkct OnbgEkENiN3/rMSQ+eEM85pmkyeSOpOXko+uMRV+rhPQ4+sq3de6GmSkGjbXqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730776844; 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=htWL6vTcBpMLIikay8Bm8SrbnBQsMm5zFcYLFDdoR3Y=; b=gNMBQEUuXRUGV/TmL/PTYsMcUQKOu9oxvbcpADb65MZ/8qLJt0shcQKxmLzDnd27RjJi1m pF/CeWU+AJmgXma6u0KWm1+310QL+jtnKXFqapcwSxxEmS90FM+48yQoVKctlO5Z/wR1wf 3ZFZlPkQSWru0RFHfble2UG8LyeHxJTPsKyWUgQiEXW8wDXlp9rEgTVDMmTjgITEQ6O8Kb DTNrQg2ONiuVbt7FG1n66KRF2BOUewWTUyuh1ON+gfIBblDeVjWNHPqNXW4Eye7GDJ7MBM tLjlKK/2A8THSIprTk7As7SayjNbH2wbRScO3yNHfLhLXOQlspM5dEDOWLnFMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730776844; a=rsa-sha256; cv=none; b=Tbcj9oBCXWcRFmlXopEQCVVe/fMo7PMlrZEA7rxhEK98pxVUF48CnkthZD7uer/nPOfKMF 2cyt7Ec6/EFB9IY1RGQa6UcYmGibaBxTkrH3+pniucrNzegHAlKWGfazBrNYBPx2lBoMkq 5RIKc6Gs7ZtAHYccaFgvPDVnIhJU6Ctri9p1gI4eedGzNiVuhV1HqsEriNw70QUYcQkxyt BfAubH6y+5Cx1oZanYBcZtvWSwDqCXw7HZrfCLKTo/1sHJMl0fk3a08ZoC1FU5kxys4gVq iZO7/fM1Z79+UhFMwmjxYbpNp3/pspBwJkw+gj+C8iVZoHQnDwa7oMdXqG7NNg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjDB42LY7z1093; Tue, 5 Nov 2024 03:20:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A53KiIn048080; Tue, 5 Nov 2024 03:20:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A53Kiah048077; Tue, 5 Nov 2024 03:20:44 GMT (envelope-from git) Date: Tue, 5 Nov 2024 03:20:44 GMT Message-Id: <202411050320.4A53Kiah048077@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: 5797a03fe8a7 - main - ping tests: Run tests unprivileged inside a vnet List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5797a03fe8a7c3355a727aaaea803ee1f42d106b Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=5797a03fe8a7c3355a727aaaea803ee1f42d106b commit 5797a03fe8a7c3355a727aaaea803ee1f42d106b Author: Jose Luis Duran AuthorDate: 2024-11-05 03:00:38 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-05 03:07:32 +0000 ping tests: Run tests unprivileged inside a vnet In order to create vnet jails, atf_python needs root privileges. However, once the vnet is created, its privileges inside the vnet can be demoted, as these tests should not require root in order to pass. Reviewed by: markj Approved by: emaste (mentor) Fixes: 4efaf43c6fa7 ("ping: Require root user for pytests") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42175 --- sbin/ping/tests/test_ping.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/ping/tests/test_ping.py b/sbin/ping/tests/test_ping.py index 93b42d7d53bd..3f9a3aecf924 100644 --- a/sbin/ping/tests/test_ping.py +++ b/sbin/ping/tests/test_ping.py @@ -724,6 +724,7 @@ PING(56=40+8+8 bytes) 2001:db8::1 --> 2001:db8::2 @pytest.mark.parametrize("expected", testdata) @pytest.mark.require_user("root") + @pytest.mark.require_user("unprivileged") def test_ping(self, expected): """Test ping""" ping = subprocess.run( @@ -753,6 +754,7 @@ PING(56=40+8+8 bytes) 2001:db8::1 --> 2001:db8::2 @pytest.mark.parametrize("expected", ping46_testdata) @pytest.mark.require_user("root") + @pytest.mark.require_user("unprivileged") def test_ping_46(self, expected): """Test ping -4/ping -6""" for version in [4, 6]: From nobody Tue Nov 5 04:20:29 2024 X-Original-To: dev-commits-src-all@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 4XjFW12KRVz5d01p; Tue, 05 Nov 2024 04:20:29 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFW11kqKz4GqW; Tue, 5 Nov 2024 04:20:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780429; 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=vFZFRdUCbx8HrBBGMzqa82eiWiubausYjOTobmkMyfY=; b=xV+9yOpc+s0BsU+EqdtMd3KcopcRAStjvTZELWQwO69qB9Gb9og7T5VwXSWRBI7/nCGMbl sWEQCVeXnTXFQwhVr8YXuF6UPOSB+SbXFz8ScTLBRCPvKLEG2Bme2skdnjWGwQkbFwufGs E+QmRcF56AfaMa8t81oK9Tuwuf9a7Ulsg8ZJy6t7izYgbUW8ooiBVMG2rGGUFQTRMJu2Mf p7EynAmVYOu9Q5HxSb+IOYR/OQP7aB9+W3hZhtSVcxH+NWpl9a5Im584ZFTSNAWdGQEnQL AaGd6swT2fnbSlgiMkmkP8XyHHg3Ylleio0+S+hVPyh1ZEJf1rdMOgOvngqBbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780429; 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=vFZFRdUCbx8HrBBGMzqa82eiWiubausYjOTobmkMyfY=; b=FRTXCsTA5YbJrJBbYM9psRm+F93j8eHHOKVFkBY1aDwob2nGpGb2uHyfb71EovbjP49LhC 9BeG2BFQ3mJ7mhiOxaqcpY497C+czWyUww+4dBcP0KKy7E+YdTGQM9oLOLVmoy6uwtobod OPVqKzAOpqYaWREt1fk9Hy/zNdCAjPupbC2mZYMQJIJBYW+juqCMGVPPmlDe+lEIrns2X1 xH0kRXQFDVfmLJlLwkpodkIJdiGUX30BSOtV7EIatB8k0M+xRVIXNRN1VsWU3nOhyYGpbp d6G+j7QRwiTtX8/IvftVWKZnOd1P0bGuxsRM0iwmipuBWWt4JoAC3d4A1J+JPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780429; a=rsa-sha256; cv=none; b=Skseb5FrOBd3W/B0TzFu6LsGHUm0crOmyY8SzsjCVEz6nnt+SP12K0/r2LMorqEM5fTgRy 6yS6ec1fKbDXbfrRU1UHDQ6kw0yoKR70jWm62WehIxWRTx2fXl5t2cEK2n/drWtdJOPzXN 859l4LY7Ba68WghLIPIiS8PO4juM6fp/zgpDFZZ8moPjrkUTA2iLe1gwscHln3YZoBo1d1 lhpW4nRNyxp4WaOQcZj4WkcfssBdMIqyiY6+w6UTci3inQJR7MpIGcUsHFCdTwX/q5ZoLE maq7BSz+8ps80vumE9+ZqsO7twxPWRMENIvasTVzGXsayL3NZSvRYzSHDNKtNQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFW11Dbgz12gg; Tue, 5 Nov 2024 04:20:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54KT7U057905; Tue, 5 Nov 2024 04:20:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54KTWD057901; Tue, 5 Nov 2024 04:20:29 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:20:29 GMT Message-Id: <202411050420.4A54KTWD057901@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: a752de91d015 - releng/14.2 - kbdcontrol: correct bell frequency for vt(4) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: a752de91d015b8e377757a6337b85ebdf39fb7d6 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=a752de91d015b8e377757a6337b85ebdf39fb7d6 commit a752de91d015b8e377757a6337b85ebdf39fb7d6 Author: Ed Maste AuthorDate: 2024-09-26 23:55:33 +0000 Commit: Ed Maste CommitDate: 2024-11-05 04:19:13 +0000 kbdcontrol: correct bell frequency for vt(4) Do the `1193182 / pitch` hack only for sc(4). PR: 281713 Reported by: Rudolf Polzer Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46803 (cherry picked from commit f65c19a242de322930f6a1cd7d5e6bf3ce19ce42) (cherry picked from commit 2234362780854c426395a35403ed3dce42ccacc9) Approved by: re (cperciva) --- usr.sbin/kbdcontrol/kbdcontrol.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index e55165fd0888..9f8593990542 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.c +++ b/usr.sbin/kbdcontrol/kbdcontrol.c @@ -1038,8 +1038,10 @@ badopt: warnx("argument to -b must be duration.pitch or [quiet.]visual|normal|off"); return; } - if (pitch != 0) - pitch = 1193182 / pitch; /* in Hz */ + if (!is_vt4()) { + if (pitch != 0) + pitch = 1193182 / pitch; /* in Hz */ + } duration /= 10; /* in 10 m sec */ } From nobody Tue Nov 5 04:20:30 2024 X-Original-To: dev-commits-src-all@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 4XjFW24RVbz5d0XG; Tue, 05 Nov 2024 04:20:30 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFW23756z4Gn8; Tue, 5 Nov 2024 04:20:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780430; 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=J4JsjkDKqM0owMNWayuvMQ++cUd8EQ/kPaRR7uUGvFA=; b=oyzE45xlpI1DxlOkqa1YVeTNKgPbb8WbX4FkkDVcm88gUtYeaVwS+uEjcnB05F6zJxd5PT PdoAi/LK87P47K6oVokvGMWhT51a3ETiSuAbKvQjEuaDpT0tYqDk8ANguATX8oJ8hgQ1mi 2Q5/5+mSzH3QK0KhWMNz5NgkRFtrhCRvcWWsm4s5hEHFMQ1zz4Wwx5RU5vIcV2X23Ovq5Y leZLsR4/rrECgfV2TnGz4z9Hcjiw1B7Hm9AHpiP1TDyt26k72HZmPfOYrjJ0kUopPfeiQS MNPp/CGVtEtj708/XHeYQFgcY0EA9UMYLEjHZsrffGBOlYanvE1NIoNFOpA98w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780430; 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=J4JsjkDKqM0owMNWayuvMQ++cUd8EQ/kPaRR7uUGvFA=; b=f24fVeZci7TWpjqRIF0v3YYHOsfPRty/AdFjCO1LlRl41/yGPmAgK+AHWQBk6G1akwHgVe yYT5R/TN0a+AFkB0CcYLjD+A4ONpnLwB9aE3XIG2mL9ilBhriU03Bve4EzE7C3yjx9cnRl sOM5R2XAfRFFmGQfP5s0eZHCMFDsCHNotBpLBwkFontEn2D9QnY1cGKECX7UPaPNFIrlc0 47GfTpd1FzLkyqfO1JtwIEecFmsk9jIiUdknt9n2W8XI91kf/N2TE8VdnXbXsz0hDSuybh u80KMzkkAR2/xmpeucWftymCQo/W4UK3kqvVYUQqrzoeqf01KSPQO9MvdPq96g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780430; a=rsa-sha256; cv=none; b=gIzVe5lrmLQWveCa5f97ATlo1a3KS4NGinrYSfGkFZzMhh8cA2lPg1RipY1n+GUJSclv0O ivEExqkGxtJVS6OlJDGZICONMI5Chnp8i3YDot5vlzqQMPH64xmq598CGoXeCJO5UJQBnW xP7RcONcS5ueLhJuKRpKcAYCe1vgjvcKCk7uAaQ86NS4ZoWUBdniB9MUiOh9KIxps646RN a56NAANPDmsTW7OVZGyif29Z8hY4cky6YkEI8eq4wcFzSwURhXAJNpruvKCcQLQveE8qCq CaJvUCliNi6JG8APRFIVmrnHCsanURH56+W1JN+O2Ghsmibe9pBRi8tvKDGC7A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFW22WkXz12bJ; Tue, 5 Nov 2024 04:20:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54KUSX057964; Tue, 5 Nov 2024 04:20:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54KU0m057961; Tue, 5 Nov 2024 04:20:30 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:20:30 GMT Message-Id: <202411050420.4A54KU0m057961@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 0015947451ea - releng/14.2 - vt: Fix frequency calcuation for bell List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 0015947451ea0555e13f8e8af710eec81480b5ed Auto-Submitted: auto-generated The branch releng/14.2 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=0015947451ea0555e13f8e8af710eec81480b5ed commit 0015947451ea0555e13f8e8af710eec81480b5ed Author: Warner Losh AuthorDate: 2021-11-03 21:55:55 +0000 Commit: Ed Maste CommitDate: 2024-11-05 04:19:22 +0000 vt: Fix frequency calcuation for bell 386BSD provided a MD function sysbeep. This took two arguments (pitch and period). Pitch was jammed into the PIT's divisor directly (which means the argument was expected to sound a tone at '1193182 / pitch' Hz). FreeBSD inherited this interface. In commit e46598588587 (svn 177642, Mar 26 2008), phk changed this function to take a tone to sound in hz. He converted all in-tree instances of 1193182 / hz to just hz (and kept the few misguided folks that passed hz directly unchanged -- this was part of what motivated the change). He converted the places where we pre-computed the 8254 divisor from being pitch to 1193182 / pitch (since that converts the divisor to the frequency and the interfaces that were exposed to userland exposed it in these units in places, continuing the tradition inherited from SCO System V/386 Unix in spots). In 2009, Ed Shouten was contracted by the FreeBSD Foundation to write / finish newcons. This work was done in perforce and was imported into subversion in user/ed/newcons in revision 199072 (https://svnweb.freebsd.org/base?view=revision&revision=199072) which was later imported into FreeBSD by ray@ (Aleksandr Rybalko). From that earliest import into svn import to this date, we ring the bell with: sysbeep(1193182 / VT_BELLPITCH, VT_BELLDURATION); where VT_BELLPITCH was defined to be 800. This results in a bell frequency of 1491Hz, more or less today. This is similar to the frequency that syscons and pcvt used (1493Hz and 1500Hz respectively). This in turn was inherited from 386BSD, it seems, which used the hard coded value 0x31b which is 795 -> 1500Hz. This '800' was intended to be the bell tone (eg 800Hz) and this interface was one that wasn't converted. The most common terminal prior to the rise of PCs was the VT100, which had an approximately 800Hz bell. Ed Shouten has confirmed that the original intent was 800Hz and changing this was overlooked after the change to -current was made. This restors that original intent and makes the bell less obnoxious in the process. Reviewed by: des, adrian Differential Revision: https://reviews.freebsd.org/D32594 Sponsored by: Netflix (cherry picked from commit ba48d52ca6c867559156dd916631f9ac47abe80f) This change was accidentally reverted in 80f21bb039ce. (cherry picked from commit 2416be588ea113cc06b924ed85861ed3bc391fe0) (cherry picked from commit 1c9f1cb4f0a71bef37796a8ba139b86cc716ee88) Approved by: re (cperciva) --- sys/dev/vt/vt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index e27f74b03a0f..f3cc4e29cf07 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -120,7 +120,7 @@ static const struct terminal_class vt_termclass = { /* Bell pitch/duration. */ #define VT_BELLDURATION (SBT_1S / 20) -#define VT_BELLPITCH (1193182 / 800) /* Approx 1491Hz */ +#define VT_BELLPITCH 800 #define VT_UNIT(vw) ((vw)->vw_device->vd_unit * VT_MAXWINDOWS + \ (vw)->vw_number) From nobody Tue Nov 5 04:20:31 2024 X-Original-To: dev-commits-src-all@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 4XjFW36Jdxz5d0Tn; Tue, 05 Nov 2024 04:20:31 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFW34bzFz4Ghq; Tue, 5 Nov 2024 04:20:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780431; 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=p/vXFnKBaL+UXSbjEorOSuZc95LVx6nXoJCEN15ewE8=; b=PffxiMjMyxc8Aal/HdCvS+BC9iuBsqexDSUAhcGSQS4XXE4Kl4u9bHalm7HnxCwhAhYNr4 e7O/jRUu/Jl8Ao0KfhK/EYDI4zb2GXOKlHv95NLcGhWlHPlcdA8JRe3KgO7ljPQRi39O44 5j56I8TZs/elrSeHQc5GyYdfACScLTPnDSB27/huE9GJbErs0GfYYD/HJvdWdD7vkahQlo 50PXNJACcLXzB8ycgV/NU4lN+lxTPdmsX+lxYRJ2Fn0hxGmPO09ErV5FQoqON0SFEorVDQ g7QgOq04G+K4flnOEyjB+h8gbd0tVHMR8g5S+DrxqCwl/KKWQeqlGvHcA9DGpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780431; 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=p/vXFnKBaL+UXSbjEorOSuZc95LVx6nXoJCEN15ewE8=; b=OH9uk8A7b5LiEkm1hNBEQPr7Oihi8TunAOumcDBgM9wpHKhCoP6KwX2ZPv4hTGrM6+Yaqh Ku2x2i6q/vEV/Qg2qinQLycAA5vUOm/2Ox5RZGRjZn9UV+7cq61GavxMxTjEsRX3sJsc6U PFaoflepHvHb4NhOhoDsaqJPpDv3pae5ICq9oKOHDO/W3X8ljMXIb5auL2AN0piJmPnprG wtnpJvmjDTsnnsjUpXd7Sui/ZhIn76GJ2/hCCb6lw8CE72OQyEWs3yDZO4MnIxhJBuSzEX dBYk7UPu6vwl4KuJgAZCnaUnq6Tzo+wrCt/JdGO2XFv4Y4EiamcXzFQU8QIH3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780431; a=rsa-sha256; cv=none; b=cHN2GceI3YW+/SVnzv22wmGl+BUcaU/XJocVGhoBUmROcAsy4139hyNuBr7yYfNDLD1bTy UT2XA5XaklT2M70gsujAbPoPQSucSbRYGhl/6TEzyg0WkVWRI0r3dSDfcUibHydQ3WH+db ++WCnsT/zkkLBw2QixTyg/uP/Ji+DjCO7ZSqc10lL9NZ2j5CdyQhskQ5zk2Z01HGzW8kHB 3quDJfxYrTdeVr/l5eKWY6ulWcuTYX6wkneq1nx1+lNVrg4RbOiklwUYMZ42++ynZT+16/ h3ZrdWU/XqRAgW25CvOBwDGZi8XGUluoF2mZTgeyI7o0f6cWvkeqysEjHyi/2g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFW32r0rz12r9; Tue, 5 Nov 2024 04:20:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54KV24058003; Tue, 5 Nov 2024 04:20:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54KVV4058000; Tue, 5 Nov 2024 04:20:31 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:20:31 GMT Message-Id: <202411050420.4A54KVV4058000@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 2bc5b1d60512 - releng/14.2 - syscons: add deprecation notice List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 2bc5b1d605125ee5dcd262339e3854678ff9acb7 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2bc5b1d605125ee5dcd262339e3854678ff9acb7 commit 2bc5b1d605125ee5dcd262339e3854678ff9acb7 Author: Ed Maste AuthorDate: 2024-11-01 16:51:01 +0000 Commit: Ed Maste CommitDate: 2024-11-05 04:19:33 +0000 syscons: add deprecation notice syscons(4) is not compatible with UEFI, does not support UTF-8, and is Giant-locked. There is no specific timeline yet for removing it, but support for the Giant lock is expected to go away in one or two major release cycles. Add a deprecation notice to avoid surprises, and help ensure that any material deficiencies in vt(4) become known. Reviewed by: manu, markj, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47396 (cherry picked from commit fc2a3ec6fe6aa00d9be0c293c38e0ef9ac7e2b64) (cherry picked from commit 8c922db4f3d9dc41f228357d391f0a899292427e) Approved by: re (cperciva) --- share/man/man4/syscons.4 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/share/man/man4/syscons.4 b/share/man/man4/syscons.4 index 19ecd5e3746e..7e31680ced3f 100644 --- a/share/man/man4/syscons.4 +++ b/share/man/man4/syscons.4 @@ -24,7 +24,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd May 25, 2022 +.Dd November 2, 2024 .Dt SYSCONS 4 .Os .Sh NAME @@ -69,6 +69,14 @@ In In .Pa /boot/loader.conf : .Cd kern.vty=sc +.Sh DEPRECATION NOTICE +The +.Nm +console is deprecated, and will be removed in a future version of +.Fx . +Users are advised to migrate to the +.Xr vt 4 +console instead. .Sh DESCRIPTION The .Nm From nobody Tue Nov 5 04:20:32 2024 X-Original-To: dev-commits-src-all@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 4XjFW46VHwz5d0Zk; Tue, 05 Nov 2024 04:20:32 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFW45Vjnz4GgJ; Tue, 5 Nov 2024 04:20:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780432; 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=3WFxtA/zs3uP23gRHS1t24S0+96cCeziJVYaOn6b2ro=; b=luqycW2uk8Ly1xtmaKQx/P0bYxxD6/v0oYIta1MszakLdbYNrmzUjLNuH25P9ZI6bDJq85 +DN6uU5YM3q56FDYhBOe2Rpe7GvxLt8QsoSYi6ew515K9U8f/K4g3hUhh9AHA4lbuck+ZE G51ZXkSrnuerr5Q1TyB5MCGHQwLqAk0f1Bxk7HMPdTzVNLjykXYA+bckcvxkoHighza7f+ L7nyJ+a3cmdW9tBW+e2j6sQxHmwUiqj2F/f4BYp82PscV8jJWcz2u41WgPdjdPlHEAzbjg UBxSTwwqyZ+X2Pag3DcjSvQiWTJ3BwepjPDuN94xI+VaHY+y4eTUdqI+huC+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780432; 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=3WFxtA/zs3uP23gRHS1t24S0+96cCeziJVYaOn6b2ro=; b=IZ1sqUvg4yBv9GZkmAPmxyfA67Ngs8lUTH34tHoeQNmvbMF4GtRjnCdYgXt/jV2fFRs62i 0iP8mBrqhkwQPcptmxI8Un5H2OUnJx1bx1uNru3tk6E1KK59taJUo26XX7DPkrSpqmzvPM NfKINvfJL9ZUb8W2Bu7b3bZuzvRZ+JI44VJDfduc+rBIueDZ7X4CptWCP0TBqjgt2G1hGh YG9CNk8D20Rj/+cjKbTJYgOMPDmRaptRQ+ErOMfvv6PvwfvbgVJ+v81sTfRaTPzbpNk/2V 5JL/HH0quht8AlK+XLB5He1+0fgO1WQSXZ2RWs3YWkYS9Pk9GEJK1W97UhylHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780432; a=rsa-sha256; cv=none; b=EUSGH7TCgmU+V7vpG50KrFEzjaQBMhz4qS1atH92bgnhG6idGS5Tz/F5W7+Tb7o6WOevtK BVUsbOYgGV7/ynk99WbLP80JJihrZqpZftuT87zHpq2loq06e7R7UMdllpkzAWJoAXaS1+ rI/wzMosygIAhkUIJrOYb3wRX+RmZDd5F3P0hON9QpVPURYf/2v4TgzvosICWvJ1rrL4/t J9Kv+V3KmBMWhleqbPpvC34CbNpuCnLqDoYelmMYNeL+xd5Cqiq6mn5ApnsYBgI2kzKWEt 8ZUaY7VKJcL9pkoKIVD6lDjzc9gM0DWQ1g/dM0faZDyD5ZepPqGhGY0YUkgXaQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFW449ccz12YH; Tue, 5 Nov 2024 04:20:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54KWSi058054; Tue, 5 Nov 2024 04:20:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54KWVW058051; Tue, 5 Nov 2024 04:20:32 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:20:32 GMT Message-Id: <202411050420.4A54KWVW058051@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 58e70f39fdec - releng/14.2 - resolver.5: Fix example Google DNS server address List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 58e70f39fdec2b68c004b2d829fc2746f1721ff1 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=58e70f39fdec2b68c004b2d829fc2746f1721ff1 commit 58e70f39fdec2b68c004b2d829fc2746f1721ff1 Author: Paula Breton AuthorDate: 2024-10-31 07:11:04 +0000 Commit: Ed Maste CommitDate: 2024-11-05 04:19:40 +0000 resolver.5: Fix example Google DNS server address MFC after: 3 days Signed-off-by: Paula Breton (cherry picked from commit e7f0f4f9206e8b0f411847b293c7b79eb84f0e51) (cherry picked from commit 3e3e2c6328475ab8460f6f57aa2696c544d9ddec) Approved by: re (cperciva) --- share/man/man5/resolver.5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/man/man5/resolver.5 b/share/man/man5/resolver.5 index 525a681cb564..c3ec226efa6d 100644 --- a/share/man/man5/resolver.5 +++ b/share/man/man5/resolver.5 @@ -238,7 +238,7 @@ nameserver 192.168.2.1 # Fallback nameservers, in this case these from Google. nameserver 8.8.8.8 -nameserver 4.4.4.4 +nameserver 8.8.4.4 # Attach an OPT pseudo-RR for the EDNS0 extension, # as specified in RFC 2671. From nobody Tue Nov 5 04:20:33 2024 X-Original-To: dev-commits-src-all@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 4XjFW614zHz5d0Zp; Tue, 05 Nov 2024 04:20:34 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFW55k2Lz4Gnl; Tue, 5 Nov 2024 04:20:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780433; 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=iLm9gYlr7iAp8BzjsJWED+RaeMb9wgP6x+LyZmK/eRw=; b=qSwqIxEBotfbtpj4OlYXJOAttWQsYcRvaAeU1Le1c/Vjm8AlseJ1JT86bOsW8b2tBhaYfE yeD/XWuRHL8nwuZJnBrAKDxc3Jxu6EwvUDjzOXqcV95qhW0jJGYkBjMM8IiswYul3vV+7N NXQg/Hbsjbka35vai0esY1f1FF6EsjNlYnpbPa3F/MGDvDKe4hybQ88XJ03vqjAG28uhhI AlZy6lElYLoRgq+HKXfGrkoE2RtyCbsklyOoos4FpQL8akN2rQXK4GMAX8WxhGPf1gF797 fj2AwWi08tVBTvVekathjbF09V3jhG9RC5B//ehB9gnOoaTDol3GRzIAYoPkAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780433; 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=iLm9gYlr7iAp8BzjsJWED+RaeMb9wgP6x+LyZmK/eRw=; b=U+4g5USvUiQWs3OMRF6Zn5CYWLO5wdRd2G9kaDcSvMAV+fmJuv4NQgVnYRURjlJVVevtk7 qv1VDMnUwXIhNfodHWBRPdi/stsevZFZlWKA5Q0DiXIm64JrnK6zYtbsi08eL8i46hOtYA TPkKHY5d40G5ko/wSFJ926tcFoqCc7jiT+GcDKLWoXm2u3ZRqUSmT0GY0fYI9Db7ry2l8l 8BnyK6SUC47ZMAyPcIkBcmFqHUod/g3Csts7oSdGs1qIYaIS8eEqqgn+AqtYHMrzuZvr0d QWXZ0KB/Kpv+3eT3sl6uGlBiqBzv71s9shfGU56ijt3r5Ekrbxkew68MVldXcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780433; a=rsa-sha256; cv=none; b=dE5CzKgAmC+MWg+vS6XCJ3rOWUrKMu72X1n+FXEB6uHF33MWN18xGdVmEgUJ+mzbPPedS8 KTM1SloZk1j4h/UPG6QURO/f51A07hs4t0v8Uxiyj4uRLcZYfmiKE9QuRsDInHKbmyTBHZ FqKFNqSan5rX/nOfYsPOrqaV8UvSKlLc8WrkIcexoFoniL/luR1gscP8ZWsvsdqWTEMlEh LeDTxeEor8gTmVisaL/B92aRxy9SzIc4hLqNnL70FFUSQy0P/2VET2TV+U/oi9IrqZuqil g/mpd4jD88CGcl2O9NHpJ8d13HtL2moxf/KAIX3dbJaSvhDuTQ2v85KnG4+ccQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFW556Nbz12rB; Tue, 5 Nov 2024 04:20:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54KXps058096; Tue, 5 Nov 2024 04:20:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54KXDk058093; Tue, 5 Nov 2024 04:20:33 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:20:33 GMT Message-Id: <202411050420.4A54KXDk058093@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: bc01ae40e45e - releng/14.2 - Cirrus-CI: switch to FreeBSD 13.3 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: bc01ae40e45efca283ea7c2b5d5c8549adfb340f Auto-Submitted: auto-generated The branch releng/14.2 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=bc01ae40e45efca283ea7c2b5d5c8549adfb340f commit bc01ae40e45efca283ea7c2b5d5c8549adfb340f Author: Ed Maste AuthorDate: 2024-10-26 15:03:15 +0000 Commit: Ed Maste CommitDate: 2024-11-05 04:19:50 +0000 Cirrus-CI: switch to FreeBSD 13.3 Sponsored by: The FreeBSD Foundation (cherry picked from commit b15889d6d22a36333dec4362aea426521281c72c) (cherry picked from commit a1883e20bc784b8055d4349e4c3ff1e690efe17c) Approved by: re (cperciva) --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 13719a3e2058..45c31c9f07b2 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -4,7 +4,7 @@ compute_engine_instance: # gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images platform: freebsd image_project: freebsd-org-cloud-dev - image: freebsd-13-2-release-amd64 + image: freebsd-13-3-release-amd64 cpu: 8 memory: 8G disk: 40 From nobody Tue Nov 5 04:20:34 2024 X-Original-To: dev-commits-src-all@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 4XjFW70hNTz5d0Ts; Tue, 05 Nov 2024 04:20:35 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFW66JHhz4GjT; Tue, 5 Nov 2024 04:20:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780434; 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=3WZg9NTraYBNmx50VxF0xabAarMLj489S90y8g4r43c=; b=tt7o58rMrMPtsQrPLuSRegxV+XMm3RQuaHXRBwLUFW1R3lexiVXI/nxIP5DozN3LAWUyL3 51d1HGQOFPS7Y+2XpO/iY/C3PrsbGN1tqB3KrOBj7SzeTolu3gPEe7azrAh3eOJpPh3Adn vlP7G/M0ft4sl8WNoB/adziSJtpbC9xQVp59/KptwYGKnO3eDgBlYm0l1/c2UZXmehFZ2C HW2bPZPb+sIWKSRDPA6cR15NcOp0i6FANHxIMJ8rHCwac8AJhJOx75qGBuDnJnunh3xpqs pDkk2PPkRbPCxzx2qJj4zkizgy1mLLHNKkYdePl4NEeIdMsFk2dqEYcQ3/cAzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780434; 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=3WZg9NTraYBNmx50VxF0xabAarMLj489S90y8g4r43c=; b=pMfO1hqt6j6JZPoYQnDInAjk1Yf84uroqYgMFakVg893lD7aahHOXVb0iwSbxNWrDACoNm elj+UVZPgNASjZ/ALWwtrZcJt9PRIMYgY5O0H9wSXPyNwtD8pkq9cKKR5eMcL0hSyI96fT UiuaDNllGPK0RRKhyL8FAue2uhw+qow3C51xePHG1lUCO6q/YVTZ6nIikZPBWz1/EcvM18 q1XpCholgT+XvH+uHpFYcHeez94jLfdTqgGjTHD+r/JCrxYdFdA5g8xcK59UXsdD+MgoB3 6BdAOjJvmcLjmRXdIQgq9Qqkm6QwoK/jc0VvTNcKwH7wHfAePS+PAL8BXYTt9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780434; a=rsa-sha256; cv=none; b=gQZ+UcqRddnpHn2FZIMdRY8Wvbm5g9ukGJKZBh6GXsdjf9ek38pu5F9rXn31lLyfb7ajL9 2bAnKq58gWGFq6zKVvqZ6LAIJncxZynBP6im9Smc8ISPiW3AGaANsR3O1tWbYp2KjoZGez +FM9P6K4MoSjmdR7KP9/6UVycd2gnZZreLuZ9y63c5S6tA4mUlmnj5y9b+JuCRrPpv2O7m e9eTPGWcj8Rs0o1BNnVhqavq403MgvrK0DzU1gg+HXqYHzYHr35pyEKqkXFT2EOt///Jhm cy+/CCztEnfyD8s9MU/HIEklGiVTwcC6jYcCfJHsn1IF3obeRKqtFWU02okYtg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFW65kY0z12bK; Tue, 5 Nov 2024 04:20:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54KY1M058152; Tue, 5 Nov 2024 04:20:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54KYEp058149; Tue, 5 Nov 2024 04:20:34 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:20:34 GMT Message-Id: <202411050420.4A54KYEp058149@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: d0dcee46d971 - releng/14.2 - libcxxrt: Update to upstream 6f2fdfebcd62 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: d0dcee46d971c79257be42b0e50cd9183c79fcbb Auto-Submitted: auto-generated The branch releng/14.2 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=d0dcee46d971c79257be42b0e50cd9183c79fcbb commit d0dcee46d971c79257be42b0e50cd9183c79fcbb Author: Ed Maste AuthorDate: 2024-10-31 15:51:29 +0000 Commit: Ed Maste CommitDate: 2024-11-05 04:19:58 +0000 libcxxrt: Update to upstream 6f2fdfebcd62 Interesting fixes: 3cbfe5a556fe Avoid noreturn warning on terminate() (cherry picked from commit 2dccd21949f26b1bdf5e7cf258b760fffd3bf259) (cherry picked from commit d9901a23bd2f4e6aeef7f628f946134c4698fc38) Approved by: re (cperciva) --- contrib/libcxxrt/exception.cc | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/contrib/libcxxrt/exception.cc b/contrib/libcxxrt/exception.cc index c87fe5ac4468..5034809a1380 100644 --- a/contrib/libcxxrt/exception.cc +++ b/contrib/libcxxrt/exception.cc @@ -237,7 +237,7 @@ static_assert(offsetof(__cxa_dependent_exception, unwindHeader) == namespace std { - void unexpected(); + [[noreturn]] void unexpected(); class exception { public: @@ -1530,28 +1530,34 @@ namespace std if (0 != info && 0 != info->terminateHandler) { info->terminateHandler(); - // Should not be reached - a terminate handler is not expected to - // return. - abort(); } - terminateHandler.load()(); + else + { + terminateHandler.load()(); + } + // Should not be reached - a terminate handler is not expected + // to return. + abort(); } /** * Called when an unexpected exception is encountered (i.e. an exception * violates an exception specification). This calls abort() unless a * custom handler has been set.. */ - void unexpected() + [[noreturn]] void unexpected() { static __cxa_thread_info *info = thread_info(); if (0 != info && 0 != info->unexpectedHandler) { info->unexpectedHandler(); - // Should not be reached - a terminate handler is not expected to - // return. - abort(); } - unexpectedHandler.load()(); + else + { + unexpectedHandler.load()(); + } + // Should not be reached - a unexpected handler is not expected + // to return. + abort(); } /** * Returns whether there are any exceptions currently being thrown that From nobody Tue Nov 5 04:23:59 2024 X-Original-To: dev-commits-src-all@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 4XjFb33M0bz5d0gF; Tue, 05 Nov 2024 04:23:59 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFb32vQLz4Jcn; Tue, 5 Nov 2024 04:23:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780639; 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=/pX1melMoE6X5DAdTeehotHF2nrBDd8Opzo1WWov36U=; b=MnzFdW5vMg7qj7j6ZLl0lMhRlzp+PyThI+9M0CkjLoIGXFdLsL64MxtSfUCQDU+76EYywv aeZS4C18s7tO3PDZvfhRJGRkJu1DmcXsSlJ5WV/1nmdO8rGU+2EKFDRenPdjJg7KiJKJzA oeSJyZ4Fxl8VaESAe5cFVU1JTJVJQxEoM2khy/r5SsUrbFdtHnRHNiV0SgIhmM0SQcv11O OAOMrFfcmdStNS4ui7305TfXAMzt2PI/fwhqe/OB80F0G3LBesSFyajuozUWNRx46llpbl zR+OmHiAUgmrIZ6rqjv5hyX4oFDLeZpMGmLpFfXJHM8FETqYRLcIwr317kkxGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780639; 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=/pX1melMoE6X5DAdTeehotHF2nrBDd8Opzo1WWov36U=; b=Lg4tQaoNfwWCapRSV4+nmavtw4UsHJ/a7SZ6WUYbNas9sBTojmPCVnvOt70KR39yOAFtEb 1w1+XWma5Y9MevTp5V6t16VcZCMeL1+mI8XEUGTrf08ATccks1uGSx6eD9P3xvkeVmxli3 nEOyWRor1AU/nzbEkzxgmintHcO156fxZBc9iINJdKF/aY+RPwFCES/tWArj7McexCQ/0s EILE+WYGyUspetmXwPdnRrVxmSTwDooHwM1/Yl9qP+9nbeHpUzHc5Nfegc+fQnrFrKcein SHjU/gFILUbffH0lRCFXMIGDTweWblorrbCiu7SJ7aOdWYsvoE/AH/ngc3wh3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780639; a=rsa-sha256; cv=none; b=KcXXBkvzCr1DfcmQGvSMzdW7rhIJYf79GVWrxvFuVCbuwrsLovWI/KeoXuA2CwfQli+pP/ JBYXBXy0eyY6qPej6QNCrBPQRU3Sr5+xJK3wW8FY4W/VlI+1fX9kMPNnYlVURhgzTmGu1w vIch654ZHSdCcIfgZUCwynx1eGMwtDgzr0JHYQQ58Nk46w8xgIHp2ehaIAjw5wDL09YaH9 yZF9VlNRitkrHGCMGwfmpsYn+Wu5JS+3nM6U+Ix9Fu89BnoiFGkSu8GxTFizUbKg9iJ3VP 1VZb3yjVCex8FUJzsz/RBi6c5fm0tyvh+7c88RW5qQzrLLnADNn/mFo9ni+jVw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFb32Qwqz12hP; Tue, 5 Nov 2024 04:23:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54NxVs066793; Tue, 5 Nov 2024 04:23:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54Nxuv066790; Tue, 5 Nov 2024 04:23:59 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:23:59 GMT Message-Id: <202411050423.4A54Nxuv066790@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 5af09f50d761 - main - include: Add required guards for dev/vmm headers List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5af09f50d761b6fbe66cc94b1ae854846dbe7e22 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=5af09f50d761b6fbe66cc94b1ae854846dbe7e22 commit 5af09f50d761b6fbe66cc94b1ae854846dbe7e22 Author: Mark Johnston AuthorDate: 2024-11-05 03:12:39 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 04:23:49 +0000 include: Add required guards for dev/vmm headers Reported by: Jenkins Fixes: ebd48f1e52d7 ("include: Install dev/vmm headers") --- include/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/Makefile b/include/Makefile index e0391cac87bb..16d641b42a90 100644 --- a/include/Makefile +++ b/include/Makefile @@ -52,7 +52,7 @@ LSUBDIRS= dev/acpica dev/agp dev/ciss dev/filemon dev/firewire \ dev/hwpmc dev/hyperv \ dev/ic dev/iicbus dev/io dev/mfi dev/mmc \ dev/ofw dev/pbio dev/pci ${_dev_powermac_nvram} dev/ppbus dev/pwm \ - dev/smbus dev/speaker dev/tcp_log dev/veriexec dev/vkbd dev/vmm dev/wg \ + dev/smbus dev/speaker dev/tcp_log dev/veriexec dev/vkbd dev/wg \ fs/devfs fs/fdescfs fs/msdosfs fs/nfs fs/nullfs \ fs/procfs fs/smbfs fs/udf fs/unionfs \ geom/cache geom/concat geom/eli geom/gate geom/journal geom/label \ @@ -310,6 +310,13 @@ INCS+= iconv.h LSUBDIRS+= dev/usb .endif +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64" || \ + ${MACHINE_CPUARCH} == "riscv" +.if ${MK_BHYVE} != "no" +LSUBDIRS+= dev/vmm +.endif +.endif + .if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe" _dev_powermac_nvram= dev/powermac_nvram .endif From nobody Tue Nov 5 04:24:00 2024 X-Original-To: dev-commits-src-all@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 4XjFb44xcdz5d0nF; Tue, 05 Nov 2024 04:24:00 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFb43XDBz4JXX; Tue, 5 Nov 2024 04:24:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780640; 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=OMmcPWYGBJnHDj3CpFC17cuiWdEnjn0s08mabeIXSik=; b=BUo4v0ZdWR3R4ypEPXdzv91+oPB5D7KXMxO8qGt8do8yM2trnM7O+pxz1FYkYHow7pBT1n qteGTo6P0x0Ck1nHLx1AUicneCLHnR43UZtYUXRxcr6o6zoaTPiufBA+AgtfRCd0usTO3o qisO6fhYS83q/Hw7YHwbJLE00v8OtA9iqSR28ldZ+212iYCL1eikVRsNkqgNKopE8rrSN9 0rFsk1z4gBy9z4lQCrD9UpQF7EXyLTbVdfi3jhTqbCKQ8d75qyDpDhzqU+lnP3uQFvL6dK VVLOs5Y1bPh8sJs4K8btHR9wSbERaylyePq6qE/5Ymo9V2vkBcxAmwVIFPuHuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780640; 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=OMmcPWYGBJnHDj3CpFC17cuiWdEnjn0s08mabeIXSik=; b=HKkBD7sJjqdp/AU6sDVOT1CGVXMo/3KlY31hFebfGzOkjOpvKbHSBXOo68FXJc5+NKAgHi ds3pvYL2HHHJpAy1naY03kgs1/Fx9xWG/1Xkpxj/vgoI4XPbX9FLX1VBZtDsyHBjSdohQi ml0kxiyY0w5oyb7SNtxmfLZ1O9dMVicGo66jkEeGYaiATNFguwjvmcg4ZZWQhH5RBzGhUE eUO6pSzp3ghMAC9y1HkE1x49oCzrkGP062WDFUdLHzP3oGqtOXmTJypoxcKc1am6pO1Tcx RynQkd9FQC1b9niVHLDa/7P3HGOJQrcmC+NK28up3eoW4XglkmvXUbkDuZZ2Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780640; a=rsa-sha256; cv=none; b=u3v5omXW3LUnYjc/xJQvQjsXWTDzbwSwUOXGug8Q3Cxi2jNfNmBo30DNr8SHr4pHAEavH+ zJidH+VSuT7SIh2ZlMy76SeHQM7H9aacqzbaMse9+/igWSNGNRedv0XF+BRmLzn5Hl6hli TZx8Gy3QCQPRt0Yo77LWq2mLVGZ0/jlOCYorOImA8XH7FsodtQy2APm6z9B5ytg7YW0FIX lACUqvvPEyyj7mGBQBvTWIrEoM8qwPv/YdNfqJS3WCzs/NbaRSqP0+Jqh4mltneWncrHAI HinSICsBWgzTyBey/KtLjWoSECwU9EBrLo7NfX/c1anHhzE8Fy/NKdEPlJP9Ag== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFb437Q7z129Q; Tue, 5 Nov 2024 04:24:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54O0jQ066847; Tue, 5 Nov 2024 04:24:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54O0Of066844; Tue, 5 Nov 2024 04:24:00 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:24:00 GMT Message-Id: <202411050424.4A54O0Of066844@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 043999b1ae49 - main - riscv/vmm: Fix the build after a97f683fe3c4 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 043999b1ae49635be530badeb6c5d50002e622f4 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=043999b1ae49635be530badeb6c5d50002e622f4 commit 043999b1ae49635be530badeb6c5d50002e622f4 Author: Mark Johnston AuthorDate: 2024-11-05 03:13:47 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 04:23:49 +0000 riscv/vmm: Fix the build after a97f683fe3c4 - Make machine/vmm_dev.h self-contained. - Check for errors from vmmdev_init(). - Make VM_MAX_NAMELEN visible to userspace. Reported by: Jenkins Fixes: a97f683fe3c4 ("vmm: Add a device file interface for creating and destroying VMs") --- sys/riscv/include/vmm.h | 3 +-- sys/riscv/include/vmm_dev.h | 2 ++ sys/riscv/vmm/vmm.c | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/riscv/include/vmm.h b/sys/riscv/include/vmm.h index e148cd95b522..1093e1cd0096 100644 --- a/sys/riscv/include/vmm.h +++ b/sys/riscv/include/vmm.h @@ -102,12 +102,11 @@ enum vm_reg_name { #define VM_INTINFO_HWEXCEPTION (3 << 8) #define VM_INTINFO_SWINTR (4 << 8) +#define VM_MAX_NAMELEN 32 #define VM_MAX_SUFFIXLEN 15 #ifdef _KERNEL -#define VM_MAX_NAMELEN 32 - struct vm; struct vm_exception; struct vm_exit; diff --git a/sys/riscv/include/vmm_dev.h b/sys/riscv/include/vmm_dev.h index a21528a8dc68..856ff0778b95 100644 --- a/sys/riscv/include/vmm_dev.h +++ b/sys/riscv/include/vmm_dev.h @@ -34,6 +34,8 @@ #ifndef _VMM_DEV_H_ #define _VMM_DEV_H_ +#include + struct vm_memmap { vm_paddr_t gpa; int segid; /* memory segment */ diff --git a/sys/riscv/vmm/vmm.c b/sys/riscv/vmm/vmm.c index 52e881dd220c..1c0290ace570 100644 --- a/sys/riscv/vmm/vmm.c +++ b/sys/riscv/vmm/vmm.c @@ -255,7 +255,9 @@ vmm_handler(module_t mod, int what, void *arg) switch (what) { case MOD_LOAD: /* TODO: check if has_hyp here? */ - vmmdev_init(); + error = vmmdev_init(); + if (error != 0) + break; error = vmm_init(); if (error == 0) vmm_initialized = true; From nobody Tue Nov 5 04:24:01 2024 X-Original-To: dev-commits-src-all@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 4XjFb56Yklz5d02n; Tue, 05 Nov 2024 04:24:01 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjFb54tP2z4Jsv; Tue, 5 Nov 2024 04:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780641; 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=DIilAXrN5q4yiPPHIPk2qnRa4dsI3yz/TCUDq/P2UbY=; b=h8Vo1exzjB2Tmien8Mw4AoSx2Ees2mhQcJMJwIE7oe7oHoc99Qx10xJiN735dxe8GKF7IN w6twk4jNsEF/H+CkUp3hx7uLG5dPlnbwXP0bBuMpIcb89k+6HmUJN6/nhXOh7uk2foX6RE b1eILUNYd3728xQoV/+iLgidr0pJf1luOx3Q3eooCu3OgQhOVA9qeia5uHzWLleVlIrU1d MWRuqxuk9nRfstdU1QxkPcwxQ98CgOFbbQS6dJcJeTdhZCxnkohy2GnXkIKXqiKNi+S627 KauHV4P/ursTTu100g4LmsU6vKzoKJVhtG0MZEyMk0WYEF3FiwATWGCtA5ECGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730780641; 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=DIilAXrN5q4yiPPHIPk2qnRa4dsI3yz/TCUDq/P2UbY=; b=QC1aqeJDDim4wYIZW9F+yul3YuC9ZhHXK27UFepRQJbIXwtS5DarOsmLzMkQqLWOqN3wMF xOfB39Xw4qiUVa40l6eVLcrcnImi76KnJRBhpPzdv0iFfukt4XU+jY1NLKcFg+ODu02t2i SH5bCinLWTQanMQ4uf+RyBHkKKniSRH3OvyyabMyTsQv01uI/b7HzzMX+k95MsgFydSre8 wTjG2rZcJAByriAPazTH0eMwCWUG7JVasUK3dCGXsZUiqDJh7X8ZwoeazFNmut4QAbGDD1 R/JolkqqQeflFDOMgRYLvWxBA/1UM9JyTnieig8ipTjOCkML8qPR9dyuSiZ2TQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730780641; a=rsa-sha256; cv=none; b=DoXP/v7nvbv2ev2io+1xqKukrWK5AAzOrfkcmuphwLPIJyuTQ+4+kV2q7wcaSWg6pccPfw 37PSeCKZ3qaSPCSCuqeOX7v9VyIosrK3y/lQeOAE0VxjsjPcVSYcgwCL3Eu8vjioDkNjwk XPRUaRxxnYi3Hti7eP7UGD+/2LekdPcoh0T5yX/GR/9Mob5Yfnbpnvc0UgKQoBSR9Crxhq OJ748IYBuRnVDgofKQxuMsjxLftmFSviQ0xFmxfapP4hoLOxZ/YvqXMT9FuGSrrMVHDFmD 8zL0VrkItKrZzNxs0mwfpA00gVO3iVOUw/1zjEua0ZwpWmM17JZxV5kFVUdcwA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjFb54QqNz12sv; Tue, 5 Nov 2024 04:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A54O1uh066899; Tue, 5 Nov 2024 04:24:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A54O1uV066896; Tue, 5 Nov 2024 04:24:01 GMT (envelope-from git) Date: Tue, 5 Nov 2024 04:24:01 GMT Message-Id: <202411050424.4A54O1uV066896@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 55c854cf0c6a - main - refcount: Avoid redefining KASSERT for userspace List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 55c854cf0c6aacb60ed88c02522377b1b3fa134d Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=55c854cf0c6aacb60ed88c02522377b1b3fa134d commit 55c854cf0c6aacb60ed88c02522377b1b3fa134d Author: Mark Johnston AuthorDate: 2024-11-05 03:40:02 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 04:23:49 +0000 refcount: Avoid redefining KASSERT for userspace Just bring in systm.h unconditionally. Otherwise this definition of KASSERT conflicts with the one from kassert.h, specifically when including other headers which unconditionally include systm.h or kassert.h. A number of other kernel headers depend on this pollution, but ideally we'd only need kassert.h here. Reported by: Jenkins MFC after: 1 week --- sys/sys/refcount.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/sys/refcount.h b/sys/sys/refcount.h index 212e8e516271..44588fe3c812 100644 --- a/sys/sys/refcount.h +++ b/sys/sys/refcount.h @@ -30,11 +30,9 @@ #include -#if defined(_KERNEL) || defined(_STANDALONE) #include -#else +#if !defined(_KERNEL) && !defined(_STANDALONE) #include -#define KASSERT(exp, msg) /* */ #endif #define REFCOUNT_SATURATED(val) (((val) & (1U << 31)) != 0) From nobody Tue Nov 5 10:06:11 2024 X-Original-To: dev-commits-src-all@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 4XjP9v53NNz5btRP; Tue, 05 Nov 2024 10:06:11 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjP9v4XWfz4hW0; Tue, 5 Nov 2024 10:06:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730801171; 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=UmunW0u6JTtDDZOw9s1n8ICjuXhF5KupuSvD4OKqU9c=; b=Orqv2URx7YD2h/eUQcQUQJ9JRV9WvxH/DwuO4DBbCBD6dT1VpOI/tV3rGpjs28QOn0Ofa7 Zbjuq5WJeVnNjTyNrijhDjlrmrPdBvQxruve41cmV94/LtxQIzkUOVBa+xpSmreSxyCj7H bfNxZ7mHxwC3D9WYt7FGtnA6QlriRYyH/CW3wDeaHUZ23rEc3r1zc2cF+htB6xG/1QI1EK 9Loo/2DsOXuOfbmn9VpUJtptwk0QRbzncXjXuyK80NQXqTqVEWzyQ04FkqnK0MvZ4CH8mI uSY0+KWXDac+KKTyBWafLRTp2+TMBY/HyiZoWjwWgjlGnYDyzrx1fMbHQs2paA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730801171; 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=UmunW0u6JTtDDZOw9s1n8ICjuXhF5KupuSvD4OKqU9c=; b=PGlGasLtJJCPd79i3M5qdGX8qM5t2K0k7puZVqROMTxQD5VZyWc3CQARIXRXhtqTT85DZ3 Nh+0oO/OcO13z6YM9Cr0Egt57iTF8VqeOfSdrcDV2rDll38mq27ROFx84JYGbLh5vwJPCu 0Z+j+qFSODEytkNvoqCD29ZeVYwKRMXqy2JwnvNebZf7UAu6kiZ9t+MwxNAGctXJ3WxCEZ 3P7UCXJm5Pq0r0GyTDEi9fobRBhAP6i61qihXby9mBq/7FJ+p39711NENW2EOopC4EyyvU t+EQMl7iMtzxcMOi4DSTGtHeGEGUcxljQ+HHWsBRJpuX6HanDmrl3zI+Mz9Bag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730801171; a=rsa-sha256; cv=none; b=kNfCz+iRnXPzwOpFJioqIll6leqphN67KmUK1QO0i/3HwEzHVgM4bb8zTN7cItoV7nvyGV sL5YXOJ5aXe+55Il6coUDUx3/wxGGFZsvFdSHZLR8YFoE1DBhy2dGosMoNaPXA7GuCh94X W2/bdQ6SiBnP/JvqC0/CMf/2Q762cRqwvTElL+6NSdEq3dxmhXcYcwimgEzfvGYdr0Tt8O LaNHAZsyO0bYbSET3P3UEh/9iZkTT2K3SRMLDMaPR1esjXLsLb5/WGSAmfBs0XLKDFrWVU Nir0vyBoZNB82ruC8cogLBdEVwUKzzJ0IxaVr4vwPiT4nBy6N7zpT6kftrfW8w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjP9v41KKz1CCt; Tue, 5 Nov 2024 10:06:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5A6Bj4099166; Tue, 5 Nov 2024 10:06:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5A6Bta099163; Tue, 5 Nov 2024 10:06:11 GMT (envelope-from git) Date: Tue, 5 Nov 2024 10:06:11 GMT Message-Id: <202411051006.4A5A6Bta099163@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 625835c8b5e8 - main - tcp: fix the initial CWND when a SYN retransmission happened List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 625835c8b5e897e54a1a023788a3a9c3b16631c9 Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=625835c8b5e897e54a1a023788a3a9c3b16631c9 commit 625835c8b5e897e54a1a023788a3a9c3b16631c9 Author: Michael Tuexen AuthorDate: 2024-11-05 08:52:42 +0000 Commit: Michael Tuexen CommitDate: 2024-11-05 08:52:42 +0000 tcp: fix the initial CWND when a SYN retransmission happened According to RFC 3390 the CWND should be set to one MSS if the SYN or SYN-ACK has been retransmitted. This is handled in the code by setting CWND to 1 and cc_conn_init() translates this to MSS. Unfortunately, cc_cong_signal() was overwriting the special value of 1 in case of a lost SYN, and therefore the initial CWND was not as it was supposed to be. Fix this by not overwriting the special value of 1. Reviewed by: cc, rscheff MFC after: 3 days Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D47439 --- sys/netinet/tcp_timer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index c5c65dda5b1a..4d8dafaec31d 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -810,7 +810,9 @@ tcp_timer_rexmt(struct tcpcb *tp) */ tp->t_rtttime = 0; - cc_cong_signal(tp, NULL, CC_RTO); + /* Do not overwrite the snd_cwnd on SYN retransmissions. */ + if (tp->t_state != TCPS_SYN_SENT) + cc_cong_signal(tp, NULL, CC_RTO); NET_EPOCH_ENTER(et); rv = tcp_output_locked(tp); NET_EPOCH_EXIT(et); From nobody Tue Nov 5 14:29:55 2024 X-Original-To: dev-commits-src-all@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 4XjW2C5MzLz5c9s4; Tue, 05 Nov 2024 14:29:55 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjW2C4Zhxz54lH; Tue, 5 Nov 2024 14:29:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730816995; 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=IN6TaZjW1Zo9/w/g4LKVeYf7V809Dsj+0qGozEJ7pHc=; b=lTwf7uDOB8WcttHFw924qxwE7gNh+9vu96hBbEDjjiZCAzU500/UJ3Hu01ITkyg8e4QNAG gPB2OaihVMKORjbD7cIgYMqRjyaIFIt5+4+5L/+bIWGtmdemds7bjVdVJl4cTdssg6pF63 npjqAZVLhuFx1knPhN4biEwmL8oHCAKyfER0p3dKWrxx2IqmBW+EXpQFWk0q1cCSTpo4Ew 0jcQh1sxWlJv1gxnNEYw6682O+pJh5Us6nRqnhCMSbJR2XlI1S8dNsHmKNXKtEXB2iR/Tl 1rijk9Hkj4XKyNoORRBfwjw9mNG8xyY+12nho0nOBItOnaNWsc9dHJ8G8OfFSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730816995; 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=IN6TaZjW1Zo9/w/g4LKVeYf7V809Dsj+0qGozEJ7pHc=; b=YwLcXGO6kEtPVe1Tx5dMLRQxdmdQoCmLS/HyKEHlbVCiCVznOK4dSNVe97fjF8Bjc/gAyz qpTnCjhUozXxu4toAc8CJIGB0PS9+TVeCM0SrlCGrN5A2d+kA8KVczr0wrs0dYn+tXDbu/ CmI+DT0iuus8r6XXxC9YrHxjz5Z7xw9boFQxztHpsBtCC6pJY1ZEfPRHZDC4gOzq2im3L/ 8THpD47Yv/SOtFVCD0LfmMF2EAP843EgkxnPyZmLIO53QMXiPUBJbpPcNFwXq1+d2Cuicc GCmkAEjAtVzulnp8fIasrWdgFyBvywCCM66NV+e4d3Ir6FceTEAETZoS222NFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730816995; a=rsa-sha256; cv=none; b=HN+RXmRWJaoU3GEhF3eqdcjjGDhBv9FzmPWNb+kb6S4CqEBCTOoge2fKyH78x+pLK4jQto iPH04u3X0XvSxzvDGXTsT4XLwrGNo2ZoErxrN/ApYWVhTYxcZNLrH1EemcqE7OlsCm2vLa rYSX75r7VZisJVJOnOBR1kut0HAa8PvTl5HMGYpy7jX0tEnbko9uWTTHBiBXvUnVL8KEoJ +px3m+gAykwfqk6SaAUG07Jfg+R92N2+9vwVQa/KPkDNPtcyodQgSUGAOK5nrJQ9/GFyjn GtdMeDRVQU2Ay60tDl7ABYfjHWB4kQo1nBPJhcxdPTjiCOo12avkk0kpfXcG6w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjW2C4BXVzLXW; Tue, 5 Nov 2024 14:29:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5ETtU8080878; Tue, 5 Nov 2024 14:29:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5ETtNn080875; Tue, 5 Nov 2024 14:29:55 GMT (envelope-from git) Date: Tue, 5 Nov 2024 14:29:55 GMT Message-Id: <202411051429.4A5ETtNn080875@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 26d85a5aba34 - stable/14 - geom_flashmap: Rename the kernel module List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 26d85a5aba3439092e73dfe33234a5687d5c70b9 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=26d85a5aba3439092e73dfe33234a5687d5c70b9 commit 26d85a5aba3439092e73dfe33234a5687d5c70b9 Author: Mark Johnston AuthorDate: 2024-10-29 15:11:12 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 00:55:43 +0000 geom_flashmap: Rename the kernel module Absent a linker.hints, if a module dependency exists on disk, the loader will automatically load it. That is, if something depends on module foo, and foo.ko exists, we'll load foo.ko even though the linker hints file is missing. It's a bit of a hack but it's handy. This breaks with geom_flashmap though, since it's geom_flashmap.ko on disk but the module is called g_flashmap. However, pretty much every other GEOM module is given a "geom_" prefix, so for consistency's sake alone, it seems nice to rename the module. PR: 274388 Reviewed by: jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47311 (cherry picked from commit 2352336ad9b26fd21d9b0013e195e41d6d02b914) --- sys/dev/fdt/fdt_slicer.c | 2 +- sys/dev/mmc/mmcsd.c | 2 +- sys/geom/geom_flashmap.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/fdt/fdt_slicer.c b/sys/dev/fdt/fdt_slicer.c index 70cad004b7b6..acc08fa84cbb 100644 --- a/sys/dev/fdt/fdt_slicer.c +++ b/sys/dev/fdt/fdt_slicer.c @@ -180,5 +180,5 @@ static moduledata_t fdt_slicer_mod = { }; DECLARE_MODULE(fdt_slicer, fdt_slicer_mod, SI_SUB_DRIVERS, SI_ORDER_THIRD); -MODULE_DEPEND(fdt_slicer, g_flashmap, 0, 0, 0); +MODULE_DEPEND(fdt_slicer, geom_flashmap, 0, 0, 0); MODULE_VERSION(fdt_slicer, 1); diff --git a/sys/dev/mmc/mmcsd.c b/sys/dev/mmc/mmcsd.c index 9bc50124592d..3e4059ae43a6 100644 --- a/sys/dev/mmc/mmcsd.c +++ b/sys/dev/mmc/mmcsd.c @@ -1564,5 +1564,5 @@ mmcsd_handler(module_t mod __unused, int what, void *arg __unused) } DRIVER_MODULE(mmcsd, mmc, mmcsd_driver, mmcsd_handler, NULL); -MODULE_DEPEND(mmcsd, g_flashmap, 0, 0, 0); +MODULE_DEPEND(mmcsd, geom_flashmap, 0, 0, 0); MMC_DEPEND(mmcsd); diff --git a/sys/geom/geom_flashmap.c b/sys/geom/geom_flashmap.c index 6dde6d271d33..c00d7d33c638 100644 --- a/sys/geom/geom_flashmap.c +++ b/sys/geom/geom_flashmap.c @@ -223,4 +223,4 @@ static struct g_class g_flashmap_class = { }; DECLARE_GEOM_CLASS(g_flashmap_class, g_flashmap); -MODULE_VERSION(g_flashmap, 0); +MODULE_VERSION(geom_flashmap, 0); From nobody Tue Nov 5 14:29:56 2024 X-Original-To: dev-commits-src-all@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 4XjW2D68djz5c9pv; Tue, 05 Nov 2024 14:29:56 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjW2D5H7Rz54fr; Tue, 5 Nov 2024 14:29:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730816996; 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=KffNyqB/rJMYsSjaAflvdeq/5a5z0679W4v4bRZGPFU=; b=o62IpDeRkEt25cQtjmjO3FQkMCrF7AdtBiSdTkGEuC64DBt5F/9gbXLvySfoNJYgIZmhM8 14I3wzJ8zVv9XRUdPzQIAfJj2SxsPX1inBjcpUw37DwYIV6Q+agqNfj/M2cL+eqGStBuSe PpySLx1kOF/JBYeuOtAW4JPEK58vCBRG3HXjQwerSusWMFsigBCbtrI9ObEqhc9StQFaR4 bQcQE5r0QptCrSI/PhoBrktwaGaWTh+qtfMn6Mj+xPHrnJql7QTUlynan80JIomXaL8uDw 2zO7w5o+YCj6F0mQjELKUd9jXt6fZOCzTfQvbGduRKc/9Cy1IgAkxn0NFqI3Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730816996; 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=KffNyqB/rJMYsSjaAflvdeq/5a5z0679W4v4bRZGPFU=; b=Ull17JzF61La0Tv0hlvUbCqULoTw0XAPIoIrlLJGGDDdzu6os1tEpg8Smw+RjlUB5EX7dc K+CNkiGA79t/nd9Y66MBsfyz3thDREwWVXHqQIDX8xBkokXh1WkHtUOmLIVA/f2O0W4GmA 5o8ISrlRt3t2RPtnZ9nv57Um0KI2FZq4o5t/EQzKJOEfCYnAqPNm6zsdu8mT1GMB6LiTtU T3/Iq++3PuW1rjBtayytAm0JDK+lvWkdtQiE1HhOLhlhZddWK54VNgPSRwMDb4D+tlUEES Y4QFWHNQOyYVS98jI/7qvbKSFcMtn2wZjxXQLt8+PlqgZ0CGErE0o+75FE+Z+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730816996; a=rsa-sha256; cv=none; b=spyVaHXYv6OLdhSFN+L6Zw+n5wXk5/4fC7ur7hQgoxxT8KPoUT9OXPVqdM0A7Z3rDeF+mn /VlZaqZbyH37jEV/B0bopyRWJX+/IFSmrJHmtl1GTJia6Lh+v0A00Bb8RZ34AOGUfLfFIf kdkw0LONIbLvTunMJ0yRhfr91gQZ5nVLHa0YQ/SV4D/sDTi12w0uySo5sN/N2bEx392Be6 0v3CcEx5isqGY75d8FJBYsd39T9p8KSFH3XKZOV4Ame7GTqxMbgPVbKiaaie+aENwRABmr J0ntrN1QP/Oj4BiwVE3i1rQAM420n3jQ+6BEex0vKIdNUV1O3yMIzKwuDwla5Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjW2D4tNJzLh8; Tue, 5 Nov 2024 14:29:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5ETuZv080943; Tue, 5 Nov 2024 14:29:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5ETu5Q080940; Tue, 5 Nov 2024 14:29:56 GMT (envelope-from git) Date: Tue, 5 Nov 2024 14:29:56 GMT Message-Id: <202411051429.4A5ETu5Q080940@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 4c0effbb1ddf - stable/14 - libarchive tests: Re-enable a broken test List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4c0effbb1ddf85fa8d7b94e8b3767acd11a38b76 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4c0effbb1ddf85fa8d7b94e8b3767acd11a38b76 commit 4c0effbb1ddf85fa8d7b94e8b3767acd11a38b76 Author: Mark Johnston AuthorDate: 2024-10-29 15:11:28 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 00:55:43 +0000 libarchive tests: Re-enable a broken test It passes and so appears to have been silently fixed at some point. PR: 240683 MFC after: 1 week (cherry picked from commit 218f80226b82763c3cbd48de560959ad546b5e26) --- lib/libarchive/tests/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/libarchive/tests/Makefile b/lib/libarchive/tests/Makefile index 2684d1661e57..0562197e6936 100644 --- a/lib/libarchive/tests/Makefile +++ b/lib/libarchive/tests/Makefile @@ -335,9 +335,6 @@ ${PACKAGE}FILES+= test_fuzz_1.iso.Z.uu BROKEN_TESTS+= test_fuzz_rar .endif -# https://bugs.freebsd.org/240683 -BROKEN_TESTS+= test_write_filter_zstd - # Build the test program. SRCS.libarchive_test= \ ${TESTS_SRCS} \ From nobody Tue Nov 5 14:29:57 2024 X-Original-To: dev-commits-src-all@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 4XjW2G0dyDz5c9xt; Tue, 05 Nov 2024 14:29:58 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjW2F6YTRz54sT; Tue, 5 Nov 2024 14:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730816997; 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=JcEfjVoVR1T0iXPV6zT1WZEs8RSeMe9nbGHsgeYiFqo=; b=ajCfsb++fDdXVV2n040c99uZtwm4Yox74Al3LuC5BI+DBF4YXuElRiWmIQt8jrg+KtLkxP fk8q/SHI5zH8AdYRslDC2C8/K8mvwgrXxEjhyCYvZJu3WBCWcCkax+1lbZ1vZ2Pma06p9q 5W8tkI8Ugf7WKKnBiJzCERDa4/LB+QbtzdIbsmh3e5s5gQBRYokLJEd6FTFTvSKdqWQFzG 4kc8HZ+Hz0VWSP7tRYMiQOxVN3gM+Fc7nJWiYEK4oyevsXX7cXOHNeJrBeQ5jVR9gl6dzR 54izBIUsvKnWYByBv+h3iNHHz9xBrcE+BGFwzyygUJh8t8mKZGimSyBj5tFn+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730816997; 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=JcEfjVoVR1T0iXPV6zT1WZEs8RSeMe9nbGHsgeYiFqo=; b=Wl5bqo97rhLlSugqJTY7xlfoL08BVfi1faF9qfik/F4MgfMQC0G7Z6rXvWGzTo4fjni/eC 3y+vYPX4hmOaql1imgBUzrn30gIVvw46CNU3DkjxWGpn2mWz4RdBB7RwPUtW1cao+GE0/e m7vUWRl0h206/KwMUN4RlSZgTI04sMC7odOkRPwstotVJz1FN7xn9JsyGJbdbeZ3cxoeje Ot49AaGa2B3ld3fvyngOdhnpNU+t04cvz88WPjTh5oDnFJ7f66pBCTcXeKKaObYd3udNFF 2OUJur0TZGmF4G/+dXdfkUA7JsgJ1oaaXRJzRTtjahUt0pp8d+2LbcB9HtpfIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730816997; a=rsa-sha256; cv=none; b=qpL8/47ozWHU3u6X2+OPkjGEt5sJ38wjP7R/tVuN72bWUPz7oiB380FYZ7IOI5YN8SINcS mHwFTC8nqM3LLlfVNS7c88L64tgz6qh/QDVrJFbygw0D6vg3Fia8H7HzY+L7BrdKK1pA1x dg9ZEcGpBt4d9eyRsj2NuceExJz5m7jR+gfHvPRU74yKZie7CbqeKMxGRYoQs17vyB4L9I 6UKvQ5eJsf+ZmigmfHNRUYAGvcpUscXUeCnRpoCeO0Yw15iE5Z3rTQfWsO5Lacco2osRlN Fre74e4bA0mu2Kq8IkfW/+jVAf9XHrB8MBtKkU5i5chcN8AdUgQaNL9E76WOag== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjW2F5tJBzKh7; Tue, 5 Nov 2024 14:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5ETvrD081008; Tue, 5 Nov 2024 14:29:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5ETvMX081005; Tue, 5 Nov 2024 14:29:57 GMT (envelope-from git) Date: Tue, 5 Nov 2024 14:29:57 GMT Message-Id: <202411051429.4A5ETvMX081005@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: ef89eefaa86f - stable/14 - makefs: Remove the warning printed when makefs -t zfs is used List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ef89eefaa86f315feba6c44f2059582a077a78ed Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ef89eefaa86f315feba6c44f2059582a077a78ed commit ef89eefaa86f315feba6c44f2059582a077a78ed Author: Mark Johnston AuthorDate: 2024-10-04 14:53:42 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 00:56:50 +0000 makefs: Remove the warning printed when makefs -t zfs is used We haven't seen bug reports relating to this feature for a while, so stop printing a warning. Reviewed by: cperciva MFC after: 2 weeks (cherry picked from commit d9fe71828797508d1d28655e40780a5ae9078e66) --- usr.sbin/makefs/tests/makefs_zfs_tests.sh | 2 +- usr.sbin/makefs/zfs.c | 8 +------- usr.sbin/makefs/zfs/zfs.h | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/usr.sbin/makefs/tests/makefs_zfs_tests.sh b/usr.sbin/makefs/tests/makefs_zfs_tests.sh index 9196232ed3b3..aeda889d9a5c 100644 --- a/usr.sbin/makefs/tests/makefs_zfs_tests.sh +++ b/usr.sbin/makefs/tests/makefs_zfs_tests.sh @@ -28,7 +28,7 @@ # SUCH DAMAGE. # -MAKEFS="makefs -t zfs -o verify-txgs=true -o nowarn=true" +MAKEFS="makefs -t zfs -o verify-txgs=true" ZFS_POOL_NAME="makefstest$$" TEST_ZFS_POOL_NAME="$TMPDIR/poolname" diff --git a/usr.sbin/makefs/zfs.c b/usr.sbin/makefs/zfs.c index 43469c2358be..66e7f8dafc9c 100644 --- a/usr.sbin/makefs/zfs.c +++ b/usr.sbin/makefs/zfs.c @@ -94,7 +94,7 @@ zfs_prep_opts(fsinfo_t *fsopts) { '\0', "verify-txgs", &zfs->verify_txgs, OPT_BOOL, 0, 0, "Make OpenZFS verify data upon import" }, { '\0', "nowarn", &zfs->nowarn, OPT_BOOL, - 0, 0, "Suppress warning about experimental ZFS support" }, + 0, 0, "Provided for backwards compatibility, ignored" }, { .name = NULL } }; @@ -792,12 +792,6 @@ zfs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts) zfs_check_opts(fsopts); - if (!zfs->nowarn) { - fprintf(stderr, - "ZFS support is currently considered experimental. " - "Do not use it for anything critical.\n"); - } - dirfd = open(dir, O_DIRECTORY | O_RDONLY); if (dirfd < 0) err(1, "open(%s)", dir); diff --git a/usr.sbin/makefs/zfs/zfs.h b/usr.sbin/makefs/zfs/zfs.h index 924fad83f63e..33694e2bdbee 100644 --- a/usr.sbin/makefs/zfs/zfs.h +++ b/usr.sbin/makefs/zfs/zfs.h @@ -74,7 +74,7 @@ typedef struct { */ char filebuf[MAXBLOCKSIZE] __aligned(alignof(uint64_t)); - bool nowarn; + bool nowarn; /* ignored */ /* Pool parameters. */ const char *poolname; From nobody Tue Nov 5 14:29:58 2024 X-Original-To: dev-commits-src-all@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 4XjW2H2d0dz5c9ks; Tue, 05 Nov 2024 14:29:59 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjW2H0R0Bz54wL; Tue, 5 Nov 2024 14:29:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730816999; 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=qRWhSu5/t+piYY0XRgoBQeZTrMwuXAn6jmEItHBQ/yQ=; b=yJpcCDcuOItWYJbRI9DQfTjhTEWKkAYsjomp+nnmHcxzFuMwhi4RJpwmBXxPyzSkVHa2+d nql+E8Vxf8cFW0IVksQ94asC2ecwnR0P1qzgG0FupQ+gAZsJQQgBG310GrEHresVLVLJ8P suF0yTmTGQTy7/lG+OtuQ7XRorEWf1GMN3kdcMDR8OFu+VbR1l4M9a25BSEoGxSy2qTs+H BYWbS2TwCqluCYjA3tQglufZfrDKBTXdbl6Hxj8IAuYTyU0GfLvpPaHiQg+F06zmycnFrS bQD32d3n1c8yf/nyC1Ea3GhAbSCGnjIxW+ez3754bST2p/meKZ8NWncMN+msNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730816999; 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=qRWhSu5/t+piYY0XRgoBQeZTrMwuXAn6jmEItHBQ/yQ=; b=iCVPdTsv7sJmRxt5XjdLDEu9V5w6nypl80fB+5GjyFoRLAk+RCkFkEpi9zl01mVXhSklx8 vBbdMLOQdIzJrY7f9VDkia7bG9fOSuMJO50t0LjMK4/NwtB/k5FiKW9y2YH5Ghn0q6M3qK ljdJqshmheQSNvW9SQweB/X5Vi7js2iukVTXy8c61dInrBiibkTXA/Q73HxCF+uYK0vpJ7 KX03UOzaQv/ap8XcsEHjlpHSNZcbfphrK0pY1ooCaM9poOZZ8QxWJI4MjJ4vXapk+PgAJy sEQUG10nfAiF4Bfu4kskCCoaUp/Zq2EC42EVdtqqyaxoYjIwmpZwyL9d84o4Cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730816999; a=rsa-sha256; cv=none; b=HKkA+Rm/Wptqb4kJaTlINb04+/6pZ9ulBsW2V/3k94e2VFpQZ3petetyP/iAAuLmvPXHUs Bxtr8NJcbeBYaEOhHThJJS0RLN4GcoHY812ZT/JmHNtRkqFP8douEzr491cnsAOOVDS6Y1 3maKucaKk553YuuTwMBh0Km3D0rm28gv/mUC9X9Dqsi+9zrFnd8qnNbccz3QLPM1bzcGoJ SkQvfLCmgbymYfS23kPXwqlwD7OC+QzB+vvo2B/2R49iZeJ126FXpA4g+ZYFBz7favo0q5 UGsHPFDvS+PN8gvydnfYoTPvgaSPMiqZT9z4Cg4pTZFko5urYFY55f15vp46Rg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjW2G6wBQzKws; Tue, 5 Nov 2024 14:29:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5ETwmt081053; Tue, 5 Nov 2024 14:29:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5ETwMK081050; Tue, 5 Nov 2024 14:29:58 GMT (envelope-from git) Date: Tue, 5 Nov 2024 14:29:58 GMT Message-Id: <202411051429.4A5ETwMK081050@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: b698c825f3b6 - stable/14 - rpc: Fix the definition of xdr_void() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b698c825f3b6699b278122da776bdfe5f360619f Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b698c825f3b6699b278122da776bdfe5f360619f commit b698c825f3b6699b278122da776bdfe5f360619f Author: Mark Johnston AuthorDate: 2024-10-30 19:27:18 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 01:05:26 +0000 rpc: Fix the definition of xdr_void() xdr_void() should have type xdrproc_t, make it so. PR: 280514 Reviewed by: brooks, dim MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47340 (cherry picked from commit a5d1cf5e362a2e3c3ebdf6d8f2b86658a6d0b9d6) --- include/rpc/xdr.h | 2 +- lib/libc/xdr/xdr.c | 4 +--- sys/rpc/xdr.h | 2 +- sys/xdr/xdr.c | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 624a3c294650..58a26760cb77 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -281,7 +281,7 @@ struct xdr_discrim { * These are the "generic" xdr routines. */ __BEGIN_DECLS -extern bool_t xdr_void(void); +extern bool_t xdr_void(XDR *, void *); extern bool_t xdr_int(XDR *, int *); extern bool_t xdr_u_int(XDR *, u_int *); extern bool_t xdr_long(XDR *, long *); diff --git a/lib/libc/xdr/xdr.c b/lib/libc/xdr/xdr.c index 15f80502ea39..bc5e8c542498 100644 --- a/lib/libc/xdr/xdr.c +++ b/lib/libc/xdr/xdr.c @@ -88,13 +88,11 @@ xdr_free(xdrproc_t proc, void *objp) * XDR nothing */ bool_t -xdr_void(void) +xdr_void(XDR *xdrs __unused, void *ptr __unused) { - return (TRUE); } - /* * XDR integers */ diff --git a/sys/rpc/xdr.h b/sys/rpc/xdr.h index cd57b4069342..ac9130f65e36 100644 --- a/sys/rpc/xdr.h +++ b/sys/rpc/xdr.h @@ -288,7 +288,7 @@ struct xdr_discrim { * These are the "generic" xdr routines. */ __BEGIN_DECLS -extern bool_t xdr_void(void); +extern bool_t xdr_void(XDR *, void *); extern bool_t xdr_int(XDR *, int *); extern bool_t xdr_u_int(XDR *, u_int *); extern bool_t xdr_long(XDR *, long *); diff --git a/sys/xdr/xdr.c b/sys/xdr/xdr.c index af0d28bd65b7..605efd52e3a2 100644 --- a/sys/xdr/xdr.c +++ b/sys/xdr/xdr.c @@ -88,9 +88,8 @@ xdr_free(xdrproc_t proc, void *objp) * XDR nothing */ bool_t -xdr_void(void) +xdr_void(XDR *xrds __unused, void *ptr __unused) { - return (TRUE); } From nobody Tue Nov 5 14:30:11 2024 X-Original-To: dev-commits-src-all@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 4XjW2W4tcHz5c9s9; Tue, 05 Nov 2024 14:30:11 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjW2W3z9vz55MG; Tue, 5 Nov 2024 14:30:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730817011; 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=KQXwnbe0A/gWd61RACcrwytvklJpfErIuDgujZK8qLA=; b=pywLGz4PneEZJEGUDNTukVwCnLQObMfcFH1IpGCIQJcIMImaWsDaqaZCO4eoXe8RrmYg4y Gtthvn90EhmJNpFR6EXlPk097MdbQWVEBjcNctrcg1mrffS6wcqNga79e2AkYU+1Pk2Hz8 hF4ZIR/hMRTrfI67TCzw9JKsV8fX9fPfhQE47SwCDTbTj4q2XjKnYgIlfiXTyL4WESX2Yh QuG83AH0+xWBRj1XZr8oBBgnofbFVyjfW40by2U7PNWsi5ej3j0PBUiMMmNkVG8O1K99pz 47cnrFTHAgtFXfNToYvInGC3jBYEuN5w4FM9aHSufWLrGmzaKO+1lxZzWmzSwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730817011; 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=KQXwnbe0A/gWd61RACcrwytvklJpfErIuDgujZK8qLA=; b=isvUtniHrhqkMRTSfpZux6a1xRjkinyp6cXaj/OTWRxkZhDW6f1dvUdAuiM9+er7WVZMTT OLaDcFWtTXR7xJEN72rnSwd1/RoWgxLv0jGdKvknwtMN9JyUKPzgYvgFgzzpTordKRGmqO SDzF5SfU4cvNCXP9s8u9Vt0wDP3rHTDj8IHJVUave/LYdmpxWoeiU2Y4hBXfHtEEAHA00V 06WL9nPO9m9pjaM2V2MpHQVz/eae9uL4X4RPQOnaaxOYGhx5iWjRdvOrh7owHtxe54guAg GeVFQXoaLxFy90B6e/YKUZbwVJTLNCKb6e5cza1i9guL9pL2Aifs+GyuluR8eQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730817011; a=rsa-sha256; cv=none; b=lyhJB3P8tHth8A2PNBYvsLQ5eyDn5/Po4/lTcXoS5hF6JOseKDH+m/CuMdf0uh2Gi2mKt4 C2SAv5ykf2r+BWfbh7Sk0xPMgzQoq4y1KEj8XRAicGmqL5dhSLhzJyn+6jSTWweTKZKk1X zcQlm05RNrd/PsN2MLtnk28zzCzqUm3x/zvCFWP8fcXqqKoIn4AUxNmaGMTlmqZviMCwZO C2sR7pMTlNuJiNth401pkx9dSSIPA3ZwhRfrb99Qqi6+YtHpMrQA6QY6nM2IiWG6kvdRiV P8E6dRNADQlNxm9q7RlyRuJnQWoiweTUyx+TJ2dneewrX3nIemBZYJKNrTDzqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjW2W3WbHzLMJ; Tue, 5 Nov 2024 14:30:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5EUBcn086245; Tue, 5 Nov 2024 14:30:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5EUBq5086237; Tue, 5 Nov 2024 14:30:11 GMT (envelope-from git) Date: Tue, 5 Nov 2024 14:30:11 GMT Message-Id: <202411051430.4A5EUBq5086237@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: b59d57894580 - stable/13 - rpc: Fix the definition of xdr_void() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b59d578945807e487a2ed20ff6387f40c89db47d Auto-Submitted: auto-generated The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b59d578945807e487a2ed20ff6387f40c89db47d commit b59d578945807e487a2ed20ff6387f40c89db47d Author: Mark Johnston AuthorDate: 2024-10-30 19:27:18 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 01:05:31 +0000 rpc: Fix the definition of xdr_void() xdr_void() should have type xdrproc_t, make it so. PR: 280514 Reviewed by: brooks, dim MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47340 (cherry picked from commit a5d1cf5e362a2e3c3ebdf6d8f2b86658a6d0b9d6) --- include/rpc/xdr.h | 2 +- lib/libc/xdr/xdr.c | 4 +--- sys/rpc/xdr.h | 2 +- sys/xdr/xdr.c | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 624a3c294650..58a26760cb77 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -281,7 +281,7 @@ struct xdr_discrim { * These are the "generic" xdr routines. */ __BEGIN_DECLS -extern bool_t xdr_void(void); +extern bool_t xdr_void(XDR *, void *); extern bool_t xdr_int(XDR *, int *); extern bool_t xdr_u_int(XDR *, u_int *); extern bool_t xdr_long(XDR *, long *); diff --git a/lib/libc/xdr/xdr.c b/lib/libc/xdr/xdr.c index 6d44a012443b..3dfe15f28b88 100644 --- a/lib/libc/xdr/xdr.c +++ b/lib/libc/xdr/xdr.c @@ -89,13 +89,11 @@ xdr_free(xdrproc_t proc, void *objp) * XDR nothing */ bool_t -xdr_void(void) +xdr_void(XDR *xdrs __unused, void *ptr __unused) { - return (TRUE); } - /* * XDR integers */ diff --git a/sys/rpc/xdr.h b/sys/rpc/xdr.h index cd57b4069342..ac9130f65e36 100644 --- a/sys/rpc/xdr.h +++ b/sys/rpc/xdr.h @@ -288,7 +288,7 @@ struct xdr_discrim { * These are the "generic" xdr routines. */ __BEGIN_DECLS -extern bool_t xdr_void(void); +extern bool_t xdr_void(XDR *, void *); extern bool_t xdr_int(XDR *, int *); extern bool_t xdr_u_int(XDR *, u_int *); extern bool_t xdr_long(XDR *, long *); diff --git a/sys/xdr/xdr.c b/sys/xdr/xdr.c index af0d28bd65b7..605efd52e3a2 100644 --- a/sys/xdr/xdr.c +++ b/sys/xdr/xdr.c @@ -88,9 +88,8 @@ xdr_free(xdrproc_t proc, void *objp) * XDR nothing */ bool_t -xdr_void(void) +xdr_void(XDR *xrds __unused, void *ptr __unused) { - return (TRUE); } From nobody Tue Nov 5 16:19:32 2024 X-Original-To: dev-commits-src-all@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 4XjYSj1w09z5cH0l; Tue, 05 Nov 2024 16:19:33 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjYSj1J1Tz41n4; Tue, 5 Nov 2024 16:19:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730823573; 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=gn1YpFfB5uPK8jmc6ScBPVqdTXp+XqhwKirdwxmtWEA=; b=msM2/2BOat/cUGMI9kkEIn7BHVtdZD95wDV6LccKjgy7QGMXftoK4PUpKyZCPn5+6zZ8tW LkZCYCq1UJ2iuHeE4zt7s68cBDrRuMEQYymkLGVv4CK13+57TO9uwCzYBsCoRCBKHr+I/9 rj86qYY0+xS5fgdIm9sNpttUBKiI3Dp8dULL/v6m3GGwn7fKYiGfyO2l0/4xtg6u19EkQP NbqfmzmYD51RULrgdxmqyJ9C37d+nTMKzb8X9++kKg0eDGQVBR0p4g9kjCq6pP08NG2OGa m8NuORms0pSgMDz2nWUtPlskJIJ+OODDtUpLGUbHTnTpsfINesheLfJlT6T+6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730823573; 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=gn1YpFfB5uPK8jmc6ScBPVqdTXp+XqhwKirdwxmtWEA=; b=uvn5MCSjjGGR5cGl3o+HTwmEBbO5+2NfdfWYxmyo4JzPvRnQuGPOv+ZEQAOZ/kDT5D/dVG jTBHe3ysI0jqwUxCtF5sOlyyG5c1PdHrFyVc3unwDJVKZFZTZ9E8eYjWUnUkVNkCWWbD7H NyPFVnIUFdgJ/lgMxkxP5CjUo1KuKosznypSKA8xifNlNywSOXkHC5cPSBa8Ul9+8RgGoU rCaLKWCSNcaK+UTSgx6HpoDnGlm6Dm1zqlJ/okE73ALIbMq7v5mngv2KqLtaOzdyxy0+YK Qfv84spwh23A+N4AMRAAgANu6VtYHgWMUnZAz+DIMvhn82Mm+hE4UJ07v/hdDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730823573; a=rsa-sha256; cv=none; b=KVhQr2A95JHn1wJZsfNvsFqltzdWb6QXQUU7SYDbJkg0s9xtody/n3PifF+xmciHlHB5pF /fAp2rXGASW599YZY1pWwYcSfdPv2RQMzEzaFQDEZrPeWfV94i8K6KaI2PeB+iSTz6LDjv Mph/jPWkYd81D+v+0YyYXk0Ygmf+mrZdJ65tRQ5tOOkbxnVkH708jKx00JrbJi2YD0TsgH I1wSmOB3oTTEF6EuFkeuY5KuxqpSKZrp1RmvMo+vrIU6BzS/JMVsBveBvvnVfgcFaktqhn f20jnTxAzHMPdKSlwqV213bl9tmIqsJPXpsNDYMn/fTO+1fbN9QxY9cZ/LMzgg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjYSj0nHtzNmV; Tue, 5 Nov 2024 16:19:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5GJW6W084493; Tue, 5 Nov 2024 16:19:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5GJWi1084490; Tue, 5 Nov 2024 16:19:32 GMT (envelope-from git) Date: Tue, 5 Nov 2024 16:19:32 GMT Message-Id: <202411051619.4A5GJWi1084490@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: a231e2990776 - releng/14.2 - rpc: Fix the definition of xdr_void() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: a231e2990776a28f8c3b01b946e7774b3f6bb39b Auto-Submitted: auto-generated The branch releng/14.2 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=a231e2990776a28f8c3b01b946e7774b3f6bb39b commit a231e2990776a28f8c3b01b946e7774b3f6bb39b Author: Mark Johnston AuthorDate: 2024-10-30 19:27:18 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 16:17:03 +0000 rpc: Fix the definition of xdr_void() xdr_void() should have type xdrproc_t, make it so. Approved by: re (kib) PR: 280514 Reviewed by: brooks, dim MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47340 (cherry picked from commit a5d1cf5e362a2e3c3ebdf6d8f2b86658a6d0b9d6) (cherry picked from commit b698c825f3b6699b278122da776bdfe5f360619f) --- include/rpc/xdr.h | 2 +- lib/libc/xdr/xdr.c | 4 +--- sys/rpc/xdr.h | 2 +- sys/xdr/xdr.c | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 624a3c294650..58a26760cb77 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -281,7 +281,7 @@ struct xdr_discrim { * These are the "generic" xdr routines. */ __BEGIN_DECLS -extern bool_t xdr_void(void); +extern bool_t xdr_void(XDR *, void *); extern bool_t xdr_int(XDR *, int *); extern bool_t xdr_u_int(XDR *, u_int *); extern bool_t xdr_long(XDR *, long *); diff --git a/lib/libc/xdr/xdr.c b/lib/libc/xdr/xdr.c index 15f80502ea39..bc5e8c542498 100644 --- a/lib/libc/xdr/xdr.c +++ b/lib/libc/xdr/xdr.c @@ -88,13 +88,11 @@ xdr_free(xdrproc_t proc, void *objp) * XDR nothing */ bool_t -xdr_void(void) +xdr_void(XDR *xdrs __unused, void *ptr __unused) { - return (TRUE); } - /* * XDR integers */ diff --git a/sys/rpc/xdr.h b/sys/rpc/xdr.h index cd57b4069342..ac9130f65e36 100644 --- a/sys/rpc/xdr.h +++ b/sys/rpc/xdr.h @@ -288,7 +288,7 @@ struct xdr_discrim { * These are the "generic" xdr routines. */ __BEGIN_DECLS -extern bool_t xdr_void(void); +extern bool_t xdr_void(XDR *, void *); extern bool_t xdr_int(XDR *, int *); extern bool_t xdr_u_int(XDR *, u_int *); extern bool_t xdr_long(XDR *, long *); diff --git a/sys/xdr/xdr.c b/sys/xdr/xdr.c index af0d28bd65b7..605efd52e3a2 100644 --- a/sys/xdr/xdr.c +++ b/sys/xdr/xdr.c @@ -88,9 +88,8 @@ xdr_free(xdrproc_t proc, void *objp) * XDR nothing */ bool_t -xdr_void(void) +xdr_void(XDR *xrds __unused, void *ptr __unused) { - return (TRUE); } From nobody Tue Nov 5 16:19:34 2024 X-Original-To: dev-commits-src-all@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 4XjYSk357Zz5cHDN; Tue, 05 Nov 2024 16:19:34 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjYSk2G3pz41hk; Tue, 5 Nov 2024 16:19:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730823574; 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=sA6nupOUeiGXHKXm9NU1UvCloT+vhNXnI7U+57RYMtw=; b=axXlEnqIhDRP364OX1RTJfmFcHdmxM3Z5eDKvdCwcV6I3/99sxgI7H3SFpLGU1RkQV8SpY HLzc5Cmnt11ytEu1IsNXjSVA/eWVeQ5pKvPXOwASLI9wJQBiXzg1Qb+zPrdq1C0r4IcdiE gIgnyfoFz0RtoD62bmnkVakaEoGJeHYfwKD01+pIloVUre149ifcopNUTVNdxtPqU35A3J klnwiQgG7i8USwswB0oxgZDrI92t8vgLtu1IRqbdRmBRMyMcJnuFbcDHIkQ9gG4bxbhDxk ndPGscUzjeQD278mund8WejOwvvjMg+RDpOFD/m8+BKJA4GhGqyIGBCdANv/JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730823574; 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=sA6nupOUeiGXHKXm9NU1UvCloT+vhNXnI7U+57RYMtw=; b=L0fiI3Xgj5017qDGWyzNtgf6IRXIH1xemdS3FAkv/96mFNYeH5kZnHtq3RpKnz5Fv4KveR OOT2KtL48X558zx0lJ4b89JUTrabP/9iQ9n0QRLMYQo5WP/tXbN2T+DAlw3wJbqf68sNks rIrkJyjzVfasTzdP5iBDPUNw1WEqR5yzockDlZVnuSNL62+0bYzh/sdjQHbUJtuolG51M2 DQPEiSym/aiivZwHq2Us0bg8y2kqqx3sA2fjhB9dlynwnHeJW89w7jxFF8K0ZLf7OqGyyC cmnaGYUV3Ea/fJ9X283Ib/D+v8PvQqEODi1PC9GUGQMtEs3oWC/qC0Kvm6BSHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730823574; a=rsa-sha256; cv=none; b=Ijsu6YsxIAUSyeBA6Y90nK4svy5EhefT4VELkF0LDzuxvH6boNNoKLUONOr/cFxbG0/T3e Aq02NDlGqcWROJ50B9Kb58+IN6g5mkAIGfWB2LJWGlOEwBqahuKmRoC+XIWM5markHsii1 Q1O38cfbUkmYV3UtAAdRUgZt9TInro3mU/fs/Kh5wg/3e28kUa/S8/ebl4ifWD4RaPUIMa +QFzA2Cyu8jc2f6fqEL0yXNwMJ927uJSaU1YXYTWY+rsv6a9utsxSMxanzUULW4EvcdAfy lwETOHE3VSaqCZ5P3vgAXYb6q4ekHASupZ0AsPywzejnxWptxyjk8wq2uYG2xg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjYSk1YdJzP2G; Tue, 5 Nov 2024 16:19:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5GJYNB084553; Tue, 5 Nov 2024 16:19:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5GJYOG084550; Tue, 5 Nov 2024 16:19:34 GMT (envelope-from git) Date: Tue, 5 Nov 2024 16:19:34 GMT Message-Id: <202411051619.4A5GJYOG084550@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: f675d2bb3455 - releng/14.2 - makefs: Remove the warning printed when makefs -t zfs is used List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: f675d2bb3455f174f1caaceb4130abc6a677aa82 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f675d2bb3455f174f1caaceb4130abc6a677aa82 commit f675d2bb3455f174f1caaceb4130abc6a677aa82 Author: Mark Johnston AuthorDate: 2024-10-04 14:53:42 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 16:19:13 +0000 makefs: Remove the warning printed when makefs -t zfs is used We haven't seen bug reports relating to this feature for a while, so stop printing a warning. Approved by: re (kib) Reviewed by: cperciva MFC after: 2 weeks (cherry picked from commit d9fe71828797508d1d28655e40780a5ae9078e66) (cherry picked from commit ef89eefaa86f315feba6c44f2059582a077a78ed) --- usr.sbin/makefs/tests/makefs_zfs_tests.sh | 2 +- usr.sbin/makefs/zfs.c | 8 +------- usr.sbin/makefs/zfs/zfs.h | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/usr.sbin/makefs/tests/makefs_zfs_tests.sh b/usr.sbin/makefs/tests/makefs_zfs_tests.sh index 9196232ed3b3..aeda889d9a5c 100644 --- a/usr.sbin/makefs/tests/makefs_zfs_tests.sh +++ b/usr.sbin/makefs/tests/makefs_zfs_tests.sh @@ -28,7 +28,7 @@ # SUCH DAMAGE. # -MAKEFS="makefs -t zfs -o verify-txgs=true -o nowarn=true" +MAKEFS="makefs -t zfs -o verify-txgs=true" ZFS_POOL_NAME="makefstest$$" TEST_ZFS_POOL_NAME="$TMPDIR/poolname" diff --git a/usr.sbin/makefs/zfs.c b/usr.sbin/makefs/zfs.c index 43469c2358be..66e7f8dafc9c 100644 --- a/usr.sbin/makefs/zfs.c +++ b/usr.sbin/makefs/zfs.c @@ -94,7 +94,7 @@ zfs_prep_opts(fsinfo_t *fsopts) { '\0', "verify-txgs", &zfs->verify_txgs, OPT_BOOL, 0, 0, "Make OpenZFS verify data upon import" }, { '\0', "nowarn", &zfs->nowarn, OPT_BOOL, - 0, 0, "Suppress warning about experimental ZFS support" }, + 0, 0, "Provided for backwards compatibility, ignored" }, { .name = NULL } }; @@ -792,12 +792,6 @@ zfs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts) zfs_check_opts(fsopts); - if (!zfs->nowarn) { - fprintf(stderr, - "ZFS support is currently considered experimental. " - "Do not use it for anything critical.\n"); - } - dirfd = open(dir, O_DIRECTORY | O_RDONLY); if (dirfd < 0) err(1, "open(%s)", dir); diff --git a/usr.sbin/makefs/zfs/zfs.h b/usr.sbin/makefs/zfs/zfs.h index 924fad83f63e..33694e2bdbee 100644 --- a/usr.sbin/makefs/zfs/zfs.h +++ b/usr.sbin/makefs/zfs/zfs.h @@ -74,7 +74,7 @@ typedef struct { */ char filebuf[MAXBLOCKSIZE] __aligned(alignof(uint64_t)); - bool nowarn; + bool nowarn; /* ignored */ /* Pool parameters. */ const char *poolname; From nobody Tue Nov 5 18:24:42 2024 X-Original-To: dev-commits-src-all@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 4XjcF62Dhlz5cQDY; Tue, 05 Nov 2024 18:24:42 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjcF61lLWz4HPk; Tue, 5 Nov 2024 18:24:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730831082; 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=YJ0HxJLxcx5OZL/n1//1N09hq8qHa92d5oloxmr6utw=; b=r0isAkCUMfbwXK0Tcgd8J1X4m09BFQGeaHAdlQxl/a/4E3QufJbDNirrPvEYy9R/DR4gos MJhoIeAzB97U6NXnatyQKefKqO4xjJ/7qdqdsJgVBJry154rml4LHeXuJO7ZRVD+vjjVws CWCzAgKzL/TrvFr4aFGH+w0LgQSAWruIinxOgsV9E71K5eGiEgx+XD9nTqnjIbIyzIlBdO dJfXXvYfcFFEnD9Ig9DobI5SyF8+K/c+0PRtTDgokBviZ4R1ZB+tCNyWoC5hFrHdEQv1Pg orswIVx0DRj32uQvsTZFZAG3GjWlTdcGvTZSYpONB3JlakYpD3oZhi4NIQkKIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730831082; 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=YJ0HxJLxcx5OZL/n1//1N09hq8qHa92d5oloxmr6utw=; b=ws57MTPWHUl7C4pNbwFoaOf67ZGhr8EfqNNCh/7mJnfQd2+66pFGSEyxYuh5v3kGsEjs9+ KU8aDIPV1VqwTcdwz6PmFP2iG35YNbSDdf94hvoyzlg7eApGmR3TeGDOU241aCbPCbt0i9 D/LSHLqcCe9etoMu6aUIOR2Jz2UuA1M+J7b0Gn9auipHpSHvjmYOwKR5UKZ/z50+rtQydI ypbKpMwI3m+0BvPjuKTFO2ckpynDMOjiQTY73Vbrc3LNZoXiV+p9CGDkkpN62szd14lbZ0 Wi6spAzE0ztut2BHpA7X4iXB/+a0gG9eU/ZEnZxVqhZ2puHNlUjStoQgcplPDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730831082; a=rsa-sha256; cv=none; b=jIn9jF5RWIimagKYK8fUgkTSWSEmP0D5+oEuisRLVpfj2pIAm1ZUPxDQ5xbBjsTwQ+iJ/h jQtIKx7HETXpvqhS4vXk6jVfrqjfhvBcwNiOctedbw9dJMLQDnSTWJmQ7mG+kts4+wr691 eJ7My6UniKFETYfnGB7yVhUn9Bxo50UgZ56EULXHgkONXwkadZ/3BQJj3GlqKALecvjwT8 Mi3tki5g4I5w1Skb1+0IYSH6WFnCQMsP6jC5iyOuFGzjgkpr/eP4hZ/FejanFEqhZSp94C jpLKJv7QQC15JFFKdKqMx9NwxHiqNg8S2JzMn3qxN9853kzmo/sknZrpK+qjWA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjcF61LYVzSsG; Tue, 5 Nov 2024 18:24:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5IOgfg024411; Tue, 5 Nov 2024 18:24:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5IOgbB024408; Tue, 5 Nov 2024 18:24:42 GMT (envelope-from git) Date: Tue, 5 Nov 2024 18:24:42 GMT Message-Id: <202411051824.4A5IOgbB024408@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: d14c38ceb8aa - main - sys: Avoid relying on pollution from refcount.h List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d14c38ceb8aa10bd94913d0456ec0f726693379b Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d14c38ceb8aa10bd94913d0456ec0f726693379b commit d14c38ceb8aa10bd94913d0456ec0f726693379b Author: Mark Johnston AuthorDate: 2024-11-05 14:31:50 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 18:22:20 +0000 sys: Avoid relying on pollution from refcount.h Fix up headers which previously assumed that refcount.h includes systm.h, and make them more self-contained. Then, replace the systm.h include in refcount with kassert.h. Reviewed by: imp, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47450 --- sys/powerpc/include/counter.h | 2 ++ sys/sys/_lock.h | 4 ++-- sys/sys/_mutex.h | 6 ++++-- sys/sys/_rmlock.h | 10 ++++++++-- sys/sys/_rwlock.h | 6 ++++-- sys/sys/_sx.h | 5 ++++- sys/sys/file.h | 7 +++++-- sys/sys/ktls.h | 3 +++ sys/sys/refcount.h | 7 ++++--- sys/sys/sglist.h | 1 + tools/build/test-includes/badfiles.inc | 1 - 11 files changed, 37 insertions(+), 15 deletions(-) diff --git a/sys/powerpc/include/counter.h b/sys/powerpc/include/counter.h index 68e292cde7f6..90e6400ad562 100644 --- a/sys/powerpc/include/counter.h +++ b/sys/powerpc/include/counter.h @@ -100,6 +100,8 @@ counter_u64_add(counter_u64_t c, int64_t inc) #else /* !64bit */ +#include + #define counter_enter() critical_enter() #define counter_exit() critical_exit() diff --git a/sys/sys/_lock.h b/sys/sys/_lock.h index ef167b9ab5ec..7057463fbde2 100644 --- a/sys/sys/_lock.h +++ b/sys/sys/_lock.h @@ -33,8 +33,8 @@ struct lock_object { const char *lo_name; /* Individual lock name. */ - u_int lo_flags; - u_int lo_data; /* General class specific data. */ + unsigned int lo_flags; + unsigned int lo_data; /* General class specific data. */ struct witness *lo_witness; /* Data for witness. */ }; diff --git a/sys/sys/_mutex.h b/sys/sys/_mutex.h index 0fcd5a2c2809..7241f9f1d31c 100644 --- a/sys/sys/_mutex.h +++ b/sys/sys/_mutex.h @@ -31,6 +31,8 @@ #ifndef _SYS__MUTEX_H_ #define _SYS__MUTEX_H_ +#include +#include #include /* @@ -44,7 +46,7 @@ */ struct mtx { struct lock_object lock_object; /* Common lock properties. */ - volatile uintptr_t mtx_lock; /* Owner and flags. */ + volatile __uintptr_t mtx_lock; /* Owner and flags. */ }; /* @@ -58,7 +60,7 @@ struct mtx { */ struct mtx_padalign { struct lock_object lock_object; /* Common lock properties. */ - volatile uintptr_t mtx_lock; /* Owner and flags. */ + volatile __uintptr_t mtx_lock; /* Owner and flags. */ } __aligned(CACHE_LINE_SIZE); #endif /* !_SYS__MUTEX_H_ */ diff --git a/sys/sys/_rmlock.h b/sys/sys/_rmlock.h index 38375b623a65..9c8893efe19c 100644 --- a/sys/sys/_rmlock.h +++ b/sys/sys/_rmlock.h @@ -32,6 +32,14 @@ #ifndef _SYS__RMLOCK_H_ #define _SYS__RMLOCK_H_ +#include +#include +#include +#include +#include + +struct thread; + /* * Mostly reader/occasional writer lock. */ @@ -66,8 +74,6 @@ struct rm_priotracker { LIST_ENTRY(rm_priotracker) rmp_qentry; }; -#include - struct rmslock_pcpu; struct rmslock { diff --git a/sys/sys/_rwlock.h b/sys/sys/_rwlock.h index d360cfe2a4e9..8c15771cb172 100644 --- a/sys/sys/_rwlock.h +++ b/sys/sys/_rwlock.h @@ -28,6 +28,8 @@ #ifndef _SYS__RWLOCK_H_ #define _SYS__RWLOCK_H_ +#include +#include #include /* @@ -41,7 +43,7 @@ */ struct rwlock { struct lock_object lock_object; - volatile uintptr_t rw_lock; + volatile __uintptr_t rw_lock; }; /* @@ -55,7 +57,7 @@ struct rwlock { */ struct rwlock_padalign { struct lock_object lock_object; - volatile uintptr_t rw_lock; + volatile __uintptr_t rw_lock; } __aligned(CACHE_LINE_SIZE); #endif /* !_SYS__RWLOCK_H_ */ diff --git a/sys/sys/_sx.h b/sys/sys/_sx.h index f70462c9a008..c6fd485620c6 100644 --- a/sys/sys/_sx.h +++ b/sys/sys/_sx.h @@ -31,12 +31,15 @@ #ifndef _SYS__SX_H_ #define _SYS__SX_H_ +#include +#include + /* * Shared/exclusive lock main structure definition. */ struct sx { struct lock_object lock_object; - volatile uintptr_t sx_lock; + volatile __uintptr_t sx_lock; }; #endif /* !_SYS__SX_H_ */ diff --git a/sys/sys/file.h b/sys/sys/file.h index 820ad1015573..a2dc02e523d8 100644 --- a/sys/sys/file.h +++ b/sys/sys/file.h @@ -37,13 +37,16 @@ #include #include #else -#include -#include +#include #include #include +#include +#include +#include #include struct filedesc; +struct proc; struct stat; struct thread; struct uio; diff --git a/sys/sys/ktls.h b/sys/sys/ktls.h index 9b3433f4b1fd..0e52d643fe3b 100644 --- a/sys/sys/ktls.h +++ b/sys/sys/ktls.h @@ -28,8 +28,11 @@ #define _SYS_KTLS_H_ #ifdef _KERNEL +#include #include #include + +#include #endif struct tls_record_layer { diff --git a/sys/sys/refcount.h b/sys/sys/refcount.h index 44588fe3c812..ae0ec44fd7a6 100644 --- a/sys/sys/refcount.h +++ b/sys/sys/refcount.h @@ -28,13 +28,14 @@ #ifndef __SYS_REFCOUNT_H__ #define __SYS_REFCOUNT_H__ -#include - -#include +#include +#include #if !defined(_KERNEL) && !defined(_STANDALONE) #include #endif +#include + #define REFCOUNT_SATURATED(val) (((val) & (1U << 31)) != 0) #define REFCOUNT_SATURATION_VALUE (3U << 30) diff --git a/sys/sys/sglist.h b/sys/sys/sglist.h index 96f3c1cd5ffb..3bbada573772 100644 --- a/sys/sys/sglist.h +++ b/sys/sys/sglist.h @@ -55,6 +55,7 @@ struct sglist { struct bio; struct mbuf; +struct thread; struct uio; static __inline void diff --git a/tools/build/test-includes/badfiles.inc b/tools/build/test-includes/badfiles.inc index eb0cd05cb39f..1d648819cd8c 100644 --- a/tools/build/test-includes/badfiles.inc +++ b/tools/build/test-includes/badfiles.inc @@ -100,7 +100,6 @@ BADHDRS= \ sys/prng.h \ sys/qmath.h \ sys/racct.h \ - sys/refcount.h \ sys/resourcevar.h \ sys/rman.h \ sys/rmlock.h \ From nobody Tue Nov 5 18:24:43 2024 X-Original-To: dev-commits-src-all@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 4XjcF73wg7z5cQGk; Tue, 05 Nov 2024 18:24:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjcF72FCJz4HK3; Tue, 5 Nov 2024 18:24:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730831083; 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=z5PlcrGb6KybPdTaOwSyqBbX0fUKkWbUt/VhYNdaBOo=; b=CxZoBIGTYXB5OvwoQA6d7wee9psL/9sAwIABqllnIRRhkE+nE9ApLDFmphNlZYY6L4qP0W Msn3tK28qGV2UILI5WhOyf/tMGe31tMZfIWcXRB8BwwC2InO8Qg6tKb4ahSSrIAkLqMSSX fvPs7a9bvY4T6i3lJ2jb9U0sXhASH9cQ9YV5L1Y1+UlBv/btgL/jvbkWvYjQ6l9F5IQk7o NyFE6x5ePKm12LnyDJ7PuwJJ+JiWQx+t7uHBtYMUP1r7Ao9uJp5RqTx9y1I3oYhjXurRtv 7Oa/4yh4Yg4HBLcxw110RegsyDcbkra77l9uwlMLOFooPbGR1Vzbo1ckjpi42Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730831083; 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=z5PlcrGb6KybPdTaOwSyqBbX0fUKkWbUt/VhYNdaBOo=; b=SWzuxO4LwpT4mtk1KpJOu321pcLsOUkms3Tl5ZWN4Mj8ntw/xE0lFhWGVcRnabhKV6sL16 x6B7IUk96EgHbcK1lMBaErzpyJQGn+41Sy1GkERAmlt51qXyNhfHmSAcXsq3IlvYiDn4hq yfDilV1nVwilmtQOmiLWjX5VUgsu4JS00zpcjO2Utfp0X/Q2jRtHiL/Sh41I5bT/GfUzbg QM2WH56q+s33+NZJvTaMCPXx9zWfCEPoye7bAeCIFMcCsLievgmV8g6Q36faCFRT0lJypd +WwsYVg/4i4aUnbgMDQKqzP/8qYjs4nVzfOSP+jMiPInaB/avSZM5B22YyxPgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730831083; a=rsa-sha256; cv=none; b=qpNHzeeSIhr440nz28w+cKkEv5B82rNr+K0stLoeMLNXKyzoHzRYjf4cigwaBO4nfTQX7T UgLxGCMN6zD4r+sEPOU5oKac7I7z164ptNC0EybPAesSHsCMU1TOIqeqgQO7PX7Hkb+QsE vOMNJOJ0ELe2knBXG3P2zAIHW22dqRjA3cwHdEzSTeIIZDbyidSpAEdHZopgIwGlf0sDLM oI//t/5Sw03VgnkhD/J5bBk44wyh5ERf2TslwZ92DIn51x6ds9PVE+/lZwbytnmJQo84Xi rEKkIy2UMCmE7eYP4ZSP8uNopNptjjjzCautr8DHQn9qgmvo0b3ufbY7SeOZuw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjcF71rWvzSf3; Tue, 5 Nov 2024 18:24:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5IOhtb024471; Tue, 5 Nov 2024 18:24:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5IOhoq024468; Tue, 5 Nov 2024 18:24:43 GMT (envelope-from git) Date: Tue, 5 Nov 2024 18:24:43 GMT Message-Id: <202411051824.4A5IOhoq024468@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 88dd0550920c - main - syslogd: Fix handling of unix socket modes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 88dd0550920c3dd378b2b761bda52339b5d860ec Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=88dd0550920c3dd378b2b761bda52339b5d860ec commit 88dd0550920c3dd378b2b761bda52339b5d860ec Author: Mark Johnston AuthorDate: 2024-11-05 17:48:37 +0000 Commit: Mark Johnston CommitDate: 2024-11-05 18:24:03 +0000 syslogd: Fix handling of unix socket modes When bind() is called, the process umask is applied, so one has to either clear the umask before binding or call chmod() to add permissions after the fact. Do the former here to ensure that the socket always has the correct mode. Reported by: Lexi Winter Fixes: 2b8c3a05e0a6 ("syslogd: Set unix socket modes atomically") --- usr.sbin/syslogd/syslogd.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 98ddb5d9158f..8fcf3f06cf95 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -3721,12 +3721,24 @@ socksetup(struct addrinfo *ai, const char *name, mode_t mode) if (ai->ai_family == AF_LOCAL) unlink(name); if (ai->ai_family == AF_LOCAL || NoBind == 0 || name != NULL) { + mode_t mask; + int error; + if (ai->ai_family == AF_LOCAL && fchmod(s, mode) < 0) { dprintf("fchmod %s: %s\n", name, strerror(errno)); close(s); return (NULL); } - if (bind(s, ai->ai_addr, ai->ai_addrlen) < 0) { + + /* + * For AF_LOCAL sockets, the process umask is applied to the + * mode set above, so temporarily clear it to ensure that the + * socket always has the correct permissions. + */ + mask = umask(0); + error = bind(s, ai->ai_addr, ai->ai_addrlen); + (void)umask(mask); + if (error < 0) { logerror("bind"); close(s); return (NULL); From nobody Tue Nov 5 21:39:46 2024 X-Original-To: dev-commits-src-all@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 4XjhZB5WXNz5bdTP; Tue, 05 Nov 2024 21:39:46 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjhZB4zqxz4dbW; Tue, 5 Nov 2024 21:39:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730842786; 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=uRXxdeo02SRl5Wl4uDB9jIlnZSNgXe7LBNNWaqfv/dw=; b=o1fMy7ttD7TYt18CTEMRMzlYezHaa0CZXj5PjxDc9WcMa95SWB5mqi/OyTEWjweFQXGBY2 7Fz7O5usTL3eimK/95JWKtZxAuIIVPTKcXfiLdq5wmjmIud68joUt13lYp8GkpyDp9Mc7x q/9gv/c3GoDabsm2arH5ocMQiGKPAPeBF5oOC38s/Zu41GVabND1PNiRH8M6RR2Bu35evx FcibRsXjrfXNQZS3+K19h0XBvSY1q8M+8hPFlMC0a0UwPeJ4SncJ8Vo/doBY53WIZVOmWj wh2ZGLaOo9J0zhaSYnt2NsOK7U9KAcbEQy2SELT5IvgZZsiL3pekbxYB0xETgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730842786; 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=uRXxdeo02SRl5Wl4uDB9jIlnZSNgXe7LBNNWaqfv/dw=; b=xDjTe1ld5Zi74KLCdUcqq9doma2sWFxYcMtQt+gDM1iFkAzMuCAETeOMLhHw9Ec2hhXq8F 0k9hvVXJni7xeZTzJ61Ls437SKGKoFayXOCkgiXrz/lV5ngf5NEIkBpPra7vD7SMPw73Qy BFYkxzdBeEWbJNmVUojbKY+JqRHDox5YTYIGhaR+UjcwxuAA+e30OHlI5WE2/enXqypkcG X0JaZH86jXZDm4itOmUnVvxHejP3QEEXpII3WTQ7Ig+SJKuGdngK6xljHQFNACq6amRNFX gsaf99ezdPx1YJqG6niAsqNlZHKL2BaJ1XQ/D6I9u5dW8hB3t6Ak87vXGlMEig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730842786; a=rsa-sha256; cv=none; b=Tw8h1LpFhcmh/D/aChVXKEq/e7fpeI3iM7xRRHecrfp0XQyjx9Uck3JlyVcbs/pK9pkIQL 9OLjlkNDHXDhrxl63SG2IjD6DO+B5cAuMezyPZ/QwXe8orfu5viebi4HTQctI56wJzaRHj Lq+JdgVUw7V2sSioAUAuWCMpmCUAU4gF9LzfUEwr52Rr9DNSkNh2tKxb26ttyW8HquEfFs oepdlpKNR7bsmtsuI/Agr+wl0+GrPj/IkMB3/9JRob6+9xE2t4CPHqhfA/jQPdYm94b4CA hdtac1OpgukmVNAPfZKc5XaZiT3GEsi2ZKLoug2Yl+9/siXQwOLL52EqH/bnpw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjhZB4Zk6zZbR; Tue, 5 Nov 2024 21:39:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5Ldkdc078624; Tue, 5 Nov 2024 21:39:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5Ldkj3078621; Tue, 5 Nov 2024 21:39:46 GMT (envelope-from git) Date: Tue, 5 Nov 2024 21:39:46 GMT Message-Id: <202411052139.4A5Ldkj3078621@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: cdfd0600dc88 - main - release: Include -dbg files in dvd image List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cdfd0600dc8882f0a0d0e6d9a1cdcf926edba6d6 Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=cdfd0600dc8882f0a0d0e6d9a1cdcf926edba6d6 commit cdfd0600dc8882f0a0d0e6d9a1cdcf926edba6d6 Author: Colin Percival AuthorDate: 2024-11-05 21:35:17 +0000 Commit: Colin Percival CommitDate: 2024-11-05 21:39:38 +0000 release: Include -dbg files in dvd image In 2016, commit 8834318685bc reworked the code for excluding -dbg files from install media, and in the process accidentally broke it for dvd images ('grep -v' should have been 'grep -vE'). FreeBSD Update builds later began to depend on this, and in any case since DVD images are intended as "include everything" images there's no point excluding those; so remove the (broken) filtering from DVD image builds. Sponsored by: Amazon MFC after: 2 days --- release/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/Makefile b/release/Makefile index 6f59647ff5db..9f19b150ae65 100644 --- a/release/Makefile +++ b/release/Makefile @@ -241,12 +241,12 @@ dvd: packagesystem -DDB_FROM_SRC ) # Copy distfiles mkdir -p ${.TARGET}/usr/freebsd-dist - for dist in MANIFEST $$(ls *.txz | grep -v -- '(${base ${_ALL_libcompats}:L:ts|})-dbg'); \ + for dist in MANIFEST $$(ls *.txz); \ do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ done .if defined(NO_ROOT) echo "./usr/freebsd-dist type=dir uname=root gname=wheel mode=0755" >> ${.TARGET}/METALOG - for dist in MANIFEST $$(ls *.txz | grep -vE -- '(${base ${_ALL_libcompats}:L:ts|})-dbg'); \ + for dist in MANIFEST $$(ls *.txz); \ do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \ done .endif From nobody Tue Nov 5 21:45:32 2024 X-Original-To: dev-commits-src-all@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 4Xjhhr1Tm3z5bfHw; Tue, 05 Nov 2024 21:45:32 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xjhhr11KVz4fT1; Tue, 5 Nov 2024 21:45:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843132; 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=ZGLEOX/jzXA8bWl3BXPIln0U0ZUCZkveZcejEC4x4Eo=; b=WpLmWYmm5Qk7x78NoiP8x1GDXuzAlz4izAmsddd3R1iIjJ9tmeHMNeOuzCkBL14mhz2Vy2 WSYJE2Hdd0kFfQsMxP3FojSxqQ8ygyVdZOKuKXxRtFPq1bTjBnab4+1EUIalNjr7duHqaT /I/3axmGffPpbH+iyvkIkJHvQj3Kr99QPjEeKclOGnIz8/C15Xf57DxLB2fqmYPyrDkhmJ e8Hnb+oHYAsoCkgt7meWonzP4Cvq3DtLcPAGRSPmO5TBK/F0HW4CXT0okENAL47QTa89Fi VZPJx3bTkoCVt8VJ5GgUOmeCSYFuhKpelc5pa1QWArha9M/LHOjkYPAg2pE05g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843132; 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=ZGLEOX/jzXA8bWl3BXPIln0U0ZUCZkveZcejEC4x4Eo=; b=d0Ym24m6Msz8OrKofTZLWldnjB2JDVzXv5IGR67PaB/wciDn8agDSjdOgHbGC+R3jhELNm Qkx0xkEdTMM5bKHyQRx5Yb84jwzQW7Z4fYtnspD6yFYKEL3Uh+R2Dvewgd4UzGn3YPAkDX ZT4qnR6lXcVc2yl+QjDYNdqu5b/fdHPdv3MAorE+H33ncAk20ArlugjEC2kFIZC65OtStK 2TISTZnnjcrSd6mpafZEAP5iCB918RX7PFFUXlzWUtj1InCI3igLLsb3bSU7QTWKQybbOG wqP5qQVW5O48kepQa13bhro9sgPNesTK8XgVjO3Ntz0OPsa1US3LBSSvutBXDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730843132; a=rsa-sha256; cv=none; b=JAJDgLraH+Yjn/2AvYmTvOsq9ay2ruz9h127cBI5LIcK2jg0U0XdZuGL1jQwvVbkQR7ert pf+PaNosvGH/6N/fgMeXI1WcNpSQ320yTzy5rS5+s57XLCEWNFNHakhcPzZGSd78fDQZgV p0qIMBqkke7SR5ttyE3mRu6jnJf4OrcYSavQkxctdP6D3WgiSLyB7CdM7VOoj1upGwb4Re 4xLcfDs8vtRtvgsE1r+LDM1EaK/ke9+V64+ZFo4bqkDiL+cRtFgo3kSfV0FnbQjMul98Wi OG/qla/CPsrH+qmL55V6sJy57akyBVplofJRzVVtKxlLjzKO5/WTr4m7/ujNAA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xjhhr0cVBzZK0; Tue, 5 Nov 2024 21:45:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5LjWwN095393; Tue, 5 Nov 2024 21:45:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5LjWp3095390; Tue, 5 Nov 2024 21:45:32 GMT (envelope-from git) Date: Tue, 5 Nov 2024 21:45:32 GMT Message-Id: <202411052145.4A5LjWp3095390@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 3dace161c237 - stable/14 - sound: Retire pcm_veto_load List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3dace161c237069d954bda743e6c734df27ef274 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=3dace161c237069d954bda743e6c734df27ef274 commit 3dace161c237069d954bda743e6c734df27ef274 Author: Christos Margiolis AuthorDate: 2024-11-03 19:02:17 +0000 Commit: Christos Margiolis CommitDate: 2024-11-05 21:44:41 +0000 sound: Retire pcm_veto_load pcm_veto_load is used to prevent pcm_register() from running if the root feeder has not been registered yet. However, feeder_register_root() is a SYSINIT. Sponsored by: The FreeBSD Foundation MFC after: 2 days Reviewed by: dev_submerge.ch, markj, emaste Differential Revision: https://reviews.freebsd.org/D47280 (cherry picked from commit 98cd27c8e13418fa517a02844641f390f9389987) --- sys/dev/sound/pcm/feeder.c | 7 ++++--- sys/dev/sound/pcm/sound.c | 8 -------- sys/dev/sound/pcm/sound.h | 1 - 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/sys/dev/sound/pcm/feeder.c b/sys/dev/sound/pcm/feeder.c index 2b9599859102..6a6d8c80a34a 100644 --- a/sys/dev/sound/pcm/feeder.c +++ b/sys/dev/sound/pcm/feeder.c @@ -68,9 +68,6 @@ feeder_register_root(void *p) fte->idx = feedercnt; SLIST_INSERT_HEAD(&feedertab, fte, link); feedercnt++; - - /* we've got our root feeder so don't veto pcm loading anymore */ - pcm_veto_load = 0; } void @@ -465,6 +462,10 @@ static struct feeder_class feeder_root_class = { .desc = NULL, .data = NULL, }; +/* + * Register the root feeder first so that pcm_addchan() and subsequent + * functions can use it. + */ SYSINIT(feeder_root, SI_SUB_DRIVERS, SI_ORDER_FIRST, feeder_register_root, &feeder_root_class); SYSUNINIT(feeder_root, SI_SUB_DRIVERS, SI_ORDER_FIRST, feeder_unregisterall, NULL); diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index e25cb359f793..948cbd0b8fb9 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -48,8 +48,6 @@ devclass_t pcm_devclass; -int pcm_veto_load = 1; - int snd_unit = -1; static int snd_unit_auto = -1; @@ -462,12 +460,6 @@ pcm_register(device_t dev, void *devinfo, int numplay, int numrec) struct snddev_info *d; int i; - if (pcm_veto_load) { - device_printf(dev, "disabled due to an error while initialising: %d\n", pcm_veto_load); - - return EINVAL; - } - d = device_get_softc(dev); d->dev = dev; d->lock = snd_mtxcreate(device_get_nameunit(dev), "sound cdev"); diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index 126b3411b035..c5013e76034a 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -229,7 +229,6 @@ enum { #define DSP_DEFAULT_SPEED 8000 -extern int pcm_veto_load; extern int snd_unit; extern int snd_verbose; extern devclass_t pcm_devclass; From nobody Tue Nov 5 21:45:33 2024 X-Original-To: dev-commits-src-all@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 4Xjhhs2v4bz5bdsj; Tue, 05 Nov 2024 21:45:33 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xjhhs24T3z4fT2; Tue, 5 Nov 2024 21:45:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843133; 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=yX+ZOnfbpD0wEZuHH6Z/EWFRNdsghsTg+gRSWAS4eWw=; b=HDCU5R3iNXbVB0SwxjmFFPte6CYCPCbXLPfT1U0Y70300KJUrt4cGXrNlkg+lyE88gktZv xFEJqzTM3jSOIjnX+K3EERlQPkbkLidDbzN7z9h2s4rkPEbmcjoY4fZhM2nO2uZ0ntA6Vr 7KrlL8c2eaa7hKMWVwcYIIfGo62Ghf+CTe+x9UAS4H13p+OovAeTDw6enlbxggjK7CeinB iNitYngw0xxNsHkZPJa/O/4uUrATpmhi39DS8sZww8QGX9y2wxNG0oF+gFK6nKtLvGbjpA OYXMiw9+uk9Lut/LgsRapqcByk11/M9EVdZfymnN5j3pAH1Ij/HTkITb3RQc/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843133; 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=yX+ZOnfbpD0wEZuHH6Z/EWFRNdsghsTg+gRSWAS4eWw=; b=ETMxui80tn9cB1Jz4niFnMeaUR3/aANrnw1uzapvjcteKqGNuap+ndZrp7UEtXaN/ESNoA NN2FG5p4j827egorTQ2qRUDkDAVvxTw1AqKlfchA7aXe0k56H549XziwAjNwYU7AMSYEDT FE1jX05udhy4qKsGND3ckz9mfbV64tmba52dgDimCUasS3lMEbT/8YmL9SO4SIYRS0leyH pDwpciDneJPSbwxoX1ms4A9qntJmVnZ5I90Y2eUH9L77feAsGADYyDHTgna8ymcTtnkAZA o4Rbxn5/jUfjjbaEVKg+oYbCk2Tpt5JXKlUmCxeZaO1lcA9dIuejXJtE8QXOdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730843133; a=rsa-sha256; cv=none; b=ePwF/yBlj6NvJZcp1KofM2ARf7xGNJr1Hpkb4MwS+8kkXMilgUnNLtq/b8kzqsX3DdPHzo cqbSpt6KCev9hK7IciWGQpeW7yJckErqqZsmRsiK3zDsxelslrvr75oBvTNwRw/Btodo8R NgG2ijlaGTcvAYZ4zlSAOhU+x8nOJgyd7glzOXS32zJgw/mCIbfY1Ra/Ojo+Gihqce6uOt mMMIU3TeIGvlY6Bkxfd4KqC6gNCbDr5ucQPikIhv8N7JeGjPi8n+aPXQ0j+xplTfg6ouZj dt1XrSItG18zRQLKVwR+90+OW/lwSl04tOi2qSAb99cWTnkU+nwnZJ2UU35mbw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xjhhs1ghczZf0; Tue, 5 Nov 2024 21:45:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5LjXdJ095453; Tue, 5 Nov 2024 21:45:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5LjX3K095450; Tue, 5 Nov 2024 21:45:33 GMT (envelope-from git) Date: Tue, 5 Nov 2024 21:45:33 GMT Message-Id: <202411052145.4A5LjX3K095450@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 00c066cd575d - stable/14 - sound: Move sysctl and /dev/dspX creation to pcm_setstatus() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 00c066cd575dedf34a1aa76ed29489604f4a9c9d Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=00c066cd575dedf34a1aa76ed29489604f4a9c9d commit 00c066cd575dedf34a1aa76ed29489604f4a9c9d Author: Christos Margiolis AuthorDate: 2024-11-03 19:02:31 +0000 Commit: Christos Margiolis CommitDate: 2024-11-05 21:44:41 +0000 sound: Move sysctl and /dev/dspX creation to pcm_setstatus() Create the sysctl and /dev/dsp* nodes in pcm_setstatus(), which is responsible for finalizing the device initialization, instead of doing this in the middle of the initialization. For the sysctl creation specifically, move them into pcm_sysinit(), since this is where we create the rest of the sysctl nodes anyway. A side effect of this change is, that we avoid the possibility of racing in between pcm_register() and pcm_setstatus() by accessing /dev/dspX or the sysctls within that window. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D47322 (cherry picked from commit 66f3eb14e955d3917f817ff346d33d839679c2cf) --- sys/dev/sound/pcm/sound.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 948cbd0b8fb9..5ca38ca622c9 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -316,7 +316,7 @@ pcm_setstatus(device_t dev, char *str) else if (snd_unit_auto == 1) snd_unit = pcm_best_unit(snd_unit); - return (0); + return (dsp_make_dev(dev)); } uint32_t @@ -433,6 +433,15 @@ pcm_sysinit(device_t dev) mode = pcm_mode_init(d); + sysctl_ctx_init(&d->play_sysctl_ctx); + d->play_sysctl_tree = SYSCTL_ADD_NODE(&d->play_sysctl_ctx, + SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "play", + CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "playback channels node"); + sysctl_ctx_init(&d->rec_sysctl_ctx); + d->rec_sysctl_tree = SYSCTL_ADD_NODE(&d->rec_sysctl_ctx, + SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "rec", + CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "recording channels node"); + /* XXX: a user should be able to set this with a control tool, the sysadmin then needs min+max sysctls for this */ SYSCTL_ADD_UINT(device_get_sysctl_ctx(dev), @@ -497,21 +506,12 @@ pcm_register(device_t dev, void *devinfo, int numplay, int numrec) if ((numplay == 0 || numrec == 0) && numplay != numrec) d->flags |= SD_F_SIMPLEX; - sysctl_ctx_init(&d->play_sysctl_ctx); - d->play_sysctl_tree = SYSCTL_ADD_NODE(&d->play_sysctl_ctx, - SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "play", - CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "playback channels node"); - sysctl_ctx_init(&d->rec_sysctl_ctx); - d->rec_sysctl_tree = SYSCTL_ADD_NODE(&d->rec_sysctl_ctx, - SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "rec", - CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "recording channels node"); - if (numplay > 0 || numrec > 0) d->flags |= SD_F_AUTOVCHAN; sndstat_register(dev, d->status); - return (dsp_make_dev(dev)); + return (0); } int From nobody Tue Nov 5 21:45:34 2024 X-Original-To: dev-commits-src-all@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 4Xjhht68q1z5bfN8; Tue, 05 Nov 2024 21:45:34 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xjhht2srcz4fWQ; Tue, 5 Nov 2024 21:45:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843134; 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=Yzk8HXV/f5f/LMlTXM9L8l4C4+Y5VnLFc9Z0f4GNH7w=; b=MuPDj586O+IlHoZ/4Eal6JoCx2b1Kxy/Wcd2kd/CxBqL3ATdLjaNqP+CSYX2ueAL1R0n1p Azn6uPyz99xtuOc4gu43orX5NKuym0iO0X3qJylunGo4+vWzlRaSJ1uGZ0MbGk5kMcJouQ cMbUKn/9elK/G6xc4KUP7pBU3nZgSNIWFB6xMk+Z6l5rNIbdlGhoU1dIAvYnF2g3QmWsiO la/Zhz22Rn1Syr8nXf4ejxyEcBd1ylHqHbClTEKovfCBPlSzTjdP3bFDH19fuenMK69EXR SZjIvDOUjFFplGgca83RBHY3jSzKZDmi5Z4e3h/Xd4TWvgfOoMPDRhT4Hj3wbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843134; 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=Yzk8HXV/f5f/LMlTXM9L8l4C4+Y5VnLFc9Z0f4GNH7w=; b=FwXoGBrrw1lNFyN0D+pCSrPR+7rYAw2Jf8P7eUxhIvRZOT/pZSTrrkXkymTkI3cFtKYxmG NvrWEa+tL/7/qH+rY7B4Th51g4Jn9Ehude4XYxWA3OVN4VKOLSXhdm4tXfe66bYPrkariC toLmTzMXYrHaMrrlvYDLwPCWAW16d0vlxFBceZrBvHUiArMWawQ8Wb9FaRkIxSaoN6LyxT ytCuEJUpTEQXTtij4+F/wfwNuT5C5e6JLiahVuq6ZyD6Yu2JivANJhL8vLuz6lnnMdzlv0 dYxsUZumHC6hqJzoH/zMf2k3wy6ckWdBfN1pzc7+m/rkKMDSjuqn03NoLRlNVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730843134; a=rsa-sha256; cv=none; b=HuENLJZZxmU8WnvAc7bUwYYYNh5Md2r6Z3tz/43LEkfgQBe31u4a7aGrGZ6q/MK4EoTiwj SpvtMooI/sO2PqD8OJCGzqdifUSQJisPtzlKaiXeyKTpjm+7lC/xiMSTCksmnHFCtJFv0n qPirI8uU+lA1ffE24NzV+ljizjZZ3yNa2Chtu3DJZZuQhza0lo9r8DJ/Y5bCxYxb+ZB+yI 4R59Nmf2JpcDiMkFyyy/s84RWtBMUeQk6oRKZmgLlC59eXDmwamox+eUjZ833i0URhQ01J VuGYYi6SYxO7exj8DAUY+zVuEOWld802qHctady5eImdsol7egqx7t7JGf7PSQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xjhht2VJhzZf1; Tue, 5 Nov 2024 21:45:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5LjY1C095498; Tue, 5 Nov 2024 21:45:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5LjYIs095495; Tue, 5 Nov 2024 21:45:34 GMT (envelope-from git) Date: Tue, 5 Nov 2024 21:45:34 GMT Message-Id: <202411052145.4A5LjYIs095495@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 9e36026dc3ea - stable/14 - sound: Move sndstat_register() call to pcm_setstatus() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9e36026dc3eafe158d03c9371abd784e4115f4f0 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=9e36026dc3eafe158d03c9371abd784e4115f4f0 commit 9e36026dc3eafe158d03c9371abd784e4115f4f0 Author: Christos Margiolis AuthorDate: 2024-11-03 19:02:37 +0000 Commit: Christos Margiolis CommitDate: 2024-11-05 21:44:41 +0000 sound: Move sndstat_register() call to pcm_setstatus() The d->status string is populated in pcm_setstatus() anyway, so call sndstat_register() after we populate it, and are closer to finalizing the device creation. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D47323 (cherry picked from commit 181a31d8349088cbcead8dcbff8d62ee8af6c913) --- sys/dev/sound/pcm/sound.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 5ca38ca622c9..3c4fb38fa4f5 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -293,6 +293,7 @@ pcm_setstatus(device_t dev, char *str) vchan_setmaxauto(d, snd_maxautovchans); strlcpy(d->status, str, SND_STATUSLEN); + sndstat_register(dev, d->status); PCM_LOCK(d); @@ -509,8 +510,6 @@ pcm_register(device_t dev, void *devinfo, int numplay, int numrec) if (numplay > 0 || numrec > 0) d->flags |= SD_F_AUTOVCHAN; - sndstat_register(dev, d->status); - return (0); } From nobody Tue Nov 5 21:45:35 2024 X-Original-To: dev-commits-src-all@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 4Xjhhv6KCdz5bfN9; Tue, 05 Nov 2024 21:45:35 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xjhhv4BQZz4fGD; Tue, 5 Nov 2024 21:45:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843135; 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=LF9iqh/4JJ96sMLMABMREaBdEqyw2dSSO2Xpd/vbV/M=; b=t8Qk+ZT1VJ+t/qcT3fAw3yrLKT2kEzfUsJcOzfpRy695ku8A+y1wwLMAtQvOp7jvyovsdp W6NOlVv3S0mdwhSsPVIa+b6XMFmCYtYpQYMyiWGEom+9C2Gjr0Id6uw6cWxmAbCbYR972H cxE2gc93AeRtyt5/Kkmr8PushCJz/A2u97Avx+QxlLZ2YEjuwMve5rbc0GWjf1b6awLVXy r3/ZNkvQPxv9dtk7aF9jCSGq/03s5zFTy+Ok1/oGw/bdtqvn2FfisO/w+imEjzGvkusWrq TEjyc2ZcOG9Wma4f7k12eD7yfpnY099quLtbTwbQKgn11fY1TucCLrg2C3x+Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843135; 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=LF9iqh/4JJ96sMLMABMREaBdEqyw2dSSO2Xpd/vbV/M=; b=tCX2dchYqTCdw6jOkTyIeDl9L+VxtJU16/Hc18zBLWffeduX1F1wWYAaD4zpWdlJYv792S 6+WOZvX6ROcKhgVN3xAALW+4HXv9jiUStPtzEAY50r38EspFhKdqENE4VchPYo/g59Ysnc A/bhKFxzmj4Rfo7uMk8+1QQfAnyTq+6EDBy6LXahd/fzcfU2WXuZYpo25z0VV+dgViMyfB n2hr8z4LV+pj3KpQKBQXZOeG49g4b4vKE+fCpR7gsdje6dGEnaDzN6+79EtcZsrGRd92as awBsxgftUaT0flxpAEXkIqY9Dq+5JadyardEUHaBt6nkWmroavCMil8bHB2KwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730843135; a=rsa-sha256; cv=none; b=alqcz9oLTVPrnA0dnLqhw7J0JC2GPP6jD/ejtQ+WpzF+klHgt9TgszzheFxoXe9Bc1wSRg RCQGey2Emap8QHCD2pQS/YciJbwln9eU4aFfMyak4O98/xkLIatZ8dwpAdVx1QAEg1d/qR SZhe/mFZQbsT9VwqYJPfcdJgDz4eOPE63XhBSjIQRnRyhefdGmV62Z1AM70re1sI6xnOZC r2g2KSHiaFWtZfaMxJ7MlK44JLJskiCuuVbTw6OJbCWLnRN6cnupTn5tHUvQZv8nW/fwhP w+dWMx8BnemFtFT6jlpVoUv2ooK4285B4bAaZN6rmwWU2rDnviDl662JMSayXw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xjhhv3XczzZcF; Tue, 5 Nov 2024 21:45:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5LjZE6095548; Tue, 5 Nov 2024 21:45:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5LjZ4R095545; Tue, 5 Nov 2024 21:45:35 GMT (envelope-from git) Date: Tue, 5 Nov 2024 21:45:35 GMT Message-Id: <202411052145.4A5LjZ4R095545@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: c874fcc4ca62 - stable/14 - sound: Remove early SD_F_SIMPLEX and SD_F_AUTOVCHAN assignments List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c874fcc4ca629548ded7ad7bdb71d92856759969 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=c874fcc4ca629548ded7ad7bdb71d92856759969 commit c874fcc4ca629548ded7ad7bdb71d92856759969 Author: Christos Margiolis AuthorDate: 2024-11-03 19:02:43 +0000 Commit: Christos Margiolis CommitDate: 2024-11-05 21:44:41 +0000 sound: Remove early SD_F_SIMPLEX and SD_F_AUTOVCHAN assignments These flags are properly set in pcm_setstatus(), once the primary channels have been created. The existing comment already states that this is wrong. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D47324 (cherry picked from commit 3a7d40c692622cc614a3839491c345d945f474fe) --- sys/dev/sound/pcm/sound.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 3c4fb38fa4f5..e03bcab6d8fc 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -465,7 +465,8 @@ pcm_sysinit(device_t dev) } int -pcm_register(device_t dev, void *devinfo, int numplay, int numrec) +pcm_register(device_t dev, void *devinfo, int numplay __unused, + int numrec __unused) { struct snddev_info *d; int i; @@ -503,13 +504,6 @@ pcm_register(device_t dev, void *devinfo, int numplay, int numrec) CHN_INIT(d, channels.pcm.busy); CHN_INIT(d, channels.pcm.opened); - /* XXX This is incorrect, but lets play along for now. */ - if ((numplay == 0 || numrec == 0) && numplay != numrec) - d->flags |= SD_F_SIMPLEX; - - if (numplay > 0 || numrec > 0) - d->flags |= SD_F_AUTOVCHAN; - return (0); } From nobody Tue Nov 5 21:45:36 2024 X-Original-To: dev-commits-src-all@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 4Xjhhw5SGXz5bfJ7; Tue, 05 Nov 2024 21:45:36 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xjhhw4tr9z4fWp; Tue, 5 Nov 2024 21:45:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843136; 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=Sh27r7p/x9Z3m9NRL42AhIFFv36VVlRr3lVWHdkps+U=; b=Tmd4UpfPn2y5sQOIenu9lZTvJmaSBWxl0Pq0qLwHFHHHuvCAV6b0yplOI3C15bK+CZ95MD HSq3N0esNeb2Xi30F4s0r8YhU6Pq8pNfbbOXMfcHXp8ytDd+tb8MnmBmUqrLm4IQa891My AlEsJmhnZ+QL5cplxBxMsHt6knJ6JN/OSG6EPcytxZcdrsEIilmJTOTZRLqtD1tBaKEBF2 iQ4H0g2E6oXQtYFHLOZz5oC9HQBsvJuZ2s1MW2qD+BYOutlFuJvX9zjnmF048sRHnUsMVJ ri4PY72ZS44C8Rai2LwlgVtKiB90cqRi/gLgvq8Ljy34XgtcaUTCgJu761Q53w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843136; 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=Sh27r7p/x9Z3m9NRL42AhIFFv36VVlRr3lVWHdkps+U=; b=SKTY/3radXfMct0os1fFg6CeT243Diypt7SeKfariCEkvuautVsWtXCK9HGvB6T8QMwJl9 bV5aU/yq8oDI+b3KtCEIfl06oD+wN1yH1sXIIRBw3IS649uhEQAbUgSdY7dYE+FdN9F9JH Kf8AjEhCYQ+oHipGRKgmMyEbS46UB07XDgpkNtNzmlZ6j3ha7Ev/AAO87pNHxPYoDUKshl leRQy91OLwXM44xRfHfq0fYqvNFn1MUMnz/8sL393FVkFe22YHF8VYwyiZuR2kDr+5XCVR 32FxKTZrNXYG7xyxSLOLSCVPeYD4h9AyouCx5J3utUtTYndyOVPfQwSzXc5y7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730843136; a=rsa-sha256; cv=none; b=gJWhAZmBYtDnOQZRMKPh7wcavVlS/LoHyGPrXUjkSGi8tXimKmmBSeEGSgNEDM4YtEmvqt AMI0RCCGCMZYfCHHCHFt7X7FCkiMsbN8JSLWT98Vm4Yrhg4/di27AKi9Ak5dS8fw7B69Jw vWSHYFu+Ao7a2pW2BBLKSPBhRicrnCmbwMnTdxraOSCN5RUdF2n2jXT1JQ2+HFpUdsNu/z uOPcWJWPVmFOZJOiL7zKwYoD0YK3cKdDLs4X2dwFwJFfHDAwTuRhlVs/s1FYPro5ft7dSF QhpSHrfNfwmKs0W4DJf3a3s2ZKOs4jc9iSkk3AoKGv8Gtv45C3U2gNHpCOefXg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xjhhw4VzZzZrd; Tue, 5 Nov 2024 21:45:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5LjaBU095597; Tue, 5 Nov 2024 21:45:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5LjaHf095594; Tue, 5 Nov 2024 21:45:36 GMT (envelope-from git) Date: Tue, 5 Nov 2024 21:45:36 GMT Message-Id: <202411052145.4A5LjaHf095594@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 5aece3be1c84 - stable/14 - sound: Make device registration more intuitive List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5aece3be1c84f6786f89894efeca1219a282f3f3 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=5aece3be1c84f6786f89894efeca1219a282f3f3 commit 5aece3be1c84f6786f89894efeca1219a282f3f3 Author: Christos Margiolis AuthorDate: 2024-11-03 19:02:49 +0000 Commit: Christos Margiolis CommitDate: 2024-11-05 21:45:01 +0000 sound: Make device registration more intuitive The way a sound driver currently registers to sound(4) is using the following sequence of function calls: 1. pcm_register() to initialize snddev_info. 2. pcm_addchan() calls to create the device's primary channels. 3. pcm_setstatus() to do the final setup. While using 3 different functions in a specific order might not be very elegant, this pattern cannot be easily avoided. However, pcm_register() and pcm_setstatus() are especially confusing, since one would intuitively expect: 1. pcm_register() to actually do the registration, as opposed to a basic initialization. 2. pcm_setstatus() to, as the name suggests, set some kind of status, as opposed to finalizing the registration. This patch renames pcm_register() to pcm_init(), and pcm_setstatus() to pcm_register(). Drivers are modified accordingly. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: dev_submerge.ch Differential Revision: https://reviews.freebsd.org/D47325 (cherry picked from commit 516a9c0212b003e1da0c6f4476dbe4f3f431606c) --- sys/arm/allwinner/a10_codec.c | 10 +-- sys/arm/broadcom/bcm2835/bcm2835_audio.c | 10 +-- sys/arm/freescale/imx/imx6_ssi.c | 12 ++-- sys/arm/freescale/vybrid/vf_sai.c | 12 ++-- sys/dev/sound/dummy.c | 6 +- sys/dev/sound/fdt/audio_soc.c | 10 +-- sys/dev/sound/macio/aoa.c | 6 +- sys/dev/sound/pci/als4000.c | 11 ++-- sys/dev/sound/pci/atiixp.c | 6 +- sys/dev/sound/pci/cmi.c | 6 +- sys/dev/sound/pci/cs4281.c | 6 +- sys/dev/sound/pci/csapcm.c | 8 +-- sys/dev/sound/pci/emu10k1.c | 5 +- sys/dev/sound/pci/emu10kx-pcm.c | 8 +-- sys/dev/sound/pci/envy24.c | 7 +-- sys/dev/sound/pci/envy24ht.c | 8 +-- sys/dev/sound/pci/es137x.c | 6 +- sys/dev/sound/pci/fm801.c | 5 +- sys/dev/sound/pci/hda/hdaa.c | 7 +-- sys/dev/sound/pci/hdspe-pcm.c | 13 ++-- sys/dev/sound/pci/ich.c | 5 +- sys/dev/sound/pci/maestro3.c | 9 +-- sys/dev/sound/pci/neomagic.c | 5 +- sys/dev/sound/pci/solo.c | 6 +- sys/dev/sound/pci/t4dwave.c | 6 +- sys/dev/sound/pci/via8233.c | 6 +- sys/dev/sound/pci/via82c686.c | 5 +- sys/dev/sound/pci/vibes.c | 11 ++-- sys/dev/sound/pcm/sound.c | 103 ++++++++++++++++--------------- sys/dev/sound/pcm/sound.h | 4 +- sys/dev/sound/usb/uaudio.c | 11 ++-- 31 files changed, 161 insertions(+), 172 deletions(-) diff --git a/sys/arm/allwinner/a10_codec.c b/sys/arm/allwinner/a10_codec.c index 036de684b788..a2ad58bab6fc 100644 --- a/sys/arm/allwinner/a10_codec.c +++ b/sys/arm/allwinner/a10_codec.c @@ -1166,16 +1166,16 @@ a10codec_attach(device_t dev) pcm_setflags(dev, pcm_getflags(dev) | SD_F_MPSAFE); - if (pcm_register(dev, sc, 1, 1)) { - device_printf(dev, "pcm_register failed\n"); - goto fail; - } + pcm_init(dev, sc); pcm_addchan(dev, PCMDIR_PLAY, &a10codec_chan_class, sc); pcm_addchan(dev, PCMDIR_REC, &a10codec_chan_class, sc); snprintf(status, SND_STATUSLEN, "at %s", ofw_bus_get_name(dev)); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) { + device_printf(dev, "pcm_register failed\n"); + goto fail; + } return (0); diff --git a/sys/arm/broadcom/bcm2835/bcm2835_audio.c b/sys/arm/broadcom/bcm2835/bcm2835_audio.c index 75a0c81f29a1..13f309dd3f11 100644 --- a/sys/arm/broadcom/bcm2835/bcm2835_audio.c +++ b/sys/arm/broadcom/bcm2835/bcm2835_audio.c @@ -867,14 +867,14 @@ bcm2835_audio_delayed_init(void *xsc) goto no; } - if (pcm_register(sc->dev, sc, 1, 0)) { - device_printf(sc->dev, "pcm_register failed\n"); - goto no; - } + pcm_init(sc->dev, sc); pcm_addchan(sc->dev, PCMDIR_PLAY, &bcmchan_class, sc); snprintf(status, SND_STATUSLEN, "at VCHIQ"); - pcm_setstatus(sc->dev, status); + if (pcm_register(sc->dev, status)) { + device_printf(sc->dev, "pcm_register failed\n"); + goto no; + } bcm2835_audio_reset_channel(&sc->pch); bcm2835_audio_create_worker(sc); diff --git a/sys/arm/freescale/imx/imx6_ssi.c b/sys/arm/freescale/imx/imx6_ssi.c index 6b23334a4e97..779c41553734 100644 --- a/sys/arm/freescale/imx/imx6_ssi.c +++ b/sys/arm/freescale/imx/imx6_ssi.c @@ -811,18 +811,18 @@ ssi_attach(device_t dev) pcm_setflags(dev, pcm_getflags(dev) | SD_F_MPSAFE); - err = pcm_register(dev, scp, 1, 0); - if (err) { - device_printf(dev, "Can't register pcm.\n"); - return (ENXIO); - } + pcm_init(dev, scp); scp->chnum = 0; pcm_addchan(dev, PCMDIR_PLAY, &ssichan_class, scp); scp->chnum++; snprintf(status, SND_STATUSLEN, "at simplebus"); - pcm_setstatus(dev, status); + err = pcm_register(dev, status); + if (err) { + device_printf(dev, "Can't register pcm.\n"); + return (ENXIO); + } mixer_init(dev, &ssimixer_class, scp); setup_ssi(sc); diff --git a/sys/arm/freescale/vybrid/vf_sai.c b/sys/arm/freescale/vybrid/vf_sai.c index 3b3a120df4e1..92dc185c13eb 100644 --- a/sys/arm/freescale/vybrid/vf_sai.c +++ b/sys/arm/freescale/vybrid/vf_sai.c @@ -763,18 +763,18 @@ sai_attach(device_t dev) pcm_setflags(dev, pcm_getflags(dev) | SD_F_MPSAFE); - err = pcm_register(dev, scp, 1, 0); - if (err) { - device_printf(dev, "Can't register pcm.\n"); - return (ENXIO); - } + pcm_init(dev, scp); scp->chnum = 0; pcm_addchan(dev, PCMDIR_PLAY, &saichan_class, scp); scp->chnum++; snprintf(status, SND_STATUSLEN, "at simplebus"); - pcm_setstatus(dev, status); + err = pcm_register(dev, status); + if (err) { + device_printf(dev, "Can't register pcm.\n"); + return (ENXIO); + } mixer_init(dev, &saimixer_class, scp); diff --git a/sys/dev/sound/dummy.c b/sys/dev/sound/dummy.c index c1cd4dff15f9..9013fd023a7e 100644 --- a/sys/dev/sound/dummy.c +++ b/sys/dev/sound/dummy.c @@ -305,8 +305,7 @@ dummy_attach(device_t dev) }; pcm_setflags(dev, pcm_getflags(dev) | SD_F_MPSAFE); - if (pcm_register(dev, sc, DUMMY_NPCHAN, DUMMY_NRCHAN)) - return (ENXIO); + pcm_init(dev, sc); for (i = 0; i < DUMMY_NPCHAN; i++) pcm_addchan(dev, PCMDIR_PLAY, &dummy_chan_class, sc); for (i = 0; i < DUMMY_NRCHAN; i++) @@ -314,7 +313,8 @@ dummy_attach(device_t dev) snprintf(status, SND_STATUSLEN, "on %s", device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + return (ENXIO); mixer_init(dev, &dummy_mixer_class, sc); callout_init(&sc->callout, 1); diff --git a/sys/dev/sound/fdt/audio_soc.c b/sys/dev/sound/fdt/audio_soc.c index 92813a3079d8..c2bdea399364 100644 --- a/sys/dev/sound/fdt/audio_soc.c +++ b/sys/dev/sound/fdt/audio_soc.c @@ -397,10 +397,7 @@ audio_soc_init(void *arg) } } - if (pcm_register(sc->dev, sc, 1, 1)) { - device_printf(sc->dev, "failed to register PCM\n"); - return; - } + pcm_init(sc->dev, sc); sc->play_channel.sc = sc; sc->rec_channel.sc = sc; @@ -408,7 +405,10 @@ audio_soc_init(void *arg) pcm_addchan(sc->dev, PCMDIR_PLAY, &audio_soc_chan_class, &sc->play_channel); pcm_addchan(sc->dev, PCMDIR_REC, &audio_soc_chan_class, &sc->rec_channel); - pcm_setstatus(sc->dev, "at simplebus"); + if (pcm_register(sc->dev, "at simplebus")) { + device_printf(sc->dev, "failed to register PCM\n"); + return; + } AUDIO_DAI_SETUP_INTR(sc->cpu_dev, audio_soc_intr, sc); AUDIO_DAI_SETUP_MIXER(sc->codec_dev, sc->dev); diff --git a/sys/dev/sound/macio/aoa.c b/sys/dev/sound/macio/aoa.c index 27626b3d570a..9861bbd92a0c 100644 --- a/sys/dev/sound/macio/aoa.c +++ b/sys/dev/sound/macio/aoa.c @@ -372,8 +372,7 @@ aoa_attach(void *xsc) sc = xsc; self = sc->sc_dev; - if (pcm_register(self, sc, 1, 0)) - return (ENXIO); + pcm_init(self, sc); err = pcm_getbuffersize(self, AOA_BUFFER_SIZE, AOA_BUFFER_SIZE, AOA_BUFFER_SIZE); @@ -382,7 +381,6 @@ aoa_attach(void *xsc) pcm_addchan(self, PCMDIR_PLAY, &aoa_chan_class, sc); snprintf(status, sizeof(status), "at %s", ofw_bus_get_name(self)); - pcm_setstatus(self, status); - return (0); + return (pcm_register(self, status)); } diff --git a/sys/dev/sound/pci/als4000.c b/sys/dev/sound/pci/als4000.c index b1376d2b6e5a..9d86713b379e 100644 --- a/sys/dev/sound/pci/als4000.c +++ b/sys/dev/sound/pci/als4000.c @@ -839,10 +839,7 @@ als_pci_attach(device_t dev) goto bad_attach; } - if (pcm_register(dev, sc, 1, 1)) { - device_printf(dev, "failed to register pcm entries\n"); - goto bad_attach; - } + pcm_init(dev, sc); pcm_addchan(dev, PCMDIR_PLAY, &alspchan_class, sc); pcm_addchan(dev, PCMDIR_REC, &alsrchan_class, sc); @@ -850,7 +847,11 @@ als_pci_attach(device_t dev) snprintf(status, SND_STATUSLEN, "port 0x%jx irq %jd on %s", rman_get_start(sc->reg), rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) { + device_printf(dev, "failed to register pcm entries\n"); + goto bad_attach; + } + return 0; bad_attach: diff --git a/sys/dev/sound/pci/atiixp.c b/sys/dev/sound/pci/atiixp.c index eeb28bb08276..90e5742e6523 100644 --- a/sys/dev/sound/pci/atiixp.c +++ b/sys/dev/sound/pci/atiixp.c @@ -1084,8 +1084,7 @@ atiixp_chip_post_init(void *arg) mixer_init(sc->dev, ac97_getmixerclass(), sc->codec); - if (pcm_register(sc->dev, sc, ATI_IXP_NPCHAN, ATI_IXP_NRCHAN)) - goto postinitbad; + pcm_init(sc->dev, sc); for (i = 0; i < ATI_IXP_NPCHAN; i++) pcm_addchan(sc->dev, PCMDIR_PLAY, &atiixp_chan_class, sc); @@ -1101,7 +1100,8 @@ atiixp_chip_post_init(void *arg) rman_get_start(sc->reg), rman_get_start(sc->irq), device_get_nameunit(device_get_parent(sc->dev))); - pcm_setstatus(sc->dev, status); + if (pcm_register(sc->dev, status)) + goto postinitbad; atiixp_lock(sc); if (sc->polling == 0) diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c index 9a92066c51a4..22f1e76a4d1f 100644 --- a/sys/dev/sound/pci/cmi.c +++ b/sys/dev/sound/pci/cmi.c @@ -982,8 +982,7 @@ cmi_attach(device_t dev) if (mixer_init(dev, &cmi_mixer_class, sc)) goto bad; - if (pcm_register(dev, sc, 1, 1)) - goto bad; + pcm_init(dev, sc); cmi_initsys(sc); @@ -993,7 +992,8 @@ cmi_attach(device_t dev) snprintf(status, SND_STATUSLEN, "port 0x%jx irq %jd on %s", rman_get_start(sc->reg), rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; DEB(printf("cmi_attach: succeeded\n")); return 0; diff --git a/sys/dev/sound/pci/cs4281.c b/sys/dev/sound/pci/cs4281.c index 972b83efff8f..7a25f7f4c08d 100644 --- a/sys/dev/sound/pci/cs4281.c +++ b/sys/dev/sound/pci/cs4281.c @@ -839,8 +839,7 @@ cs4281_pci_attach(device_t dev) mixer_init(dev, ac97_getmixerclass(), codec); - if (pcm_register(dev, sc, 1, 1)) - goto bad; + pcm_init(dev, sc); pcm_addchan(dev, PCMDIR_PLAY, &cs4281chan_class, sc); pcm_addchan(dev, PCMDIR_REC, &cs4281chan_class, sc); @@ -849,7 +848,8 @@ cs4281_pci_attach(device_t dev) (sc->regtype == SYS_RES_IOPORT)? "port" : "mem", rman_get_start(sc->reg), rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return 0; diff --git a/sys/dev/sound/pci/csapcm.c b/sys/dev/sound/pci/csapcm.c index c8424dd3e433..a966a2e66402 100644 --- a/sys/dev/sound/pci/csapcm.c +++ b/sys/dev/sound/pci/csapcm.c @@ -832,14 +832,14 @@ pcmcsa_attach(device_t dev) csa_writemem(resp, BA1_CIE, (csa_readmem(resp, BA1_CIE) & ~0x0000003f) | 0x00000001); csa_active(csa, -1); - if (pcm_register(dev, csa, 1, 1)) { + pcm_init(dev, csa); + pcm_addchan(dev, PCMDIR_REC, &csachan_class, csa); + pcm_addchan(dev, PCMDIR_PLAY, &csachan_class, csa); + if (pcm_register(dev, status)) { ac97_destroy(codec); csa_releaseres(csa, dev); return (ENXIO); } - pcm_addchan(dev, PCMDIR_REC, &csachan_class, csa); - pcm_addchan(dev, PCMDIR_PLAY, &csachan_class, csa); - pcm_setstatus(dev, status); return (0); } diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c index 0813f89c87b8..e4b2c22f4f07 100644 --- a/sys/dev/sound/pci/emu10k1.c +++ b/sys/dev/sound/pci/emu10k1.c @@ -2130,13 +2130,14 @@ emu_pci_attach(device_t dev) rman_get_start(sc->reg), rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - if (pcm_register(dev, sc, sc->nchans, gotmic ? 3 : 2)) goto bad; + pcm_init(dev, sc); for (i = 0; i < sc->nchans; i++) pcm_addchan(dev, PCMDIR_PLAY, &emupchan_class, sc); for (i = 0; i < (gotmic ? 3 : 2); i++) pcm_addchan(dev, PCMDIR_REC, &emurchan_class, sc); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return 0; diff --git a/sys/dev/sound/pci/emu10kx-pcm.c b/sys/dev/sound/pci/emu10kx-pcm.c index bef6b596646e..c280b64892f6 100644 --- a/sys/dev/sound/pci/emu10kx-pcm.c +++ b/sys/dev/sound/pci/emu10kx-pcm.c @@ -1459,10 +1459,7 @@ emu_pcm_attach(device_t dev) pcm_setflags(dev, pcm_getflags(dev) | SD_F_MPSAFE); /* XXX we should better get number of available channels from parent */ - if (pcm_register(dev, sc, (route == RT_FRONT) ? MAX_CHANNELS : 1, (route == RT_FRONT) ? 1 : 0)) { - device_printf(dev, "can't register PCM channels!\n"); - goto bad; - } + pcm_init(dev, sc); sc->pnum = 0; if (route != RT_MCHRECORD) pcm_addchan(dev, PCMDIR_PLAY, &emupchan_class, sc); @@ -1476,7 +1473,8 @@ emu_pcm_attach(device_t dev) snprintf(status, SND_STATUSLEN, "on %s", device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return (0); diff --git a/sys/dev/sound/pci/envy24.c b/sys/dev/sound/pci/envy24.c index f7cc7ff5724d..51842bfdb480 100644 --- a/sys/dev/sound/pci/envy24.c +++ b/sys/dev/sound/pci/envy24.c @@ -2575,9 +2575,7 @@ envy24_pci_attach(device_t dev) mixer_init(dev, &envy24mixer_class, sc); /* set channel information */ - err = pcm_register(dev, sc, 5, 2 + sc->adcn); - if (err) - goto bad; + pcm_init(dev, sc); sc->chnum = 0; for (i = 0; i < 5; i++) { pcm_addchan(dev, PCMDIR_PLAY, &envy24chan_class, sc); @@ -2601,7 +2599,8 @@ envy24_pci_attach(device_t dev) rman_get_end(sc->mt) - rman_get_start(sc->mt) + 1, rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return 0; diff --git a/sys/dev/sound/pci/envy24ht.c b/sys/dev/sound/pci/envy24ht.c index 65c67b84ce53..b8202a9fa7cd 100644 --- a/sys/dev/sound/pci/envy24ht.c +++ b/sys/dev/sound/pci/envy24ht.c @@ -2480,10 +2480,7 @@ envy24ht_pci_attach(device_t dev) mixer_init(dev, &envy24htmixer_class, sc); /* set channel information */ - /* err = pcm_register(dev, sc, 5, 2 + sc->adcn); */ - err = pcm_register(dev, sc, 1, 2 + sc->adcn); - if (err) - goto bad; + pcm_init(dev, sc); sc->chnum = 0; /* for (i = 0; i < 5; i++) { */ pcm_addchan(dev, PCMDIR_PLAY, &envy24htchan_class, sc); @@ -2503,7 +2500,8 @@ envy24ht_pci_attach(device_t dev) rman_get_end(sc->mt) - rman_get_start(sc->mt) + 1, rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return 0; diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c index 8f832d899dd3..3c1bea09b5d1 100644 --- a/sys/dev/sound/pci/es137x.c +++ b/sys/dev/sound/pci/es137x.c @@ -1861,13 +1861,13 @@ es_pci_attach(device_t dev) rman_get_start(es->reg), rman_get_start(es->irq), device_get_nameunit(device_get_parent(dev))); - if (pcm_register(dev, es, numplay, 1)) - goto bad; + pcm_init(dev, es); for (i = 0; i < numplay; i++) pcm_addchan(dev, PCMDIR_PLAY, ct, es); pcm_addchan(dev, PCMDIR_REC, ct, es); es_init_sysctls(dev); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; es->escfg = ES_SET_GP(es->escfg, 0); if (numplay == 1) device_printf(dev, "\n", diff --git a/sys/dev/sound/pci/fm801.c b/sys/dev/sound/pci/fm801.c index fbde14f37afe..ca6a2271096c 100644 --- a/sys/dev/sound/pci/fm801.c +++ b/sys/dev/sound/pci/fm801.c @@ -642,10 +642,11 @@ fm801_pci_attach(device_t dev) device_get_nameunit(device_get_parent(dev))); #define FM801_MAXPLAYCH 1 - if (pcm_register(dev, fm801, FM801_MAXPLAYCH, 1)) goto oops; + pcm_init(dev, fm801); pcm_addchan(dev, PCMDIR_PLAY, &fm801ch_class, fm801); pcm_addchan(dev, PCMDIR_REC, &fm801ch_class, fm801); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto oops; fm801->radio = device_add_child(dev, "radio", -1); bus_generic_attach(dev); diff --git a/sys/dev/sound/pci/hda/hdaa.c b/sys/dev/sound/pci/hda/hdaa.c index c0eb1864f145..d6aa24125c7b 100644 --- a/sys/dev/sound/pci/hda/hdaa.c +++ b/sys/dev/sound/pci/hda/hdaa.c @@ -7053,9 +7053,7 @@ hdaa_pcm_attach(device_t dev) HDA_BOOTHVERBOSE( device_printf(dev, "Registering PCM channels...\n"); ); - if (pcm_register(dev, pdevinfo, (pdevinfo->playas >= 0)?1:0, - (pdevinfo->recas >= 0)?1:0) != 0) - device_printf(dev, "Can't register PCM\n"); + pcm_init(dev, pdevinfo); pdevinfo->registered++; @@ -7108,9 +7106,8 @@ hdaa_pcm_attach(device_t dev) snprintf(status, SND_STATUSLEN, "on %s", device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); - return (0); + return (pcm_register(dev, status)); } static int diff --git a/sys/dev/sound/pci/hdspe-pcm.c b/sys/dev/sound/pci/hdspe-pcm.c index 4bea6c65e087..d58353685663 100644 --- a/sys/dev/sound/pci/hdspe-pcm.c +++ b/sys/dev/sound/pci/hdspe-pcm.c @@ -1020,13 +1020,10 @@ hdspe_pcm_attach(device_t dev) */ pcm_setflags(dev, pcm_getflags(dev) | SD_F_MPSAFE); + pcm_init(dev, scp); + play = (hdspe_channel_play_ports(scp->hc)) ? 1 : 0; rec = (hdspe_channel_rec_ports(scp->hc)) ? 1 : 0; - err = pcm_register(dev, scp, play, rec); - if (err) { - device_printf(dev, "Can't register pcm.\n"); - return (ENXIO); - } scp->chnum = 0; if (play) { @@ -1043,7 +1040,11 @@ hdspe_pcm_attach(device_t dev) rman_get_start(scp->sc->cs), rman_get_start(scp->sc->irq), device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + err = pcm_register(dev, status); + if (err) { + device_printf(dev, "Can't register pcm.\n"); + return (ENXIO); + } mixer_init(dev, &hdspemixer_class, scp); diff --git a/sys/dev/sound/pci/ich.c b/sys/dev/sound/pci/ich.c index 910a371c6653..500d6d95daac 100644 --- a/sys/dev/sound/pci/ich.c +++ b/sys/dev/sound/pci/ich.c @@ -695,7 +695,7 @@ ich_setstatus(struct sc_info *sc) device_printf(sc->dev, "PCI Master abort workaround enabled\n"); - pcm_setstatus(sc->dev, status); + pcm_register(sc->dev, status); } /* -------------------------------------------------------------------- */ @@ -1066,8 +1066,7 @@ ich_pci_attach(device_t dev) ich_setmap, sc, 0)) goto bad; - if (pcm_register(dev, sc, 1, (sc->hasmic) ? 2 : 1)) - goto bad; + pcm_init(dev, sc); pcm_addchan(dev, PCMDIR_PLAY, &ichchan_class, sc); /* play */ pcm_addchan(dev, PCMDIR_REC, &ichchan_class, sc); /* record */ diff --git a/sys/dev/sound/pci/maestro3.c b/sys/dev/sound/pci/maestro3.c index f922aa5cec3f..2d102fcd6dbe 100644 --- a/sys/dev/sound/pci/maestro3.c +++ b/sys/dev/sound/pci/maestro3.c @@ -1423,10 +1423,7 @@ m3_pci_attach(device_t dev) m3_enable_ints(sc); - if (pcm_register(dev, sc, dacn, adcn)) { - device_printf(dev, "pcm_register error\n"); - goto bad; - } + pcm_init(dev, sc); for (i=0 ; iregtype == SYS_RES_IOPORT)? "port" : "mem", rman_get_start(sc->reg), rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - if (pcm_setstatus(dev, status)) { - device_printf(dev, "attach: pcm_setstatus error\n"); + if (pcm_register(dev, status)) { + device_printf(dev, "pcm_register error\n"); goto bad; } diff --git a/sys/dev/sound/pci/neomagic.c b/sys/dev/sound/pci/neomagic.c index 25273633ff18..d7824c990a52 100644 --- a/sys/dev/sound/pci/neomagic.c +++ b/sys/dev/sound/pci/neomagic.c @@ -707,10 +707,11 @@ nm_pci_attach(device_t dev) rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - if (pcm_register(dev, sc, 1, 1)) goto bad; + pcm_init(dev, sc); pcm_addchan(dev, PCMDIR_REC, &nmchan_class, sc); pcm_addchan(dev, PCMDIR_PLAY, &nmchan_class, sc); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return 0; diff --git a/sys/dev/sound/pci/solo.c b/sys/dev/sound/pci/solo.c index 82eabf3a4884..90dd2e26ad41 100644 --- a/sys/dev/sound/pci/solo.c +++ b/sys/dev/sound/pci/solo.c @@ -1026,11 +1026,11 @@ ess_attach(device_t dev) rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - if (pcm_register(dev, sc, 1, 1)) - goto no; + pcm_init(dev, sc); pcm_addchan(dev, PCMDIR_REC, &esschan_class, sc); pcm_addchan(dev, PCMDIR_PLAY, &esschan_class, sc); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto no; return 0; diff --git a/sys/dev/sound/pci/t4dwave.c b/sys/dev/sound/pci/t4dwave.c index 653e610febbe..07b9e1004573 100644 --- a/sys/dev/sound/pci/t4dwave.c +++ b/sys/dev/sound/pci/t4dwave.c @@ -921,12 +921,12 @@ tr_pci_attach(device_t dev) rman_get_start(tr->reg), rman_get_start(tr->irq), device_get_nameunit(device_get_parent(dev))); - if (pcm_register(dev, tr, dacn, 1)) - goto bad; + pcm_init(dev, tr); pcm_addchan(dev, PCMDIR_REC, &trrchan_class, tr); for (i = 0; i < dacn; i++) pcm_addchan(dev, PCMDIR_PLAY, &trpchan_class, tr); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return 0; diff --git a/sys/dev/sound/pci/via8233.c b/sys/dev/sound/pci/via8233.c index 9f3b312e4365..243353805b94 100644 --- a/sys/dev/sound/pci/via8233.c +++ b/sys/dev/sound/pci/via8233.c @@ -1352,8 +1352,7 @@ via_attach(device_t dev) device_get_nameunit(device_get_parent(dev))); /* Register */ - if (pcm_register(dev, via, via_dxs_chnum + via_sgd_chnum, NWRCHANS)) - goto bad; + pcm_init(dev, via); for (i = 0; i < via_dxs_chnum; i++) pcm_addchan(dev, PCMDIR_PLAY, &via8233dxs_class, via); for (i = 0; i < via_sgd_chnum; i++) @@ -1366,7 +1365,8 @@ via_attach(device_t dev) (via_dxs_chnum > 0) ? "En" : "Dis", (via->dxs_src) ? "(SRC)" : "", via_dxs_chnum, via_sgd_chnum, NWRCHANS); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return (0); bad: diff --git a/sys/dev/sound/pci/via82c686.c b/sys/dev/sound/pci/via82c686.c index 44f846b684d7..40f3521a57a2 100644 --- a/sys/dev/sound/pci/via82c686.c +++ b/sys/dev/sound/pci/via82c686.c @@ -585,10 +585,11 @@ via_attach(device_t dev) device_get_nameunit(device_get_parent(dev))); /* Register */ - if (pcm_register(dev, via, 1, 1)) goto bad; + pcm_init(dev, via); pcm_addchan(dev, PCMDIR_PLAY, &viachan_class, via); pcm_addchan(dev, PCMDIR_REC, &viachan_class, via); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto bad; return 0; bad: if (via->codec) ac97_destroy(via->codec); diff --git a/sys/dev/sound/pci/vibes.c b/sys/dev/sound/pci/vibes.c index e587f0113b5d..7e908f188614 100644 --- a/sys/dev/sound/pci/vibes.c +++ b/sys/dev/sound/pci/vibes.c @@ -866,18 +866,17 @@ sv_attach(device_t dev) { if (bootverbose) printf("Sonicvibes: revision %d.\n", sc->rev); - if (pcm_register(dev, sc, 1, 1)) { - device_printf(dev, "sv_attach: pcm_register fail\n"); - goto fail; - } - + pcm_init(dev, sc); pcm_addchan(dev, PCMDIR_PLAY, &svpchan_class, sc); pcm_addchan(dev, PCMDIR_REC, &svrchan_class, sc); snprintf(status, SND_STATUSLEN, "port 0x%jx irq %jd on %s", rman_get_start(sc->enh_reg), rman_get_start(sc->irq), device_get_nameunit(device_get_parent(dev))); - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) { + device_printf(dev, "sv_attach: pcm_register fail\n"); + goto fail; + } DEB(printf("sv_attach: succeeded\n")); diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index e03bcab6d8fc..fc9d13593b9e 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -273,53 +273,6 @@ pcm_best_unit(int old) return (best); } -int -pcm_setstatus(device_t dev, char *str) -{ - struct snddev_info *d = device_get_softc(dev); - - /* should only be called once */ - if (d->flags & SD_F_REGISTERED) - return (EINVAL); - - PCM_BUSYASSERT(d); - - if (d->playcount == 0 || d->reccount == 0) - d->flags |= SD_F_SIMPLEX; - - if (d->playcount > 0 || d->reccount > 0) - d->flags |= SD_F_AUTOVCHAN; - - vchan_setmaxauto(d, snd_maxautovchans); - - strlcpy(d->status, str, SND_STATUSLEN); - sndstat_register(dev, d->status); - - PCM_LOCK(d); - - /* Done, we're ready.. */ - d->flags |= SD_F_REGISTERED; - - PCM_RELEASE(d); - - PCM_UNLOCK(d); - - /* - * Create all sysctls once SD_F_REGISTERED is set else - * tunable sysctls won't work: - */ - pcm_sysinit(dev); - - if (snd_unit_auto < 0) - snd_unit_auto = (snd_unit < 0) ? 1 : 0; - if (snd_unit < 0 || snd_unit_auto > 1) - snd_unit = device_get_unit(dev); - else if (snd_unit_auto == 1) - snd_unit = pcm_best_unit(snd_unit); - - return (dsp_make_dev(dev)); -} - uint32_t pcm_getflags(device_t dev) { @@ -464,9 +417,12 @@ pcm_sysinit(device_t dev) feeder_eq_initsys(dev); } -int -pcm_register(device_t dev, void *devinfo, int numplay __unused, - int numrec __unused) +/* + * Basic initialization so that drivers can use pcm_addchan() before + * pcm_register(). + */ +void +pcm_init(device_t dev, void *devinfo) { struct snddev_info *d; int i; @@ -503,8 +459,53 @@ pcm_register(device_t dev, void *devinfo, int numplay __unused, CHN_INIT(d, channels.pcm); CHN_INIT(d, channels.pcm.busy); CHN_INIT(d, channels.pcm.opened); +} - return (0); +int +pcm_register(device_t dev, char *str) +{ + struct snddev_info *d = device_get_softc(dev); + + /* should only be called once */ + if (d->flags & SD_F_REGISTERED) + return (EINVAL); + + PCM_BUSYASSERT(d); + + if (d->playcount == 0 || d->reccount == 0) + d->flags |= SD_F_SIMPLEX; + + if (d->playcount > 0 || d->reccount > 0) + d->flags |= SD_F_AUTOVCHAN; + + vchan_setmaxauto(d, snd_maxautovchans); + + strlcpy(d->status, str, SND_STATUSLEN); + sndstat_register(dev, d->status); + + PCM_LOCK(d); + + /* Done, we're ready.. */ + d->flags |= SD_F_REGISTERED; + + PCM_RELEASE(d); + + PCM_UNLOCK(d); + + /* + * Create all sysctls once SD_F_REGISTERED is set else + * tunable sysctls won't work: + */ + pcm_sysinit(dev); + + if (snd_unit_auto < 0) + snd_unit_auto = (snd_unit < 0) ? 1 : 0; + if (snd_unit < 0 || snd_unit_auto > 1) + snd_unit = device_get_unit(dev); + else if (snd_unit_auto == 1) + snd_unit = pcm_best_unit(snd_unit); + + return (dsp_make_dev(dev)); } int diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index c5013e76034a..1d09c48fc06b 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -245,9 +245,9 @@ int pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction, int pcm_addchan(device_t dev, int dir, kobj_class_t cls, void *devinfo); unsigned int pcm_getbuffersize(device_t dev, unsigned int minbufsz, unsigned int deflt, unsigned int maxbufsz); -int pcm_register(device_t dev, void *devinfo, int numplay, int numrec); +void pcm_init(device_t dev, void *devinfo); +int pcm_register(device_t dev, char *str); int pcm_unregister(device_t dev); -int pcm_setstatus(device_t dev, char *str); u_int32_t pcm_getflags(device_t dev); void pcm_setflags(device_t dev, u_int32_t val); void *pcm_getdevinfo(device_t dev); diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index 8238629a2a51..b1dbc81c6b6f 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -1209,14 +1209,9 @@ uaudio_attach_sub(device_t dev, kobj_class_t mixer_class, kobj_class_t chan_clas snprintf(status, sizeof(status), "on %s", device_get_nameunit(device_get_parent(dev))); - if (pcm_register(dev, sc, - (sc->sc_play_chan[i].num_alt > 0) ? 1 : 0, - (sc->sc_rec_chan[i].num_alt > 0) ? 1 : 0)) { - goto detach; - } + pcm_init(dev, sc); uaudio_pcm_setflags(dev, SD_F_MPSAFE); - sc->sc_child[i].pcm_registered = 1; if (sc->sc_play_chan[i].num_alt > 0) { sc->sc_play_chan[i].priv_sc = sc; @@ -1229,7 +1224,9 @@ uaudio_attach_sub(device_t dev, kobj_class_t mixer_class, kobj_class_t chan_clas pcm_addchan(dev, PCMDIR_REC, chan_class, &sc->sc_rec_chan[i]); } - pcm_setstatus(dev, status); + if (pcm_register(dev, status)) + goto detach; + sc->sc_child[i].pcm_registered = 1; uaudio_mixer_register_sysctl(sc, dev, i); From nobody Tue Nov 5 21:45:37 2024 X-Original-To: dev-commits-src-all@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 4Xjhhy1YQLz5bf6J; Tue, 05 Nov 2024 21:45:38 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xjhhy08hGz4fVH; Tue, 5 Nov 2024 21:45:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843138; 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=fZ9f0BIebm+g+gRD6N8qdscpCuK0zJH+BBzhefWpU+Y=; b=cX6b64vMuiXjSD3R9ah9vLb9q1uibb1TDks3e2XSmhPlVyzEu3QBQI4WvOuBkluPxi+2tm 8Mpm8XG45sBQ2cd0LHNHXPtN6kN2Z1o/RXbiooSU5TJXMSqRp8s4F3HJbS7BbBnyYalczN xx1Sir3zD58U/4JUqX+I0ItyJJbQBIg3oTqf83TU6cBXaACx0LsTffDJPcBIdRXxWxdaTl 58CrxqIdI5C5yDz7Rs8DB1+UhqHD67GpDXruLoEYCheXGlzDqABFbjwTm7EoIjsCxAFbps Rbk/atcKjEaWhtwRNyqeSNV4/DK8VeDHQUnXzfW8DMlK+Bcuh5mb3UKJ9OEMAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730843138; 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=fZ9f0BIebm+g+gRD6N8qdscpCuK0zJH+BBzhefWpU+Y=; b=TErwadPrPUMd421M4Sem724NHBFF3uxzZIcXV+salHkd4N8Dv7PvJAfQsH+itR41oM+Td4 T2xfMJABa3kVCQpUK2DQ4xHQTYUrpd65SRECGR/ZGEW2YUfySZ/8uWOwKwQyP/Ru/980Oo AuIDf5062O2yj4hJIWlHUPT9BrYLYRq2WFlNk+Bz8UPBGdQ4d5GfUCuRdQMq+LhoLiEJoe H/+SGNk0KgRnwGulyejzJcbH9wuL5y5FOLAVrD4umiPmMTdjbFXXreeArMNHm8lt0R6Pfw 3U/nFxdDAoBI0Ko8hcguRa1utunMS88zVIFSdZXqqegQD9CLLG/+f3OUunZHmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730843138; a=rsa-sha256; cv=none; b=p4/nQqKeWs2xlytIgTOXgiYBjOsiQgv16RwbIkwavU2135NOuuv+WnLmmMN0ITfoNrA+Zw XZHVOn5TMWdthV/kU4Q4ZDxWr5v9l43ST2PZYqEXNro7eQclddJp+a37UnWm7e6keWkT1I E1ooZafsv3avFST2QhXZFa6B0Ji7xsZ0zOvIgDPZBD37gxe5obpn1HPveZ4fDyDi1SLP49 J9ksJPv0LLX2SyogYp6M1lVOaDj1LEZisHS3jfejbQlgGqCtWB991h7KGllu5kugTPpqIW N/xcnCij0wnUAGsLlcPlqtQ4Oyty2qd0CUr/izP2Pkx/n6oVB5ulJYNEwD5JGw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xjhhx5BGczZW9; Tue, 5 Nov 2024 21:45:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A5LjbEn095640; Tue, 5 Nov 2024 21:45:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A5LjbO0095637; Tue, 5 Nov 2024 21:45:37 GMT (envelope-from git) Date: Tue, 5 Nov 2024 21:45:37 GMT Message-Id: <202411052145.4A5LjbO0095637@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 136c2b5a8e7c - stable/14 - sound: Remove unused pcm_channel->data fields List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 136c2b5a8e7cf88f712f93453b7168094d15429b Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=136c2b5a8e7cf88f712f93453b7168094d15429b commit 136c2b5a8e7cf88f712f93453b7168094d15429b Author: Christos Margiolis AuthorDate: 2024-11-03 19:03:53 +0000 Commit: Christos Margiolis CommitDate: 2024-11-05 21:45:07 +0000 sound: Remove unused pcm_channel->data fields No functional change intended. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: dev_submerge.ch Differential Revision: https://reviews.freebsd.org/D47360 (cherry picked from commit 829951f857b73faaf28cbfcf09e861668692d8a1) --- sys/dev/sound/pcm/channel.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/sound/pcm/channel.h b/sys/dev/sound/pcm/channel.h index 0788fbe42a5a..79a8d35b22f7 100644 --- a/sys/dev/sound/pcm/channel.h +++ b/sys/dev/sound/pcm/channel.h @@ -166,8 +166,6 @@ struct pcm_channel { int16_t volume[SND_VOL_C_MAX][SND_CHN_T_VOL_MAX]; int8_t muted[SND_VOL_C_MAX][SND_CHN_T_VOL_MAX]; - - void *data1, *data2; }; #define CHN_HEAD(x, y) &(x)->y.head From nobody Wed Nov 6 00:10:17 2024 X-Original-To: dev-commits-src-all@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 4XjlwH69QTz5bpL8; Wed, 06 Nov 2024 00:10:39 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjlwH4243z4pf7; Wed, 6 Nov 2024 00:10:39 +0000 (UTC) (envelope-from tijl@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730851839; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5B1LnKwCWhi74BexD0Gvf0EhXSVltz83aR4hzlyaVHs=; b=I1OmksH203pQCwNF65ftkZcEidglW29ciE3USvL/cPY4PgUVcp+w/Bz8Lgf/DpFwSKwVfu yPKYf1u1BpwolONxsXXz7odsW9/j42TG43cQTPtjXbZhSRmtv9tKa5ASvTPRuNifll3ecb W+IYOtiVYxpr177jpJ7At4BJGaIU4BLCJYQuwgAmYASEtAvji4rB2nNajAFC7xmoITtY4X GLcpCbpsKZ964pSuEEb2QKKrWDwRhGVxgp/wmzRhOcDGOXFCIQqycs34J+e+wAw/ZJ4zhE vs1FBPupoDtfEdmoABFnonB8ipR23P/iW+004a4+6OnT+um7SKnRp9Nz1Vh2mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730851839; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5B1LnKwCWhi74BexD0Gvf0EhXSVltz83aR4hzlyaVHs=; b=D5VptaZQRKbtm69kxwltug7Uthox9xvDC54DRV2kjoZMsQ3TrtcsyXWCNDV0GYHcAmN9hA SjIS4kZa3M8pjJnPNSy3pZSU3SufmvCoAUsD/85t8tNUdrdL6q7vcW6y4qcjX9esz9C0oG 0Y3S579MM2EKK5uwAXyyEY4cxqFbEVdZDdJ0gJCnERJKeiadRQPXvnCoQllrh99pe46Atl qzReJMPb3BtDRkWX3TRzEWqce9mlDKlo6ug6YVo3xnXVyTKboZaUrtO/rZ4GwjyKXFjxI7 5D6Ud9iRtjIQdftKBx+AlwcM6qlU/sWy81OwRvnvF4z9Qsz8lF+tlbJe94NPdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730851839; a=rsa-sha256; cv=none; b=W9ZnfRuP8Xa36nFv/iRAPP2JAqsB8z43UTZkhvttnBGZMyveU1d20yXGooCTYcf1pA8D6N SWuklz5aarrgokC7h5Y0+3u0OdeGfMUWqHapg4kUGz7KuUOc7o7ZU+DHOKIxERRkqimcMp iO5OR/l3mlYMvPIqBse2w4/0OLEff+Fe0iDsNtTk3QMIWXyH1NvgSH2I9gopiiS0S6WKSY trvAAM+1nHdOxgnfiF/3Q2GZkVfTt+ftUko3LjRaHL2LdczMdXv6QLZtiSrXVXc2eXTHrG t9wO+fogb4TLAbgtRd9lf1jnKjpQqUDN8ArTdvDJeADScbqEYSBgUC56jVsbrw== Received: from hal.tijl.coosemans.org (unknown [IPv6:2a02:a03f:994d:4700:4176:b282:c7bb:9a7c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: tijl) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XjlwG6BjXzLhs; Wed, 6 Nov 2024 00:10:38 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Date: Wed, 6 Nov 2024 01:10:17 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Mateusz Piotrowski <0mp@FreeBSD.org> Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: d2e7bb630b83 - main - rc.d/sendmail: Return non-zero if the daemon fails to start or is not running Message-ID: <20241106011017.68146ea9@hal.tijl.coosemans.org> In-Reply-To: <202410211921.49LJLj5t024751@gitrepo.freebsd.org> References: <202410211921.49LJLj5t024751@gitrepo.freebsd.org> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 21 Oct 2024 19:21:45 GMT Mateusz Piotrowski wrote: > The branch main has been updated by 0mp: > > URL: https://cgit.FreeBSD.org/src/commit/?id=d2e7bb630b83848a774d8213014a9e0747775019 > > commit d2e7bb630b83848a774d8213014a9e0747775019 > Author: Mateusz Piotrowski <0mp@FreeBSD.org> > AuthorDate: 2024-10-21 10:10:52 +0000 > Commit: Mateusz Piotrowski <0mp@FreeBSD.org> > CommitDate: 2024-10-21 19:20:36 +0000 > > rc.d/sendmail: Return non-zero if the daemon fails to start or is not running > > If you have a mail server that is running sendmail daemon > (sendmail_enable=YES) and sendmail queue runner (sendmail_msp_queue=YES) > and the sendmail daemon dies, /etc/rc.d/sendmail status does see the > daemon is not running but returns 0 as the exit code. This prevents > other programs (like puppet) from restarting sendmail to fix the issue. > > Make sure that the exit code is propagated towards the end of the script > if any of the sendmail services fail. > > This patch does not call exit directly but instead just sets the exit > status code by calling exit in a subshell. This way we do not exit the > current shell in case the service script is sourced (e.g., when > rc_fast_and_loose is active). > > PR: 223132 > MFC after: 2 weeks > Reported by: pirzyk > Discussed with: jilles, eugen > Reviewed by: christos, gshapiro (previous version), markj > Approved by: christos (mentor), markj (mentor) > Differential Revision: https://reviews.freebsd.org/D46862 > Co-authored-by: Jim Pirzyk > --- > libexec/rc/rc.d/sendmail | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/libexec/rc/rc.d/sendmail b/libexec/rc/rc.d/sendmail > index af84c6d6b548..5a780e5b15a1 100755 > --- a/libexec/rc/rc.d/sendmail > +++ b/libexec/rc/rc.d/sendmail > @@ -206,6 +206,7 @@ sendmail_precmd() > } > > run_rc_command "$1" > +_ret=$? > > required_files= > > @@ -214,6 +215,7 @@ if checkyesno sendmail_submit_enable; then > rcvar="sendmail_submit_enable" > _rc_restart_done=false > run_rc_command "$1" > + _ret=$(( _ret > $? ? _ret : $? )) > fi > > if checkyesno sendmail_outbound_enable; then > @@ -221,6 +223,7 @@ if checkyesno sendmail_outbound_enable; then > rcvar="sendmail_outbound_enable" > _rc_restart_done=false > run_rc_command "$1" > + _ret=$(( _ret > $? ? _ret : $? )) > fi > > name="sendmail_msp_queue" > @@ -229,3 +232,6 @@ pidfile="${sendmail_msp_queue_pidfile:-/var/spool/clientmqueue/sm-client.pid}" > required_files="/etc/mail/submit.cf" > _rc_restart_done=false > run_rc_command "$1" > +_ret=$(( _ret > $? ? _ret : $? )) > + > +(exit "$_ret") Running "make stop" in /etc/mail now produces an error with the following config in /etc/rc.conf: sendmail_enable="NO" sendmail_msp_queue_enable="YES" sendmail_outbound_enable="YES" sendmail_submit_enable="YES" From nobody Wed Nov 6 00:23:47 2024 X-Original-To: dev-commits-src-all@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 4XjmCR6GjNz5bqLs; Wed, 06 Nov 2024 00:23:47 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjmCR5jX3z4r74; Wed, 6 Nov 2024 00:23:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730852627; 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=87LLwNuDCOXWl02YmQKNfv0UcqFhC0Em5oxad5CKGGQ=; b=abNLKAJXxtT9FFuEo9fjQ7MgL84k3mia2iRlZteTMTyEnCVPjzsJDDKYqpJQLMX/Xf2xKs X0TTI6zZ8H+xW2scS2YqPuf+O0Z6dnnSufL+BaCL60GOMvvo1Zlm8bZVrdHvsln6Sb4+1y 1fFF4sO+87WfH0bDaHQnxWOiL4BZJCRo/6TNyRZjlVGlQQB1NVjY7eZz4zNGgFXgNSZvQz RMP0z9K7Ku18t9sbzG38cQe+NqMuPFB7tdwuuSJfnneC5Ut/6VyZSD4LtCNJYusVg0Mt9+ njuj5zJ9yxGcxQSswYkgzX/XEFJ16fqfBi5aQwd8QPFTNQ5vjT3Hmf+CMnT8jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730852627; 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=87LLwNuDCOXWl02YmQKNfv0UcqFhC0Em5oxad5CKGGQ=; b=kvmJGhmx4LH7+Kltf+JsX0Nwq3i18dn/zPVIAEr2u994o0lO7eH2wVPfwN4u2v0cePEX/1 64hN8v5a2k1w7+jycHIj48F+WF4Tq4Uavbz4HzLgK85k2tRqKMlSnBJGfhwgRyX97uM+LW Wc+9lmFjkncIZVMh0c9G9YGosh6pxLOM2ea+PVS/KeY8dxw4BfOcJOr15djndtNMXqgVbR 8Th3uuXLZdry269P9l3bKYAgqBiGUHO22uctgtPlnHXnWwvbd+qSH9oSarY3xCCygwN+Zw i3PZjOqXDZLWNRAILxT2o752SOH6LpVH6IqcZ2eIJf3hJeK34K8tvJy7anGKBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730852627; a=rsa-sha256; cv=none; b=mfPztCNArMc2MLqC9u2u1kg40XQHTo5hVqfRm2fLEZt3EhSN6UoTDiTn9ewsSgFj68/Eoy 5fgstG9umi/rBUgUOo3K1XbrLRy8yURzoejUCXgt86WthNtY3bRVkm0erMCksHVlbGBD8J KhBVquOJ02PtvrH6GBghuVPcxXumRBbr/nJnYsLxuYXUHsKtp9biNZb8/YnAcsjsgZudHX nsHm6hwjUNFZqiFcTCjtsZ3gDUhqT05Rz+Br5G4Jk9tELAnSrRMK+0ctYwHr0HDZqk9RF/ dX29VnKkw+o8H4wwipQ0hi3fJpetSkFvCCi2DAn6HHUUp1oGF5Win3A8N1xd0w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjmCR50kmzfjZ; Wed, 6 Nov 2024 00:23:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A60Nlri090963; Wed, 6 Nov 2024 00:23:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A60Nlij090960; Wed, 6 Nov 2024 00:23:47 GMT (envelope-from git) Date: Wed, 6 Nov 2024 00:23:47 GMT Message-Id: <202411060023.4A60Nlij090960@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: f0c07fe3d000 - main - device_pager: rename the un_pager.devp.dev field to handle List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f0c07fe3d0007a4499f81583a99598cd0a74d45b Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f0c07fe3d0007a4499f81583a99598cd0a74d45b commit f0c07fe3d0007a4499f81583a99598cd0a74d45b Author: Konstantin Belousov AuthorDate: 2024-11-04 22:10:06 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-06 00:10:59 +0000 device_pager: rename the un_pager.devp.dev field to handle because it is not neccessary struct cdev *. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47443 --- sys/kern/kern_proc.c | 2 +- sys/vm/device_pager.c | 20 ++++++++++---------- sys/vm/vm_object.c | 2 +- sys/vm/vm_object.h | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index f3ecaf4e2547..0d5b9a93d704 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -2719,7 +2719,7 @@ kern_proc_vmmap_out(struct proc *p, struct sbuf *sb, ssize_t maxlen, int flags) kve->kve_shadow_count = obj->shadow_count; if (obj->type == OBJT_DEVICE || obj->type == OBJT_MGTDEVICE) { - cdev = obj->un_pager.devp.dev; + cdev = obj->un_pager.devp.handle; if (cdev != NULL) { csw = dev_refthread(cdev, &ref); if (csw != NULL) { diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c index a5be05efc6d9..a5fffbf629bd 100644 --- a/sys/vm/device_pager.c +++ b/sys/vm/device_pager.c @@ -118,8 +118,8 @@ cdev_pager_lookup(void *handle) again: mtx_lock(&dev_pager_mtx); object = vm_pager_object_lookup(&dev_pager_object_list, handle); - if (object != NULL && object->un_pager.devp.dev == NULL) { - msleep(&object->un_pager.devp.dev, &dev_pager_mtx, + if (object != NULL && object->un_pager.devp.handle == NULL) { + msleep(&object->un_pager.devp.handle, &dev_pager_mtx, PVM | PDROP, "cdplkp", 0); vm_object_deallocate(object); goto again; @@ -183,8 +183,8 @@ again: object1->type = OBJT_DEAD; vm_object_deallocate(object1); object1 = NULL; - if (object->un_pager.devp.dev == NULL) { - msleep(&object->un_pager.devp.dev, + if (object->un_pager.devp.handle == NULL) { + msleep(&object->un_pager.devp.handle, &dev_pager_mtx, PVM | PDROP, "cdplkp", 0); vm_object_deallocate(object); goto again; @@ -218,7 +218,7 @@ again: mtx_lock(&dev_pager_mtx); TAILQ_REMOVE(&dev_pager_object_list, object, pager_object_list); - wakeup(&object->un_pager.devp.dev); + wakeup(&object->un_pager.devp.handle); mtx_unlock(&dev_pager_mtx); object->type = OBJT_DEAD; vm_object_deallocate(object); @@ -228,14 +228,14 @@ again: mtx_lock(&dev_pager_mtx); object->flags |= OBJ_COLORED; object->pg_color = color; - object->un_pager.devp.dev = handle; - wakeup(&object->un_pager.devp.dev); + object->un_pager.devp.handle = handle; + wakeup(&object->un_pager.devp.handle); } } MPASS(object1 == NULL); } else { - if (object->un_pager.devp.dev == NULL) { - msleep(&object->un_pager.devp.dev, + if (object->un_pager.devp.handle == NULL) { + msleep(&object->un_pager.devp.handle, &dev_pager_mtx, PVM | PDROP, "cdplkp", 0); vm_object_deallocate(object); goto again; @@ -301,7 +301,7 @@ dev_pager_dealloc(vm_object_t object) vm_page_t m; VM_OBJECT_WUNLOCK(object); - object->un_pager.devp.ops->cdev_pg_dtor(object->un_pager.devp.dev); + object->un_pager.devp.ops->cdev_pg_dtor(object->un_pager.devp.handle); mtx_lock(&dev_pager_mtx); TAILQ_REMOVE(&dev_pager_object_list, object, pager_object_list); diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 996f7557ea9b..6d29ddf71f19 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -2516,7 +2516,7 @@ vm_object_list_handler(struct sysctl_req *req, bool swap_only) kvo->kvo_swapped = sp > UINT32_MAX ? UINT32_MAX : sp; } if (obj->type == OBJT_DEVICE || obj->type == OBJT_MGTDEVICE) { - cdev = obj->un_pager.devp.dev; + cdev = obj->un_pager.devp.handle; if (cdev != NULL) { csw = dev_refthread(cdev, &ref); if (csw != NULL) { diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index c7f0dd0943ba..596f67b46e6f 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -137,7 +137,7 @@ struct vm_object { struct { TAILQ_HEAD(, vm_page) devp_pglist; const struct cdev_pager_ops *ops; - struct cdev *dev; + void *handle; } devp; /* From nobody Wed Nov 6 00:23:48 2024 X-Original-To: dev-commits-src-all@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 4XjmCS6RZzz5bqLv; Wed, 06 Nov 2024 00:23:48 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XjmCS5ljzz4qj0; Wed, 6 Nov 2024 00:23:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730852628; 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=KL+nuAv1/CoBiyqvJPhCcs5V7tnzjSPrtSVcPyUfFu4=; b=Vvwc/p1DR7CLNsYtRKilp305bKeqlWH3bW4UEqPtzzx0naiMRG9w/50Bi/1WHYhFXk7WLy tesD+1R9kXivlxBQSQYlWkEMdcSZBRMH2ZWSgaANhBaZNUCoBcgE1vkDxDEi+wOgkJpRlb Uz+cO/lCdkWJi/m89kXnw6LGHp0/4xScKhdF94sjVy0MuJqt+oX6ZQ61P+vGe7lJkY6NR+ cyzU6D/poh4QNtSc9IShAhxg9gzk7JroWQu47qILZKgwqcc3teDcitmzVgNEZSiwkLjnCB jxyfgv8nbDhd0PKDmaXojIFAjiwCz/aqoxsGhGEWiPNRejajM5kf7y1riPy91g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730852628; 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=KL+nuAv1/CoBiyqvJPhCcs5V7tnzjSPrtSVcPyUfFu4=; b=buS8FBoDOR8coHpLE/1w99lJrRsEzq+mTxv+FDEW+TNDLYew8qYTf4iQW/W7GHTT0X+BwQ kQ309JqpaV1sI7JacbI0BJuaCVho5tBJq0uN2Mtu8sXgHPi3xaidPEC/kukcniJm5Esg6E gP9PLqQOYJP/O8+TPRnGBArfwjefacvbZg6rDB4LKZjP13ickDJtLKvBxcC+y4FJU+K8eC DAgtMLQ3gvDtg4t2lW8NOdFG//dbX7uxACpLX87SzUGX2mgdCRDmbuqErv+GNyfTXG807N 27PfiGZ9ST0EJPVbfY6c75+0Wc+OztChYwdud5D32eB6jQqTIGpFcismAOdacA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730852628; a=rsa-sha256; cv=none; b=xq9kGP1Sxr2NIgQR6PGeT0VtN0JqpJkUNaVxm//O7M0qpL7WYrWn5dPMEJasrggZVPtmcL vcquI3hg68Z9oYzZO0q/ombDWYrf6IW3Rz2rnq/YxmnMBNjIvRlNk2PdtkXzZ2L+m9y2bP fJrvo8Qsv9DRvCuVdMRScMut9TWX65m5A/gSGAJWspgSenrzPx+r4yb2j8jWuPIMoBU/9n CYbrw+9LVs7gHeNOBVaSkDZVsNCDIbUCVDyto2agCFtktr2t9l/zaRZ21HhAafQogRLSnK pUpqvf3gOEFZZimDIIdTI0dHZ3uIvbuHmOm5UGEI5aowCbfa/dxNcHlIX51hCA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XjmCS5LNgzfjb; Wed, 6 Nov 2024 00:23:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A60Nmx2091017; Wed, 6 Nov 2024 00:23:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A60Nmpq091014; Wed, 6 Nov 2024 00:23:48 GMT (envelope-from git) Date: Wed, 6 Nov 2024 00:23:48 GMT Message-Id: <202411060023.4A60Nmpq091014@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 580340dbdaaf - main - vm_object: do not assume that un_pager.devp.dev is cdev List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 580340dbdaaf372867e9ed3dd257430982753e5e Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=580340dbdaaf372867e9ed3dd257430982753e5e commit 580340dbdaaf372867e9ed3dd257430982753e5e Author: Konstantin Belousov AuthorDate: 2024-11-04 21:54:30 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-06 00:11:00 +0000 vm_object: do not assume that un_pager.devp.dev is cdev It is subtype-specific handle. Mark OBJT_DEVICE that do fill cdev into the handle, with a new object flag OBJ_CDEVH. PR: 282533 Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47443 --- sys/kern/kern_proc.c | 5 +++-- sys/vm/vm_mmap.c | 3 +++ sys/vm/vm_object.c | 3 ++- sys/vm/vm_object.h | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 0d5b9a93d704..4cd13234a10b 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -2717,8 +2717,9 @@ kern_proc_vmmap_out(struct proc *p, struct sbuf *sb, ssize_t maxlen, int flags) kve->kve_ref_count = obj->ref_count; kve->kve_shadow_count = obj->shadow_count; - if (obj->type == OBJT_DEVICE || - obj->type == OBJT_MGTDEVICE) { + if ((obj->type == OBJT_DEVICE || + obj->type == OBJT_MGTDEVICE) && + (obj->flags & OBJ_CDEVH) != 0) { cdev = obj->un_pager.devp.handle; if (cdev != NULL) { csw = dev_refthread(cdev, &ref); diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 4f709b1b74e1..028175b88b4f 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -1407,6 +1407,9 @@ vm_mmap_cdev(struct thread *td, vm_size_t objsize, vm_prot_t prot, td->td_ucred); if (obj == NULL) return (EINVAL); + VM_OBJECT_WLOCK(obj); + vm_object_set_flag(obj, OBJ_CDEVH); + VM_OBJECT_WUNLOCK(obj); *objp = obj; *flagsp = flags; return (0); diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 6d29ddf71f19..e6324647e29e 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -2515,7 +2515,8 @@ vm_object_list_handler(struct sysctl_req *req, bool swap_only) sp = swap_pager_swapped_pages(obj); kvo->kvo_swapped = sp > UINT32_MAX ? UINT32_MAX : sp; } - if (obj->type == OBJT_DEVICE || obj->type == OBJT_MGTDEVICE) { + if ((obj->type == OBJT_DEVICE || obj->type == OBJT_MGTDEVICE) && + (obj->flags & OBJ_CDEVH) != 0) { cdev = obj->un_pager.devp.handle; if (cdev != NULL) { csw = dev_refthread(cdev, &ref); diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index 596f67b46e6f..fc39041d02d6 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -204,6 +204,7 @@ struct vm_object { #define OBJ_PAGERPRIV2 0x00008000 /* Pager private */ #define OBJ_SYSVSHM 0x00010000 /* SysV SHM */ #define OBJ_POSIXSHM 0x00020000 /* Posix SHM */ +#define OBJ_CDEVH 0x00040000 /* OBJT_DEVICE handle is cdev */ /* * Helpers to perform conversion between vm_object page indexes and offsets. From nobody Wed Nov 6 08:36:17 2024 X-Original-To: dev-commits-src-all@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 4Xjz7j2yR8z5cJc0; Wed, 06 Nov 2024 08:36:17 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xjz7j2Fkfz4TDl; Wed, 6 Nov 2024 08:36:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730882177; 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=KlpjzgPbIL3ZqC/jNmRhJ3i6sNVX7/1/gxauDj2FTs0=; b=u++/xlG84nejFZmR/l8ycf6bxrTIYhLemD0tJ93vYGrUQXsvW8Fj+ES8VGmxrE7gMnFFJ/ nZqpo6f0CIrKPDCsCkv0PDWhM/PeFZIqQc8tandd5m0EsAqqprdQeCZ1jlgWimLVVtESfr 8A7QGXIBMO2WJmcJcM9uwW1nEOKCKNHSEOf604XLamK3mD+UhpygEuQiebDIRutKHbJ1R/ yMOfYODOC6H5AnkXB4+evit0mKFO3ZtpuJvBFkYGHmYrJL1DDo5ykdFGM4pufypkLXddUc IbgCy4wy1be1NHT76Uttbjuvwn0Y8tvDEUpsCXk6zGDN1Gp2nC6+/64kWRQE4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730882177; 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=KlpjzgPbIL3ZqC/jNmRhJ3i6sNVX7/1/gxauDj2FTs0=; b=jYW8sjre1QpTr0NQRNpRevC1A2z/CMYwjacax/1MtcaA+mrJMJCAlK2nIxgXUTNcptWL7r FcepntG899NbQjjVnQUeK2VzGg85Gulwv1jhTPzTtReCrCLFGDAj8g0xdl7z/PQm5i/9s2 bTndyJe0nh2oaXsS6RBgCzpqC3BKG/rX4hcBAvV3BtD2oIiNqrzzTzuIwHML/Fjg7M0xmL wozBxUZ2vIGPbD5cjrzVTZo2lISiskYn7j5EfakqZ+TkoKMMygacYVazlJNV4saj3xVR0g J89KhsAMIVuCSbBId/cqPkwGLzA8LxGemDZOeUw3QJS5qpdyco3/fRBgavw3yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730882177; a=rsa-sha256; cv=none; b=iLGZh025ftmCHawXFEyEwwRfidnH5hLTWxz0RlDxdvXEQxHf+8j+a4MCH3C2N51DmVX/ka Fiz2wt2ywwFA6zxsnD2bhWaoEf/6AWza3iFXd+Ad2CQViSd0sXyLyourVfNLDYoQ1f+1e0 7s58hO4ASeOg24gMu8t+z6a5lxnZjyZwMjhGkI7Th3QG5+HLNEn3AuCGC0Ws9K6f+cSkfN PSM6qNbKywHQVbhjc8LT9nSGJ+5Sw1+X9PpAXt8cymYFAGolBUh8cL2dLCOeI7YCN/I3aA yWd/QjpK3lBo5WfBcaaIXZwAkf7lY8LLWMrPO4XnEyNx37qk7jbXOkktigKObQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xjz7j1s39ztmV; Wed, 6 Nov 2024 08:36:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A68aH4Z098397; Wed, 6 Nov 2024 08:36:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A68aHbY098394; Wed, 6 Nov 2024 08:36:17 GMT (envelope-from git) Date: Wed, 6 Nov 2024 08:36:17 GMT Message-Id: <202411060836.4A68aHbY098394@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: 6c682f5c3860 - stable/14 - nuageinit: add support for OpenStack network config List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 6c682f5c3860a49cd0440599fffe1106c00ff830 Auto-Submitted: auto-generated The branch stable/14 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=6c682f5c3860a49cd0440599fffe1106c00ff830 commit 6c682f5c3860a49cd0440599fffe1106c00ff830 Author: Baptiste Daroussin AuthorDate: 2024-10-29 13:17:39 +0000 Commit: Baptiste Daroussin CommitDate: 2024-11-06 08:36:12 +0000 nuageinit: add support for OpenStack network config Add naive support for openstack network config. if no config driver have been found, try to detect that we are running a VM on openstack via the smbios information, use the first iface available and temporary activate dhcp on it, to be able to fetch the necessary informations for cloudinit. While here make the rc script execute after devmatch, some ethernet device might be attached via devmatch and may be needed for cloudinit. Tested on OVHCloud Public Cloud. MFC after: 3 weeks Sponsored by: OVHCloud (cherry picked from commit 2775b9b0bcc278dd4183b57784953c26a3fcdc89) --- libexec/rc/rc.d/nuageinit | 45 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/libexec/rc/rc.d/nuageinit b/libexec/rc/rc.d/nuageinit index a44761ea1d9e..54e5b1fbec07 100755 --- a/libexec/rc/rc.d/nuageinit +++ b/libexec/rc/rc.d/nuageinit @@ -2,7 +2,7 @@ # # PROVIDE: nuageinit -# REQUIRE: mountcritlocal zfs +# REQUIRE: mountcritlocal zfs devmatch # BEFORE: NETWORKING # KEYWORD: firstboot @@ -14,6 +14,18 @@ start_cmd="nuageinit_start" stop_cmd=":" rcvar="nuageinit_enable" +fetch_openstack() +{ + cd /media/nuageinit/openstack/latest + for file in meta_data.json network_data.json user_data; do + fetch http://169.254.169.254/openstack/latest/$file || : + done + if [ -f user_data ]; then + chmod 755 user_data + fi + cd - +} + nuageinit_start() { local citype @@ -34,13 +46,28 @@ nuageinit_start() fi unset drive done - if [ -z "$drive" ]; then - # try to detect networked based instance - err 1 "Impossible to find a cloud init provider" + if [ -n "$drive" ]; then + mkdir -p /media/nuageinit + fs=$(fstyp $drive 2> /dev/null) + mount -t $fs $drive /media/nuageinit + else + product=$(kenv smbios.system.product) + case "$product" in + OpenStack*) + mkdir -p /media/nuageinit/openstack/latest + ifaces=$(ifconfig -l ether) + set -- $ifaces + dhclient -p /tmp/ephemeraldhcp.pid $1 + fetch_openstack + pkill -F /tmp/ephemeraldhcp.pid + citype=config-2 + ;; + *) + # try to detect networked based instance + err 1 "Impossible to find a cloud init provider" + ;; + esac fi - mkdir -p /media/nuageinit - fs=$(fstyp $drive 2> /dev/null) - mount -t $fs $drive /media/nuageinit # according to the specification, the content is either # in the openstack or ec2 directory case "$citype" in @@ -59,8 +86,10 @@ nuageinit_start() esac if [ -n "$drive" ]; then umount /media/nuageinit + rmdir /media/nuageinit + else + rm -rf /media/nuageinit fi - rmdir /media/nuageinit } load_rc_config $name From nobody Wed Nov 6 10:10:37 2024 X-Original-To: dev-commits-src-all@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 4Xk1DY72n7z5cP5Z; Wed, 06 Nov 2024 10:10:37 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk1DY6VjPz4cLg; Wed, 6 Nov 2024 10:10:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730887837; 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=I4/Z8vdXgoYKnLReBxzqeegX6QMuMc2Og8KdQ3qYaSk=; b=o4juUT5tPUhLeTGd2Y1I9tuYarBvCSY6R+Pu/b3q3iplU3Y52kXGbxayn0eDXX5keU+cOA ErRJKU84EdZUlCriotpwtBIrxixiiLXYqU2zLJRWJYQakXpE36bE/WY0PHTEp+j+FO9FC8 acNVYa5AaYJba3YtBdBbbo8PFhvopCnrPc5ENfYhojDVj5KWPPPEiwbnq+kPyhRndx/d5a LDwEjiaxWnyvUdjeOGoanRweqAO4Y4UXWRySrZ1d0AOEd4Nxa1g83tBru1gtROzXJt/ikL TejCf3oeSsBX0neK/7BozBHFwbpClLdOi/93DDkiGhBIEhRsZNTJNiNSrpyzrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730887837; 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=I4/Z8vdXgoYKnLReBxzqeegX6QMuMc2Og8KdQ3qYaSk=; b=cOzUwp3zG87NTT+Nj9VdmSovOGHHYXq5aE4GE38Td1TWO2B2rjW+u81xCdXFHPMZc23sRT 5pfQsB8fsBSndNREjKissMY4mqdj0x/l54pzMZCOyqPlxU6rZDHi1lrL+ZO7BLzwongD3G zFWRpu4dUFiqP5F5nv4c76/NQ6nx35ATu4PMMIZ28MBPmwvVgHyVpwWuRhmglTCmYb6PvS WzUcYyEs1zoML3wD2xfuP4ag8UD9FY9XS0o9jlFFQSb/ztq+3+2I6B7XspcCWZ3fBNkaVp Dkgk3A24krACxxv9TBwMdF4yWB2lHXELvMbQbBWPOgUIg1A573PJrAavxdZ73Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730887837; a=rsa-sha256; cv=none; b=WELyAhf0TcgFnH4iOw77l1IJlMu51X8nwwKkTPlctCRe95DfxfkmLsgD2HoJjhHTIO4PfE wXf/XmKUSpWBGQsos3Qur4zIYXrGah/fh/M7bUp31PlhrVoXRwkQR4bU+lQD5njePztRog 5sCHQ4R9upyfvSZS/GW1iOkPix3CLMuULH+NUJo3jGyA+wHzyH8PWSQphg4iukdsZTyuY5 iLPxbHPeWMvFUroFpDiHy3SMe6fk3EB17nSfryZ1fdm2hbFdlVLcJqPDYJPS5Wcuuwwtpo 4fPLUn/O3TS0CNYhs2E3Es4QGCKCjNCjt7BolU5ujmDAoauMwQonQRZvTR4fkA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk1DY66MLzwdt; Wed, 6 Nov 2024 10:10:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6AAbKY075152; Wed, 6 Nov 2024 10:10:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6AAbd7075149; Wed, 6 Nov 2024 10:10:37 GMT (envelope-from git) Date: Wed, 6 Nov 2024 10:10:37 GMT Message-Id: <202411061010.4A6AAbd7075149@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 107704217b57 - stable/14 - sctp: editorial cleanup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 107704217b5733a2cae4e0fa1940f7ac66780f84 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=107704217b5733a2cae4e0fa1940f7ac66780f84 commit 107704217b5733a2cae4e0fa1940f7ac66780f84 Author: Michael Tuexen AuthorDate: 2024-11-02 15:00:59 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 09:09:04 +0000 sctp: editorial cleanup Improve consistency, no functional change intended. (cherry picked from commit d839cf2fbb47c52d5153fb366c51bd6f6a3dd0fd) --- sys/netinet/sctp_pcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 0030c5385390..b7b531ab33ab 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -312,7 +312,7 @@ sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, } } - sctp_ifap->localifa_flags &= (~SCTP_ADDR_VALID); + sctp_ifap->localifa_flags &= ~SCTP_ADDR_VALID; sctp_ifap->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE; out: SCTP_IPI_ADDR_RUNLOCK(); @@ -354,7 +354,7 @@ sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, } } - sctp_ifap->localifa_flags &= (~SCTP_ADDR_IFA_UNUSEABLE); + sctp_ifap->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE; sctp_ifap->localifa_flags |= SCTP_ADDR_VALID; out: SCTP_IPI_ADDR_RUNLOCK(); From nobody Wed Nov 6 10:11:09 2024 X-Original-To: dev-commits-src-all@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 4Xk1F920xdz5cP3Z; Wed, 06 Nov 2024 10:11:09 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk1F91Swyz4cQv; Wed, 6 Nov 2024 10:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730887869; 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=aP35qmTVlLVBZPunjNIb19/MtByX42RIjLPuHR80mRE=; b=ohEoR2kdQqdcCo2j9JYwm+uakb7STjLpaTRJv4Mj8uZxsrTSiBz/hhIta1tw3mcAt34W+j lfL9Tn7d5474/LEFHaxWhV3g+KyIoBg7Dy2A321taIdFLf9ctbGOmu2RyE5bPszviFIG3B IkrPqC8uB0JByua6KoTKNGANHo2lj7yoS/yOv9YrdZegXuVcVAdJmQZ4pW3A49xmB3T6Od bQInEdU4rWSDxXDF6PUTYNMAsAuX/0X7kXBUwfz+DMbLmtzqnxBljAwp4YOFFeQ0sKHuTp /Njsd37Q7DGFsdkilDCUcgNq2Ug681x/NBxpSzrZhJqcjPb+44JsT1lAS6lh1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730887869; 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=aP35qmTVlLVBZPunjNIb19/MtByX42RIjLPuHR80mRE=; b=Q/OKxIrMcBmPRG//Z59u4a73xquCDyXwhJ3KqGdthyRVEsxkPriXLXRIWXr4FQaML8zQFG Ay7qV9nfi4tA5AUt6fZ935LxuRLjoDarwyerNWQfqaryjw8ss8Usvp6mCSKSq69l7sIPiQ uAkIZH/XRPMtccHNj2rRBdKSkt8RXBEkJcUY6qX1VZGURPLM5ps9eyjsXL35U+kV6uYL71 75DHooJXs77eoRCIVeB3P+S5N0g5NWfbZ4bRm5wq+d23T+YvQJq6rlp6on6lOIkiyzW9Rd /0ltJTmTZCkA1YAg5ZdmFNvpjxxWYnOWJ6QnGRAmp3G27dXYHM6gCLl21wSYSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730887869; a=rsa-sha256; cv=none; b=IdINSVAUglMlI8QlDZwzDTGfjX3EjwwTPpmJ+ev0anzCrgHt8i2UJfv1/QNFxG4M76bQI+ m4duZhtymbPU8FA6G1UpDo1fVCABTCbg65niz7dA83fCbQIKe4HK28OTqctoSwhH285oIs NsLQ6K8w0O7+msggwn/26wz9kPyVzc/6Tb56XSrEZvSiIZidCeWXbYAgb9XuQcnEZRYfGr BJO2GLuC0icEvCRNKu1fFYO+L85P6lr+KJQsVMSgha4M6yZPqy82pZ2N0dY1DbK2g0cX5E nD8P9B6X+2RUu1fsLA/+9Xps5S6v0ezp5V01m32pvRnlEP9OOJbzKxKy+UlTpg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk1F90rtNzxTx; Wed, 6 Nov 2024 10:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6AB9U1075477; Wed, 6 Nov 2024 10:11:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6AB9DK075474; Wed, 6 Nov 2024 10:11:09 GMT (envelope-from git) Date: Wed, 6 Nov 2024 10:11:09 GMT Message-Id: <202411061011.4A6AB9DK075474@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 7fe14d4bb8c0 - stable/14 - sctp: don't consider the interface name when removing an address List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7fe14d4bb8c01c9d5f25cd476a3354053569a221 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=7fe14d4bb8c01c9d5f25cd476a3354053569a221 commit 7fe14d4bb8c01c9d5f25cd476a3354053569a221 Author: Michael Tuexen AuthorDate: 2024-11-02 15:33:02 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 09:10:56 +0000 sctp: don't consider the interface name when removing an address Checking the interface name can not be done consistently, so don't do it. (cherry picked from commit bf11fdaf0d095fecca61fa8b457d06e27fae5946) --- sys/netinet/sctp_bsd_addr.c | 3 +-- sys/netinet/sctp_pcb.c | 27 +++------------------------ sys/netinet/sctp_pcb.h | 2 +- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/sys/netinet/sctp_bsd_addr.c b/sys/netinet/sctp_bsd_addr.c index a91b0dde5967..3c6952ab6f3c 100644 --- a/sys/netinet/sctp_bsd_addr.c +++ b/sys/netinet/sctp_bsd_addr.c @@ -338,8 +338,7 @@ sctp_addr_change(struct ifaddr *ifa, int cmd) (void *)ifa, ifa->ifa_addr, ifa_flags, 1); } else { sctp_del_addr_from_vrf(SCTP_DEFAULT_VRFID, ifa->ifa_addr, - ifa->ifa_ifp->if_index, - ifa->ifa_ifp->if_xname); + ifa->ifa_ifp->if_index); /* * We don't bump refcount here so when it completes the diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index b7b531ab33ab..cd5479c11e6a 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -662,8 +662,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, */ SCTPDBG(SCTP_DEBUG_PCB4, "Lost an address change?\n"); /* Opps, must decrement the count */ - sctp_del_addr_from_vrf(vrf_id, addr, ifn_index, - if_name); + sctp_del_addr_from_vrf(vrf_id, addr, ifn_index); return (NULL); } SCTP_INCR_LADDR_COUNT(); @@ -688,7 +687,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, void sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, - uint32_t ifn_index, const char *if_name) + uint32_t ifn_index) { struct sctp_vrf *vrf; struct sctp_ifa *sctp_ifap; @@ -709,27 +708,7 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap != NULL) { /* Validate the delete */ if (sctp_ifap->ifn_p) { - bool valid = false; - - /*- - * The name has priority over the ifn_index - * if its given. - */ - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) == 0) { - /* They match its a correct delete */ - valid = true; - } - } - if (!valid) { - /* last ditch check ifn_index */ - if (ifn_index == sctp_ifap->ifn_p->ifn_index) { - valid = true; - } - } - if (!valid) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s does not match addresses\n", - ifn_index, ((if_name == NULL) ? "NULL" : if_name)); + if (ifn_index != sctp_ifap->ifn_p->ifn_index) { SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s - ignoring delete\n", sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_name); SCTP_IPI_ADDR_WUNLOCK(); diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 86c244c71544..1249c2233c63 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -510,7 +510,7 @@ void sctp_free_ifa(struct sctp_ifa *sctp_ifap); void sctp_del_addr_from_vrf(uint32_t vrfid, struct sockaddr *addr, - uint32_t ifn_index, const char *if_name); + uint32_t ifn_index); struct sctp_nets *sctp_findnet(struct sctp_tcb *, struct sockaddr *); From nobody Wed Nov 6 10:12:02 2024 X-Original-To: dev-commits-src-all@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 4Xk1GB6NbCz5cPW3; Wed, 06 Nov 2024 10:12:02 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk1GB5wnKz4cdT; Wed, 6 Nov 2024 10:12:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730887922; 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=u7Uo2xAU8UcgI03hN3N7FWpcyHsQ3tLKrj7ATSm1mqg=; b=csIBMi2NqcKH4zX4GIi+5+38eYZGhxsOMquOjVCfBlp4BfGLwMoECuW0wspGoWVRp1/FpG 2n0TDvxHEMtSqJI8ty4S5SUwhgviMitAzRdz9FaEd5ehqNAy7g9L8ixjx5JjGYALb9TDbh 8QJNfs9XpSL5MomDvRudlSabkmSxojU5o1u1OTlDBGH5bFt0oDBk18jMB9KclqCMkNzlKA RWZdvWPRrNal1ZwJU8d1OWwTBlO4ZY8uw8yJUCCOsOBnOXV7jRiEvWVksxMPQPKXfE2R2X xjfvNTRuQzVSmIHsmVHiwEyznggO3xwdhhK52YW6oHC1Hsw4hN5rhJhHirCxVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730887922; 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=u7Uo2xAU8UcgI03hN3N7FWpcyHsQ3tLKrj7ATSm1mqg=; b=gdloGEWXJP2o1ks4STjf/KeusOEFkoPCnwpf8A0NwI2TCIF/ch9Ba/YbdoPfmkjZlTLiAk 0ZvEeG/nbR5tD/f0xe6LKYKcqRIR9KGIObA8LQVxNclaId6Dntg6TLis280HzEMdPRdeWh 7Qedk4ZyMGimE3ixNVNWB5EPrSQAKBuRTPNO9wpxUsY3vmaHWg/hnOqfEYYaqFjPSshKT4 44IdcZDK/yvCZILAxgysoz01Bn0xw3HGq4SF9JRy22VaLKH2H8xlelG5jxB/w0bnyVkQ4Q M8aSrX+wRNGt2CA5G7K784ODj7P8BHes45rvxmToamYS6j75Uu2z5Oj1Hx/d8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730887922; a=rsa-sha256; cv=none; b=KZEUXaD56FEzUmFp6XySZZyq6JurdeqSkh4Tpnh7KeaHJz76BigbAVkCHhcjdmnht8PNNa GgErRws11hbXTsDOmrl5KDCcZvrHGiamdhKULB6RbceaMoHouRnxYlXcT4aT/BqSLifaOI yDA0jQAbS208OSGsH/Vxumad+qoz8sqm5EaOmLklaxg5YVogRLvsb6I9eciabDo3RNChSw Vzt8MDEkzfgYWJ2FbIEWA+en7EX4k+6+2AuyzJb2ep42tEgcDr2vJBMCh2+DCaXwYel4eh oKTKZcXfiqnr6e9A4BYCp4FqeTPWT1l3eAm24OHg//sa3vkvJenJ2RxuwwWLrg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk1GB5XdLzx6d; Wed, 6 Nov 2024 10:12:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6AC2dk080580; Wed, 6 Nov 2024 10:12:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6AC2Kr080577; Wed, 6 Nov 2024 10:12:02 GMT (envelope-from git) Date: Wed, 6 Nov 2024 10:12:02 GMT Message-Id: <202411061012.4A6AC2Kr080577@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 1550ba066216 - stable/14 - sctp: garbage collect two unused functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1550ba066216ba91ac92185bc5c23a571b028403 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=1550ba066216ba91ac92185bc5c23a571b028403 commit 1550ba066216ba91ac92185bc5c23a571b028403 Author: Michael Tuexen AuthorDate: 2024-11-02 16:58:09 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 09:11:34 +0000 sctp: garbage collect two unused functions (cherry picked from commit 470a63cde4285ea4a317b0bba966514c11f4ed5b) --- sys/netinet/sctp_pcb.c | 84 -------------------------------------------------- sys/netinet/sctp_pcb.h | 12 -------- 2 files changed, 96 deletions(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index cd5479c11e6a..5f21b2b3d0e4 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -276,90 +276,6 @@ sctp_delete_ifn(struct sctp_ifn *sctp_ifnp) sctp_free_ifn(sctp_ifnp); } -void -sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, - const char *if_name, uint32_t ifn_index) -{ - struct sctp_vrf *vrf; - struct sctp_ifa *sctp_ifap; - - SCTP_IPI_ADDR_RLOCK(); - vrf = sctp_find_vrf(vrf_id); - if (vrf == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find vrf_id 0x%x\n", vrf_id); - goto out; - } - sctp_ifap = sctp_find_ifa_by_addr(addr, vrf->vrf_id, SCTP_ADDR_LOCKED); - if (sctp_ifap == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find sctp_ifap for address\n"); - goto out; - } - if (sctp_ifap->ifn_p == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA has no IFN - can't mark unusable\n"); - goto out; - } - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) != 0) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFN %s of IFA not the same as %s\n", - sctp_ifap->ifn_p->ifn_name, if_name); - goto out; - } - } else { - if (sctp_ifap->ifn_p->ifn_index != ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA owned by ifn_index:%d down command for ifn_index:%d - ignored\n", - sctp_ifap->ifn_p->ifn_index, ifn_index); - goto out; - } - } - - sctp_ifap->localifa_flags &= ~SCTP_ADDR_VALID; - sctp_ifap->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE; -out: - SCTP_IPI_ADDR_RUNLOCK(); -} - -void -sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, - const char *if_name, uint32_t ifn_index) -{ - struct sctp_vrf *vrf; - struct sctp_ifa *sctp_ifap; - - SCTP_IPI_ADDR_RLOCK(); - vrf = sctp_find_vrf(vrf_id); - if (vrf == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find vrf_id 0x%x\n", vrf_id); - goto out; - } - sctp_ifap = sctp_find_ifa_by_addr(addr, vrf->vrf_id, SCTP_ADDR_LOCKED); - if (sctp_ifap == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find sctp_ifap for address\n"); - goto out; - } - if (sctp_ifap->ifn_p == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA has no IFN - can't mark unusable\n"); - goto out; - } - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) != 0) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFN %s of IFA not the same as %s\n", - sctp_ifap->ifn_p->ifn_name, if_name); - goto out; - } - } else { - if (sctp_ifap->ifn_p->ifn_index != ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA owned by ifn_index:%d down command for ifn_index:%d - ignored\n", - sctp_ifap->ifn_p->ifn_index, ifn_index); - goto out; - } - } - - sctp_ifap->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE; - sctp_ifap->localifa_flags |= SCTP_ADDR_VALID; -out: - SCTP_IPI_ADDR_RUNLOCK(); -} - /*- * Add an ifa to an ifn. * Register the interface as necessary. diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 1249c2233c63..736972c007d8 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -487,18 +487,6 @@ struct sctp_vrf *sctp_allocate_vrf(int vrfid); struct sctp_vrf *sctp_find_vrf(uint32_t vrfid); void sctp_free_vrf(struct sctp_vrf *vrf); -/*- - * Change address state, can be used if - * O/S supports telling transports about - * changes to IFA/IFN's (link layer triggers). - * If a ifn goes down, we will do src-addr-selection - * and NOT use that, as a source address. This does - * not stop the routing system from routing out - * that interface, but we won't put it as a source. - */ -void sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, const char *if_name, uint32_t ifn_index); -void sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, const char *if_name, uint32_t ifn_index); - struct sctp_ifa * sctp_add_addr_to_vrf(uint32_t vrfid, void *ifn, uint32_t ifn_index, uint32_t ifn_type, From nobody Wed Nov 6 10:13:44 2024 X-Original-To: dev-commits-src-all@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 4Xk1J91jkTz5cPLL; Wed, 06 Nov 2024 10:13:45 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk1J90jpNz4d1h; Wed, 6 Nov 2024 10:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730888025; 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=G3t7bTQrKyHuiUy38dFsdRJ8+HdME4u78mDiAm+kDvQ=; b=iQXVJHIntlLUYMFMNiZPeW97wvNye/LbaV0pOXQPCxbelu7Q99u6thV7/v3cUp2WWjQ9nT hutQ6dRox+w5HVrS+mEq68JOfxbqt8eQlICF5iOHEKoDaqevMnyV5KWFC8m0qgxJIsXtzd //4VrKztovd3TpUoahj/jpKCzfZMxJNncV63Afp5PVQmMMKR7BWZviNJiIs2X+Nm3OJu/n gv9nCT0XS9Dr4RHeoeRy/LuaHGkNnbbFFyfEmPzUWFWFfX2sm0c+6TdQPrivGrgHO2ERVg eqdeIwsBk2UuJS7xTRd+KoJMNCcId2mT/qZUbP93547WO9IjyW4MXZM+Kf1aEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730888025; 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=G3t7bTQrKyHuiUy38dFsdRJ8+HdME4u78mDiAm+kDvQ=; b=TTonnWzNCcBpssotm1sHkIRLpQxOyIeBUbOtq9TUFXtq4rIeYJ4wB2sbIiY/B1wiAndcjw o748I9oOThuoXi+YykeqkhJUa1wO8NLdE9TvHPUIKVeq+KZnyArFn2BvNyRRXF/FgGdBTC AuhfAU/yV2yNotuVqPKQXIt1k1t8BR11rs8C3Q+tuGQep2j83BMma3fQbRFKUbCsARQRPM V3JHbdrlrRMDHtpqf7CttLilUSV7QqnVGVdjOHC9ZOHlmMXJi+DHQ/EhTf9GmySLY929lj KS6N5EmpMYoW1FUjgv3qOR4F4A8ZS/+Z8kgGD9q1SrbtRNnTvFIYYpY9jm0LlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730888025; a=rsa-sha256; cv=none; b=OBNL/a0Ab/O8Wzf3a7B30bf1+kgmeHDPOwXPXCr7fNmvvEl6B0XPUrDM1jakCKC+8lmPXw NveBFF+EhUiDg2r1X9ghiovStkbNTYxP3wuze+potAuHYQytxXgdZnGa5RVl7qqjOn8pJh WgzVTpPaAVcim1diDurGn51XoHGwHsssunSlLaTInuJl3/ddlMi+p26E7espPvjoNUPtRS F5BVgojxC4B/qnK1Y3WFQDhxXRbcKwmzHbFgF/N/r7H1nQX268bAuLQcg1mKGRKmG7xbg9 g07tDRj23+N+JepWIW7ZLsU5y/2XnlSwpcI6kX8ligYLnwY+vuRtb92EH6ywyQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk1J90KGJzwwh; Wed, 6 Nov 2024 10:13:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6ADiou083199; Wed, 6 Nov 2024 10:13:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6ADiNi083196; Wed, 6 Nov 2024 10:13:44 GMT (envelope-from git) Date: Wed, 6 Nov 2024 10:13:44 GMT Message-Id: <202411061013.4A6ADiNi083196@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 5616189419f8 - stable/14 - sctp: improve handling of address changes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5616189419f82067dcd350675cbc7d27a2299580 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=5616189419f82067dcd350675cbc7d27a2299580 commit 5616189419f82067dcd350675cbc7d27a2299580 Author: Michael Tuexen AuthorDate: 2024-11-03 09:20:08 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 09:12:28 +0000 sctp: improve handling of address changes Identify interfaces consistenly by the pair of the ifn pointer and the index. This avoids a use after free when the ifn and or index was reused. Reported by: bz, pho, and others (cherry picked from commit 523913c94371ab50a8129cbab820394d25f7a269) --- sys/netinet/sctp_bsd_addr.c | 1 + sys/netinet/sctp_pcb.c | 23 +++++++++++++---------- sys/netinet/sctp_pcb.h | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/sys/netinet/sctp_bsd_addr.c b/sys/netinet/sctp_bsd_addr.c index 3c6952ab6f3c..a10fbcc5ca40 100644 --- a/sys/netinet/sctp_bsd_addr.c +++ b/sys/netinet/sctp_bsd_addr.c @@ -338,6 +338,7 @@ sctp_addr_change(struct ifaddr *ifa, int cmd) (void *)ifa, ifa->ifa_addr, ifa_flags, 1); } else { sctp_del_addr_from_vrf(SCTP_DEFAULT_VRFID, ifa->ifa_addr, + (void *)ifa->ifa_ifp, ifa->ifa_ifp->if_index); /* diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 5f21b2b3d0e4..ab120fc951b1 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -193,12 +193,11 @@ sctp_find_ifn(void *ifn, uint32_t ifn_index) struct sctp_ifnlist *hash_ifn_head; SCTP_IPI_ADDR_LOCK_ASSERT(); + KASSERT(ifn != NULL, ("sctp_find_ifn(NULL, %u) called", ifn_index)); hash_ifn_head = &SCTP_BASE_INFO(vrf_ifn_hash)[(ifn_index & SCTP_BASE_INFO(vrf_ifn_hashmark))]; LIST_FOREACH(sctp_ifnp, hash_ifn_head, next_bucket) { - if (sctp_ifnp->ifn_index == ifn_index) { - break; - } - if (ifn != NULL && sctp_ifnp->ifn_p == ifn) { + if (sctp_ifnp->ifn_index == ifn_index && + sctp_ifnp->ifn_p == ifn) { break; } } @@ -439,7 +438,8 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, if (sctp_ifap != NULL) { /* The address being added is already or still known. */ if (sctp_ifap->ifn_p != NULL) { - if (sctp_ifap->ifn_p->ifn_index == ifn_index) { + if (sctp_ifap->ifn_p->ifn_index == ifn_index && + sctp_ifap->ifn_p->ifn_p == ifn) { SCTPDBG(SCTP_DEBUG_PCB4, "Using existing ifn %s (0x%x) for ifa %p\n", sctp_ifap->ifn_p->ifn_name, ifn_index, @@ -578,7 +578,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, */ SCTPDBG(SCTP_DEBUG_PCB4, "Lost an address change?\n"); /* Opps, must decrement the count */ - sctp_del_addr_from_vrf(vrf_id, addr, ifn_index); + sctp_del_addr_from_vrf(vrf_id, addr, ifn, ifn_index); return (NULL); } SCTP_INCR_LADDR_COUNT(); @@ -603,7 +603,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, void sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, - uint32_t ifn_index) + void *ifn, uint32_t ifn_index) { struct sctp_vrf *vrf; struct sctp_ifa *sctp_ifap; @@ -624,9 +624,12 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap != NULL) { /* Validate the delete */ if (sctp_ifap->ifn_p) { - if (ifn_index != sctp_ifap->ifn_p->ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s - ignoring delete\n", - sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_name); + if (ifn_index != sctp_ifap->ifn_p->ifn_index || + ifn != sctp_ifap->ifn_p->ifn_p) { + SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (p) ifname:%s - ignoring delete\n", + sctp_ifap->ifn_p->ifn_index, + sctp_ifap->ifn_p->ifn_p, + sctp_ifap->ifn_p->ifn_name); SCTP_IPI_ADDR_WUNLOCK(); return; } diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 736972c007d8..2bec2bc32d4e 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -498,7 +498,7 @@ void sctp_free_ifa(struct sctp_ifa *sctp_ifap); void sctp_del_addr_from_vrf(uint32_t vrfid, struct sockaddr *addr, - uint32_t ifn_index); + void *ifn, uint32_t ifn_index); struct sctp_nets *sctp_findnet(struct sctp_tcb *, struct sockaddr *); From nobody Wed Nov 6 10:13:46 2024 X-Original-To: dev-commits-src-all@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 4Xk1JB2hB0z5cP8d; Wed, 06 Nov 2024 10:13:46 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk1JB1xK6z4cyg; Wed, 6 Nov 2024 10:13:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730888026; 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=eVHpsCyKYOyTunrxfdbBXhfICW5NiMDggw4RkJiL5bU=; b=yp6+9qe9F/HrqR92Pi0Aqi4kDZvhfSCPzIIloTPEwnokNCTpZIH7YTQiQ0+9bJegVidIrv b6tc7XULsK6NEi8SdH0zs1cp+HjWvLwogP+KpIuWk5LY8nVdE7YXErYjv0LYVqI1HVbmgd YwUk5EH1nu9OqQbslBN0mN+2orIDjVYQk9VuDQCfZ2fPhKCER1qxgBqOIbChy0OW4+BAsC qRhXyp+hroE/VynIyX2TSabDddaXgnOjgIzk9F/A4RhT3bFpyOtzg0I3vB7XmPNrsAoP3m VFI2HMK08TWDzwMfQtL6xaVOpVj6VqGUMwS0HPmFBdGJznKTfp1MiXAYHHNW9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730888026; 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=eVHpsCyKYOyTunrxfdbBXhfICW5NiMDggw4RkJiL5bU=; b=Wis3d2ey62htZSp4tnFZRzK5l90KTJQMYITjMXDbG5tUyjxsGxwV42iKTszZBVC9jlvJkW A+rXygazBHRBk4Fju5wKVG5nC8WgyCp8n/VXGUVWWbJsw7YML1uSAUxayZ7iTwYgiioXxe QI27QfDQrMtOEhNgTcSAOxwR8qd05zJh9alqw4AHOJv2gcION1rvOn0clXW30nSRHnAuGs zz9JbppNYZlK0GKJqg6nKMnJdoXe5NlNoz1UVrHdxAp5bz6Ksskq8ul13UowRHmFm88mPO u79vKW5gJcJpjCUXK2E7YlJiOX4fSLwYdjPa6omHfJiHPj1eb8XESpjXiWdgIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730888026; a=rsa-sha256; cv=none; b=WoZeQ6VuXjkEkEdZNdTOMu1jGmDZivdRrk0H3ee5kb9uqsET3tmI43lHVyaVmvJ7YBwcCR PvxN5DuhPKTSY4bgVn9PIFxwBsRHOwzoKF+DcSodOeHpO5rJ+GsYAK0t0G9aWNjCRG/D5C 3JWVOCQROzwXeGqsnkd5k8ZRiok9PebyzraqA+gU4i99haj4yJk16aXbPt3TkYoT/1l7wM g/JNA3pzwAkPxerVB2DeDaeY5hAjaTyam94jsxoge25TrgLrkCHGXwUvKQcYu6Xuyk7Ekd Azxli5yGbbPvAHa2vghKr7R/H0wjR+MaxckHhwuIswVShZH1F+jLe8clt9Zkvw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk1JB1KLmzx6m; Wed, 6 Nov 2024 10:13:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6ADkaN083257; Wed, 6 Nov 2024 10:13:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6ADksg083254; Wed, 6 Nov 2024 10:13:46 GMT (envelope-from git) Date: Wed, 6 Nov 2024 10:13:46 GMT Message-Id: <202411061013.4A6ADksg083254@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 69a31343a464 - stable/14 - sctp: fix debug message List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 69a31343a464be7e0e360c31448ada37611019b7 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=69a31343a464be7e0e360c31448ada37611019b7 commit 69a31343a464be7e0e360c31448ada37611019b7 Author: Michael Tuexen AuthorDate: 2024-11-03 10:20:54 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 09:13:14 +0000 sctp: fix debug message (cherry picked from commit 518a1163d0aa73b26da1dd1a4bb186042ea3c66e) --- sys/netinet/sctp_pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index ab120fc951b1..7f10784ce433 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -626,7 +626,7 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap->ifn_p) { if (ifn_index != sctp_ifap->ifn_p->ifn_index || ifn != sctp_ifap->ifn_p->ifn_p) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (p) ifname:%s - ignoring delete\n", + SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (%p) ifname:%s - ignoring delete\n", sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_p, sctp_ifap->ifn_p->ifn_name); From nobody Wed Nov 6 11:24:33 2024 X-Original-To: dev-commits-src-all@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 4Xk2t64mpkz5cSsC; Wed, 06 Nov 2024 11:24:46 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 4Xk2t62cMWz4lcT; Wed, 6 Nov 2024 11:24:46 +0000 (UTC) (envelope-from mpp302@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a9a68480164so987653766b.3; Wed, 06 Nov 2024 03:24:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730892285; x=1731497085; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T7jmymE19MIWch6cp7ABDERGmmE+/Hn9/eRsYV/wQm8=; b=UxYVf0TdmXzI8tN6rH0gqeSmQ0rnxPI1IrEMdBzEYeGHGtsCuyERibt6ZoBtZZEgpN H5eMbs02iZlT2mS9Q3Y24c3n+88YXJTG6w6mCpoZHOdeYP+60sJ5/JomY3VVVjJcm4yn ZGAsYuT5RcZgzGLY9423DvclfvssMJ5OCT5jDDCdOMsofQKrpUwfsvozTVJG1p8SsQVB RJWAqrDTCl2oeR0VP1fJ6hhpdtfctgSKblmJyOvqd60eg1A/82jgwXmi3GP1c1LM5QYI AHjby+I5Soe7pDeyxZa0g6Ab9UzCaU43bUBqkWc9S/yI/Ouxbl/GC4v7le0GBSQAN8Of Se/Q== X-Forwarded-Encrypted: i=1; AJvYcCVC0JJs8j8BK9pw2IKBKlYEta2djWOWeqJ2qC5VCN8j3gHihc4wjnrfWk3SBPW+0kFPjnr1OJyV7DsUfaciua2cV7cCTnw=@freebsd.org, AJvYcCVNUenNLhNLHCByBzy4WBGpk5WWUXpw9nJ9VUy2whvK96gNBgo2RsoSkoGk5LN6OwFgPuYIJhh/I7aECognFZqpmu/v@freebsd.org X-Gm-Message-State: AOJu0YyTKdSj7aGv9XbdAU7EFbX+lLT+h1H3UF7ykoLfzHYbq0r9p7NH 0VGL0VlgQ7INmOuJQK3Pioce1FyetLjwUpAlTs+g4TxnSplNUVmwrDEE4WBjINI= X-Google-Smtp-Source: AGHT+IGVCk68folIDTP9ATuHD1Ya841eKCVRXscYhDa61LnrXD5p8hBOJwPWQrtxNEBU3UynZCxpng== X-Received: by 2002:a17:907:6eac:b0:a9a:7f91:8c76 with SMTP id a640c23a62f3a-a9de5a3e0ebmr4211021566b.0.1730892284520; Wed, 06 Nov 2024 03:24:44 -0800 (PST) Received: from smtpclient.apple (ip5f5af7ea.dynamic.kabel-deutschland.de. [95.90.247.234]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb17cec86sm265652166b.119.2024.11.06.03.24.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2024 03:24:44 -0800 (PST) Content-Type: text/plain; charset=utf-8 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: git: d2e7bb630b83 - main - rc.d/sendmail: Return non-zero if the daemon fails to start or is not running From: Mateusz Piotrowski <0mp@FreeBSD.org> In-Reply-To: <20241106011017.68146ea9@hal.tijl.coosemans.org> Date: Wed, 6 Nov 2024 12:24:33 +0100 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <50BB2388-07A4-467E-83B0-8ACBA3A44508@FreeBSD.org> References: <202410211921.49LJLj5t024751@gitrepo.freebsd.org> <20241106011017.68146ea9@hal.tijl.coosemans.org> To: =?utf-8?Q?T=C4=B3l_Coosemans?= X-Mailer: Apple Mail (2.3776.700.51) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4Xk2t62cMWz4lcT X-Spamd-Bar: ---- On 6. Nov 2024, at 01:10, T=C4=B3l Coosemans wrote: >=20 > On Mon, 21 Oct 2024 19:21:45 GMT Mateusz Piotrowski wrote: >> The branch main has been updated by 0mp: >>=20 >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3Dd2e7bb630b83848a774d8213014a9e07= 47775019 >>=20 >> rc.d/sendmail: Return non-zero if the daemon fails to start or is = not running >=20 > Running "make stop" in /etc/mail now produces an error with the > following config in /etc/rc.conf: >=20 > sendmail_enable=3D"NO" > sendmail_msp_queue_enable=3D"YES" > sendmail_outbound_enable=3D"YES" > sendmail_submit_enable=3D"YES" Thanks for the report. I opened a bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282585= From nobody Wed Nov 6 12:32:11 2024 X-Original-To: dev-commits-src-all@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 4Xk4Mw0WGMz5cX9R; Wed, 06 Nov 2024 12:32:12 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk4Mw00DNz3wm1; Wed, 6 Nov 2024 12:32:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896332; 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=GyF1KGv20bn19ysUNOcYwEHOL0sc3eBaiyfBP7HH28k=; b=E2awCgO1BHI1TtknPJAM8jfED1FRezrJolwIoY1Uj72CTTEP3cve1ZojYZwsJYURQnDmBA P3ubWUDdvXvsoAc1+C2O2HW561ldf0Sjpf6rjuusWTzjses45bLtohsx74e+cZH7sTNCgS SJ3ie8H4u7vMf0ViLhm24+XFrbPdjxik9PEglzV6OrIg3vm9c9ViMaqwiwZHPaflfZPs4a OYcTmasUvO2Q0pVmKDQxISar5ttEDnR8Gw8aYOKgjh49+p/M9vrqLgriA89nas7e1dPJcI kleoeAxde+TR0e2R2iEcwzAUDJzy32Bs5XElAAJlYTwSD47upFbofwTlGxwqwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896332; 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=GyF1KGv20bn19ysUNOcYwEHOL0sc3eBaiyfBP7HH28k=; b=h7m7hpJoaaXT4+9spTSFG2ukAnQyzzK/2CZjFnvu1pDLUmBw+KR//avoBKDQbRS/jDRcbb hmX6npJd6VZcCzPJsr9VmQ4WI8FcRXLCIg8oTojNRSXfFGuiE7nMqc8pRCHtLKwGHrSaJN CmXurb47wBFO5/GScHDlu0LL8zjpBD/QY08ucPQturRbSUmiNjnMZujGlcfAWbhTYrjMWG Syd9MZ+gqgoOadMglNJDx7AA+tT+S2Y8o/4fdVKCXpLHH1gQWX6iWIh+YxszMnOaXxNNE1 boqmbrKzliVAwupepB3jsy+UHKOUMG9IYECHJheSqFV0Y0Kyj8sIbOxl+Tsm9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730896332; a=rsa-sha256; cv=none; b=KQoqpfrYiPbtzcjtsJpCci/dWF3t41XqkRTu5v3cbvV8pOjo122tJ4CP4Sv+0kUNwXzFdg hxNKVn8s+8nn/SX5g8t6wgO/Cn01HKziSto7DgaBN2XGnSj/8kftVekF0MVgvt+lG0HWHm 61iEi5mS7NScMsjmNChB+wbKxyxY7QWk6cIFWKsXxGYwL8y5hTaEghORt8E7a6TniCOB8e jmCNxI+ewMF1hIcYr0HmD3QR2zgmw/m0nmnoZarZ6D7ghOagQdWRtXjwSnx9Iek72u6U/8 EEw1QUsyeEQDfBbMlHEPYkIt0U+60fbVObBWpCWmkD6zoJmJoDKXBmsarWn00w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk4Mv6jTZz10r0; Wed, 6 Nov 2024 12:32:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6CWBas042341; Wed, 6 Nov 2024 12:32:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6CWBFu042338; Wed, 6 Nov 2024 12:32:11 GMT (envelope-from git) Date: Wed, 6 Nov 2024 12:32:11 GMT Message-Id: <202411061232.4A6CWBFu042338@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 651772e2219d - stable/13 - sctp: editorial cleanup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 651772e2219d0bfbf7d78e88db294b34c19aa675 Auto-Submitted: auto-generated The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=651772e2219d0bfbf7d78e88db294b34c19aa675 commit 651772e2219d0bfbf7d78e88db294b34c19aa675 Author: Michael Tuexen AuthorDate: 2024-11-02 15:00:59 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 12:31:37 +0000 sctp: editorial cleanup Improve consistency, no functional change intended. MFC after: 3 days (cherry picked from commit d839cf2fbb47c52d5153fb366c51bd6f6a3dd0fd) --- sys/netinet/sctp_pcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 39b7d58c8892..653edd066596 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -312,7 +312,7 @@ sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, } } - sctp_ifap->localifa_flags &= (~SCTP_ADDR_VALID); + sctp_ifap->localifa_flags &= ~SCTP_ADDR_VALID; sctp_ifap->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE; out: SCTP_IPI_ADDR_RUNLOCK(); @@ -354,7 +354,7 @@ sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, } } - sctp_ifap->localifa_flags &= (~SCTP_ADDR_IFA_UNUSEABLE); + sctp_ifap->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE; sctp_ifap->localifa_flags |= SCTP_ADDR_VALID; out: SCTP_IPI_ADDR_RUNLOCK(); From nobody Wed Nov 6 12:32:57 2024 X-Original-To: dev-commits-src-all@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 4Xk4Nn5Qs0z5cWxV; Wed, 06 Nov 2024 12:32:57 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk4Nn4hywz3x5s; Wed, 6 Nov 2024 12:32:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896377; 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=VveccJzYf0Gha6xYrac9QHyLyBnkbLmrrq0IoxbmhEY=; b=Enuy2MFORSS9Z1G9Dtb+jFacFX1SfhgIj46VsSWbBZiyeMdQBad9AmsV4WGabcLtoAcZ8e U4s5Wda4L6JsAt/ZSeKFLn+tmTmStBkySeMypU9L2ll1OvpZK+dCMlCxGe4cTyPEok6HSa QylcMS2XoId3BZ93zI8xu33WHRndy8RjaL+Ojx1Wlmk1YT9XwUrFEN5Uqqm1d/TsgdskCr gCBzRL6dXiwMt9CBDOpqfXOC2MGgX0wZvNAy1eu2PSyY7hrD41ATA0UIx3uUGkL5P6GkyW JpShZSKUWCUS5KUC0aG7KpJyAJLVXjWSAVIHMHNE1S87Dp/UR6swwOW0Xo/66Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896377; 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=VveccJzYf0Gha6xYrac9QHyLyBnkbLmrrq0IoxbmhEY=; b=A86D/cnSlYhyooatqlz2WtvWcaYA+Hk4qBt+Pzys+rhVZ10t0mw+PaMMiYoEA2ZejP/cFL So6GEkX6jPruSJ/YcPTapY1anetBAlgYH1co/wObHtCHSOG8YlXeZfBY1YkqLiZomMdBx0 6V62RUBCpt08zVA1lnASQaYSZsqaN4R8DuB/oMRQ8QllXugBSXgp/MX2Zy2Ty2axaNTHrK Ot9trBtZRVJ2G1TrLZ62LUFrDSjQXlkB6kcDIUJDoFj+OCOYm5lKnhvRdZTjyyhw+Ji6ST pHTngU92ByhiU4fbW16FKfs2hlReTMUGsTo+09FcKJSXoVvKvcazzbTBoBwXsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730896377; a=rsa-sha256; cv=none; b=drmO/CzAySgKmOA2V6J7j1NlNMClzZWdT8WVtB/jiD9X2SfIk1hbmiSokaVip43s2POjCH 4zjKZUn7mkXOK8pUv5cxW49hPIWtoCFoIwgDUDS4kxyktLGn90ndz2lRbjbCsV5qF6Iy0L 9vYeHMIHCAe5c+TjxMN9AWkl9PEPCHmcPyt5Um+dbxNjKKFaaguszQr+DT5p7+tsLUoCc9 gmDEyGLJmKwRMwszg7PGEMBR2slXC1b3cIMmI/vzeafomnt53sKYZESwP3GKi1u1ukjDiT 6k2b+XdvEyXaYZA05DLmOgOKCthaJSu1m5AJDsDM9ZFPi4PNRMLp+oEmF49jUQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk4Nn4J7tz11X1; Wed, 6 Nov 2024 12:32:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6CWvKX042673; Wed, 6 Nov 2024 12:32:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6CWv4C042670; Wed, 6 Nov 2024 12:32:57 GMT (envelope-from git) Date: Wed, 6 Nov 2024 12:32:57 GMT Message-Id: <202411061232.4A6CWv4C042670@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 66628552a387 - stable/13 - sctp: don't consider the interface name when removing an address List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 66628552a38751ed5c395858d1754660557674cd Auto-Submitted: auto-generated The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=66628552a38751ed5c395858d1754660557674cd commit 66628552a38751ed5c395858d1754660557674cd Author: Michael Tuexen AuthorDate: 2024-11-02 15:33:02 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 12:32:33 +0000 sctp: don't consider the interface name when removing an address Checking the interface name can not be done consistently, so don't do it. (cherry picked from commit bf11fdaf0d095fecca61fa8b457d06e27fae5946) --- sys/netinet/sctp_bsd_addr.c | 3 +-- sys/netinet/sctp_pcb.c | 27 +++------------------------ sys/netinet/sctp_pcb.h | 2 +- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/sys/netinet/sctp_bsd_addr.c b/sys/netinet/sctp_bsd_addr.c index 83ff0e1e3cc6..d190be1948ba 100644 --- a/sys/netinet/sctp_bsd_addr.c +++ b/sys/netinet/sctp_bsd_addr.c @@ -338,8 +338,7 @@ sctp_addr_change(struct ifaddr *ifa, int cmd) (void *)ifa, ifa->ifa_addr, ifa_flags, 1); } else { sctp_del_addr_from_vrf(SCTP_DEFAULT_VRFID, ifa->ifa_addr, - ifa->ifa_ifp->if_index, - ifa->ifa_ifp->if_xname); + ifa->ifa_ifp->if_index); /* * We don't bump refcount here so when it completes the diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 653edd066596..1196dca8f8d4 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -662,8 +662,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, */ SCTPDBG(SCTP_DEBUG_PCB4, "Lost an address change?\n"); /* Opps, must decrement the count */ - sctp_del_addr_from_vrf(vrf_id, addr, ifn_index, - if_name); + sctp_del_addr_from_vrf(vrf_id, addr, ifn_index); return (NULL); } SCTP_INCR_LADDR_COUNT(); @@ -688,7 +687,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, void sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, - uint32_t ifn_index, const char *if_name) + uint32_t ifn_index) { struct sctp_vrf *vrf; struct sctp_ifa *sctp_ifap; @@ -709,27 +708,7 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap != NULL) { /* Validate the delete */ if (sctp_ifap->ifn_p) { - bool valid = false; - - /*- - * The name has priority over the ifn_index - * if its given. - */ - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) == 0) { - /* They match its a correct delete */ - valid = true; - } - } - if (!valid) { - /* last ditch check ifn_index */ - if (ifn_index == sctp_ifap->ifn_p->ifn_index) { - valid = true; - } - } - if (!valid) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s does not match addresses\n", - ifn_index, ((if_name == NULL) ? "NULL" : if_name)); + if (ifn_index != sctp_ifap->ifn_p->ifn_index) { SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s - ignoring delete\n", sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_name); SCTP_IPI_ADDR_WUNLOCK(); diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index d349519e4ce1..9dbaf5fcde71 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -509,7 +509,7 @@ void sctp_free_ifa(struct sctp_ifa *sctp_ifap); void sctp_del_addr_from_vrf(uint32_t vrfid, struct sockaddr *addr, - uint32_t ifn_index, const char *if_name); + uint32_t ifn_index); struct sctp_nets *sctp_findnet(struct sctp_tcb *, struct sockaddr *); From nobody Wed Nov 6 12:33:42 2024 X-Original-To: dev-commits-src-all@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 4Xk4Pg06Tvz5cXMM; Wed, 06 Nov 2024 12:33:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk4Pf6fG0z3xCb; Wed, 6 Nov 2024 12:33:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896422; 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=Z89m44Lh1Ek5RGnGk5/xLCCxc9Kfvvuk8b7IPitve5Y=; b=sDPB4mWHe05uLpVgflFpaqOT5+xpeTBxenn2VUXDeArqYQc6LwQMV6+d4F/3Y5UUKeXqu2 Vtz2lHe7xmW9fGQJSE3LQTMKDW5PUbnsBVktQBWYDDa89t7HRvMaSs5laK0EGKBKw56eeL mDNbh1Oa+UtMPCh15giTlNrFFFwpYxbtdrlpzgWoh2M8yX2UIW5M0Ik2f0wpn8Sll4Ecgj kEMVJaezTAPbWSSzWhY8ZD+KrgrBJ0m6pxMmuMkDGzsrDq6QHHfacVXPr4ig9kXVhAebu3 1uLrpSDLls0MLgKMkqXrXEVFg9Ic+sPZh7efGlvxlaalZ3PZxlGkGdoklUf/SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896422; 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=Z89m44Lh1Ek5RGnGk5/xLCCxc9Kfvvuk8b7IPitve5Y=; b=r3TFxZ9C6c+WvOBpEGX/vqeu1Ke7MzC1LG77v3Cd0J/ryakjfBxmzjHoyyZ0iypedEb5dX fzl1zysZwAX2DLJMVwqGLNOH2eGZZG9Syn8/+3WYZy27TouyITcVbH6R+TYdwnHbc1Is5u X3DH8nwuClnlgjoSMZsQZ7VMns5jnxE/745SYlJ4DOWAvLWGK0s2OPWRynHtbp2OXfGHfq Ca8cQEzzOOYAj2lBWBYRkhpFk7Q+GJTA1qVYFs+7vagFihvwA+s/2xNpX6vGvjTbTADKMc DkLHuqYyU/5wzwFqcZrQVS2FdoPbWI5K9BuKfpGwPLVamAOl0Gx/MEmf5xEcug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730896422; a=rsa-sha256; cv=none; b=qGzXpw6E6cXtUdVo455m1B/n6qD7dUtVla/iNM0/i4UiBkULvpbTM7rbZqM1samGpr6UL1 tjNeCdHaV8mFNLmtMrxRI8SW/byk+GKDvq1lRuwNK2kbP4ZQvqwQ/gAzdO3opcngwJUTIs dFKfpKrMO5XCHzbCAiTWUOHEnherSeOfYMPPuJJ7OFG3RM2VdwgQuRYCySIX68ij1Usgna BPW5yBYRyw7lkpf5rVJeT1lWkv6YMwGS9cTVqTfIL/tyGrQVtRg8zYLKDY/esCQjkI40cc 3mS5+tp/yTjlfS8IOpa00zODctBa2em2tD1vuVKsoAjVmzVUhHty4zLO0RHI2A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk4Pf685kz11TX; Wed, 6 Nov 2024 12:33:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6CXg4c043080; Wed, 6 Nov 2024 12:33:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6CXgPC043077; Wed, 6 Nov 2024 12:33:42 GMT (envelope-from git) Date: Wed, 6 Nov 2024 12:33:42 GMT Message-Id: <202411061233.4A6CXgPC043077@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: e3f26ce52b71 - stable/13 - sctp: garbage collect two unused functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e3f26ce52b71d4005e666ced22c0855dbc70b28e Auto-Submitted: auto-generated The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=e3f26ce52b71d4005e666ced22c0855dbc70b28e commit e3f26ce52b71d4005e666ced22c0855dbc70b28e Author: Michael Tuexen AuthorDate: 2024-11-02 16:58:09 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 12:33:13 +0000 sctp: garbage collect two unused functions (cherry picked from commit 470a63cde4285ea4a317b0bba966514c11f4ed5b) --- sys/netinet/sctp_pcb.c | 84 -------------------------------------------------- sys/netinet/sctp_pcb.h | 12 -------- 2 files changed, 96 deletions(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 1196dca8f8d4..469c401978ac 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -276,90 +276,6 @@ sctp_delete_ifn(struct sctp_ifn *sctp_ifnp) sctp_free_ifn(sctp_ifnp); } -void -sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, - const char *if_name, uint32_t ifn_index) -{ - struct sctp_vrf *vrf; - struct sctp_ifa *sctp_ifap; - - SCTP_IPI_ADDR_RLOCK(); - vrf = sctp_find_vrf(vrf_id); - if (vrf == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find vrf_id 0x%x\n", vrf_id); - goto out; - } - sctp_ifap = sctp_find_ifa_by_addr(addr, vrf->vrf_id, SCTP_ADDR_LOCKED); - if (sctp_ifap == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find sctp_ifap for address\n"); - goto out; - } - if (sctp_ifap->ifn_p == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA has no IFN - can't mark unusable\n"); - goto out; - } - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) != 0) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFN %s of IFA not the same as %s\n", - sctp_ifap->ifn_p->ifn_name, if_name); - goto out; - } - } else { - if (sctp_ifap->ifn_p->ifn_index != ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA owned by ifn_index:%d down command for ifn_index:%d - ignored\n", - sctp_ifap->ifn_p->ifn_index, ifn_index); - goto out; - } - } - - sctp_ifap->localifa_flags &= ~SCTP_ADDR_VALID; - sctp_ifap->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE; -out: - SCTP_IPI_ADDR_RUNLOCK(); -} - -void -sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, - const char *if_name, uint32_t ifn_index) -{ - struct sctp_vrf *vrf; - struct sctp_ifa *sctp_ifap; - - SCTP_IPI_ADDR_RLOCK(); - vrf = sctp_find_vrf(vrf_id); - if (vrf == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find vrf_id 0x%x\n", vrf_id); - goto out; - } - sctp_ifap = sctp_find_ifa_by_addr(addr, vrf->vrf_id, SCTP_ADDR_LOCKED); - if (sctp_ifap == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find sctp_ifap for address\n"); - goto out; - } - if (sctp_ifap->ifn_p == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA has no IFN - can't mark unusable\n"); - goto out; - } - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) != 0) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFN %s of IFA not the same as %s\n", - sctp_ifap->ifn_p->ifn_name, if_name); - goto out; - } - } else { - if (sctp_ifap->ifn_p->ifn_index != ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA owned by ifn_index:%d down command for ifn_index:%d - ignored\n", - sctp_ifap->ifn_p->ifn_index, ifn_index); - goto out; - } - } - - sctp_ifap->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE; - sctp_ifap->localifa_flags |= SCTP_ADDR_VALID; -out: - SCTP_IPI_ADDR_RUNLOCK(); -} - /*- * Add an ifa to an ifn. * Register the interface as necessary. diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 9dbaf5fcde71..7ef6feee9c01 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -486,18 +486,6 @@ struct sctp_vrf *sctp_allocate_vrf(int vrfid); struct sctp_vrf *sctp_find_vrf(uint32_t vrfid); void sctp_free_vrf(struct sctp_vrf *vrf); -/*- - * Change address state, can be used if - * O/S supports telling transports about - * changes to IFA/IFN's (link layer triggers). - * If a ifn goes down, we will do src-addr-selection - * and NOT use that, as a source address. This does - * not stop the routing system from routing out - * that interface, but we won't put it as a source. - */ -void sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, const char *if_name, uint32_t ifn_index); -void sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, const char *if_name, uint32_t ifn_index); - struct sctp_ifa * sctp_add_addr_to_vrf(uint32_t vrfid, void *ifn, uint32_t ifn_index, uint32_t ifn_type, From nobody Wed Nov 6 12:34:43 2024 X-Original-To: dev-commits-src-all@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 4Xk4Qr41jZz5cX2H; Wed, 06 Nov 2024 12:34:44 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk4Qr0pQJz3xVZ; Wed, 6 Nov 2024 12:34:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896484; 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=MY6GLMf/r0jFRRAXMsrp4Fcrqz3lWPb8S+mNhTakMNQ=; b=Pz5KNzSqqkt6D4P6C6znZ266/mxLG5wYy97OeCd5nHuzF6jnr02stnBlaSp9Dg5ZEhO6eM mevQHUquN6/yBDoe0nesj+bcUoRk/1MsA32oLk0SpHu/lLDzv4//MIYJ+/giDKr/EyLbyh rv//Fpwly8+vyuRdXx6Bnhwyl/EH9PpOjOcXD5WZIoOVYJjN6rFTeWzkNhfSOkoxnhkbSm 5hrKSZkW2QIMJ6FbZOQCtttiDpiRtIJEJfGiZGd3J+rUTO5lv6HAgKNOpLs8C/XA4u47n1 FQJaBNCxAW8TZ/N0bv4aQieJkPuuI15x7o336j8QUM7Rn4Ho07oebHOjP48Lvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896484; 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=MY6GLMf/r0jFRRAXMsrp4Fcrqz3lWPb8S+mNhTakMNQ=; b=fP0YicE6I8vLFvE11+lzpUcKHBW0eV/jkDXyZHVJljAxicKB+vV1FY021j/2Zt/nP6l5bL NjlcVNI8bR7lRvx7HXz1eBicWPOOn/bqYYWfuvFxwmYUXCSYl+L5b4zB9KpEgoHJRNnh+7 Rqfq+mzrjK2wGsiHOfwLW0mn1CdmZYNgbsKaCmfZ5Gc1tB1m6/1FZwWLuOW0VnzwWhYVf+ KEKuaCNpSA3QF/nd7EjAEE46COGGe34gfgjqoUt8hv20hnl7SdCqY3dxdITt6qzhcq0Thg H7kmmNVqtJ2OUWNQM6/Lxb3fVjZVdNwfkuQUptS8GFzmn3Ncn+ex82jh1U745g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730896484; a=rsa-sha256; cv=none; b=gRX/MdIhPl/iLg+A/98rvjiWD8TR+4VuuBsuSBdvPHjcFNHyGyMhA9P3bA1cIVzpFrsMCC 7XfSzzoRvU/esTi97w5Xw0IyseQf5fbE9+OXjsHv/DVNw0w6RRiq3hf9CVP417Rq6GiOLD Y6SckOb2y24FYZ/oM7EAOX/GQK9iEEJ00K1QsbfkCKOjrvo03Dq1rtEo38Cf41DhSmG791 YJfGOR6HXpvbAVRNV/WEn0yuMVxXXKme/z4r7Os2fgbjqNSuYxQsgo4xF2eZMwNeYjnrD9 VQiHvAAYpa1z8T/V/hwKPM58ICspffV4E8CKrar/YAa1wPnx0enXAUIy0prHBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk4Qr0Mydz11X3; Wed, 6 Nov 2024 12:34:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6CYhql043496; Wed, 6 Nov 2024 12:34:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6CYhXB043493; Wed, 6 Nov 2024 12:34:43 GMT (envelope-from git) Date: Wed, 6 Nov 2024 12:34:43 GMT Message-Id: <202411061234.4A6CYhXB043493@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 331db93815af - stable/13 - sctp: improve handling of address changes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 331db93815afb49b01f269aeff0fe899acd47455 Auto-Submitted: auto-generated The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=331db93815afb49b01f269aeff0fe899acd47455 commit 331db93815afb49b01f269aeff0fe899acd47455 Author: Michael Tuexen AuthorDate: 2024-11-03 09:20:08 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 12:33:58 +0000 sctp: improve handling of address changes Identify interfaces consistenly by the pair of the ifn pointer and the index. This avoids a use after free when the ifn and or index was reused. Reported by: bz, pho, and others (cherry picked from commit 523913c94371ab50a8129cbab820394d25f7a269) --- sys/netinet/sctp_bsd_addr.c | 1 + sys/netinet/sctp_pcb.c | 23 +++++++++++++---------- sys/netinet/sctp_pcb.h | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/sys/netinet/sctp_bsd_addr.c b/sys/netinet/sctp_bsd_addr.c index d190be1948ba..5381898ab0ef 100644 --- a/sys/netinet/sctp_bsd_addr.c +++ b/sys/netinet/sctp_bsd_addr.c @@ -338,6 +338,7 @@ sctp_addr_change(struct ifaddr *ifa, int cmd) (void *)ifa, ifa->ifa_addr, ifa_flags, 1); } else { sctp_del_addr_from_vrf(SCTP_DEFAULT_VRFID, ifa->ifa_addr, + (void *)ifa->ifa_ifp, ifa->ifa_ifp->if_index); /* diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 469c401978ac..0ad898c6df69 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -193,12 +193,11 @@ sctp_find_ifn(void *ifn, uint32_t ifn_index) struct sctp_ifnlist *hash_ifn_head; SCTP_IPI_ADDR_LOCK_ASSERT(); + KASSERT(ifn != NULL, ("sctp_find_ifn(NULL, %u) called", ifn_index)); hash_ifn_head = &SCTP_BASE_INFO(vrf_ifn_hash)[(ifn_index & SCTP_BASE_INFO(vrf_ifn_hashmark))]; LIST_FOREACH(sctp_ifnp, hash_ifn_head, next_bucket) { - if (sctp_ifnp->ifn_index == ifn_index) { - break; - } - if (ifn != NULL && sctp_ifnp->ifn_p == ifn) { + if (sctp_ifnp->ifn_index == ifn_index && + sctp_ifnp->ifn_p == ifn) { break; } } @@ -439,7 +438,8 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, if (sctp_ifap != NULL) { /* The address being added is already or still known. */ if (sctp_ifap->ifn_p != NULL) { - if (sctp_ifap->ifn_p->ifn_index == ifn_index) { + if (sctp_ifap->ifn_p->ifn_index == ifn_index && + sctp_ifap->ifn_p->ifn_p == ifn) { SCTPDBG(SCTP_DEBUG_PCB4, "Using existing ifn %s (0x%x) for ifa %p\n", sctp_ifap->ifn_p->ifn_name, ifn_index, @@ -578,7 +578,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, */ SCTPDBG(SCTP_DEBUG_PCB4, "Lost an address change?\n"); /* Opps, must decrement the count */ - sctp_del_addr_from_vrf(vrf_id, addr, ifn_index); + sctp_del_addr_from_vrf(vrf_id, addr, ifn, ifn_index); return (NULL); } SCTP_INCR_LADDR_COUNT(); @@ -603,7 +603,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, void sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, - uint32_t ifn_index) + void *ifn, uint32_t ifn_index) { struct sctp_vrf *vrf; struct sctp_ifa *sctp_ifap; @@ -624,9 +624,12 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap != NULL) { /* Validate the delete */ if (sctp_ifap->ifn_p) { - if (ifn_index != sctp_ifap->ifn_p->ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s - ignoring delete\n", - sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_name); + if (ifn_index != sctp_ifap->ifn_p->ifn_index || + ifn != sctp_ifap->ifn_p->ifn_p) { + SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (p) ifname:%s - ignoring delete\n", + sctp_ifap->ifn_p->ifn_index, + sctp_ifap->ifn_p->ifn_p, + sctp_ifap->ifn_p->ifn_name); SCTP_IPI_ADDR_WUNLOCK(); return; } diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 7ef6feee9c01..ce38e7cede2d 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -497,7 +497,7 @@ void sctp_free_ifa(struct sctp_ifa *sctp_ifap); void sctp_del_addr_from_vrf(uint32_t vrfid, struct sockaddr *addr, - uint32_t ifn_index); + void *ifn, uint32_t ifn_index); struct sctp_nets *sctp_findnet(struct sctp_tcb *, struct sockaddr *); From nobody Wed Nov 6 12:34:45 2024 X-Original-To: dev-commits-src-all@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 4Xk4Qs3PJlz5cXQ8; Wed, 06 Nov 2024 12:34:45 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk4Qs1W1Lz3xMt; Wed, 6 Nov 2024 12:34:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896485; 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=i23EbL71a50agSpflRQWX2cMKradk7hfHTrPJ2TXx/8=; b=D8lRQVi03CxIavV10C4F6VYZLxYOoQYgTI64vdWXUkSdCuwJkwc+cxypc7FbgQZo9QIJXp GV1SkNv9e+nYZDtnzmDd2ZOipPZUal/C8GuGt0/JOdz0iG802bwh8VrwLTT31gFUyEHW4A i/pwiRurA8HYPYe41BpKq4pKpgWjExi5TZvVfaBBitYX6dh8Ue2L1cg+cWg2OwiR5PHDTV 2WGbRtM6sHF2cKHY9Ghv2QxJ+xvGtYGAMEegrhGO7MwdHqeBrLIVQHRkJcvVqPrJbVECC1 Ki1I4mfFxSg4VylmHISeuYCa2pDJI+J6QpkrbUatTzyAqwIoWT6IINsHJtnmUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730896485; 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=i23EbL71a50agSpflRQWX2cMKradk7hfHTrPJ2TXx/8=; b=iHwkZizt8KpW1Rc4TFphSd4eROFO4tJD1kbmWMPZQ6TTyRYitQ91lNMlP7XDbAH5RJqlc3 tRhcd18HY0wnIDqeTsAg4rhyWyAL7HaQueLg0MASjBiJU5rlWnUHsLdfyNnZ6sMflTiTYO ZtoQfiG29BaokpISzHXBRIwXvIjD8wv5lkKtPSigZcKdd9WB8zRu8bUpMPP4SXp/2vD5qd WajtHN+7ekGVElAC5f32o614QzvLmP13UEasjzY2Y/Z2rU4x+zp3al33Cl9ss8RS7RyJAf laRq0MonUOUnrbuYSBuq/jrMrqroeiE0eEzniBxnOjpbx8FqFyRgI9ffBIKjcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730896485; a=rsa-sha256; cv=none; b=GfPnLUX6PiyOpM+v1/i4+si3KK0FXKZCZlc9olwJcE7xnhdD3axCOEAororC+NFQ4WqC45 obh5XBU5UjvuqGOUAbozECX38Faf236RQwsR1Yk2RZbof7ADSAfeF6LRd2W51bBf7IUTGT H++PKx8mZCKNLvi4dQd8iSOsdFr4pYrFiDTiVttvilkjiXVHmytxC8CToN/aIKzHOLdmmi HbKgAEJxpI9naX05GXB35ZBhTG9gBl0H5lQB/G+l+r4EvoKtXAOTdQFbDZR6z0ksqVv3LG hrcI1AFM2AbFmBafphkdhnVJ+CPp6XwFvS6YKny2JaMmPg2f6sI3A/0eVzDyHg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk4Qs16FPz11Hc; Wed, 6 Nov 2024 12:34:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6CYjhu043541; Wed, 6 Nov 2024 12:34:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6CYjvB043538; Wed, 6 Nov 2024 12:34:45 GMT (envelope-from git) Date: Wed, 6 Nov 2024 12:34:45 GMT Message-Id: <202411061234.4A6CYjvB043538@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 0e8faabc270f - stable/13 - sctp: fix debug message List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0e8faabc270f89fbc54bbc118b2ebe2a38364375 Auto-Submitted: auto-generated The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=0e8faabc270f89fbc54bbc118b2ebe2a38364375 commit 0e8faabc270f89fbc54bbc118b2ebe2a38364375 Author: Michael Tuexen AuthorDate: 2024-11-03 10:20:54 +0000 Commit: Michael Tuexen CommitDate: 2024-11-06 12:34:21 +0000 sctp: fix debug message (cherry picked from commit 518a1163d0aa73b26da1dd1a4bb186042ea3c66e) --- sys/netinet/sctp_pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 0ad898c6df69..ddcf0c4bc7b0 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -626,7 +626,7 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap->ifn_p) { if (ifn_index != sctp_ifap->ifn_p->ifn_index || ifn != sctp_ifap->ifn_p->ifn_p) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (p) ifname:%s - ignoring delete\n", + SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (%p) ifname:%s - ignoring delete\n", sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_p, sctp_ifap->ifn_p->ifn_name); From nobody Wed Nov 6 13:32:34 2024 X-Original-To: dev-commits-src-all@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 4Xk5jZ2Bpkz5cbxL; Wed, 06 Nov 2024 13:32:34 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk5jZ1Rv2z46QD; Wed, 6 Nov 2024 13:32:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730899954; 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=7VBTGYM2SzteOSOJte4hP2BnnPRBwSE/WVZaeQcVAVI=; b=NJm1FQSNy8bnSaEn8ptQ+JocSyJxwY9sUFvTGbTLiP62OubB8vZSa4xbikMjgX8f3jBNf6 42ZHPgnfxp83VT4hZjDlehqP33q7KA+EysXI1eNhOSpQx0Xjoeu2Y+5raQsXA/6q0yhGX5 VrJvK6ZFexd0O4m4IwP8C6Fw76CYQCCcgnQAnRp+txYNFudLLRCOAxIYwogTE+Bwr931SS w+YPZPiLEglI45Db921c2kiwDB9T1PTGwuPtioUdvhxWtiUvBwH9zF0gartTcBbPifVCtZ zgRyyuZjbeNsGZ3KS7zJ3CoExUm6NTB4eQ/Sym7f4c9PDB06ukdnXfCiUicU8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730899954; 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=7VBTGYM2SzteOSOJte4hP2BnnPRBwSE/WVZaeQcVAVI=; b=b3QtqqBdICQb5TpZUy0ZIW/+3GQQnFhkO/vremib/+OzrcNGvSXyhH4lTjYPIf9DUso46c ForIlr6ZhKgiyW1X9rnhy3h9numm272GvL2WKdc8YkiIMbt/G3jSt9TYvXqzqu1RVVowpM wSAlPjG87o646dywgYtUNDmLdUmdk58KuSyRTC4oGbrkYlcgrF/gV3/rfPogrgTe7gc0xh gcX9wr5oWOzFvA/vk9SM1hIgiLMC/jNQUnDIk/t4p0xIJ0/jNrCrVMZqr0epkyytMT7ig1 B15YLgCFf4Hk2rqBEA6ejwTjUFcekHSb5zIQkLlntyJFtv8ofu7VShYQ46c+Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730899954; a=rsa-sha256; cv=none; b=b9cuqLp/Ds8E0NhNRwXwB7E8cQ3UXMg1nb64qChnqP1RZMhJY/0DytURidom8ABBfLQ8iz gsvP6Kg1yVAMYS7vw6hyzMxiYlWsWrBThw++UjwjTy3Vfn9WAuil7nCom4DSXB6h9TGxm5 AJSXCMf5Wd55K5uLTQObb4WOKzEHlrf8qRJ6RNN8kps+UU91c7r+SvoMM3zXLuNSEovM02 4oMxv8ustf9OaS/XhT8Q/oA2XvhIvtr2wYkC9Nhpta3UG3ZEwBwj/32aOnvpWkd4KHKayE KUFk3G5VuNH6nK4O51ljN9x13QAXzkK5zBVEUEBmLud8HYghJZH7Fv26SqBF/Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk5jZ13Jbz1388; Wed, 6 Nov 2024 13:32:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6DWY13053482; Wed, 6 Nov 2024 13:32:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6DWYGE053479; Wed, 6 Nov 2024 13:32:34 GMT (envelope-from git) Date: Wed, 6 Nov 2024 13:32:34 GMT Message-Id: <202411061332.4A6DWYGE053479@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 3f6a34cafe57 - main - pf: fix cmd id for PFNL_CMD_GET_ADDR List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3f6a34cafe5707108a91b5f591888ea1379afb6b Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=3f6a34cafe5707108a91b5f591888ea1379afb6b commit 3f6a34cafe5707108a91b5f591888ea1379afb6b Author: Kristof Provost AuthorDate: 2024-10-18 14:20:13 +0000 Commit: Kristof Provost CommitDate: 2024-11-06 11:02:31 +0000 pf: fix cmd id for PFNL_CMD_GET_ADDR Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netpfil/pf/pf_nl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/pf/pf_nl.c b/sys/netpfil/pf/pf_nl.c index 1da9bead394b..7a54ee78c684 100644 --- a/sys/netpfil/pf/pf_nl.c +++ b/sys/netpfil/pf/pf_nl.c @@ -1613,7 +1613,7 @@ pf_handle_get_addr(struct nlmsghdr *hdr, struct nl_pstate *npt) return (ENOMEM); ghdr_new = nlmsg_reserve_object(nw, struct genlmsghdr); - ghdr_new->cmd = PFNL_CMD_GET_ADDRS; + ghdr_new->cmd = PFNL_CMD_GET_ADDR; ghdr_new->version = 0; ghdr_new->reserved = 0; From nobody Wed Nov 6 13:40:20 2024 X-Original-To: dev-commits-src-all@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 4Xk5tY4B0Kz5cby6; Wed, 06 Nov 2024 13:40:21 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk5tY2Cm7z46dV; Wed, 6 Nov 2024 13:40:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730900421; 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=vqVkcLPeuhIpxVKyAzkisQrAa9P0N6RW9uxQFKQn0RU=; b=wVDXAsr5+OzVb0IwGJYH/rjEla8sE5GVfvUKApG86xjtVEoPGqzeE/DH7xTv0oVWQQhTuq rCGu8VkSsZcvNR5+fR9Fqp3gFAPXExP9gw9oySFL8QS5CGyQINAK16LiPxBtKM27VGBjJ0 rPHoR/qbypiT8wWV/l9+9dOUETAGqQiGiYcE7pTO0H8mqKLXMDAwLGbXZZn1eWSrnkMVNP d9316hr0DvWWLxZpg39WjudPLQyEIT4sRWpWpagXoPV1S0XHTs7zVeSTQ8F8+0K5qQ+lke pyTCLeMmSwRG5Bhwa5bggW+1pfYmO3OxVYml2xEXFDKlxLuN+kU8ILXh1E+vqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730900421; 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=vqVkcLPeuhIpxVKyAzkisQrAa9P0N6RW9uxQFKQn0RU=; b=apTZYdeJ1Oi7dbL6BEtaZZCsurRBgq0jqv0GnrpKCI5MBM3x956qk6b+RLOFs6YDCotOvq db0e7PPU7tH73UM08xA0cSi/7MW89gp+x2mNIVbXiVv/FA2U7e3fIenDJWCTE0jHtLdyAa ZerL6U6/ounbPVNwOxPrEQ9g/yfKUIBFqsmjeNv+evSREqp6AiGJEgpYUx6iB5Xh3r+uht i9lDtb0l7uHGCv7d5QRuIBbTZukxWZOoQrG5or4R/jkI51a5Z/JTnkt6IUpZU6zKvChfr+ p/1XPzWxQdiQFM86ajkOrrHOLAt4+RV69N3RkqueZNz9wI8N+pMFjuUcHGzrSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730900421; a=rsa-sha256; cv=none; b=xyEGkvjPwrfwifPqE5l5zkM46tcsIePCbolITESA6jafGKOxqGRnrj3USNB6c0N8okdl/g xtQr8fK3JFUXCKYUY2FBPg/i7xxcaRdMcZcZq/6NuQOCKh/wi9PMBWt17EZYByeo+PtUBD fIpo1Ay2i6wUDINgcZo1bea+SthZnYP+sYe4+wNcjAyB298XwgjhJwrn6J1eCHMOOIrEAI qW2L1W/wG0Xl8dRZkiwUaKxO5wX4dvN4BKlWBjkz4VOS6O0ahM3l2GU1+1q74uDwf6Rtit aa4hETNwWuvGhakGO1cqQCmfI0T6SBipPGjoMcfVsQHpMKqOeh7uQeLHH7avqw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk5tY0FVyz133g; Wed, 6 Nov 2024 13:40:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6DeKmu064402; Wed, 6 Nov 2024 13:40:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6DeKBt064399; Wed, 6 Nov 2024 13:40:20 GMT (envelope-from git) Date: Wed, 6 Nov 2024 13:40:20 GMT Message-Id: <202411061340.4A6DeKBt064399@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 4d692868a673 - main - compile_et: reduce the dependency chain for bootstrap tools. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4d692868a6730ebf72a1d1a619af89af6fc8d763 Auto-Submitted: auto-generated The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=4d692868a6730ebf72a1d1a619af89af6fc8d763 commit 4d692868a6730ebf72a1d1a619af89af6fc8d763 Author: Baptiste Daroussin AuthorDate: 2024-11-06 11:16:09 +0000 Commit: Baptiste Daroussin CommitDate: 2024-11-06 13:39:57 +0000 compile_et: reduce the dependency chain for bootstrap tools. Fix the build on macOS The bootstrap tools are statically linked, so our build system will provide the full dependency chain which pulls in libcrypt. since recently libcrypt.a is a linker script not supported by macOS ar(1), given that compile_et does not use at all the function from libroken which brings the dependency on libcrypt, bypass LIBADD dependency chain by using the old LDADD/DPADD mechanism, like it is done for other kerberos related bootstrap tools. --- usr.bin/compile_et/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/usr.bin/compile_et/Makefile b/usr.bin/compile_et/Makefile index 6305bfe3ddfd..621ba3dd101d 100644 --- a/usr.bin/compile_et/Makefile +++ b/usr.bin/compile_et/Makefile @@ -4,7 +4,18 @@ PACKAGE= kerberos PROG= compile_et SRCS= compile_et.c parse.y lex.l -LIBADD= roken vers +.if defined(BOOTSTRAPPING) +# compiler_et does not need the full libroken but just a bunch of the file +# in there, the buildsystem we have will trigger the full dependency chain +# when linking statically including libcrypt, which is a ldscript, not +# supported by macOS ar(1). +LIBROKEN_A= ${.OBJDIR:H:H}/kerberos5/lib/libroken/libroken.a +LDADD= ${LIBROKEN_A} +DPADD= ${LIBROKEN_A} +.else +LIBADD= roken +.endif +LIBADD+= vers CFLAGS+=-I. -I${SRCTOP}/contrib/com_err WARNS?= 0 From nobody Wed Nov 6 14:46:51 2024 X-Original-To: dev-commits-src-all@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 4Xk7MH45kgz5cgJf; Wed, 06 Nov 2024 14:46:51 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk7MH28nXz4ChM; Wed, 6 Nov 2024 14:46:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730904411; 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=0SWGC7Uiwygu2lYs5K0VvO+HS/hHbwaiAofJTCbhPJ8=; b=cMin7Qxctk0IFkmMv+l25dWoOuy5NXyOvxcQKZ4quVr1V2lkpPY6aHe6EDcx78AzGrJ9ws 5Eo9ek2cFfMNrsxIP9Yd84FwHit6fCD1DyAkPsiVVprwsd0pIajQv+stiX/yXqXDvUkmZF kJDu4ZqWYKU22/4rJPHHEdMy2aqkXaQD2ZgTQnwy39+YSgknakCj7nXPoD3/1wA4gTlszx VQZaJoGRjrJSTvAE301sE7nvfMyg+cM69ryJBJnHvCR2CIif5zAgs4gYm1f45YA8U+08y+ 2LIX9Ks5knJvVY3ExoDtpNR3Mq06uIfxL5Gr6zmmDQZ8rQ7UTUofHD4NGSLBhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730904411; 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=0SWGC7Uiwygu2lYs5K0VvO+HS/hHbwaiAofJTCbhPJ8=; b=BMEnpp++GV7lzSdQRHFHvIfxX9H1ASTF+PxEL3XRkiWvOkTNvkfZjzrCG6nLNyCbjWsa+u 7qEAoLfrrrI/0GX3h5f900r/628rXJ6tyW33IyOwgCY5kU8CsWcVP0OAF4QA+tbG8dOR0b h5nOFcIFRH+ZAEZ9aLeEJelIDOjbhYXm9e5RP+es+DQqsD/WCnqmeJZDHRYfumn/OZ1lz0 LQUvYsvtdp+WUE+uwvpkrtjRcM5B2MPcywQsK2/qhF+NEOXtoErevJ7MoH18Qtw2ePsUwE AfnB6YJagGX5/HyEdtUEC86PGQRA/GV/875P0Zb+f672QwikcPmge4CieMS9eg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730904411; a=rsa-sha256; cv=none; b=h9UvhrTKQjjrF/8ZUfxg1wxZv+ARiDQN4oCQk7g5akbGsaI0xxzhNW8LiJ6ngTEpzXC2Gk mvsy/QFUPIQIcc7WviIOAcHWKH3EnYT/RTwWh4z0ucj4pwzoB0j+A08ipzHsf7HP4wyxmu aTMWQk2y32/d+/yxeBngzDq4I1/xBttGmoktRHEgpqfgcT4/r4XMWl067gjX/b2JW5VUeZ qv0vE94/P9+1GdY3UOMfI0DjkKbZT+nY47BzskIJjvv3Iam0K4Hjhhcz+ppFFRgs8/+hL/ XFFKPDLMLjGJw5xd+0RU8Ud25uDVJS26VH0R71+xFOgX7v/XCOZSVPEMhYj77w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk7MH1c5lz15NL; Wed, 6 Nov 2024 14:46:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6Ekp1v083343; Wed, 6 Nov 2024 14:46:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6Ekprl083340; Wed, 6 Nov 2024 14:46:51 GMT (envelope-from git) Date: Wed, 6 Nov 2024 14:46:51 GMT Message-Id: <202411061446.4A6Ekprl083340@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Roger Pau =?utf-8?Q?Monn=C3=A9?= Subject: git: 6ac22dc3d823 - main - x86/xen: Use intended values in HVM_CALLBACK_VECTOR List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: royger X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6ac22dc3d82395b88f1d8a404aa9985306f06656 Auto-Submitted: auto-generated The branch main has been updated by royger: URL: https://cgit.FreeBSD.org/src/commit/?id=6ac22dc3d82395b88f1d8a404aa9985306f06656 commit 6ac22dc3d82395b88f1d8a404aa9985306f06656 Author: Alan Robinson AuthorDate: 2024-10-25 07:27:39 +0000 Commit: Roger Pau Monné CommitDate: 2024-11-06 14:46:05 +0000 x86/xen: Use intended values in HVM_CALLBACK_VECTOR Replace the HVM_CB_GSI_GSI SHIFT and MASK with the existing but currently unused HVM_CB_VECTOR_VECTOR_SHIFT and MASK. The binary values are identical. Reviewed by: Elliott Mitchell Reviewed by: royger Pull request: https://github.com/freebsd/freebsd-src/pull/1490 --- sys/xen/hvm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/xen/hvm.h b/sys/xen/hvm.h index 3ff3ee3c51e6..cc414b7b471d 100644 --- a/sys/xen/hvm.h +++ b/sys/xen/hvm.h @@ -87,7 +87,7 @@ enum { }; #define HVM_CALLBACK_VECTOR(vector) \ (((uint64_t)HVM_CB_TYPE_VECTOR << HVM_CB_TYPE_SHIFT) \ - | (((vector) & HVM_CB_GSI_GSI_MASK) << HVM_CB_GSI_GSI_SHIFT)) + | (((vector) & HVM_CB_VECTOR_VECTOR_MASK) << HVM_CB_VECTOR_VECTOR_SHIFT)) enum xen_hvm_init_type { XEN_HVM_INIT_EARLY, From nobody Wed Nov 6 15:17:41 2024 X-Original-To: dev-commits-src-all@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 4Xk82t1jf2z5ch6y; Wed, 06 Nov 2024 15:17:42 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk82t1N8Cz4G8r; Wed, 6 Nov 2024 15:17:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730906262; 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=Gqu9fxwcdVXLaGAcs7qqJI48FLVJYuYHk+P73mk7Igs=; b=dFf5U7EITjNOEAGWHY0O10fZKMotVkzHZwz9KE3lQsw8RHCbBTspisGW4eFTql5jZRLq5A t6Zq+olWumhmTjedYU5sIyEJNYabKXxebSSLhhNMBJJwcVDbw8RrZrTV4s7KOwmzK5vn8h i2VTnVHn7ir0rKNJ9h7BUSvDIw1TkAMRI5bip711a3HPw4ryWpkWlftsnoahcn36gkX5hh 0kIqJaBNtoy1fd9M0JQ8TfYA1fW+NUSKhvrF4RZ5GMlYu7N5gtrwvzDuTt/S3yqPFE+bgA oD+GTuYvkU9Qq+05l40E6qph73LwV3yHxmZXjHYdG7PrfpRYdwq8LTgwXPC1lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730906262; 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=Gqu9fxwcdVXLaGAcs7qqJI48FLVJYuYHk+P73mk7Igs=; b=ttATP90uz3kV357deVK9FI0B2tnjXJ2k/bG9jYXzMkk+/8O4ETWhz3L6+wf6EnqM/XsceG 3NSqyJW0dgU4WiY7CZiLrgvIrD3nyHQCe+KLg6Eo8MLhEAr0UMsTBrmrf+XaGCO0RtX0Jm DIARRr5ivTzw2LK0opNe1oDppD7mhOXBcVSAxxma6YKsnsHx0WhWMiaRZWrzqeEoIjtaV2 PGubb9W3ifK7Muv6Od2b640vZdxoVtEk/mLBULiI+ybRMerxBqN07mfKv6bFLa7bjlHYkU +CZOMw7JD7VumJOjr/U2Qbof7vi1Cuyl4OjcqEhaG8uk6pDfHNyHNjmu00yJJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730906262; a=rsa-sha256; cv=none; b=sa7GJZyd80tAaLF+qfj9JxHzMcoY2p8DYo2h4RVrdRdJ7BYOITkJDcVIVsX4P/P933hEGz 10U9v788+Uc1K1PopeZ8joCejlsSd3YasvofYXIbSM/skugXvMONoBvZSAcbHH2TjhCs74 cb5c196bTt5ORDEwODGf8rukOhKd1WD/IvIN1LS3cQktGN53jV/CKSM+ZlY+EvRmoy3dcM lYbhHa/mITot6p9qQhXDX5VXDHkiQdO0BLm/Rb/PHp43VyojuvqI+nJzyQFT7yRaY/ddfv Yae9Nu66zGI8wLsVoab3qd2wVNXNy0Nfci8Zj7ftiQLDnP3C2LhQNXRvlFhzpQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk82t0q6qz15M0; Wed, 6 Nov 2024 15:17:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6FHgFI043135; Wed, 6 Nov 2024 15:17:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6FHfYx043132; Wed, 6 Nov 2024 15:17:41 GMT (envelope-from git) Date: Wed, 6 Nov 2024 15:17:41 GMT Message-Id: <202411061517.4A6FHfYx043132@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: d438b4ef0cfc - main - gve: Add DQO RDA support List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d438b4ef0cfc6986b93d0754f49ebf3ead50f269 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d438b4ef0cfc6986b93d0754f49ebf3ead50f269 commit d438b4ef0cfc6986b93d0754f49ebf3ead50f269 Author: Shailend Chand AuthorDate: 2024-11-05 19:38:29 +0000 Commit: Mark Johnston CommitDate: 2024-11-06 15:06:41 +0000 gve: Add DQO RDA support DQO is the descriptor format for our next generation virtual NIC. It is necessary to make full use of the hardware bandwidth on many newer GCP VM shapes. One major change with DQO from its predecessor GQI is that it uses dual descriptor rings for both TX and RX queues. The TX path uses a descriptor ring to send descriptors to HW, and receives packet completion events on a TX completion ring. The RX path posts buffers to HW using an RX descriptor ring and receives incoming packets on an RX completion ring. In GQI-QPL, the hardware could not access arbitrary regions of guest memory, which is why there was a pre-negotitated bounce buffer (QPL: Queue Page List). DQO-RDA has no such limitation. "RDA" is in contrast to QPL and stands for "Raw DMA Addressing" which just means that HW does not need a fixed bounce buffer and can DMA arbitrary regions of guest memory. A subsequent patch will introduce the DQO-QPL datapath that uses the same descriptor format as in this patch, but will have a fixed bounce buffer. Signed-off-by: Shailend Chand Reviewed-by: markj MFC-after: 2 weeks Differential Revision: https://reviews.freebsd.org/D46690 --- share/man/man4/gve.4 | 53 +++- sys/conf/files | 2 + sys/dev/gve/gve.h | 213 +++++++++++-- sys/dev/gve/gve_adminq.c | 123 +++++++- sys/dev/gve/gve_adminq.h | 55 +++- sys/dev/gve/gve_dqo.h | 306 ++++++++++++++++++ sys/dev/gve/gve_main.c | 67 +++- sys/dev/gve/gve_plat.h | 3 + sys/dev/gve/gve_rx.c | 110 +++++-- sys/dev/gve/gve_rx_dqo.c | 633 +++++++++++++++++++++++++++++++++++++ sys/dev/gve/gve_sysctl.c | 60 +++- sys/dev/gve/gve_tx.c | 139 ++++++--- sys/dev/gve/gve_tx_dqo.c | 793 +++++++++++++++++++++++++++++++++++++++++++++++ sys/dev/gve/gve_utils.c | 46 ++- sys/modules/gve/Makefile | 12 +- 15 files changed, 2471 insertions(+), 144 deletions(-) diff --git a/share/man/man4/gve.4 b/share/man/man4/gve.4 index a674d6b64803..d42e4ae293a7 100644 --- a/share/man/man4/gve.4 +++ b/share/man/man4/gve.4 @@ -1,6 +1,6 @@ .\" SPDX-License-Identifier: BSD-3-Clause .\" -.\" Copyright (c) 2023 Google LLC +.\" Copyright (c) 2023-2024 Google LLC .\" .\" Redistribution and use in source and binary forms, with or without modification, .\" are permitted provided that the following conditions are met: @@ -26,7 +26,7 @@ .\" ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -.Dd April 26, 2023 +.Dd October 14, 2024 .Dt GVE 4 .Os .Sh NAME @@ -192,16 +192,61 @@ These two messages correspond to the NIC alerting the driver to link state chang .Pp Apart from these messages, the driver exposes per-queue packet and error counters as sysctl nodes. Global (across queues) counters can be read using -.Xr netstat 8 . +.Xr netstat 1 . +.Sh SYSCTL VARIABLES +.Nm +exposes the following +.Xr sysctl 8 +variables: +.Bl -tag -width indent +.It Va hw.gve.driver_version +The driver version. +This is read-only. +.It Va hw.gve.queue_format +The queue format in use. +This is read-only. +.It Va hw.gve.disable_hw_lro +Setting this boot-time tunable to 1 disables Large Receive Offload (LRO) in the NIC. +The default value is 0, which means hardware LRO is enabled by default. +The software LRO stack in the kernel is always used. +This sysctl variable needs to be set before loading the driver, using +.Xr loader.conf 5 . +.El .Sh LIMITATIONS .Nm does not support the transmission of VLAN-tagged packets. All VLAN-tagged traffic is dropped. +.Sh QUEUE FORMATS +.Nm +features different datapath modes called queue formats: +.Pp +.Bl -bullet -compact +.It +GQI_QPL: "QPL" stands for "Queue Page List" and refers to the fact that +hardware expects a fixed bounce buffer and cannot access arbitrary memory. +GQI is the older descriptor format. +The G in "GQI" refers to an older generation of hardware, and the "QI" +stands for "Queue In-order" referring to the fact that the NIC sends +Tx and Rx completions in the same order as the one in which the corresponding +descriptors were posted by the driver. +.It +DQO_RDA: DQO is the descriptor format required to take full advantage of +next generation VM shapes. +"RDA" stands for "Raw DMA Addressing" and refers to the fact that hardware +can work with DMA-ed packets and does not expect them to be copied into or +out of a fixed bounce buffer. +The D in "DQO" refers to a newer generation of hardware, and the "QO" +stands for "Queue Out-of-order" referring to the fact that the NIC might +send Tx and Rx completions in an order different from the one in which +the corresponding descriptors were posted by the driver. +.El .Sh SUPPORT Please email gvnic-drivers@google.com with the specifics of the issue encountered. .Sh SEE ALSO +.Xr netstat 1 , +.Xr loader.conf 5 , .Xr ifconfig 8 , -.Xr netstat 8 +.Xr sysctl 8 .Sh HISTORY The .Nm diff --git a/sys/conf/files b/sys/conf/files index d04e75be3793..7bf2cffe8b09 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1732,8 +1732,10 @@ dev/gve/gve_adminq.c optional gve dev/gve/gve_main.c optional gve dev/gve/gve_qpl.c optional gve dev/gve/gve_rx.c optional gve +dev/gve/gve_rx_dqo.c optional gve dev/gve/gve_sysctl.c optional gve dev/gve/gve_tx.c optional gve +dev/gve/gve_tx_dqo.c optional gve dev/gve/gve_utils.c optional gve dev/goldfish/goldfish_rtc.c optional goldfish_rtc fdt dev/gpio/acpi_gpiobus.c optional acpi gpio diff --git a/sys/dev/gve/gve.h b/sys/dev/gve/gve.h index c446199dff2d..98f1139c6bc2 100644 --- a/sys/dev/gve/gve.h +++ b/sys/dev/gve/gve.h @@ -1,7 +1,7 @@ /*- * SPDX-License-Identifier: BSD-3-Clause * - * Copyright (c) 2023 Google LLC + * Copyright (c) 2023-2024 Google LLC * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -53,6 +53,9 @@ /* Each RX bounce buffer page can fit two packet buffers. */ #define GVE_DEFAULT_RX_BUFFER_OFFSET (PAGE_SIZE / 2) +/* PTYPEs are always 10 bits. */ +#define GVE_NUM_PTYPES 1024 + /* * Number of descriptors per queue page list. * Page count AKA QPL size can be derived by dividing the number of elements in @@ -224,30 +227,61 @@ struct gve_rxq_stats { counter_u64_t rx_frag_copy_cnt; counter_u64_t rx_dropped_pkt_desc_err; counter_u64_t rx_dropped_pkt_mbuf_alloc_fail; + counter_u64_t rx_mbuf_dmamap_err; + counter_u64_t rx_mbuf_mclget_null; }; #define NUM_RX_STATS (sizeof(struct gve_rxq_stats) / sizeof(counter_u64_t)) +struct gve_rx_buf_dqo { + struct mbuf *mbuf; + bus_dmamap_t dmamap; + uint64_t addr; + bool mapped; + SLIST_ENTRY(gve_rx_buf_dqo) slist_entry; +}; + /* power-of-2 sized receive ring */ struct gve_rx_ring { struct gve_ring_com com; struct gve_dma_handle desc_ring_mem; - struct gve_dma_handle data_ring_mem; - - /* accessed in the receive hot path */ - struct { - struct gve_rx_desc *desc_ring; - union gve_rx_data_slot *data_ring; - struct gve_rx_slot_page_info *page_info; - - struct gve_rx_ctx ctx; - struct lro_ctrl lro; - uint8_t seq_no; /* helps traverse the descriptor ring */ - uint32_t cnt; /* free-running total number of completed packets */ - uint32_t fill_cnt; /* free-running total number of descs and buffs posted */ - uint32_t mask; /* masks the cnt and fill_cnt to the size of the ring */ - struct gve_rxq_stats stats; - } __aligned(CACHE_LINE_SIZE); + uint32_t cnt; /* free-running total number of completed packets */ + uint32_t fill_cnt; /* free-running total number of descs and buffs posted */ + + union { + /* GQI-only fields */ + struct { + struct gve_dma_handle data_ring_mem; + + /* accessed in the GQ receive hot path */ + struct gve_rx_desc *desc_ring; + union gve_rx_data_slot *data_ring; + struct gve_rx_slot_page_info *page_info; + uint32_t mask; /* masks the cnt and fill_cnt to the size of the ring */ + uint8_t seq_no; /* helps traverse the descriptor ring */ + }; + + /* DQO-only fields */ + struct { + struct gve_dma_handle compl_ring_mem; + + struct gve_rx_compl_desc_dqo *compl_ring; + struct gve_rx_desc_dqo *desc_ring; + struct gve_rx_buf_dqo *bufs; /* Parking place for posted buffers */ + bus_dma_tag_t buf_dmatag; /* To dmamap posted mbufs with */ + + uint32_t buf_cnt; /* Size of the bufs array */ + uint32_t mask; /* One less than the sizes of the desc and compl rings */ + uint32_t head; /* The index at which to post the next buffer at */ + uint32_t tail; /* The index at which to receive the next compl at */ + uint8_t cur_gen_bit; /* Gets flipped on every cycle of the compl ring */ + SLIST_HEAD(, gve_rx_buf_dqo) free_bufs; + } dqo; + }; + + struct lro_ctrl lro; + struct gve_rx_ctx ctx; + struct gve_rxq_stats stats; } __aligned(CACHE_LINE_SIZE); @@ -277,11 +311,26 @@ struct gve_txq_stats { counter_u64_t tx_dropped_pkt; counter_u64_t tx_dropped_pkt_nospace_device; counter_u64_t tx_dropped_pkt_nospace_bufring; + counter_u64_t tx_delayed_pkt_nospace_descring; + counter_u64_t tx_delayed_pkt_nospace_compring; + counter_u64_t tx_delayed_pkt_tsoerr; counter_u64_t tx_dropped_pkt_vlan; + counter_u64_t tx_mbuf_collapse; + counter_u64_t tx_mbuf_defrag; + counter_u64_t tx_mbuf_defrag_err; + counter_u64_t tx_mbuf_dmamap_enomem_err; + counter_u64_t tx_mbuf_dmamap_err; }; #define NUM_TX_STATS (sizeof(struct gve_txq_stats) / sizeof(counter_u64_t)) +struct gve_tx_pending_pkt_dqo { + struct mbuf *mbuf; + bus_dmamap_t dmamap; + uint8_t state; /* the gve_packet_state enum */ + int next; /* To chain the free_pending_pkts lists */ +}; + /* power-of-2 sized transmit ring */ struct gve_tx_ring { struct gve_ring_com com; @@ -290,22 +339,95 @@ struct gve_tx_ring { struct task xmit_task; struct taskqueue *xmit_tq; - /* accessed in the transmit hot path */ - struct { - union gve_tx_desc *desc_ring; - struct gve_tx_buffer_state *info; - struct buf_ring *br; + /* Accessed when writing descriptors */ + struct buf_ring *br; + struct mtx ring_mtx; + + uint32_t req; /* free-running total number of packets written to the nic */ + uint32_t done; /* free-running total number of completed packets */ + + union { + /* GQI specific stuff */ + struct { + union gve_tx_desc *desc_ring; + struct gve_tx_buffer_state *info; + + struct gve_tx_fifo fifo; + + uint32_t mask; /* masks the req and done to the size of the ring */ + }; + + /* DQO specific stuff */ + struct { + struct gve_dma_handle compl_ring_mem; + + /* Accessed when writing descriptors */ + struct { + union gve_tx_desc_dqo *desc_ring; + uint32_t desc_mask; /* masks head and tail to the size of desc_ring */ + uint32_t desc_head; /* last desc read by NIC, cached value of hw_tx_head */ + uint32_t desc_tail; /* last desc written by driver */ + uint32_t last_re_idx; /* desc which last had "report event" set */ + + /* + * The head index of a singly linked list containing pending packet objects + * to park mbufs till the NIC sends completions. Once this list is depleted, + * the "_prd" suffixed producer list, grown by the completion taskqueue, + * is stolen. + */ + int32_t free_pending_pkts_csm; + + bus_dma_tag_t buf_dmatag; /* DMA params for mapping Tx mbufs */ + } __aligned(CACHE_LINE_SIZE); + + /* Accessed when processing completions */ + struct { + struct gve_tx_compl_desc_dqo *compl_ring; + uint32_t compl_mask; /* masks head to the size of compl_ring */ + uint32_t compl_head; /* last completion read by driver */ + uint8_t cur_gen_bit; /* NIC flips a bit on every pass */ + uint32_t hw_tx_head; /* last desc read by NIC */ + + /* + * The completion taskqueue moves pending-packet objects to this + * list after freeing the mbuf. The "_prd" denotes that this is + * a producer list. The trasnmit taskqueue steals this list once + * its consumer list, with the "_csm" suffix, is depleted. + */ + int32_t free_pending_pkts_prd; + } __aligned(CACHE_LINE_SIZE); + + /* Accessed by both the completion and xmit loops */ + struct { + /* completion tags index into this array */ + struct gve_tx_pending_pkt_dqo *pending_pkts; + uint16_t num_pending_pkts; + } __aligned(CACHE_LINE_SIZE); + } dqo; + }; + struct gve_txq_stats stats; +} __aligned(CACHE_LINE_SIZE); - struct gve_tx_fifo fifo; - struct mtx ring_mtx; +enum gve_packet_state { + /* + * Packet does not yet have a dmamap created. + * This should always be zero since state is not explicitly initialized. + */ + GVE_PACKET_STATE_UNALLOCATED, + /* Packet has a dmamap and is in free list, available to be allocated. */ + GVE_PACKET_STATE_FREE, + /* Packet is expecting a regular data completion */ + GVE_PACKET_STATE_PENDING_DATA_COMPL, +}; - uint32_t req; /* free-running total number of packets written to the nic */ - uint32_t done; /* free-running total number of completed packets */ - uint32_t mask; /* masks the req and done to the size of the ring */ - struct gve_txq_stats stats; - } __aligned(CACHE_LINE_SIZE); +struct gve_ptype { + uint8_t l3_type; /* `gve_l3_type` in gve_adminq.h */ + uint8_t l4_type; /* `gve_l4_type` in gve_adminq.h */ +}; -} __aligned(CACHE_LINE_SIZE); +struct gve_ptype_lut { + struct gve_ptype ptypes[GVE_NUM_PTYPES]; +}; struct gve_priv { if_t ifp; @@ -348,6 +470,8 @@ struct gve_priv { struct gve_tx_ring *tx; struct gve_rx_ring *rx; + struct gve_ptype_lut *ptype_lut_dqo; + /* * Admin queue - see gve_adminq.h * Since AQ cmds do not run in steady state, 32 bit counters suffice @@ -370,6 +494,7 @@ struct gve_priv { uint32_t adminq_dcfg_device_resources_cnt; uint32_t adminq_set_driver_parameter_cnt; uint32_t adminq_verify_driver_compatibility_cnt; + uint32_t adminq_get_ptype_map_cnt; uint32_t interface_up_cnt; uint32_t interface_down_cnt; @@ -400,6 +525,12 @@ gve_clear_state_flag(struct gve_priv *priv, int pos) BIT_CLR_ATOMIC(GVE_NUM_STATE_FLAGS, pos, &priv->state_flags); } +static inline bool +gve_is_gqi(struct gve_priv *priv) +{ + return (priv->queue_format == GVE_GQI_QPL_FORMAT); +} + /* Defined in gve_main.c */ void gve_schedule_reset(struct gve_priv *priv); @@ -407,6 +538,7 @@ void gve_schedule_reset(struct gve_priv *priv); uint32_t gve_reg_bar_read_4(struct gve_priv *priv, bus_size_t offset); void gve_reg_bar_write_4(struct gve_priv *priv, bus_size_t offset, uint32_t val); void gve_db_bar_write_4(struct gve_priv *priv, bus_size_t offset, uint32_t val); +void gve_db_bar_dqo_write_4(struct gve_priv *priv, bus_size_t offset, uint32_t val); /* QPL (Queue Page List) functions defined in gve_qpl.c */ int gve_alloc_qpls(struct gve_priv *priv); @@ -425,6 +557,14 @@ void gve_qflush(if_t ifp); void gve_xmit_tq(void *arg, int pending); void gve_tx_cleanup_tq(void *arg, int pending); +/* TX functions defined in gve_tx_dqo.c */ +int gve_tx_alloc_ring_dqo(struct gve_priv *priv, int i); +void gve_tx_free_ring_dqo(struct gve_priv *priv, int i); +void gve_clear_tx_ring_dqo(struct gve_priv *priv, int i); +int gve_tx_intr_dqo(void *arg); +int gve_xmit_dqo(struct gve_tx_ring *tx, struct mbuf **mbuf_ptr); +void gve_tx_cleanup_tq_dqo(void *arg, int pending); + /* RX functions defined in gve_rx.c */ int gve_alloc_rx_rings(struct gve_priv *priv); void gve_free_rx_rings(struct gve_priv *priv); @@ -433,6 +573,14 @@ int gve_destroy_rx_rings(struct gve_priv *priv); int gve_rx_intr(void *arg); void gve_rx_cleanup_tq(void *arg, int pending); +/* RX functions defined in gve_rx_dqo.c */ +int gve_rx_alloc_ring_dqo(struct gve_priv *priv, int i); +void gve_rx_free_ring_dqo(struct gve_priv *priv, int i); +void gve_rx_prefill_buffers_dqo(struct gve_rx_ring *rx); +void gve_clear_rx_ring_dqo(struct gve_priv *priv, int i); +int gve_rx_intr_dqo(void *arg); +void gve_rx_cleanup_tq_dqo(void *arg, int pending); + /* DMA functions defined in gve_utils.c */ int gve_dma_alloc_coherent(struct gve_priv *priv, int size, int align, struct gve_dma_handle *dma); @@ -447,7 +595,10 @@ int gve_alloc_irqs(struct gve_priv *priv); void gve_unmask_all_queue_irqs(struct gve_priv *priv); void gve_mask_all_queue_irqs(struct gve_priv *priv); -/* Systcl functions defined in gve_sysctl.c*/ +/* Systcl functions defined in gve_sysctl.c */ +extern bool gve_disable_hw_lro; +extern char gve_queue_format[8]; +extern char gve_version[8]; void gve_setup_sysctl(struct gve_priv *priv); void gve_accum_stats(struct gve_priv *priv, uint64_t *rpackets, uint64_t *rbytes, uint64_t *rx_dropped_pkt, uint64_t *tpackets, diff --git a/sys/dev/gve/gve_adminq.c b/sys/dev/gve/gve_adminq.c index 3c332607ebd4..7865b979888b 100644 --- a/sys/dev/gve/gve_adminq.c +++ b/sys/dev/gve/gve_adminq.c @@ -1,7 +1,7 @@ /*- * SPDX-License-Identifier: BSD-3-Clause * - * Copyright (c) 2023 Google LLC + * Copyright (c) 2023-2024 Google LLC * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -57,6 +57,7 @@ void gve_parse_device_option(struct gve_priv *priv, struct gve_device_descriptor *device_descriptor, struct gve_device_option *option, struct gve_device_option_gqi_qpl **dev_op_gqi_qpl, + struct gve_device_option_dqo_rda **dev_op_dqo_rda, struct gve_device_option_jumbo_frames **dev_op_jumbo_frames) { uint32_t req_feat_mask = be32toh(option->required_features_mask); @@ -85,6 +86,23 @@ void gve_parse_device_option(struct gve_priv *priv, *dev_op_gqi_qpl = (void *)(option + 1); break; + case GVE_DEV_OPT_ID_DQO_RDA: + if (option_length < sizeof(**dev_op_dqo_rda) || + req_feat_mask != GVE_DEV_OPT_REQ_FEAT_MASK_DQO_RDA) { + device_printf(priv->dev, GVE_DEVICE_OPTION_ERROR_FMT, + "DQO RDA", (int)sizeof(**dev_op_dqo_rda), + GVE_DEV_OPT_REQ_FEAT_MASK_DQO_RDA, + option_length, req_feat_mask); + break; + } + + if (option_length > sizeof(**dev_op_dqo_rda)) { + device_printf(priv->dev, GVE_DEVICE_OPTION_TOO_BIG_FMT, + "DQO RDA"); + } + *dev_op_dqo_rda = (void *)(option + 1); + break; + case GVE_DEV_OPT_ID_JUMBO_FRAMES: if (option_length < sizeof(**dev_op_jumbo_frames) || req_feat_mask != GVE_DEV_OPT_REQ_FEAT_MASK_JUMBO_FRAMES) { @@ -117,6 +135,7 @@ static int gve_process_device_options(struct gve_priv *priv, struct gve_device_descriptor *descriptor, struct gve_device_option_gqi_qpl **dev_op_gqi_qpl, + struct gve_device_option_dqo_rda **dev_op_dqo_rda, struct gve_device_option_jumbo_frames **dev_op_jumbo_frames) { char *desc_end = (char *)descriptor + be16toh(descriptor->total_length); @@ -130,12 +149,12 @@ gve_process_device_options(struct gve_priv *priv, if ((char *)(dev_opt + 1) > desc_end || (char *)(dev_opt + 1) + be16toh(dev_opt->option_length) > desc_end) { device_printf(priv->dev, - "options exceed device_descriptor's total length.\n"); + "options exceed device descriptor's total length.\n"); return (EINVAL); } gve_parse_device_option(priv, descriptor, dev_opt, - dev_op_gqi_qpl, dev_op_jumbo_frames); + dev_op_gqi_qpl, dev_op_dqo_rda, dev_op_jumbo_frames); dev_opt = (void *)((char *)(dev_opt + 1) + be16toh(dev_opt->option_length)); } @@ -221,16 +240,35 @@ gve_adminq_create_rx_queue(struct gve_priv *priv, uint32_t queue_index) cmd.opcode = htobe32(GVE_ADMINQ_CREATE_RX_QUEUE); cmd.create_rx_queue = (struct gve_adminq_create_rx_queue) { .queue_id = htobe32(queue_index), - .index = htobe32(queue_index), .ntfy_id = htobe32(rx->com.ntfy_id), .queue_resources_addr = htobe64(qres_dma->bus_addr), - .rx_desc_ring_addr = htobe64(rx->desc_ring_mem.bus_addr), - .rx_data_ring_addr = htobe64(rx->data_ring_mem.bus_addr), - .queue_page_list_id = htobe32((rx->com.qpl)->id), .rx_ring_size = htobe16(priv->rx_desc_cnt), .packet_buffer_size = htobe16(GVE_DEFAULT_RX_BUFFER_SIZE), }; + if (gve_is_gqi(priv)) { + cmd.create_rx_queue.rx_desc_ring_addr = + htobe64(rx->desc_ring_mem.bus_addr); + cmd.create_rx_queue.rx_data_ring_addr = + htobe64(rx->data_ring_mem.bus_addr); + cmd.create_rx_queue.index = + htobe32(queue_index); + cmd.create_rx_queue.queue_page_list_id = + htobe32((rx->com.qpl)->id); + } else { + cmd.create_rx_queue.queue_page_list_id = + htobe32(GVE_RAW_ADDRESSING_QPL_ID); + cmd.create_rx_queue.rx_desc_ring_addr = + htobe64(rx->dqo.compl_ring_mem.bus_addr); + cmd.create_rx_queue.rx_data_ring_addr = + htobe64(rx->desc_ring_mem.bus_addr); + cmd.create_rx_queue.rx_buff_ring_size = + htobe16(priv->rx_desc_cnt); + cmd.create_rx_queue.enable_rsc = + !!((if_getcapenable(priv->ifp) & IFCAP_LRO) && + !gve_disable_hw_lro); + } + return (gve_adminq_execute_cmd(priv, &cmd)); } @@ -272,11 +310,21 @@ gve_adminq_create_tx_queue(struct gve_priv *priv, uint32_t queue_index) .queue_id = htobe32(queue_index), .queue_resources_addr = htobe64(qres_dma->bus_addr), .tx_ring_addr = htobe64(tx->desc_ring_mem.bus_addr), - .queue_page_list_id = htobe32((tx->com.qpl)->id), .ntfy_id = htobe32(tx->com.ntfy_id), .tx_ring_size = htobe16(priv->tx_desc_cnt), }; + if (gve_is_gqi(priv)) { + cmd.create_tx_queue.queue_page_list_id = + htobe32((tx->com.qpl)->id); + } else { + cmd.create_tx_queue.queue_page_list_id = + htobe32(GVE_RAW_ADDRESSING_QPL_ID); + cmd.create_tx_queue.tx_comp_ring_addr = + htobe64(tx->dqo.compl_ring_mem.bus_addr); + cmd.create_tx_queue.tx_comp_ring_size = + htobe16(priv->tx_desc_cnt); + } return (gve_adminq_execute_cmd(priv, &cmd)); } @@ -338,6 +386,7 @@ gve_adminq_describe_device(struct gve_priv *priv) struct gve_device_descriptor *desc; struct gve_dma_handle desc_mem; struct gve_device_option_gqi_qpl *dev_op_gqi_qpl = NULL; + struct gve_device_option_dqo_rda *dev_op_dqo_rda = NULL; struct gve_device_option_jumbo_frames *dev_op_jumbo_frames = NULL; uint32_t supported_features_mask = 0; int rc; @@ -366,12 +415,24 @@ gve_adminq_describe_device(struct gve_priv *priv) bus_dmamap_sync(desc_mem.tag, desc_mem.map, BUS_DMASYNC_POSTREAD); - rc = gve_process_device_options(priv, desc, &dev_op_gqi_qpl, + rc = gve_process_device_options(priv, desc, + &dev_op_gqi_qpl, &dev_op_dqo_rda, &dev_op_jumbo_frames); if (rc != 0) goto free_device_descriptor; - if (dev_op_gqi_qpl != NULL) { + if (dev_op_dqo_rda != NULL) { + snprintf(gve_queue_format, sizeof(gve_queue_format), + "%s", "DQO RDA"); + priv->queue_format = GVE_DQO_RDA_FORMAT; + supported_features_mask = be32toh( + dev_op_dqo_rda->supported_features_mask); + if (bootverbose) + device_printf(priv->dev, + "Driver is running with DQO RDA queue format.\n"); + } else if (dev_op_gqi_qpl != NULL) { + snprintf(gve_queue_format, sizeof(gve_queue_format), + "%s", "GQI QPL"); priv->queue_format = GVE_GQI_QPL_FORMAT; supported_features_mask = be32toh( dev_op_gqi_qpl->supported_features_mask); @@ -380,7 +441,7 @@ gve_adminq_describe_device(struct gve_priv *priv) "Driver is running with GQI QPL queue format.\n"); } else { device_printf(priv->dev, "No compatible queue formats\n"); - rc = (EINVAL); + rc = EINVAL; goto free_device_descriptor; } @@ -506,6 +567,41 @@ gve_adminq_verify_driver_compatibility(struct gve_priv *priv, return (gve_adminq_execute_cmd(priv, &aq_cmd)); } +int +gve_adminq_get_ptype_map_dqo(struct gve_priv *priv, + struct gve_ptype_lut *ptype_lut_dqo) +{ + struct gve_adminq_command aq_cmd = (struct gve_adminq_command){}; + struct gve_ptype_map *ptype_map; + struct gve_dma_handle dma; + int err = 0; + int i; + + err = gve_dma_alloc_coherent(priv, sizeof(*ptype_map), PAGE_SIZE, &dma); + if (err) + return (err); + ptype_map = dma.cpu_addr; + + aq_cmd.opcode = htobe32(GVE_ADMINQ_GET_PTYPE_MAP); + aq_cmd.get_ptype_map = (struct gve_adminq_get_ptype_map) { + .ptype_map_len = htobe64(sizeof(*ptype_map)), + .ptype_map_addr = htobe64(dma.bus_addr), + }; + + err = gve_adminq_execute_cmd(priv, &aq_cmd); + if (err) + goto err; + + /* Populate ptype_lut_dqo. */ + for (i = 0; i < GVE_NUM_PTYPES; i++) { + ptype_lut_dqo->ptypes[i].l3_type = ptype_map->ptypes[i].l3_type; + ptype_lut_dqo->ptypes[i].l4_type = ptype_map->ptypes[i].l4_type; + } +err: + gve_dma_free_coherent(&dma); + return (err); +} + int gve_adminq_alloc(struct gve_priv *priv) { @@ -543,6 +639,7 @@ gve_adminq_alloc(struct gve_priv *priv) priv->adminq_destroy_rx_queue_cnt = 0; priv->adminq_dcfg_device_resources_cnt = 0; priv->adminq_set_driver_parameter_cnt = 0; + priv->adminq_get_ptype_map_cnt = 0; gve_reg_bar_write_4(priv, GVE_REG_ADMINQ_ADDR, priv->adminq_bus_addr / ADMINQ_SIZE); @@ -772,6 +869,10 @@ gve_adminq_issue_cmd(struct gve_priv *priv, struct gve_adminq_command *cmd_orig) priv->adminq_verify_driver_compatibility_cnt++; break; + case GVE_ADMINQ_GET_PTYPE_MAP: + priv->adminq_get_ptype_map_cnt++; + break; + default: device_printf(priv->dev, "Unknown AQ command opcode %d\n", opcode); } diff --git a/sys/dev/gve/gve_adminq.h b/sys/dev/gve/gve_adminq.h index 5923e5f353d1..b5d512331d42 100644 --- a/sys/dev/gve/gve_adminq.h +++ b/sys/dev/gve/gve_adminq.h @@ -1,7 +1,7 @@ /*- * SPDX-License-Identifier: BSD-3-Clause * - * Copyright (c) 2023 Google LLC + * Copyright (c) 2023-2024 Google LLC * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -137,9 +137,11 @@ _Static_assert(sizeof(struct gve_device_option_gqi_qpl) == 4, struct gve_device_option_dqo_rda { __be32 supported_features_mask; + __be16 tx_comp_ring_entries; + __be16 rx_buff_ring_entries; }; -_Static_assert(sizeof(struct gve_device_option_dqo_rda) == 4, +_Static_assert(sizeof(struct gve_device_option_dqo_rda) == 8, "gve: bad admin queue struct length"); struct gve_device_option_modify_ring { @@ -196,7 +198,6 @@ enum gve_driver_capability { gve_driver_capability_gqi_rda = 1, gve_driver_capability_dqo_qpl = 2, /* reserved for future use */ gve_driver_capability_dqo_rda = 3, - gve_driver_capability_alt_miss_compl = 4, }; #define GVE_CAP1(a) BIT((int) a) @@ -209,7 +210,9 @@ enum gve_driver_capability { * Only a few bits (as shown in `gve_driver_compatibility`) are currently * defined. The rest are reserved for future use. */ -#define GVE_DRIVER_CAPABILITY_FLAGS1 (GVE_CAP1(gve_driver_capability_gqi_qpl)) +#define GVE_DRIVER_CAPABILITY_FLAGS1 \ + (GVE_CAP1(gve_driver_capability_gqi_qpl) | \ + GVE_CAP1(gve_driver_capability_dqo_rda)) #define GVE_DRIVER_CAPABILITY_FLAGS2 0x0 #define GVE_DRIVER_CAPABILITY_FLAGS3 0x0 #define GVE_DRIVER_CAPABILITY_FLAGS4 0x0 @@ -282,6 +285,8 @@ struct gve_adminq_create_tx_queue { _Static_assert(sizeof(struct gve_adminq_create_tx_queue) == 48, "gve: bad admin queue struct length"); +#define GVE_RAW_ADDRESSING_QPL_ID 0xFFFFFFFF + struct gve_adminq_create_rx_queue { __be32 queue_id; __be32 index; @@ -352,6 +357,23 @@ struct stats { _Static_assert(sizeof(struct stats) == 16, "gve: bad admin queue struct length"); +/* These are control path types for PTYPE which are the same as the data path + * types. + */ +struct gve_ptype_entry { + uint8_t l3_type; + uint8_t l4_type; +}; + +struct gve_ptype_map { + struct gve_ptype_entry ptypes[1 << 10]; /* PTYPES are always 10 bits. */ +}; + +struct gve_adminq_get_ptype_map { + __be64 ptype_map_len; + __be64 ptype_map_addr; +}; + struct gve_adminq_command { __be32 opcode; __be32 status; @@ -368,6 +390,7 @@ struct gve_adminq_command { struct gve_adminq_set_driver_parameter set_driver_param; struct gve_adminq_verify_driver_compatibility verify_driver_compatibility; + struct gve_adminq_get_ptype_map get_ptype_map; uint8_t reserved[56]; }; }; @@ -375,6 +398,24 @@ struct gve_adminq_command { _Static_assert(sizeof(struct gve_adminq_command) == 64, "gve: bad admin queue struct length"); +enum gve_l3_type { + /* Must be zero so zero initialized LUT is unknown. */ + GVE_L3_TYPE_UNKNOWN = 0, + GVE_L3_TYPE_OTHER, + GVE_L3_TYPE_IPV4, + GVE_L3_TYPE_IPV6, +}; + +enum gve_l4_type { + /* Must be zero so zero initialized LUT is unknown. */ + GVE_L4_TYPE_UNKNOWN = 0, + GVE_L4_TYPE_OTHER, + GVE_L4_TYPE_TCP, + GVE_L4_TYPE_UDP, + GVE_L4_TYPE_ICMP, + GVE_L4_TYPE_SCTP, +}; + int gve_adminq_create_rx_queues(struct gve_priv *priv, uint32_t num_queues); int gve_adminq_create_tx_queues(struct gve_priv *priv, uint32_t num_queues); int gve_adminq_destroy_tx_queues(struct gve_priv *priv, uint32_t num_queues); @@ -387,8 +428,10 @@ int gve_adminq_configure_device_resources(struct gve_priv *priv); int gve_adminq_deconfigure_device_resources(struct gve_priv *priv); void gve_release_adminq(struct gve_priv *priv); int gve_adminq_register_page_list(struct gve_priv *priv, - struct gve_queue_page_list *qpl); + struct gve_queue_page_list *qpl); int gve_adminq_unregister_page_list(struct gve_priv *priv, uint32_t page_list_id); int gve_adminq_verify_driver_compatibility(struct gve_priv *priv, - uint64_t driver_info_len, vm_paddr_t driver_info_addr); + uint64_t driver_info_len, vm_paddr_t driver_info_addr); +int gve_adminq_get_ptype_map_dqo(struct gve_priv *priv, + struct gve_ptype_lut *ptype_lut); #endif /* _GVE_AQ_H_ */ diff --git a/sys/dev/gve/gve_dqo.h b/sys/dev/gve/gve_dqo.h new file mode 100644 index 000000000000..5f3f36d2245f --- /dev/null +++ b/sys/dev/gve/gve_dqo.h @@ -0,0 +1,306 @@ +/*- + * SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (c) 2024 Google LLC + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its contributors + * may be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* GVE DQO Descriptor formats */ + +#ifndef _GVE_DESC_DQO_H_ +#define _GVE_DESC_DQO_H_ + +#include "gve_plat.h" + +#define GVE_ITR_ENABLE_BIT_DQO BIT(0) +#define GVE_ITR_NO_UPDATE_DQO (3 << 3) +#define GVE_ITR_INTERVAL_DQO_SHIFT 5 +#define GVE_ITR_INTERVAL_DQO_MASK ((1 << 12) - 1) +#define GVE_TX_IRQ_RATELIMIT_US_DQO 50 +#define GVE_RX_IRQ_RATELIMIT_US_DQO 20 + +#define GVE_TX_MAX_HDR_SIZE_DQO 255 +#define GVE_TX_MIN_TSO_MSS_DQO 88 + +/* + * Ringing the doorbell too often can hurt performance. + * + * HW requires this value to be at least 8. + */ +#define GVE_RX_BUF_THRESH_DQO 32 + +/* + * Start dropping RX fragments if at least these many + * buffers cannot be posted to the NIC. + */ +#define GVE_RX_DQO_MIN_PENDING_BUFS 32 + +/* Basic TX descriptor (DTYPE 0x0C) */ +struct gve_tx_pkt_desc_dqo { + __le64 buf_addr; + + /* Must be GVE_TX_PKT_DESC_DTYPE_DQO (0xc) */ + uint8_t dtype:5; + + /* Denotes the last descriptor of a packet. */ + uint8_t end_of_packet:1; + uint8_t checksum_offload_enable:1; + + /* If set, will generate a descriptor completion for this descriptor. */ + uint8_t report_event:1; + uint8_t reserved0; + __le16 reserved1; + + /* The TX completion for this packet will contain this tag. */ + __le16 compl_tag; + uint16_t buf_size:14; + uint16_t reserved2:2; +} __packed; +_Static_assert(sizeof(struct gve_tx_pkt_desc_dqo) == 16, + "gve: bad dqo desc struct length"); + +#define GVE_TX_PKT_DESC_DTYPE_DQO 0xc + +/* + * Maximum number of data descriptors allowed per packet, or per-TSO segment. + */ +#define GVE_TX_MAX_DATA_DESCS_DQO 10 +#define GVE_TX_MAX_BUF_SIZE_DQO ((16 * 1024) - 1) +#define GVE_TSO_MAXSIZE_DQO IP_MAXPACKET + +_Static_assert(GVE_TX_MAX_BUF_SIZE_DQO * GVE_TX_MAX_DATA_DESCS_DQO >= + GVE_TSO_MAXSIZE_DQO, + "gve: bad tso parameters"); + +/* + * "report_event" on TX packet descriptors may only be reported on the last + * descriptor of a TX packet, and they must be spaced apart with at least this + * value. + */ +#define GVE_TX_MIN_RE_INTERVAL 32 + +struct gve_tx_context_cmd_dtype { + uint8_t dtype:5; + uint8_t tso:1; + uint8_t reserved1:2; + uint8_t reserved2; +}; + +_Static_assert(sizeof(struct gve_tx_context_cmd_dtype) == 2, + "gve: bad dqo desc struct length"); + +/* + * TX Native TSO Context DTYPE (0x05) + * + * "flex" fields allow the driver to send additional packet context to HW. + */ +struct gve_tx_tso_context_desc_dqo { + /* The L4 payload bytes that should be segmented. */ + uint32_t tso_total_len:24; + uint32_t flex10:8; + + /* Max segment size in TSO excluding headers. */ + uint16_t mss:14; + uint16_t reserved:2; + + uint8_t header_len; /* Header length to use for TSO offload */ + uint8_t flex11; + struct gve_tx_context_cmd_dtype cmd_dtype; + uint8_t flex0; + uint8_t flex5; + uint8_t flex6; + uint8_t flex7; + uint8_t flex8; + uint8_t flex9; +} __packed; +_Static_assert(sizeof(struct gve_tx_tso_context_desc_dqo) == 16, + "gve: bad dqo desc struct length"); + +#define GVE_TX_TSO_CTX_DESC_DTYPE_DQO 0x5 + +/* General context descriptor for sending metadata. */ *** 2431 LINES SKIPPED *** From nobody Wed Nov 6 15:17:43 2024 X-Original-To: dev-commits-src-all@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 4Xk82v20HJz5chX7; Wed, 06 Nov 2024 15:17:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk82v1XMdz4GHk; Wed, 6 Nov 2024 15:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730906263; 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=vJ14m3e+HhbwlgZszMX9m7VcXIpdK4BG3Mp+SRX28LE=; b=hHwKSJRMQQi4/JPxNRi+5kAi0yQ6rgbUaGByRmQulp1X64X+mB/H/OcyaLAJTmrXUXaWSz zDfduZHdwCKUmmnUNxDqEDgE2GS6Dm9YpJO27r2qDWKdcQJisJDj5dpbZyk3fhM7lDpHQm D2AJbt6GsHYua/VYrGPZMOQ3j/jmk7OWwj0sak7NNmwLtMfDGSThgWUNfiT5LdQl/Cfkn0 sH3tRTzRXq9zyPtJ4sTP83eUPRUBcXe16WnRPRK3+WmZtmHDE4OPXZk6fUPe0ZMARnixLQ m2BOY6Z32y31l72blnqCM0QXi/EEF9Lx4fC1OmD8xlj3pJs6yko6gqasJyEX+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730906263; 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=vJ14m3e+HhbwlgZszMX9m7VcXIpdK4BG3Mp+SRX28LE=; b=NVFMla84d/N8rxe3RowDHiwqM8UClQpmzoWrQaKT8pNqDbS8eaNzT57+YNRbupN+YN50K5 KDjV24InOthT8ceIUGFTbxl21ukhLWgEWTCVXD+vZTTtgVeBkpOG6Fm6I9dQyW7sfLqaL9 +GdoGHb0ZHunOLbc1Dmdym6ixpiAGZXsmY4+BMX1JZO3S1+snmWPNDfIiKUmU2pt870SoR I8SKtdeoWlqsVgl4Ieros519z3cdAESQDxHFxpsW86bONHq/2gCFCu98MPHu40dWNzzfNW SiM32CxDLcMJmGKQSawDUB3YuO/7WWjJJbr8gBiD9ATXhxP6noL/kJk09XiNtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730906263; a=rsa-sha256; cv=none; b=sL7z5yph8NE9KxmNrezr7NjPXatCpEKQomv072CR5eAr3TyubY/y6nOGrGIr82jTCeYwrN tS+5TybCUSmXCC/dkCmLPzeJd2PPMzhbTVy1E+GRC49LYXepbMoCCIKqI/qiVb/G085eDc h8O4EIXWG+E1jg5rSCdIqrF3KpjBw5T0sq+O9/vXO6WMkvn0pADSpq2KcgOVR3x5lL8V35 vAUYDGiMoGVtPevhnfK5al8nMeQuZb8lnmGW1IRefB5WZdT8iKrYdCh+oQuq+7TDQvDHKI klHpM1rqEK6iU25synuZq3oyLF1rlBczCS4qLi5IyjrIzcU4CIg+qeEn1mlfyQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk82v18Jzz15M1; Wed, 6 Nov 2024 15:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6FHhmb043183; Wed, 6 Nov 2024 15:17:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6FHhnE043180; Wed, 6 Nov 2024 15:17:43 GMT (envelope-from git) Date: Wed, 6 Nov 2024 15:17:43 GMT Message-Id: <202411061517.4A6FHhnE043180@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 2348ac893d10 - main - gve: Add DQO QPL support List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2348ac893d10f06d2d84e1e4bd5ca9f1c5da92d8 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2348ac893d10f06d2d84e1e4bd5ca9f1c5da92d8 commit 2348ac893d10f06d2d84e1e4bd5ca9f1c5da92d8 Author: Shailend Chand AuthorDate: 2024-11-05 19:38:30 +0000 Commit: Mark Johnston CommitDate: 2024-11-06 15:06:41 +0000 gve: Add DQO QPL support DQO is the descriptor format for our next generation virtual NIC. It is necessary to make full use of the hardware bandwidth on many newer GCP VM shapes. This patch extends the previously introduced DQO descriptor format with a "QPL" mode. QPL stands for Queue Page List and refers to the fact that the hardware cannot access arbitrary regions of the host memory and instead expects a fixed bounce buffer comprising of a list of pages. The QPL aspects are similar to the already existing GQI queue queue format: in that the mbufs being input in the Rx path have external storage in the form of vm pages attached to them; and in the Tx path we always copy the mbuf payload into QPL pages. Signed-off-by: Shailend Chand Reviewed-by: markj MFC-after: 2 weeks Differential Revision: https://reviews.freebsd.org/D46691 --- share/man/man4/gve.4 | 2 + sys/dev/gve/gve.h | 101 ++++++++++- sys/dev/gve/gve_adminq.c | 38 +++- sys/dev/gve/gve_adminq.h | 14 +- sys/dev/gve/gve_dqo.h | 17 +- sys/dev/gve/gve_main.c | 20 ++- sys/dev/gve/gve_qpl.c | 32 +++- sys/dev/gve/gve_rx.c | 18 -- sys/dev/gve/gve_rx_dqo.c | 449 +++++++++++++++++++++++++++++++++++++++++++---- sys/dev/gve/gve_sysctl.c | 8 + sys/dev/gve/gve_tx.c | 5 +- sys/dev/gve/gve_tx_dqo.c | 425 ++++++++++++++++++++++++++++++++++++-------- 12 files changed, 983 insertions(+), 146 deletions(-) diff --git a/share/man/man4/gve.4 b/share/man/man4/gve.4 index d42e4ae293a7..5f58a4c1a503 100644 --- a/share/man/man4/gve.4 +++ b/share/man/man4/gve.4 @@ -239,6 +239,8 @@ The D in "DQO" refers to a newer generation of hardware, and the "QO" stands for "Queue Out-of-order" referring to the fact that the NIC might send Tx and Rx completions in an order different from the one in which the corresponding descriptors were posted by the driver. +.It +DQO_QPL: The next generation descriptor format in the "QPL" mode. .El .Sh SUPPORT Please email gvnic-drivers@google.com with the specifics of the issue encountered. diff --git a/sys/dev/gve/gve.h b/sys/dev/gve/gve.h index 98f1139c6bc2..43082d64ba95 100644 --- a/sys/dev/gve/gve.h +++ b/sys/dev/gve/gve.h @@ -105,6 +105,7 @@ enum gve_queue_format { GVE_GQI_RDA_FORMAT = 0x1, GVE_GQI_QPL_FORMAT = 0x2, GVE_DQO_RDA_FORMAT = 0x3, + GVE_DQO_QPL_FORMAT = 0x4, }; enum gve_state_flags_bit { @@ -226,6 +227,7 @@ struct gve_rxq_stats { counter_u64_t rx_frag_flip_cnt; counter_u64_t rx_frag_copy_cnt; counter_u64_t rx_dropped_pkt_desc_err; + counter_u64_t rx_dropped_pkt_buf_post_fail; counter_u64_t rx_dropped_pkt_mbuf_alloc_fail; counter_u64_t rx_mbuf_dmamap_err; counter_u64_t rx_mbuf_mclget_null; @@ -233,11 +235,34 @@ struct gve_rxq_stats { #define NUM_RX_STATS (sizeof(struct gve_rxq_stats) / sizeof(counter_u64_t)) +union gve_rx_qpl_buf_id_dqo { + struct { + uint16_t buf_id:11; /* Index into rx->dqo.bufs */ + uint8_t frag_num:5; /* Which frag in the QPL page */ + }; + uint16_t all; +} __packed; +_Static_assert(sizeof(union gve_rx_qpl_buf_id_dqo) == 2, + "gve: bad dqo qpl rx buf id length"); + struct gve_rx_buf_dqo { - struct mbuf *mbuf; - bus_dmamap_t dmamap; - uint64_t addr; - bool mapped; + union { + /* RDA */ + struct { + struct mbuf *mbuf; + bus_dmamap_t dmamap; + uint64_t addr; + bool mapped; + }; + /* QPL */ + struct { + uint8_t num_nic_frags; /* number of pending completions */ + uint8_t next_idx; /* index of the next frag to post */ + /* for chaining rx->dqo.used_bufs */ + STAILQ_ENTRY(gve_rx_buf_dqo) stailq_entry; + }; + }; + /* for chaining rx->dqo.free_bufs */ SLIST_ENTRY(gve_rx_buf_dqo) slist_entry; }; @@ -276,6 +301,13 @@ struct gve_rx_ring { uint32_t tail; /* The index at which to receive the next compl at */ uint8_t cur_gen_bit; /* Gets flipped on every cycle of the compl ring */ SLIST_HEAD(, gve_rx_buf_dqo) free_bufs; + + /* + * Only used in QPL mode. Pages refered to by if_input-ed mbufs + * stay parked here till their wire count comes back to 1. + * Pages are moved here after there aren't any pending completions. + */ + STAILQ_HEAD(, gve_rx_buf_dqo) used_bufs; } dqo; }; @@ -313,6 +345,7 @@ struct gve_txq_stats { counter_u64_t tx_dropped_pkt_nospace_bufring; counter_u64_t tx_delayed_pkt_nospace_descring; counter_u64_t tx_delayed_pkt_nospace_compring; + counter_u64_t tx_delayed_pkt_nospace_qpl_bufs; counter_u64_t tx_delayed_pkt_tsoerr; counter_u64_t tx_dropped_pkt_vlan; counter_u64_t tx_mbuf_collapse; @@ -326,7 +359,19 @@ struct gve_txq_stats { struct gve_tx_pending_pkt_dqo { struct mbuf *mbuf; - bus_dmamap_t dmamap; + union { + /* RDA */ + bus_dmamap_t dmamap; + /* QPL */ + struct { + /* + * A linked list of entries from qpl_bufs that served + * as the bounce buffer for this packet. + */ + int32_t qpl_buf_head; + uint32_t num_qpl_bufs; + }; + }; uint8_t state; /* the gve_packet_state enum */ int next; /* To chain the free_pending_pkts lists */ }; @@ -377,7 +422,20 @@ struct gve_tx_ring { */ int32_t free_pending_pkts_csm; - bus_dma_tag_t buf_dmatag; /* DMA params for mapping Tx mbufs */ + /* + * The head index of a singly linked list representing QPL page fragments + * to copy mbuf payload into for the NIC to see. Once this list is depleted, + * the "_prd" suffixed producer list, grown by the completion taskqueue, + * is stolen. + * + * Only used in QPL mode. int32_t because atomic_swap_16 doesn't exist. + */ + int32_t free_qpl_bufs_csm; + uint32_t qpl_bufs_consumed; /* Allows quickly checking for buf availability */ + uint32_t qpl_bufs_produced_cached; /* Cached value of qpl_bufs_produced */ + + /* DMA params for mapping Tx mbufs. Only used in RDA mode. */ + bus_dma_tag_t buf_dmatag; } __aligned(CACHE_LINE_SIZE); /* Accessed when processing completions */ @@ -395,6 +453,18 @@ struct gve_tx_ring { * its consumer list, with the "_csm" suffix, is depleted. */ int32_t free_pending_pkts_prd; + + /* + * The completion taskqueue moves the QPL pages corresponding to a + * completed packet into this list. It is only used in QPL mode. + * The "_prd" denotes that this is a producer list. The trasnmit + * taskqueue steals this list once its consumer list, with the "_csm" + * suffix, is depleted. + * + * Only used in QPL mode. int32_t because atomic_swap_16 doesn't exist. + */ + int32_t free_qpl_bufs_prd; + uint32_t qpl_bufs_produced; } __aligned(CACHE_LINE_SIZE); /* Accessed by both the completion and xmit loops */ @@ -402,6 +472,16 @@ struct gve_tx_ring { /* completion tags index into this array */ struct gve_tx_pending_pkt_dqo *pending_pkts; uint16_t num_pending_pkts; + + /* + * Represents QPL page fragments. An index into this array + * always represents the same QPL page fragment. The value + * is also an index into this array and servers as a means + * to chain buffers into linked lists whose heads are + * either free_qpl_bufs_prd or free_qpl_bufs_csm or + * qpl_bufs_head. + */ + int32_t *qpl_bufs; } __aligned(CACHE_LINE_SIZE); } dqo; }; @@ -531,6 +611,13 @@ gve_is_gqi(struct gve_priv *priv) return (priv->queue_format == GVE_GQI_QPL_FORMAT); } +static inline bool +gve_is_qpl(struct gve_priv *priv) +{ + return (priv->queue_format == GVE_GQI_QPL_FORMAT || + priv->queue_format == GVE_DQO_QPL_FORMAT); +} + /* Defined in gve_main.c */ void gve_schedule_reset(struct gve_priv *priv); @@ -545,6 +632,7 @@ int gve_alloc_qpls(struct gve_priv *priv); void gve_free_qpls(struct gve_priv *priv); int gve_register_qpls(struct gve_priv *priv); int gve_unregister_qpls(struct gve_priv *priv); +void gve_mextadd_free(struct mbuf *mbuf); /* TX functions defined in gve_tx.c */ int gve_alloc_tx_rings(struct gve_priv *priv); @@ -563,6 +651,7 @@ void gve_tx_free_ring_dqo(struct gve_priv *priv, int i); void gve_clear_tx_ring_dqo(struct gve_priv *priv, int i); int gve_tx_intr_dqo(void *arg); int gve_xmit_dqo(struct gve_tx_ring *tx, struct mbuf **mbuf_ptr); +int gve_xmit_dqo_qpl(struct gve_tx_ring *tx, struct mbuf *mbuf); void gve_tx_cleanup_tq_dqo(void *arg, int pending); /* RX functions defined in gve_rx.c */ diff --git a/sys/dev/gve/gve_adminq.c b/sys/dev/gve/gve_adminq.c index 7865b979888b..dd03f817f45a 100644 --- a/sys/dev/gve/gve_adminq.c +++ b/sys/dev/gve/gve_adminq.c @@ -58,6 +58,7 @@ void gve_parse_device_option(struct gve_priv *priv, struct gve_device_option *option, struct gve_device_option_gqi_qpl **dev_op_gqi_qpl, struct gve_device_option_dqo_rda **dev_op_dqo_rda, + struct gve_device_option_dqo_qpl **dev_op_dqo_qpl, struct gve_device_option_jumbo_frames **dev_op_jumbo_frames) { uint32_t req_feat_mask = be32toh(option->required_features_mask); @@ -103,6 +104,23 @@ void gve_parse_device_option(struct gve_priv *priv, *dev_op_dqo_rda = (void *)(option + 1); break; + case GVE_DEV_OPT_ID_DQO_QPL: + if (option_length < sizeof(**dev_op_dqo_qpl) || + req_feat_mask != GVE_DEV_OPT_REQ_FEAT_MASK_DQO_QPL) { + device_printf(priv->dev, GVE_DEVICE_OPTION_ERROR_FMT, + "DQO QPL", (int)sizeof(**dev_op_dqo_qpl), + GVE_DEV_OPT_REQ_FEAT_MASK_DQO_QPL, + option_length, req_feat_mask); + break; + } + + if (option_length > sizeof(**dev_op_dqo_qpl)) { + device_printf(priv->dev, GVE_DEVICE_OPTION_TOO_BIG_FMT, + "DQO QPL"); + } + *dev_op_dqo_qpl = (void *)(option + 1); + break; + case GVE_DEV_OPT_ID_JUMBO_FRAMES: if (option_length < sizeof(**dev_op_jumbo_frames) || req_feat_mask != GVE_DEV_OPT_REQ_FEAT_MASK_JUMBO_FRAMES) { @@ -136,6 +154,7 @@ gve_process_device_options(struct gve_priv *priv, struct gve_device_descriptor *descriptor, struct gve_device_option_gqi_qpl **dev_op_gqi_qpl, struct gve_device_option_dqo_rda **dev_op_dqo_rda, + struct gve_device_option_dqo_qpl **dev_op_dqo_qpl, struct gve_device_option_jumbo_frames **dev_op_jumbo_frames) { char *desc_end = (char *)descriptor + be16toh(descriptor->total_length); @@ -154,7 +173,10 @@ gve_process_device_options(struct gve_priv *priv, } gve_parse_device_option(priv, descriptor, dev_opt, - dev_op_gqi_qpl, dev_op_dqo_rda, dev_op_jumbo_frames); + dev_op_gqi_qpl, + dev_op_dqo_rda, + dev_op_dqo_qpl, + dev_op_jumbo_frames); dev_opt = (void *)((char *)(dev_opt + 1) + be16toh(dev_opt->option_length)); } @@ -387,6 +409,7 @@ gve_adminq_describe_device(struct gve_priv *priv) struct gve_dma_handle desc_mem; struct gve_device_option_gqi_qpl *dev_op_gqi_qpl = NULL; struct gve_device_option_dqo_rda *dev_op_dqo_rda = NULL; + struct gve_device_option_dqo_qpl *dev_op_dqo_qpl = NULL; struct gve_device_option_jumbo_frames *dev_op_jumbo_frames = NULL; uint32_t supported_features_mask = 0; int rc; @@ -416,7 +439,9 @@ gve_adminq_describe_device(struct gve_priv *priv) bus_dmamap_sync(desc_mem.tag, desc_mem.map, BUS_DMASYNC_POSTREAD); rc = gve_process_device_options(priv, desc, - &dev_op_gqi_qpl, &dev_op_dqo_rda, + &dev_op_gqi_qpl, + &dev_op_dqo_rda, + &dev_op_dqo_qpl, &dev_op_jumbo_frames); if (rc != 0) goto free_device_descriptor; @@ -430,6 +455,15 @@ gve_adminq_describe_device(struct gve_priv *priv) if (bootverbose) device_printf(priv->dev, "Driver is running with DQO RDA queue format.\n"); + } else if (dev_op_dqo_qpl != NULL) { + snprintf(gve_queue_format, sizeof(gve_queue_format), + "%s", "DQO QPL"); + priv->queue_format = GVE_DQO_QPL_FORMAT; + supported_features_mask = be32toh( + dev_op_dqo_qpl->supported_features_mask); + if (bootverbose) + device_printf(priv->dev, + "Driver is running with DQO QPL queue format.\n"); } else if (dev_op_gqi_qpl != NULL) { snprintf(gve_queue_format, sizeof(gve_queue_format), "%s", "GQI QPL"); diff --git a/sys/dev/gve/gve_adminq.h b/sys/dev/gve/gve_adminq.h index b5d512331d42..37a7cb3ecbb8 100644 --- a/sys/dev/gve/gve_adminq.h +++ b/sys/dev/gve/gve_adminq.h @@ -144,6 +144,15 @@ struct gve_device_option_dqo_rda { _Static_assert(sizeof(struct gve_device_option_dqo_rda) == 8, "gve: bad admin queue struct length"); +struct gve_device_option_dqo_qpl { + __be32 supported_features_mask; + __be16 tx_comp_ring_entries; + __be16 rx_buff_ring_entries; +}; + +_Static_assert(sizeof(struct gve_device_option_dqo_qpl) == 8, + "gve: bad admin queue struct length"); + struct gve_device_option_modify_ring { __be32 supported_features_mask; __be16 max_rx_ring_size; @@ -168,6 +177,7 @@ enum gve_dev_opt_id { GVE_DEV_OPT_ID_GQI_QPL = 0x3, GVE_DEV_OPT_ID_DQO_RDA = 0x4, GVE_DEV_OPT_ID_MODIFY_RING = 0x6, + GVE_DEV_OPT_ID_DQO_QPL = 0x7, GVE_DEV_OPT_ID_JUMBO_FRAMES = 0x8, }; @@ -182,6 +192,7 @@ enum gve_dev_opt_req_feat_mask { GVE_DEV_OPT_REQ_FEAT_MASK_GQI_RDA = 0x0, GVE_DEV_OPT_REQ_FEAT_MASK_GQI_QPL = 0x0, GVE_DEV_OPT_REQ_FEAT_MASK_DQO_RDA = 0x0, + GVE_DEV_OPT_REQ_FEAT_MASK_DQO_QPL = 0x0, GVE_DEV_OPT_REQ_FEAT_MASK_MODIFY_RING = 0x0, GVE_DEV_OPT_REQ_FEAT_MASK_JUMBO_FRAMES = 0x0, }; @@ -196,7 +207,7 @@ enum gve_sup_feature_mask { enum gve_driver_capability { gve_driver_capability_gqi_qpl = 0, gve_driver_capability_gqi_rda = 1, - gve_driver_capability_dqo_qpl = 2, /* reserved for future use */ + gve_driver_capability_dqo_qpl = 2, gve_driver_capability_dqo_rda = 3, }; @@ -212,6 +223,7 @@ enum gve_driver_capability { */ #define GVE_DRIVER_CAPABILITY_FLAGS1 \ (GVE_CAP1(gve_driver_capability_gqi_qpl) | \ + GVE_CAP1(gve_driver_capability_dqo_qpl) | \ GVE_CAP1(gve_driver_capability_dqo_rda)) #define GVE_DRIVER_CAPABILITY_FLAGS2 0x0 #define GVE_DRIVER_CAPABILITY_FLAGS3 0x0 diff --git a/sys/dev/gve/gve_dqo.h b/sys/dev/gve/gve_dqo.h index 5f3f36d2245f..214138303a77 100644 --- a/sys/dev/gve/gve_dqo.h +++ b/sys/dev/gve/gve_dqo.h @@ -57,7 +57,22 @@ * Start dropping RX fragments if at least these many * buffers cannot be posted to the NIC. */ -#define GVE_RX_DQO_MIN_PENDING_BUFS 32 +#define GVE_RX_DQO_MIN_PENDING_BUFS 128 + +#define GVE_DQ_NUM_FRAGS_IN_PAGE (PAGE_SIZE / GVE_DEFAULT_RX_BUFFER_SIZE) + +/* + * gve_rx_qpl_buf_id_dqo's 11 bit wide buf_id field limits the total + * number of pages per QPL to 2048. + */ +#define GVE_RX_NUM_QPL_PAGES_DQO 2048 + +/* 2K TX buffers for DQO-QPL */ +#define GVE_TX_BUF_SHIFT_DQO 11 +#define GVE_TX_BUF_SIZE_DQO BIT(GVE_TX_BUF_SHIFT_DQO) +#define GVE_TX_BUFS_PER_PAGE_DQO (PAGE_SIZE >> GVE_TX_BUF_SHIFT_DQO) + +#define GVE_TX_NUM_QPL_PAGES_DQO 512 /* Basic TX descriptor (DTYPE 0x0C) */ struct gve_tx_pkt_desc_dqo { diff --git a/sys/dev/gve/gve_main.c b/sys/dev/gve/gve_main.c index 760e91a47472..b627c3f2b4ca 100644 --- a/sys/dev/gve/gve_main.c +++ b/sys/dev/gve/gve_main.c @@ -32,9 +32,9 @@ #include "gve_adminq.h" #include "gve_dqo.h" -#define GVE_DRIVER_VERSION "GVE-FBSD-1.2.0\n" +#define GVE_DRIVER_VERSION "GVE-FBSD-1.3.0\n" #define GVE_VERSION_MAJOR 1 -#define GVE_VERSION_MINOR 2 +#define GVE_VERSION_MINOR 3 #define GVE_VERSION_SUB 0 #define GVE_DEFAULT_RX_COPYBREAK 256 @@ -125,7 +125,7 @@ gve_up(struct gve_priv *priv) if (if_getcapenable(ifp) & IFCAP_TSO6) if_sethwassistbits(ifp, CSUM_IP6_TSO, 0); - if (gve_is_gqi(priv)) { + if (gve_is_qpl(priv)) { err = gve_register_qpls(priv); if (err != 0) goto reset; @@ -177,7 +177,7 @@ gve_down(struct gve_priv *priv) if (gve_destroy_tx_rings(priv) != 0) goto reset; - if (gve_is_gqi(priv)) { + if (gve_is_qpl(priv)) { if (gve_unregister_qpls(priv) != 0) goto reset; } @@ -375,13 +375,15 @@ gve_setup_ifnet(device_t dev, struct gve_priv *priv) /* * Set TSO limits, must match the arguments to bus_dma_tag_create - * when creating tx->dqo.buf_dmatag + * when creating tx->dqo.buf_dmatag. Only applies to the RDA mode + * because in QPL we copy the entire pakcet into the bounce buffer + * and thus it does not matter how fragmented the mbuf is. */ - if (!gve_is_gqi(priv)) { - if_sethwtsomax(ifp, GVE_TSO_MAXSIZE_DQO); + if (!gve_is_gqi(priv) && !gve_is_qpl(priv)) { if_sethwtsomaxsegcount(ifp, GVE_TX_MAX_DATA_DESCS_DQO); if_sethwtsomaxsegsize(ifp, GVE_TX_MAX_BUF_SIZE_DQO); } + if_sethwtsomax(ifp, GVE_TSO_MAXSIZE_DQO); #if __FreeBSD_version >= 1400086 if_setflags(ifp, IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST); @@ -465,7 +467,7 @@ gve_free_rings(struct gve_priv *priv) gve_free_irqs(priv); gve_free_tx_rings(priv); gve_free_rx_rings(priv); - if (gve_is_gqi(priv)) + if (gve_is_qpl(priv)) gve_free_qpls(priv); } @@ -474,7 +476,7 @@ gve_alloc_rings(struct gve_priv *priv) { int err; - if (gve_is_gqi(priv)) { + if (gve_is_qpl(priv)) { err = gve_alloc_qpls(priv); if (err != 0) goto abort; diff --git a/sys/dev/gve/gve_qpl.c b/sys/dev/gve/gve_qpl.c index 9a946a2a2f2d..1fcc2b5365c9 100644 --- a/sys/dev/gve/gve_qpl.c +++ b/sys/dev/gve/gve_qpl.c @@ -32,13 +32,14 @@ #include "gve.h" #include "gve_adminq.h" +#include "gve_dqo.h" static MALLOC_DEFINE(M_GVE_QPL, "gve qpl", "gve qpl allocations"); static uint32_t gve_num_tx_qpls(struct gve_priv *priv) { - if (priv->queue_format != GVE_GQI_QPL_FORMAT) + if (!gve_is_qpl(priv)) return (0); return (priv->tx_cfg.max_queues); @@ -47,7 +48,7 @@ gve_num_tx_qpls(struct gve_priv *priv) static uint32_t gve_num_rx_qpls(struct gve_priv *priv) { - if (priv->queue_format != GVE_GQI_QPL_FORMAT) + if (!gve_is_qpl(priv)) return (0); return (priv->rx_cfg.max_queues); @@ -189,6 +190,7 @@ gve_free_qpls(struct gve_priv *priv) int gve_alloc_qpls(struct gve_priv *priv) { int num_qpls = gve_num_tx_qpls(priv) + gve_num_rx_qpls(priv); + int num_pages; int err; int i; @@ -198,15 +200,19 @@ int gve_alloc_qpls(struct gve_priv *priv) priv->qpls = malloc(num_qpls * sizeof(*priv->qpls), M_GVE_QPL, M_WAITOK | M_ZERO); + num_pages = gve_is_gqi(priv) ? + priv->tx_desc_cnt / GVE_QPL_DIVISOR : + GVE_TX_NUM_QPL_PAGES_DQO; for (i = 0; i < gve_num_tx_qpls(priv); i++) { - err = gve_alloc_qpl(priv, i, priv->tx_desc_cnt / GVE_QPL_DIVISOR, + err = gve_alloc_qpl(priv, i, num_pages, /*single_kva=*/true); if (err != 0) goto abort; } + num_pages = gve_is_gqi(priv) ? priv->rx_desc_cnt : GVE_RX_NUM_QPL_PAGES_DQO; for (; i < num_qpls; i++) { - err = gve_alloc_qpl(priv, i, priv->rx_desc_cnt, /*single_kva=*/false); + err = gve_alloc_qpl(priv, i, num_pages, /*single_kva=*/false); if (err != 0) goto abort; } @@ -283,3 +289,21 @@ gve_unregister_qpls(struct gve_priv *priv) gve_clear_state_flag(priv, GVE_STATE_FLAG_QPLREG_OK); return (0); } + +void +gve_mextadd_free(struct mbuf *mbuf) +{ + vm_page_t page = (vm_page_t)mbuf->m_ext.ext_arg1; + vm_offset_t va = (vm_offset_t)mbuf->m_ext.ext_arg2; + + /* + * Free the page only if this is the last ref. + * The interface might no longer exist by the time + * this callback is called, see gve_free_qpl. + */ + if (__predict_false(vm_page_unwire_noq(page))) { + pmap_qremove(va, 1); + kva_free(va, PAGE_SIZE); + vm_page_free(page); + } +} diff --git a/sys/dev/gve/gve_rx.c b/sys/dev/gve/gve_rx.c index 69bb13fc56c6..35f22f2308f0 100644 --- a/sys/dev/gve/gve_rx.c +++ b/sys/dev/gve/gve_rx.c @@ -409,24 +409,6 @@ gve_set_rss_type(__be16 flag, struct mbuf *mbuf) } } -static void -gve_mextadd_free(struct mbuf *mbuf) -{ - vm_page_t page = (vm_page_t)mbuf->m_ext.ext_arg1; - vm_offset_t va = (vm_offset_t)mbuf->m_ext.ext_arg2; - - /* - * Free the page only if this is the last ref. - * The interface might no longer exist by the time - * this callback is called, see gve_free_qpl. - */ - if (__predict_false(vm_page_unwire_noq(page))) { - pmap_qremove(va, 1); - kva_free(va, PAGE_SIZE); - vm_page_free(page); - } -} - static void gve_rx_flip_buff(struct gve_rx_slot_page_info *page_info, __be64 *slot_addr) { diff --git a/sys/dev/gve/gve_rx_dqo.c b/sys/dev/gve/gve_rx_dqo.c index b391449328e1..6c5d656aaa04 100644 --- a/sys/dev/gve/gve_rx_dqo.c +++ b/sys/dev/gve/gve_rx_dqo.c @@ -38,6 +38,9 @@ gve_free_rx_mbufs_dqo(struct gve_rx_ring *rx) struct gve_rx_buf_dqo *buf; int i; + if (gve_is_qpl(rx->com.priv)) + return; + for (i = 0; i < rx->dqo.buf_cnt; i++) { buf = &rx->dqo.bufs[i]; if (!buf->mbuf) @@ -70,7 +73,7 @@ gve_rx_free_ring_dqo(struct gve_priv *priv, int i) if (rx->dqo.bufs != NULL) { gve_free_rx_mbufs_dqo(rx); - if (rx->dqo.buf_dmatag) { + if (!gve_is_qpl(priv) && rx->dqo.buf_dmatag) { for (j = 0; j < rx->dqo.buf_cnt; j++) if (rx->dqo.bufs[j].mapped) bus_dmamap_destroy(rx->dqo.buf_dmatag, @@ -81,7 +84,7 @@ gve_rx_free_ring_dqo(struct gve_priv *priv, int i) rx->dqo.bufs = NULL; } - if (rx->dqo.buf_dmatag) + if (!gve_is_qpl(priv) && rx->dqo.buf_dmatag) bus_dma_tag_destroy(rx->dqo.buf_dmatag); } @@ -103,6 +106,31 @@ gve_rx_alloc_ring_dqo(struct gve_priv *priv, int i) rx->dqo.desc_ring = rx->desc_ring_mem.cpu_addr; rx->dqo.mask = priv->rx_desc_cnt - 1; + err = gve_dma_alloc_coherent(priv, + sizeof(struct gve_rx_compl_desc_dqo) * priv->rx_desc_cnt, + CACHE_LINE_SIZE, &rx->dqo.compl_ring_mem); + if (err != 0) { + device_printf(priv->dev, + "Failed to alloc compl ring for rx ring %d", i); + goto abort; + } + rx->dqo.compl_ring = rx->dqo.compl_ring_mem.cpu_addr; + rx->dqo.mask = priv->rx_desc_cnt - 1; + + rx->dqo.buf_cnt = gve_is_qpl(priv) ? GVE_RX_NUM_QPL_PAGES_DQO : + priv->rx_desc_cnt; + rx->dqo.bufs = malloc(rx->dqo.buf_cnt * sizeof(struct gve_rx_buf_dqo), + M_GVE, M_WAITOK | M_ZERO); + + if (gve_is_qpl(priv)) { + rx->com.qpl = &priv->qpls[priv->tx_cfg.max_queues + i]; + if (rx->com.qpl == NULL) { + device_printf(priv->dev, "No QPL left for rx ring %d", i); + return (ENOMEM); + } + return (0); + } + err = bus_dma_tag_create( bus_get_dma_tag(priv->dev), /* parent */ 1, 0, /* alignment, bounds */ @@ -123,9 +151,6 @@ gve_rx_alloc_ring_dqo(struct gve_priv *priv, int i) goto abort; } - rx->dqo.buf_cnt = priv->rx_desc_cnt; - rx->dqo.bufs = malloc(rx->dqo.buf_cnt * sizeof(struct gve_rx_buf_dqo), - M_GVE, M_WAITOK | M_ZERO); for (j = 0; j < rx->dqo.buf_cnt; j++) { err = bus_dmamap_create(rx->dqo.buf_dmatag, 0, &rx->dqo.bufs[j].dmamap); @@ -138,17 +163,6 @@ gve_rx_alloc_ring_dqo(struct gve_priv *priv, int i) rx->dqo.bufs[j].mapped = true; } - err = gve_dma_alloc_coherent(priv, - sizeof(struct gve_rx_compl_desc_dqo) * priv->rx_desc_cnt, - CACHE_LINE_SIZE, &rx->dqo.compl_ring_mem); - if (err != 0) { - device_printf(priv->dev, - "Failed to alloc compl ring for rx ring %d", i); - goto abort; - } - rx->dqo.compl_ring = rx->dqo.compl_ring_mem.cpu_addr; - rx->dqo.mask = priv->rx_desc_cnt - 1; - return (0); abort: @@ -202,10 +216,36 @@ gve_clear_rx_ring_dqo(struct gve_priv *priv, int i) gve_free_rx_mbufs_dqo(rx); - SLIST_INIT(&rx->dqo.free_bufs); - for (j = 0; j < rx->dqo.buf_cnt; j++) - SLIST_INSERT_HEAD(&rx->dqo.free_bufs, - &rx->dqo.bufs[j], slist_entry); + if (gve_is_qpl(priv)) { + SLIST_INIT(&rx->dqo.free_bufs); + STAILQ_INIT(&rx->dqo.used_bufs); + + for (j = 0; j < rx->dqo.buf_cnt; j++) { + struct gve_rx_buf_dqo *buf = &rx->dqo.bufs[j]; + + vm_page_t page = rx->com.qpl->pages[buf - rx->dqo.bufs]; + u_int ref_count = atomic_load_int(&page->ref_count); + + /* + * An ifconfig down+up might see pages still in flight + * from the previous innings. + */ + if (VPRC_WIRE_COUNT(ref_count) == 1) + SLIST_INSERT_HEAD(&rx->dqo.free_bufs, + buf, slist_entry); + else + STAILQ_INSERT_TAIL(&rx->dqo.used_bufs, + buf, stailq_entry); + + buf->num_nic_frags = 0; + buf->next_idx = 0; + } + } else { + SLIST_INIT(&rx->dqo.free_bufs); + for (j = 0; j < rx->dqo.buf_cnt; j++) + SLIST_INSERT_HEAD(&rx->dqo.free_bufs, + &rx->dqo.bufs[j], slist_entry); + } } int @@ -223,6 +263,20 @@ gve_rx_intr_dqo(void *arg) return (FILTER_HANDLED); } +static void +gve_rx_advance_head_dqo(struct gve_rx_ring *rx) +{ + rx->dqo.head = (rx->dqo.head + 1) & rx->dqo.mask; + rx->fill_cnt++; /* rx->fill_cnt is just a sysctl counter */ + + if ((rx->dqo.head & (GVE_RX_BUF_THRESH_DQO - 1)) == 0) { + bus_dmamap_sync(rx->desc_ring_mem.tag, rx->desc_ring_mem.map, + BUS_DMASYNC_PREWRITE); + gve_db_bar_dqo_write_4(rx->com.priv, rx->com.db_offset, + rx->dqo.head); + } +} + static void gve_rx_post_buf_dqo(struct gve_rx_ring *rx, struct gve_rx_buf_dqo *buf) { @@ -235,15 +289,7 @@ gve_rx_post_buf_dqo(struct gve_rx_ring *rx, struct gve_rx_buf_dqo *buf) desc->buf_id = htole16(buf - rx->dqo.bufs); desc->buf_addr = htole64(buf->addr); - rx->dqo.head = (rx->dqo.head + 1) & rx->dqo.mask; - rx->fill_cnt++; /* rx->fill_cnt is just a sysctl counter */ - - if ((rx->dqo.head & (GVE_RX_BUF_THRESH_DQO - 1)) == 0) { - bus_dmamap_sync(rx->desc_ring_mem.tag, rx->desc_ring_mem.map, - BUS_DMASYNC_PREWRITE); - gve_db_bar_dqo_write_4(rx->com.priv, rx->com.db_offset, - rx->dqo.head); - } + gve_rx_advance_head_dqo(rx); } static int @@ -294,6 +340,103 @@ abort_with_buf: return (err); } +static struct gve_dma_handle * +gve_get_page_dma_handle(struct gve_rx_ring *rx, struct gve_rx_buf_dqo *buf) +{ + return (&(rx->com.qpl->dmas[buf - rx->dqo.bufs])); +} + +static void +gve_rx_post_qpl_buf_dqo(struct gve_rx_ring *rx, struct gve_rx_buf_dqo *buf, + uint8_t frag_num) +{ + struct gve_rx_desc_dqo *desc = &rx->dqo.desc_ring[rx->dqo.head]; + union gve_rx_qpl_buf_id_dqo composed_id; + struct gve_dma_handle *page_dma_handle; + + composed_id.buf_id = buf - rx->dqo.bufs; + composed_id.frag_num = frag_num; + desc->buf_id = htole16(composed_id.all); + + page_dma_handle = gve_get_page_dma_handle(rx, buf); + bus_dmamap_sync(page_dma_handle->tag, page_dma_handle->map, + BUS_DMASYNC_PREREAD); + desc->buf_addr = htole64(page_dma_handle->bus_addr + + frag_num * GVE_DEFAULT_RX_BUFFER_SIZE); + + buf->num_nic_frags++; + gve_rx_advance_head_dqo(rx); +} + +static void +gve_rx_maybe_extract_from_used_bufs(struct gve_rx_ring *rx, bool just_one) +{ + struct gve_rx_buf_dqo *hol_blocker = NULL; + struct gve_rx_buf_dqo *buf; + u_int ref_count; + vm_page_t page; + + while (true) { + buf = STAILQ_FIRST(&rx->dqo.used_bufs); + if (__predict_false(buf == NULL)) + break; + + page = rx->com.qpl->pages[buf - rx->dqo.bufs]; + ref_count = atomic_load_int(&page->ref_count); + + if (VPRC_WIRE_COUNT(ref_count) != 1) { + /* Account for one head-of-line blocker */ + if (hol_blocker != NULL) + break; + hol_blocker = buf; + STAILQ_REMOVE_HEAD(&rx->dqo.used_bufs, + stailq_entry); + continue; + } + + STAILQ_REMOVE_HEAD(&rx->dqo.used_bufs, + stailq_entry); + SLIST_INSERT_HEAD(&rx->dqo.free_bufs, + buf, slist_entry); + if (just_one) + break; + } + + if (hol_blocker != NULL) + STAILQ_INSERT_HEAD(&rx->dqo.used_bufs, + hol_blocker, stailq_entry); +} + +static int +gve_rx_post_new_dqo_qpl_buf(struct gve_rx_ring *rx) +{ + struct gve_rx_buf_dqo *buf; + + buf = SLIST_FIRST(&rx->dqo.free_bufs); + if (__predict_false(buf == NULL)) { + gve_rx_maybe_extract_from_used_bufs(rx, /*just_one=*/true); + buf = SLIST_FIRST(&rx->dqo.free_bufs); + if (__predict_false(buf == NULL)) + return (ENOBUFS); + } + + gve_rx_post_qpl_buf_dqo(rx, buf, buf->next_idx); + if (buf->next_idx == GVE_DQ_NUM_FRAGS_IN_PAGE - 1) + buf->next_idx = 0; + else + buf->next_idx++; + + /* + * We have posted all the frags in this buf to the NIC. + * - buf will enter used_bufs once the last completion arrives. + * - It will renter free_bufs in gve_rx_maybe_extract_from_used_bufs + * when its wire count drops back to 1. + */ + if (buf->next_idx == 0) + SLIST_REMOVE_HEAD(&rx->dqo.free_bufs, slist_entry); + return (0); +} + static void gve_rx_post_buffers_dqo(struct gve_rx_ring *rx, int how) { @@ -306,7 +449,10 @@ gve_rx_post_buffers_dqo(struct gve_rx_ring *rx, int how) num_to_post = rx->dqo.mask - num_pending_bufs; for (i = 0; i < num_to_post; i++) { - err = gve_rx_post_new_mbuf_dqo(rx, how); + if (gve_is_qpl(rx->com.priv)) + err = gve_rx_post_new_dqo_qpl_buf(rx); + else + err = gve_rx_post_new_mbuf_dqo(rx, how); if (err) break; } @@ -427,7 +573,7 @@ gve_rx_input_mbuf_dqo(struct gve_rx_ring *rx, } static int -gve_rx_copybreak_dqo(struct gve_rx_ring *rx, struct gve_rx_buf_dqo *buf, +gve_rx_copybreak_dqo(struct gve_rx_ring *rx, void *va, struct gve_rx_compl_desc_dqo *compl_desc, uint16_t frag_len) { struct mbuf *mbuf; @@ -440,14 +586,13 @@ gve_rx_copybreak_dqo(struct gve_rx_ring *rx, struct gve_rx_buf_dqo *buf, counter_u64_add_protected(rx->stats.rx_copybreak_cnt, 1); counter_exit(); - m_copyback(mbuf, 0, frag_len, mtod(buf->mbuf, char*)); + m_copyback(mbuf, 0, frag_len, va); mbuf->m_len = frag_len; rx->ctx.mbuf_head = mbuf; rx->ctx.mbuf_tail = mbuf; rx->ctx.total_size += frag_len; - gve_rx_post_buf_dqo(rx, buf); gve_rx_input_mbuf_dqo(rx, compl_desc); return (0); } @@ -495,10 +640,12 @@ gve_rx_dqo(struct gve_priv *priv, struct gve_rx_ring *rx, frag_len = compl_desc->packet_len; if (frag_len <= priv->rx_copybreak && !ctx->mbuf_head && is_last_frag) { - err = gve_rx_copybreak_dqo(rx, buf, compl_desc, frag_len); + err = gve_rx_copybreak_dqo(rx, mtod(buf->mbuf, char*), + compl_desc, frag_len); if (__predict_false(err != 0)) goto drop_frag; (*work_done)++; + gve_rx_post_buf_dqo(rx, buf); return; } @@ -579,6 +726,233 @@ drop_frag_clear_ctx: rx->ctx = (struct gve_rx_ctx){}; } +static void * +gve_get_cpu_addr_for_qpl_buf(struct gve_rx_ring *rx, + struct gve_rx_buf_dqo *buf, uint8_t buf_frag_num) +{ + int page_idx = buf - rx->dqo.bufs; + void *va = rx->com.qpl->dmas[page_idx].cpu_addr; + + va = (char *)va + (buf_frag_num * GVE_DEFAULT_RX_BUFFER_SIZE); + return (va); +} + +static int +gve_rx_add_clmbuf_to_ctx(struct gve_rx_ring *rx, + struct gve_rx_ctx *ctx, struct gve_rx_buf_dqo *buf, + uint8_t buf_frag_num, uint16_t frag_len) +{ + void *va = gve_get_cpu_addr_for_qpl_buf(rx, buf, buf_frag_num); + struct mbuf *mbuf; + + if (ctx->mbuf_tail == NULL) { + mbuf = m_getcl(M_NOWAIT, MT_DATA, M_PKTHDR); + if (mbuf == NULL) + return (ENOMEM); + ctx->mbuf_head = mbuf; + ctx->mbuf_tail = mbuf; + } else { + mbuf = m_getcl(M_NOWAIT, MT_DATA, 0); + if (mbuf == NULL) + return (ENOMEM); + ctx->mbuf_tail->m_next = mbuf; + ctx->mbuf_tail = mbuf; + } + + mbuf->m_len = frag_len; + ctx->total_size += frag_len; + + m_copyback(mbuf, 0, frag_len, va); + counter_enter(); + counter_u64_add_protected(rx->stats.rx_frag_copy_cnt, 1); + counter_exit(); + return (0); +} + +static int +gve_rx_add_extmbuf_to_ctx(struct gve_rx_ring *rx, + struct gve_rx_ctx *ctx, struct gve_rx_buf_dqo *buf, + uint8_t buf_frag_num, uint16_t frag_len) +{ + struct mbuf *mbuf; + void *page_addr; + vm_page_t page; + int page_idx; + void *va; + + if (ctx->mbuf_tail == NULL) { *** 763 LINES SKIPPED *** From nobody Wed Nov 6 15:17:44 2024 X-Original-To: dev-commits-src-all@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 4Xk82w3h0lz5chXB; Wed, 06 Nov 2024 15:17:44 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xk82w2vCCz4G91; Wed, 6 Nov 2024 15:17:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730906264; 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=u27AYmrMYypEH4uRfkEjm05BvsYHINmGR0V0kbzgnTU=; b=OdZXC81OmEMeZwCvBVKoEdSXvhjNEI+eZA45ClRBqwrrGU5g78crVJVO/aW3wVFB5Ymd07 F313QBdg94P8iKq01yX0F77mlA9ztcX9M8EASEKEFMpiusd0QB10KX8hKu6vkr0YGPxAd3 DVG4dLku+5DdB1NA29rA48zg6myJY7WkXg44X1NKfIdNhQjnM1aJ/wQHr9aHKTE/7dGXuF sJ/9HTrevqB4hfnm7ejgXCG+RLHKdRpINOfVKalblEW38jvBK3F511WfvZiRaHG9Vmv+vE FDRxfPo8vjSakIN+AM8+4f8kG1wtydhNnSwnFk8qa+fsgjWs+HijvXEfeujxPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730906264; 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=u27AYmrMYypEH4uRfkEjm05BvsYHINmGR0V0kbzgnTU=; b=mNSPZK7Dt0GMElTgRHHDT7CsQrYCG1BQExQ96+K3MJXhdjqV+gz+13T1Ig7pd1NNQCCv2Q j97l0GzC8xO1wKEPLZERCREG4i31MXChZAI7zZMpRgH7QxZWT9I8EsYDuL42j7w/B45qkl CEY4BPR0WLxhiYIDVDxlra7bpBCCOebG63DnRzfqwFLE/pFXI/+R3qYU+P9ecPu62R9JM8 ZdDZBsfCjtKSx0hPTpP5gJ+Ok3N7M/idN7nIWR1QJn02rgKD3wt78FuCzc5OX+xnHordLk k6tqqebQXkHc1i0bPX7TyOBwJCmnxG3lzsP5PjVA/MYWLUcObeQv2KuUXqcD0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730906264; a=rsa-sha256; cv=none; b=AkcNZPwmkLY7SLVfhRS789SAtXtz0PAHTeRfokThK5XP6v15X+/6/3Da1vPLAnkj8kw0Xh BfWLmAHOQrLtHK1hOSN9ReYf/XLPqCFKkUEMrZxwvtWGDN/lcG9E3NsuY3L9Ci8sgsYI2S pfBhDObjGLpzguRFqfKIt4l9cDet/HAH5Hd73NRjxV5+skM+/cslBXAUA3TUxFSaBeqcW7 lnUNe4XdtPFGV2Wpv3P8iOQrs3+kiwkiS3hQy2GreMozxPktEzXYrQFcEZhPthaJeGkzdq FKvX5jbkY205WG+/S2OqTe1kP6jIulYpLFZDchl5E1IXk/thIfChC7TdDhFpEw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xk82w27k4z14t2; Wed, 6 Nov 2024 15:17:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6FHiRu043223; Wed, 6 Nov 2024 15:17:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6FHinD043220; Wed, 6 Nov 2024 15:17:44 GMT (envelope-from git) Date: Wed, 6 Nov 2024 15:17:44 GMT Message-Id: <202411061517.4A6FHinD043220@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 40097cd67c0d - main - gve: Fix TX livelock List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 40097cd67c0d52e2b288e8555b12faf02768d89c Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=40097cd67c0d52e2b288e8555b12faf02768d89c commit 40097cd67c0d52e2b288e8555b12faf02768d89c Author: Shailend Chand AuthorDate: 2024-11-05 19:38:31 +0000 Commit: Mark Johnston CommitDate: 2024-11-06 15:06:41 +0000 gve: Fix TX livelock Before this change the transmit taskqueue would enqueue itself when it cannot find space on the NIC ring with the hope that eventually space would be made. This results in the following livelock that only occurs after passing ~200Gbps of TCP traffic for many hours: 100% CPU ┌───────────┐wait on ┌──────────┐ ┌───────────┐ │user thread│ cpu │gve xmit │wait on │gve cleanup│ │with mbuf ├────────►│taskqueue ├────────►│taskqueue │ │uma lock │ │ │ NIC ring│ │ └───────────┘ └──────────┘ space └─────┬─────┘ ▲ │ │ wait on mbuf uma lock │ └───────────────────────────────────────────┘ Further details about the livelock are available on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281560. After this change, the transmit taskqueue no longer spins till there is room on the NIC ring. It instead stops itself and lets the completion-processing taskqueue wake it up. Since I'm touching the trasnmit taskqueue I've also corrected the name of a counter and also fixed a bug where EINVAL mbufs were not being freed and were instead living forever on the bufring. Signed-off-by: Shailend Chand Reviewed-by: markj MFC-after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47138 --- sys/dev/gve/gve.h | 3 +- sys/dev/gve/gve_main.c | 4 +- sys/dev/gve/gve_sysctl.c | 6 +-- sys/dev/gve/gve_tx.c | 98 ++++++++++++++++++++++++++++++++++++++---------- sys/dev/gve/gve_tx_dqo.c | 10 +++++ 5 files changed, 95 insertions(+), 26 deletions(-) diff --git a/sys/dev/gve/gve.h b/sys/dev/gve/gve.h index 43082d64ba95..92ab6838d5bb 100644 --- a/sys/dev/gve/gve.h +++ b/sys/dev/gve/gve.h @@ -341,7 +341,7 @@ struct gve_txq_stats { counter_u64_t tpackets; counter_u64_t tso_packet_cnt; counter_u64_t tx_dropped_pkt; - counter_u64_t tx_dropped_pkt_nospace_device; + counter_u64_t tx_delayed_pkt_nospace_device; counter_u64_t tx_dropped_pkt_nospace_bufring; counter_u64_t tx_delayed_pkt_nospace_descring; counter_u64_t tx_delayed_pkt_nospace_compring; @@ -383,6 +383,7 @@ struct gve_tx_ring { struct task xmit_task; struct taskqueue *xmit_tq; + bool stopped; /* Accessed when writing descriptors */ struct buf_ring *br; diff --git a/sys/dev/gve/gve_main.c b/sys/dev/gve/gve_main.c index b627c3f2b4ca..0e40656ca928 100644 --- a/sys/dev/gve/gve_main.c +++ b/sys/dev/gve/gve_main.c @@ -32,10 +32,10 @@ #include "gve_adminq.h" #include "gve_dqo.h" -#define GVE_DRIVER_VERSION "GVE-FBSD-1.3.0\n" +#define GVE_DRIVER_VERSION "GVE-FBSD-1.3.1\n" #define GVE_VERSION_MAJOR 1 #define GVE_VERSION_MINOR 3 -#define GVE_VERSION_SUB 0 +#define GVE_VERSION_SUB 1 #define GVE_DEFAULT_RX_COPYBREAK 256 diff --git a/sys/dev/gve/gve_sysctl.c b/sys/dev/gve/gve_sysctl.c index b9f2eefa5bb0..7a091d9caa43 100644 --- a/sys/dev/gve/gve_sysctl.c +++ b/sys/dev/gve/gve_sysctl.c @@ -140,9 +140,9 @@ gve_setup_txq_sysctl(struct sysctl_ctx_list *ctx, "tx_bytes", CTLFLAG_RD, &stats->tbytes, "Bytes transmitted"); SYSCTL_ADD_COUNTER_U64(ctx, tx_list, OID_AUTO, - "tx_dropped_pkt_nospace_device", CTLFLAG_RD, - &stats->tx_dropped_pkt_nospace_device, - "Packets dropped due to no space in device"); + "tx_delayed_pkt_nospace_device", CTLFLAG_RD, + &stats->tx_delayed_pkt_nospace_device, + "Packets delayed due to no space in device"); SYSCTL_ADD_COUNTER_U64(ctx, tx_list, OID_AUTO, "tx_dropped_pkt_nospace_bufring", CTLFLAG_RD, &stats->tx_dropped_pkt_nospace_bufring, diff --git a/sys/dev/gve/gve_tx.c b/sys/dev/gve/gve_tx.c index 60a54878b685..e7e10e526cb9 100644 --- a/sys/dev/gve/gve_tx.c +++ b/sys/dev/gve/gve_tx.c @@ -246,6 +246,8 @@ gve_start_tx_ring(struct gve_priv *priv, int i, struct gve_tx_ring *tx = &priv->tx[i]; struct gve_ring_com *com = &tx->com; + atomic_store_bool(&tx->stopped, false); + NET_TASK_INIT(&com->cleanup_task, 0, cleanup, tx); com->cleanup_tq = taskqueue_create_fast("gve tx", M_WAITOK, taskqueue_thread_enqueue, &com->cleanup_tq); @@ -427,6 +429,11 @@ gve_tx_cleanup_tq(void *arg, int pending) gve_db_bar_write_4(priv, tx->com.irq_db_offset, GVE_IRQ_MASK); taskqueue_enqueue(tx->com.cleanup_tq, &tx->com.cleanup_task); } + + if (atomic_load_bool(&tx->stopped) && space_freed) { + atomic_store_bool(&tx->stopped, false); + taskqueue_enqueue(tx->xmit_tq, &tx->xmit_task); + } } static void @@ -671,8 +678,7 @@ gve_xmit(struct gve_tx_ring *tx, struct mbuf *mbuf) bytes_required = gve_fifo_bytes_required(tx, first_seg_len, pkt_len); if (__predict_false(!gve_can_tx(tx, bytes_required))) { counter_enter(); - counter_u64_add_protected(tx->stats.tx_dropped_pkt_nospace_device, 1); - counter_u64_add_protected(tx->stats.tx_dropped_pkt, 1); + counter_u64_add_protected(tx->stats.tx_delayed_pkt_nospace_device, 1); counter_exit(); return (ENOBUFS); } @@ -733,6 +739,59 @@ gve_xmit(struct gve_tx_ring *tx, struct mbuf *mbuf) return (0); } +static int +gve_xmit_mbuf(struct gve_tx_ring *tx, + struct mbuf **mbuf) +{ + if (gve_is_gqi(tx->com.priv)) + return (gve_xmit(tx, *mbuf)); + + if (gve_is_qpl(tx->com.priv)) + return (gve_xmit_dqo_qpl(tx, *mbuf)); + + /* + * gve_xmit_dqo might attempt to defrag the mbuf chain. + * The reference is passed in so that in the case of + * errors, the new mbuf chain is what's put back on the br. + */ + return (gve_xmit_dqo(tx, mbuf)); +} + +/* + * Has the side-effect of stopping the xmit queue by setting tx->stopped + */ +static int +gve_xmit_retry_enobuf_mbuf(struct gve_tx_ring *tx, + struct mbuf **mbuf) +{ + int err; + + atomic_store_bool(&tx->stopped, true); + + /* + * Room made in the queue BEFORE the barrier will be seen by the + * gve_xmit_mbuf retry below. + * + * If room is made in the queue AFTER the barrier, the cleanup tq + * iteration creating the room will either see a tx->stopped value + * of 0 or the 1 we just wrote: + * + * If it sees a 1, then it would enqueue the xmit tq. Enqueue + * implies a retry on the waiting pkt. + * + * If it sees a 0, then that implies a previous iteration overwrote + * our 1, and that iteration would enqueue the xmit tq. Enqueue + * implies a retry on the waiting pkt. + */ + atomic_thread_fence_seq_cst(); + + err = gve_xmit_mbuf(tx, mbuf); + if (err == 0) + atomic_store_bool(&tx->stopped, false); + + return (err); +} + static void gve_xmit_br(struct gve_tx_ring *tx) { @@ -743,24 +802,23 @@ gve_xmit_br(struct gve_tx_ring *tx) while ((if_getdrvflags(ifp) & IFF_DRV_RUNNING) != 0 && (mbuf = drbr_peek(ifp, tx->br)) != NULL) { + err = gve_xmit_mbuf(tx, &mbuf); - if (gve_is_gqi(priv)) - err = gve_xmit(tx, mbuf); - else { - /* - * gve_xmit_dqo might attempt to defrag the mbuf chain. - * The reference is passed in so that in the case of - * errors, the new mbuf chain is what's put back on the br. - */ - if (gve_is_qpl(priv)) - err = gve_xmit_dqo_qpl(tx, mbuf); - else - err = gve_xmit_dqo(tx, &mbuf); - } + /* + * We need to stop this taskqueue when we can't xmit the pkt due + * to lack of space in the NIC ring (ENOBUFS). The retry exists + * to guard against a TOCTTOU bug that could end up freezing the + * queue forever. + */ + if (__predict_false(mbuf != NULL && err == ENOBUFS)) + err = gve_xmit_retry_enobuf_mbuf(tx, &mbuf); if (__predict_false(err != 0 && mbuf != NULL)) { - drbr_putback(ifp, tx->br, mbuf); - taskqueue_enqueue(tx->xmit_tq, &tx->xmit_task); + if (err == EINVAL) { + drbr_advance(ifp, tx->br); + m_freem(mbuf); + } else + drbr_putback(ifp, tx->br, mbuf); break; } @@ -827,7 +885,8 @@ gve_xmit_ifp(if_t ifp, struct mbuf *mbuf) is_br_empty = drbr_empty(ifp, tx->br); err = drbr_enqueue(ifp, tx->br, mbuf); if (__predict_false(err != 0)) { - taskqueue_enqueue(tx->xmit_tq, &tx->xmit_task); + if (!atomic_load_bool(&tx->stopped)) + taskqueue_enqueue(tx->xmit_tq, &tx->xmit_task); counter_enter(); counter_u64_add_protected(tx->stats.tx_dropped_pkt_nospace_bufring, 1); counter_u64_add_protected(tx->stats.tx_dropped_pkt, 1); @@ -842,9 +901,8 @@ gve_xmit_ifp(if_t ifp, struct mbuf *mbuf) if (is_br_empty && (GVE_RING_TRYLOCK(tx) != 0)) { gve_xmit_br(tx); GVE_RING_UNLOCK(tx); - } else { + } else if (!atomic_load_bool(&tx->stopped)) taskqueue_enqueue(tx->xmit_tq, &tx->xmit_task); - } return (0); } diff --git a/sys/dev/gve/gve_tx_dqo.c b/sys/dev/gve/gve_tx_dqo.c index 323c032a3e65..fab2d6d0f613 100644 --- a/sys/dev/gve/gve_tx_dqo.c +++ b/sys/dev/gve/gve_tx_dqo.c @@ -1052,6 +1052,16 @@ gve_tx_cleanup_dqo(struct gve_priv *priv, struct gve_tx_ring *tx, int budget) work_done++; } + /* + * Waking the xmit taskqueue has to occur after room has been made in + * the queue. + */ + atomic_thread_fence_seq_cst(); + if (atomic_load_bool(&tx->stopped) && work_done) { + atomic_store_bool(&tx->stopped, false); + taskqueue_enqueue(tx->xmit_tq, &tx->xmit_task); + } + tx->done += work_done; /* tx->done is just a sysctl counter */ counter_enter(); counter_u64_add_protected(tx->stats.tbytes, bytes_done); From nobody Wed Nov 6 18:02:59 2024 X-Original-To: dev-commits-src-all@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 4XkCjb2dWcz1GnmF; Wed, 06 Nov 2024 18:02:59 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkCjb1w80z4k0p; Wed, 6 Nov 2024 18:02:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730916179; 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=7hT2HwKvYjj7gQXIID3cesUgxz3Vh5T6kmOXcK4mZaY=; b=adljFiHqBT9lco+x3G/0WZhtIYTurUINAnk+2sa/s39QPRCpCZkcqksGMbqoNoGln9Lb1Y pT4RD6rRQBQLp1ioKoW4igfu8LWSY0Vzedg6Kb7wwLISx3Fb0wi2WP2Gn9EAvcD7mTYB1z KdDzJTQ2Mfv/TLYG7yvY/7B66CuY8o3ESHp9dmYqJMEQBCvAw+/uIakjQTDL62MYWPMm2d hO7ZTa8Xrwwb+GtU/W7NZlA7EYWEkyQkTe3zCRhx5azLN5IW2IuL5CSGFdJTIgX8C30JSV DuHvLEHqwID1hxQqFnydlipZ2WBo8nD4DzyKJyx+d6MnprYAQCDvBq9rJe9LoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730916179; 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=7hT2HwKvYjj7gQXIID3cesUgxz3Vh5T6kmOXcK4mZaY=; b=fiK6DyYnO9gLntNTCmkCIb+qM/8dvBjQDk804PPhTWwFcnICeHisKGySHXowYW7IZhYibM 4X6x0Q9C8gNBWSeWSsxw3yIw5f8VKXEoDMuYKTpF7OlOXhO9YmCVcfT8dcuTyOzEhdVGMv oo9Bybv/B2fx+6BbUpwngK5IAiFcvJZWLwicIP2krqr/qHZopTRmEHfu63ARzbKeiH6zsx MtmcUIL6zUSXA6b6uVYW1PBDZ8XBnrEMY48b4VnGe35XqnuixinOoktN9e03gxKrbNcfGO 8/4GsjhFfANlcj8+ibpHtcDjwekJ7haJzHU9rGBQJXhE2n0SoMfSkF3kYo4xqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730916179; a=rsa-sha256; cv=none; b=fC4vv7Bo/6HPuJIj199BLlV6TREU5GGze+/7oM8LkYEQ3aWkzctk8s+AcOkFBJ3Ju1PsjR VNOggTCn6IF8idPNZbq6PKCgI6zsTi/NRJvjsK1wfUQV+3H3yX1fhXkvTOCX/DMABATBRD QuRXQsbvsca/Q+2cFfSZkDPI2plLvx3KkUaSlzy90G96pdxR4HHOyNRsjKopFxvSeazclU WPRWZR4WFLDlu0c7oTd4dtLM+tuIZwl4jauRmA14KIWSrIWpssCc8r/Ylvhnr5Ggm0nSca M8aEVG8W+KF4cMEoXww8jvCTxP2tVD0KcAKmH/xZWie35XtYNFx5NXnVfNdb1w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkCjb16gjz19W0; Wed, 6 Nov 2024 18:02:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6I2xpD059242; Wed, 6 Nov 2024 18:02:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6I2x1c059239; Wed, 6 Nov 2024 18:02:59 GMT (envelope-from git) Date: Wed, 6 Nov 2024 18:02:59 GMT Message-Id: <202411061802.4A6I2x1c059239@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: a4e64fcd6808 - main - pf tests: test kill and clear source nodes paths List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a4e64fcd6808f638ce938ed028716a5c87b75dae Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=a4e64fcd6808f638ce938ed028716a5c87b75dae commit a4e64fcd6808f638ce938ed028716a5c87b75dae Author: Kristof Provost AuthorDate: 2024-11-06 14:28:31 +0000 Commit: Kristof Provost CommitDate: 2024-11-06 18:02:03 +0000 pf tests: test kill and clear source nodes paths Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netpfil/pf/src_track.sh | 70 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/tests/sys/netpfil/pf/src_track.sh b/tests/sys/netpfil/pf/src_track.sh index 2038393a240e..9d0ca690d344 100755 --- a/tests/sys/netpfil/pf/src_track.sh +++ b/tests/sys/netpfil/pf/src_track.sh @@ -52,7 +52,19 @@ source_track_body() "pass out keep state (source-track)" ping -c 3 192.0.2.1 - jexec alcatraz pfctl -s all -v + atf_check -s exit:0 -o match:'192.0.2.2 -> 0.0.0.0 \( states 1,.*' \ + jexec alcatraz pfctl -sS + + # Flush all source nodes + jexec alcatraz pfctl -FS + + # We can't find the previous source node any more + atf_check -s exit:0 -o not-match:'192.0.2.2 -> 0.0.0.0 \( states 1,.*' \ + jexec alcatraz pfctl -sS + + # But we still have the state + atf_check -s exit:0 -o match:'all icmp 192.0.2.1:8 <- 192.0.2.2:.*' \ + jexec alcatraz pfctl -ss } source_track_cleanup() @@ -60,6 +72,61 @@ source_track_cleanup() pft_cleanup } +atf_test_case "kill" "cleanup" +kill_head() +{ + atf_set descr 'Test killing source nodes' + atf_set require.user root +} + +kill_body() +{ + pft_init + + epair=$(vnet_mkepair) + vnet_mkjail alcatraz ${epair}b + + ifconfig ${epair}a 192.0.2.2/24 up + ifconfig ${epair}a inet alias 192.0.2.3/24 up + jexec alcatraz ifconfig ${epair}b 192.0.2.1/24 up + + # Enable pf! + jexec alcatraz pfctl -e + pft_set_rules alcatraz \ + "pass in keep state (source-track)" \ + "pass out keep state (source-track)" + + # Establish two sources + atf_check -s exit:0 -o ignore \ + ping -c 1 -S 192.0.2.2 192.0.2.1 + atf_check -s exit:0 -o ignore \ + ping -c 1 -S 192.0.2.3 192.0.2.1 + + # Check that both source nodes exist + atf_check -s exit:0 -o match:'192.0.2.2 -> 0.0.0.0 \( states 1,.*' \ + jexec alcatraz pfctl -sS + atf_check -s exit:0 -o match:'192.0.2.3 -> 0.0.0.0 \( states 1,.*' \ + jexec alcatraz pfctl -sS + + +jexec alcatraz pfctl -sS + + # Kill the 192.0.2.2 source + jexec alcatraz pfctl -K 192.0.2.2 + + # The other source still exists + atf_check -s exit:0 -o match:'192.0.2.3 -> 0.0.0.0 \( states 1,.*' \ + jexec alcatraz pfctl -sS + + # But not the one we killed + atf_check -s exit:0 -o not-match:'192.0.2.2 -> 0.0.0.0 \( states 1,.*' \ + jexec alcatraz pfctl -sS +} + +kill_cleanup() +{ + pft_cleanup +} max_src_conn_rule_head() { @@ -188,6 +255,7 @@ max_src_states_rule_cleanup() atf_init_test_cases() { atf_add_test_case "source_track" + atf_add_test_case "kill" atf_add_test_case "max_src_conn_rule" atf_add_test_case "max_src_states_rule" } From nobody Wed Nov 6 18:03:00 2024 X-Original-To: dev-commits-src-all@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 4XkCjc3GPhz1GnJv; Wed, 06 Nov 2024 18:03:00 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkCjc27skz4kBX; Wed, 6 Nov 2024 18:03:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730916180; 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=vKU+SWVV/mn5dKWHREN4yJkJoTpoDfIFIiDDpd4L2Z8=; b=eYB3+71TaVz37adTlFwHJwYEmuHHtPEvyI8hRSqgfQOqVuYGw3Q+7dEcasXezhUvUzzqYc r4I+bkJyac96MmPTbudBbqgOmCDCT874YeigbSXLhTJz0ZI2DBVvi7WR3CErY0is3UYTHh wwBWmBDrO+A5Dj1b55JaLtusLKBdlke4GMaD64/Gw+NvrOLGZ8DfazD4Z9niNJdUhVf6dR Ftv9/r4Q9bE1OGGh76bVONUahNU4w8KSvKVlLMR5TwCOOKyZQEKVQlN3cEQ9rm1T0pyJjh CVavFgqcqdUT4yGk8FTtMOCBo+Zika3yV7hV8il4BGhVJWKMiQ4ZvXnxidcmug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730916180; 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=vKU+SWVV/mn5dKWHREN4yJkJoTpoDfIFIiDDpd4L2Z8=; b=TPpHspy/s32hIxz21XRCaDU7ys2rGfSXXTcG7CJdV0EnmZtnS/YzxfQO+UD+fhqeyy1TkH fwKgMXnjVjs23cx8H16Wt4UsqpFHMlbnDQRG98uD+GeMrd8VhLMBJw6Sr6tAr0CtkfAIs/ 45F+U1L0DArNRZaIeMyVqdUMSvkIk1C6QnmCsVeqImql4qtdKcjrWw2L1KPy2K3rLDKE79 xfCVRMm0mdZYY245CbaXigUmeTWYVEkUIONj1UV7O0Bz+5sKZvE2tInZQM5yuln4CrbebG Vxq67rbGI+ecY+n3I3jMQFp8htG6fhOHjCqPBk/JXwaK3DUKq4dhZatfPFpfmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730916180; a=rsa-sha256; cv=none; b=FqOTjGRkbMY6npjKcp5J/Hki22Mdx1bmen9odkFrhIyMhtwDDn3L0xgDKDQAHLaLLhopfs gnLVzDj7urISRMSLgNhvNAEYctfAmX3WRLWWrPM4hgcqAi5KN3Lv5L7z5/nNWrhqUxh9dO R2TJEAuYIMsGXM+TGGwvA+iyOkRY9I9Jmzgt0g6OhuNH6s6U6XxVlijx0iiMvXEMH5WAWT Zq+buEdgEQDl0cSvSj9Su6WsOrkf/6cMSQtqXYqxZ78UTNe136M/BCRvqEsGpy6WJXCtDH 1Oizg4KrDviR5nGuylBSYTKOn/CDSzY/P3AprhVWPGmMtbbgE+wa1nw675Jo2A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkCjc1l1fz19qQ; Wed, 6 Nov 2024 18:03:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6I30ZY059298; Wed, 6 Nov 2024 18:03:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6I30uv059295; Wed, 6 Nov 2024 18:03:00 GMT (envelope-from git) Date: Wed, 6 Nov 2024 18:03:00 GMT Message-Id: <202411061803.4A6I30uv059295@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 609fa228bae6 - main - pft_ping: improve IPv6 address comparison List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 609fa228bae6d864558f5167d4a964aab2a5fc88 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=609fa228bae6d864558f5167d4a964aab2a5fc88 commit 609fa228bae6d864558f5167d4a964aab2a5fc88 Author: Kristof Provost AuthorDate: 2024-10-28 13:54:50 +0000 Commit: Kristof Provost CommitDate: 2024-11-06 18:02:04 +0000 pft_ping: improve IPv6 address comparison Don't use string comparisons, use socket.inet_pton() instead. This avoids confusion when there are different ways to spell the same IP addres. e.g. 64:ff9b::c000:202 and 64:ff9b::192.0.2.2 are two representations of the same address. Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netpfil/common/pft_ping.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/sys/netpfil/common/pft_ping.py b/tests/sys/netpfil/common/pft_ping.py index 0d1134a22dda..a2a1d9c7f4ec 100644 --- a/tests/sys/netpfil/common/pft_ping.py +++ b/tests/sys/netpfil/common/pft_ping.py @@ -33,6 +33,7 @@ logging.getLogger("scapy").setLevel(logging.CRITICAL) import math import scapy.all as sp import sys +import socket from copy import copy from sniffer import Sniffer @@ -227,10 +228,12 @@ def check_ipv6(expect_params, packet): if not ip6: LOGGER.debug('Packet is not IPv6!') return False - if src_address and ip6.src != src_address: + if src_address and socket.inet_pton(socket.AF_INET6, ip6.src) != \ + socket.inet_pton(socket.AF_INET6, src_address): LOGGER.debug(f'Wrong IPv6 source {ip6.src}, expected {src_address}') return False - if dst_address and ip6.dst != dst_address: + if dst_address and socket.inet_pton(socket.AF_INET6, ip6.dst) != \ + socket.inet_pton(socket.AF_INET6, dst_address): LOGGER.debug(f'Wrong IPv6 destination {ip6.dst}, expected {dst_address}') return False # IPv6 has no IP-level checksum. From nobody Wed Nov 6 20:21:54 2024 X-Original-To: dev-commits-src-all@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 4XkGnt4hKpz5bn06; Wed, 06 Nov 2024 20:21:54 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkGnt4D7gz41Dp; Wed, 6 Nov 2024 20:21:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730924514; 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=hILWpYEBnU09bTatA6p227oG+NEhJpEz/BxrHd3Eawk=; b=GQjcWUpbX9JrBmIUte7irC6frBnozIlZ3+mbmJzbj04uGPM1cc3Bjpl0Qx8o9oLnosr1wV 1/gmJMpBDNED+pTAQzZGiXhvbsr6cqV9iLepuMNJu+cyPbZhLNikWalGomcRtpzXaAw5BF b7QdCIOBsAfp8XV1rcEXKm+fmIb71/Mqvb2yVxMso1tcIZR+h58Z2sXrrzW2n1UAWpDqcb /ZmszzmbI3eXvcbiMyb/aIiGR9aBHbBgLjDCWga1spEIq4SxmeD9zYxDL0EkXMEHe5obTl 99FZV4GaT+jrP4gT1fK0KQqk9BAGByS2sOmKLGL6//1gtve9ho9ztz/ByZjGaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730924514; 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=hILWpYEBnU09bTatA6p227oG+NEhJpEz/BxrHd3Eawk=; b=bFi7UTEh3rluNLN+dpJi53p1vVjvplNxZFyKK97owEH+v1T2aYNOuVtay8BAgW1wIsEKcr 96jAvbbnbpU0o9RwqgEuk1UVPuKWVd3XdkBzRmVliAsOD25okxI+ucQBZe1Coq7ouiXRym XF0RnXk8eZh9S1FmdKHv/+AAkebxfBGHt5vAdfuNLQ4x76D2RkVLdwu2biwCo7RGrI2OMK Z3tL8q9Q7qu0pCFmMCMBnP65tb8gI91GeSEjl4AFOYrlmsXKI1lYoEMkcx581Fe9V2oR+Q 7F+9IVNzDaMNYrtNP5gPHXABYheQpgmmsPCJnmeUxP0++b9fjY34t3vLSyn1iA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730924514; a=rsa-sha256; cv=none; b=ZhHctR982b7eW/dnwq6GaV1aDmktG4c4yR8hEsOxtG01D1GbIO+qRggpIf0I43cBXm/ub5 LkR7twWjHHM7AQ2mb+oUaxOpeobBLh4zp33GmgycvcODKKqtjKVO+mFezzOaXentNe4C+P fACDyKkwudszvub/YnFQzGoRRLsdrR1cFVPq9azj/ixtKm6EEBtxRUSQKRTHLDROoQ7M7e mTIAozjh+JOKK4hBksBxoGIe57pfMayF5GeSLznY6F4cWQTP/VfIBLCzPX3myW3zLEzJPb cstxBPm3g5ezAQF28zec8p7K03eLiYwhaslMk32x/pKbkUpZWgDGU/Yv4yB1ww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkGnt3hLkzFS8; Wed, 6 Nov 2024 20:21:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6KLsAQ017998; Wed, 6 Nov 2024 20:21:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6KLsf1017995; Wed, 6 Nov 2024 20:21:54 GMT (envelope-from git) Date: Wed, 6 Nov 2024 20:21:54 GMT Message-Id: <202411062021.4A6KLsf1017995@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: de45d36ffb60 - stable/14 - bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: de45d36ffb604798c22f7ee556d774490902c1e1 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=de45d36ffb604798c22f7ee556d774490902c1e1 commit de45d36ffb604798c22f7ee556d774490902c1e1 Author: Dimitry Andric AuthorDate: 2024-07-30 18:28:51 +0000 Commit: Dimitry Andric CommitDate: 2024-11-06 18:52:10 +0000 bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. PR: 280562 MFC after: 1 month (cherry picked from commit d575077527d448ee45b923fa8c6b0cb7216ca5c5) --- share/mk/bsd.sys.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index a1be8a8a2225..061c6b36f84d 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -88,6 +88,10 @@ CWARNFLAGS.clang+= -Wno-unused-const-variable .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000 +# Similar to gcc >= 8.1 -Wno-error=cast-function-type below +CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\ From nobody Wed Nov 6 20:22:10 2024 X-Original-To: dev-commits-src-all@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 4XkGpB2wVZz5bnHZ; Wed, 06 Nov 2024 20:22:10 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkGpB2TdFz41v3; Wed, 6 Nov 2024 20:22:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730924530; 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=/HAIIRdMWmnPJzHATpx2MPcFL1fSLCwxNGiiXfSLGPo=; b=eVNByzcw1v8tDe+bL/Kb+PGoHh/rT9TEIdlV8x0X9fr9LrdJbAuCXlpdvhuigkWRuIfo48 8Fd9DolwaPu9QfK3sPECwBEwNFBgGVU2IiWpVjVFAvUYY3iEktqHWtMLk2Zwk52mWKLxim gq7d5KPjyr+3DnJwoJQ1XpwYQTYYTZJjbGXyKDliGgVLYnevvGTDIMd0jKwkRr9mD49Ui2 9DiGvo3bG5UwRuR7lSycTLFFi6Np747kcJeDDTr966SYRnfyQK59ShFNQ5tL7155mIZoeV C8k9rws/Pc9bfIlfNC5aPwhFxGmO5g9ZovGyaWcv3pIrzzvy3nr7jLxr906mNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730924530; 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=/HAIIRdMWmnPJzHATpx2MPcFL1fSLCwxNGiiXfSLGPo=; b=BDmMpSCtErGddxlqwwW3ujRt9SZyFhgxkQq6xPuOjmXRcSf4VwXQ2zeyv8uznHFwF92uHX /F9kmElmdsUncrRZ5KR7kcdeCX+iefmyxMz19kPs5JtQG/jglDKmMrSkn7nRjdgrTnAh7z 9zLAwZT6fYHbMaJQWS+ZjvwGgrpXa9U5bCYGSoG/ZsZ+RruogvhU4Ht1UQNpNB5ZD47q3X Tff1O81Vz+ySRIy25LSpAdBtjFzSekX7vUoXmvRzJvD0lke1H0+HgK7z/szL2sMOPx1RZi ApMwVP+kX8BjWle/AYFhlfBOMR5OLeHxRpyPBGH/i7VrpxTkfPaSxtpicFouyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730924530; a=rsa-sha256; cv=none; b=RGQoeYtzHXHwlNrmIZl+oC6VRFhHUpiAoGHSC6He8N7zcJEqZL6BqruST180j9YNsHz+OH a6IpVzjGx4mBx61ZmmWVp17GSAHc1rai/m8brH1INqxMkRjFu9g8a8cuyFb4pG/9eWg1LL cmsdsd/s/65dH4ZfpDZYOO+6HIbJaxQ35X+m9x3hBXmcmUlXIlI2R1kLOcvDH769N+mcvI 1zq6sP4+xjFdW1FdBgOj1hd07tA3rZDOvH8BOgRnMdIdQdBUf1JJhl3LquMBP+rFYkAGfJ uipYI+CRLBytsqDPQKcYA4KDmqeHjQraATFTuiXg4PcSGjCYtWZ9BF4ao+4mbg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkGpB24h3zGJd; Wed, 6 Nov 2024 20:22:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6KMAs0018270; Wed, 6 Nov 2024 20:22:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6KMAOr018267; Wed, 6 Nov 2024 20:22:10 GMT (envelope-from git) Date: Wed, 6 Nov 2024 20:22:10 GMT Message-Id: <202411062022.4A6KMAOr018267@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 5221ce15aa9e - stable/13 - bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5221ce15aa9e0097b365b305c20d05154b67571c Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5221ce15aa9e0097b365b305c20d05154b67571c commit 5221ce15aa9e0097b365b305c20d05154b67571c Author: Dimitry Andric AuthorDate: 2024-07-30 18:28:51 +0000 Commit: Dimitry Andric CommitDate: 2024-11-06 18:52:15 +0000 bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. PR: 280562 MFC after: 1 month (cherry picked from commit d575077527d448ee45b923fa8c6b0cb7216ca5c5) --- share/mk/bsd.sys.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 83d3004adf90..d28bf09f2cb2 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -95,6 +95,10 @@ CWARNFLAGS.clang+= -Wno-error=array-parameter CWARNFLAGS.clang+= -Wno-error=deprecated-non-prototype CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000 +# Similar to gcc >= 8.1 -Wno-error=cast-function-type below +CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\ From nobody Wed Nov 6 21:52:23 2024 X-Original-To: dev-commits-src-all@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 4XkJpH35qLz5btNw; Wed, 06 Nov 2024 21:52:23 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkJpH2cmyz4Cps; Wed, 6 Nov 2024 21:52:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730929943; 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=4uyC6wWzfQx02RWN8SnJzClvkrQjJuncIeiX4YkIlzg=; b=knxOHBROpFrXIA82QFy44J4GIwG+GGhT8vyaV7GjYqeG4AeU01AOzJk+ytc79o4kNE4sWw qYm7fv8y4xFfA5fBUoZ8nH0EDKlUJODVPZXrStTFT/c67bC06AO+p3VOz/pCtEZ52ZVUbC 28N80A59a8j+y5XD90iDjzQ6FshVPuP+EE9zoU0G+osBRSgrmwvwhKuiuIsrRAcxm+uQPp RChgqnLvFJXfmk338v1SKbl276KzdVLSy7Egu99yy/X+lUnft2jMNj3bVXP5H7JHkpYjQJ eu+vupu73sae08igU094mynTT4Dt4Rz1myLAV0NIdwWakS/v7WIzP1dBgscInw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730929943; 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=4uyC6wWzfQx02RWN8SnJzClvkrQjJuncIeiX4YkIlzg=; b=I/zY3lUwzIAjVMtbLl9u449bsljnHGD+CHKifbduAEOlojiriz8WOBHyBQszF+dl6SIyR+ Fv/MF76/wXQ5HzR7P1AoCUXvSa27OvYTSoKzVpJ2+fYBjDPIOcBEtD51PBnGctCQpbaxZU 2gXYUjyJ2BLbRBfCI7y06C3czhowwjpRj4avsVLxkyHLoFBFSz0u0aSROFW7gyPuMRhMVG jElpp476x0aK7UFbNpdha9URib09NxrVLxqj2qTxmj4+rMB954Qtq3HBQbKT0knFkZRFuM 4Ei2bwQroVdagbUPhA1RS4Iod/fSi3opjk/v7NthlTPI8TQsMxC/d9zN77VbYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730929943; a=rsa-sha256; cv=none; b=fcPi0eGYcEvlG0GDc0wN2pQODsXqpDDouQkvb+iaw0D6f86EQLqdRSW8X+QG8v0rlZbB6U Nx3v3UNRQUJMEGhXRlne7yvieJDkaY2B3BYt/FDhMleAVf/DhTGFHGMR3hk2W/FxttmoZT x7hBx1OTaaDAeIdmt/1JASuFuhxGca+IkA5HV/JuoqQhjlZEa68V7s2zfGtD1rfgPGBIYk P3BPw3jAeVb+z+6+kpQayx+ZXjodBCPxTeEsa4JyK/PUcFaeaimSSi2Mju4AYAr75dhpo0 j6Wn3FmMyCnZmDSHBmluNA0Ht21NZW7qwB3YrYrOu+T3aTtKJncxQyKqwj3pqA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkJpH2CcczJRp; Wed, 6 Nov 2024 21:52:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6LqNBx082323; Wed, 6 Nov 2024 21:52:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6LqNdl082320; Wed, 6 Nov 2024 21:52:23 GMT (envelope-from git) Date: Wed, 6 Nov 2024 21:52:23 GMT Message-Id: <202411062152.4A6LqNdl082320@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: a4c23ad43007 - releng/14.2 - bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: a4c23ad430077234207d13e7f6341aad442a67ce Auto-Submitted: auto-generated The branch releng/14.2 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a4c23ad430077234207d13e7f6341aad442a67ce commit a4c23ad430077234207d13e7f6341aad442a67ce Author: Dimitry Andric AuthorDate: 2024-07-30 18:28:51 +0000 Commit: Dimitry Andric CommitDate: 2024-11-06 21:51:39 +0000 bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. PR: 280562 Approved by: re (kib) MFC after: 1 month (cherry picked from commit d575077527d448ee45b923fa8c6b0cb7216ca5c5) (cherry picked from commit de45d36ffb604798c22f7ee556d774490902c1e1) --- share/mk/bsd.sys.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index a1be8a8a2225..061c6b36f84d 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -88,6 +88,10 @@ CWARNFLAGS.clang+= -Wno-unused-const-variable .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000 +# Similar to gcc >= 8.1 -Wno-error=cast-function-type below +CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\ From nobody Wed Nov 6 21:59:50 2024 X-Original-To: dev-commits-src-all@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 4XkJzB3h0kz5btkY for ; Wed, 06 Nov 2024 22:00:06 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 4XkJz94jf4z4DjM for ; Wed, 6 Nov 2024 22:00:04 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of jrtc27@jrtc27.com designates 209.85.221.51 as permitted sender) smtp.mailfrom=jrtc27@jrtc27.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-37d4d1b48f3so145849f8f.1 for ; Wed, 06 Nov 2024 14:00:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730930402; x=1731535202; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fGoL0yajA4BHCKT4ZtV51wlk4vOmA/Qw6bpf76MwgzI=; b=FXTxF/jNxG5WiQY4hvKuqClDUPTChtCvckUyaFgl9NuHFqawDGc+h0VeLQFOxIINYX PiAqayADTQ/pinVK3Bpkl0gGngre+RZ4WSFFnWViiIYeq7KK4u2gFa0402KAFY9yKAdw 1PHKaPt5+uJ6Dv5Dr8IQD7ZXwmNBOfWScLAICgmOFv2mRjq+ilfmU1a8wNZtTQj3bYVo gCCxzodGG0TGsc9mycO+eTQGBH3Pe5RSnWWODPWC9tt1a3S3PoOhCo0TXFd+/p+SfOzL SwLye6lNsJ/kisxp63o/RFfz09MRdl8PYjI+w79PZYktDMrBdpThmJaPm27wzvdD9eQG JEOw== X-Forwarded-Encrypted: i=1; AJvYcCXfyJhVOcAPBilW39AUG//1UD5hE/hYMkTTJghNVEbUX+5+VT2e/8FpRK+H4HncaOTKDustqQZID3hZdq5V0vRhK61I@freebsd.org X-Gm-Message-State: AOJu0YxOPGatULeWNoAGk6hQuD3NSYz7G8tHo4Udzwr6hQKbnBScxuiQ fGbzDSmaIJdgEUHcvN0F37SNAm75ghFrpqA8Y2mB6kDnGRMRsO2vW9xTPJnPre0= X-Google-Smtp-Source: AGHT+IElsFloyq1B+sIdL7Bd28E7Kug0Ku1GznP35njo8YXR75x2OF3wU6/XXWlECrow49fijHXJBA== X-Received: by 2002:a05:6000:b4c:b0:37d:3735:8fe7 with SMTP id ffacd0b85a97d-381b708b14bmr18803314f8f.32.1730930402299; Wed, 06 Nov 2024 14:00:02 -0800 (PST) Received: from smtpclient.apple ([131.111.5.201]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c10ea7c2sm20285043f8f.57.2024.11.06.14.00.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2024 14:00:01 -0800 (PST) Content-Type: text/plain; charset=us-ascii List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) Subject: Re: git: cdfd0600dc88 - main - release: Include -dbg files in dvd image From: Jessica Clarke In-Reply-To: <202411052139.4A5Ldkj3078621@gitrepo.freebsd.org> Date: Wed, 6 Nov 2024 21:59:50 +0000 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <202411052139.4A5Ldkj3078621@gitrepo.freebsd.org> To: Colin Percival X-Mailer: Apple Mail (2.3818.100.11.1.3) X-Spamd-Result: default: False [-1.12 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[jrtc27@freebsd.org,jrtc27@jrtc27.com]; NEURAL_SPAM_SHORT(0.28)[0.277]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[jrtc27]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.221.51:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[jrtc27@freebsd.org,jrtc27@jrtc27.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-all@freebsd.org]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.221.51:from] X-Rspamd-Queue-Id: 4XkJz94jf4z4DjM X-Spamd-Bar: - On 5 Nov 2024, at 21:39, Colin Percival wrote: >=20 > The branch main has been updated by cperciva: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3Dcdfd0600dc8882f0a0d0e6d9a1cdcf92= 6edba6d6 >=20 > commit cdfd0600dc8882f0a0d0e6d9a1cdcf926edba6d6 > Author: Colin Percival > AuthorDate: 2024-11-05 21:35:17 +0000 > Commit: Colin Percival > CommitDate: 2024-11-05 21:39:38 +0000 >=20 > release: Include -dbg files in dvd image >=20 > In 2016, commit 8834318685bc reworked the code for excluding -dbg > files from install media, and in the process accidentally broke it > for dvd images ('grep -v' should have been 'grep -vE'). >=20 > FreeBSD Update builds later began to depend on this, and in any = case > since DVD images are intended as "include everything" images = there's > no point excluding those; so remove the (broken) filtering from DVD > image builds. Ah, my bad, I found this a couple of years ago downstream[1] but should have upstreamed the second half of that commit (which also went one further than this commit and removed the now-pointless $$(ls ...). Jess [1] = https://github.com/CTSRD-CHERI/cheribsd/commit/7cd4d52c6df917ec4dc8aa74ad2= 88de83441d8c8 > Sponsored by: Amazon > MFC after: 2 days > --- > release/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/release/Makefile b/release/Makefile > index 6f59647ff5db..9f19b150ae65 100644 > --- a/release/Makefile > +++ b/release/Makefile > @@ -241,12 +241,12 @@ dvd: packagesystem > -DDB_FROM_SRC ) > # Copy distfiles > mkdir -p ${.TARGET}/usr/freebsd-dist > - for dist in MANIFEST $$(ls *.txz | grep -v -- '(${base = ${_ALL_libcompats}:L:ts|})-dbg'); \ > + for dist in MANIFEST $$(ls *.txz); \ > do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ > done > .if defined(NO_ROOT) > echo "./usr/freebsd-dist type=3Ddir uname=3Droot gname=3Dwheel = mode=3D0755" >> ${.TARGET}/METALOG > - for dist in MANIFEST $$(ls *.txz | grep -vE -- '(${base = ${_ALL_libcompats}:L:ts|})-dbg'); \ > + for dist in MANIFEST $$(ls *.txz); \ > do echo "./usr/freebsd-dist/$${dist} type=3Dfile uname=3Droot = gname=3Dwheel mode=3D0644" >> ${.TARGET}/METALOG; \ > done > .endif From nobody Wed Nov 6 22:26:20 2024 X-Original-To: dev-commits-src-all@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 4XkKYS3D1Mz5bvtZ; Wed, 06 Nov 2024 22:26:20 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkKYS2XjDz4GXR; Wed, 6 Nov 2024 22:26:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730931980; 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=nHeqvWhKQWL0N79JseEi5znehpTywWUba2n/V3BlQf8=; b=x+PxC8w8cKF54lgsW+sqj7F1qReZabz4r83N0xCx5ge2ytDSr874XMfYnMry0/geTVp0Xn A4q9KZ50Aqo8JUY91ofoAJN58ru8pAEpidiTfWF8sLfEE0P4vsex4AvOD1ORhLo9+DRp3x nbRIxO9I2OM1CX2JmVgP2ZABC+NkNYSHoHUoNMnV5Rd3oeJx0lG5yLEfaG1r8PWg0mJJQo iJ4suZIiTGaCjOU5XUdP9OmxsAmxUgGr3Dx4I+nwLlyu8n4TmL6J8E+mboJbjxc4LHsZa2 2QM7aqcjNn5MbLsdEidVYkLIknEEFsL4Blyv+Gkzh6Atyb/wjKmS03/VqkeRWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730931980; 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=nHeqvWhKQWL0N79JseEi5znehpTywWUba2n/V3BlQf8=; b=O0ACREflX+lvLVhlfJolDrK0AirO/mtDpJdXRjjzXI0N8UzdpTZVWSFrrPAzHLhk7w3QBL daBw1HkEuGIhPneimtzHjz+hYjaHR1bHRx7LgkwDObGG17ilf4n1zySF7nsz2KWJO0891D z8aMSCuYlnVZJtPpXmNHFBNi9IdI3jZ8SarJFbMCqPOe4OGA/rYymeKtrmnFfMizZgRzOI 8RGZg/tMiQE76O8lqIpxd517qn1IHLTHini7wDBoBwS89rooVpB3msQDYn3Cf73RSDl+AU 9OGISq+aY6yFZiDuiqm2QghT/5+gTfDRDlwLr14ODUBAOfbwihKxqfVgpXn++A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730931980; a=rsa-sha256; cv=none; b=WG97mFaVooSDwZDNLNQCjQpZHJeQzWb0zqnXG13etRUhQ+mESGwgxMfvM6s7mylANFUXuo LvL1+FVQSngo4mkdZMtNYBttXVSEkPUH+0Fqtb/Kuw/2/mE7d3xVz20iwTqNCFWS1Ew7cd w3sZcXH9PzN7axcor+Cfhu/R30cpVbeVaO1HmdnUPyFA0RBtSzlhjZ+AtyJESkoaesqmJP z0pLDLQiT0alFw6WPaiFMPbQOpzptE4aPNmpJwH7i3bqbburL/I+E7XLP1DJTEP6p+sAo/ a4IqZ+8CocBByB6yEx0070FA9nj2wcUdCf85LZiAwk9pi/5AdE6BQg/raNYOSg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkKYS1vXmzK20; Wed, 6 Nov 2024 22:26:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6MQKAg042215; Wed, 6 Nov 2024 22:26:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6MQKLl042212; Wed, 6 Nov 2024 22:26:20 GMT (envelope-from git) Date: Wed, 6 Nov 2024 22:26:20 GMT Message-Id: <202411062226.4A6MQKLl042212@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: e166fea685da - main - release: Remove useless ls List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e166fea685da4ac6a6891f10b07f98d0e9fcfce3 Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=e166fea685da4ac6a6891f10b07f98d0e9fcfce3 commit e166fea685da4ac6a6891f10b07f98d0e9fcfce3 Author: Colin Percival AuthorDate: 2024-11-06 22:24:34 +0000 Commit: Colin Percival CommitDate: 2024-11-06 22:26:09 +0000 release: Remove useless ls Replace "$((ls *.txz))" with "*.txz" Reported by: jrtc27 --- release/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/Makefile b/release/Makefile index 9f19b150ae65..be628d20ba8d 100644 --- a/release/Makefile +++ b/release/Makefile @@ -241,12 +241,12 @@ dvd: packagesystem -DDB_FROM_SRC ) # Copy distfiles mkdir -p ${.TARGET}/usr/freebsd-dist - for dist in MANIFEST $$(ls *.txz); \ + for dist in MANIFEST *.txz; \ do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ done .if defined(NO_ROOT) echo "./usr/freebsd-dist type=dir uname=root gname=wheel mode=0755" >> ${.TARGET}/METALOG - for dist in MANIFEST $$(ls *.txz); \ + for dist in MANIFEST *.txz; \ do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \ done .endif From nobody Wed Nov 6 22:28:38 2024 X-Original-To: dev-commits-src-all@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 4XkKc83xrvz5bwM6 for ; Wed, 06 Nov 2024 22:28:40 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from mail.tarsnap.com (mail.tarsnap.com [54.86.246.204]) by mx1.freebsd.org (Postfix) with SMTP id 4XkKc8281Mz4Gdt for ; Wed, 6 Nov 2024 22:28:40 +0000 (UTC) (envelope-from cperciva@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: (qmail 177 invoked from network); 6 Nov 2024 22:28:39 -0000 Received: from unknown (HELO framework.daemonology.net) (127.0.0.1) by mail.tarsnap.com with SMTP; 6 Nov 2024 22:28:39 -0000 Received: (qmail 29100 invoked from network); 6 Nov 2024 22:28:39 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 6 Nov 2024 22:28:39 -0000 Message-ID: <135bc5fa-6cfb-40f8-93f6-8e99fca1cc20@freebsd.org> Date: Wed, 6 Nov 2024 14:28:38 -0800 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: cdfd0600dc88 - main - release: Include -dbg files in dvd image To: Jessica Clarke Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" References: <202411052139.4A5Ldkj3078621@gitrepo.freebsd.org> Content-Language: en-US From: Colin Percival Autocrypt: addr=cperciva@freebsd.org; keydata= xsFNBGWMSrYBEACdWRqDn3B3SKO7IG0/fGHYtfs26f3Q5QeAcasy1fQLniwGQWn5rlILhbCD K/jdNoDm5Zxq20eqyffoDNObCjnHgg4tGANdi+RmDy+7CDpE789H8dss9y7Pt5DlGGAXQQnt hxush3EYS/Ctprd9UUL/lzOOLOU1aNtzB84tNrJBtcJmL7OYHfyTSNFxvedqJrrasejIQOLI t/DQ89BPzz+vsKHz7FJPXh3fsVkzLA00DJYcfkgxyABfJNA7U6yMwd4DVSdx/SsvfIDMVXnu UXCXswo106WPZbYGlZPpq0wW6iibtTerJix+8AeuwXvl9O1p8yESK4ErkIxCnmghTSz+pdzj z/6xBRkdDM9VdZ0r+CzsaNXMpDOzFuKyjaiYBdgCLljbDnXIHFcqXenrZ7Xwkm09g/M4uVSh pIUG2RYa6tsHSQoGCp3f2RZv1znfViKQFbbL83QjtPA20AhseZSYbHp1FPhXyy9J0wkGL16L e99g6gdGeIRE82BZjBjKGDkoyDPq+oDRSFl8NtzmIKy+cfz00nViqcTF4bREXEawFGhlpO0X O9q8mijI9iFB6zaPBiSdJGBL5ML5qLTNCl8Zlf4m1TBvmRTqF/lzMHVXHidDoUhpSh/y3AFZ 1KrYc27ztJQywDJPJPWPbtY8YhFLFs377gfP8WldsZjzp8nvoQARAQABzSVDb2xpbiBQZXJj aXZhbCA8Y3BlcmNpdmFARnJlZUJTRC5vcmc+wsGRBBMBCAA7FiEEglY7hNBiDtwN+4ZBOJfy 4i5lrT8FAmWMSrYCGwMICwkNCAwHCwMFFQoJCAsFFgMCAQACHgUCF4AACgkQOJfy4i5lrT++ ig/9GZKdN2fHSyrANKZX38ivd7IX2wAYouqH9DrQM94W8IciaDLmarN4Pl9mY+aucMwQUSyp uNtKOJwKqhVVaalF9Zw0sRMH4CJuvT7vKCtZ3q1Okb7soRvFte4d+vXhvPxCvBFDA5JzU7Lg DR5eqqcvF1dN1OuCq16pl0zCOSH/Jr5ToE3LM3Av1KBGcZD7ZSzHRWsFjV5AOUJKySuA3GwJ e/jASQcQ0YfCnru8ntLmYg/2SKvZFlfthZiCBnAppMt4n4BUAw3TDvf10HIDtdneejawcbLS gofLCvGqumwbZYAMKWrFzT4+7KQvr0pOw8QD7EbxnB4f9hQ7UiVF8qWsyKU3iv6b5JLhbS59 ooKRccyOvdMLcVJ0ZdpqoxrNv061ZUqLL5RiWjBlc1qjBnDxeg5oyM0rT8WLftdgvyH6RQt0 KWngumBAT5AT2DUYL8Uz1490cqfO9K4yEGZAJB9XRVX1g2IWTOjae+0g9ZII+h91UngFz+Rz aKDeseKBbCGDOFXx1TqKiHl2g255ZnUxKYTlucFtguv4gDGBgEk4G9JaEWBw1IWblcKhxH7L 2vWsUhvwghjIxHdO/RkeIeHvSp4YZxCJ7a3TaJLYAlwYopfTKVzNhcDY5h5syEuoHjyJCxXK SyoJYAVu8Yl2KUhvOtOmL1VZ6xyHnpdMRWKJZ5jOwU0EZYxKtgEQANYfgbtUMVnhjxDHhWLp g5kLHK3YW0TfJKzpXqDB7NiqxHofn4OcbZnVC3MKggcbs9o1/UtsjnlsG8550PfiYkDXvPiO RJwgbGs6MGIDK797C6cnBLQ8xwBa9SL4cl5iQFnhWmt6vwnJ+an/cm5JpYves3wL7jV09qU9 57hkHXEUcl38r4FssZzVcLKPUVTa3Un+QGRTGDGe/f4ctjMaqv0ZCM+l2ixPhf/vqESrfSLv V/+T3dmtUfXjazO3SABvsHwxgGuTTYOlKoPCaebr+BRdqm0xeIShoIlhvTI8y4clchqx/Uxg UG5X2kvU13k3DS3Q8uLE4Et9x1CcZT6WGgBZSR6R0WfD0SDnzufNnRWJ0dEPA2MtJHE7+85R Vi9j/IgZV+y5Ur+bnPkjDG1s2SVciX5v9HQ0oilcBhvx0j5lGE9hhurD9F+fCvkr4KdbCknE 6Y8ce8pCNBUoB/DqibJivOzTk9K9MGB5x0De5TerIrFiaw3/mQC9nGeO9dtE7wvDJetWeoTq 4BEaCzpufNqbkpOaTQILr4V6Gp7M6v97g83TVAwZntz/q8ptwuKQPZ2JaSFLZn7oWUpYXA5s +SIODFHLn6iMoYpBQskHQjnj4lEPJadl4qj+ZKA89iDAKsniyoFXsbJe2CPbMS1yzBxKZq6K D/jpt7BOnuHr/JrXABEBAAHCwXYEGAEIACAWIQSCVjuE0GIO3A37hkE4l/LiLmWtPwUCZYxK tgIbDAAKCRA4l/LiLmWtP3jmEACQrh9gWe8F1Tkw3m6VoHKwLc5he4tX3WpQa//soPO6iGG3 S3WPruQ46NrAaAojoOcKI9UONDO5rxG0ZTX53S+lu2EO47jbcLwOCjaEpjKpDRt9ZXBQE8Xl mtBE9Bp3W9gpjB1nE3KNM1mJYgsK0QdRpwwfh4pVgGpOj8j23I6MCK+v99zEBnpgCn2GX8W/ kctRXHqWwndHysOJtRP/zrl7dDaABF1f9efUl0LL3TD3GJ9VDz+DNOin/uK2a1hiJo8QzTRk PpfUQ2ebzDsrd1i/pOWkMSkdH+rEu4AGrXWtaBwrMyrGkL6Icb6yO+P9/z0W2wlgBf3P1YRt JPgQt/Dj3yvA/UnaV/QmuVQPjl13o24UnJGsZM8XGnNdfWBKkC1Q6VXC4QT+dyBHYH9MuE9d 6oGl8pFM1+cTfEfbM62/rRoPkF1yHMsI/903VxEvuUIKfhEZAVLFyHldooNxuchntHQP9y8J 8Ou9bWYQP7MnEn+kwSwrZkjurfPkan+xQvp6dDYnj3V0GwA5pprBMaB928VIDVOv+1PNQI3t Cvk5VPv/skq+TJRMHW7bFSt8PRa91cUf1FOLIz9APDiJOzXkwxUEHGV3zPSaUhs1JYjyBeGT wDAvtLUdjOnRhEUOwlnIrztmvyciutjJoVzKEEjj5WXnHk9L9kQ1bpAjkjTONw== In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:14618, ipnet:54.86.0.0/16, country:US] X-Rspamd-Queue-Id: 4XkKc8281Mz4Gdt X-Spamd-Bar: ---- On 11/6/24 13:59, Jessica Clarke wrote: > On 5 Nov 2024, at 21:39, Colin Percival wrote: >> release: Include -dbg files in dvd image > > Ah, my bad, I found this a couple of years ago downstream[1] but should > have upstreamed the second half of that commit (which also went one > further than this commit and removed the now-pointless $$(ls ...). Good point, I've taken out the useless ls now. BTW I opted to keep the -dbg files out of disc1; that image tries to be less expansive than the dvd image. So there's still a little bit of divergence between FreeBSD and cheribsd here. -- Colin Percival FreeBSD Release Engineering Lead & EC2 platform maintainer Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid From nobody Wed Nov 6 22:46:38 2024 X-Original-To: dev-commits-src-all@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 4XkL0v0t3cz5bxTs; Wed, 06 Nov 2024 22:46:39 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkL0v0Lrqz4J3T; Wed, 6 Nov 2024 22:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730933199; 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=8BtkITJEYb7rgXSDsexpeHtK2e7/1+q/10leS9yNGC4=; b=yiaW/1wKYQGaRmvB9D3QMO8tzcdx6zuuhUbFzgjvpwxZpx5yAL4KN/P9QbotB2L6J/Gbjp dOU8Z8J8Z9VrgRWhsjDF3ht/Jjk8PjKIxZg/EPj4C4netE457zzKMoNMc/QAw1JILroj4a CB4KW17pavkEBwEk/rgntqpsgA/FJSBpKyz1N4ZJil2cSUITJP2kK9+a4C5duNkPI9EgkY m5xqazWqURd2o5tdNn/49jk/Eb5knwZS5tKI9bfvHGE/5n4DKyCcOvtU1+TVHElhU6AhpJ LKQxCzC2Gd8/AcuAsVIMlsaPzeMhWlwQQJwzL5sYuBn6Y4oEtt9DgH+H4UVCpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730933199; 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=8BtkITJEYb7rgXSDsexpeHtK2e7/1+q/10leS9yNGC4=; b=gjuzPEQjaA3mxcxXWtSaGXIviaerGPQT4kTDw2hspjn4OTGOe4RwRH0h3ibi4DyRBv0xpG zsjNxRdbTi5fmb1YxagS15xqhsD9Pw5IzocLsfWsVJMv7odv1hbQh29ptkTLNBbmBxcCqC CMfwIt/GUCFX+OFbrF7YoBTRcCKTzZ0ZgssokRVZN7KFFY4mXmpwH7PWTEDjS/32IycJs3 dMJfZTIq9emCmaeQ4YfsNuLH791cFMxoZgfbTa/rM4DRO3p9rmsK3iB+d3+e4nbAchrPTt /n6+AavxPc7jIM4KZVOj18sk7QO3nJy2I0Op4ocUrwO1ZcWzaHs89yToomVGwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730933199; a=rsa-sha256; cv=none; b=qtlABDPci+mCrALa98t23nSPx1HPZSR8l4FwnWDpgCx+zZhfetdaemUgI4NFm6gqoSQIzX hUzyedW4GHQPnmDW0U9Eh0kmv51qAaP5nUhm9/RAlE5LjtIOMQU+OIaC8+byNt7PkYzE0P iuRKP/wPPGdQ2aZ7uYWS1MTukdNL3RlCJRGc3SAeyzWgsW5l3/FFi7fo6zAHFtXiX4MwHt GJ+86JjagnFcCR5Fk/J/xJyvjC8fHXR4DvGkREbahcEaHpKGWgVhOHRq7g+ur+7DNyfEC1 gUBQNPoQ1aoWXT7V6yc1Ou8jjkHmF74WIgyzR0eiuz13a2RXYQNJXrZZHCo+7g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkL0t73pPzKND; Wed, 6 Nov 2024 22:46:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6Mkcwi078555; Wed, 6 Nov 2024 22:46:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6Mkc4H078552; Wed, 6 Nov 2024 22:46:38 GMT (envelope-from git) Date: Wed, 6 Nov 2024 22:46:38 GMT Message-Id: <202411062246.4A6Mkc4H078552@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: ba7844e4c915 - stable/14 - release: Include -dbg files in dvd image List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ba7844e4c91505e397396ab981a0032699b0cd70 Auto-Submitted: auto-generated The branch stable/14 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=ba7844e4c91505e397396ab981a0032699b0cd70 commit ba7844e4c91505e397396ab981a0032699b0cd70 Author: Colin Percival AuthorDate: 2024-11-05 21:35:17 +0000 Commit: Colin Percival CommitDate: 2024-11-06 22:46:28 +0000 release: Include -dbg files in dvd image In 2016, commit 8834318685bc reworked the code for excluding -dbg files from install media, and in the process accidentally broke it for dvd images ('grep -v' should have been 'grep -vE'). FreeBSD Update builds later began to depend on this, and in any case since DVD images are intended as "include everything" images there's no point excluding those; so remove the (broken) filtering from DVD image builds. Sponsored by: Amazon MFC after: 2 days (cherry picked from commit cdfd0600dc8882f0a0d0e6d9a1cdcf926edba6d6) --- release/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/Makefile b/release/Makefile index 9ca32e168fe7..3ae3a28a1104 100644 --- a/release/Makefile +++ b/release/Makefile @@ -245,12 +245,12 @@ dvd: packagesystem -DDB_FROM_SRC ) # Copy distfiles mkdir -p ${.TARGET}/usr/freebsd-dist - for dist in MANIFEST $$(ls *.txz | grep -v -- '(${base ${_ALL_libcompats}:L:ts|})-dbg'); \ + for dist in MANIFEST $$(ls *.txz); \ do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ done .if defined(NO_ROOT) echo "./usr/freebsd-dist type=dir uname=root gname=wheel mode=0755" >> ${.TARGET}/METALOG - for dist in MANIFEST $$(ls *.txz | grep -vE -- '(${base ${_ALL_libcompats}:L:ts|})-dbg'); \ + for dist in MANIFEST $$(ls *.txz); \ do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \ done .endif From nobody Wed Nov 6 22:46:40 2024 X-Original-To: dev-commits-src-all@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 4XkL0w21YRz5bxTw; Wed, 06 Nov 2024 22:46:40 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkL0w1KJdz4HsK; Wed, 6 Nov 2024 22:46:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730933200; 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=Bsht9pzBn6KQTUAoZ8605LsO7J9aLc7axmClaun4/KU=; b=UShWEX0hJwl9ConKVtj/O7t9P++sU/pllaY4CP2hCBkk8DAnULMeCUtMQxyySA7UOhaLfh B3ZomcOygqmg9t8GcEw2vZyWJ43cHnek4r8qKBUcP7tyimmQBxK37pso1rYM/403QIbLL6 Eg1114FVeftpBKzgHWUhBYPpp6cqja9PvHH2gcx4hErDhCHPUYYq3ym0EXhrHiZr2/q2uO hs1Kvvq+froA6im+8AjnuzRNUo0YPCgTatnhAkF6xkjsxqwIYPzkXRksZpnGWBK8+Xskj7 9xVaonCT2nQxDVd+ju4ilL6YlYX2sx0z9C17sDOvJOAOYLYSWvZ9/G/4FZZiuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730933200; 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=Bsht9pzBn6KQTUAoZ8605LsO7J9aLc7axmClaun4/KU=; b=c4ZtujTJXg8OMMG7urKXhgWlbcewny9pw4HBILSOsgYgH4GLBMG7nXaGUqEhiGif6wF9U3 5F1ypeNm17FOcSAadLLk2N1kgE3Ka6DK8vHha8/sgqCQ6IGeoh0Y/u8f9xrbIAedBGedIP r7WW8tC292fwJsQjl2EfKxN9umcqT+j+QHYl686WzFjB65i19RXP2xIjbiwyiA3EdkzFCS 9pPWKJJ/5W0peLS3eJvSnDCqdWdODqYrOJxExXdYgmgbPkBBOdimKAFqTxQrXsnrAEZYu/ WyqnBhbfHGg4mBkh6q/AEv2wTQbT0Zaobv0g8TR4SV84KZPfjHVc9Ldw80U7eA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730933200; a=rsa-sha256; cv=none; b=S1IUKoZ4TFWXc+b8gssWUAMH62mbCe98YRH5IL2U8Gh4IdR2w147KlLwj2RYbC/ep6wXKx TRkF7uHI2GPpVISQGbjDHmtykg/kPGmu5LobgaN/3YlHixuMMzCJ3+GM+M7awVzLtf6HJO 9cu7jCdKhCAOVo7BM3Osw4TF6xILBRMzI9LTyXkvlHgkPLRreZ9lcxGoeaaUTYId0TTP0l jGUIIknnCnA1JQiDcAKHGvwtCn7ka6bcvf4vvPwmOqUa+dxe1wKmSAanti7tPuSM6hwD/J dGfc8nKmTJQWWi4wchhiP1wAhsrz/oADKRjYAENh7RzrPrXPvXZUfmxNrON4Xw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkL0w0v6JzKjY; Wed, 6 Nov 2024 22:46:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6MkeNS078607; Wed, 6 Nov 2024 22:46:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6MkexP078604; Wed, 6 Nov 2024 22:46:40 GMT (envelope-from git) Date: Wed, 6 Nov 2024 22:46:40 GMT Message-Id: <202411062246.4A6MkexP078604@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: ce988aa3e800 - stable/14 - release: Remove useless ls List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ce988aa3e80019566bf5df4cfd73f7b7195756f2 Auto-Submitted: auto-generated The branch stable/14 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=ce988aa3e80019566bf5df4cfd73f7b7195756f2 commit ce988aa3e80019566bf5df4cfd73f7b7195756f2 Author: Colin Percival AuthorDate: 2024-11-06 22:24:34 +0000 Commit: Colin Percival CommitDate: 2024-11-06 22:46:28 +0000 release: Remove useless ls Replace "$((ls *.txz))" with "*.txz" Reported by: jrtc27 (cherry picked from commit e166fea685da4ac6a6891f10b07f98d0e9fcfce3) --- release/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/Makefile b/release/Makefile index 3ae3a28a1104..be0abf84de23 100644 --- a/release/Makefile +++ b/release/Makefile @@ -245,12 +245,12 @@ dvd: packagesystem -DDB_FROM_SRC ) # Copy distfiles mkdir -p ${.TARGET}/usr/freebsd-dist - for dist in MANIFEST $$(ls *.txz); \ + for dist in MANIFEST *.txz; \ do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ done .if defined(NO_ROOT) echo "./usr/freebsd-dist type=dir uname=root gname=wheel mode=0755" >> ${.TARGET}/METALOG - for dist in MANIFEST $$(ls *.txz); \ + for dist in MANIFEST *.txz; \ do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \ done .endif From nobody Wed Nov 6 23:29:11 2024 X-Original-To: dev-commits-src-all@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 4XkLxz2537z5c0Qs; Wed, 06 Nov 2024 23:29:11 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkLxz1Zmpz4LBy; Wed, 6 Nov 2024 23:29:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935751; 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=OJB3wuRKsQvtf/gigU7/xmwGFTXna4myec5qAZeQsic=; b=VUqu3mz+9Gwxmdmc5QIklawaY0JtP3Blb2ULzgWPU72Hlv+kEBWy0ygQuHYWI3n/6xZhFs L4w/sd6ZPgknav1hgL/V4xLougnBGKSZpiyJyXFPzA3pwBKLDi8AochFIUbD/dJ9/QD6NU mQBM6/FPYtTLARjyMBeVYZmR3mum7m4nuo6JrfkHJsq9Eeet/grLszrKZwKZQLD9gI3diO PO8hORjDxuOw23FcfByvQXAfK8fbqLWmAEiMksyMA+DBUV1IpA8zHEVfsN1SsfW6tLLAtI zwa7TJTZSioxndC8gTWOPDMy4vI+X9UCUHHXwdSLYWe2Zkv+nhJdPUYyzJHKwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935751; 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=OJB3wuRKsQvtf/gigU7/xmwGFTXna4myec5qAZeQsic=; b=EegN/5Ntu6rzV7gfS+W0WzGGO4WpIOf25P/rAWRUNvdBlJ6fbqJ764AQiXXrzK44ONLZxw TCjM4jS1RpvfA1UhMc2oR56b9LVmAiSQ8jVonQklap5DAcBoyxp0Eq4sU/yRvj9HoCeA+e qeHjfFOvkhKV1LVof6TcF/r2qiXosdFKTfLMMWwCOuow8qSY4LpJ6GrYA+qGVMvzmg7k5h 3DCo6682ijRvFgYiHHFBr7xoihFnGHJhBbeXZtxRhCXUsXm1At+nhEVyl/onWIE59CsvWm lCRHgZW04Xxs6WiasQoqjl8UT36XzaIiJRJAko6iDh6mzz64Ke30EU9gA8Go5w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730935751; a=rsa-sha256; cv=none; b=ADVteo2Ej8lH7By0oQ8GZjrV8y3IUod98PwUZDiWBCOGkAE/RVVG1smKC1XtyvA4o0gdRk C9G77i0hoY7MXPU7sesulsR4RHuzGclOHDFRifAlz0lHZp81N6rUy7MNLh7sX3BWqJrwKt omzaq+k5OhnXc5Gu98LtR02VFJWTcetIFZ9OJQomEJv0nGzrNwnVwWzddddk8DQZV+RgjZ P/BkPxxnynLfKcv/fnd+zquaZb5HsGnsQ5+VJk2duY7wwYjfea11cLfrPssJ84OawToH6y iFeFEbreNQwRolzj3Y2u9w03c6RJXHlHn3JUZFwsPZUSfIlX0O4uSgGAZhSH1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkLxz19trzLml; Wed, 6 Nov 2024 23:29:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6NTBIU053785; Wed, 6 Nov 2024 23:29:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6NTBbr053782; Wed, 6 Nov 2024 23:29:11 GMT (envelope-from git) Date: Wed, 6 Nov 2024 23:29:11 GMT Message-Id: <202411062329.4A6NTBbr053782@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: d4cfad2d0391 - stable/13 - amd64: do not pass -z rodynamic to ld.bfd when building vdso List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d4cfad2d0391d0bb306d24d1fbcb4ba72078b328 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d4cfad2d0391d0bb306d24d1fbcb4ba72078b328 commit d4cfad2d0391d0bb306d24d1fbcb4ba72078b328 Author: Konstantin Belousov AuthorDate: 2024-10-18 14:09:26 +0000 Commit: Dimitry Andric CommitDate: 2024-11-06 23:24:38 +0000 amd64: do not pass -z rodynamic to ld.bfd when building vdso (cherry picked from commit 3b2cf9381ef86847603c3c94811f638660c417ae) --- sys/tools/amd64_ia32_vdso.sh | 7 ++++++- sys/tools/amd64_vdso.sh | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sys/tools/amd64_ia32_vdso.sh b/sys/tools/amd64_ia32_vdso.sh index e64c964219c3..09e08dc05dd2 100644 --- a/sys/tools/amd64_ia32_vdso.sh +++ b/sys/tools/amd64_ia32_vdso.sh @@ -34,9 +34,14 @@ ${CC} -x assembler-with-cpp -DLOCORE -fPIC -nostdinc -c -m32 \ -o ia32_sigtramp.pico -I. -I"${S}" -include opt_global.h \ "${S}"/amd64/ia32/ia32_sigtramp.S +if ${LD} --version | ${AWK} '/^GNU ld/{exit 1}' ; then + RODYNAMIC="-z rodynamic" +else + RODYNAMIC="" +fi ${LD} --shared -Bsymbolic -soname="elf-vdso32.so.1" \ -T "${S}"/conf/vdso_amd64_ia32.ldscript \ - --eh-frame-hdr --no-undefined -z rodynamic -z norelro -nmagic \ + --eh-frame-hdr --no-undefined ${RODYNAMIC} -z norelro -nmagic \ --hash-style=sysv --fatal-warnings --strip-all \ -o elf-vdso32.so.1 ia32_sigtramp.pico diff --git a/sys/tools/amd64_vdso.sh b/sys/tools/amd64_vdso.sh index 1a0203e3e0a4..295b16c87c2d 100644 --- a/sys/tools/amd64_vdso.sh +++ b/sys/tools/amd64_vdso.sh @@ -40,12 +40,17 @@ ${CC} -x assembler-with-cpp -DLOCORE -fPIC -nostdinc -c \ # # -z rodynamic is undocumented lld-specific option, seemingly required # for lld to avoid putting dynamic into dedicated writeable segment, -# despite ldscript placement. It is ignored by ld.bfd but ldscript +# despite ldscript placement. It is omitted for ld.bfd, but ldscript # alone is enough there. # +if ${LD} --version | ${AWK} '/^GNU ld/{exit 1}' ; then + RODYNAMIC="-z rodynamic" +else + RODYNAMIC="" +fi ${LD} --shared -Bsymbolic -soname="elf-vdso.so.1" \ -T "${S}"/conf/vdso_amd64.ldscript \ - --eh-frame-hdr --no-undefined -z rodynamic -z norelro -nmagic \ + --eh-frame-hdr --no-undefined ${RODYNAMIC} -z norelro -nmagic \ --hash-style=sysv --fatal-warnings --strip-all \ -o elf-vdso.so.1 sigtramp.pico From nobody Wed Nov 6 23:31:51 2024 X-Original-To: dev-commits-src-all@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 4XkM136y7Bz5c0WV; Wed, 06 Nov 2024 23:31:51 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkM1361lkz4LqR; Wed, 6 Nov 2024 23:31:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935911; 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=KPrzk5K1tYzUWoHFEtVd0bhzZAvIaLZmA8K5r4VzNjc=; b=hJfvq0DoEJMFxxC/ycOhhcZL5Bony6NZH+e09jdU2cfV3IGVaxUt8NQK3w1e22iX+6W90Q lmzyAk1MCy8czeWqCa459Zq/K6HLeL5Jp2XtidSImaiSFpeOmHvXJ6VcZvYCEhSOh/HRg9 LBYMLZuFCCi7rKeVcw+mW19ERuaNF3Ebry1YAAS1Hc3wTUhFXR2G7PQlBBt+voJMvhGHM1 Wnxi9oJc6qLp/nBqrYaUZpCuc3ScML1f4Pb3BHitFYmDeb2ichNu8GuBqULfk0Too438WJ Im4GkGtVsuU/qE9fDM0kf2AVpBxKhvRH5HhI8k92WoZ24sgo+pIr8aCRCrdkjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935911; 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=KPrzk5K1tYzUWoHFEtVd0bhzZAvIaLZmA8K5r4VzNjc=; b=L9LptVC3YKYWwHxF+ZjRQHki0inajwmFUpPuATfmR+XMo/B71yhqlLF/um1AV6o/3CYCIC QSHMrnk55vjRc1VkMHxXyBQUe/dEBSb5vbou5CLVlq7ewLqV0b/O4T3vRORU6PLGSiQs95 x90L4K/B82J9hMJCOICiRqpwtxldNk7a/zdEg3VoMLf1a7TDm2Ycm7pYNZfqBAHbdgiBX0 2SELPWzBrEZ3yC2XgvEmm2EK1dux5B5m185ucZyG6DhZQ1KaI19/sFBSXxVYf6lxVCBAKO tG7HdUXB9kwZL3oselZVRh/rQJmvA7Bb+frWfkUJkN5TGZW7hdlJa2kWADKl3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730935911; a=rsa-sha256; cv=none; b=tBy/M573eNg751d547ZZI5qCK1NA0fRmWkA9R1LklivZWa7M0/HO2ZPli3ynthgXn76erO pWXDiXCpr+rfGzdLoLMv/3KKtaOH0EEsXABeF+K2xVeYydyZYzvJvkqOOw7GU+jE0oswk9 o2LTrfD5E8r+BsyL/Z79n0kRUaJ2u1z2dR1S8bttZ9hb0OIwOfW3+L37GlWyA0SbxFTYoF Mrm7nUU624jYkN6aV1rY483ksfyPqylHp8lhaedcItL1qvuhPdIphOhBnf/tQ6zc79OnPo TTHOl7vihD2REhOvQyV/rlGSnHDgU75DVlWKlpnr2q990jHh9LBCXcuiTpQzvQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkM135K9jzLn7; Wed, 6 Nov 2024 23:31:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6NVpYd069814; Wed, 6 Nov 2024 23:31:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6NVptU069811; Wed, 6 Nov 2024 23:31:51 GMT (envelope-from git) Date: Wed, 6 Nov 2024 23:31:51 GMT Message-Id: <202411062331.4A6NVptU069811@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 19a577ea5cae - main - ng_ubt_intel: Allow to attach to 9260 bluetooth adaptors List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 19a577ea5cae1238065106de9080cb6f3e66034d Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=19a577ea5cae1238065106de9080cb6f3e66034d commit 19a577ea5cae1238065106de9080cb6f3e66034d Author: Vladimir Kondratyev AuthorDate: 2024-11-06 23:25:56 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-11-06 23:25:56 +0000 ng_ubt_intel: Allow to attach to 9260 bluetooth adaptors with operational mode firmware. Sponsored by: Future Crew LLC MFC after: 1 month Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D46734 --- sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c | 69 ++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c index ad71cae5fa83..f93b74b264ad 100644 --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c @@ -6,6 +6,7 @@ * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2019, 2021 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -56,9 +57,13 @@ #include #include +#define UBT_INTEL_HCICMD_TIMEOUT 2000 /* ms */ +#define UBT_INTEL_TLV_IMAGE_TYPE 0x1c + enum { UBT_INTEL_DEVICE_7260, UBT_INTEL_DEVICE_8260, + UBT_INTEL_DEVICE_9260, }; struct ubt_intel_version_rp { @@ -93,6 +98,9 @@ static const STRUCT_USB_HOST_ID ubt_intel_devs[] = { USB_VPI(USB_VENDOR_INTEL2, 0x0025, UBT_INTEL_DEVICE_8260) }, { USB_VPI(USB_VENDOR_INTEL2, 0x0026, UBT_INTEL_DEVICE_8260) }, { USB_VPI(USB_VENDOR_INTEL2, 0x0029, UBT_INTEL_DEVICE_8260) }, + /* Intel Wireless 9260/9560 and successors */ + { USB_VPI(USB_VENDOR_INTEL2, 0x0032, UBT_INTEL_DEVICE_9260) }, + { USB_VPI(USB_VENDOR_INTEL2, 0x0033, UBT_INTEL_DEVICE_9260) }, }; /* @@ -103,7 +111,6 @@ static usb_error_t ubt_intel_do_hci_request(struct usb_device *udev, uint16_t opcode, void *resp, uint8_t resp_len) { -#define UBT_INTEL_HCICMD_TIMEOUT 2000 /* ms */ struct ubt_hci_event_command_compl *evt; struct ubt_hci_cmd cmd; usb_error_t error; @@ -128,6 +135,53 @@ exit: return (error); } +static uint8_t +ubt_intel_get_img_type(struct usb_device *udev) +{ +#define UBT_INTEL_MAX_EVT_SIZE 256 + static struct ubt_hci_cmd cmd = { + .opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_VENDOR, 0x05)), + .length = 1, + .data = { 0xff }, + }; + struct ubt_hci_event_command_compl *evt; + usb_error_t error; + uint8_t status, datalen, type, len, img_type = 0; + uint8_t *data; + + evt = malloc(UBT_INTEL_MAX_EVT_SIZE, M_TEMP, M_ZERO | M_WAITOK); + evt->header.length = + UBT_INTEL_MAX_EVT_SIZE - sizeof(struct ubt_hci_evhdr); + + error = ubt_do_hci_request(udev, &cmd, evt, UBT_INTEL_HCICMD_TIMEOUT); + if (error != USB_ERR_NORMAL_COMPLETION) + goto exit; + + datalen = evt->header.length - UBT_HCI_EVENT_COMPL_HEAD_SIZE; + data = evt->data; + status = *data++; + if (status != 0) + goto exit; + datalen--; + + while (datalen >= 2) { + type = *data++; + len = *data++; + datalen -= 2; + if (datalen < len) + break; + if (type == UBT_INTEL_TLV_IMAGE_TYPE && len == 1) { + img_type = *data; + break; + } + datalen -= len; + data += len; + } +exit: + free(evt, M_TEMP); + return (img_type); +} + /* * Probe for a Intel Wireless Bluetooth device. */ @@ -139,6 +193,7 @@ ubt_intel_probe(device_t dev) struct ubt_intel_version_rp version; ng_hci_reset_rp reset; int error; + uint8_t img_type; if (uaa->usb_mode != USB_MODE_HOST) return (ENXIO); @@ -193,6 +248,18 @@ ubt_intel_probe(device_t dev) return (ENXIO); break; + case UBT_INTEL_DEVICE_9260: + /* + * Find if the Intel Wireless 9260/9560 device is in bootloader + * mode or is running operational firmware with checking of + * image type byte of "Intel version" HCI command response. + * The value 0x03 identifies the operational firmware. + */ + img_type = ubt_intel_get_img_type(uaa->device); + if (img_type != 0x03) + return (ENXIO); + break; + default: KASSERT(0 == 1, ("Unknown DRIVER_INFO")); } From nobody Wed Nov 6 23:31:52 2024 X-Original-To: dev-commits-src-all@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 4XkM1518Wcz5c0Nk; Wed, 06 Nov 2024 23:31:53 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkM146ppdz4Lwh; Wed, 6 Nov 2024 23:31:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935912; 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=d0aArOOUU056ppT+5Z+W386+H8km1bXxWkyGYM7feAM=; b=opOXJ9/LtWDQ+RIVevnJXCyflrJDiZqeEa/A1w/UPETVtgkrse5pijzzVQi6gg/PomclUJ 8ozAVMj6KIVdlblEilZvEsotKiGJY+84LdMry5MXvaZhkS/DS6YSb3UrYcb+QDoE8o4SbG TFmz39M7YgHlqEeQ2LdPnETRG1rYE5OanUo4bPoXT0MSNxdOG2Yd723IwqRp2+oZxjQ0Hi VbTFvPchUNLcVz1CypR3q7zGlJLJuh1NM68ouOUwJ01BlTez4iAp07Y4+9b1/v+DK64WwF DNN5aCK/R0G8VlJBtHcbEhTaHSopM6BVyG963PPqLBWtD2AbQfIRVVsDFiPIxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935912; 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=d0aArOOUU056ppT+5Z+W386+H8km1bXxWkyGYM7feAM=; b=OlVe0ERjo6yJ+Esv12d8Tgbeo64qzVRuSbQtfAI3N1A3hRz0lATfdYSkDeEzv2wTWfR5Ju XyvMJ90b5P21QInQ/hAUQo+NPHT+H6syaE85uvMUZcAkQUrZG6YKTeEf5l27XG7zYuU903 kVpeHMpvYeEu5khMczCT0qhWrxD9yPq+YSHxsqwrAga/jqjrylSzMyO3uR+uqVnLwJ4y6e D+JXMIRy628xubuav01FzLGUFUrmQnxT6j8kYzP0G1kH0UVJCnq3NGxF4iA/4zTK8Ruf8q ZPRvjjQozE74rU1DI6cdDLb6eNQNBmxuHzq90C0GXS/U0ozAtdpD9yqNvHZ8OQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730935912; a=rsa-sha256; cv=none; b=x0mwEPAZazeu89cGcoTUnOJNEFFKEJJMUoscBVxT+yqKGPGP6cWPKiNoPhLKFKOaWYstga 4mXzKj2nc6f0/IcRsRC2711mPuG4lAGbqeRGFCLe2u1dMjnr0g/ltmh5tE6a4Qbfwv1fZJ as90qyE+9C8u2bmKr2cYpjBFqFoDbOLW1DiXBVqNwQIrzYfMOYxrvcjt0aIhjuEPBIM+S3 pVIHqNJHaW0Njw7E3/MAq2GRX4MCtl/lQAvPm3Xv3l2uJxXJrYxrR+oVXDLaSk5wbJP6So 8AYMV2a/38fE94l1GGtSgOdYI+7oUKc1COMkpGa1CxFVYO/aV/r0Hu5IJv7vJQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkM146PpKzKqt; Wed, 6 Nov 2024 23:31:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6NVqHI069875; Wed, 6 Nov 2024 23:31:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6NVqZ8069872; Wed, 6 Nov 2024 23:31:52 GMT (envelope-from git) Date: Wed, 6 Nov 2024 23:31:52 GMT Message-Id: <202411062331.4A6NVqZ8069872@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: c1643cedbf24 - main - iwmbtfw(4): Add support for 9260/9560 bluetooth adaptors List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c1643cedbf243424370162febf6d9180bdd1df58 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=c1643cedbf243424370162febf6d9180bdd1df58 commit c1643cedbf243424370162febf6d9180bdd1df58 Author: Vladimir Kondratyev AuthorDate: 2024-11-06 23:26:51 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-11-06 23:26:51 +0000 iwmbtfw(4): Add support for 9260/9560 bluetooth adaptors Required firmware files are already included in to comms/iwmbt-firmware port Sponsored by: Future Crew LLC MFC after: 1 month Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D46735 --- usr.sbin/bluetooth/iwmbtfw/Makefile | 2 + usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c | 21 +++ usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.h | 71 +++++++ usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c | 183 ++++++++++++++++-- usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h | 12 +- usr.sbin/bluetooth/iwmbtfw/iwmbtfw.8 | 4 +- usr.sbin/bluetooth/iwmbtfw/iwmbtfw.conf | 5 +- usr.sbin/bluetooth/iwmbtfw/main.c | 323 +++++++++++++++++++++++++------- 8 files changed, 531 insertions(+), 90 deletions(-) diff --git a/usr.sbin/bluetooth/iwmbtfw/Makefile b/usr.sbin/bluetooth/iwmbtfw/Makefile index dde586b3aa99..c5cf037eac06 100644 --- a/usr.sbin/bluetooth/iwmbtfw/Makefile +++ b/usr.sbin/bluetooth/iwmbtfw/Makefile @@ -4,6 +4,8 @@ CONFSDIR= /etc/devd PROG= iwmbtfw MAN= iwmbtfw.8 LIBADD+= usb +# Not having NDEBUG defined will enable assertions +CFLAGS+= -DNDEBUG SRCS= main.c iwmbt_fw.c iwmbt_hw.c .include diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c b/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c index 6816b152912d..815b40982d5b 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c @@ -3,6 +3,7 @@ * * Copyright (c) 2013 Adrian Chadd * Copyright (c) 2019 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -170,3 +171,23 @@ iwmbt_get_fwname(struct iwmbt_version *ver, struct iwmbt_boot_params *params, return (fwname); } + +char * +iwmbt_get_fwname_tlv(struct iwmbt_version_tlv *ver, const char *prefix, + const char *suffix) +{ + char *fwname; + +#define IWMBT_PACK_CNVX_TOP(cnvx_top) ((uint16_t)( \ + ((cnvx_top) & 0x0f000000) >> 16 | \ + ((cnvx_top) & 0x0000000f) << 12 | \ + ((cnvx_top) & 0x00000ff0) >> 4)) + + asprintf(&fwname, "%s/ibt-%04x-%04x.%s", + prefix, + IWMBT_PACK_CNVX_TOP(ver->cnvi_top), + IWMBT_PACK_CNVX_TOP(ver->cnvr_top), + suffix); + + return (fwname); +} diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.h b/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.h index f737c1c0c2c8..2666d123c8f0 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.h +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.h @@ -3,6 +3,7 @@ * * Copyright (c) 2013 Adrian Chadd * Copyright (c) 2019 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,6 +30,15 @@ #ifndef __IWMBT_FW_H__ #define __IWMBT_FW_H__ +#include +#define L2CAP_SOCKET_CHECKED +#include + +#define RSA_HEADER_LEN 644 +#define ECDSA_HEADER_LEN 320 +#define ECDSA_OFFSET RSA_HEADER_LEN +#define CSS_HEADER_OFFSET 8 + struct iwmbt_version { uint8_t status; uint8_t hw_platform; @@ -62,6 +72,65 @@ struct iwmbt_boot_params { uint8_t unlocked_state; } __attribute__ ((packed)); +enum { + IWMBT_TLV_CNVI_TOP = 0x10, + IWMBT_TLV_CNVR_TOP, + IWMBT_TLV_CNVI_BT, + IWMBT_TLV_CNVR_BT, + IWMBT_TLV_CNVI_OTP, + IWMBT_TLV_CNVR_OTP, + IWMBT_TLV_DEV_REV_ID, + IWMBT_TLV_USB_VENDOR_ID, + IWMBT_TLV_USB_PRODUCT_ID, + IWMBT_TLV_PCIE_VENDOR_ID, + IWMBT_TLV_PCIE_DEVICE_ID, + IWMBT_TLV_PCIE_SUBSYSTEM_ID, + IWMBT_TLV_IMAGE_TYPE, + IWMBT_TLV_TIME_STAMP, + IWMBT_TLV_BUILD_TYPE, + IWMBT_TLV_BUILD_NUM, + IWMBT_TLV_FW_BUILD_PRODUCT, + IWMBT_TLV_FW_BUILD_HW, + IWMBT_TLV_FW_STEP, + IWMBT_TLV_BT_SPEC, + IWMBT_TLV_MFG_NAME, + IWMBT_TLV_HCI_REV, + IWMBT_TLV_LMP_SUBVER, + IWMBT_TLV_OTP_PATCH_VER, + IWMBT_TLV_SECURE_BOOT, + IWMBT_TLV_KEY_FROM_HDR, + IWMBT_TLV_OTP_LOCK, + IWMBT_TLV_API_LOCK, + IWMBT_TLV_DEBUG_LOCK, + IWMBT_TLV_MIN_FW, + IWMBT_TLV_LIMITED_CCE, + IWMBT_TLV_SBE_TYPE, + IWMBT_TLV_OTP_BDADDR, + IWMBT_TLV_UNLOCKED_STATE +}; + +struct iwmbt_version_tlv { + uint32_t cnvi_top; + uint32_t cnvr_top; + uint32_t cnvi_bt; + uint32_t cnvr_bt; + uint16_t dev_rev_id; + uint8_t img_type; + uint16_t timestamp; + uint8_t build_type; + uint32_t build_num; + uint8_t secure_boot; + uint8_t otp_lock; + uint8_t api_lock; + uint8_t debug_lock; + uint8_t min_fw_build_nn; + uint8_t min_fw_build_cw; + uint8_t min_fw_build_yy; + uint8_t limited_cce; + uint8_t sbe_type; + bdaddr_t otp_bd_addr; +}; + struct iwmbt_firmware { char *fwname; int len; @@ -73,5 +142,7 @@ extern void iwmbt_fw_free(struct iwmbt_firmware *fw); extern char *iwmbt_get_fwname(struct iwmbt_version *ver, struct iwmbt_boot_params *params, const char *prefix, const char *suffix); +extern char *iwmbt_get_fwname_tlv(struct iwmbt_version_tlv *ver, + const char *prefix, const char *suffix); #endif diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c b/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c index ea732c9925ee..05a851f9d85b 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c @@ -2,6 +2,7 @@ * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2019 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,6 +30,7 @@ #include #include +#include #include #include #include @@ -267,16 +269,6 @@ iwmbt_patch_fwfile(struct libusb_device_handle *hdl, return (activate_patch); } -int -iwmbt_load_fwfile(struct libusb_device_handle *hdl, - const struct iwmbt_firmware *fw, uint32_t *boot_param) -{ - int ready = 0, sent = 0; - int ret, transferred; - struct iwmbt_hci_cmd *cmd; - struct iwmbt_hci_event *event; - uint8_t buf[IWMBT_HCI_MAX_EVENT_SIZE]; - #define IWMBT_SEND_FRAGMENT(fragment_type, size, msg) do { \ iwmbt_debug("transferring %d bytes, offset %d", size, sent); \ \ @@ -293,12 +285,11 @@ iwmbt_load_fwfile(struct libusb_device_handle *hdl, sent += size; \ } while (0) - if (fw->len < 644) { - iwmbt_err("Invalid size of firmware file (%d)", fw->len); - return (-1); - } - - iwmbt_debug("file=%s, size=%d", fw->fwname, fw->len); +int +iwmbt_load_rsa_header(struct libusb_device_handle *hdl, + const struct iwmbt_firmware *fw) +{ + int ret, sent = 0; IWMBT_SEND_FRAGMENT(0x00, 0x80, "CCS segment"); IWMBT_SEND_FRAGMENT(0x03, 0x80, "public key / part 1"); @@ -310,6 +301,32 @@ iwmbt_load_fwfile(struct libusb_device_handle *hdl, IWMBT_SEND_FRAGMENT(0x02, 0x80, "signature / part 1"); IWMBT_SEND_FRAGMENT(0x02, 0x80, "signature / part 2"); + return (0); +} + +int +iwmbt_load_ecdsa_header(struct libusb_device_handle *hdl, + const struct iwmbt_firmware *fw) +{ + int ret, sent = ECDSA_OFFSET; + + IWMBT_SEND_FRAGMENT(0x00, 0x80, "CCS segment"); + IWMBT_SEND_FRAGMENT(0x03, 0x60, "public key"); + IWMBT_SEND_FRAGMENT(0x02, 0x60, "signature"); + + return (0); +} + +int +iwmbt_load_fwfile(struct libusb_device_handle *hdl, + const struct iwmbt_firmware *fw, uint32_t *boot_param, int offset) +{ + int ready = 0, sent = offset; + int ret, transferred; + struct iwmbt_hci_cmd *cmd; + struct iwmbt_hci_event *event; + uint8_t buf[IWMBT_HCI_MAX_EVENT_SIZE]; + /* * Send firmware chunks. Chunk len must be 4 byte aligned. * multiple commands can be combined @@ -460,6 +477,140 @@ iwmbt_get_version(struct libusb_device_handle *hdl, return (0); } +int +iwmbt_get_version_tlv(struct libusb_device_handle *hdl, + struct iwmbt_version_tlv *version) +{ + int ret, transferred; + struct iwmbt_hci_event_cmd_compl *event; + static struct iwmbt_hci_cmd cmd = { + .opcode = htole16(0xfc05), + .length = 1, + .data = { 0xff }, + }; + uint8_t status, datalen, type, len; + uint8_t *data; + uint8_t buf[255]; + + memset(buf, 0, sizeof(buf)); + + ret = iwmbt_hci_command(hdl, + &cmd, + buf, + sizeof(buf), + &transferred, + IWMBT_HCI_CMD_TIMEOUT); + + if (ret < 0 || transferred < (int)IWMBT_HCI_EVT_COMPL_SIZE(uint16_t)) { + iwmbt_debug("Can't get version: code=%d, size=%d", + ret, + transferred); + return (-1); + } + + event = (struct iwmbt_hci_event_cmd_compl *)buf; + memcpy(version, event->data, sizeof(struct iwmbt_version)); + + datalen = event->header.length - IWMBT_HCI_EVENT_COMPL_HEAD_SIZE; + data = event->data; + status = *data++; + if (status != 0) + return (-1); + datalen--; + + while (datalen >= 2) { + type = *data++; + len = *data++; + datalen -= 2; + + if (datalen < len) + return (-1); + + switch (type) { + case IWMBT_TLV_CNVI_TOP: + assert(len == 4); + version->cnvi_top = le32dec(data); + break; + case IWMBT_TLV_CNVR_TOP: + assert(len == 4); + version->cnvr_top = le32dec(data); + break; + case IWMBT_TLV_CNVI_BT: + assert(len == 4); + version->cnvi_bt = le32dec(data); + break; + case IWMBT_TLV_CNVR_BT: + assert(len == 4); + version->cnvr_bt = le32dec(data); + break; + case IWMBT_TLV_DEV_REV_ID: + assert(len == 2); + version->dev_rev_id = le16dec(data); + break; + case IWMBT_TLV_IMAGE_TYPE: + assert(len == 1); + version->img_type = *data; + break; + case IWMBT_TLV_TIME_STAMP: + assert(len == 2); + version->min_fw_build_cw = data[0]; + version->min_fw_build_yy = data[1]; + version->timestamp = le16dec(data); + break; + case IWMBT_TLV_BUILD_TYPE: + assert(len == 1); + version->build_type = *data; + break; + case IWMBT_TLV_BUILD_NUM: + assert(len == 4); + version->min_fw_build_nn = *data; + version->build_num = le32dec(data); + break; + case IWMBT_TLV_SECURE_BOOT: + assert(len == 1); + version->secure_boot = *data; + break; + case IWMBT_TLV_OTP_LOCK: + assert(len == 1); + version->otp_lock = *data; + break; + case IWMBT_TLV_API_LOCK: + assert(len == 1); + version->api_lock = *data; + break; + case IWMBT_TLV_DEBUG_LOCK: + assert(len == 1); + version->debug_lock = *data; + break; + case IWMBT_TLV_MIN_FW: + assert(len == 3); + version->min_fw_build_nn = data[0]; + version->min_fw_build_cw = data[1]; + version->min_fw_build_yy = data[2]; + break; + case IWMBT_TLV_LIMITED_CCE: + assert(len == 1); + version->limited_cce = *data; + break; + case IWMBT_TLV_SBE_TYPE: + assert(len == 1); + version->sbe_type = *data; + break; + case IWMBT_TLV_OTP_BDADDR: + memcpy(&version->otp_bd_addr, data, sizeof(bdaddr_t)); + break; + default: + /* Ignore other types */ + break; + } + + datalen -= len; + data += len; + } + + return (0); +} + int iwmbt_get_boot_params(struct libusb_device_handle *hdl, struct iwmbt_boot_params *params) diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h b/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h index eafb2c3f31d8..9467c3807a2a 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h @@ -2,6 +2,7 @@ * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2019 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -59,6 +60,9 @@ struct iwmbt_hci_event_cmd_compl { #define IWMBT_HCI_EVT_COMPL_SIZE(payload) \ (offsetof(struct iwmbt_hci_event_cmd_compl, data) + sizeof(payload)) +#define IWMBT_HCI_EVENT_COMPL_HEAD_SIZE \ + (offsetof(struct iwmbt_hci_event_cmd_compl, data) - \ + offsetof(struct iwmbt_hci_event_cmd_compl, numpkt)) #define IWMBT_CONTROL_ENDPOINT_ADDR 0x00 #define IWMBT_INTERRUPT_ENDPOINT_ADDR 0x81 @@ -73,13 +77,19 @@ struct iwmbt_hci_event_cmd_compl { extern int iwmbt_patch_fwfile(struct libusb_device_handle *hdl, const struct iwmbt_firmware *fw); +extern int iwmbt_load_rsa_header(struct libusb_device_handle *hdl, + const struct iwmbt_firmware *fw); +extern int iwmbt_load_ecdsa_header(struct libusb_device_handle *hdl, + const struct iwmbt_firmware *fw); extern int iwmbt_load_fwfile(struct libusb_device_handle *hdl, - const struct iwmbt_firmware *fw, uint32_t *boot_param); + const struct iwmbt_firmware *fw, uint32_t *boot_param, int offset); extern int iwmbt_enter_manufacturer(struct libusb_device_handle *hdl); extern int iwmbt_exit_manufacturer(struct libusb_device_handle *hdl, int mode); extern int iwmbt_get_version(struct libusb_device_handle *hdl, struct iwmbt_version *version); +extern int iwmbt_get_version_tlv(struct libusb_device_handle *hdl, + struct iwmbt_version_tlv *version); extern int iwmbt_get_boot_params(struct libusb_device_handle *hdl, struct iwmbt_boot_params *params); extern int iwmbt_intel_reset(struct libusb_device_handle *hdl, diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbtfw.8 b/usr.sbin/bluetooth/iwmbtfw/iwmbtfw.8 index 1924c5f3ce74..2ce828cb5ebe 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbtfw.8 +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbtfw.8 @@ -26,7 +26,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 31, 2024 +.Dd September 15, 2024 .Dt IWMBTFW 8 .Os .Sh NAME @@ -48,7 +48,7 @@ device. .Pp This utility will .Em only -work with Intel Wireless 7260/8260/8265 chip based Bluetooth USB devices +work with Intel Wireless 7260/8260/9260 chip based Bluetooth USB devices and some of their successors. The identification is currently based on USB vendor ID/product ID pair. The vendor ID should be 0x8087 diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbtfw.conf b/usr.sbin/bluetooth/iwmbtfw/iwmbtfw.conf index ef8d5263383b..e30a3c15ccaa 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbtfw.conf +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbtfw.conf @@ -1,11 +1,12 @@ # -# Download Intel Wireless 8260/8265 bluetooth adaptor firmware +# Download Intel Wireless bluetooth adaptor firmware +# notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x8087"; - match "product" "(0x07dc|0x0a2a|0x0aa7|0x0a2b|0x0aaa|0x0025|0x0026|0x0029)"; + match "product" "(0x07dc|0x0a2a|0x0aa7|0x0a2b|0x0aaa|0x0025|0x0026|0x0029|0x0032|0x0033)"; action "/usr/sbin/iwmbtfw -d $cdev -f /usr/local/share/iwmbt-firmware"; }; diff --git a/usr.sbin/bluetooth/iwmbtfw/main.c b/usr.sbin/bluetooth/iwmbtfw/main.c index 9ef31b906b77..c2b67ce01906 100644 --- a/usr.sbin/bluetooth/iwmbtfw/main.c +++ b/usr.sbin/bluetooth/iwmbtfw/main.c @@ -3,6 +3,7 @@ * * Copyright (c) 2013 Adrian Chadd * Copyright (c) 2019 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -50,71 +51,63 @@ int iwmbt_do_debug = 0; int iwmbt_do_info = 0; +enum iwmbt_device { + IWMBT_DEVICE_UNKNOWN, + IWMBT_DEVICE_7260, + IWMBT_DEVICE_8260, + IWMBT_DEVICE_9260, +}; + struct iwmbt_devid { uint16_t product_id; uint16_t vendor_id; + enum iwmbt_device device; }; -static struct iwmbt_devid iwmbt_list_72xx[] = { +static struct iwmbt_devid iwmbt_list[] = { - /* Intel Wireless 7260/7265 and successors */ - { .vendor_id = 0x8087, .product_id = 0x07dc }, - { .vendor_id = 0x8087, .product_id = 0x0a2a }, - { .vendor_id = 0x8087, .product_id = 0x0aa7 }, -}; + /* Intel Wireless 7260/7265 and successors */ + { .vendor_id = 0x8087, .product_id = 0x07dc, .device = IWMBT_DEVICE_7260 }, + { .vendor_id = 0x8087, .product_id = 0x0a2a, .device = IWMBT_DEVICE_7260 }, + { .vendor_id = 0x8087, .product_id = 0x0aa7, .device = IWMBT_DEVICE_7260 }, -static struct iwmbt_devid iwmbt_list_82xx[] = { + /* Intel Wireless 8260/8265 and successors */ + { .vendor_id = 0x8087, .product_id = 0x0a2b, .device = IWMBT_DEVICE_8260 }, + { .vendor_id = 0x8087, .product_id = 0x0aaa, .device = IWMBT_DEVICE_8260 }, + { .vendor_id = 0x8087, .product_id = 0x0025, .device = IWMBT_DEVICE_8260 }, + { .vendor_id = 0x8087, .product_id = 0x0026, .device = IWMBT_DEVICE_8260 }, + { .vendor_id = 0x8087, .product_id = 0x0029, .device = IWMBT_DEVICE_8260 }, - /* Intel Wireless 8260/8265 and successors */ - { .vendor_id = 0x8087, .product_id = 0x0a2b }, - { .vendor_id = 0x8087, .product_id = 0x0aaa }, - { .vendor_id = 0x8087, .product_id = 0x0025 }, - { .vendor_id = 0x8087, .product_id = 0x0026 }, - { .vendor_id = 0x8087, .product_id = 0x0029 }, + /* Intel Wireless 9260/9560 and successors */ + { .vendor_id = 0x8087, .product_id = 0x0032, .device = IWMBT_DEVICE_9260 }, + { .vendor_id = 0x8087, .product_id = 0x0033, .device = IWMBT_DEVICE_9260 }, }; -static int -iwmbt_is_7260(struct libusb_device_descriptor *d) +static enum iwmbt_device +iwmbt_is_supported(struct libusb_device_descriptor *d) { int i; /* Search looking for whether it's an 7260/7265 */ - for (i = 0; i < (int) nitems(iwmbt_list_72xx); i++) { - if ((iwmbt_list_72xx[i].product_id == d->idProduct) && - (iwmbt_list_72xx[i].vendor_id == d->idVendor)) { - iwmbt_info("found 7260/7265"); - return (1); - } - } - - /* Not found */ - return (0); -} - -static int -iwmbt_is_8260(struct libusb_device_descriptor *d) -{ - int i; - - /* Search looking for whether it's an 8260/8265 */ - for (i = 0; i < (int) nitems(iwmbt_list_82xx); i++) { - if ((iwmbt_list_82xx[i].product_id == d->idProduct) && - (iwmbt_list_82xx[i].vendor_id == d->idVendor)) { - iwmbt_info("found 8260/8265"); - return (1); + for (i = 0; i < (int) nitems(iwmbt_list); i++) { + if ((iwmbt_list[i].product_id == d->idProduct) && + (iwmbt_list[i].vendor_id == d->idVendor)) { + iwmbt_info("found iwmbtfw compatible"); + return (iwmbt_list[i].device); } } /* Not found */ - return (0); + return (IWMBT_DEVICE_UNKNOWN); } static libusb_device * iwmbt_find_device(libusb_context *ctx, int bus_id, int dev_id, - int *iwmbt_use_old_method) + enum iwmbt_device *iwmbt_device) { libusb_device **list, *dev = NULL, *found = NULL; struct libusb_device_descriptor d; + enum iwmbt_device device; ssize_t cnt, i; int r; @@ -141,20 +134,13 @@ iwmbt_find_device(libusb_context *ctx, int bus_id, int dev_id, } /* Match on the vendor/product id */ - if (iwmbt_is_7260(&d)) { + device = iwmbt_is_supported(&d); + if (device != IWMBT_DEVICE_UNKNOWN) { /* * Take a reference so it's not freed later on. */ found = libusb_ref_device(dev); - *iwmbt_use_old_method = 1; - break; - } else - if (iwmbt_is_8260(&d)) { - /* - * Take a reference so it's not freed later on. - */ - found = libusb_ref_device(dev); - *iwmbt_use_old_method = 0; + *iwmbt_device = device; break; } } @@ -200,6 +186,44 @@ iwmbt_dump_boot_params(struct iwmbt_boot_params *params) params->otp_bdaddr[0]); } +static void +iwmbt_dump_version_tlv(struct iwmbt_version_tlv *ver) +{ + iwmbt_info("cnvi_top 0x%08x", ver->cnvi_top); + iwmbt_info("cnvr_top 0x%08x", ver->cnvr_top); + iwmbt_info("cnvi_bt 0x%08x", ver->cnvi_bt); + iwmbt_info("cnvr_bt 0x%08x", ver->cnvr_bt); + iwmbt_info("dev_rev_id 0x%04x", ver->dev_rev_id); + iwmbt_info("img_type 0x%02x", ver->img_type); + iwmbt_info("timestamp 0x%04x", ver->timestamp); + iwmbt_info("build_type 0x%02x", ver->build_type); + iwmbt_info("build_num 0x%08x", ver->build_num); + iwmbt_info("Secure Boot: %s", ver->secure_boot ? "on" : "off"); + iwmbt_info("OTP lock: %s", ver->otp_lock ? "on" : "off"); + iwmbt_info("API lock: %s", ver->api_lock ? "on" : "off"); + iwmbt_info("Debug lock: %s", ver->debug_lock ? "on" : "off"); + iwmbt_info("Minimum firmware build %u week %u year %u", + ver->min_fw_build_nn, + ver->min_fw_build_cw, + 2000 + ver->min_fw_build_yy); + iwmbt_info("limited_cce 0x%02x", ver->limited_cce); + iwmbt_info("sbe_type 0x%02x", ver->sbe_type); + iwmbt_info("OTC BD_ADDR: %02x:%02x:%02x:%02x:%02x:%02x", + ver->otp_bd_addr.b[5], + ver->otp_bd_addr.b[4], + ver->otp_bd_addr.b[3], + ver->otp_bd_addr.b[2], + ver->otp_bd_addr.b[1], + ver->otp_bd_addr.b[0]); + if (ver->img_type == 0x01 || ver->img_type == 0x03) + iwmbt_info("%s timestamp %u.%u buildtype %u build %u", + ver->img_type == 0x01 ? "Bootloader" : "Firmware", + 2000 + (ver->timestamp >> 8), + ver->timestamp & 0xff, + ver->build_type, + ver->build_num); +} + static int iwmbt_patch_firmware(libusb_device_handle *hdl, const char *firmware_path) { @@ -227,10 +251,10 @@ iwmbt_patch_firmware(libusb_device_handle *hdl, const char *firmware_path) static int iwmbt_init_firmware(libusb_device_handle *hdl, const char *firmware_path, - uint32_t *boot_param) + uint32_t *boot_param, uint8_t hw_variant, uint8_t sbe_type) { struct iwmbt_firmware fw; - int ret; + int header_len, ret = -1; iwmbt_debug("loading %s", firmware_path); @@ -240,12 +264,76 @@ iwmbt_init_firmware(libusb_device_handle *hdl, const char *firmware_path, return (-1); } - /* Load in the firmware */ - ret = iwmbt_load_fwfile(hdl, &fw, boot_param); + iwmbt_debug("Firmware file size=%d", fw.len); + + if (hw_variant <= 0x14) { + /* + * Hardware variants 0x0b, 0x0c, 0x11 - 0x14 .sfi file have + * a RSA header of 644 bytes followed by Command Buffer. + */ + header_len = RSA_HEADER_LEN; + if (fw.len < header_len) { + iwmbt_err("Invalid size of firmware file (%d)", fw.len); + ret = -1; + goto exit; + } + + /* Check if the CSS Header version is RSA(0x00010000) */ + if (le32dec(fw.buf + CSS_HEADER_OFFSET) != 0x00010000) { + iwmbt_err("Invalid CSS Header version"); + ret = -1; + goto exit; + } + + /* Only RSA secure boot engine supported */ + if (sbe_type != 0x00) { + iwmbt_err("Invalid SBE type for hardware variant (%d)", + hw_variant); + ret = -1; + goto exit; + } + + } else if (hw_variant >= 0x17) { + /* + * Hardware variants 0x17, 0x18 onwards support both RSA and + * ECDSA secure boot engine. As a result, the corresponding sfi + * file will have RSA header of 644, ECDSA header of 320 bytes + * followed by Command Buffer. + */ + header_len = ECDSA_OFFSET + ECDSA_HEADER_LEN; + if (fw.len < header_len) { + iwmbt_err("Invalid size of firmware file (%d)", fw.len); + ret = -1; + goto exit; + } + + /* Check if CSS header for ECDSA follows the RSA header */ + if (fw.buf[ECDSA_OFFSET] != 0x06) { + ret = -1; + goto exit; + } + + /* Check if the CSS Header version is ECDSA(0x00020000) */ + if (le32dec(fw.buf + ECDSA_OFFSET + CSS_HEADER_OFFSET) != 0x00020000) { + iwmbt_err("Invalid CSS Header version"); + ret = -1; + goto exit; + } + } + + /* Load in the CSS header */ + if (sbe_type == 0x00) + ret = iwmbt_load_rsa_header(hdl, &fw); + else if (sbe_type == 0x01) + ret = iwmbt_load_ecdsa_header(hdl, &fw); if (ret < 0) - iwmbt_debug("Loading firmware file failed"); + goto exit; - /* free it */ + /* Load in the Command Buffer */ + ret = iwmbt_load_fwfile(hdl, &fw, boot_param, header_len); + +exit: + /* free firmware */ iwmbt_fw_free(&fw); return (ret); @@ -318,6 +406,7 @@ main(int argc, char *argv[]) libusb_device *dev = NULL; libusb_device_handle *hdl = NULL; static struct iwmbt_version ver; + static struct iwmbt_version_tlv ver_tlv; static struct iwmbt_boot_params params; uint32_t boot_param; int r; @@ -327,7 +416,7 @@ main(int argc, char *argv[]) char *firmware_dir = NULL; char *firmware_path = NULL; int retcode = 1; - int iwmbt_use_old_method = 0; + enum iwmbt_device iwmbt_device; /* Parse command line arguments */ while ((n = getopt(argc, argv, "Dd:f:hIm:p:v:")) != -1) { @@ -372,7 +461,7 @@ main(int argc, char *argv[]) iwmbt_debug("opening dev %d.%d", (int) bus_id, (int) dev_id); /* Find a device based on the bus/dev id */ - dev = iwmbt_find_device(ctx, bus_id, dev_id, &iwmbt_use_old_method); + dev = iwmbt_find_device(ctx, bus_id, dev_id, &iwmbt_device); if (dev == NULL) { iwmbt_err("device not found"); goto shutdown; @@ -401,16 +490,16 @@ main(int argc, char *argv[]) goto shutdown; } - /* Get Intel version */ - r = iwmbt_get_version(hdl, &ver); - if (r < 0) { - iwmbt_debug("iwmbt_get_version() failed code %d", r); - goto shutdown; - } - iwmbt_dump_version(&ver); - iwmbt_debug("fw_variant=0x%02x", (int) ver.fw_variant); + if (iwmbt_device == IWMBT_DEVICE_7260) { - if (iwmbt_use_old_method) { + /* Get Intel version */ + r = iwmbt_get_version(hdl, &ver); + if (r < 0) { + iwmbt_debug("iwmbt_get_version() failed code %d", r); + goto shutdown; + } + iwmbt_dump_version(&ver); + iwmbt_debug("fw_patch_num=0x%02x", (int) ver.fw_patch_num); /* fw_patch_num = >0 operational mode */ if (ver.fw_patch_num > 0x00) { @@ -469,7 +558,16 @@ main(int argc, char *argv[]) iwmbt_info("Intel Event Mask is set"); (void)iwmbt_exit_manufacturer(hdl, 0x00); - } else { + } else if (iwmbt_device == IWMBT_DEVICE_8260) { + + /* Get Intel version */ + r = iwmbt_get_version(hdl, &ver); + if (r < 0) { + iwmbt_debug("iwmbt_get_version() failed code %d", r); + goto shutdown; + } + iwmbt_dump_version(&ver); + iwmbt_debug("fw_variant=0x%02x", (int) ver.fw_variant); /* fw_variant = 0x06 bootloader mode / 0x23 operational mode */ if (ver.fw_variant == 0x23) { @@ -509,7 +607,7 @@ main(int argc, char *argv[]) iwmbt_debug("firmware_path = %s", firmware_path); /* Download firmware and parse it for magic Intel Reset parameter */ - r = iwmbt_init_firmware(hdl, firmware_path, &boot_param); + r = iwmbt_init_firmware(hdl, firmware_path, &boot_param, 0, 0); free(firmware_path); if (r < 0) goto shutdown; @@ -546,6 +644,93 @@ main(int argc, char *argv[]) r = iwmbt_set_event_mask(hdl); if (r == 0) iwmbt_info("Intel Event Mask is set"); + + } else { + + /* Get Intel version */ + r = iwmbt_get_version_tlv(hdl, &ver_tlv); + if (r < 0) { + iwmbt_debug("iwmbt_get_version_tlv() failed code %d", r); + goto shutdown; + } + iwmbt_dump_version_tlv(&ver_tlv); + iwmbt_debug("img_type=0x%02x", (int) ver_tlv.img_type); + + /* img_type = 0x01 bootloader mode / 0x03 operational mode */ + if (ver_tlv.img_type == 0x03) { + iwmbt_info("Firmware has already been downloaded"); + retcode = 0; + goto reset; + } + + if (ver_tlv.img_type != 0x01){ + iwmbt_err("unknown img_type 0x%02x", (int) ver_tlv.img_type); + goto shutdown; + } + + /* Check if firmware fragments are ACKed with a cmd complete event */ + if (ver_tlv.limited_cce != 0x00) { + iwmbt_err("Unsupported Intel firmware loading method (%u)", + ver_tlv.limited_cce); + goto shutdown; + } + + /* Check if secure boot engine is supported: 1 (ECDSA) or 0 (RSA) */ + if (ver_tlv.sbe_type > 0x01) { + iwmbt_err("Unsupported secure boot engine (%u)", + ver_tlv.sbe_type); + goto shutdown; + } + + /* Default the firmware path */ + if (firmware_dir == NULL) + firmware_dir = strdup(_DEFAULT_IWMBT_FIRMWARE_PATH); + + firmware_path = iwmbt_get_fwname_tlv(&ver_tlv, firmware_dir, "sfi"); + if (firmware_path == NULL) + goto shutdown; + + iwmbt_debug("firmware_path = %s", firmware_path); + + /* Download firmware and parse it for magic Intel Reset parameter */ + r = iwmbt_init_firmware(hdl, firmware_path, &boot_param, + ver_tlv.cnvi_bt >> 16 & 0x3f, ver_tlv.sbe_type); + free(firmware_path); + if (r < 0) + goto shutdown; + + r = iwmbt_intel_reset(hdl, boot_param); + if (r < 0) { + iwmbt_debug("iwmbt_intel_reset() failed!"); + goto shutdown; + } + + iwmbt_info("Firmware operational"); + + /* Once device is running in operational mode we can ignore failures */ + retcode = 0; + + /* Execute Read Intel Version one more time */ + r = iwmbt_get_version(hdl, &ver); + if (r == 0) + iwmbt_dump_version(&ver); + + /* Apply the device configuration (DDC) parameters */ + firmware_path = iwmbt_get_fwname_tlv(&ver_tlv, firmware_dir, "ddc"); + iwmbt_debug("ddc_path = %s", firmware_path); + if (firmware_path != NULL) { + r = iwmbt_init_ddc(hdl, firmware_path); + if (r == 0) + iwmbt_info("DDC download complete"); + free(firmware_path); + } + + /* Set Intel Event mask */ + r = iwmbt_set_event_mask(hdl); + if (r == 0) + iwmbt_info("Intel Event Mask is set"); + + iwmbt_info("Firmware download complete"); } reset: From nobody Wed Nov 6 23:31:53 2024 X-Original-To: dev-commits-src-all@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 4XkM162N4Kz5c01D; Wed, 06 Nov 2024 23:31:54 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkM160MLGz4Lt4; Wed, 6 Nov 2024 23:31:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935914; 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=cMg8Nx8HrRnwSr3p2o4JWwa8gEOOiTDJBxYoTEvPfw8=; b=X/TtGEHoFJpl0KPOzZ973qVlI2WSv0rxEp1In09XZZcaYuF7+3ZGDhMxxcuoAvFkFgpArj huMcIQ9GLR5iDwyssaAqRj4ajiaHQqEh+6zWJWZ/q06DJz/4AAiKIbktajAP/9b5f5G38G SAWEIT9qOdyMqImvRGwjv4rwwTOg76aZFgp+rxC6loeiGZPqd5lwer6bNmAZZ4I4FkN8gO 625ToTF8OLOp9qkelW6QriY6ShPkTN2t3qRJNrWv+424WGagGR052nMD+w9HD+51lw4xPd uD1JEzY6QVGtrzrzTZdVVBxkJKfEMEyeoGxYFJ/hSt1F4LzJ1KtfxGcpbReDkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935914; 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=cMg8Nx8HrRnwSr3p2o4JWwa8gEOOiTDJBxYoTEvPfw8=; b=yDMad+ITRg0X0CDo2nKSn0zC2RCHcwrUb5aeOC0ufn/DFiDD6bMTdpjrqtch6RFMehTHLI mBz519fp68iPTsYVMhaGN6Q0BPpTLPPIOPJQAxHgX1if93S89l9jYTUoGSZORppN8G+v/U 4U2a6MCmZzfzP3qsuMsk1gIOFkVXFxvqghFJXZG5qGIwVrHZPPW7qNO+knOmWe8yoO55t/ QS20fc8hm00hSfsmHz9KKnJc4FmYKI5nA2sZ4wK03oVFb3xz5LSLZJ2xB/Aqmr399wVN0R f+JV+/mWAhLQRwZ1duN7HmpSzSyduhcPCF4XuAg/bic2R9AQkQ9f1SfvImSJNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730935914; a=rsa-sha256; cv=none; b=RSo0+bKw8yR0AjJ6xKP6R5noRWIOxINAtK+7Fek1D9n9aMR/SOBq2ZxO9QtSo4WCZ0+ksL eESTipJClbPd/jhKwytPa3+UppOOK6wLEt3amo+wveNkJVI0PTmad8eI68vWElB504wLl3 J5K7v5ZuGIR9h6L3KmwACOcoSTk/1cYiieovjgeAVlOzM6gI6FnPZf2H6laelSUwClpviP OCiTWoBcWm0wu/iprA2+QGRccQPmA0q53FGCEweEcgIF+3tBSsCpyPhkI+2Zfk6h2EKb+v XLq7syDLsx3ws45jO9je6i+H3+JVNLJH9cRSniTuxiemWr2h9EspK/+GxkkLBA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkM1575VzzLc7; Wed, 6 Nov 2024 23:31:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6NVrNW069918; Wed, 6 Nov 2024 23:31:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6NVrCG069915; Wed, 6 Nov 2024 23:31:53 GMT (envelope-from git) Date: Wed, 6 Nov 2024 23:31:53 GMT Message-Id: <202411062331.4A6NVrCG069915@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 0b23c50ae834 - main - ng_ubt_intel: Ignore unexpected HCI events List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0b23c50ae834d11842810304e4ddad2754298ada Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=0b23c50ae834d11842810304e4ddad2754298ada commit 0b23c50ae834d11842810304e4ddad2754298ada Author: Vladimir Kondratyev AuthorDate: 2024-11-06 23:27:20 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-11-06 23:27:20 +0000 ng_ubt_intel: Ignore unexpected HCI events If Intel firmware is already in operational mode at boot that takes place at warm boot, BT adaptor can generate extra HCI events which interferes with firmware mode detection logic. Ignore them. Sponsored by: Future Crew LLC MFC after: 1 month Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D46736 --- sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c | 27 +++++++++++++++++++++++ sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c | 5 +++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c index a63ccae3cc03..59405629efb1 100644 --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c @@ -534,6 +534,7 @@ static const STRUCT_USB_HOST_ID ubt_devs[] = * Size of both command and response buffers are passed in length field of * corresponding structures in "Parameter Total Length" format i.e. * not including HCI packet headers. + * Expected event code must be placed into "Event code" of the response buffer. * * Must not be used after USB transfers have been configured in attach routine. */ @@ -572,6 +573,12 @@ ubt_do_hci_request(struct usb_device *udev, struct ubt_hci_cmd *cmd, if (evt == NULL) return (USB_ERR_NORMAL_COMPLETION); + /* Save operation code if we expect completion event in response */ + if(((struct ubt_hci_event *)evt)->header.event == + NG_HCI_EVENT_COMMAND_COMPL) + ((struct ubt_hci_event_command_compl *)evt)->opcode = + cmd->opcode; + /* Initialize INTR endpoint xfer and wait for response */ mtx_init(&mtx, "ubt pb", NULL, MTX_DEF | MTX_NEW); @@ -842,6 +849,8 @@ ubt_probe_intr_callback(struct usb_xfer *xfer, usb_error_t error) struct ubt_hci_event *evt = usbd_xfer_softc(xfer); struct usb_page_cache *pc; int actlen; + struct ubt_hci_evhdr evhdr; + uint16_t opcode; usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL); @@ -849,7 +858,25 @@ ubt_probe_intr_callback(struct usb_xfer *xfer, usb_error_t error) case USB_ST_TRANSFERRED: if (actlen > UBT_HCI_EVENT_SIZE(evt)) actlen = UBT_HCI_EVENT_SIZE(evt); + if (actlen < sizeof(evhdr)) + goto submit_next; pc = usbd_xfer_get_frame(xfer, 0); + usbd_copy_out(pc, 0, &evhdr, sizeof(evhdr)); + /* Check for expected event code */ + if (evt->header.event != 0 && + (evt->header.event != evhdr.event)) + goto submit_next; + /* For completion events check operation code as well */ + if (evt->header.event == NG_HCI_EVENT_COMMAND_COMPL) { + if (actlen < sizeof(struct ubt_hci_event_command_compl)) + goto submit_next; + usbd_copy_out(pc, + offsetof(struct ubt_hci_event_command_compl, opcode), + &opcode, sizeof(opcode)); + if (opcode != + ((struct ubt_hci_event_command_compl *)evt)->opcode) + goto submit_next; + } usbd_copy_out(pc, 0, evt, actlen); /* OneShot mode */ wakeup(evt); diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c index f93b74b264ad..c4410b7b2c80 100644 --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c @@ -119,14 +119,14 @@ ubt_intel_do_hci_request(struct usb_device *udev, uint16_t opcode, cmd.opcode = htole16(opcode); evt = malloc(offsetof(struct ubt_hci_event_command_compl, data) + resp_len, M_TEMP, M_ZERO | M_WAITOK); + evt->header.event = NG_HCI_EVENT_COMMAND_COMPL; evt->header.length = resp_len + UBT_HCI_EVENT_COMPL_HEAD_SIZE; error = ubt_do_hci_request(udev, &cmd, evt, UBT_INTEL_HCICMD_TIMEOUT); if (error != USB_ERR_NORMAL_COMPLETION) goto exit; - if (evt->header.event == NG_HCI_EVENT_COMMAND_COMPL && - evt->header.length == resp_len + UBT_HCI_EVENT_COMPL_HEAD_SIZE) + if (evt->header.length == resp_len + UBT_HCI_EVENT_COMPL_HEAD_SIZE) memcpy(resp, evt->data, resp_len); else error = USB_ERR_INVAL; @@ -150,6 +150,7 @@ ubt_intel_get_img_type(struct usb_device *udev) uint8_t *data; evt = malloc(UBT_INTEL_MAX_EVT_SIZE, M_TEMP, M_ZERO | M_WAITOK); + evt->header.event = NG_HCI_EVENT_COMMAND_COMPL; evt->header.length = UBT_INTEL_MAX_EVT_SIZE - sizeof(struct ubt_hci_evhdr); From nobody Wed Nov 6 23:31:55 2024 X-Original-To: dev-commits-src-all@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 4XkM172K37z5c0Nl; Wed, 06 Nov 2024 23:31:55 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkM171gjVz4LtL; Wed, 6 Nov 2024 23:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935915; 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=Ihtha4jDNtjnYfQJaNatJTzQu/CA1VlGpeCcRDuju9c=; b=IpHIchABucaWQZqlw/TeLf1n+t0YkyHCWRsVFU8z5RN5CvDT6+B1/LpljgJL4IOlrig+z2 K/NnImBkdampntTzmgow8V2cqKpE0Q8ktbtMdEKH384T0T5VhntlIjYEjA9JxhCUUivd/A HWcM1hd3D7DP88f/x0NYCkrQLXl4M2tBvBzl6ItO1gaYt1C8/fhbyI2rvAk2VZGRrpOqrw SI/PFtC6IIguqtWyTrgLC8FLl1FmB4sMreBWP8LJl6hl129Ar/QxQXQtTTkdchyhcs39vm aOiHi5wlLWcN2tkXThjZtR1z4j3uPDVb53pRHrhGkn3mSCLPm+BhVK1pXf2gJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935915; 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=Ihtha4jDNtjnYfQJaNatJTzQu/CA1VlGpeCcRDuju9c=; b=R+VNlFfYgS7H2xRBPcGb1B8muEbRg8Nb71QyGoM9l4KUh2K5vIbxCG+TSQVx8lH+Lv5Zkb iZ98KNYsgdnrhzsPYc1/st/PtPLi2rPGtTY6/5wWuCX1i/Z3kPSoXSFGIpLHvHm7tgagGA CNTliMfVMkeZ0c5s6d1to3i+463LHhGFqvJblckUVSuS8MrQ+BGvH/7gAQ7TzKRFWQAZSi dHlcSi/opQIuPFdwfsvsQeuZu1d3d2TL6KENLfut0tBsdO/PSCKukWb7Q4EyubWa+Kcb86 7ClD37/ewETf2YNQDqzUJaLm84ShGjwDlFEaRl7H0+loLrJ2StKLfvrSrzel9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730935915; a=rsa-sha256; cv=none; b=TgRCCqsB2oNrZzK56+fanbuMoIKOHTe0Oc2pBaQNvrAF7bOMNkNdSRITKbNiqaPNDcypqr cDHOc7FN9STASyQrw8HEMoz/5GRB1wEIPit+GGB2fFcs4ejSAld/Pc9MZjHHF+LNDwEY66 CUI1g1/VrAVkbvxneFD36w6oHHBVyqRyZoUMl3FPuNwzaPHqjLATLc+FSczOQyawZ6yVLx MH8tkpqDdcOWDsgfXvFNSvuffDil8KAIIOvEKxZpafw1quQwWwP3K+jcs/K8r203R3ut4i BsHamjM8nateiIG4Vtia0Xl59Cw5u4wHWO6npeoET/eg+HNB6WKNZKtME5Z0vw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkM171GMbzL7d; Wed, 6 Nov 2024 23:31:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6NVtjA069960; Wed, 6 Nov 2024 23:31:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6NVt5g069957; Wed, 6 Nov 2024 23:31:55 GMT (envelope-from git) Date: Wed, 6 Nov 2024 23:31:55 GMT Message-Id: <202411062331.4A6NVt5g069957@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: aa0b938434a8 - main - iwmbtfw(8): Ignore unexpected HCI events List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aa0b938434a8af8eebf8f2634914f2d9fe8a5dc4 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=aa0b938434a8af8eebf8f2634914f2d9fe8a5dc4 commit aa0b938434a8af8eebf8f2634914f2d9fe8a5dc4 Author: Vladimir Kondratyev AuthorDate: 2024-11-06 23:27:48 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-11-06 23:27:48 +0000 iwmbtfw(8): Ignore unexpected HCI events If Intel firmware is already in operational mode at boot that takes place at warm boot, BT adaptor can generate extra HCI events which interferes with firmware mode detection logic. Ignore them. Sponsored by: Future Crew LLC MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D46737 --- usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c | 58 +++++++++++++++++++++++++++-------- usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h | 6 ++++ 2 files changed, 52 insertions(+), 12 deletions(-) diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c b/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c index 05a851f9d85b..1efd24ecf9f6 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c @@ -37,10 +37,13 @@ #include #include #include +#include #include #include +#include + #include "iwmbt_fw.h" #include "iwmbt_hw.h" #include "iwmbt_dbg.h" @@ -95,6 +98,7 @@ static int iwmbt_hci_command(struct libusb_device_handle *hdl, struct iwmbt_hci_cmd *cmd, void *event, int size, int *transferred, int timeout) { + struct timespec to, now, remains; int ret; ret = libusb_control_transfer(hdl, @@ -112,18 +116,47 @@ iwmbt_hci_command(struct libusb_device_handle *hdl, struct iwmbt_hci_cmd *cmd, return (ret); } - ret = libusb_interrupt_transfer(hdl, - IWMBT_INTERRUPT_ENDPOINT_ADDR, - event, - size, - transferred, - timeout); + clock_gettime(CLOCK_MONOTONIC, &now); + to = IWMBT_MSEC2TS(timeout); + timespecadd(&to, &now, &to); - if (ret < 0) - iwmbt_err("libusb_interrupt_transfer() failed: err=%s", - libusb_strerror(ret)); + do { + timespecsub(&to, &now, &remains); + ret = libusb_interrupt_transfer(hdl, + IWMBT_INTERRUPT_ENDPOINT_ADDR, + event, + size, + transferred, + IWMBT_TS2MSEC(remains) + 1); - return (ret); + if (ret < 0) { + iwmbt_err("libusb_interrupt_transfer() failed: err=%s", + libusb_strerror(ret)); + return (ret); + } + + switch (((struct iwmbt_hci_event *)event)->header.event) { + case NG_HCI_EVENT_COMMAND_COMPL: + if (*transferred < + (int)offsetof(struct iwmbt_hci_event_cmd_compl, data)) + break; + if (cmd->opcode != + ((struct iwmbt_hci_event_cmd_compl *)event)->opcode) + break; + /* FALLTHROUGH */ + case 0xFF: + return (0); + default: + break; + } + iwmbt_debug("Stray HCI event: %x", + ((struct iwmbt_hci_event *)event)->header.event); + } while (timespeccmp(&to, &now, >)); + + iwmbt_err("libusb_interrupt_transfer() failed: err=%s", + libusb_strerror(LIBUSB_ERROR_TIMEOUT)); + + return (LIBUSB_ERROR_TIMEOUT); } int @@ -691,6 +724,7 @@ iwmbt_load_ddc(struct libusb_device_handle *hdl, int size, sent = 0; int ret, transferred; uint8_t buf[IWMBT_HCI_MAX_CMD_SIZE]; + uint8_t evt[IWMBT_HCI_MAX_CMD_SIZE]; struct iwmbt_hci_cmd *cmd = (struct iwmbt_hci_cmd *)buf; size = ddc->len; @@ -713,8 +747,8 @@ iwmbt_load_ddc(struct libusb_device_handle *hdl, ret = iwmbt_hci_command(hdl, cmd, - buf, - sizeof(buf), + evt, + sizeof(evt), &transferred, IWMBT_HCI_CMD_TIMEOUT); diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h b/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h index 9467c3807a2a..89ee344fe587 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h @@ -72,6 +72,12 @@ struct iwmbt_hci_event_cmd_compl { #define IWMBT_HCI_MAX_CMD_SIZE 256 #define IWMBT_HCI_MAX_EVENT_SIZE 16 +#define IWMBT_MSEC2TS(msec) \ + (struct timespec) { \ + .tv_sec = (msec) / 1000, \ + .tv_nsec = ((msec) % 1000) * 1000000 \ + }; +#define IWMBT_TS2MSEC(ts) ((ts).tv_sec * 1000 + (ts).tv_nsec / 1000000) #define IWMBT_HCI_CMD_TIMEOUT 2000 /* ms */ #define IWMBT_LOADCMPL_TIMEOUT 5000 /* ms */ From nobody Wed Nov 6 23:31:56 2024 X-Original-To: dev-commits-src-all@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 4XkM184ySGz5c0YW; Wed, 06 Nov 2024 23:31:56 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkM182ntJz4Ltl; Wed, 6 Nov 2024 23:31:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935916; 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=jqqnU7r2k7eq+nRcZf3oyuxECbjLyL9n5c8zcYXBnPw=; b=aJF7dAJevkMJeZ4vhvaz8g1PBcQZfZuGUIGwhdCIMA+SKkFMfeROf9tk8FvQ6baQ+VtbMU eAV12GueLCmrcFicaSSOOKxAKVtp/TMafMkVwAdhbD6+De6ng0i7WtNi+VT78GJl1Y0wYu CnSyOWEqElvfZt0Nchp57S7yqBvieKbUCAifkDaY2Ahv/ypsSGFKXqREbhDAhas8f/Ps2r xcNQV7IvCQya9bmtYtqN/CPz6T8TVg9BOhk9ZW/j1kQYZgQPzGs80vZ5L/eEfIeHh6BUiN kl4iFB4Uj4LjPMZjft234FyytkwPQqakWmXBmPZGbP90fGpylVNUIrvifq6Y/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935916; 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=jqqnU7r2k7eq+nRcZf3oyuxECbjLyL9n5c8zcYXBnPw=; b=ClV3NOp+y0AtM8N5dQ2uptoPWSJVOIhSc30Ft+eWuq/5e4ZHaRfocLn/iPhXeYk2EcI8Wt 83RfV6ZIe/nJw/Z4TB28LLPiB+qLFg+ciKlxp3CtqJMTx/dj0542RXVh4f1yK6TKlaM/AE ARfo0zwD48pcZi9CCRh3Hcoe/PNXhmY0Ykp2BsNCR6O2iutpOUDl3i2UOpC4euPyuBfJ/d Cu27Jq/IH9odwWbr4Vy5XxTwr7IguKxQjMzAg46nmpGm27rAvEa6WiLizB5KEhtkwWKu17 zMXRKvs9VcF5lUX9GCQ0eoi3RqSD5/IWVIvlUScbaRqxhc9fSREz80LNcBT3fA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730935916; a=rsa-sha256; cv=none; b=E2MZyPFxoApOe8H3+YLh1YOS3TYLahZ9Ckkd98tfo6/ulDh6e6eUe086n4avhWO3iHrHmN NVUDpi5H4utVQLJ1gjFz7ckWyjYhNXdPBCZbAGGfI2uBeCT2t80cIWdCMm7McInumMSx6g hml+iyfZQUtcDGCNn5LkCdL9wngXZcMvVfKDxu1hbvW1cHqs6EnUfLQQNJrdgdtsYItrhT A3TK1vjIoSMzZ9/jZOjmW4HPhBS87iGZdalHHNsv6LeU0xb03tP6RS5N8yQyFzQV7Ux/ss 8i4KHGiNMon/5m3wLxEbSD50SbeiTHMSyMwG9/Uo2LtYEn+/dc0PNoEIY4FbBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkM182PF3zLs8; Wed, 6 Nov 2024 23:31:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6NVueo070021; Wed, 6 Nov 2024 23:31:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6NVuiE070018; Wed, 6 Nov 2024 23:31:56 GMT (envelope-from git) Date: Wed, 6 Nov 2024 23:31:56 GMT Message-Id: <202411062331.4A6NVuiE070018@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 24ae172a5035 - main - ng_ubt(4): do not attach Realtek 87XX/88XX adaptors in bootloader mode. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 24ae172a50352ad4fd22989477f29ecca5aed6e3 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=24ae172a50352ad4fd22989477f29ecca5aed6e3 commit 24ae172a50352ad4fd22989477f29ecca5aed6e3 Author: Vladimir Kondratyev AuthorDate: 2024-11-06 23:28:11 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-11-06 23:28:11 +0000 ng_ubt(4): do not attach Realtek 87XX/88XX adaptors in bootloader mode. Attempt to initialize FreeBSD bluetooth stack while such a device is in bootloader mode locks the adapter hardly so it requires power on/off cycle to restore. This change blocks ng_ubt attachment unless operational firmware is loaded thus preventing the lock up. Sponsored by: Future Crew LLC MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D46738 --- sys/conf/files | 1 + sys/modules/netgraph/bluetooth/ubt/Makefile | 4 +- sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c | 3 + sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c | 265 ++++++++++++++++++++++++ sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h | 3 + 5 files changed, 274 insertions(+), 2 deletions(-) diff --git a/sys/conf/files b/sys/conf/files index 7bf2cffe8b09..7818104b8d50 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4267,6 +4267,7 @@ net80211/ieee80211_alq.c optional wlan ieee80211_alq netgraph/bluetooth/common/ng_bluetooth.c optional netgraph_bluetooth netgraph/bluetooth/drivers/ubt/ng_ubt.c optional netgraph_bluetooth_ubt usb netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c optional netgraph_bluetooth_ubt usb +netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c optional netgraph_bluetooth_ubt usb netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c optional netgraph_bluetooth_ubtbcmfw usb netgraph/bluetooth/hci/ng_hci_cmds.c optional netgraph_bluetooth_hci netgraph/bluetooth/hci/ng_hci_evnt.c optional netgraph_bluetooth_hci diff --git a/sys/modules/netgraph/bluetooth/ubt/Makefile b/sys/modules/netgraph/bluetooth/ubt/Makefile index 6ef7da5fbfb2..1d95fd567888 100644 --- a/sys/modules/netgraph/bluetooth/ubt/Makefile +++ b/sys/modules/netgraph/bluetooth/ubt/Makefile @@ -6,7 +6,7 @@ CFLAGS+= -I${SRCTOP}/sys/netgraph/bluetooth/include \ -I${SRCTOP}/sys/netgraph/bluetooth/drivers/ubt KMOD= ng_ubt -SRCS= ng_ubt.c ng_ubt_intel.c opt_bus.h opt_usb.h device_if.h \ - bus_if.h usb_if.h usbdevs.h +SRCS= ng_ubt.c ng_ubt_intel.c ng_ubt_rtl.c opt_bus.h opt_usb.h \ + device_if.h bus_if.h usb_if.h usbdevs.h .include diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c index 59405629efb1..def589107725 100644 --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c @@ -625,6 +625,9 @@ ubt_probe(device_t dev) if (usbd_lookup_id_by_uaa(ubt_ignore_devs, sizeof(ubt_ignore_devs), uaa) == 0) return (ENXIO); + if (usbd_lookup_id_by_uaa(ubt_rtl_devs, + ubt_rtl_devs_sizeof, uaa) == 0) + return (ENXIO); id = usbd_lookup_id_by_info(ubt_devs, sizeof(ubt_devs), &uaa->info); diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c new file mode 100644 index 000000000000..b9fbc1c12a29 --- /dev/null +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c @@ -0,0 +1,265 @@ +/* + * ng_ubt_rtl.c + */ + +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2019 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +/* + * Attempt to initialize FreeBSD bluetooth stack while Realtek 87XX/88XX USB + * device is in bootloader mode locks the adapter hardly so it requires power + * on/off cycle to restore. This driver blocks ng_ubt attachment until + * operational firmware is loaded by rtlbtfw utility thus avoiding the lock up. + */ + +#include +#include +#include +#include +#include +#include +#include + +#include "usbdevs.h" +#include +#include +#define USB_DEBUG_VAR usb_debug +#include + +#include +#include +#include +#include +#include +#include +#include + +static device_probe_t ubt_rtl_probe; + +/* + * List of supported bluetooth devices. If you add a new device PID here ensure + * that it is blacklisted in ng_ubt.c and is supported by rtlbtfw utility. + */ + +const STRUCT_USB_HOST_ID ubt_rtl_devs[] = +{ + /* Generic Realtek Bluetooth class devices */ + { USB_VENDOR(USB_VENDOR_REALTEK), + USB_IFACE_CLASS(UDCLASS_WIRELESS), + USB_IFACE_SUBCLASS(UDSUBCLASS_RF), + USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) }, + + /* Realtek 8821CE Bluetooth devices */ + { USB_VPI(0x13d3, 0x3529, 0) }, + + /* Realtek 8822CE Bluetooth devices */ + { USB_VPI(0x0bda, 0xb00c, 0) }, + { USB_VPI(0x0bda, 0xc822, 0) }, + + /* Realtek 8822CU Bluetooth devices */ + { USB_VPI(0x13d3, 0x3549, 0) }, + + /* Realtek 8852AE Bluetooth devices */ + { USB_VPI(0x0bda, 0x2852, 0) }, + { USB_VPI(0x0bda, 0xc852, 0) }, + { USB_VPI(0x0bda, 0x385a, 0) }, + { USB_VPI(0x0bda, 0x4852, 0) }, + { USB_VPI(0x04c5, 0x165c, 0) }, + { USB_VPI(0x04ca, 0x4006, 0) }, + { USB_VPI(0x0cb8, 0xc549, 0) }, + + /* Realtek 8852CE Bluetooth devices */ + { USB_VPI(0x04ca, 0x4007, 0) }, + { USB_VPI(0x04c5, 0x1675, 0) }, + { USB_VPI(0x0cb8, 0xc558, 0) }, + { USB_VPI(0x13d3, 0x3587, 0) }, + { USB_VPI(0x13d3, 0x3586, 0) }, + { USB_VPI(0x13d3, 0x3592, 0) }, + + /* Realtek 8852BE Bluetooth devices */ + { USB_VPI(0x0cb8, 0xc559, 0) }, + { USB_VPI(0x0bda, 0x887b, 0) }, + { USB_VPI(0x13d3, 0x3571, 0) }, + + /* Realtek 8723AE Bluetooth devices */ + { USB_VPI(0x0930, 0x021d, 0) }, + { USB_VPI(0x13d3, 0x3394, 0) }, + + /* Realtek 8723BE Bluetooth devices */ + { USB_VPI(0x0489, 0xe085, 0) }, + { USB_VPI(0x0489, 0xe08b, 0) }, + { USB_VPI(0x04f2, 0xb49f, 0) }, + { USB_VPI(0x13d3, 0x3410, 0) }, + { USB_VPI(0x13d3, 0x3416, 0) }, + { USB_VPI(0x13d3, 0x3459, 0) }, + { USB_VPI(0x13d3, 0x3494, 0) }, + + /* Realtek 8723BU Bluetooth devices */ + { USB_VPI(0x7392, 0xa611, 0) }, + + /* Realtek 8723DE Bluetooth devices */ + { USB_VPI(0x0bda, 0xb009, 0) }, + { USB_VPI(0x2ff8, 0xb011, 0) }, + + /* Realtek 8761BUV Bluetooth devices */ + { USB_VPI(0x2357, 0x0604, 0) }, + { USB_VPI(0x0b05, 0x190e, 0) }, + { USB_VPI(0x2550, 0x8761, 0) }, + { USB_VPI(0x0bda, 0x8771, 0) }, + { USB_VPI(0x6655, 0x8771, 0) }, + { USB_VPI(0x7392, 0xc611, 0) }, + { USB_VPI(0x2b89, 0x8761, 0) }, + + /* Realtek 8821AE Bluetooth devices */ + { USB_VPI(0x0b05, 0x17dc, 0) }, + { USB_VPI(0x13d3, 0x3414, 0) }, + { USB_VPI(0x13d3, 0x3458, 0) }, + { USB_VPI(0x13d3, 0x3461, 0) }, + { USB_VPI(0x13d3, 0x3462, 0) }, + + /* Realtek 8822BE Bluetooth devices */ + { USB_VPI(0x13d3, 0x3526, 0) }, + { USB_VPI(0x0b05, 0x185c, 0) }, + + /* Realtek 8822CE Bluetooth devices */ + { USB_VPI(0x04ca, 0x4005, 0) }, + { USB_VPI(0x04c5, 0x161f, 0) }, + { USB_VPI(0x0b05, 0x18ef, 0) }, + { USB_VPI(0x13d3, 0x3548, 0) }, + { USB_VPI(0x13d3, 0x3549, 0) }, + { USB_VPI(0x13d3, 0x3553, 0) }, + { USB_VPI(0x13d3, 0x3555, 0) }, + { USB_VPI(0x2ff8, 0x3051, 0) }, + { USB_VPI(0x1358, 0xc123, 0) }, + { USB_VPI(0x0bda, 0xc123, 0) }, + { USB_VPI(0x0cb5, 0xc547, 0) }, +}; +const size_t ubt_rtl_devs_sizeof = sizeof(ubt_rtl_devs); + +/* + * List of lmp_subversion values that correspond to Realtek firmwares + * incompatible with ng_ubt driver. Alternative firmware for these devices + * has to be loaded with rtlbtfw utility. That will trigger lmp_subversion + * change to different value. + */ +static const uint16_t ubt_rtl_lmp_subvers[] = { + 0x8703, 0x1200, 0x8723, 0x8821, + 0x8761, 0x8822, 0x8852, 0x8851, +}; + +/* + * Execute generic HCI command and return response in provided buffer. + */ + +static usb_error_t +ubt_rtl_do_hci_request(struct usb_device *udev, uint16_t opcode, + void *resp, uint8_t resp_len) +{ +#define UBT_RTL_HCICMD_TIMEOUT 2000 /* ms */ + struct ubt_hci_event_command_compl *evt; + struct ubt_hci_cmd cmd; + usb_error_t error; + + memset(&cmd, 0, sizeof(cmd)); + cmd.opcode = htole16(opcode); + evt = malloc(offsetof(struct ubt_hci_event_command_compl, data) + + resp_len, M_TEMP, M_ZERO | M_WAITOK); + evt->header.event = NG_HCI_EVENT_COMMAND_COMPL; + evt->header.length = resp_len + UBT_HCI_EVENT_COMPL_HEAD_SIZE; + + error = ubt_do_hci_request(udev, &cmd, evt, UBT_RTL_HCICMD_TIMEOUT); + if (error != USB_ERR_NORMAL_COMPLETION) + goto exit; + + if (evt->header.event == NG_HCI_EVENT_COMMAND_COMPL && + evt->header.length == resp_len + UBT_HCI_EVENT_COMPL_HEAD_SIZE) + memcpy(resp, evt->data, resp_len); + else + error = USB_ERR_INVAL; +exit: + free(evt, M_TEMP); + return (error); +} + +/* + * Probe for a Realtek 87XX/88XX USB Bluetooth device. + */ + +static int +ubt_rtl_probe(device_t dev) +{ + struct usb_attach_arg *uaa = device_get_ivars(dev); + ng_hci_read_local_ver_rp ver; + unsigned int i; + int error; + + if (uaa->usb_mode != USB_MODE_HOST) + return (ENXIO); + + if (uaa->info.bIfaceIndex != 0) + return (ENXIO); + + error = usbd_lookup_id_by_uaa(ubt_rtl_devs, sizeof(ubt_rtl_devs), uaa); + if (error != 0) + return (error); + + if (ubt_rtl_do_hci_request(uaa->device, + NG_HCI_OPCODE(NG_HCI_OGF_INFO, NG_HCI_OCF_READ_LOCAL_VER), + &ver, sizeof(ver)) != USB_ERR_NORMAL_COMPLETION) + return (ENXIO); + + DPRINTFN(2, "hci_version 0x%02x\n", ver.hci_version); + DPRINTFN(2, "hci_revision 0x%04x\n", le16toh(ver.hci_revision)); + DPRINTFN(2, "lmp_version 0x%02x\n", ver.lmp_version); + DPRINTFN(2, "lmp_subversion 0x%04x\n", le16toh(ver.lmp_subversion)); + + for (i = 0; i < nitems(ubt_rtl_lmp_subvers); i++) + if (le16toh(ver.lmp_subversion) == ubt_rtl_lmp_subvers[i]) + return (ENXIO); + + return (BUS_PROBE_DEFAULT); +} + +/* + * Module interface. Attach and detach methods, netgraph node type + * registration and PNP string are inherited from ng_ubt.c driver. + */ + +static device_method_t ubt_rtl_methods[] = +{ + DEVMETHOD(device_probe, ubt_rtl_probe), + DEVMETHOD_END +}; + +DEFINE_CLASS_1(ubt, ubt_rtl_driver, ubt_rtl_methods, + sizeof(struct ubt_softc), ubt_driver); +DRIVER_MODULE(ng_ubt_rtl, uhub, ubt_rtl_driver, 0, 0); +MODULE_VERSION(ng_ubt_rtl, NG_BLUETOOTH_VERSION); +MODULE_DEPEND(ng_ubt_rtl, netgraph, NG_ABI_VERSION, NG_ABI_VERSION, NG_ABI_VERSION); +MODULE_DEPEND(ng_ubt_rtl, ng_hci, NG_BLUETOOTH_VERSION, NG_BLUETOOTH_VERSION, NG_BLUETOOTH_VERSION); +MODULE_DEPEND(ng_ubt_rtl, usb, 1, 1, 1); diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h index 7b97ad245a68..a48a6732f5a8 100644 --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h @@ -164,6 +164,9 @@ typedef struct ubt_softc * ubt_softc_p; usb_error_t ubt_do_hci_request(struct usb_device *, struct ubt_hci_cmd *, void *, usb_timeout_t); +extern const STRUCT_USB_HOST_ID ubt_rtl_devs[]; +extern const size_t ubt_rtl_devs_sizeof; + extern driver_t ubt_driver; #endif /* ndef _NG_UBT_VAR_H_ */ From nobody Wed Nov 6 23:31:57 2024 X-Original-To: dev-commits-src-all@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 4XkM194P70z5c0RW; Wed, 06 Nov 2024 23:31:57 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkM193P8Xz4M9C; Wed, 6 Nov 2024 23:31:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935917; 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=ZsAWSdrZgHCu9VBO7KavlGarGvWKSZCHgbVt4RV/UgE=; b=Ts9hEWXZLhBPLlOKUrNBBnP6+Ulur/aXrhE74hZZuKLXWCLc2M9O5LptlNkeP/IDkTkBIN AfaBnBiVCgWFhFa4jgJeX+N3sVeEUVjqQgLPhl7XBC2mGYSZlu1OMzfjnJHy0ZhgRtVHvp mAco4hmwTcsbfJVSFga6H3mdrDI26qEZdSLLiKuJ5OFtVhBAyRENXBjxq6p4dE+M5COyyM AKoqo9Wcx+n0TirlcaksJdkchBQaAWJsFieXIr9G4d0N99/fTU6zO5b1MZhNN2o5rnDg5x 5X9NVr9ajx82ynptAAYHIFIK22zLTVQUHdlIi4JRbMVodd5ASkkn2lxTxnjl4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730935917; 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=ZsAWSdrZgHCu9VBO7KavlGarGvWKSZCHgbVt4RV/UgE=; b=xJLLCyJ38HMEzKNB/vzqIsYzAcNrINWe511xvlQkxBNXhGnwwdVeNn/KewIKsN6sSNFX5x 7sUBrZmTIw5yTuPwiLAWNQkkzTh7AMmyuH3ojy1UHMQr77RvrLOWO69W1l+if62LdUZrWf j0Z2HkVhvV1Wp2Ik/ktUKET64g+lAxwZwVLJGoHCRPwr1/K+Fh0eaISIlQV7FNQrOHHGat vTHMjJ7oMnXByHvhk7OO4rEH/JfHixj2+OS3R7PgIQW6uuHF3Uy89xVhIsd17VUtefuj/O HJYZu0uFT2G7z/0d34uJdN0p8OkHdbuA2AJjpJuPggRZLjjjNnnysoUWeTaWhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730935917; a=rsa-sha256; cv=none; b=n2KUhiWR+s099YbK2SwJfqvJ/vKAbzPgd2C0EmK7H1I1xtIXy2UsgD5TeOM9E7rthBJE0X lrsljrlsI1g2iDvGhcjuHNe8r7ChbYxnwnPslpBeupaW0hNGLoIfGpUmw7nRnn2j8Y6kee /giJpqtPuZF47rD2rMKgtNIBqK6KL/3zzIGyezpjCR78x+lKxscNcD3AiaqN+GWRgjlBoO nhLOT7A2phw7YzCNfpcPgQ4Aa0XHpsoO7BAx5cRTn0zA/mHfGSrUqeWnPujxUgb0JZ1TXC Voh02fg7kj5LsRQwPM4eo0+YU1swgHsfd3ERze2tRxvkflG1YUHcbLu13j72og== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkM192qZDzL7p; Wed, 6 Nov 2024 23:31:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6NVvFp070077; Wed, 6 Nov 2024 23:31:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6NVv8o070074; Wed, 6 Nov 2024 23:31:57 GMT (envelope-from git) Date: Wed, 6 Nov 2024 23:31:57 GMT Message-Id: <202411062331.4A6NVv8o070074@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 5036d9652a57 - main - rtlbtfw: Firmware loader for Realtek 87XX/88XX bluetooth USB adaptors List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5036d9652a5701d00e9e40ea942c278e9f77d33d Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=5036d9652a5701d00e9e40ea942c278e9f77d33d commit 5036d9652a5701d00e9e40ea942c278e9f77d33d Author: Vladimir Kondratyev AuthorDate: 2024-11-06 23:28:49 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-11-06 23:30:29 +0000 rtlbtfw: Firmware loader for Realtek 87XX/88XX bluetooth USB adaptors Firmware files are available in the comms/rtlbt-firmware port. Sponsored by: Future Crew LLC MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D46739 --- targets/pseudo/userland/Makefile.depend | 1 + tools/build/mk/OptionalObsoleteFiles.inc | 3 + usr.sbin/bluetooth/Makefile | 1 + usr.sbin/bluetooth/rtlbtfw/Makefile | 9 + usr.sbin/bluetooth/rtlbtfw/main.c | 525 +++++++++++++++++++++++++++++++ usr.sbin/bluetooth/rtlbtfw/rtlbt_dbg.h | 46 +++ usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.c | 385 +++++++++++++++++++++++ usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.h | 92 ++++++ usr.sbin/bluetooth/rtlbtfw/rtlbt_hw.c | 236 ++++++++++++++ usr.sbin/bluetooth/rtlbtfw/rtlbt_hw.h | 104 ++++++ usr.sbin/bluetooth/rtlbtfw/rtlbtfw.8 | 100 ++++++ usr.sbin/bluetooth/rtlbtfw/rtlbtfw.conf | 373 ++++++++++++++++++++++ 12 files changed, 1875 insertions(+) diff --git a/targets/pseudo/userland/Makefile.depend b/targets/pseudo/userland/Makefile.depend index 6a844630c999..698db40042ef 100644 --- a/targets/pseudo/userland/Makefile.depend +++ b/targets/pseudo/userland/Makefile.depend @@ -430,6 +430,7 @@ DIRDEPS+= \ usr.sbin/bluetooth/l2control \ usr.sbin/bluetooth/l2ping \ usr.sbin/bluetooth/rfcomm_pppd \ + usr.sbin/bluetooth/rtlbtfw \ usr.sbin/bluetooth/sdpcontrol \ usr.sbin/bluetooth/sdpd \ usr.sbin/bootparamd/bootparamd \ diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index da2f0c15d11e..c03611c976a6 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -193,6 +193,7 @@ OLD_FILES+=etc/bluetooth/hosts OLD_FILES+=etc/bluetooth/protocols OLD_FILES+=etc/defaults/bluetooth.device.conf OLD_FILES+=etc/devd/iwmbtfw.conf +OLD_FILES+=etc/devd/rtlbtfw.conf OLD_DIRS+=etc/bluetooth OLD_FILES+=etc/rc.d/bluetooth OLD_FILES+=etc/rc.d/bthidd @@ -240,6 +241,7 @@ OLD_FILES+=usr/sbin/iwmbtfw OLD_FILES+=usr/sbin/l2control OLD_FILES+=usr/sbin/l2ping OLD_FILES+=usr/sbin/rfcomm_pppd +OLD_FILES+=usr/sbin/rtlbtfw OLD_FILES+=usr/sbin/sdpcontrol OLD_FILES+=usr/sbin/sdpd OLD_FILES+=usr/share/examples/etc/defaults/bluetooth.device.conf @@ -318,6 +320,7 @@ OLD_FILES+=usr/share/man/man8/iwmbtfw.8.gz OLD_FILES+=usr/share/man/man8/l2control.8.gz OLD_FILES+=usr/share/man/man8/l2ping.8.gz OLD_FILES+=usr/share/man/man8/rfcomm_pppd.8.gz +OLD_FILES+=usr/share/man/man8/rtlbtfw.8.gz OLD_FILES+=usr/share/man/man8/sdpcontrol.8.gz OLD_FILES+=usr/share/man/man8/sdpd.8.gz .endif diff --git a/usr.sbin/bluetooth/Makefile b/usr.sbin/bluetooth/Makefile index fb660029b3d1..5afc12450194 100644 --- a/usr.sbin/bluetooth/Makefile +++ b/usr.sbin/bluetooth/Makefile @@ -19,6 +19,7 @@ SUBDIR+= bcmfw SUBDIR+= bthidcontrol SUBDIR+= bthidd SUBDIR+= iwmbtfw +SUBDIR+= rtlbtfw .endif .include diff --git a/usr.sbin/bluetooth/rtlbtfw/Makefile b/usr.sbin/bluetooth/rtlbtfw/Makefile new file mode 100644 index 000000000000..f9c5dfd12b1f --- /dev/null +++ b/usr.sbin/bluetooth/rtlbtfw/Makefile @@ -0,0 +1,9 @@ +PACKAGE= bluetooth +CONFS= rtlbtfw.conf +CONFSDIR= /etc/devd +PROG= rtlbtfw +MAN= rtlbtfw.8 +LIBADD+= usb +SRCS= main.c rtlbt_fw.c rtlbt_hw.c + +.include diff --git a/usr.sbin/bluetooth/rtlbtfw/main.c b/usr.sbin/bluetooth/rtlbtfw/main.c new file mode 100644 index 000000000000..029c04f98b26 --- /dev/null +++ b/usr.sbin/bluetooth/rtlbtfw/main.c @@ -0,0 +1,525 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2013 Adrian Chadd + * Copyright (c) 2019 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "rtlbt_fw.h" +#include "rtlbt_hw.h" +#include "rtlbt_dbg.h" + +#define _DEFAULT_RTLBT_FIRMWARE_PATH "/usr/share/firmware/rtlbt" + +int rtlbt_do_debug = 0; +int rtlbt_do_info = 0; + +struct rtlbt_devid { + uint16_t product_id; + uint16_t vendor_id; +}; + +static struct rtlbt_devid rtlbt_list[] = { + /* Realtek 8821CE Bluetooth devices */ + { .vendor_id = 0x13d3, .product_id = 0x3529 }, + + /* Realtek 8822CE Bluetooth devices */ + { .vendor_id = 0x0bda, .product_id = 0xb00c }, + { .vendor_id = 0x0bda, .product_id = 0xc822 }, + + /* Realtek 8822CU Bluetooth devices */ + { .vendor_id = 0x13d3, .product_id = 0x3549 }, + + /* Realtek 8852AE Bluetooth devices */ + { .vendor_id = 0x0bda, .product_id = 0x2852 }, + { .vendor_id = 0x0bda, .product_id = 0xc852 }, + { .vendor_id = 0x0bda, .product_id = 0x385a }, + { .vendor_id = 0x0bda, .product_id = 0x4852 }, + { .vendor_id = 0x04c5, .product_id = 0x165c }, + { .vendor_id = 0x04ca, .product_id = 0x4006 }, + { .vendor_id = 0x0cb8, .product_id = 0xc549 }, + +#ifdef RTLBTFW_SUPPORTS_FW_V2 + /* Realtek 8852CE Bluetooth devices */ + { .vendor_id = 0x04ca, .product_id = 0x4007 }, + { .vendor_id = 0x04c5, .product_id = 0x1675 }, + { .vendor_id = 0x0cb8, .product_id = 0xc558 }, + { .vendor_id = 0x13d3, .product_id = 0x3587 }, + { .vendor_id = 0x13d3, .product_id = 0x3586 }, + { .vendor_id = 0x13d3, .product_id = 0x3592 }, +#endif + + /* Realtek 8852BE Bluetooth devices */ + { .vendor_id = 0x0cb8, .product_id = 0xc559 }, + { .vendor_id = 0x0bda, .product_id = 0x887b }, + { .vendor_id = 0x13d3, .product_id = 0x3571 }, + + /* Realtek 8723AE Bluetooth devices */ + { .vendor_id = 0x0930, .product_id = 0x021d }, + { .vendor_id = 0x13d3, .product_id = 0x3394 }, + + /* Realtek 8723BE Bluetooth devices */ + { .vendor_id = 0x0489, .product_id = 0xe085 }, + { .vendor_id = 0x0489, .product_id = 0xe08b }, + { .vendor_id = 0x04f2, .product_id = 0xb49f }, + { .vendor_id = 0x13d3, .product_id = 0x3410 }, + { .vendor_id = 0x13d3, .product_id = 0x3416 }, + { .vendor_id = 0x13d3, .product_id = 0x3459 }, + { .vendor_id = 0x13d3, .product_id = 0x3494 }, + + /* Realtek 8723BU Bluetooth devices */ + { .vendor_id = 0x7392, .product_id = 0xa611 }, + + /* Realtek 8723DE Bluetooth devices */ + { .vendor_id = 0x0bda, .product_id = 0xb009 }, + { .vendor_id = 0x2ff8, .product_id = 0xb011 }, + + /* Realtek 8761BUV Bluetooth devices */ + { .vendor_id = 0x2357, .product_id = 0x0604 }, + { .vendor_id = 0x0b05, .product_id = 0x190e }, + { .vendor_id = 0x2550, .product_id = 0x8761 }, + { .vendor_id = 0x0bda, .product_id = 0x8771 }, + { .vendor_id = 0x6655, .product_id = 0x8771 }, + { .vendor_id = 0x7392, .product_id = 0xc611 }, + { .vendor_id = 0x2b89, .product_id = 0x8761 }, + + /* Realtek 8821AE Bluetooth devices */ + { .vendor_id = 0x0b05, .product_id = 0x17dc }, + { .vendor_id = 0x13d3, .product_id = 0x3414 }, + { .vendor_id = 0x13d3, .product_id = 0x3458 }, + { .vendor_id = 0x13d3, .product_id = 0x3461 }, + { .vendor_id = 0x13d3, .product_id = 0x3462 }, + + /* Realtek 8822BE Bluetooth devices */ + { .vendor_id = 0x13d3, .product_id = 0x3526 }, + { .vendor_id = 0x0b05, .product_id = 0x185c }, + + /* Realtek 8822CE Bluetooth devices */ + { .vendor_id = 0x04ca, .product_id = 0x4005 }, + { .vendor_id = 0x04c5, .product_id = 0x161f }, + { .vendor_id = 0x0b05, .product_id = 0x18ef }, + { .vendor_id = 0x13d3, .product_id = 0x3548 }, + { .vendor_id = 0x13d3, .product_id = 0x3549 }, + { .vendor_id = 0x13d3, .product_id = 0x3553 }, + { .vendor_id = 0x13d3, .product_id = 0x3555 }, + { .vendor_id = 0x2ff8, .product_id = 0x3051 }, + { .vendor_id = 0x1358, .product_id = 0xc123 }, + { .vendor_id = 0x0bda, .product_id = 0xc123 }, + { .vendor_id = 0x0cb5, .product_id = 0xc547 }, +}; + +static int +rtlbt_is_realtek(struct libusb_device_descriptor *d) +{ + int i; + + /* Search looking for whether it's a Realtek-based device */ + for (i = 0; i < (int) nitems(rtlbt_list); i++) { + if ((rtlbt_list[i].product_id == d->idProduct) && + (rtlbt_list[i].vendor_id == d->idVendor)) { + rtlbt_info("found USB Realtek"); + return (1); + } + } + + /* Not found */ + return (0); +} + +static int +rtlbt_is_bluetooth(struct libusb_device *dev) +{ + struct libusb_config_descriptor *cfg; + const struct libusb_interface *ifc; + const struct libusb_interface_descriptor *d; + int r; + + r = libusb_get_active_config_descriptor(dev, &cfg); + if (r < 0) { + rtlbt_err("Cannot retrieve config descriptor: %s", + libusb_error_name(r)); + return (0); + } + + if (cfg->bNumInterfaces != 0) { + /* Only 0-th HCI/ACL interface is supported by downloader */ + ifc = &cfg->interface[0]; + if (ifc->num_altsetting != 0) { + /* BT HCI/ACL interface has no altsettings */ + d = &ifc->altsetting[0]; + /* Check if interface is a bluetooth */ + if (d->bInterfaceClass == LIBUSB_CLASS_WIRELESS && + d->bInterfaceSubClass == 0x01 && + d->bInterfaceProtocol == 0x01) { + rtlbt_info("found USB Realtek"); + libusb_free_config_descriptor(cfg); + return (1); + } + } + } + libusb_free_config_descriptor(cfg); + + /* Not found */ + return (0); +} + +static libusb_device * +rtlbt_find_device(libusb_context *ctx, int bus_id, int dev_id) +{ + libusb_device **list, *dev = NULL, *found = NULL; + struct libusb_device_descriptor d; + ssize_t cnt, i; + int r; + + cnt = libusb_get_device_list(ctx, &list); + if (cnt < 0) { + rtlbt_err("libusb_get_device_list() failed: code %lld", + (long long int) cnt); + return (NULL); + } + + /* + * Scan through USB device list. + */ + for (i = 0; i < cnt; i++) { + dev = list[i]; + if (bus_id == libusb_get_bus_number(dev) && + dev_id == libusb_get_device_address(dev)) { + /* Get the device descriptor for this device entry */ + r = libusb_get_device_descriptor(dev, &d); + if (r != 0) { + rtlbt_err("libusb_get_device_descriptor: %s", + libusb_strerror(r)); + break; + } + + /* For non-Realtek match on the vendor/product id */ + if (rtlbt_is_realtek(&d)) { + /* + * Take a reference so it's not freed later on. + */ + found = libusb_ref_device(dev); + break; + } + /* For Realtek vendor match on the interface class */ + if (d.idVendor == 0x0bda && rtlbt_is_bluetooth(dev)) { + /* + * Take a reference so it's not freed later on. + */ + found = libusb_ref_device(dev); + break; + } + } + } + + libusb_free_device_list(list, 1); + return (found); +} + +static void +rtlbt_dump_version(ng_hci_read_local_ver_rp *ver) +{ + rtlbt_info("hci_version 0x%02x", ver->hci_version); + rtlbt_info("hci_revision 0x%04x", le16toh(ver->hci_revision)); + rtlbt_info("lmp_version 0x%02x", ver->lmp_version); + rtlbt_info("lmp_subversion 0x%04x", le16toh(ver->lmp_subversion)); +} + +/* + * Parse ugen name and extract device's bus and address + */ + +static int +parse_ugen_name(char const *ugen, uint8_t *bus, uint8_t *addr) +{ + char *ep; + + if (strncmp(ugen, "ugen", 4) != 0) + return (-1); + + *bus = (uint8_t) strtoul(ugen + 4, &ep, 10); + if (*ep != '.') + return (-1); + + *addr = (uint8_t) strtoul(ep + 1, &ep, 10); + if (*ep != '\0') + return (-1); + + return (0); +} + +static void +usage(void) +{ + fprintf(stderr, + "Usage: rtlbtfw (-D) -d ugenX.Y (-f firmware path) (-I)\n"); + fprintf(stderr, " -D: enable debugging\n"); + fprintf(stderr, " -d: device to operate upon\n"); + fprintf(stderr, " -f: firmware path, if not default\n"); + fprintf(stderr, " -I: enable informational output\n"); + exit(127); +} + +int +main(int argc, char *argv[]) +{ + libusb_context *ctx = NULL; + libusb_device *dev = NULL; + libusb_device_handle *hdl = NULL; + ng_hci_read_local_ver_rp ver; + int r; + uint8_t bus_id = 0, dev_id = 0; + int devid_set = 0; + int n; + char *firmware_dir = NULL; + char *firmware_path = NULL; + char *config_path = NULL; + int retcode = 1; + const struct rtlbt_id_table *ic; + uint8_t rom_version; + struct rtlbt_firmware fw, cfg; + enum rtlbt_fw_type fw_type; + uint16_t fw_lmp_subversion; + + /* Parse command line arguments */ + while ((n = getopt(argc, argv, "Dd:f:hIm:p:v:")) != -1) { + switch (n) { + case 'd': /* ugen device name */ + devid_set = 1; + if (parse_ugen_name(optarg, &bus_id, &dev_id) < 0) + usage(); + break; + case 'D': + rtlbt_do_debug = 1; + break; + case 'f': /* firmware dir */ + if (firmware_dir) + free(firmware_dir); + firmware_dir = strdup(optarg); + break; + case 'I': + rtlbt_do_info = 1; + break; + case 'h': + default: + usage(); + break; + /* NOT REACHED */ + } + } + + /* Ensure the devid was given! */ + if (devid_set == 0) { + usage(); + /* NOTREACHED */ + } + + /* libusb setup */ + r = libusb_init(&ctx); + if (r != 0) { + rtlbt_err("libusb_init failed: code %d", r); + exit(127); + } + + rtlbt_debug("opening dev %d.%d", (int) bus_id, (int) dev_id); + + /* Find a device based on the bus/dev id */ + dev = rtlbt_find_device(ctx, bus_id, dev_id); + if (dev == NULL) { + rtlbt_err("device not found"); + goto shutdown; + } + + /* XXX enforce that bInterfaceNumber is 0 */ + + /* XXX enforce the device/product id if they're non-zero */ + + /* Grab device handle */ + r = libusb_open(dev, &hdl); + if (r != 0) { + rtlbt_err("libusb_open() failed: code %d", r); + goto shutdown; + } + + /* Check if ng_ubt is attached */ + r = libusb_kernel_driver_active(hdl, 0); + if (r < 0) { + rtlbt_err("libusb_kernel_driver_active() failed: code %d", r); + goto shutdown; + } + if (r > 0) { + rtlbt_info("Firmware has already been downloaded"); + retcode = 0; + goto shutdown; + } + + /* Get local version */ + r = rtlbt_read_local_ver(hdl, &ver); + if (r < 0) { + rtlbt_err("rtlbt_read_local_ver() failed code %d", r); + goto shutdown; + } + rtlbt_dump_version(&ver); + + ic = rtlbt_get_ic(ver.lmp_subversion, ver.hci_revision, + ver.hci_version); + if (ic == NULL) { + rtlbt_err("rtlbt_get_ic() failed: Unknown IC"); + goto shutdown; + } + + /* Default the firmware path */ + if (firmware_dir == NULL) + firmware_dir = strdup(_DEFAULT_RTLBT_FIRMWARE_PATH); + + firmware_path = rtlbt_get_fwname(ic->fw_name, firmware_dir, "_fw.bin"); + if (firmware_path == NULL) + goto shutdown; + + rtlbt_debug("firmware_path = %s", firmware_path); + + rtlbt_info("loading firmware %s", firmware_path); + + /* Read in the firmware */ + if (rtlbt_fw_read(&fw, firmware_path) <= 0) { + rtlbt_debug("rtlbt_fw_read() failed"); + return (-1); + } + + fw_type = rtlbt_get_fw_type(&fw, &fw_lmp_subversion); + if (fw_type == RTLBT_FW_TYPE_UNKNOWN && + (ic->flags & RTLBT_IC_FLAG_SIMPLE) == 0) { + rtlbt_debug("Unknown firmware type"); + goto shutdown; + } + + if (fw_type != RTLBT_FW_TYPE_UNKNOWN) { + + /* Match hardware and firmware lmp_subversion */ + if (fw_lmp_subversion != ver.lmp_subversion) { + rtlbt_err("firmware is for %x but this is a %x", + fw_lmp_subversion, ver.lmp_subversion); + goto shutdown; + } + + /* Query a ROM version */ + r = rtlbt_read_rom_ver(hdl, &rom_version); + if (r < 0) { + rtlbt_err("rtlbt_read_rom_ver() failed code %d", r); + goto shutdown; + } + rtlbt_debug("rom_version = %d", rom_version); + + /* Load in the firmware */ + r = rtlbt_parse_fwfile_v1(&fw, rom_version); + if (r < 0) { + rtlbt_err("Parseing firmware file failed"); + goto shutdown; + } + + config_path = rtlbt_get_fwname(ic->fw_name, firmware_dir, + "_config.bin"); + if (config_path == NULL) + goto shutdown; + + rtlbt_info("loading config %s", config_path); + + /* Read in the config file */ + if (rtlbt_fw_read(&cfg, config_path) <= 0) { + rtlbt_err("rtlbt_fw_read() failed"); + if ((ic->flags & RTLBT_IC_FLAG_CONFIG) != 0) + goto shutdown; + } else { + r = rtlbt_append_fwfile(&fw, &cfg); + rtlbt_fw_free(&cfg); + if (r < 0) { + rtlbt_err("Appending config file failed"); + goto shutdown; + } + } + } + + r = rtlbt_load_fwfile(hdl, &fw); + if (r < 0) { + rtlbt_debug("Loading firmware file failed"); + goto shutdown; + } + + /* free it */ + rtlbt_fw_free(&fw); + + rtlbt_info("Firmware download complete"); + + /* Execute Read Local Version one more time */ + r = rtlbt_read_local_ver(hdl, &ver); + if (r < 0) { + rtlbt_err("rtlbt_read_local_ver() failed code %d", r); + goto shutdown; + } + rtlbt_dump_version(&ver); + + retcode = 0; + + /* Ask kernel driver to probe and attach device again */ + r = libusb_reset_device(hdl); + if (r != 0) + rtlbt_err("libusb_reset_device() failed: %s", + libusb_strerror(r)); + +shutdown: + + /* Shutdown */ + + if (hdl != NULL) + libusb_close(hdl); + + if (dev != NULL) + libusb_unref_device(dev); + + if (ctx != NULL) + libusb_exit(ctx); + + if (retcode == 0) + rtlbt_info("Firmware download is successful!"); + else + rtlbt_err("Firmware download failed!"); + + return (retcode); +} diff --git a/usr.sbin/bluetooth/rtlbtfw/rtlbt_dbg.h b/usr.sbin/bluetooth/rtlbtfw/rtlbt_dbg.h new file mode 100644 index 000000000000..54c982119d40 --- /dev/null +++ b/usr.sbin/bluetooth/rtlbtfw/rtlbt_dbg.h @@ -0,0 +1,46 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2013 Adrian Chadd + * Copyright (c) 2019 Vladimir Kondratyev + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef __RTLBT_DEBUG_H__ +#define __RTLBT_DEBUG_H__ + +extern int rtlbt_do_debug; +extern int rtlbt_do_info; + +#define rtlbt_err(fmt, ...) \ + fprintf(stderr, "rtlbtfw: %s: "fmt"\n", __func__, ##__VA_ARGS__) +#define rtlbt_info(fmt, ...) do { \ + if (rtlbt_do_info) \ + fprintf(stderr, "%s: "fmt"\n", __func__, ##__VA_ARGS__);\ +} while (0) +#define rtlbt_debug(fmt, ...) do { \ + if (rtlbt_do_debug) \ + fprintf(stderr, "%s: "fmt"\n", __func__, ##__VA_ARGS__);\ +} while (0) + +#endif diff --git a/usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.c b/usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.c new file mode 100644 index 000000000000..bb3d20d79527 --- /dev/null +++ b/usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.c @@ -0,0 +1,385 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2013 Adrian Chadd + * Copyright (c) 2019 Vladimir Kondratyev + * Copyright (c) 2023 Future Crew LLC. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "rtlbt_fw.h" +#include "rtlbt_dbg.h" + +static const struct rtlbt_id_table rtlbt_ic_id_table[] = { + { /* 8723A */ + .lmp_subversion = RTLBT_ROM_LMP_8723A, + .hci_revision = 0xb, + .hci_version = 0x6, + .flags = RTLBT_IC_FLAG_SIMPLE, + .fw_name = "rtl8723a", + }, { /* 8723B */ + .lmp_subversion = RTLBT_ROM_LMP_8723B, + .hci_revision = 0xb, + .hci_version = 0x6, + .fw_name = "rtl8723b", + }, { /* 8723D */ + .lmp_subversion = RTLBT_ROM_LMP_8723B, + .hci_revision = 0xd, + .hci_version = 0x8, + .flags = RTLBT_IC_FLAG_CONFIG, + .fw_name = "rtl8723d", + }, { /* 8821A */ + .lmp_subversion = RTLBT_ROM_LMP_8821A, + .hci_revision = 0xa, + .hci_version = 0x6, + .fw_name = "rtl8821a", + }, { /* 8821C */ + .lmp_subversion = RTLBT_ROM_LMP_8821A, + .hci_revision = 0xc, + .hci_version = 0x8, + .flags = RTLBT_IC_FLAG_MSFT, + .fw_name = "rtl8821c", + }, { /* 8761A */ + .lmp_subversion = RTLBT_ROM_LMP_8761A, + .hci_revision = 0xa, + .hci_version = 0x6, + .fw_name = "rtl8761a", + }, { /* 8761BU */ + .lmp_subversion = RTLBT_ROM_LMP_8761A, + .hci_revision = 0xb, + .hci_version = 0xa, + .fw_name = "rtl8761bu", + }, { /* 8822C with USB interface */ + .lmp_subversion = RTLBT_ROM_LMP_8822B, + .hci_revision = 0xc, + .hci_version = 0xa, + .flags = RTLBT_IC_FLAG_MSFT, + .fw_name = "rtl8822cu", + }, { /* 8822B */ + .lmp_subversion = RTLBT_ROM_LMP_8822B, + .hci_revision = 0xb, + .hci_version = 0x7, + .flags = RTLBT_IC_FLAG_CONFIG | RTLBT_IC_FLAG_MSFT, + .fw_name = "rtl8822b", + }, { /* 8852A */ + .lmp_subversion = RTLBT_ROM_LMP_8852A, + .hci_revision = 0xa, + .hci_version = 0xb, + .flags = RTLBT_IC_FLAG_MSFT, + .fw_name = "rtl8852au", + }, { /* 8852B */ + .lmp_subversion = RTLBT_ROM_LMP_8852A, + .hci_revision = 0xb, + .hci_version = 0xb, + .flags = RTLBT_IC_FLAG_MSFT, + .fw_name = "rtl8852bu", +#ifdef RTLBTFW_SUPPORTS_FW_V2 + }, { /* 8852C */ + .lmp_subversion = RTLBT_ROM_LMP_8852A, + .hci_revision = 0xc, + .hci_version = 0xc, + .flags = RTLBT_IC_FLAG_MSFT, + .fw_name = "rtl8852cu", + }, { /* 8851B */ + .lmp_subversion = RTLBT_ROM_LMP_8851B, + .hci_revision = 0xb, + .hci_version = 0xc, + .flags = RTLBT_IC_FLAG_MSFT, + .fw_name = "rtl8851bu", +#endif + }, +}; + +static const uint16_t project_ids[] = { + [ 0 ] = RTLBT_ROM_LMP_8723A, + [ 1 ] = RTLBT_ROM_LMP_8723B, + [ 2 ] = RTLBT_ROM_LMP_8821A, + [ 3 ] = RTLBT_ROM_LMP_8761A, + [ 7 ] = RTLBT_ROM_LMP_8703B, + [ 8 ] = RTLBT_ROM_LMP_8822B, + [ 9 ] = RTLBT_ROM_LMP_8723B, /* 8723DU */ + [ 10 ] = RTLBT_ROM_LMP_8821A, /* 8821CU */ + [ 13 ] = RTLBT_ROM_LMP_8822B, /* 8822CU */ + [ 14 ] = RTLBT_ROM_LMP_8761A, /* 8761BU */ + [ 18 ] = RTLBT_ROM_LMP_8852A, /* 8852AU */ + [ 19 ] = RTLBT_ROM_LMP_8723B, /* 8723FU */ + [ 20 ] = RTLBT_ROM_LMP_8852A, /* 8852BU */ + [ 25 ] = RTLBT_ROM_LMP_8852A, /* 8852CU */ + [ 33 ] = RTLBT_ROM_LMP_8822B, /* 8822EU */ + [ 36 ] = RTLBT_ROM_LMP_8851B, /* 8851BU */ +}; + +/* Signatures */ +static const uint8_t fw_header_sig_v1[8] = + {0x52, 0x65, 0x61, 0x6C, 0x74, 0x65, 0x63, 0x68}; /* Realtech */ +#ifdef RTLBTFW_SUPPORTS_FW_V2 +static const uint8_t fw_header_sig_v2[8] = + {0x52, 0x54, 0x42, 0x54, 0x43, 0x6F, 0x72, 0x65}; /* RTBTCore */ +#endif +static const uint8_t fw_ext_sig[4] = {0x51, 0x04, 0xFD, 0x77}; + +int +rtlbt_fw_read(struct rtlbt_firmware *fw, const char *fwname) +{ + int fd; + struct stat sb; + unsigned char *buf; + ssize_t r; + + fd = open(fwname, O_RDONLY); + if (fd < 0) { + warn("%s: open: %s", __func__, fwname); + return (0); + } + + if (fstat(fd, &sb) != 0) { + warn("%s: stat: %s", __func__, fwname); + close(fd); + return (0); + } + + buf = calloc(1, sb.st_size); + if (buf == NULL) { + warn("%s: calloc", __func__); + close(fd); + return (0); + } + + /* XXX handle partial reads */ + r = read(fd, buf, sb.st_size); + if (r < 0) { + warn("%s: read", __func__); + free(buf); + close(fd); + return (0); + } + + if (r != sb.st_size) { + rtlbt_err("read len %d != file size %d", + (int) r, + (int) sb.st_size); + free(buf); + close(fd); + return (0); + } + + /* We have everything, so! */ + + memset(fw, 0, sizeof(*fw)); + + fw->fwname = strdup(fwname); + fw->len = sb.st_size; + fw->buf = buf; + + close(fd); + return (1); +} + +void +rtlbt_fw_free(struct rtlbt_firmware *fw) +{ + if (fw->fwname) + free(fw->fwname); + if (fw->buf) + free(fw->buf); + memset(fw, 0, sizeof(*fw)); +} + +char * +rtlbt_get_fwname(const char *fw_name, const char *prefix, const char *suffix) +{ + char *fwname; + + asprintf(&fwname, "%s/%s%s", prefix, fw_name, suffix); + + return (fwname); +} + +const struct rtlbt_id_table * +rtlbt_get_ic(uint16_t lmp_subversion, uint16_t hci_revision, + uint8_t hci_version) +{ + unsigned int i; + + for (i = 0; i < nitems(rtlbt_ic_id_table); i++) { + if (rtlbt_ic_id_table[i].lmp_subversion == lmp_subversion && + rtlbt_ic_id_table[i].hci_revision == hci_revision && + rtlbt_ic_id_table[i].hci_version == hci_version) + return (rtlbt_ic_id_table + i); + } + + return (NULL); +} + +enum rtlbt_fw_type +rtlbt_get_fw_type(struct rtlbt_firmware *fw, uint16_t *fw_lmp_subversion) +{ + enum rtlbt_fw_type fw_type; + size_t fw_header_len; + uint8_t *ptr; + uint8_t opcode, oplen, project_id; + + if (fw->len < 8) { + rtlbt_err("firmware file too small"); + return (RTLBT_FW_TYPE_UNKNOWN); + } + + if (memcmp(fw->buf, fw_header_sig_v1, sizeof(fw_header_sig_v1)) == 0) { + fw_type = RTLBT_FW_TYPE_V1; + fw_header_len = sizeof(struct rtlbt_fw_header_v1); + } else +#ifdef RTLBTFW_SUPPORTS_FW_V2 + if (memcmp(fw->buf, fw_header_sig_v2, sizeof(fw_header_sig_v2)) == 0) { + fw_type = RTLBT_FW_TYPE_V2; + fw_header_len = sizeof(struct rtlbt_fw_header_v2); + } else +#endif + return (RTLBT_FW_TYPE_UNKNOWN); + + if (fw->len < fw_header_len + sizeof(fw_ext_sig) + 4) { + rtlbt_err("firmware file too small"); + return (RTLBT_FW_TYPE_UNKNOWN); + } + + ptr = fw->buf + fw->len - sizeof(fw_ext_sig); + if (memcmp(ptr, fw_ext_sig, sizeof(fw_ext_sig)) != 0) { + rtlbt_err("invalid extension section signature"); + return (RTLBT_FW_TYPE_UNKNOWN); + } + + do { + opcode = *--ptr; + oplen = *--ptr; + ptr -= oplen; + + rtlbt_debug("code=%x len=%x", opcode, oplen); + + if (opcode == 0x00) { + if (oplen != 1) { + rtlbt_err("invalid instruction length"); + return (RTLBT_FW_TYPE_UNKNOWN); + } + project_id = *ptr; + rtlbt_debug("project_id=%x", project_id); + if (project_id >= nitems(project_ids) || + project_ids[project_id] == 0) { + rtlbt_err("unknown project id %x", project_id); *** 1022 LINES SKIPPED *** From nobody Thu Nov 7 00:50:35 2024 X-Original-To: dev-commits-src-all@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 4XkNlv2lNCz5c4YZ; Thu, 07 Nov 2024 00:50:35 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkNlv2FSyz4WGM; Thu, 7 Nov 2024 00:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730940635; 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=99VUfuXu8onszxJvJN7lFRcmhdwmIn02dXLlkE4Hnto=; b=vygczTQka3EWxMPQUiLdToCpHIsRGofNaVKuGeFUaZgnhx37YMElPSX3btOTvV9+iXX5CL wCaOiMJCn38AypIJr9SQPaVYT0P7/MMSJMwq2l+l8UqgwThSO8XQ4+OjBf/gMjn/niqtXt Q8mlmP4aDlWfz10AXxB8+ZNO16eED0PIQkb3Rd67uUSNQpRLHTJaOyr70sfX8QsiK4Jk7x Ii6vKj+0M7PEruH6f864IHkt201/exUC3RVHQfjeXAUoehdRGbAe2/UWYk1MIov14wxXiD YxkDS0dhoJip+5jC6zpUzwrR2ZADHoy6zMHCQf6qBtLWjnVNjov3Bow58j6OvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730940635; 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=99VUfuXu8onszxJvJN7lFRcmhdwmIn02dXLlkE4Hnto=; b=s59ykMvRFz8gzKeP8jgJKWj4kyS09LibZaZireE/oabfOEIl411hKkFkOiLFw5IYJK9pSj 3sswTgqBXb04E6aUwOkxnoiaf9boUb0djQ8xU8+4X0uVjjsDFpVvXgsHAN7ku1PRKJPKTN rBND+VbqdKQg//kdcy6EqcqlZyOLu21hsqY40xsDLojoa4ZoOHftQkJBuPtOER36j86wBy 1iUUrCkDRWRRcy2G2mZzeu//A+m33JgfQFDG0h1RvXdez6AxEfQfT34DnX80WpeXAaIj3q mdY0mO+kS0LNiabmftVlWprrWuQ8hFqx3ac7y4uXmuoWZdlgfiveYuKrTOL19A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730940635; a=rsa-sha256; cv=none; b=F0q4ltD5k6Izmm0kW4CKmiZsnZao44RsPXSQkUuVExZ1j339tYHA17mRb8NHwBV9o66bt+ ujopX8KOW3w5l9RZgrsUPYBU6lha6SNYYZkXZY2BlvH7zfig+otXWumabztWlP4IHLYcX1 EhOHjx0VW7SDRoAgLycHx0ZRehW9Bj7548BIrMAFGA2shNCGkNaalOgzE1sDBXctim4nbD g7YDckf4V2XlckeROcWQjZUTvSkswV6Vk65qFI7b4WWczfQQL3a9gxbQ9E2jncpPGWo08Z grziF2me6rkVyKnEIhD+LbGxEJxqDsE1Z7akQnLONo56xeRkYINqmQM0RXqTVA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkNlv1rrTzNmy; Thu, 7 Nov 2024 00:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A70oZtY010412; Thu, 7 Nov 2024 00:50:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A70oZs1010409; Thu, 7 Nov 2024 00:50:35 GMT (envelope-from git) Date: Thu, 7 Nov 2024 00:50:35 GMT Message-Id: <202411070050.4A70oZs1010409@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 0d2b7892cd3a - releng/14.2 - loader: Fix boot menu on BIOS List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 0d2b7892cd3aa4666dee7211a76a3a4d99c4c18b Auto-Submitted: auto-generated The branch releng/14.2 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0d2b7892cd3aa4666dee7211a76a3a4d99c4c18b commit 0d2b7892cd3aa4666dee7211a76a3a4d99c4c18b Author: Warner Losh AuthorDate: 2024-11-02 22:02:44 +0000 Commit: Warner Losh CommitDate: 2024-11-06 23:13:14 +0000 loader: Fix boot menu on BIOS Only the gfx-enabled boot loader supports unicode. Otherwise, we have to use the old cons25 / ibmpc upper code page drawing characters. Check to see if we have the gfx.term_drawbox function. If we do, we support the unicode drawing characters. If we don't, then we have an older loader that doesn't support it *OR* we have the reduced function, text-only boot loader. In either of those cases, we need to use the old graphics characters. Abstract all those details into core.hasUnicode function. PR: 282465 MFC After: 2 day Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D47403 (cherry picked from commit c2ba66d4d01f23303352bfe3cbd50ff5d9a05947) (cherry picked from commit f2103edaf5229271f3f6769844c0c747d8352228) Approved-by: re (cperciva) --- stand/lua/core.lua | 9 +++++++++ stand/lua/drawer.lua | 32 +++++++++++++++++++++++++++----- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/stand/lua/core.lua b/stand/lua/core.lua index 72b19462ae5c..3582720f2a81 100644 --- a/stand/lua/core.lua +++ b/stand/lua/core.lua @@ -543,6 +543,15 @@ function core.nextConsoleChoice() end end +-- The graphical-enabled loaders have unicode drawing character support. The +-- text-only ones do not. We check the old and new bindings for term_drawrect as +-- a proxy for unicode support, which will work on older boot loaders as well +-- as be future proof for when we remove the old binding. This also abstracts +-- out the test to one spot in case we start to export this notion more directly. +function core.hasUnicode() + return gfx.term_drawrect ~= nil or loader.term_drawrect ~= nil +end + -- Sanity check the boot loader revision -- Loaders with version 3.0 have everything that we need without backwards -- compatible hacks. Warn users that still have old versions to upgrade so diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua index a009b78164df..612bd2f5317f 100644 --- a/stand/lua/drawer.lua +++ b/stand/lua/drawer.lua @@ -506,23 +506,45 @@ drawer.frame_styles = { top_right = "+", bottom_right = "+", }, - ["single"] = { +} + +if core.hasUnicode() then + -- unicode based framing characters + drawer.frame_styles["single"] = { horizontal = "\xE2\x94\x80", vertical = "\xE2\x94\x82", top_left = "\xE2\x94\x8C", bottom_left = "\xE2\x94\x94", top_right = "\xE2\x94\x90", bottom_right = "\xE2\x94\x98", - }, - ["double"] = { + } + drawer.frame_styles["double"] = { horizontal = "\xE2\x95\x90", vertical = "\xE2\x95\x91", top_left = "\xE2\x95\x94", bottom_left = "\xE2\x95\x9A", top_right = "\xE2\x95\x97", bottom_right = "\xE2\x95\x9D", - }, -} + } +else + -- non-unicode cons25-style framing characters + drawer.frame_styles["single"] = { + horizontal = "\xC4", + vertical = "\xB3", + top_left = "\xDA", + bottom_left = "\xC0", + top_right = "\xBF", + bottom_right = "\xD9", + } + drawer.frame_styles["double"] = { + horizontal = "\xCD", + vertical = "\xBA", + top_left = "\xC9", + bottom_left = "\xC8", + top_right = "\xBB", + bottom_right = "\xBC", + } +end function drawer.drawscreen(menudef) -- drawlogo() must go first. From nobody Thu Nov 7 02:54:21 2024 X-Original-To: dev-commits-src-all@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 4XkRVk1HT8z5cDRc; Thu, 07 Nov 2024 02:54:22 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkRVk0SqSz4nnb; Thu, 7 Nov 2024 02:54:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730948062; 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=MPZn8jPwMGS3jRsvsEFAnkW1s/xwAFe69RsU3hmYPfw=; b=iVllwIpLJuZeVOJUKI18wQITkJwF/wy7osZ0BM085ncv3TpOq7yGUaE9EKQOOKfmI6ozv5 8kCb1FT05BUcqXc45vmfowVsgRihSx6EJzupDXuedxi2nDxyxsT9gaZEaUemzrvs1N9b7w 0BbPm4yQ5faP6EGawTYwMuaU5RKWlAkqzqjvTfPRS25H/RilAugBpvE65X/XSSM5TSfrPd ybz+wDbvYcygL935GvYvVy90VhlyPNGSO+4YugWA7N9I2tTWRFzUIuWHByFonnvDXidoOi D/UazTlyl2xU+vGca8nlsiUMbjVyEP33jitcmYBWJ1RFPdWJkwqx1DBsmPPLTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730948062; 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=MPZn8jPwMGS3jRsvsEFAnkW1s/xwAFe69RsU3hmYPfw=; b=YzGpu7DV3cycgjpcYNGvFXQ0+BMjPCB6aAEPO3HQdMFZNhS7pe5cTIFkvVK7q9C8PCOsMo ytCy0U0YYKR/PWw1N76ruaxdDOuxYweMl3jt5td1rNM87wUkPVx2Dc0hZ1xlbfjt7UvJWb Ra2jfUlT+5CA7oTHlhPC4vkPcawLmotZxlp2jEnwOMiEAaL4wbVYXEZD0MiCTXbrcfkJjc Ee+SsbrwhpQvEnMFWuQ5gJJPKRMSMWuWD4gsoTa4eq5e8dzOErS+okgZ8zhjZ//HanGSe7 ABVkdgsl7pYogAoOq8VUk9pPrENOMqD3G2e0T61lp88npys3eFk8v1C3KMx1vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730948062; a=rsa-sha256; cv=none; b=bVwoiVcrLqni5MSXDBETv8Z8CAZ0vIg/Jo9KHUcREnz3cRLIDyqSW6nLwgsumjAmYjS6NO 3frteqKP0xrJFKL5Y2BKdhwSYFGtb3OYK5/EOg0pGBeKQEQkWac0vXk5M06fv/o1NJF6Lv /2btCldO1I1Glm4hsW0YzsdUYTkk0kEtieYLYqcIZoOwia+LjfW4+VTeAL5ILh0PMSQbg+ 4Y7nKaEyysnyrczf+jLqmiVH62mlvyPa0y3IrG8WW3ZMav4iNqEmkE+Xb4/Hj74nTEQ8eS 22IeUY77b7kSFPNgNVum3wgMET4vID5r3aWoAK4WFBmDzO9MG2GmhRZKLi4Jjw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkRVj70gDzRdS; Thu, 7 Nov 2024 02:54:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A72sLvO041045; Thu, 7 Nov 2024 02:54:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A72sLsS041042; Thu, 7 Nov 2024 02:54:21 GMT (envelope-from git) Date: Thu, 7 Nov 2024 02:54:21 GMT Message-Id: <202411070254.4A72sLsS041042@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: c5fc8587ab14 - releng/14.2 - release: Include -dbg files in dvd image List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: c5fc8587ab142dcb90324b83d25eaab68b410c58 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=c5fc8587ab142dcb90324b83d25eaab68b410c58 commit c5fc8587ab142dcb90324b83d25eaab68b410c58 Author: Colin Percival AuthorDate: 2024-11-05 21:35:17 +0000 Commit: Colin Percival CommitDate: 2024-11-07 02:53:58 +0000 release: Include -dbg files in dvd image In 2016, commit 8834318685bc reworked the code for excluding -dbg files from install media, and in the process accidentally broke it for dvd images ('grep -v' should have been 'grep -vE'). FreeBSD Update builds later began to depend on this, and in any case since DVD images are intended as "include everything" images there's no point excluding those; so remove the (broken) filtering from DVD image builds. Approved by: re (implicit, release build fixes) Sponsored by: Amazon MFC after: 2 days (cherry picked from commit cdfd0600dc8882f0a0d0e6d9a1cdcf926edba6d6) (cherry picked from commit ba7844e4c91505e397396ab981a0032699b0cd70) --- release/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/Makefile b/release/Makefile index 9ca32e168fe7..3ae3a28a1104 100644 --- a/release/Makefile +++ b/release/Makefile @@ -245,12 +245,12 @@ dvd: packagesystem -DDB_FROM_SRC ) # Copy distfiles mkdir -p ${.TARGET}/usr/freebsd-dist - for dist in MANIFEST $$(ls *.txz | grep -v -- '(${base ${_ALL_libcompats}:L:ts|})-dbg'); \ + for dist in MANIFEST $$(ls *.txz); \ do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ done .if defined(NO_ROOT) echo "./usr/freebsd-dist type=dir uname=root gname=wheel mode=0755" >> ${.TARGET}/METALOG - for dist in MANIFEST $$(ls *.txz | grep -vE -- '(${base ${_ALL_libcompats}:L:ts|})-dbg'); \ + for dist in MANIFEST $$(ls *.txz); \ do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \ done .endif From nobody Thu Nov 7 02:54:22 2024 X-Original-To: dev-commits-src-all@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 4XkRVl3HWRz5cDpG; Thu, 07 Nov 2024 02:54:23 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkRVl11mVz4nnc; Thu, 7 Nov 2024 02:54:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730948063; 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=5PdgxwjQBbX/v7MD57+aTVqNTYeKesfXcjwOcmKyVvQ=; b=Dxul+E+9R+Ogol4+fpOEpbJ25LBF9bXojTkVppPtKWVOAk8a0VSICPoVVrXjSH8mm+f3/G pb1SnJoGArKCRgbrrMQLgmXHiDFFFsYg0dJPxmLIOauUYJdtfCUcTdE+jH/y8IK0FLUhuI MRxLoCM6GlPqcW/KKatGMpW7LyvX7GQ4K4Rq4s2gqgKDIqurhHVc5sbAwPk/JNOgQQozDv O9R/+cGdCPiMocmEqDnYmCoZ/pTSdSX3NDF1FCJGgyCu9vns97xTGblezrkUT0rMDYCSXU oXgOPyirg2l6qYn6klbJTQJvpoNyAEr/pbE1XZg2GkOiMDSKiOKQDxtMF9P21w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730948063; 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=5PdgxwjQBbX/v7MD57+aTVqNTYeKesfXcjwOcmKyVvQ=; b=AYNeLKaQT5sKXmL4tgA2usniACfQlwsl4AFv4nfngttTRarIbMMdsg8m4KU5mqafG+oZ7s lmjrjGXy8E0sfJJPS4V/6x79jP7Hl2F+2RXgDXnJ0ZYvRlEy4ljuqDx8UyMRlY/fYYXbec +SCdJAG/4XPz/a04KddA3KfW+1/L5tfXA66iQ+EQZaax7vVytObXntgDhhyA/aJk/j5rcl jkT5txxezAuN2qHpyzbwySLmKFr9OH4jJlKxgKyxw+MfvEVV+kFBV6Y922o8B2pQiwmNIT o5lk8BndADMnAAtNZiPSxnysDnoHV+rIMPWnaq5Fpj+rgnz8alhZGgaAB041ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730948063; a=rsa-sha256; cv=none; b=oeRtNV283aB43CPCmNnzm/zj76GwkihVGTfW2PK2cXuvvZuxgxe4xNLdRFx2QMnq/si7Rk 29MMCseOMujrlAMLc0DqyepzEC4EG+52XyMzj7bDaiBKpDs09PZLUHM5r2aX7XBfc1hAql OQXo78SqYCa21KNvXNT5NrLAzrzWBwjiOXury/j1COce28udZeTHNlUqmn+HNIBlnfm3T2 9bltj1DZXtKxdlQWuBdSndKKoaAxGGOkgjQlaO8SDRY+JkRpL2hXGbSnCLBmdIoTw8CNXT jWovz/h0w4TobM+wqMJq5OPVZwJvu8+myY1FUr0ohhTI+nfE6HhI+EeGWg0iNg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkRVl0Q4CzRst; Thu, 7 Nov 2024 02:54:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A72sMC1041086; Thu, 7 Nov 2024 02:54:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A72sMfn041083; Thu, 7 Nov 2024 02:54:22 GMT (envelope-from git) Date: Thu, 7 Nov 2024 02:54:22 GMT Message-Id: <202411070254.4A72sMfn041083@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: b658d3ea493f - releng/14.2 - release: Remove useless ls List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: b658d3ea493fb3a9f89756be34f972bb3b9d19ed Auto-Submitted: auto-generated The branch releng/14.2 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=b658d3ea493fb3a9f89756be34f972bb3b9d19ed commit b658d3ea493fb3a9f89756be34f972bb3b9d19ed Author: Colin Percival AuthorDate: 2024-11-06 22:24:34 +0000 Commit: Colin Percival CommitDate: 2024-11-07 02:53:59 +0000 release: Remove useless ls Replace "$((ls *.txz))" with "*.txz" Approved by: re (implicit, release build fixes) Reported by: jrtc27 Sponsored by: Amazon (cherry picked from commit e166fea685da4ac6a6891f10b07f98d0e9fcfce3) (cherry picked from commit ce988aa3e80019566bf5df4cfd73f7b7195756f2) --- release/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/Makefile b/release/Makefile index 3ae3a28a1104..be0abf84de23 100644 --- a/release/Makefile +++ b/release/Makefile @@ -245,12 +245,12 @@ dvd: packagesystem -DDB_FROM_SRC ) # Copy distfiles mkdir -p ${.TARGET}/usr/freebsd-dist - for dist in MANIFEST $$(ls *.txz); \ + for dist in MANIFEST *.txz; \ do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ done .if defined(NO_ROOT) echo "./usr/freebsd-dist type=dir uname=root gname=wheel mode=0755" >> ${.TARGET}/METALOG - for dist in MANIFEST $$(ls *.txz); \ + for dist in MANIFEST *.txz; \ do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \ done .endif From nobody Thu Nov 7 03:43:12 2024 X-Original-To: dev-commits-src-all@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 4XkSb50n4cz5cGy4; Thu, 07 Nov 2024 03:43:13 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkSb44qxcz4smY; Thu, 7 Nov 2024 03:43:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730950992; 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=IlkZ9Q9iZ2GN95KnHWgxqSqIE5gsvAkClRR+G826FbA=; b=yr7wNVllmU7fc2Irpqhu5mh6R5ZXlBoubU7KiKl8P/azJ4Q6hkuFyI4s/Fiv7go84RkxxT sqcYYASJYu6Q3H5jte0BfXv+fK4Uh6GVRUuOVxcRUs344MQdUs2RsntZCUHq3GgOzbS/BS jXHzQMpRuTBv0WqxhjdPdezXTB+FPbfVwjlj0+ov0feWNRdEhq6ar3ONBFEKtSu/whgrHB HCNs1DOfh1eCLWZhFYRb5EakOjoQ8JDtoHNu3sKd1dz4kvm94AY6XU+ahM2108T+80NHAc b3G7FAW+QSRfpNQW/1QUMC5neRYJRv8Q1fp0+J1SREj1PGiOYbLV/hiAl8Ylww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730950992; 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=IlkZ9Q9iZ2GN95KnHWgxqSqIE5gsvAkClRR+G826FbA=; b=Fq31tExbetHmgxkJUdEY470jX2gUqrkclIi3vDYfBNr1L2LtBR1yRa6t2cPxwuBVaX9QdF 6gu/Yyjq2rlN4iDeqV02nPJ1rvQeM5pKA20dharohwE6Fpvk6TNhSZ1hVlyz1VN72F+97J 16HXCLk6e45xz8KWLVDPF7gb6E1zN8TNwu5oE8ruIg0cu5lupp2Egus+WLUu7het5E8xx0 enufh8Bj32Y0KsOOxBTfHtbQFejUicoGU8rB3A34IKVaKsHGkXD2cijBBqXBCj7z7JWI9I sZyD2tsWZEcNMlYoKtngtmPvqYu1jJWvUpvByEXPo6lUSmRzZm0Yn5ElUoILvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730950992; a=rsa-sha256; cv=none; b=tByXAL7E2oo9KnDL92ANbrzCqLFNNNqP7KwqInWCDQh2JXSTmHCzvxomtd85DE7ZlXo+MF YA+R2oFk0KxeJ89+Te2hNptO12mpMv5ZCxPF0Kt5BCarzlOGyjKSzsY+mRmn62W5Uw/pdk PWtIH1L9KGrTxSvgnRwzapc4zT2VV6qluKwHimHgVk84q65wXDm/zAQGWfQHP4ouXi8yAT EbZBGIFUfyI88bMj9l7NvuA1ZZqlt2RjT8/KQ7uQBcWw6tHqrlL15iKxOplzAYT8/ait06 JHfD2nXENv55A36JoGRrxAyKwe/oBfU0m8BEVSz2SeKjmXHX6AiJBGBPRLzRjQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkSb44RRWzTQx; Thu, 7 Nov 2024 03:43:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A73hCFQ035272; Thu, 7 Nov 2024 03:43:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A73hC21035269; Thu, 7 Nov 2024 03:43:12 GMT (envelope-from git) Date: Thu, 7 Nov 2024 03:43:12 GMT Message-Id: <202411070343.4A73hC21035269@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 0552fdc62caf - main - sed: fix commandline-given expression when -e is not used List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0552fdc62caf034397ffd5b07dfbad853aef5aa8 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=0552fdc62caf034397ffd5b07dfbad853aef5aa8 commit 0552fdc62caf034397ffd5b07dfbad853aef5aa8 Author: Martin Cracauer AuthorDate: 2024-11-07 03:40:02 +0000 Commit: Kyle Evans CommitDate: 2024-11-07 03:40:45 +0000 sed: fix commandline-given expression when -e is not used Make explicit sed commands (first on commandline) behave the same as those given with -e. Without this patch the following two commands behave differently, the second one being wrong: echo ab | sed -e $'1 i\\\n--' echo ab | sed $'1 i\\\n--' Reviewed by: 0mp, des, kevans Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D47377 --- usr.bin/sed/main.c | 10 +++++----- usr.bin/sed/tests/sed2_test.sh | 13 +++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c index 7cc01eb18147..84e1dfa538e6 100644 --- a/usr.bin/sed/main.c +++ b/usr.bin/sed/main.c @@ -137,10 +137,8 @@ main(int argc, char *argv[]) break; case 'e': eflag = 1; - if ((temp_arg = malloc(strlen(optarg) + 2)) == NULL) - err(1, "malloc"); - strcpy(temp_arg, optarg); - strcat(temp_arg, "\n"); + if (asprintf(&temp_arg, "%s\n", optarg) == -1) + err(1, "asprintf"); add_compunit(CU_STRING, temp_arg); break; case 'f': @@ -173,7 +171,9 @@ main(int argc, char *argv[]) /* First usage case; script is the first arg */ if (!eflag && !fflag && *argv) { - add_compunit(CU_STRING, *argv); + if (asprintf(&temp_arg, "%s\n", *argv) == -1) + err(1, "asprintf"); + add_compunit(CU_STRING, temp_arg); argv++; } diff --git a/usr.bin/sed/tests/sed2_test.sh b/usr.bin/sed/tests/sed2_test.sh index a7408b2560a7..f50619612561 100755 --- a/usr.bin/sed/tests/sed2_test.sh +++ b/usr.bin/sed/tests/sed2_test.sh @@ -147,6 +147,18 @@ bracket_y_body() echo 'bra[ke]' | sed 'y[\[][ct[' } +atf_test_case minus_e +minus_e_head() +{ + atf_set "descr" "Verify that -e and implicit arg do the same thing" +} +minus_e_body() +{ + printf "ab\n" > a + atf_check -o 'inline:--\nab\n' sed -e $'1 i\\\n--' a + atf_check -o 'inline:--\nab\n' sed $'1 i\\\n--' a +} + atf_init_test_cases() { atf_add_test_case inplace_command_q @@ -156,4 +168,5 @@ atf_init_test_cases() atf_add_test_case commands_on_stdin atf_add_test_case hex_subst atf_add_test_case bracket_y + atf_add_test_case minus_e } From nobody Thu Nov 7 03:54:42 2024 X-Original-To: dev-commits-src-all@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 4XkSrL4pNqz5cHY0; Thu, 07 Nov 2024 03:54:42 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkSrL48Hxz4tYf; Thu, 7 Nov 2024 03:54:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730951682; 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=NuCvlxC0Mwd2GrfCTsTR2tOclUpKLuNeKhFZfRvlaPE=; b=dmj/exf4M5nubqoFdHFWM7we20L+BWPhQ+Zo7bDXkB3n3UC0WoXl3Mg1L/KrI40pg/DxO9 HZcChpRpyItwFhFkm86v/xIVo+ARzZ79+wAaO9IgVHEzk3gvAh+1f/2axyjD18C0Dw/e5r mw7IbhybKURAeNvAE/3FKd1ChD+KjUue/RVk07VygOLLMFUtUiCCnFxCs4CnyUcyG8ynaY kXKy7E3WWsyQITsLH4Paqqu0aJHRIVIkvIrH7M69as2gUtlcQXaLwsY8ArHt7pks738jGC OfQ4L6lKv8SzhHnHE0j/5zPJguPMLFTbUynZkT/cd/7NilAah31gWrLFCZob+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730951682; 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=NuCvlxC0Mwd2GrfCTsTR2tOclUpKLuNeKhFZfRvlaPE=; b=hesaS4PLtpeypcemQoIAnZGZJwfCrtXhrk5Fb1SMfuLGGEPnk6DkZiYK+VfqdXINuhWVqj YBd3lNl1XfI3AmYOj5as/xIlsdW8/irTwOMDk0I+cuV8jYOxYhbBBWpCUn1XbYnDZwmkna OpTucsDwvecro0V8T7ZOZTlPuzVCJkvvixy/CVlmotJY5vClK6IbX3S0o5HN8rSGEuhnwY 8XDu34ibJSOAEO1pnT//yhbr6aWa3JTHXPkYiVIx8Q48NckNVT6U0N3QqQRPRUfeGFbmr0 KIAAB6SpCQoJTEHllfxnEBzJImO9DXHibxRgJ8ZTJlCVNr1jVpw9aYV2yUs7ow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730951682; a=rsa-sha256; cv=none; b=vt/NmX6HA4dtyL3QDvubzVgAS0PsR600BdowSCXLBLvLzx7vCYWmwBovjJa4vtPhU9mbnp aGX5j1XK6YEhuGcR6/bMp6N4pogTX6zeM43P9BOH9ayVLY5bT2IdOK9Yg6/yyx1G1lYQhQ y5V+L70ZVX+IRbezPDMACiv9Tye/g+ujeqs0IRZX0cT8j6G1OiJ9znPFXfX9IAFxfRTtfs kZutR/2B0hita0oFpxz6kpY32uPYacbc/0gBNOwr13nWRdjRviLuQtstPE5U44HF/iDzak pHYwKdAJeYaytNMQqcjpf4JJmVIKuTVkbBWz1RVpRx55rjKOTv3qQH+0erHXZg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkSrL3cNrzVW6; Thu, 7 Nov 2024 03:54:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A73sgbg054178; Thu, 7 Nov 2024 03:54:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A73sgaZ054175; Thu, 7 Nov 2024 03:54:42 GMT (envelope-from git) Date: Thu, 7 Nov 2024 03:54:42 GMT Message-Id: <202411070354.4A73sgaZ054175@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: c374566c3ffb - stable/14 - vt.4: align tables + 80 character line limit List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c374566c3ffbbc8070c256a46111f23d499ada56 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=c374566c3ffbbc8070c256a46111f23d499ada56 commit c374566c3ffbbc8070c256a46111f23d499ada56 Author: Alexander Ziaee AuthorDate: 2024-11-04 04:48:20 +0000 Commit: Ed Maste CommitDate: 2024-11-07 03:54:10 +0000 vt.4: align tables + 80 character line limit Reviewed by: emaste MFC after: 3 days Pull request: https://github.com/freebsd/freebsd-src/pull/1514 (cherry picked from commit 4026b17bac6b343acc8d3163282749384eb35e26) --- share/man/man4/vt.4 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index 0523f990f57e..3416ce0cca78 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -306,7 +306,7 @@ or changed at runtime with Enable the terminal bell. .El .Sh FILES -.Bl -tag -width /usr/share/vt/keymaps/* -compact +.Bl -tag -width "/usr/share/vt/keymaps/*.kbd" -compact .It Pa /dev/console .It Pa /dev/consolectl .It Pa /dev/ttyv* @@ -319,13 +319,12 @@ console fonts keyboard layouts .El .Sh DEVCTL MESSAGES -.Bl -column "System" "Subsystem" "1234567" -compact +.Bl -column "System" "Subsystem" "Type" "Description" .Sy "System" Ta Sy "Subsystem" Ta Sy "Type" Ta Sy "Description" .It Li VT Ta BELL Ta RING Ta Notification that the console bell has rung. .El -.Pp -.Bl -column "Variable" "Meaning" -compact +.Bl -column "duration_ms" "Meaning" .Sy "Variable" Ta Sy "Meaning" .It Li duration_ms Ta Length of time the bell was requested to ring in milliseconds. .It Li enabled Ta true or false indicating whether or not the bell was administratively enabled when rung. @@ -351,7 +350,8 @@ To set a 1024x768 mode on all output connectors, put the following line in .Pp .Dl kern.vt.fb.default_mode="1024x768" .Pp -To set a 800x600 only on a laptop builtin screen, use the following line instead: +To set a 800x600 only on a laptop builtin screen, +use the following line instead: .Pp .Dl kern.vt.fb.modes.LVDS-1="800x600" .Pp From nobody Thu Nov 7 03:55:42 2024 X-Original-To: dev-commits-src-all@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 4XkSsW15M8z5cHgZ; Thu, 07 Nov 2024 03:55:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkSsW0WGLz4v3C; Thu, 7 Nov 2024 03:55:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730951743; 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=mVfGLzoa/EF3vcnBcnA3g5JRMOER9u+QuSnSJ3VXFDc=; b=Haq3gV5YairxvIxY+2X8X6fVoVzVn6P4THUL796HeBugINdZmv2Wn4ffJvNH8yjwyAeQXE Loupr747lS3/z8U965+uRv+hdwS5sjImHd8MBFcKQWlixq3oUjV8GtWTqouhUIMSnCR0mt 4XGJG+ZyzeWb/x+6EFgkUWp/N2UWmsomQQXCF6V6t/fYAAefhDOhHYykdiU+mbjKktoPSk +mzYfIkFa7KYxUSDRSZx1Ga/Qrb2wXKE9W5gZCVfjmOMjLBTYcuh+aZHn2oZbUf+hrtPxv ZXcQaMWsAFpvlXmzhLD/PNvYaqE8cMlvAeW03LmYo5X5Xx+K8No59IcaX2hcTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730951743; 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=mVfGLzoa/EF3vcnBcnA3g5JRMOER9u+QuSnSJ3VXFDc=; b=mgPpI4Jecji1Qo3K5LCiC9e+Ri115g+9EMFgTWXRONJAXpitKHhKMWaFk4K6Binqme1lXN SaWxomY0RayqJ0WlsTDG9VRqkeiXIiy5yEFVaZgGVXL2OktHT2QBgYtqG5baA3rAfwsywF M+C2FoUzGZyHXT3PTQkEKCIquHU3zckf+gRdJgyRaO7VRpk+YqeEYlg8/LpqHEmDvmmzAA D43GMV3chb8ByvFb13+PTyclI8p9PGBnJfKDLolumeeUJaCIhVkJTrSaqy+1mmqwIm5Kuo jibdAKpWkV+vj/SX4lsok4AshKuq2DFqw2L42NMtgJbblEDH/uPsfV0TZg2xjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730951743; a=rsa-sha256; cv=none; b=OjOmcJxDlC5lng2wJbOFIje1JAY2ubR//K7TDipNutQh84B6vpgt78u/x5f8MZqLgoEB3x HDdiK2x5QMnH2o4b8r670D0b6Ix4dXbUzRUYLmQea8d+4+7DwQqNNGZpC8Fc8BKeNczqpk xyWYx26R4X/m91SZffhlaIENedcaPhKV2QfyAY1X3XUTyKgPvRbOn33E6LxrDVrcvHjd3K rVXB77ru9+DhQ8jMl5C4VDx3UpAD2G8DlbGs0sQj4dzjKzKXR1DPbV7ZFrwU7Fhxukr3vV AAndk+55Mx4fX1wMWCf2C+IgdLL92i2HJgy7C9p15smskxPUbwnvpiQOQeD29Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkSsV73JzzV3l; Thu, 7 Nov 2024 03:55:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A73tghY054628; Thu, 7 Nov 2024 03:55:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A73tgSV054625; Thu, 7 Nov 2024 03:55:42 GMT (envelope-from git) Date: Thu, 7 Nov 2024 03:55:42 GMT Message-Id: <202411070355.4A73tgSV054625@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 1bdf189b9048 - stable/13 - vt.4: align tables + 80 character line limit List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1bdf189b9048173e1bbb648a12e9e1159ceebaee Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1bdf189b9048173e1bbb648a12e9e1159ceebaee commit 1bdf189b9048173e1bbb648a12e9e1159ceebaee Author: Alexander Ziaee AuthorDate: 2024-11-04 04:48:20 +0000 Commit: Ed Maste CommitDate: 2024-11-07 03:55:22 +0000 vt.4: align tables + 80 character line limit Reviewed by: emaste MFC after: 3 days Pull request: https://github.com/freebsd/freebsd-src/pull/1514 (cherry picked from commit 4026b17bac6b343acc8d3163282749384eb35e26) (cherry picked from commit c374566c3ffbbc8070c256a46111f23d499ada56) --- share/man/man4/vt.4 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/man/man4/vt.4 b/share/man/man4/vt.4 index 3a8c64746882..420f416c727a 100644 --- a/share/man/man4/vt.4 +++ b/share/man/man4/vt.4 @@ -300,7 +300,7 @@ or changed at runtime with Enable the terminal bell. .El .Sh FILES -.Bl -tag -width /usr/share/vt/keymaps/* -compact +.Bl -tag -width "/usr/share/vt/keymaps/*.kbd" -compact .It Pa /dev/console .It Pa /dev/consolectl .It Pa /dev/ttyv* @@ -313,13 +313,12 @@ console fonts keyboard layouts .El .Sh DEVCTL MESSAGES -.Bl -column "System" "Subsystem" "1234567" -compact +.Bl -column "System" "Subsystem" "Type" "Description" .Sy "System" Ta Sy "Subsystem" Ta Sy "Type" Ta Sy "Description" .It Li VT Ta BELL Ta RING Ta Notification that the console bell has rung. .El -.Pp -.Bl -column "Variable" "Meaning" -compact +.Bl -column "duration_ms" "Meaning" .Sy "Variable" Ta Sy "Meaning" .It Li duration_ms Ta Length of time the bell was requested to ring in milliseconds. .It Li enabled Ta true or false indicating whether or not the bell was administratively enabled when rung. @@ -346,7 +345,8 @@ To set a 1024x768 mode on all output connectors, put the following line in .Pp .Dl kern.vt.fb.default_mode="1024x768" .Pp -To set a 800x600 only on a laptop builtin screen, use the following line instead: +To set a 800x600 only on a laptop builtin screen, +use the following line instead: .Pp .Dl kern.vt.fb.modes.LVDS-1="800x600" .Pp From nobody Thu Nov 7 04:08:50 2024 X-Original-To: dev-commits-src-all@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 4XkT8g69N3z5cJbQ; Thu, 07 Nov 2024 04:08:51 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkT8g19Znz4wp5; Thu, 7 Nov 2024 04:08:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730952531; 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=FMmAj520sf2H/GSkySS34SPqXYNF787lPxABrsHgT7g=; b=dApJy7ffsUV0CuJQ9FiMIDg6jGoUJCakBSUZ/yntfLYJdPVAs+1HWRxZO6Yu5Y74OHvHAX OpEhdgVoqSQrYtsRaz2HsRgx+Rvl0X+TnZIKwA+yFs6lxoVDRKiXrLF0bqWJIbgK5w0/5z 1YgJlrTElygErevJ7jaHGu8JYqKjH93VYD65++1Zo8qySqu2txJBERNNtssDFbGIiNTBl4 KWKA8HEEpkdr9LwYz175MoY80EgyFHtfpb5EHGjN6VT9CuMJtT/e9GW3/28mkSdku7JEFA fb3SkXID9+jQZA34fvMHHTSwyJsLKbTP6cq5grlXu9GHNBgIgYyuy16xoCoZKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730952531; 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=FMmAj520sf2H/GSkySS34SPqXYNF787lPxABrsHgT7g=; b=fZ8zZ8rzoiGGFPg+yptxb8AKZfr/eAKYLQ9zCtkjgLwAgAS5VWNiEVZu6Z07ZIguRJU/mg eotgD5AxTo6ivS7wyKluIDxO1Fv3gzI3A3CDSjZSsbZDpbya9cqy+unZ8j59nVTiFZAbl0 vC3wU/7B3xrYmRqMU0aJ3wpH35XbU94JTZ42HLp/K6NMkMm9QRxVOMb6JxBxZtGde6dIGi mr+/NSS1pJkE5CAI1w2ftReDChYTzwyhK4bSkE/cS5Zn50c6DAc9pHnRDpghTY8sHsCQIk 29TeVjTiUFBL8O1U0e1U5vt6NwNk11h0nyk6bzp54FRvUYYip6QNrJkXrqLDQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730952531; a=rsa-sha256; cv=none; b=aKjw3BciPOPbQApahR3jIuBkyJm4xmR/h8vihj3FFyCQ83HwPn+++UB8M3OyTIFC+Zb0KY CIA8VAaVV1bIxo4ctOVHMSAo52zSoPQQZ9hE+XFbpm8nj8hE5TctO7mZavsaHfFqo1+kXN sf0GRJJR+H6NemoUYHAPlyB8hxdS15Bv/vwcnrGiW2ghHezi8J0u9Qp23Z36Ihd8oEU7aY 2q5/rfIkl3lnuLxW/RmFNx4yZoMCn1yQkjSp+Y8waMP55gzdzZa0qvSzIpTtchawb+xaKF KRqWj3lx8vMcNPoh/mPJsawYCRngYIOWokk9pwBx2exDmth8DYSaJWlIlajYtg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkT8f6BMZzW02; Thu, 7 Nov 2024 04:08:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A748oCH075784; Thu, 7 Nov 2024 04:08:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A748orG075781; Thu, 7 Nov 2024 04:08:50 GMT (envelope-from git) Date: Thu, 7 Nov 2024 04:08:50 GMT Message-Id: <202411070408.4A748orG075781@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 0de672a59481 - stable/14 - ndp: Bring back the -A option for the netlink implementation List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0de672a59481d48dd5e4667c597d66e1b042a683 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=0de672a59481d48dd5e4667c597d66e1b042a683 commit 0de672a59481d48dd5e4667c597d66e1b042a683 Author: Zhenlei Huang AuthorDate: 2024-10-31 16:32:14 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 04:08:09 +0000 ndp: Bring back the -A option for the netlink implementation This was lost during the conversion to netlink. Reviewed by: kp Fixes: 91fbe0819bb9 ndp: convert ndp(8) to netlink MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47234 (cherry picked from commit b6d4e3bee350b881b5efea03068c1247985b12fe) --- usr.sbin/ndp/ndp_netlink.c | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/usr.sbin/ndp/ndp_netlink.c b/usr.sbin/ndp/ndp_netlink.c index 179d715c8ded..94dca0f9d4a4 100644 --- a/usr.sbin/ndp/ndp_netlink.c +++ b/usr.sbin/ndp/ndp_netlink.c @@ -316,12 +316,24 @@ print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag) struct snl_state ss_req = {}, ss_cmd = {}; struct snl_parsed_link_simple link = {}; struct snl_writer nw; + struct nlmsghdr *hdr; + struct ndmsg *ndmsg; nl_init_socket(&ss_req); snl_init_writer(&ss_req, &nw); - struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETNEIGH); - struct ndmsg *ndmsg = snl_reserve_msg_object(&nw, struct ndmsg); + /* Print header */ + if (!opts.tflag && !cflag) { + char xobuf[200]; + snprintf(xobuf, sizeof(xobuf), + "{T:/%%-%d.%ds} {T:/%%-%d.%ds} {T:/%%%d.%ds} {T:/%%-9.9s} {T:/%%1s} {T:/%%5s}\n", + W_ADDR, W_ADDR, W_LL, W_LL, W_IF, W_IF); + xo_emit(xobuf, "Neighbor", "Linklayer Address", "Netif", "Expire", "S", "Flags"); + } + +again: + hdr = snl_create_msg_request(&nw, RTM_GETNEIGH); + ndmsg = snl_reserve_msg_object(&nw, struct ndmsg); if (ndmsg != NULL) { ndmsg->ndm_family = AF_INET6; ndmsg->ndm_ifindex = ifindex; @@ -337,14 +349,6 @@ print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag) int count = 0; nl_init_socket(&ss_cmd); - /* Print header */ - if (!opts.tflag && !cflag) { - char xobuf[200]; - snprintf(xobuf, sizeof(xobuf), - "{T:/%%-%d.%ds} {T:/%%-%d.%ds} {T:/%%%d.%ds} {T:/%%-9.9s} {T:/%%1s} {T:/%%5s}\n", - W_ADDR, W_ADDR, W_LL, W_LL, W_IF, W_IF); - xo_emit(xobuf, "Neighbor", "Linklayer Address", "Netif", "Expire", "S", "Flags"); - } xo_open_list("neighbor-cache"); while ((hdr = snl_read_reply_multi(&ss_req, nlmsg_seq, &e)) != NULL) { @@ -382,6 +386,12 @@ print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag) count++; snl_clear_lb(&ss_req); } + if (opts.repeat) { + xo_emit("\n"); + xo_flush(); + sleep(opts.repeat); + goto again; + } xo_close_list("neighbor-cache"); snl_free(&ss_req); From nobody Thu Nov 7 05:20:32 2024 X-Original-To: dev-commits-src-all@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 4XkVlP1ld0z5cNG5; Thu, 07 Nov 2024 05:20:33 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkVlN6Zn7z54xG; Thu, 7 Nov 2024 05:20:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956832; 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=Wo2Zy5Lb/axQYVFQ9RqZ60FaMgkpbNEb8/nP755vejg=; b=KsMxvik1p9QVKHQeQPNFHmcW1EUvsTzOo1Ezj+OqPFfiRj17WgT/4gh74mYbO9r+i+GPRq FfCzpqm04p2Lpurziz/qWxGOpWOwdHJJrXyhbTpBdzuZAkGeidBjwkKTfM25YN16TD9A4N +1YRa2X4gPhU5tXfctvXxdCJVH2QSieO3z6Y5S2HuFVbfF30c5Gn48ie7KDmcPEOcoD9JL tfOGYdHihv7vA+dm3x5IYbQskEKXDgqIC6iopkkABJdpF54R25eENnwmAUM62iAUg6wT0N ipnablSXR2c2WmEQAD25x6/Y6DLPro1sd97ly1+wxvMJ6pvy1Kmp9asAwLDjYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956832; 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=Wo2Zy5Lb/axQYVFQ9RqZ60FaMgkpbNEb8/nP755vejg=; b=Jriw1MBLYfgWcn69Pb9JNi5UGEG8OMliLpy+RBblHjMtCZh0+O1dqa2tjFpIe5eNFE9IKz DpPyfB73h3mt/Z1G/GsCtwSqAhfSSRtRc+hEdXcadfT7D8qOZDEWXwZ9g+OsUZmXtDQGMC AA4BIFkAoChJLDVv+ajAGLwK7+54sr9JjbarjOCze20ry/R1F4K02EO9K/tdzf0tcpNg/+ ZrSVaMYGICc4EtIdLKlR9ZammBDTmOfYgX/dgqzjUc0vMDtmtQSWgZu17NnTyK7j/fj8Zd c5AOTYqqKF6pRQ1XfGiP12t7DTFCAkc4BM2oN+B5e33vxv2oh1US3OcJd5g6dQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730956832; a=rsa-sha256; cv=none; b=a7brGhGOXDoplHIN7/7nOh2x3mXdj0JEem5QpYWF79S9GtfJLUjfiqViA4sZHyTgWwKWec sr1PQKOSWxktCBclpnouDHpHbsyXNacWtzHpOsWIhnpf05jB5vdphMZ3NxPw6/o4ogfnkz +ov7baEEauM7SIs4tftTFql5dLG0FrWI5y4BfqEu1sbv7Z6zJ/vmjVAD/rkvvFRUmA0DvO Kw8yXq7LxGIegmx484j1W0etiF0VaaqkiIYk6ghqXlxMVqq9niWdQkvuMMAikVgCpNnArL qKLllMVZUgGi6HRCsJhY/hN4wlTTkS0XFYp+kQoE9/S9OuLRSfE/o5fvxC/GCA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkVlN5WK3zY5c; Thu, 7 Nov 2024 05:20:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A75KWvO014393; Thu, 7 Nov 2024 05:20:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A75KWd7014390; Thu, 7 Nov 2024 05:20:32 GMT (envelope-from git) Date: Thu, 7 Nov 2024 05:20:32 GMT Message-Id: <202411070520.4A75KWd7014390@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 7cd3e2696ca3 - main - sys/link_elf.h: remove extern linkage specifier from dl_iterate_phdr() prototype List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7cd3e2696ca357630ff591959956295da9abbe2d Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7cd3e2696ca357630ff591959956295da9abbe2d commit 7cd3e2696ca357630ff591959956295da9abbe2d Author: Konstantin Belousov AuthorDate: 2024-10-31 05:55:43 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-07 05:14:38 +0000 sys/link_elf.h: remove extern linkage specifier from dl_iterate_phdr() prototype Reviewed by: brooks Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47351 --- sys/sys/link_elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/link_elf.h b/sys/sys/link_elf.h index 9752bdff55dc..7b51b3e87d1d 100644 --- a/sys/sys/link_elf.h +++ b/sys/sys/link_elf.h @@ -93,7 +93,7 @@ struct dl_phdr_info __BEGIN_DECLS typedef int (*__dl_iterate_hdr_callback)(struct dl_phdr_info *, size_t, void *); -extern int dl_iterate_phdr(__dl_iterate_hdr_callback, void *); +int dl_iterate_phdr(__dl_iterate_hdr_callback, void *); int _rtld_addr_phdr(const void *, struct dl_phdr_info *); int _rtld_get_stack_prot(void); int _rtld_is_dlopened(void *); From nobody Thu Nov 7 05:20:33 2024 X-Original-To: dev-commits-src-all@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 4XkVlQ30v1z5cN4H; Thu, 07 Nov 2024 05:20:34 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkVlQ1vvCz54xH; Thu, 7 Nov 2024 05:20:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956834; 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=9DikfKERbdF3bd40HtQFKOKD1Ds4I6zoU7xDDqPTBeM=; b=ew4SERktkNndU42F88VqhOqmQ2/U3Vt+KIuTEUAOb4DUpElRDMZE3xN4ApmwKqKUxn+6kK 8Lr6P1SlM4iv+bp0CHzWF1vHq+p1wiu+ks7I+gDYKQfrGJj+tndSdDBcp5BHZQE7yKWkZV PG+GjbBnwgRceN7GBVwTipLyY98Hk9lWNiCnwuh4UQ/1jYLFzzTOIOkv7kBIXMc57vXEn4 QzUKpR+hyAvekXd1rWjSUcPei30xMHw4kD4Qm+cIZnwyKEyTt2bdpEeNArF47jaYW93Ova zz8uLcIihEgtqj5oCdNQao8f+rHiGz9FaRexEgAkjceqJ0WCHHwtQdUiosEU0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956834; 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=9DikfKERbdF3bd40HtQFKOKD1Ds4I6zoU7xDDqPTBeM=; b=WT4SwDOoHJcuML817DaeXvKeumF7G9WjnExIFg+r02Lk3FwiRPdzvvxLpyDP7bbsWK7aW2 YJXgweouN6CdkZuVKPzYn5BXnHjRBJT8TRIABDwSHf/Z7HayoXXUghiCGEfUfvvC6WL2+1 fyIS4+fPDBT2cBf/KNggSePVp6Wii3QOLR3H1/6wsPZTIf0KhQ18HzF91VpjFap1JgJxc0 SkNYyOapHmRzbJJne61e50APApcCighM2C5tRi5rFgcvus6lLZ0B6CYWDRGRUW0s/7HpNF zuJ0y6ntLcbAtz7vZGdaZyuh2sY5vaMDQeqaIdqQtvwVljSGN4DalWFrxb9seQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730956834; a=rsa-sha256; cv=none; b=tEYns5Ylfioq2uHYj/m5HN6YXJAPlRmBMfNIKi7b1KHtU64QhldMZmalGRnJAlIBb2Amcx aM9TsYoUpyhW2P/uuMoDjSIsWjiXqXDvb6zJshAl/taRJjRGA0KOH+jFNPIe1B6c74cvew rcv6HUx/4SZM+hyWAWe+KloQ2nmBZaQJqEWFE1fISJf/vyXVdCy/fR+E7EtmvjIGptCRFy 0xjngAKLrW0OBco/91CLmUhWlGOF20Cthh/HGba8zT5wNHxAo2S7ZbUNC5/wQ5M1wX0+Ec d5h6PyGE//YOYkDtctKS3JEYYTO/Nosb7IkytuTvoLA2CuLOLj1bg7ubTnQBCQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkVlP6WkWzXhM; Thu, 7 Nov 2024 05:20:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A75KXJb014464; Thu, 7 Nov 2024 05:20:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A75KXXn014461; Thu, 7 Nov 2024 05:20:33 GMT (envelope-from git) Date: Thu, 7 Nov 2024 05:20:33 GMT Message-Id: <202411070520.4A75KXXn014461@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 450e684e0fea - main - rtld: 1-bit for bool is enough List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 450e684e0fea2785b5770241f51e897070c86726 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=450e684e0fea2785b5770241f51e897070c86726 commit 450e684e0fea2785b5770241f51e897070c86726 Author: Konstantin Belousov AuthorDate: 2024-10-31 19:11:02 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-07 05:14:38 +0000 rtld: 1-bit for bool is enough Reviewed by: brooks Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47351 --- libexec/rtld-elf/rtld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index a8db1198a899..c670ec7f0009 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -346,7 +346,7 @@ ld_utrace_log(int event, void *handle, void *mapbase, size_t mapsize, struct ld_env_var_desc { const char * const n; const char *val; - const bool unsecure; + const bool unsecure:1; }; #define LD_ENV_DESC(var, unsec) \ [LD_##var] = { .n = #var, .unsecure = unsec } From nobody Thu Nov 7 05:20:34 2024 X-Original-To: dev-commits-src-all@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 4XkVlR3yq7z5cN4J; Thu, 07 Nov 2024 05:20:35 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkVlR0wb9z54pk; Thu, 7 Nov 2024 05:20:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956835; 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=3yTSoAtJ5cF6vStX+u66j6e8YWkoSaHKdqPH+MFcwtg=; b=Q2giQxc3XqeNfsSiinHF8p+BBrJh0iBQl6LTlPs7pAbqhSVb7CyQMe4ixDXWpOCXdqLYyQ uNTtHpWI36Zn1K06XycxwRkcwmmhdB6qAzLeHAVCJG/qHrdKX9BZpvkr79jC+OZn2cc04g 1XYVX04qsYvAAeVGLvFke2o2/JmhuVzUfnb2jeA0xdf6fQAfLahIl5rXt5oMWHT3rRlIDr k/A1KZQHvt7h6Xe7rbczLEZmHQ0VvttP9UQuoLas5EhBtN/xKaipaILmFvN1n6IKAwI9Su HMQ1qWDUNmMIqflxRLycv076CtEmwZ5xLBlZy/hMCn8gYZ1gnK1HIka9bTM82A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956835; 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=3yTSoAtJ5cF6vStX+u66j6e8YWkoSaHKdqPH+MFcwtg=; b=GH4SlDsEKzN4yJ8pkN5UDurVZVRZdewHizyu73iNivq6JblqCg/Ku4MbGcMg8hI0gNz32o nbMLN3uwOcJzsCaOnP5hq5+1hk/viQjOXX9eY4yhcYr/FVXpVi7PWT71mzLuN6Y1pLwTAz 3QJKKSHDpx1pcJPailMTtlpTnrugq7wHBlPt6CleuvuGslVgEWULQaRIxogWHKBw+0mWp8 7FDE0BimWo9po3BKHtHYlW3fGt4XG76KbrmLHEObLNmXN66aS8iuTKMnZ9sWlNG+32/yrH tdz98Jo8RvXiq9X6+RyfEBMKybhTw6JwHQWzxwEptmCaSUDxXrPYKj4ydZluVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730956835; a=rsa-sha256; cv=none; b=csj311GgG+N/GeLUwGfhDN3FH4W0LaQo7wPv1wO+h4QoKDMTPx9DbdVogOHpGgjsxYns2C /6H3BYloXDBCZaDDa0p5WUcUxZ2/rt4kJuYovP48+5+ZiTtVawq6nBJxprlnKN7zp2LWhV IhkUZI/oki/i79HN4ZigjkbfhhI1JWfDmZkeXatXIgSNVUCstsrJCUlNlIlT9SWaUo8IWg N8T5tXRbESqPWixk1gk+FsmAKtU0vxETuKo578Wsz7nFY48hkVDEAUfWwsuWyIqGxFbq3m mCJpqdXRavt567WLtZT1rSSO6NdFuLamMz3JDAKDnosWf/5MM8bIXmuS5JzrcQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkVlR0PHSzXT2; Thu, 7 Nov 2024 05:20:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A75KYZM014528; Thu, 7 Nov 2024 05:20:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A75KYrK014525; Thu, 7 Nov 2024 05:20:34 GMT (envelope-from git) Date: Thu, 7 Nov 2024 05:20:34 GMT Message-Id: <202411070520.4A75KYrK014525@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: d7214577ff00 - main - rtld: make it easier to add sparce non-default members to ld_env_var_desc List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d7214577ff00221ac84a85e61794a5e126b952dd Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d7214577ff00221ac84a85e61794a5e126b952dd commit d7214577ff00221ac84a85e61794a5e126b952dd Author: Konstantin Belousov AuthorDate: 2024-11-01 19:20:17 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-07 05:14:38 +0000 rtld: make it easier to add sparce non-default members to ld_env_var_desc by making the LD_ENV_DESC() macro variadic. Suggested by: brooks Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47351 --- libexec/rtld-elf/rtld.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index c670ec7f0009..7c61fec44ef7 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -348,8 +348,11 @@ struct ld_env_var_desc { const char *val; const bool unsecure:1; }; -#define LD_ENV_DESC(var, unsec) \ - [LD_##var] = { .n = #var, .unsecure = unsec } +#define LD_ENV_DESC(var, unsec, ...) \ + [LD_##var] = { \ + .n = #var, \ + .unsecure = unsec, \ + __VA_ARGS__ \ static struct ld_env_var_desc ld_env_vars[] = { LD_ENV_DESC(BIND_NOW, false), From nobody Thu Nov 7 05:20:36 2024 X-Original-To: dev-commits-src-all@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 4XkVlS4ntrz5cND0; Thu, 07 Nov 2024 05:20:36 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkVlS1cFBz54xM; Thu, 7 Nov 2024 05:20:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956836; 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=uSf9US9+ZbIc6JUh/xXXa6obtzGCoiNZ7WGEoCPteeQ=; b=VZ/VG+KV9/4oB3p5XXgSrkuOZhUVZ5UpbBreHct7wpzBeU2OqUzIjv6cmAMVAdzbmoAAKV 3hvdqW1Nyk6C5P+CRzyG/alfWAqdnIdcIVXrQAO+bFms01V5LHYEwTPuunKCu0nWRWxysZ Gr5E6auo4cQxrIf2oXJgzEAMB2u6h0jkXySDeIqEmG2+zC8cS+Q5Ccb45wTV3xeuxjzRgD l8acuib5kCNIq+KKd7H6gnrGQ0TI0qYII5r9K0OZAvxp1JcbtMfkE/H9N7qFmp2pam1lse TenHG7Q0d1LmlPz3qXOnPQsbHoqfSeggISs1alQaDFEmXRprz9YN+WwKhCJOdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956836; 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=uSf9US9+ZbIc6JUh/xXXa6obtzGCoiNZ7WGEoCPteeQ=; b=aH+nMcgRB4PLQnzq5uvzX0QZopYe9YTnpls9+sv6fbpy868Qf9S9uY4NZ1fqJZyiufDG+f kLKn2/jqRco6d6iDONRWG5ye1fYeNP7MbZRFexoX0xkuRY0xWJ6QyMGOp7eH7KN4Q+l5+O 2mfVjdBkCVWBk3Jp3twZU6yf6fpHgDHjuk+W0SxZS4rRJx/LP6AUii2dhhmJ879XdwUNI2 rMasMA1nG2RJ3uIawGtorK6p2m8v7IzuT9NzDhj43ISKnZZkxFwrXZggkiVQsS7aPsOMtL 3Y+bISaGsFY+947E/Vc6LPGn1yvXSE6202laIT9x7GaOO7dmu7Hq+bJHy5chqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730956836; a=rsa-sha256; cv=none; b=EQloVYQg7faDmXSVYYzcKt6kgcVsB/8fWnj3ZJc6wmfOldZH9ooDXGH2KANJssrxW2Smr3 Z8d1tslNmp3RrGWs2n6meVZK+0zE4pUpsMjYSydMAoYAXGDejwSw5KV0KGG+idD+WLZVM8 HO1nfc9Z+c60SjH8oGLLS3Q4gtH3QfFU4ffOG06tP6W8lHK9u+o84lZszpcUSQtSFzMLv5 rUEnfNcJ65KdrJs2w4pVWx4+oG7odwaSHpzHL2xskgGMW3JbtHJBxwCCs8WcjUOS78F5KG +EXvf2J3skrTkq36f1Ep69jFGA4LFJu+tgxcDFpwYoAeho7aFzN7+qvzUfzJ1w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkVlS0mK3zXDN; Thu, 7 Nov 2024 05:20:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A75KaQp014618; Thu, 7 Nov 2024 05:20:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A75Kaeh014614; Thu, 7 Nov 2024 05:20:36 GMT (envelope-from git) Date: Thu, 7 Nov 2024 05:20:36 GMT Message-Id: <202411070520.4A75Kaeh014614@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: c56df6ce71ae - main - rtld: add rtld_{get,set}_var List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c56df6ce71ae96f00b088790d3ad2e0ebebdd59a Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c56df6ce71ae96f00b088790d3ad2e0ebebdd59a commit c56df6ce71ae96f00b088790d3ad2e0ebebdd59a Author: Konstantin Belousov AuthorDate: 2024-10-31 06:01:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-07 05:15:23 +0000 rtld: add rtld_{get,set}_var Reviewed by: brooks (previous version) Discussed with: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47351 --- lib/libc/gen/Symbol.map | 2 ++ lib/libc/gen/dlfcn.c | 17 +++++++++++++ lib/libdl/Symbol.map | 5 ++++ libexec/rtld-elf/Symbol.map | 5 ++++ libexec/rtld-elf/rtld.c | 62 +++++++++++++++++++++++++++++++++++++++------ sys/sys/link_elf.h | 2 ++ 6 files changed, 85 insertions(+), 8 deletions(-) diff --git a/lib/libc/gen/Symbol.map b/lib/libc/gen/Symbol.map index 17d114c96677..df950697cf23 100644 --- a/lib/libc/gen/Symbol.map +++ b/lib/libc/gen/Symbol.map @@ -456,6 +456,8 @@ FBSD_1.8 { aio_read2; aio_write2; execvpe; + rtld_get_var; + rtld_set_var; }; FBSDprivate_1.0 { diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index b678df9eef47..b30cb82e5e43 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -337,4 +338,20 @@ _rtld_is_dlopened(void *arg __unused) return (0); } +#pragma weak rtld_get_var +const char * +rtld_get_var(const char *name __unused) +{ + _rtld_error(sorry); + return (NULL); +} + +#pragma weak rtld_set_var +int +rtld_set_var(const char *name __unused, const char *val __unused) +{ + _rtld_error(sorry); + return (EINVAL); +} + #endif /* !defined(IN_LIBDL) || defined(PIC) */ diff --git a/lib/libdl/Symbol.map b/lib/libdl/Symbol.map index 67d26c1f1dfe..dd9a8252e4a3 100644 --- a/lib/libdl/Symbol.map +++ b/lib/libdl/Symbol.map @@ -17,3 +17,8 @@ FBSD_1.0 { FBSD_1.3 { fdlopen; }; + +FBSD_1.8 { + rtld_get_var; + rtld_set_var; +}; diff --git a/libexec/rtld-elf/Symbol.map b/libexec/rtld-elf/Symbol.map index 0b7ad63f60a7..3cdbb30d04a0 100644 --- a/libexec/rtld-elf/Symbol.map +++ b/libexec/rtld-elf/Symbol.map @@ -21,6 +21,11 @@ FBSD_1.3 { fdlopen; }; +FBSD_1.8 { + rtld_get_var; + rtld_set_var; +}; + FBSDprivate_1.0 { _rtld_thread_init; _rtld_allocate_tls; diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 7c61fec44ef7..f1075bc75d5f 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -257,6 +257,8 @@ int _rtld_addr_phdr(const void *, struct dl_phdr_info *) __exported; int _rtld_get_stack_prot(void) __exported; int _rtld_is_dlopened(void *) __exported; void _rtld_error(const char *, ...) __exported; +const char *rtld_get_var(const char *name) __exported; +int rtld_set_var(const char *name, const char *val) __exported; /* Only here to fix -Wmissing-prototypes warnings */ int __getosreldate(void); @@ -347,31 +349,35 @@ struct ld_env_var_desc { const char * const n; const char *val; const bool unsecure:1; + const bool can_update:1; + const bool debug:1; + bool owned:1; }; #define LD_ENV_DESC(var, unsec, ...) \ [LD_##var] = { \ .n = #var, \ .unsecure = unsec, \ __VA_ARGS__ \ + } static struct ld_env_var_desc ld_env_vars[] = { LD_ENV_DESC(BIND_NOW, false), LD_ENV_DESC(PRELOAD, true), LD_ENV_DESC(LIBMAP, true), - LD_ENV_DESC(LIBRARY_PATH, true), - LD_ENV_DESC(LIBRARY_PATH_FDS, true), + LD_ENV_DESC(LIBRARY_PATH, true, .can_update = true), + LD_ENV_DESC(LIBRARY_PATH_FDS, true, .can_update = true), LD_ENV_DESC(LIBMAP_DISABLE, true), LD_ENV_DESC(BIND_NOT, true), - LD_ENV_DESC(DEBUG, true), + LD_ENV_DESC(DEBUG, true, .can_update = true, .debug = true), LD_ENV_DESC(ELF_HINTS_PATH, true), LD_ENV_DESC(LOADFLTR, true), - LD_ENV_DESC(LIBRARY_PATH_RPATH, true), + LD_ENV_DESC(LIBRARY_PATH_RPATH, true, .can_update = true), LD_ENV_DESC(PRELOAD_FDS, true), - LD_ENV_DESC(DYNAMIC_WEAK, true), + LD_ENV_DESC(DYNAMIC_WEAK, true, .can_update = true), LD_ENV_DESC(TRACE_LOADED_OBJECTS, false), - LD_ENV_DESC(UTRACE, false), - LD_ENV_DESC(DUMP_REL_PRE, false), - LD_ENV_DESC(DUMP_REL_POST, false), + LD_ENV_DESC(UTRACE, false, .can_update = true), + LD_ENV_DESC(DUMP_REL_PRE, false, .can_update = true), + LD_ENV_DESC(DUMP_REL_POST, false, .can_update = true), LD_ENV_DESC(TRACE_LOADED_OBJECTS_PROGNAME, false), LD_ENV_DESC(TRACE_LOADED_OBJECTS_FMT1, false), LD_ENV_DESC(TRACE_LOADED_OBJECTS_FMT2, false), @@ -6329,6 +6335,46 @@ dump_auxv(Elf_Auxinfo **aux_info) } } +const char * +rtld_get_var(const char *name) +{ + const struct ld_env_var_desc *lvd; + u_int i; + + for (i = 0; i < nitems(ld_env_vars); i++) { + lvd = &ld_env_vars[i]; + if (strcmp(lvd->n, name) == 0) + return (lvd->val); + } + return (NULL); +} + +int +rtld_set_var(const char *name, const char *val) +{ + struct ld_env_var_desc *lvd; + u_int i; + + for (i = 0; i < nitems(ld_env_vars); i++) { + lvd = &ld_env_vars[i]; + if (strcmp(lvd->n, name) != 0) + continue; + if (!lvd->can_update || (lvd->unsecure && !trust)) + return (EPERM); + if (lvd->owned) + free(__DECONST(char *, lvd->val)); + if (val != NULL) + lvd->val = xstrdup(val); + else + lvd->val = NULL; + lvd->owned = true; + if (lvd->debug) + debug = lvd->val != NULL && *lvd->val != '\0'; + return (0); + } + return (ENOENT); +} + /* * Overrides for libc_pic-provided functions. */ diff --git a/sys/sys/link_elf.h b/sys/sys/link_elf.h index 7b51b3e87d1d..996e1f70a9f1 100644 --- a/sys/sys/link_elf.h +++ b/sys/sys/link_elf.h @@ -97,6 +97,8 @@ int dl_iterate_phdr(__dl_iterate_hdr_callback, void *); int _rtld_addr_phdr(const void *, struct dl_phdr_info *); int _rtld_get_stack_prot(void); int _rtld_is_dlopened(void *); +const char *rtld_get_var(const char *name); +int rtld_set_var(const char *name, const char *val); #ifdef __ARM_EABI__ void * dl_unwind_find_exidx(const void *, int *); From nobody Thu Nov 7 05:20:37 2024 X-Original-To: dev-commits-src-all@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 4XkVlW1jjTz5cNLB; Thu, 07 Nov 2024 05:20:39 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkVlT3zCZz55Jx; Thu, 7 Nov 2024 05:20:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956837; 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=BkSbij8aJp11SmUDBL25mIDzTyjglqCd07LvhgOzgV0=; b=Eqd72vTtZMare1NN/4vxgbrJ0atOrxOc1x/J6iB/LmdUypRgDAHkXBlhjQAIpMgjBpv8mL EwHoRzB0fbVDyU8wioHEUoEQUNPIp/tEV6Gp14Hpq4HqxES3xqKG+gATk8f5vvWJd+Hr0c B2qm2lI0bNuHeeFd/EgN7Yw4bFumMgU1r4VRZo3i0tGApgIGo5JEX/9VFLgdPnWeUeCbA0 gQQeiBZXjhEFHXU0DhTmsWiQRL5xsOIePpbowzT1sltIxx2Bz249H6uGbG0DmKVHdwQDN0 BCiHv1tNpNhLeECpXzXVEuNp5HIHYBpqVqAdEIwPHzhgyKVYFq6kqiriHtQmGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956837; 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=BkSbij8aJp11SmUDBL25mIDzTyjglqCd07LvhgOzgV0=; b=FZvpqLbOzK4GuNxSw7hpskPfwGidBk4rD/8iHN3QYgxYtFtfsCE6BMQqz4H17PHYTLYZXt comnIcABvvyStZB+T7aOzf4YtRE/jpLLRXTowWSG/KCtX7xwCZX5/SXNXz8ps7UArgXYi8 toOVsyi4PIaSd6wILQvEhyH24xzev3DL7zWLd5zyyjXiVZFE3qt6otKPNfmu0qWmohBCnt sxIZ7d+nROJPM8onUd5a/0HBRTZX3pxpfOjD6gSUuRoUN/v67vwhky0E/b917pPIcqIyr7 Dff3ChtfM++huHEi5DUT5s55ylfAAt8vPHNa+Pr1jK+Qd7oyrsqUrDdNbXW+XQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730956837; a=rsa-sha256; cv=none; b=hgX4hU/YUbZyK+P2imzmrzRNjNvBHqAe+DmQt8dRPoO3PMaN/jrcZVRWHdsC9vUkcO/x5J LvTefYJGGZn3Mx9Idqqx5GE1ZNTpKwYVDGr8GbrsOrkc9hcGM5N8cjrG/qd781tv79Kk07 GYWneqyf+9zX3ZQHNdLTlwcolNiQKtdJZoZHWct0RXfkBzCOrIqKg85qaCOaBP4yRgx4R+ 1zeURdtVovtvHOeYtaDjUDQvwSUYP1mwqoUalr7rxp+9B42LUtDBuGI1rnsxH14532gfHb lv3y/bZlBuzOEUi84WB6ZCERFJ0CJo1naHt18Tt4uvnDEWGABQnfHaGlHBtRkA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkVlT23PTzXDQ; Thu, 7 Nov 2024 05:20:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A75KbBI014653; Thu, 7 Nov 2024 05:20:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A75KbkS014650; Thu, 7 Nov 2024 05:20:37 GMT (envelope-from git) Date: Thu, 7 Nov 2024 05:20:37 GMT Message-Id: <202411070520.4A75KbkS014650@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 3820f784597c - main - Document rtld_get_var(3) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3820f784597cf87deb42522f108c5ee477a1f282 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=3820f784597cf87deb42522f108c5ee477a1f282 commit 3820f784597cf87deb42522f108c5ee477a1f282 Author: Konstantin Belousov AuthorDate: 2024-10-31 20:15:33 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-07 05:15:30 +0000 Document rtld_get_var(3) Reviewed by: Alexander Ziaee Discussed with: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47351 --- lib/libc/gen/Makefile.inc | 3 ++ lib/libc/gen/rtld_get_var.3 | 106 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index 8111b0d24345..42a359ccfb72 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -275,6 +275,7 @@ MAN+= alarm.3 \ raise.3 \ rand48.3 \ readpassphrase.3 \ + rtld_get_var.3 \ scandir.3 \ sem_destroy.3 \ sem_getvalue.3 \ @@ -481,6 +482,8 @@ MLINKS+=rand48.3 _rand48.3 \ rand48.3 nrand48.3 \ rand48.3 seed48.3 \ rand48.3 srand48.3 +MLINKS+=rtld_get_var.3 \ + rtld_set_var.3 MLINKS+=scandir.3 alphasort.3 \ scandir.3 scandirat.3 \ scandir.3 scandir_b.3 \ diff --git a/lib/libc/gen/rtld_get_var.3 b/lib/libc/gen/rtld_get_var.3 new file mode 100644 index 000000000000..06d2e8a41cbc --- /dev/null +++ b/lib/libc/gen/rtld_get_var.3 @@ -0,0 +1,106 @@ +.\" Copyright (c) 2024 The FreeBSD Foundation +.\" +.\" This documentation was written by +.\" Konstantin Belousov under sponsorship +.\" from the FreeBSD Foundation. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.Dd October 31, 2024 +.Dt RTLD_GET_VAR 3 +.Os +.Sh NAME +.Nm rtld_get_var , +.Nm rtld_set_var +.Nd query or change run-time linker parameters after image activation +.Sh LIBRARY +.Lb libc +.Sh SYNOPSIS +.In sys/errno.h +.In link.h +.Ft const char * +.Fn rtld_get_var "const char *name" +.Ft int +.Fn rtld_set_var "const char *name" "const char *value" +.Sh DESCRIPTION +The dynamic linker +.Xr rtld 1 +can be configured be setting some environment variables for the process, +before image activation. +Sometimes it is desirable to query the current effective settings or +change them afterward. +.Pp +Since the process environment variables are maintained by higher-level +libraries, the run-time linker cannot access them after the image +activation. +The described functions make it possible to operate on rtld settings. +.Pp +The +.Fn rtld_get_var +function returns the current value of the named parameter. +.Pp +The +.Fn rtld_set_var +functions changes the value of the parameter to the new +.Fa value +value, if possible. +The +.Fa name +argument to both functions is the name of the parameter, which +is same as the corresponding environment variable +.Pq see Xr rtld 1 +but without the +.Ev LD_ +(or +.Ev LD_32_ +or any other ABI-specific) prefix. +.Sh RETURN VALUES +The +.Fn rtld_get_var +returns the current value of the named parameter, or +.Dv NULL +if the name is invalid. +.Pp +The +.Fn rtld_set_var +returns 0 on success, or an integer indicating the error condition +which prevented the operation. +.Sh ERRORS +Possible errors returned from +.Fn rtld_set_var : +.Bl -tag -width Er +.It Bq Er EPERM +The requested change cannot be made at runtime, either because the +runtime linker can only take this parameter at initialization time, +or because the current process is executing with elevated privileges. +.It Bq ENOENT +The supplied parameter +.Fa name +is unknown. +.El +.Sh SEE ALSO +.Xr rtld 1 +.Sh HISTORY +The +.Nm +function first appeared in +.Fx 15.0 . From nobody Thu Nov 7 05:20:38 2024 X-Original-To: dev-commits-src-all@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 4XkVlX1w1gz5cNHr; Thu, 07 Nov 2024 05:20:40 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkVlV4NMcz55H8; Thu, 7 Nov 2024 05:20:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956838; 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=VqyRKdAkHosStlwj3hJKbM8NAx5OOY+ye77oCytZEK4=; b=wWXlnkuynhI0oqzbp15of0BSWWS6njh/HlYH3bFkOcaKbLIm9wuCaYLI6E1nxyXGbeepBc v/eMBN3YPEF5/MsH7SOOvtMIP2K7bA0GAPsa3rIB7LTvMMTkCLKT68GSUt7iAdInDexPIf NSwNz2mSvIKqtnwrtQiXQVPyOSGteTnCL4JW7LZnJ+0U47YdwxbSJ1rVTzACz4hVlmoZLL 8q515lF06Eo7yW0vzhU3JGrLKVy65BAsFVOHi0nD0t6rwMedCuKSOrZsRIgpl0hjb2kXrz 5loutzz9GprV8ENVquHwFN0mV59XiELqecsC7K5Xnz9/BJ7tn4kuvHYdbln/iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730956838; 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=VqyRKdAkHosStlwj3hJKbM8NAx5OOY+ye77oCytZEK4=; b=Bjl622KtPuCB0WUrAQrntY7TbGNc0Nz9fv6/IvYdDFwM6feGOz/1e0FJqmX/Fon77PFznw /JtN25PjKjal/6XtcJoMaT7x4BVHpI9CHcrh2Bd+G9ZAtksYgDEZ15mAi8/cdAZFuJem+6 MAJtHByvthBVaHIG+OeRdtFdy4ER5oIicNE/MzGha3NU7Hev0e8lueubCyvAoFe3ppeFVO CT1QzdICWdQmS5lNeeiXmGp4/NVoRatmMBvEHM1belxEHlYguDjc7RBNpeXMGIF5iePsVs 6O66NAP4oU2BDW5X7K2xE7POV+Q+0kxSTNmYDpFhOlGrAWi9S/lJBsoJRum5Qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730956838; a=rsa-sha256; cv=none; b=KGB/rImU0WW4prJIXvGRJmVRmWKTFKPO5yxiM6MK8Uvt3lWhfaLShWYRyGKLqaHbSVX7mw j20exGX+iydJXvuNQnuQG/z+vF7qCze8qtyniVJXpmAn+GU6MBBgItL/TjSBU8s3W7h7oB +bTxpuD8039rpp5wyMda00TYAkQ2zA5fuWMnEkHgpOGUIbS6LgS0Iy1aBcJMC9uEeMtCgA 6stobBqw2nBnu9vO6JkFcG6F0gejjow3QoLoBACsI5Y6gDMhEE9SRI8IL7/PKhYABVAv04 +2yBvhsQbcA2uRYgT3mbELjPDo+CnrvM09vaFUParP5voF/vuqNFtoIHBqRmFQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkVlV2z8KzXtf; Thu, 7 Nov 2024 05:20:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A75KcSU014694; Thu, 7 Nov 2024 05:20:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A75KcVr014691; Thu, 7 Nov 2024 05:20:38 GMT (envelope-from git) Date: Thu, 7 Nov 2024 05:20:38 GMT Message-Id: <202411070520.4A75KcVr014691@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 16d000bdac54 - main - rtld.1: cross-reference rtld_get_var.3 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 16d000bdac54d7153f33a0d050bcc4307b702751 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=16d000bdac54d7153f33a0d050bcc4307b702751 commit 16d000bdac54d7153f33a0d050bcc4307b702751 Author: Konstantin Belousov AuthorDate: 2024-10-31 20:20:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-07 05:15:30 +0000 rtld.1: cross-reference rtld_get_var.3 Reviewed by: Alexander Ziaee Discussed with: emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47351 --- libexec/rtld-elf/rtld.1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libexec/rtld-elf/rtld.1 b/libexec/rtld-elf/rtld.1 index 5631c28e1f84..62e4fc5676c2 100644 --- a/libexec/rtld-elf/rtld.1 +++ b/libexec/rtld-elf/rtld.1 @@ -138,6 +138,15 @@ all the environment variables listed below, but is being prefixed with for example: .Ev LD_32_TRACE_LOADED_OBJECTS . If the activated image is setuid or setgid, the variables are ignored. +.Pp +The run-time linker is able to access the environment provided +at process startup. +After startup, environment variables are maintained by higher-level +libraries and are not accessible by the run-time linker. +At run-time, effective settings can be queried using +.Xr rtld_get_var 3 , +and some of them can be changed with +.Xr rtld_set_var 3 . .Bl -tag -width ".Ev LD_LIBMAP_DISABLE" .It Ev LD_DUMP_REL_POST If set, @@ -527,6 +536,7 @@ The libmap configuration file for 32-bit binaries on 64-bit system. .Xr ld 1 , .Xr ldd 1 , .Xr dlinfo 3 , +.Xr rtld_get_var 3 , .Xr capsicum 4 , .Xr elf 5 , .Xr libmap.conf 5 , From nobody Thu Nov 7 06:16:29 2024 X-Original-To: dev-commits-src-all@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 4XkWzy0JK0z5cRJL; Thu, 07 Nov 2024 06:16:30 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkWzx6vdRz3y0y; Thu, 7 Nov 2024 06:16:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730960190; 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=Lwwyos9KmGoYoncYEM4muQCdJAFR9VxiMyeMZhwBICs=; b=nvQtAxGd7QgylljVqFP1xkyaLffC7G5J0KwwChTs5hkkc60utcV+ChkNbZPfY0+K1Z83PK y+whqt7YX6b9Xo5MRQSNV0ZDguqVxleKGelK/p/c7VBZpa5fyQsKZS3t/sY2JHTqhQRNzt U1npri6uwJ3yY7UhL+lP5Gyd+9zGhagQje3Avff9a4YT9e6JVeV54FlGTnNvff4q/+4+JG wVGftbpAt5fUmyork7YftY6c6sqIKj5ESvJ7bx88r10KA4OJzFvPeGr0lf9Sa18waSLgyZ 9gnBQfWuu/ycIfvXv+PUlv48hjfHYXUYcku+Fxml1/xgFqvSO1P6pbnNhEr4ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730960190; 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=Lwwyos9KmGoYoncYEM4muQCdJAFR9VxiMyeMZhwBICs=; b=puqTGm3XZYRfYvUHTH5C/N1wIxe9dB3gYDFbgHqffU8VcrQFzXOXftTtz2Tq1UhW6nyA4X EJUopFTB2OpryaZ9kiCyHQo+4lhXI7c9ktt/8TZ8KRCy445hnYuILoY3Hq1HQr0Ma+8jXv 5D4nZgFQPdaB3uX/12/AN95wlOexNL0Z3ks/txFM4ovssRi/R7BbGXEqCgMLm1KVaVuIKE HA2QFkr+gicXxBtMRAXV0BX4d2xvx3O2VWWuS1ccbyDIIPY2/c4loonGN7SZSMAa+wtuPd qR5h9TOzM7iKxpG3iKEbhU5Cabeu4+fo2u2b2B69q98DhtaZENNYZnJhOWjJHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730960190; a=rsa-sha256; cv=none; b=hKjWWLizbeRyU+LsRSIjr3mec3q/MEB/fsXFWZrMYL31vK2Bwaz/03EZ3xzn9DytgH6BmE rrwFNledPsr0/ynGkS1dYFZmpw+qzIte4PBeb078pS6UWN6J/ZnpvXbWIRDNSQrNUKT/Ow gO23doZjjI8IsxFuwksQKJp9VYDu/Ic5vgRDu76kLGZOxYYg3buHGVttR1moRrS2xi7yl3 SmMoJaixB9OdGclWckLUpsJ9VvDvs4paORSeLE5vN1IeMnIjANVQ6D0WGZbVAJSHExTucX s+QTK2puG6e3++cMxJ3qVl+EJkBDqu7qH771X7NWSwC7RTiZ76BPMRUOP+9ahw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkWzx6VbPzZGX; Thu, 7 Nov 2024 06:16:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A76GTc8016249; Thu, 7 Nov 2024 06:16:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A76GTjb016246; Thu, 7 Nov 2024 06:16:29 GMT (envelope-from git) Date: Thu, 7 Nov 2024 06:16:29 GMT Message-Id: <202411070616.4A76GTjb016246@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 15853a5fc954 - main - e1000: Improve igb(4) SFP support List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 15853a5fc9548d9805a2ef22f24e2eb580198341 Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=15853a5fc9548d9805a2ef22f24e2eb580198341 commit 15853a5fc9548d9805a2ef22f24e2eb580198341 Author: Kevin Bowling AuthorDate: 2024-11-07 06:02:10 +0000 Commit: Kevin Bowling CommitDate: 2024-11-07 06:10:14 +0000 e1000: Improve igb(4) SFP support * Adds support for SFPs that are not correctly coded as an SFP transceiver. i.e. Coherent-Finisar FCLF8522P2BTL. * Configures multi-rate SFPs i.e. Coherent-Finisar FCLF8522P2BTL as SGMII so they can do 10/100/1000 auto-negotiation. * Adds support for 100BaseLX SGMII transceivers. * Some code cleanup and additional debugging. Reviewed by: emaste, markj, Franco Fichtner Tested by: Natalino Picone MFC after: 2 weeks Sponsored by: Nozomi Networks Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D47337 --- sys/dev/e1000/e1000_82575.c | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/sys/dev/e1000/e1000_82575.c b/sys/dev/e1000/e1000_82575.c index a33aa9eb2903..47b8006314f8 100644 --- a/sys/dev/e1000/e1000_82575.c +++ b/sys/dev/e1000/e1000_82575.c @@ -1686,20 +1686,19 @@ static s32 e1000_get_media_type_82575(struct e1000_hw *hw) break; } - /* do not change link mode for 100BaseFX */ - if (dev_spec->eth_flags.e100_base_fx) - break; - /* change current link mode setting */ ctrl_ext &= ~E1000_CTRL_EXT_LINK_MODE_MASK; - if (hw->phy.media_type == e1000_media_type_copper) + if (dev_spec->sgmii_active) ctrl_ext |= E1000_CTRL_EXT_LINK_MODE_SGMII; else ctrl_ext |= E1000_CTRL_EXT_LINK_MODE_PCIE_SERDES; E1000_WRITE_REG(hw, E1000_CTRL_EXT, ctrl_ext); + break; + default: + DEBUGOUT("e1000_get_media_type_82575 unknown link type\n"); break; } @@ -1750,24 +1749,27 @@ static s32 e1000_set_sfp_media_type_82575(struct e1000_hw *hw) /* Check if there is some SFP module plugged and powered */ if ((tranceiver_type == E1000_SFF_IDENTIFIER_SFP) || - (tranceiver_type == E1000_SFF_IDENTIFIER_SFF)) { + (tranceiver_type == E1000_SFF_IDENTIFIER_SFF)) dev_spec->module_plugged = true; - if (eth_flags->e1000_base_lx || eth_flags->e1000_base_sx) { - hw->phy.media_type = e1000_media_type_internal_serdes; - } else if (eth_flags->e100_base_fx) { - dev_spec->sgmii_active = true; - hw->phy.media_type = e1000_media_type_internal_serdes; - } else if (eth_flags->e1000_base_t) { - dev_spec->sgmii_active = true; - hw->phy.media_type = e1000_media_type_copper; - } else { - hw->phy.media_type = e1000_media_type_unknown; - DEBUGOUT("PHY module has not been recognized\n"); - goto out; - } + else + DEBUGOUT("PHY module is not SFP/SFF %x\n", tranceiver_type); + + if (eth_flags->e1000_base_lx || eth_flags->e1000_base_sx) { + hw->phy.media_type = e1000_media_type_internal_serdes; + DEBUGOUT("PHY module is 1000_base_lxsx\n"); + } else if (eth_flags->e100_base_fx || eth_flags->e100_base_lx) { + dev_spec->sgmii_active = true; + hw->phy.media_type = e1000_media_type_internal_serdes; + DEBUGOUT("PHY module is 100_base_fxlx\n"); + } else if (eth_flags->e1000_base_t) { + dev_spec->sgmii_active = true; + hw->phy.media_type = e1000_media_type_copper; + DEBUGOUT("PHY module is 1000_base_t\n"); } else { hw->phy.media_type = e1000_media_type_unknown; + DEBUGOUT("PHY module has not been recognized\n"); } + ret_val = E1000_SUCCESS; out: /* Restore I2C interface setting */ From nobody Thu Nov 7 08:10:12 2024 X-Original-To: dev-commits-src-all@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 4XkZW83Gl4z5cXvD; Thu, 07 Nov 2024 08:10:12 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkZW82jSrz466x; Thu, 7 Nov 2024 08:10:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730967012; 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=PYnINq8LZ7qc1H5rRuDUCRyYSD2DYkfMsgXtZCF5O74=; b=BaBvSy1s+hCF3/euAlDQvTRgNdrlTeTipSFa1iiFkRaDmJS7WLcXzHF6vH+91mhoeQ4ZBL tGzIL5OUmq6jr3ths8Yv7aJk8X/Zrfpr209J1ZgXPhQbNDjciMmGP1Cz7eKBKejFbwPMXh AtdU8tQvnWG6sv3h2DanROJbUz715vbkW7eX2/Yy8LaAUhp0cJVeKNLVSyW4/3y0zcMHBt Cdq6VsmjTjuRA5o+uqQBY7lgXhrx/HmoioN63TF1xd7Vgr5eKMEIiUNoTtW1Ig261RlpTD Qm4zW9nF2MPIzPlGTIEDEFdXq1VmlKmr1Rfptxo2I+VUWQjo2jMv0R6Q4FYHvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730967012; 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=PYnINq8LZ7qc1H5rRuDUCRyYSD2DYkfMsgXtZCF5O74=; b=cNQq7bNDVuSJp+qwZRF6tXwql5h5jELlSxx2CuO4lH6s+6tABsRx4uJF/vGhYRaPcIAYhe 1277kndaI4K+DdTE2gOCaNU7w5ScdlYrLFMzG1Mh7BE3op180bXgA+kc1kj1NnA67hA0k0 LWmpkDJiXGiCssD1z4TYXzgdOrxUS0+sqQzZU3ylmkWckTFtm7XsCOtkpKlkAYosSTPYGq CmZ7hNLMsews88wgwh7lAHsmTl+XUPD7/iD5fpzLzGNhmLtnJf9AyOK8W7JJKprbLTSBzu hWMFsBJQGBYiP4eyWJ5MiGbhzUzPlXbpC2v5gfwYHcjab5iiARCqyxnF5BKsdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730967012; a=rsa-sha256; cv=none; b=ckiP2VAax5guEbUkw6sz14d5TcC9KB96RYIieqfBkEhAxbyTkbGnDNYE+neG638UuSgBP0 KzDaEGLi1dEt0v/0CyUphiQySjrtayObn1GhCE9XyyE4ZpOSkhmEYBINzVAhqpyAJuUG54 wVWaZ6u3WbY7jJfy43VGGV+Ox1faGJUAH7lMWvFrH6lf3gYQ1s2fD1XYeiPkylpFGH3yP+ i6R8nr3Te5yPHEdWgY/z26Yk2KAnwv/Xf9nhlTvlAaGbfDspx3HwWJz96d6usqTHx5543O 1O1DXej7r2S3OG/IOH8IUhl4iYv1/mrFVSc4kAJNodY2Zlsd31atXogvak7EBw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkZW82Jv5zdN8; Thu, 7 Nov 2024 08:10:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A78ACB5027229; Thu, 7 Nov 2024 08:10:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A78ACXj027217; Thu, 7 Nov 2024 08:10:12 GMT (envelope-from git) Date: Thu, 7 Nov 2024 08:10:12 GMT Message-Id: <202411070810.4A78ACXj027217@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: ea310d18b222 - releng/14.2 - nuageinit: add support for OpenStack network config List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: ea310d18b222047caf6cb07f6bdc37020dc672b6 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=ea310d18b222047caf6cb07f6bdc37020dc672b6 commit ea310d18b222047caf6cb07f6bdc37020dc672b6 Author: Baptiste Daroussin AuthorDate: 2024-10-29 13:17:39 +0000 Commit: Baptiste Daroussin CommitDate: 2024-11-07 08:09:54 +0000 nuageinit: add support for OpenStack network config Add naive support for openstack network config. if no config driver have been found, try to detect that we are running a VM on openstack via the smbios information, use the first iface available and temporary activate dhcp on it, to be able to fetch the necessary informations for cloudinit. While here make the rc script execute after devmatch, some ethernet device might be attached via devmatch and may be needed for cloudinit. Tested on OVHCloud Public Cloud. Approved by: re (cperviva) MFC after: 3 weeks Sponsored by: OVHCloud (cherry picked from commit 2775b9b0bcc278dd4183b57784953c26a3fcdc89) (cherry picked from commit 6c682f5c3860a49cd0440599fffe1106c00ff830) --- libexec/rc/rc.d/nuageinit | 45 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/libexec/rc/rc.d/nuageinit b/libexec/rc/rc.d/nuageinit index a44761ea1d9e..54e5b1fbec07 100755 --- a/libexec/rc/rc.d/nuageinit +++ b/libexec/rc/rc.d/nuageinit @@ -2,7 +2,7 @@ # # PROVIDE: nuageinit -# REQUIRE: mountcritlocal zfs +# REQUIRE: mountcritlocal zfs devmatch # BEFORE: NETWORKING # KEYWORD: firstboot @@ -14,6 +14,18 @@ start_cmd="nuageinit_start" stop_cmd=":" rcvar="nuageinit_enable" +fetch_openstack() +{ + cd /media/nuageinit/openstack/latest + for file in meta_data.json network_data.json user_data; do + fetch http://169.254.169.254/openstack/latest/$file || : + done + if [ -f user_data ]; then + chmod 755 user_data + fi + cd - +} + nuageinit_start() { local citype @@ -34,13 +46,28 @@ nuageinit_start() fi unset drive done - if [ -z "$drive" ]; then - # try to detect networked based instance - err 1 "Impossible to find a cloud init provider" + if [ -n "$drive" ]; then + mkdir -p /media/nuageinit + fs=$(fstyp $drive 2> /dev/null) + mount -t $fs $drive /media/nuageinit + else + product=$(kenv smbios.system.product) + case "$product" in + OpenStack*) + mkdir -p /media/nuageinit/openstack/latest + ifaces=$(ifconfig -l ether) + set -- $ifaces + dhclient -p /tmp/ephemeraldhcp.pid $1 + fetch_openstack + pkill -F /tmp/ephemeraldhcp.pid + citype=config-2 + ;; + *) + # try to detect networked based instance + err 1 "Impossible to find a cloud init provider" + ;; + esac fi - mkdir -p /media/nuageinit - fs=$(fstyp $drive 2> /dev/null) - mount -t $fs $drive /media/nuageinit # according to the specification, the content is either # in the openstack or ec2 directory case "$citype" in @@ -59,8 +86,10 @@ nuageinit_start() esac if [ -n "$drive" ]; then umount /media/nuageinit + rmdir /media/nuageinit + else + rm -rf /media/nuageinit fi - rmdir /media/nuageinit } load_rc_config $name From nobody Thu Nov 7 09:18:43 2024 X-Original-To: dev-commits-src-all@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 4Xkc2C2BJBz5ccFP for ; Thu, 07 Nov 2024 09:18:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkc2C1fTjz4Cbb; Thu, 7 Nov 2024 09:18:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730971123; 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=Xx81arA6AF2cxfTeY8r+CHEVy3YkQbqu6PLBdfWtEj8=; b=VqrLhRyDGkWClBEW/I+yIRNjhL/xcWLqAralJGIdH4oHTA+uSToVCV2x/NRLE3HTigdwyY bsOTjuudC2Hlp7GxdT432hibwfNdfZyi6wZ3ECt9emROkIicO49U2U8oMBfQiJgS89AYPP FZigdSyRyAvonrugkadpxaVzFOPeSZfxOXvHYoBHoGoAQVHoeUxWz4uJ+tqAJI+j+2tyxK YarB+tLRjyJiMybjR221WJa7aSBxGBgTeMAUzUXfLiQeO434w5CGbJA9gP9QEiZNSnaram Ltcs+ALIlJ3VymqTZll4aZJS+fwrGG8uhqgdiGoIAvqDCdLMO7NBK31RAQZRgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730971123; 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=Xx81arA6AF2cxfTeY8r+CHEVy3YkQbqu6PLBdfWtEj8=; b=HxbSZiSFH2fJePKrQQjnuHb2wIW93v7F7rt/U+JukDljmkT3HWNsbhtDvQxvua2aPhobrU Ly3x9axyk6dpJoZzDZx3U6ZEpPSx8jQJFy2paThVsi5c0X8QTScTKymGrqgmziJDHr1cuW KUYmCk726bmjJIv50Fb/rDADMIW2dV3HUAIZ9aqMQthOQviPs59UgqD9CtizU7GmBy7UQo 7jq64MfPnyVsXAcwSWJv2GYXSTOmgK766T2P0HLCW11N1ElgA93A1TYRVl1PhG+HMjLvcN 8on1vTs7TvmLtpvF8nYnOPJd7VXYSolvFTq5vazx3ib5F7/n6p+2JuxNzFVSRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730971123; a=rsa-sha256; cv=none; b=tE2mKWZXgTIlQc0WNsXjIer55CYElWVmxA/7QEiYWyGaYmYgMNYp0AKpMEQcfHvnGRPS/j CQpqudynPWan4E0SdSSO5zdMxgvlHrhaPZ/FdIw72K83ahpuN5FoR8fyatReVEMSAy209y z3cMDDVtEP/8hV6YaG+bc5uzceoGVF/Cznh/nLpKW+UWjTpr62JzqFGLISvfwX8F9OD+jH BTYhmUP+usJLizzeiHi9eVgUys7PCtKLTLXRevCKyMv6jfBz2D5Sk7oKmM65WWx+/y1FCg J1y8ihAHY4EVQiGF7wEt0v/I86mVmt3lHNJZREVsRsNxQdOzy1oPqg6scJcMvA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkc2C17y0zgCC; Thu, 7 Nov 2024 09:18:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A79IhKC052427; Thu, 7 Nov 2024 09:18:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A79IhD1052424; Thu, 7 Nov 2024 09:18:43 GMT (envelope-from git) Date: Thu, 7 Nov 2024 09:18:43 GMT Message-Id: <202411070918.4A79IhD1052424@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Kristof Provost Subject: git: b7d2efd36fcf - internal/admin - Welcome Kajetan Staszkiewicz as a new src committer List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/internal/admin X-Git-Reftype: branch X-Git-Commit: b7d2efd36fcf30fc663953d7c66bd4e378d14bc8 Auto-Submitted: auto-generated The branch internal/admin has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=b7d2efd36fcf30fc663953d7c66bd4e378d14bc8 commit b7d2efd36fcf30fc663953d7c66bd4e378d14bc8 Author: Kristof Provost AuthorDate: 2024-11-07 09:07:20 +0000 Commit: Kristof Provost CommitDate: 2024-11-07 09:17:43 +0000 Welcome Kajetan Staszkiewicz as a new src committer Kajetan has a long track record of fixing things in pf. I will mentor. Approved by: srcmgr --- access | 1 + mentors | 1 + 2 files changed, 2 insertions(+) diff --git a/access b/access index 026764edab80..28d8f55389a1 100644 --- a/access +++ b/access @@ -97,6 +97,7 @@ kevlo khng kib kp +ks lstewart luporl lwhsu diff --git a/mentors b/mentors index 9261c10fa519..044a2e47be46 100644 --- a/mentors +++ b/mentors @@ -17,6 +17,7 @@ def oshogbo igoro markj Co-mentor: kp jfree imp Co-mentor: markj jlduran emaste +ks kp oh manu olce emaste Co-mentor: markj osamaabb cperciva Co-mentor: akiyano From nobody Thu Nov 7 09:47:17 2024 X-Original-To: dev-commits-src-all@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 4Xkcg94MCRz5cdYF; Thu, 07 Nov 2024 09:47:17 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkcg93vSTz4HYb; Thu, 7 Nov 2024 09:47:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972837; 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=FMcgeOFIPFRGi/YpjcaVPAQvtIdEQC1O9Ew34qEHueo=; b=b3h+ptKju/2NXHn9zAH1/iHvtcWGzvCjZrVCnUbXQ0MkluBjC/cWbCIdKbJ+2MuAHPvRfI ZHT6fAR21HYxlTUg2sHI+rXzP1fw6eS9lE27ztij8ZUlEwR7tHE8VNFy5J3P3AbxlhH87/ UchGqJHRQDPZzp+iugrIgHWFDTNsw72KP7zrETt8ypGfQ0FczjUe61bmgMwc3MmXJekbIe sQz5DVpsLYgejqCBurYJChJ4g9IbUwy5XEMcXX33dK+4u7yydyxGj4iu10fOd6AvMr/tX7 S+ATQSozzbu5R7MNFMRx5DelYlqzm6iAInJqSYY8r76PdKBJWzlinyATxN4/Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972837; 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=FMcgeOFIPFRGi/YpjcaVPAQvtIdEQC1O9Ew34qEHueo=; b=kDTz7HfsBrpNsVDhQ7RaUt5WeJMnE1NNog+kxd0Sk4ylnu2LX2q/eGjTOC83QDBh6Q0GZ3 5K1Mtzg78RDTIR0/bwrgcls4deWNmFYNO+SUOMAfWyOL8fXwVpFD+Uftnf4WsUM2C9xX9S fF2EnkATHeKjEtCjTlkL1rp44o9FbKUuR4S3Tbem575MpuXHo6biVhS8TKxCaeiC6FmL/5 TdXnPPvlaSHGbq1tMVZ1UByG6/Zb8FRXdTeNJ/QfNb2CoFbauMqjKMzAAyS2QTt8CqJTTQ /Oyq/tsGOxLrKDW/u/+KCyN50oM59KcG7z8737b1zDBuV6AQkwfJMq68hlQJhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730972837; a=rsa-sha256; cv=none; b=G90k2L+EwpfuLvvD+Z05bP2J4M0Ip7aAjBSDyfrs90ig+XJjVoqDSIGm8iFPTE7nCsYd6x zYMDGwG2DhGoY+HtiTjGJ7iX4lr9sV1bPjoE8HlZDNdjg2ezuug7+XY9mPnf6yaC0u/1o4 aKtWgzhzALE1fW98FBqGt3NV2tYUNl7D69vmMd7oSZpBY8ptjYTngoIjG9ktk9gGsxT5DT sPHqYn64UL6QUlAtVhfwzmC5l5V0FMnfLIfuihKfFubDLjteklPlNX/BJu7jubpcPL1CcO 3a8VkuqQX/VnIXhRvNX0Oq0DigAdzmJQHkr5M7XxRVbDD3m+VGREmSPxiu3bEw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkcg93WDyzgtt; Thu, 7 Nov 2024 09:47:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A79lHch010057; Thu, 7 Nov 2024 09:47:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A79lH9u010054; Thu, 7 Nov 2024 09:47:17 GMT (envelope-from git) Date: Thu, 7 Nov 2024 09:47:17 GMT Message-Id: <202411070947.4A79lH9u010054@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 33197f22b5c5 - releng/14.2 - sctp: editorial cleanup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 33197f22b5c5b220d7849993f56afa96fdd98b18 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=33197f22b5c5b220d7849993f56afa96fdd98b18 commit 33197f22b5c5b220d7849993f56afa96fdd98b18 Author: Michael Tuexen AuthorDate: 2024-11-02 15:00:59 +0000 Commit: Michael Tuexen CommitDate: 2024-11-07 00:01:23 +0000 sctp: editorial cleanup Improve consistency, no functional change intended. (cherry picked from commit d839cf2fbb47c52d5153fb366c51bd6f6a3dd0fd) (cherry picked from commit 107704217b5733a2cae4e0fa1940f7ac66780f84) Approved by: re (cperviva) --- sys/netinet/sctp_pcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 0030c5385390..b7b531ab33ab 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -312,7 +312,7 @@ sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, } } - sctp_ifap->localifa_flags &= (~SCTP_ADDR_VALID); + sctp_ifap->localifa_flags &= ~SCTP_ADDR_VALID; sctp_ifap->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE; out: SCTP_IPI_ADDR_RUNLOCK(); @@ -354,7 +354,7 @@ sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, } } - sctp_ifap->localifa_flags &= (~SCTP_ADDR_IFA_UNUSEABLE); + sctp_ifap->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE; sctp_ifap->localifa_flags |= SCTP_ADDR_VALID; out: SCTP_IPI_ADDR_RUNLOCK(); From nobody Thu Nov 7 09:47:18 2024 X-Original-To: dev-commits-src-all@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 4XkcgB5JvNz5cdMQ; Thu, 07 Nov 2024 09:47:18 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkcgB4Yr1z4HYc; Thu, 7 Nov 2024 09:47:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972838; 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=6Exen8PFiR/N/pwzHERJOG20ZwtRVR7v5hE/gB88SHU=; b=BztM/GOTqWPtvlXNURQvnX8uskRAht49NlMp5vR99n6U58KDYLCNliIV6scV7w/jcAOc65 izNhCldVYyF7PX4ELR8JUuPBB1jhbDI61zmVcQrGyYePZU5EHMR3LYjaLA6oVLt8nqyosj aM9bP+VfWjtaVWCYFc57fo9xNbiZrA2t/EELxLJVTnXVGlxFNBLmKBsl4l4eoJg9M1B6jy /tQfJg0Hd9XRkbWBtWMSgxRyV52FqXjjSv/MR+Sa4bihyDg/pq0AE6hjoW7Ym0Aric2whP prEofValJ23iwoXXTqianJm+WbewT3M19FBlCKDcc3i/cxJPnTkiJRZejChYnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972838; 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=6Exen8PFiR/N/pwzHERJOG20ZwtRVR7v5hE/gB88SHU=; b=jqkZe8fup4PzhgE+EpJ9cPoP2zDnD6eugbNUuOl0mmBq0TyeGlY0XQANiaXJMPJdL7xH12 RHQBSGBPKWf2BpSNGQoTAENb4AmX2sVE/YbBlKhPvndY23sLI4Ji+rlaKhhKuPqOca5i+e OtYhje9qEVClRJ6fkI1SPysXSJUJkuMW8o1wrW/UzCoLQB+5V+0+Tl8O8Z+Ghe3uazoZao DY4NTQYscn0/ihpyy2kk2fNIHcv/vlTASPpzaSJaJJrP7Fr8ENpo3vLgPuLXkjdmR/IJHF sjg8g3r3kZJDVaX0/tdRM9N0OZ/DsmmVMwNx1zZIXEv5LE1cGC7V3yiOCkh9qw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730972838; a=rsa-sha256; cv=none; b=O7L5xE7ZXrufgSv6XGsq7eLj5dsrMHVYJSabxvxiJ8J90si1gtGayfJg4/Hha9CJFgUdGX baPu7ge0Nyhj7sdYILH108ySKe03zSlJKmWiwbX5iGOYDBqgARwaucU31iF1W/U5LiXww4 VSf0TACqpttyZc4uuwKP8vTvJtAoCaaH/H1IgPD3FhILWpRulRx8T6E0Zheqypg+F0fHVK I8O0o4b4dotCqQcPR2pF+Ml9tAAFAT/gha4WXN27/rYQvQWSBhvsFNKJtnKVE8mJoU0hx4 azIKoKD8tGPhixthp+2bBEMtbbW45uF2SxmonygsfnEMvfsFN2kOgUrIddigdQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkcgB49J9zgSJ; Thu, 7 Nov 2024 09:47:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A79lICp010134; Thu, 7 Nov 2024 09:47:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A79lIAj010128; Thu, 7 Nov 2024 09:47:18 GMT (envelope-from git) Date: Thu, 7 Nov 2024 09:47:18 GMT Message-Id: <202411070947.4A79lIAj010128@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: bb6af83fe47b - releng/14.2 - sctp: don't consider the interface name when removing an address List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: bb6af83fe47b88a60926bda73e87e4d40dfe19a9 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=bb6af83fe47b88a60926bda73e87e4d40dfe19a9 commit bb6af83fe47b88a60926bda73e87e4d40dfe19a9 Author: Michael Tuexen AuthorDate: 2024-11-02 15:33:02 +0000 Commit: Michael Tuexen CommitDate: 2024-11-07 00:02:12 +0000 sctp: don't consider the interface name when removing an address Checking the interface name can not be done consistently, so don't do it. (cherry picked from commit bf11fdaf0d095fecca61fa8b457d06e27fae5946) (cherry picked from commit 66628552a38751ed5c395858d1754660557674cd) Approved by: re (cperviva) --- sys/netinet/sctp_bsd_addr.c | 3 +-- sys/netinet/sctp_pcb.c | 27 +++------------------------ sys/netinet/sctp_pcb.h | 2 +- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/sys/netinet/sctp_bsd_addr.c b/sys/netinet/sctp_bsd_addr.c index a91b0dde5967..3c6952ab6f3c 100644 --- a/sys/netinet/sctp_bsd_addr.c +++ b/sys/netinet/sctp_bsd_addr.c @@ -338,8 +338,7 @@ sctp_addr_change(struct ifaddr *ifa, int cmd) (void *)ifa, ifa->ifa_addr, ifa_flags, 1); } else { sctp_del_addr_from_vrf(SCTP_DEFAULT_VRFID, ifa->ifa_addr, - ifa->ifa_ifp->if_index, - ifa->ifa_ifp->if_xname); + ifa->ifa_ifp->if_index); /* * We don't bump refcount here so when it completes the diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index b7b531ab33ab..cd5479c11e6a 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -662,8 +662,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, */ SCTPDBG(SCTP_DEBUG_PCB4, "Lost an address change?\n"); /* Opps, must decrement the count */ - sctp_del_addr_from_vrf(vrf_id, addr, ifn_index, - if_name); + sctp_del_addr_from_vrf(vrf_id, addr, ifn_index); return (NULL); } SCTP_INCR_LADDR_COUNT(); @@ -688,7 +687,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, void sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, - uint32_t ifn_index, const char *if_name) + uint32_t ifn_index) { struct sctp_vrf *vrf; struct sctp_ifa *sctp_ifap; @@ -709,27 +708,7 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap != NULL) { /* Validate the delete */ if (sctp_ifap->ifn_p) { - bool valid = false; - - /*- - * The name has priority over the ifn_index - * if its given. - */ - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) == 0) { - /* They match its a correct delete */ - valid = true; - } - } - if (!valid) { - /* last ditch check ifn_index */ - if (ifn_index == sctp_ifap->ifn_p->ifn_index) { - valid = true; - } - } - if (!valid) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s does not match addresses\n", - ifn_index, ((if_name == NULL) ? "NULL" : if_name)); + if (ifn_index != sctp_ifap->ifn_p->ifn_index) { SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s - ignoring delete\n", sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_name); SCTP_IPI_ADDR_WUNLOCK(); diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 86c244c71544..1249c2233c63 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -510,7 +510,7 @@ void sctp_free_ifa(struct sctp_ifa *sctp_ifap); void sctp_del_addr_from_vrf(uint32_t vrfid, struct sockaddr *addr, - uint32_t ifn_index, const char *if_name); + uint32_t ifn_index); struct sctp_nets *sctp_findnet(struct sctp_tcb *, struct sockaddr *); From nobody Thu Nov 7 09:47:19 2024 X-Original-To: dev-commits-src-all@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 4XkcgC67Ywz5cdqc; Thu, 07 Nov 2024 09:47:19 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkcgC55bRz4HbN; Thu, 7 Nov 2024 09:47:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972839; 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=6axVbbtfSeV7k/1qK8DQsCTcD9Jf7FZicMPAXxBVw3Y=; b=Uuu4QqDdHoFa926585QIVHsBIjdlqjOclvUgTL/cPoMuQQ8qoBPAFxM2Kr+wS41f0uSlud OAt3QjKqVV8PCK55H+3wNsE4QhXu7SIJcBqa9FNBm0nlc8PgmB2qhDr55rVtw4MBlaIw5e SfAM7nteS/QiNCT6egTH0l0+wJnQF0S6C/AQ2aSE3u9AxCzMNTN/hzgYPRoPuhmC/7TqWL Nk2RlG/NsUgoUcYbVGSYAVoD8U1eGua64LHvydXuzGN7bu4YgvKzYyM9OCUK3hu0nzzWwB g15L2gNzOUlYIvA8sebRhkYrHaR42oJDw7bLY3U5Y0Hj/KosxMc3HB0xHvK0Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972839; 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=6axVbbtfSeV7k/1qK8DQsCTcD9Jf7FZicMPAXxBVw3Y=; b=Hpkph+ZvB8w8WFypyBWRYcdQLtRDnHTLKASQyWDYQa9fzyQEuJGalZMbg29l1Un2q1mOz4 YQ/UNlNzCk0K2ksm3BKElwkwbjxpgR0VFZc2b+oiauwlDVeLtA5e26/aGXeg0r2gS/lSY/ YaCDeQ9hVceu68Xa29z3YJDEKOEvP2jYhLg0k6/vlDZgFHfU3ZJYtLZ3rNAAkEm7NRSdkk TGSxpO3Y54JJJdicf3o8S7lNdqagPCMxxbPzQHKTGNJRjc3nu6+yJ9GEcYfT1Ja365XZVT a82Ccsz1kCTM9mTC/9GdmPVFksbLdF7qUBR6NKXYNNhADO13XqA8kbIVz1FwYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730972839; a=rsa-sha256; cv=none; b=ZxGFraUcOoq7kPZxosGYZmdLMw7EWmEfpTgxSvuulp4hQRA5Dh2J4tDLHysEkO/lzRWUR9 YzNMghAPZfj+d3vXLiIbHNjf7xmGyjAiD1YXi9GWeSTGBMz2SfP6rMRGI0lwgletjfGTIJ NmqyIThRdQpYLkfT/qM+9Luh/OcfssMusLMPLHFtDXwLPGraHBS3x0IpDgD/r7LrMFZLSU aU4FjyMmhkG4wFgcAcwwjaQr+x+1aQmjTtQaCJMZY6TlJXvCSPDaG1kW0T+ShvrjudyG3c bph0zOjrmVwZmuM0N19e81R8OK/BYRCd6G3c4nRgW+b1hO8YZQ1JSWDdg40G6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkcgC4gYyzgk0; Thu, 7 Nov 2024 09:47:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A79lJL5010185; Thu, 7 Nov 2024 09:47:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A79lJFs010182; Thu, 7 Nov 2024 09:47:19 GMT (envelope-from git) Date: Thu, 7 Nov 2024 09:47:19 GMT Message-Id: <202411070947.4A79lJFs010182@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 2a6bd6e37b47 - releng/14.2 - sctp: garbage collect two unused functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 2a6bd6e37b472cee98873014ce58cddd947db148 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=2a6bd6e37b472cee98873014ce58cddd947db148 commit 2a6bd6e37b472cee98873014ce58cddd947db148 Author: Michael Tuexen AuthorDate: 2024-11-02 16:58:09 +0000 Commit: Michael Tuexen CommitDate: 2024-11-07 00:02:33 +0000 sctp: garbage collect two unused functions (cherry picked from commit 470a63cde4285ea4a317b0bba966514c11f4ed5b) (cherry picked from commit e3f26ce52b71d4005e666ced22c0855dbc70b28e) Approved by: re (cperviva) --- sys/netinet/sctp_pcb.c | 84 -------------------------------------------------- sys/netinet/sctp_pcb.h | 12 -------- 2 files changed, 96 deletions(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index cd5479c11e6a..5f21b2b3d0e4 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -276,90 +276,6 @@ sctp_delete_ifn(struct sctp_ifn *sctp_ifnp) sctp_free_ifn(sctp_ifnp); } -void -sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, - const char *if_name, uint32_t ifn_index) -{ - struct sctp_vrf *vrf; - struct sctp_ifa *sctp_ifap; - - SCTP_IPI_ADDR_RLOCK(); - vrf = sctp_find_vrf(vrf_id); - if (vrf == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find vrf_id 0x%x\n", vrf_id); - goto out; - } - sctp_ifap = sctp_find_ifa_by_addr(addr, vrf->vrf_id, SCTP_ADDR_LOCKED); - if (sctp_ifap == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find sctp_ifap for address\n"); - goto out; - } - if (sctp_ifap->ifn_p == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA has no IFN - can't mark unusable\n"); - goto out; - } - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) != 0) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFN %s of IFA not the same as %s\n", - sctp_ifap->ifn_p->ifn_name, if_name); - goto out; - } - } else { - if (sctp_ifap->ifn_p->ifn_index != ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA owned by ifn_index:%d down command for ifn_index:%d - ignored\n", - sctp_ifap->ifn_p->ifn_index, ifn_index); - goto out; - } - } - - sctp_ifap->localifa_flags &= ~SCTP_ADDR_VALID; - sctp_ifap->localifa_flags |= SCTP_ADDR_IFA_UNUSEABLE; -out: - SCTP_IPI_ADDR_RUNLOCK(); -} - -void -sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, - const char *if_name, uint32_t ifn_index) -{ - struct sctp_vrf *vrf; - struct sctp_ifa *sctp_ifap; - - SCTP_IPI_ADDR_RLOCK(); - vrf = sctp_find_vrf(vrf_id); - if (vrf == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find vrf_id 0x%x\n", vrf_id); - goto out; - } - sctp_ifap = sctp_find_ifa_by_addr(addr, vrf->vrf_id, SCTP_ADDR_LOCKED); - if (sctp_ifap == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "Can't find sctp_ifap for address\n"); - goto out; - } - if (sctp_ifap->ifn_p == NULL) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA has no IFN - can't mark unusable\n"); - goto out; - } - if (if_name) { - if (strncmp(if_name, sctp_ifap->ifn_p->ifn_name, SCTP_IFNAMSIZ) != 0) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFN %s of IFA not the same as %s\n", - sctp_ifap->ifn_p->ifn_name, if_name); - goto out; - } - } else { - if (sctp_ifap->ifn_p->ifn_index != ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "IFA owned by ifn_index:%d down command for ifn_index:%d - ignored\n", - sctp_ifap->ifn_p->ifn_index, ifn_index); - goto out; - } - } - - sctp_ifap->localifa_flags &= ~SCTP_ADDR_IFA_UNUSEABLE; - sctp_ifap->localifa_flags |= SCTP_ADDR_VALID; -out: - SCTP_IPI_ADDR_RUNLOCK(); -} - /*- * Add an ifa to an ifn. * Register the interface as necessary. diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 1249c2233c63..736972c007d8 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -487,18 +487,6 @@ struct sctp_vrf *sctp_allocate_vrf(int vrfid); struct sctp_vrf *sctp_find_vrf(uint32_t vrfid); void sctp_free_vrf(struct sctp_vrf *vrf); -/*- - * Change address state, can be used if - * O/S supports telling transports about - * changes to IFA/IFN's (link layer triggers). - * If a ifn goes down, we will do src-addr-selection - * and NOT use that, as a source address. This does - * not stop the routing system from routing out - * that interface, but we won't put it as a source. - */ -void sctp_mark_ifa_addr_down(uint32_t vrf_id, struct sockaddr *addr, const char *if_name, uint32_t ifn_index); -void sctp_mark_ifa_addr_up(uint32_t vrf_id, struct sockaddr *addr, const char *if_name, uint32_t ifn_index); - struct sctp_ifa * sctp_add_addr_to_vrf(uint32_t vrfid, void *ifn, uint32_t ifn_index, uint32_t ifn_type, From nobody Thu Nov 7 09:47:20 2024 X-Original-To: dev-commits-src-all@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 4XkcgF0kJXz5cdMS; Thu, 07 Nov 2024 09:47:21 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkcgD6QMBz4Hs1; Thu, 7 Nov 2024 09:47:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972840; 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=oHSA/43WMjQLx4v6XaInbW9q7TpcGOoFQYY0SPWpkPM=; b=fk6nW+SASpanvrNT0DFcXX6nkIC5IlYxHqK3egVM8ZalZo1URHoZf++TFez2s/2W3xUyZN as0vuktYxu3R2YXJ1MO9M1FNqhmiKDsZRTE0jLWHl0oxdA5a2CEPNyJ/2baQIAE9KbzdQn PLhr3H/W4o5zQlloTXYn3FfyaZTTQZMltQCOVNQ/XfwO3zSu2+VnuytqiHXqI08r0gc+eC N6Bsv5RJ9eIF/2Q49oC4q7yaCw/LNX5/LPWsIBnPB2SHo8yYF8AeSMQH3d8XtCPjLYGUQB CeNI8YY7F2KjHbTiNY0jiDRmJ81THRSrILfN6k6y51OWXrV3sov11E1DBUbS1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972840; 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=oHSA/43WMjQLx4v6XaInbW9q7TpcGOoFQYY0SPWpkPM=; b=lhK9SBpFWM8mZHTw3u82eJAiv00FraaFOaAWvTz493+CS1ErFJD9/wp/BmJ/CgXQHpKD27 1X0lL286Rq+V3Yw1iaL49u/FnvEY45WnTPnMggoPCaq3pMJZdRWuoyosD6531pz3gEjU1h evkDsGC1C3L0dyU1lhqs0hGpcRmKQyJlrsnvuGgY41zCj0r0gFDhFyFnnXqW6OmfPRDlA0 49AEIvWXrk236MNniyaQI1sau+2uXSerhOHcoVdjBfdfN6r8N2L4qOgECA8p1phOZbRCQr rJlIZakCvUL8+Uwf0QpKc9tqTC4GPimCWVDidRRsU6urKpze7MSnweLpLtGb1A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730972840; a=rsa-sha256; cv=none; b=wE4gbRTupbq2DxC/bo0+KX/R6kk4fH2bwCRnHP3dKU0v9zwTjj/cvczEqEGLO3cqBkLOhu duWhmL496Ma06Tl6k8bglcs29JB2drlq3a68MkLguIMZHB2D7V1hjRAHOcDK9rrgeQVNPF jhMuTh2nL2zXaUzS0+LFo29b+m8n/eaxWrRRReGll5bzCdtPdOx1qU9ORe1wyEcChv4wUB nmR/HocsbN7HHy7IshxkSLg0uVT9wZdiVBOdr8FzF54ugrN9eXMLZuSzD2HuJxqH6kcaRz ojX77hU9F/PPAfum0WdrzKTBYgLyV17tJ4JXpDVcdOPur5EnRPVe27sPtVTL+w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkcgD61Wlzgk1; Thu, 7 Nov 2024 09:47:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A79lKUG010232; Thu, 7 Nov 2024 09:47:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A79lKqY010229; Thu, 7 Nov 2024 09:47:20 GMT (envelope-from git) Date: Thu, 7 Nov 2024 09:47:20 GMT Message-Id: <202411070947.4A79lKqY010229@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: a0bc4ec08bef - releng/14.2 - sctp: improve handling of address changes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: a0bc4ec08bef381dc5005338d77caf301e585bf3 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=a0bc4ec08bef381dc5005338d77caf301e585bf3 commit a0bc4ec08bef381dc5005338d77caf301e585bf3 Author: Michael Tuexen AuthorDate: 2024-11-03 09:20:08 +0000 Commit: Michael Tuexen CommitDate: 2024-11-07 00:02:52 +0000 sctp: improve handling of address changes Identify interfaces consistenly by the pair of the ifn pointer and the index. This avoids a use after free when the ifn and or index was reused. Reported by: bz, pho, and others (cherry picked from commit 523913c94371ab50a8129cbab820394d25f7a269) (cherry picked from commit 331db93815afb49b01f269aeff0fe899acd47455) Approved by: re (cperviva) --- sys/netinet/sctp_bsd_addr.c | 1 + sys/netinet/sctp_pcb.c | 23 +++++++++++++---------- sys/netinet/sctp_pcb.h | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/sys/netinet/sctp_bsd_addr.c b/sys/netinet/sctp_bsd_addr.c index 3c6952ab6f3c..a10fbcc5ca40 100644 --- a/sys/netinet/sctp_bsd_addr.c +++ b/sys/netinet/sctp_bsd_addr.c @@ -338,6 +338,7 @@ sctp_addr_change(struct ifaddr *ifa, int cmd) (void *)ifa, ifa->ifa_addr, ifa_flags, 1); } else { sctp_del_addr_from_vrf(SCTP_DEFAULT_VRFID, ifa->ifa_addr, + (void *)ifa->ifa_ifp, ifa->ifa_ifp->if_index); /* diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 5f21b2b3d0e4..ab120fc951b1 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -193,12 +193,11 @@ sctp_find_ifn(void *ifn, uint32_t ifn_index) struct sctp_ifnlist *hash_ifn_head; SCTP_IPI_ADDR_LOCK_ASSERT(); + KASSERT(ifn != NULL, ("sctp_find_ifn(NULL, %u) called", ifn_index)); hash_ifn_head = &SCTP_BASE_INFO(vrf_ifn_hash)[(ifn_index & SCTP_BASE_INFO(vrf_ifn_hashmark))]; LIST_FOREACH(sctp_ifnp, hash_ifn_head, next_bucket) { - if (sctp_ifnp->ifn_index == ifn_index) { - break; - } - if (ifn != NULL && sctp_ifnp->ifn_p == ifn) { + if (sctp_ifnp->ifn_index == ifn_index && + sctp_ifnp->ifn_p == ifn) { break; } } @@ -439,7 +438,8 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, if (sctp_ifap != NULL) { /* The address being added is already or still known. */ if (sctp_ifap->ifn_p != NULL) { - if (sctp_ifap->ifn_p->ifn_index == ifn_index) { + if (sctp_ifap->ifn_p->ifn_index == ifn_index && + sctp_ifap->ifn_p->ifn_p == ifn) { SCTPDBG(SCTP_DEBUG_PCB4, "Using existing ifn %s (0x%x) for ifa %p\n", sctp_ifap->ifn_p->ifn_name, ifn_index, @@ -578,7 +578,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, */ SCTPDBG(SCTP_DEBUG_PCB4, "Lost an address change?\n"); /* Opps, must decrement the count */ - sctp_del_addr_from_vrf(vrf_id, addr, ifn_index); + sctp_del_addr_from_vrf(vrf_id, addr, ifn, ifn_index); return (NULL); } SCTP_INCR_LADDR_COUNT(); @@ -603,7 +603,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, void sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, - uint32_t ifn_index) + void *ifn, uint32_t ifn_index) { struct sctp_vrf *vrf; struct sctp_ifa *sctp_ifap; @@ -624,9 +624,12 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap != NULL) { /* Validate the delete */ if (sctp_ifap->ifn_p) { - if (ifn_index != sctp_ifap->ifn_p->ifn_index) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s - ignoring delete\n", - sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_name); + if (ifn_index != sctp_ifap->ifn_p->ifn_index || + ifn != sctp_ifap->ifn_p->ifn_p) { + SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (p) ifname:%s - ignoring delete\n", + sctp_ifap->ifn_p->ifn_index, + sctp_ifap->ifn_p->ifn_p, + sctp_ifap->ifn_p->ifn_name); SCTP_IPI_ADDR_WUNLOCK(); return; } diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h index 736972c007d8..2bec2bc32d4e 100644 --- a/sys/netinet/sctp_pcb.h +++ b/sys/netinet/sctp_pcb.h @@ -498,7 +498,7 @@ void sctp_free_ifa(struct sctp_ifa *sctp_ifap); void sctp_del_addr_from_vrf(uint32_t vrfid, struct sockaddr *addr, - uint32_t ifn_index); + void *ifn, uint32_t ifn_index); struct sctp_nets *sctp_findnet(struct sctp_tcb *, struct sockaddr *); From nobody Thu Nov 7 09:47:21 2024 X-Original-To: dev-commits-src-all@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 4XkcgG22WRz5cdsP; Thu, 07 Nov 2024 09:47:22 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkcgG00VFz4Hhx; Thu, 7 Nov 2024 09:47:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972842; 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=d/l16th8ylfK3iZ0xPXtWkanFeyY1rf1bqXHGDqmR60=; b=Ci73FWb+y7ZhxELiDT4qr2zYra6K7hUfHhdY4XgO102lNYTIWW//miCvEFnkVr5eA1Ot6Q ZjVElFVNitY1j2EgOJUYTF26NVb803Q6WceXhqIKcPkGTe19J8gf1uFGZi7ct2bBG0QX3j dY2pfzdPITpEiWam1KhzaY2xYM6W1FJ2tXUUlserj486JKlaOLInEvFFE/PF19EoNF6hae t20K//EpbxbZM0FFM7T+xfPadhWB0LmPo9N7dEBoNJFRx7TiL5OJpgUoIUGb/fUhkyjP87 RsdQkxjSXX+ERuBt9l4c4UCfy+5iREkMmxLn5edM4ANfuRwy9FxxkmxSNa0hmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730972842; 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=d/l16th8ylfK3iZ0xPXtWkanFeyY1rf1bqXHGDqmR60=; b=dueT3OGT0QsaP8yJHpYDueBKyOHrORilg875BLd6gYQKzX0H3V+NPkuF7sELTxCl4F6rKh bamqglR63RWxl8MDI8CoTJCHodZLtja+I2d2Na50+GpXGGuVzI9z10JPKqTtsZwH6fpmIV ZhEQZEXrwns0jAf5P1FJI9YPM+E6JNYhvjy581YaFllbv7Ou4w+wW3wsTeRP0qhzRNaKLS xN+H0YTnU9x1XE3/I/CF+Iad5sM6AElpQzsrtMg7Jt+5ONTifcLze6BrpWhUr8Ls6CVZ7L hTBScWnfrFI5svR6nqGkh8Ukf6NKNXL9hgDDkrOpSxnI/UN1hBBgAIj2lYnt1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730972842; a=rsa-sha256; cv=none; b=fTAG3oEJbgvXXa1ryaXXxrHP8pQElU59g2S0bBNq0kzBPYLidYC4XmM2ph94VP2WVpvvmR 26CT7p7JCYgdATmemfiTGu2y9ciqQ5aqokbPo2IFZKZlbXVUWhehBFtKlznJTv676T+9T3 RKPTpllHy+WLFu4aTNSrEgays1oKs6UYCVp1MYkvJqapxyeA4+KzpU1jbb4UOx8awdQN7H zyLMz5IE8ohlpRqSTYDaD5S2n7ns+OqU0Uxto3NfVdQSL3knO4YSb0tcassSYWmfFsWJCW ePbDwBmtERGaieOcMhSSE5dKvJHVrcsXcc9x7vvhI2ELy8UDn37Gx0LXXkcNwQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkcgF6kXwzgd8; Thu, 7 Nov 2024 09:47:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A79lLDl010271; Thu, 7 Nov 2024 09:47:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A79lLNB010268; Thu, 7 Nov 2024 09:47:21 GMT (envelope-from git) Date: Thu, 7 Nov 2024 09:47:21 GMT Message-Id: <202411070947.4A79lLNB010268@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 35874d28c839 - releng/14.2 - sctp: fix debug message List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 35874d28c8391fa3583e7a2b008c5f84d0a3e3f7 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=35874d28c8391fa3583e7a2b008c5f84d0a3e3f7 commit 35874d28c8391fa3583e7a2b008c5f84d0a3e3f7 Author: Michael Tuexen AuthorDate: 2024-11-03 10:20:54 +0000 Commit: Michael Tuexen CommitDate: 2024-11-07 00:03:09 +0000 sctp: fix debug message (cherry picked from commit 518a1163d0aa73b26da1dd1a4bb186042ea3c66e) (cherry picked from commit 0e8faabc270f89fbc54bbc118b2ebe2a38364375) Approved by: re (cperviva) --- sys/netinet/sctp_pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index ab120fc951b1..7f10784ce433 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -626,7 +626,7 @@ sctp_del_addr_from_vrf(uint32_t vrf_id, struct sockaddr *addr, if (sctp_ifap->ifn_p) { if (ifn_index != sctp_ifap->ifn_p->ifn_index || ifn != sctp_ifap->ifn_p->ifn_p) { - SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (p) ifname:%s - ignoring delete\n", + SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (%p) ifname:%s - ignoring delete\n", sctp_ifap->ifn_p->ifn_index, sctp_ifap->ifn_p->ifn_p, sctp_ifap->ifn_p->ifn_name); From nobody Thu Nov 7 14:28:10 2024 X-Original-To: dev-commits-src-all@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 4XkkvH1XvTz5bwPV; Thu, 07 Nov 2024 14:28:11 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkkvH0mFjz4r3G; Thu, 7 Nov 2024 14:28:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730989691; 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=ROBsfNikJS9mWZRfVYMqIXhJLXATZIN1nEeXR3hbs0M=; b=xi6OABrc2SAsLdTCP9RS1MFydJQexx/gytrCmY34++qlcST/q9LiJgleqdLSqPgiKPOJB7 0K16Ufl17qITBwElCrqTAohMAmFAPqg6ZXVqlNw3D8RrKs4lLabOWfGi5LkPHhh4MkK3FP pLXCSmEW1ioPpUboXKUqM0JpGNFPv6VL8SdFstgZwZYFPW1mSO4i+3e/pgLwuKJI1qRPQg ZL4geYqiwJHDa2Kgdy1nwW/14UXa82KqnWV/Ps8ZLp0sBoudM43mqmymPDT4C4Kf19jtAW wyXAT1X1GHLo4i6asOxbvTOZgnVqkoo1ULXC/YC5eycPn3o/xlge2wwuv139Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730989691; 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=ROBsfNikJS9mWZRfVYMqIXhJLXATZIN1nEeXR3hbs0M=; b=F7KY5W1B+CRQg9HboaN6rTbOmCccbo9MKDH+8+6fVwO2eI8sBN0t/kVUETwNB6G3T/dSPJ xXRXnRH2bew1qc6x2hfrKsfd/fRTVxc8hE3Hb2clGh0hYnFQrCs0W8yNy7XtyOjscnzelU dVDVZgcY5rIQWUruTS5j7y2gCouOM5uVaiK1ig/Iwn/Q/eX2EWrw0zZpf+esUHeM2IW6KL Eg416e4D6SAQrpe3i/tB/hgxxn896CGz0J2L5dIB8fNXKfYF9PdfguZsu2cpyoOFZt+wAa N2VnaWg7fw8QshfsScpP8FotLzzK+9ZRTYrIxgCqn3r9AEymulc7wxK/PrwQnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730989691; a=rsa-sha256; cv=none; b=LCHPjyWpH0yZUPfwQ/zhMXOHspwi2ZP9D+CwEi9qeFZyOcKHx26I0c+kvOAjyY27XMfd49 TPoqNLKRicbcdaR+OMIQZ/q4Cp5LAeSATm0u6FfjElc7fKBs835IOPg6GPziBX2F8jfR/J ZpNaSpgVlAEkYmDzW9XNfzufOStxfCZSiJWzvxKIVHchxlQsA6ip8DAnAkjzSPdQbK4ILC UZGI+VDAExvSRgySafqkU6jKf0mapzcnrdqJHyljoXyBIQA4XlLOEiAaUDLd/CBu5xbQkf 6gyYnEcckgUpWh8yOKCy1Z7iY0TC8RRklUYjydBfKoU6DDJGEJ279SFlOzEZOQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkkvG72zxzplN; Thu, 7 Nov 2024 14:28:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7ESAKp031734; Thu, 7 Nov 2024 14:28:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7ESAsn031731; Thu, 7 Nov 2024 14:28:10 GMT (envelope-from git) Date: Thu, 7 Nov 2024 14:28:10 GMT Message-Id: <202411071428.4A7ESAsn031731@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 48c59140bd7d - stable/13 - bus: Set the current VNET in device_attach() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 48c59140bd7d82de26966bbc9723a49de95abd94 Auto-Submitted: auto-generated The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=48c59140bd7d82de26966bbc9723a49de95abd94 commit 48c59140bd7d82de26966bbc9723a49de95abd94 Author: Mark Johnston AuthorDate: 2024-10-19 13:03:56 +0000 Commit: Mark Johnston CommitDate: 2024-11-07 14:26:34 +0000 bus: Set the current VNET in device_attach() Some drivers, in particular anything which creates an ifnet during attach, need to have the current VNET set, as if_attach_internal() and its callees access VNET-global variables. device_probe_and_attach() handles this, but this is not the only way to arrive in DEVICE_ATTACH. In particular, bus drivers may invoke device_attach() directly, as does devctl2's DEV_ENABLE ioctl handler. So, set the current VNET in device_attach() instead. I believe it is always safe to use vnet0, as devctl2 ioctls are not permitted within a jail. PR: 282168 Reviewed by: zlei, kevans, bz, imp, glebius MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47174 (cherry picked from commit f4e35c044c8988b7452cefbdcc417f5fd723e021) (cherry picked from commit 2e80ea70b98ef75f8bea9155944e6f093c0fa828) --- sys/kern/subr_bus.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 06c64ef28fba..9b4a4c65190a 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -2984,10 +2985,7 @@ device_probe_and_attach(device_t dev) else if (error != 0) return (error); - CURVNET_SET_QUIET(vnet0); - error = device_attach(dev); - CURVNET_RESTORE(); - return error; + return (device_attach(dev)); } /** @@ -3023,6 +3021,10 @@ device_attach(device_t dev) return (ENXIO); } + KASSERT(IS_DEFAULT_VNET(TD_TO_VNET(curthread)), + ("device_attach: curthread is not in default vnet")); + CURVNET_SET_QUIET(TD_TO_VNET(curthread)); + device_sysctl_init(dev); if (!device_is_quiet(dev)) device_print_child(dev->parent, dev); @@ -3037,8 +3039,10 @@ device_attach(device_t dev) device_sysctl_fini(dev); KASSERT(dev->busy == 0, ("attach failed but busy")); dev->state = DS_NOTPRESENT; + CURVNET_RESTORE(); return (error); } + CURVNET_RESTORE(); dev->flags |= DF_ATTACHED_ONCE; /* We only need the low bits of this time, but ranges from tens to thousands * have been seen, so keep 2 bytes' worth. From nobody Thu Nov 7 16:04:07 2024 X-Original-To: dev-commits-src-all@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 4Xkn200fGCz5c3dH for ; Thu, 07 Nov 2024 16:04:08 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkn2006ZGz4DY9; Thu, 7 Nov 2024 16:04:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730995448; 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=p1HXmv4htNhvoqTKnmoicmPFp61Ot5PCOTOj7mFgUek=; b=QnO9Y6e7rxLvvALBBlfdj31IwzmmstPhfZyUJlicqdSa2TAhvLvD1/4W+70SZdDKypwWBF I4TLVT/jbENkzMO/oEDVSRtiv6WAMsKE6RAsVwFBuErmQAfGmJ1/dUikex3yjj6PnTPHVU 0UUq4DNS4wYhvUcIMjPgSx4OdV7nqmTN6VVUTTFYIl1L6lYPYCzwez8lbtEi+IzGv/bc8k BwtkaXNUAOE1Bqa9f9XUOqhWOFckQsUXVsz0nHqvw92DLFMEGt8BMuNYe5AVqfPKNo9C0G pK38YWyleEkzLcfB+f3aaLQEd+EB0yTNt+ZpptsOdqMUO7zhHudXJwXsoAtqKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730995448; 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=p1HXmv4htNhvoqTKnmoicmPFp61Ot5PCOTOj7mFgUek=; b=mDOGs0WvMZaX1VYr6LmUopMufAbVEqMX6+iIvFpKPru6jqt/lvTOS/PpRNsvH/6XCHc/un lwTRByaSLlYKMFRSVHtfdK3q7BLhOH4EHJRZKfFf/qecDUrgJPmRQYaeu9HvBAflt5V7XK Gkky04P6DAGfHLEHkBPt7F2hph8PK1k7FA8MlQ1fGmIJQ3J9o66kpQ2eERV0pdm3uvkD54 yuDGgLSolu3ielDeGVPOr6YzPh+AQJgCDvCBhzBZXGGjDemDgwt9Zc3jzAYnCL/PK/gyNr AKjZYd/7KnT9wg4i00z7j1vw7aUvQRspySeVXgyFBQXmavm38FdiY3zbIWkfWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730995448; a=rsa-sha256; cv=none; b=PCAB7WVC2W9kSazYItZd/c8rFp2OIKGp2uhXPzw524gt3yT16lW2Ma16mGURWobQ9ZQnNU sr56qKThplkVqigU7pXY9uEMeAckvix/Fv9K3gmPuvM2bLukoq2DKbOYxtRnFzE4LjOEmd xeT7uCj7ZqyA8by5385kqWTWUnRDc9Z9Gxy2RxhX2O5XuVdPmSQ17a0CwQR5ZZNBLlVppY FdEEQcMMpucEsEgdtHPzP6Eg08FdXe/t77PKG8QW+carSWjl26VprKnilRB5bXPBxtoTfv TOl4JFnejL+GR67RARG7eJPg8k7dDp8Vq5jsWPL+ifaPH/tmbLkHPcvfH9O/3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkn1z6XlszrVY; Thu, 7 Nov 2024 16:04:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7G47Zd017402; Thu, 7 Nov 2024 16:04:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7G47AO017401; Thu, 7 Nov 2024 16:04:07 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:04:07 GMT Message-Id: <202411071604.4A7G47AO017401@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Dimitry Andric Subject: git: e6b732792813..efdccd835863 - vendor/llvm-project/release-19.x - vendor branch updated List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/vendor/llvm-project/release-19.x X-Git-Reftype: branch X-Git-Commit: efdccd8358633400f927c74be0f7969bda1b3775 X-Git-Oldrev: e6b732792813cf49a23ba2f780c55f8d3279183e X-Git-Newrev: efdccd8358633400f927c74be0f7969bda1b3775 Auto-Submitted: auto-generated The branch vendor/llvm-project/release-19.x has been updated by dim: URL: https://cgit.FreeBSD.org/src/log/?id=e6b732792813..efdccd835863 efdccd835863 Vendor import of llvm-project branch release/19.x llvmorg-19.1.3-0-gab51eccf88f5, a.k.a. 19.1.3 release. From nobody Thu Nov 7 16:04:07 2024 X-Original-To: dev-commits-src-all@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 4Xkn200yWjz5c3dL for ; Thu, 07 Nov 2024 16:04:08 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkn200Q0bz4DjT; Thu, 7 Nov 2024 16:04:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730995448; 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=sKr4wLVj9ouxv6rs/tfky+0CzgnDo8E0+EEAoNRArBE=; b=NwaTfJuGZMEEZneB7NxX5J7GB+bRNzv1EGdN4ha8qEnLPW8+0d+H9URgUAnv7clNaplED0 45+79+p3y+gAb4uP4VHB+5WOimIbceXvvv9N1M5tNjhaH4TZXPhV0GrIN5/Vdc71qna6d/ D5A1pAa5EWLJmwdHsuHmeSQpt773E+X0C6B7+fvCQO2B8CyAIFf3Hw+7plQRBlBRqQE8x6 gv4UFn2pII7WwD7P6++3URxdsrR3kjuREGcCEMjhq8gNch20xME2VsVGo7vbDbGSxtTH7E /wg0SjogoIOeoapCQkwaOpgZ57hNi6xSdCq7Dfra0Wbm2EcXbLLRYY2uy9RxOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730995448; 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=sKr4wLVj9ouxv6rs/tfky+0CzgnDo8E0+EEAoNRArBE=; b=U/PZRrCHbtIlRwysPai9eUT9DDuA2EsRAyw+Sv3GKfyPtRkX2J3W7mdFdZCSn48kR+D4PA jdeMoM1ICZMDf0ZBT0yzAnUk24QcZdqUvA7hyJG2TyfZKkxA6E3i6O0uhwPF228Bo+kLxw bCiIrdvwB4+58UJaaaZZc5R6n1k9ihntq3JkwCVAK5QhcPL0hz86J6ayZqhgWRctMnwyar y+v3AE52V+A6jdTtLP8qJhCEIfw/btBrbJHj3dY9DVYivReRUwggTNvYC4NbepFWhEKVEm ZQtOZqrmwhI7kpSy6G3kCwhk3h+IeSeN1rKxyjW/YOk/L+J9sAabHRk2V/psSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730995448; a=rsa-sha256; cv=none; b=TrXWG5pchyqjJDohZXlPAgZ8LFEsizbDI20hqQJex5WGunO8W7F99FcES6L8rk/ZmohRnd vxGkpmEOFoN39thEVSgxdlMUPLegoX8G2rY0an8GdDIIPYSH37wDqFIGRW4E+XDzFtwNuX 2LEBy3rSyW/KieqyNeSNeMCnFX57SerqFNll9kgP6cSgpv9/fNEhm1mxinNWpH4e+3c/rB /P40vWaSTln9V7U4Sy26Y01kLNdxfp8wNk9bvDG4qfbT9KkU0yjG7Lw/0pGCZqJSxa01B6 C2mxQyl59K7kMka+CeCC9Y6bW3VUO/O5uYUoqr0JZaOjCMdvBr8J1DYT3WawPw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkn1z70Q4zsSK; Thu, 7 Nov 2024 16:04:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7G47JO017421; Thu, 7 Nov 2024 16:04:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7G47hI017420; Thu, 7 Nov 2024 16:04:07 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:04:07 GMT Message-Id: <202411071604.4A7G47hI017420@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Dimitry Andric Subject: git: 81b958deb1ee - Create tag vendor/llvm-project/llvmorg-19.1.3-0-gab51eccf88f5 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/tags/vendor/llvm-project/llvmorg-19.1.3-0-gab51eccf88f5 X-Git-Reftype: annotated tag X-Git-Commit: 81b958deb1eec7590bd96d50f48452bc0c61150b Auto-Submitted: auto-generated The annotated tag vendor/llvm-project/llvmorg-19.1.3-0-gab51eccf88f5 has been created by dim: URL: https://cgit.FreeBSD.org/src/tag/?h=vendor/llvm-project/llvmorg-19.1.3-0-gab51eccf88f5 tag vendor/llvm-project/llvmorg-19.1.3-0-gab51eccf88f5 Tagger: Dimitry Andric TaggerDate: 2024-11-07 16:03:42 +0000 Tag llvm-project branch release/19.x llvmorg-19.1.3-0-gab51eccf88f5, a.k.a. 19.1.3 release. commit efdccd8358633400f927c74be0f7969bda1b3775 Author: Dimitry Andric AuthorDate: 2024-11-07 16:03:24 +0000 Commit: Dimitry Andric CommitDate: 2024-11-07 16:03:24 +0000 Vendor import of llvm-project branch release/19.x llvmorg-19.1.3-0-gab51eccf88f5, a.k.a. 19.1.3 release. From nobody Thu Nov 7 16:14:28 2024 X-Original-To: dev-commits-src-all@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 4XknFx0f8Gz5c4dg; Thu, 07 Nov 2024 16:14:29 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XknFx0BbPz4FNG; Thu, 7 Nov 2024 16:14:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730996069; 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=f5pwykaoAV8M2PyZnlwqeDrVsA/HDNRHeHe6exqknAc=; b=iIscHZAtsRLVZhJ57eRHPxrdKNEVBBMeOhq2p7gaD+riQoY41930zV0WZyUmG6KF4pYqHB quPGk/J2GqUHAj0jyDTEz+MorQAbyVZE2MRz1/pdHIkbxGjQwagU/Q1lwOdOAxnDGBtcRq nIpEYW+KHpyin01Q3OAl3ekPqEA72/OEbrOKmydPczbRFwoIhLDOUJ7MqiM81BQw0Tq1n5 F5YEOXYVJMHQLauFW6z849J9frx9eoanSdpw3Vz5wc0AFzywGxKaxqhYAtzV3aO8BgvhMf Ci+O7tKMPzsdFsMIGcQ9Z0p+JnW2sE/EFXxumg4QqbXhI/WCl/HnzpHaqTyhfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730996069; 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=f5pwykaoAV8M2PyZnlwqeDrVsA/HDNRHeHe6exqknAc=; b=JptQXb7ASUAf1cD9p2iXcjSiAt+u8NemChxuHfUI2BcofH0ZH880WMhC4zQtpU/jAAUEb5 ImaT3X0mVP9xMYHdd02MqyDaiNCCVop/SMkkS/T9mcmRBjwwWFgphwS2ELsxpDq9lpEsp5 ZIpM99pyXjVO+QjnbLU+0DG3Rt6MeZySNHR61sunJfzXDaJ3UZx4I1DjBLsfczbUbx/MIU mzDl6/ZIHGQGTo9zi2ulB0ZVygoxWy30SDxSe/8iWwzfjNjg80j93dstcK70+MHvRSrNd0 DVip6BcPCRazfpq3zwdWgd8Kfk/SmtefKiHNL0afy+B3VerBCo0rVyIjPFuyhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730996069; a=rsa-sha256; cv=none; b=m8Ov2DeWFbSPVloDp1ZnPpakec+xabL3Ap5kwpuHfulNgfFKvCIr4ARb3OlM8TUcMmZm9Z lbXXI9ThUJpvbM19m0GpQP8amATDWh6/zLGSI1g+ro/RwFUTrn8A+fcpJMFfqLnCqRAD3o 0T3J5bLdJX8vhi67e8SO2rPc/mry8LlnRDscBGI2W1JP0qo0t54Gvu7lXdUQfmkQ8tsbF6 1s4umrcKAj5fODbpjLC8aT3A1Xvdm12fK0EqS9ipUnbI52xS48DFPaJk4BNgEdruQwnuHY WtjM/NVSYa1QlvhGZr4RPiDtq0eUd74Z0abPHKP2wouHH9AJV2RpZgz74UU2vg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XknFw6vZWzsQq; Thu, 7 Nov 2024 16:14:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7GESrm035675; Thu, 7 Nov 2024 16:14:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7GESjA035672; Thu, 7 Nov 2024 16:14:28 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:14:28 GMT Message-Id: <202411071614.4A7GESjA035672@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 4f1754bccef1 - stable/14 - Merge commit d0b9c2c56476 from llvm git (by David CARLIER): List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4f1754bccef155c0fd24547ab3c872bd0f182224 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4f1754bccef155c0fd24547ab3c872bd0f182224 commit 4f1754bccef155c0fd24547ab3c872bd0f182224 Author: Dimitry Andric AuthorDate: 2024-11-07 16:12:12 +0000 Commit: Dimitry Andric CommitDate: 2024-11-07 16:13:43 +0000 Merge commit d0b9c2c56476 from llvm git (by David CARLIER): [compiler-rt] Remove SHA2 interceptions for NetBSD/FreeBSD. (#110246) To Fix #110215 Interceptors introduced with 18a7ebda99044473fdbce6376993714ff54e6690 This fixes undesirable runtime failures when using -fsanitize=-address in combination with -lcrypto. Direct commit to stable/14, because main already got this change as part of the llvm-19 import. Reported by: Theo Buehler PR: 281685 --- .../sanitizer_common_interceptors.inc | 180 --------------------- .../sanitizer_platform_interceptors.h | 2 - 2 files changed, 182 deletions(-) diff --git a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc index 3ecdb55cdbf7..2cf21f2e3361 100644 --- a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -8809,83 +8809,6 @@ INTERCEPTOR(char *, RMD160Data, u8 *data, SIZE_T len, char *buf) { #define INIT_RMD160 #endif -#if SANITIZER_INTERCEPT_MD5 -INTERCEPTOR(void, MD5Init, void *context) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Init, context); - REAL(MD5Init)(context); - if (context) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, MD5_CTX_sz); -} - -INTERCEPTOR(void, MD5Update, void *context, const unsigned char *data, - unsigned int len) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Update, context, data, len); - if (data && len > 0) - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - REAL(MD5Update)(context, data, len); - if (context) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, MD5_CTX_sz); -} - -INTERCEPTOR(void, MD5Final, unsigned char digest[16], void *context) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Final, digest, context); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - REAL(MD5Final)(digest, context); - if (digest) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, digest, sizeof(unsigned char) * 16); -} - -INTERCEPTOR(char *, MD5End, void *context, char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5End, context, buf); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - char *ret = REAL(MD5End)(context, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -INTERCEPTOR(char *, MD5File, const char *filename, char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5File, filename, buf); - if (filename) - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1); - char *ret = REAL(MD5File)(filename, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -INTERCEPTOR(char *, MD5Data, const unsigned char *data, unsigned int len, - char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Data, data, len, buf); - if (data && len > 0) - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); - char *ret = REAL(MD5Data)(data, len, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -#define INIT_MD5 \ - COMMON_INTERCEPT_FUNCTION(MD5Init); \ - COMMON_INTERCEPT_FUNCTION(MD5Update); \ - COMMON_INTERCEPT_FUNCTION(MD5Final); \ - COMMON_INTERCEPT_FUNCTION(MD5End); \ - COMMON_INTERCEPT_FUNCTION(MD5File); \ - COMMON_INTERCEPT_FUNCTION(MD5Data) -#else -#define INIT_MD5 -#endif - #if SANITIZER_INTERCEPT_FSEEK INTERCEPTOR(int, fseek, __sanitizer_FILE *stream, long int offset, int whence) { void *ctx; @@ -9016,107 +8939,6 @@ INTERCEPTOR(char *, MD2Data, const unsigned char *data, unsigned int len, #define INIT_MD2 #endif -#if SANITIZER_INTERCEPT_SHA2 -#define SHA2_INTERCEPTORS(LEN, SHA2_STATE_T) \ - INTERCEPTOR(void, SHA##LEN##_Init, void *context) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Init, context); \ - REAL(SHA##LEN##_Init)(context); \ - if (context) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - } \ - INTERCEPTOR(void, SHA##LEN##_Update, void *context, \ - const u8 *data, SIZE_T len) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Update, context, data, len); \ - if (data && len > 0) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - REAL(SHA##LEN##_Update)(context, data, len); \ - if (context) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - } \ - INTERCEPTOR(void, SHA##LEN##_Final, u8 digest[LEN/8], \ - void *context) { \ - void *ctx; \ - CHECK_EQ(SHA##LEN##_digest_length, LEN/8); \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Final, digest, context); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - REAL(SHA##LEN##_Final)(digest, context); \ - if (digest) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, digest, \ - sizeof(digest[0]) * \ - SHA##LEN##_digest_length); \ - } \ - INTERCEPTOR(char *, SHA##LEN##_End, void *context, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_End, context, buf); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - char *ret = REAL(SHA##LEN##_End)(context, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_File, const char *filename, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_File, filename, buf); \ - if (filename) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1);\ - char *ret = REAL(SHA##LEN##_File)(filename, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_FileChunk, const char *filename, char *buf, \ - OFF_T offset, OFF_T length) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_FileChunk, filename, buf, offset, \ - length); \ - if (filename) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1);\ - char *ret = REAL(SHA##LEN##_FileChunk)(filename, buf, offset, length); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_Data, u8 *data, SIZE_T len, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Data, data, len, buf); \ - if (data && len > 0) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); \ - char *ret = REAL(SHA##LEN##_Data)(data, len, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } - -SHA2_INTERCEPTORS(224, u32) -SHA2_INTERCEPTORS(256, u32) -SHA2_INTERCEPTORS(384, u64) -SHA2_INTERCEPTORS(512, u64) - -#define INIT_SHA2_INTECEPTORS(LEN) \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Init); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Update); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Final); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_End); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_File); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_FileChunk); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Data) - -#define INIT_SHA2 \ - INIT_SHA2_INTECEPTORS(224); \ - INIT_SHA2_INTECEPTORS(256); \ - INIT_SHA2_INTECEPTORS(384); \ - INIT_SHA2_INTECEPTORS(512) -#undef SHA2_INTERCEPTORS -#else -#define INIT_SHA2 -#endif - #if SANITIZER_INTERCEPT_VIS INTERCEPTOR(char *, vis, char *dst, int c, int flag, int nextc) { void *ctx; @@ -10542,10 +10364,8 @@ static void InitializeCommonInterceptors() { INIT_SHA1; INIT_MD4; INIT_RMD160; - INIT_MD5; INIT_FSEEK; INIT_MD2; - INIT_SHA2; INIT_VIS; INIT_CDB; INIT_GETFSENT; diff --git a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h index de55c736d0e1..d78f942b3dd4 100644 --- a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h +++ b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h @@ -559,10 +559,8 @@ #define SANITIZER_INTERCEPT_SHA1 SI_NETBSD #define SANITIZER_INTERCEPT_MD4 SI_NETBSD #define SANITIZER_INTERCEPT_RMD160 SI_NETBSD -#define SANITIZER_INTERCEPT_MD5 (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_FSEEK (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_MD2 SI_NETBSD -#define SANITIZER_INTERCEPT_SHA2 (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_CDB SI_NETBSD #define SANITIZER_INTERCEPT_VIS (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_POPEN SI_POSIX From nobody Thu Nov 7 16:14:48 2024 X-Original-To: dev-commits-src-all@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 4XknGJ2PnPz5c4kh; Thu, 07 Nov 2024 16:14:48 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XknGJ1YC1z4G0t; Thu, 7 Nov 2024 16:14:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730996088; 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=weAsQaygPUfO1IWhovCRllLkqUMHdZPPnAldAyByAnk=; b=StS5D6ovKQ6xawim5dZyK+ShvXK6TRnetsVd5jGYTZH3HZLzkuPbJ04csJrj8CBDhao1KL lCqkQqlGinJEvdtk4Om6P7JJtiom498EPdyIMzkK3musAerjKGHelnMI4Kf8l0bEYp2wg0 FWotfVzCaOufx5eFLsoAyb3DitW4EQPjKdszh+QZTM1YWUFYtLRKrE1EBCGLDmkv7VhP8j NLW4gjJZPe6fPRtBiXWfhs2HyA49FQMqEQScijG0dDkw9GSAWhuj/wF2KlHh8Mh1YmbMQU qFYlU6UPfsQPNe6Z4p3fBhriM9JBrlGh6tKIo/4mOJYQaBwsHFj7JxFlNT9yxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730996088; 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=weAsQaygPUfO1IWhovCRllLkqUMHdZPPnAldAyByAnk=; b=NM4VI8p5LMRnDtQs1WJ49vKvJGJxPWKC40H72I7zIJPT99KBx+0TS30EfBqJEvArtiUkX5 GDL5eBbT0HbiXUCB9Fm3c97qw4/kB5PmESBYuIotA6W3Ea0fmQuw3H/WvrYEEH7O5ncqyo 8jtNf1Zrv6ByPHYTWGOjzQtnTurN216UNOV7EwGnQ+yAOnKI8A9BFjdsDuPzZsMbjU4nRq XAfRpAP8em0tckCJaD4pP2kxd00/XIIeutVnVLQBYYQeI48HCK9w66XSua588FkRF7RAol XT/Ti0LhC3gLQSy9pZY6xxP8QlgVLgwjEcrtmnfkHmD6qW2/i8MWZojDYRVXOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730996088; a=rsa-sha256; cv=none; b=D1zmD1gbA5B34/6sYtwIzGjaMdWi61EfuvL67f7ptf9FB6djQz9nJ16/s7nPNgAkVFZL71 B8qrqjM8jomawqz3x0Qu9DSgn2bN8X+KEsXr60hqXGzY4GbembkLcZj/MnTVQh3UEb8wK0 JgLjPS3e5RV2IRA2uYtpnkcfEytHfi2FLFdhH/V2k+JdztPg211M/IxSTcIhN75SxJ4CZE ePipfSqfBnjmS+IRRdDf0PUevMPooWGrvtjIMdGrJGGBPWQC3kw12yrTWU7g8t+nAa7fvb hwGLwr3qMR75VHaDHcaqiQ5/2iSAIVPHz5dqahtIZm3wkMpDvbDF5gM6HAc97g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XknGJ18RhzsQr; Thu, 7 Nov 2024 16:14:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7GEmUi035911; Thu, 7 Nov 2024 16:14:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7GEmxj035908; Thu, 7 Nov 2024 16:14:48 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:14:48 GMT Message-Id: <202411071614.4A7GEmxj035908@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 56d38dda6b90 - stable/13 - Merge commit d0b9c2c56476 from llvm git (by David CARLIER): List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 56d38dda6b909031995bac73d166efa1b6cccb26 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=56d38dda6b909031995bac73d166efa1b6cccb26 commit 56d38dda6b909031995bac73d166efa1b6cccb26 Author: Dimitry Andric AuthorDate: 2024-11-07 16:12:50 +0000 Commit: Dimitry Andric CommitDate: 2024-11-07 16:12:50 +0000 Merge commit d0b9c2c56476 from llvm git (by David CARLIER): [compiler-rt] Remove SHA2 interceptions for NetBSD/FreeBSD. (#110246) To Fix #110215 Interceptors introduced with 18a7ebda99044473fdbce6376993714ff54e6690 This fixes undesirable runtime failures when using -fsanitize=-address in combination with -lcrypto. Direct commit to stable/13, because main already got this change as part of the llvm-19 import. Reported by: Theo Buehler PR: 281685 --- .../sanitizer_common_interceptors.inc | 180 --------------------- .../sanitizer_platform_interceptors.h | 2 - 2 files changed, 182 deletions(-) diff --git a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc index 3ecdb55cdbf7..2cf21f2e3361 100644 --- a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -8809,83 +8809,6 @@ INTERCEPTOR(char *, RMD160Data, u8 *data, SIZE_T len, char *buf) { #define INIT_RMD160 #endif -#if SANITIZER_INTERCEPT_MD5 -INTERCEPTOR(void, MD5Init, void *context) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Init, context); - REAL(MD5Init)(context); - if (context) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, MD5_CTX_sz); -} - -INTERCEPTOR(void, MD5Update, void *context, const unsigned char *data, - unsigned int len) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Update, context, data, len); - if (data && len > 0) - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - REAL(MD5Update)(context, data, len); - if (context) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, MD5_CTX_sz); -} - -INTERCEPTOR(void, MD5Final, unsigned char digest[16], void *context) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Final, digest, context); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - REAL(MD5Final)(digest, context); - if (digest) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, digest, sizeof(unsigned char) * 16); -} - -INTERCEPTOR(char *, MD5End, void *context, char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5End, context, buf); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - char *ret = REAL(MD5End)(context, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -INTERCEPTOR(char *, MD5File, const char *filename, char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5File, filename, buf); - if (filename) - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1); - char *ret = REAL(MD5File)(filename, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -INTERCEPTOR(char *, MD5Data, const unsigned char *data, unsigned int len, - char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Data, data, len, buf); - if (data && len > 0) - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); - char *ret = REAL(MD5Data)(data, len, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -#define INIT_MD5 \ - COMMON_INTERCEPT_FUNCTION(MD5Init); \ - COMMON_INTERCEPT_FUNCTION(MD5Update); \ - COMMON_INTERCEPT_FUNCTION(MD5Final); \ - COMMON_INTERCEPT_FUNCTION(MD5End); \ - COMMON_INTERCEPT_FUNCTION(MD5File); \ - COMMON_INTERCEPT_FUNCTION(MD5Data) -#else -#define INIT_MD5 -#endif - #if SANITIZER_INTERCEPT_FSEEK INTERCEPTOR(int, fseek, __sanitizer_FILE *stream, long int offset, int whence) { void *ctx; @@ -9016,107 +8939,6 @@ INTERCEPTOR(char *, MD2Data, const unsigned char *data, unsigned int len, #define INIT_MD2 #endif -#if SANITIZER_INTERCEPT_SHA2 -#define SHA2_INTERCEPTORS(LEN, SHA2_STATE_T) \ - INTERCEPTOR(void, SHA##LEN##_Init, void *context) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Init, context); \ - REAL(SHA##LEN##_Init)(context); \ - if (context) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - } \ - INTERCEPTOR(void, SHA##LEN##_Update, void *context, \ - const u8 *data, SIZE_T len) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Update, context, data, len); \ - if (data && len > 0) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - REAL(SHA##LEN##_Update)(context, data, len); \ - if (context) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - } \ - INTERCEPTOR(void, SHA##LEN##_Final, u8 digest[LEN/8], \ - void *context) { \ - void *ctx; \ - CHECK_EQ(SHA##LEN##_digest_length, LEN/8); \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Final, digest, context); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - REAL(SHA##LEN##_Final)(digest, context); \ - if (digest) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, digest, \ - sizeof(digest[0]) * \ - SHA##LEN##_digest_length); \ - } \ - INTERCEPTOR(char *, SHA##LEN##_End, void *context, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_End, context, buf); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - char *ret = REAL(SHA##LEN##_End)(context, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_File, const char *filename, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_File, filename, buf); \ - if (filename) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1);\ - char *ret = REAL(SHA##LEN##_File)(filename, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_FileChunk, const char *filename, char *buf, \ - OFF_T offset, OFF_T length) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_FileChunk, filename, buf, offset, \ - length); \ - if (filename) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1);\ - char *ret = REAL(SHA##LEN##_FileChunk)(filename, buf, offset, length); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_Data, u8 *data, SIZE_T len, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Data, data, len, buf); \ - if (data && len > 0) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); \ - char *ret = REAL(SHA##LEN##_Data)(data, len, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } - -SHA2_INTERCEPTORS(224, u32) -SHA2_INTERCEPTORS(256, u32) -SHA2_INTERCEPTORS(384, u64) -SHA2_INTERCEPTORS(512, u64) - -#define INIT_SHA2_INTECEPTORS(LEN) \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Init); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Update); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Final); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_End); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_File); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_FileChunk); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Data) - -#define INIT_SHA2 \ - INIT_SHA2_INTECEPTORS(224); \ - INIT_SHA2_INTECEPTORS(256); \ - INIT_SHA2_INTECEPTORS(384); \ - INIT_SHA2_INTECEPTORS(512) -#undef SHA2_INTERCEPTORS -#else -#define INIT_SHA2 -#endif - #if SANITIZER_INTERCEPT_VIS INTERCEPTOR(char *, vis, char *dst, int c, int flag, int nextc) { void *ctx; @@ -10542,10 +10364,8 @@ static void InitializeCommonInterceptors() { INIT_SHA1; INIT_MD4; INIT_RMD160; - INIT_MD5; INIT_FSEEK; INIT_MD2; - INIT_SHA2; INIT_VIS; INIT_CDB; INIT_GETFSENT; diff --git a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h index de55c736d0e1..d78f942b3dd4 100644 --- a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h +++ b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h @@ -559,10 +559,8 @@ #define SANITIZER_INTERCEPT_SHA1 SI_NETBSD #define SANITIZER_INTERCEPT_MD4 SI_NETBSD #define SANITIZER_INTERCEPT_RMD160 SI_NETBSD -#define SANITIZER_INTERCEPT_MD5 (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_FSEEK (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_MD2 SI_NETBSD -#define SANITIZER_INTERCEPT_SHA2 (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_CDB SI_NETBSD #define SANITIZER_INTERCEPT_VIS (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_POPEN SI_POSIX From nobody Thu Nov 7 16:33:19 2024 X-Original-To: dev-commits-src-all@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 4Xkngg6Bk9z5c6vJ; Thu, 07 Nov 2024 16:33:19 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkngg5SnDz4HyB; Thu, 7 Nov 2024 16:33:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997199; 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=qdu0LH9+eg9QGDvB7rS99ikZl5rUhge3bm7b3szY0aY=; b=CSjPViRWNR/bFksF3bW3RwNwN6WAb+YRV90caoGiUlzpiWXpqhnEPJuz/pXF84e3pCuiBb RfaCAWhl85bHNbGrMdn7l0UbA7kn7DX1TYRa3WAj/B6WUMMUXH8anMj+xqPjZtt7Ok3f3w nM7qG2jvbulGj67RW0N5Q7mECCorARMkj5SAmAauDrK+FvjNaoiStViJLjtNI0T+Ur85Ui /BjvoXW97xCaRfSTOAYuMZQuioA39Qu4EjFAt7G4eT0OuoiEjHtTW/gAuyRjMMIoRQ/0oc LrfuDPkp56GM/ab+Y8+GKVTYbDOs/pzZkK4qYQAq2vWpu1x6qUyNtmQv+TMC3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997199; 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=qdu0LH9+eg9QGDvB7rS99ikZl5rUhge3bm7b3szY0aY=; b=DNvQAdhlOpiM4lk/ckUAoIg21EM/afsiQ0QavLeC9jwSI09WWFiU6XjFqTG2SKNjHZst+6 r1Ci0ITDK/t05gTs5Y2Y+mwLif5IuaIFcBmzTmQi1971zg4oL/qc721HSchpDlcnXdJumJ wACuRKfD02KEifEs96lHIw5ZCYuiIYHhVfnLYdQpkQ2BG7oPqLm1jLeLFSomkV5StXbarA eshVMtf5RHrpvuGP3P3NvWIo40otLuAXhDDXsaXh1NRb7QlLVdPxJq2p9zMOYGd55HKoga +e7b5c9e+/anoelilyMAkbafr4hsMsne6dFmn/c/eW6/i+Feu2NbfPXSYzWhEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730997199; a=rsa-sha256; cv=none; b=RM/BRGwTkn0YXE+q/bGu8SpveZsMzmVP17fCavsGTS30FeH7qlk0cRKSfTAlA8btwrGVUO dv+itqHTj3ZM2r2s6YIfmqnmPMh2ciXiDHLaqJVq4Bm/D6Yo5pWUbExaOjlsuNZs8ysD4W mKi2YcJRuh24BBzyysDl0C1wqNVK9KLvr+m1OU6WyrneWSFMW4gYBfgJN62Z+X4awFQiUJ Yvw5hJ9eLfA0/lsQBBwMpAV9Rciuh1VNrZ2gRpGyhTwGFW/+gOX7iXt55vOn2AcaF1KR1G CDO35J3ZqDgyCosspccfaXD/rUOdER9xn/NtPtQ6zbREiaB1xWdctXKCmqjZBA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkngg5487zt8L; Thu, 7 Nov 2024 16:33:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7GXJu3072495; Thu, 7 Nov 2024 16:33:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7GXJVg072491; Thu, 7 Nov 2024 16:33:19 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:33:19 GMT Message-Id: <202411071633.4A7GXJVg072491@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 5b8e4b1c123e - stable/13 - ifnet: Assert that we are assigning network stack correctly List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5b8e4b1c123ec3cb779a5563d672b62be1c94065 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=5b8e4b1c123ec3cb779a5563d672b62be1c94065 commit 5b8e4b1c123ec3cb779a5563d672b62be1c94065 Author: Zhenlei Huang AuthorDate: 2024-10-22 04:32:24 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 16:32:16 +0000 ifnet: Assert that we are assigning network stack correctly It makes no sense to assign NULL vnet to an interface when the kernel option VIMAGE is enabled. Add an assertion to catch that. This will also help diagnosing problem report [1] and [2]. 1. https://bugs.freebsd.org/275381 2. https://bugs.freebsd.org/282168 Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D46982 (cherry picked from commit d1d839d0b593541174ca48c675c9eff4ddb4715e) (cherry picked from commit 2f3c87296cc727fc21fbb4d549deaed7dfa2fef1) --- sys/net/if.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/if.c b/sys/net/if.c index 8a870bb4e1bc..107ff67d547a 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -864,6 +864,7 @@ if_attach_internal(struct ifnet *ifp, bool vmove) ifp->if_xname); #ifdef VIMAGE + CURVNET_ASSERT_SET(); ifp->if_vnet = curvnet; if (ifp->if_home_vnet == NULL) ifp->if_home_vnet = curvnet; From nobody Thu Nov 7 16:33:20 2024 X-Original-To: dev-commits-src-all@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 4Xkngh70frz5c6n5; Thu, 07 Nov 2024 16:33:20 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkngh6TF2z4Hn3; Thu, 7 Nov 2024 16:33:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997200; 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=Q58/WZ7xVQ+T4osFYgSjv/vTEZcwMSiGr62KaEUYVr8=; b=tZ9sHlgRpYFbNK4tNc0351hTIG3nEXeTp5oICR1cCfOWfLF1YVxfww5pW6eAuZrNTR7ujw 202GY682TGb578/BoXLYVUq783L04KGp8mHLjxgNPRbtjTY4WH4+IrEC0IzI8FU5jF5otZ v//T3X3/K9OXeGWPbld0Fp0INHFyOeJmEGPU/rtKJvsCh21DKEYxVwBhgL0VOWn1H0/BOK PfmLa6ocHIGsy1IlUm3pjaxDLKPneg3pHQRebUa6ALXA+eeJGR/d4UkvdfaEMCxa0JAEN7 ewk0b5C1sMMY2NG8+k5Nng7pHyvjHosf80x0BWjQxiD2a8dV+eynchvkQiAGGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997200; 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=Q58/WZ7xVQ+T4osFYgSjv/vTEZcwMSiGr62KaEUYVr8=; b=PQ4TXcMnlcDiRqfjrkQMCmQ+9tg0AerZUe1gBmVxpYQvPCzCiLm0gg6Vj3F7mMgnBEIGt4 E2GpNabKGoo6QdQkO2oQ63mMOCDiifwtKKvC9xQ5rZsDq6OE4HbVcSX2SG+bkDZMImaU0p RMvLRG86b/3gpjJ3/HtFtKKj+Q+uJ8Ml55d5GGD0ksx0ejMF+r76igqzewa5LKNJ7vwolM +UAvWy5a46X7H6syWS40L3lkyuyoO635m3y0kbMwNprhb20q0b5gHvhHbWSIMLHisURwuP S1vUOo+zjr97Bv79Ny1vTXGLnj0tDKrMYWUzbWV7YU82envNp6EqWQuhKPleHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730997200; a=rsa-sha256; cv=none; b=d45ulmwUgWiwHW+MVtincOc4X0fbkJuPTaTvNJ88/17KRRiK4XrSVE0935s0jrdeItsZNX CUSC1lzJF8jZFcN++xpnDPuv9Lrk5uTLiY9fqwhyTv/qXpnA4RmWCd0KDAAPk/jopd+ive uQ+lf8j3lj8mMYWLhcV0hccM5qlC3HWHNtT/Cx5HgEG+9kOaPz6SCbWd0R8wd1ChiPE4Ag uKUWhnoI2lQhjtpiDkWk3mMp6iQTj4sXk7JLGRPqt89kh9E5XeOaSCDO97/wWihqIPOHD7 8VWP3sBJePnIG+zJWkGCdKS09VLxV5Wmhk3Oui4P6vY0sIis4A2DptimhLg/jw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkngh64Y0zskV; Thu, 7 Nov 2024 16:33:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7GXKD6072541; Thu, 7 Nov 2024 16:33:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7GXKq9072537; Thu, 7 Nov 2024 16:33:20 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:33:20 GMT Message-Id: <202411071633.4A7GXKq9072537@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 13774c9a98c9 - stable/13 - ndp: Remove a stray semicolon List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 13774c9a98c9abd90f573ed91c572c2b68e5e2e7 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=13774c9a98c9abd90f573ed91c572c2b68e5e2e7 commit 13774c9a98c9abd90f573ed91c572c2b68e5e2e7 Author: Zhenlei Huang AuthorDate: 2024-10-17 13:05:29 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 16:32:16 +0000 ndp: Remove a stray semicolon MFC after: 1 week (cherry picked from commit 17120e4bc3e61557816ca0558a60ab969b3df404) (cherry picked from commit 00fa80275f34586775e744d83ff94f8f42eaa696) --- usr.sbin/ndp/ndp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index c826fb8d241f..f744c35dd94f 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -603,7 +603,7 @@ dump(struct sockaddr_in6 *addr, int cflag) xo_emit(xobuf, "Neighbor", "Linklayer Address", "Netif", "Expire", "S", "Flags"); } xo_open_list("neighbor-cache"); -again:; +again: mib[0] = CTL_NET; mib[1] = PF_ROUTE; mib[2] = 0; From nobody Thu Nov 7 16:33:21 2024 X-Original-To: dev-commits-src-all@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 4Xkngk1tFXz5c6r5; Thu, 07 Nov 2024 16:33:22 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkngj70c8z4HtB; Thu, 7 Nov 2024 16:33:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997202; 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=aERtwmrrCzDfzKxP7nTawrJcfyR9RLV0e4VRi8vTwPE=; b=kP40VXBTCZbh0ai0QJc5XQKM1V5aUHX1z437plSg4zvIL/g3IU00H0vxjCg8i11iLfxHRA ODhqAMYEm/m/KOll/Yw6lQszq2IGuTW3hl0wc4u47Q0HXlbsP7XEoZNIvzayuo8ryfL//f nwOFN5vubMTl4ua0QzCJKQH1LWmG+3eUWVXIJSdWjtZd+zdcE7gkM7Ckc9hBAPLkiRnO/Y /HIOR4UPrxXz4JzOMxbCXF0z8pVn6U4rdcuiP+bHnbAwoW9ofaB+grKXWm6AcEdKdqdZAW J69lDX8uxJSwB0V6KODIZiA61qvYli8kdV1WmsJIyQW4iQbyt3RCCdFlLqzTnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997202; 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=aERtwmrrCzDfzKxP7nTawrJcfyR9RLV0e4VRi8vTwPE=; b=ovgQzi87gYAFSETpffFGNpS+X058X2pIZid4Fo7s70qtl5Agib1ssNB/J6p66CN8Zq4htv LdP2u1n/INW6flMoGnr5E+0gucHU8g920q37lXeO3UpbstsyPItfw0bjpNH0PmqP0sHmA+ lagNhCtNenYQT7V62kZzvjNHaW/oBDBMastqFmdxOqJwq+Esf+D6cLatEUlHKn9gl7vNIi nA5uB7ztJIWk5A2HIUf90Z1tFGARuAmSY5M+MLEsQH6yBEuPn82CVfHmHx8qqZCoH+ClUJ eHX5EfQqdCCe55sJB26eOgSzNfUgG1uoASTo6j/EHBjkJQ6F+dvVmgrcYtH19Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730997202; a=rsa-sha256; cv=none; b=GxvWyACo7ncXkPr3PMj33hjI0tDqPc8lJRYdyBB2o4nenRbk3hXrIyHULrbWS3lU3B9L+d tG3ArWVOh54sistH6F8Zxa5IoJWBLb+pnbkVWLR6xmFzl5cjJMpRCGQDHZHTqQWELYbTIF KUhOkRMlOkJLEhGOFiJtBXjYI8F/Ii98KNlzrrHECYcTspBmYBBs9BOV2QunIHHd5Y2wF1 H5T7iK+CnOtxzRqCj/2Qb1k+4qFui1Nfb8TLqkH7xzQQN02TFnkwMifXBuHGzVeSH343m3 UEZtcc+cYOTjKauB5eCfMisLu8tfZxtbGs7HbFlMa8lqk6SpiRX8s3Bv78kH2A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkngj6cy5zt17; Thu, 7 Nov 2024 16:33:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7GXL8L072598; Thu, 7 Nov 2024 16:33:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7GXLxv072593; Thu, 7 Nov 2024 16:33:21 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:33:21 GMT Message-Id: <202411071633.4A7GXLxv072593@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 5bf5b3f42761 - stable/13 - config: Remove a stray semicolon List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5bf5b3f4276141bcfc4f3bcb43ad8d0611b8e696 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=5bf5b3f4276141bcfc4f3bcb43ad8d0611b8e696 commit 5bf5b3f4276141bcfc4f3bcb43ad8d0611b8e696 Author: Zhenlei Huang AuthorDate: 2024-10-24 15:04:48 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 16:32:17 +0000 config: Remove a stray semicolon MFC after: 1 week (cherry picked from commit d96ba5a6236566afba05ce542296c589503a8b17) (cherry picked from commit 57af3009cb2911de5c8b3e09425d764d61c80792) --- usr.sbin/config/mkmakefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index b4a00e29707d..24b8a65c59cd 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -575,7 +575,7 @@ next: goto nextparam; } match &= not; -nextparam:; +nextparam: not = 0; } compile += match; From nobody Thu Nov 7 16:33:22 2024 X-Original-To: dev-commits-src-all@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 4Xkngl3phpz5c6rr; Thu, 07 Nov 2024 16:33:23 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkngl14gvz4HtQ; Thu, 7 Nov 2024 16:33:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997203; 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=fxp7C2goPpgalLo8Mc/mEqEuMLRZbYCclarrWNoHlIE=; b=itvOBTYD1ZVWi5LpQZ/i7gZaY6GzbA1wYq5YnBMx0wQcz2S9cZgpmq9UiHgJ3kEB4g5eOr +G18NPpyYyg3t2Hsv4M7Ieuei4t9XgwElWgv8gkbihCG4hz3EaPA20606ly8UqkWb08cgH jdl2HN19ZZCycETUXm0f3uV6D8MT3dWTlPEaVnckwHJjhQrQXI7mey+cITM9ZmX1eno+uH mFXHAB7E51XbfRP2L977/cF/nGEXdJEOw+y7kKt+k9X6yk+63kvRgFAERCgYfj64HXcvWo wgmki4ePJbOpT3UTIfMJ6uyIWvPabLKQhLpamRxD0qtkrbNCHlmYCBE/E9TMPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997203; 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=fxp7C2goPpgalLo8Mc/mEqEuMLRZbYCclarrWNoHlIE=; b=MejpD5mMVkBE027gfYOsrAiRpNEMK0D4C0efcv4Cx+AyCKksg+3KWOAUUsQS3Bwk4fG6Zk ie5io7Rr3hEnMku2WqCInt1OSYsBkMpC1Sg4VXaX6GLc0d7Wb0+/qqbXRs4ERoHdCaTfE4 zsZ7yvxAOsQ1mzHXRAd0CyUgVQb7oFyxcrCk7fcqcK1ujocrl1LZXpHOuEPAej6a2iULOw RXVsQy8Zdzh3EMEYvvGN2zCQZp7Jpy6w9E8zRRWHv6TPoiEkKEKjMfIwnN32+2dz7ZxR4b jbYOxp7OWPPup1IvmY0YKpDlm7MM/zTkvq/pC6eXj5OeNMxAIbJiR+B9L7Uy2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730997203; a=rsa-sha256; cv=none; b=g6XMOK75N0l/mRfuQZ0k2ks5w1weERiUBUnQ6teLK4kpLwPDLxJ6SoUGBiSTyqvyaQ8xQh o8qJFugVyJ1Qic0b78WdZ4C3WrOS8Gccl4b6kLrXIfpSi7H8BSW7aEEyJ2Te42sDiV1Yza BEfMzc2cM0NMz9pfKUyYS9mmUm3CHbeFZ32kNrhylwoHv0uHXfqOcWwhRgQSnsXoAH69me kkY8pCTg7eQ+IxP3v27Vtga/YVfdUBY6nfSmgTPbU6LyuzliG7TDHeOTLQB0orWtlG//bM gc8VZPWczWVMfR+91HdP3LdbHzWT35XW8cKmtN6yIVXu09pkb2MB2hts1Qu0jg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkngl0Xr1ztFL; Thu, 7 Nov 2024 16:33:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7GXMYS072645; Thu, 7 Nov 2024 16:33:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7GXMPp072642; Thu, 7 Nov 2024 16:33:22 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:33:22 GMT Message-Id: <202411071633.4A7GXMPp072642@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 0a196c47ce95 - stable/13 - makefs: Remove a stray semicolon List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0a196c47ce959c9bcf4f2e9903b83f6f195744e0 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=0a196c47ce959c9bcf4f2e9903b83f6f195744e0 commit 0a196c47ce959c9bcf4f2e9903b83f6f195744e0 Author: Zhenlei Huang AuthorDate: 2024-10-24 15:04:48 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 16:32:17 +0000 makefs: Remove a stray semicolon MFC after: 1 week (cherry picked from commit 56b17de1e8360fe131d425de20b5e75ff3ea897c) (cherry picked from commit 30e256e1faf4da7b89399340520d175fb6f2371d) --- usr.sbin/makefs/msdos/msdosfs_fat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/makefs/msdos/msdosfs_fat.c b/usr.sbin/makefs/msdos/msdosfs_fat.c index bb5eea457516..e09ba0755397 100644 --- a/usr.sbin/makefs/msdos/msdosfs_fat.c +++ b/usr.sbin/makefs/msdos/msdosfs_fat.c @@ -247,7 +247,7 @@ pcbmap(struct denode *dep, u_long findcn, daddr_t *bnp, u_long *cnp, int *sp) return (0); } -hiteof:; +hiteof: if (cnp) *cnp = i; if (bp) From nobody Thu Nov 7 16:33:24 2024 X-Original-To: dev-commits-src-all@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 4Xkngm5Y6Xz5c6r8; Thu, 07 Nov 2024 16:33:24 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkngm3xFZz4J1g; Thu, 7 Nov 2024 16:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997204; 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=dLLdTDw1fCfIE5JWNAWnk4W8HCnDNSicjd6dhoyyRs0=; b=tzejOe8pm8vegFSLCSs4zlpoWphe7sEWxB9fB3zOU2m2+JURBv59sFFvr8c18uSW/UBjA+ 0+8/L9hQjGZlAIK97qD+slpHbzRNTD+auA8oUw/LYR+7ogSz70BrjcO/Q9TL6m+e6Y2Wz5 TJhivjjAD9uk/Wpr69pAA2vfJPmbQxopIWmrdWREgdzU1R/EWB8Gv5KzajJzzKeQ0Jg0Nb 10PHBXGAx6QI3MIxl2JuUF3lwxHLhLbaJZe4QKKPVgWvWBd+XOsUmbsWD8CT8Z5xRTJNhJ DQ8keaZY2cyzBVAGZJHw2Fs+9ricBEia5D+DzzME2UvW4RaxmMJ2wLSlekIrGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997204; 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=dLLdTDw1fCfIE5JWNAWnk4W8HCnDNSicjd6dhoyyRs0=; b=G8gQT/YwiYKvpkdeqDY84a0Cpr4p+ofJ4G7+3a/BdxyM4GjxsJ7/YdUGcexSC87eAkla2E qf87/SrZ0JTSf08ABkCMCfKNUElhI6COK9snnotVJCcy+o5c2rwbmlsQ+cphoVrbMLmU/y LY+1/VMFnIUe0tzmsUiqqCfjmy5CfoOpniN+Ec8sGo6oy31L3MWsFqo3UTlMHJkz+gvgs0 aGBYQjGCOQiG96ueacmuCbsbxW8zrMcD627VUVHuzX1OGwoW+6HZ5qNLOmB+ymKDY8qo17 uVhcYEXHTQWCBv8nxyG83+RrvPJ0+HdF+bTyyWqd29SsLpa/c3BI86oZHNtDEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730997204; a=rsa-sha256; cv=none; b=FnXpqdr+QlMidDugLgklagCJRUUS8C+sCWfB67UWM9ka1I8RBsqn50Gy447xo4J2gDvCYn Hwv+rBiN0Yvcgr+pOJqjDorn7bgYRo0mbBawGGkL8icrRpLbwSlStcLQeIXxtdti8F1VxW dmJ2MuLBV2pVMDE5qnZm35YjCK0VmaX83doRNKJ9ruQ3KRpjIfgvzw33+eqk7lKign7FW1 EOKfmDwR6/0NUfdWq1q7osXjfhEfDHjgGT4d5z+9ELvGbz/aZDl3Ao0b4dbr1fREdwborh Z7wAmBYtz91TNUZRgstDIXKzIV78yyOj1adtbMKSy2oXaINDe9EfyN2ths/pZg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkngm1Rvyzt8M; Thu, 7 Nov 2024 16:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7GXO9I072693; Thu, 7 Nov 2024 16:33:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7GXOtu072690; Thu, 7 Nov 2024 16:33:24 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:33:24 GMT Message-Id: <202411071633.4A7GXOtu072690@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: ed01695d05b9 - stable/13 - LinuxKPI: Remove stray semicolons List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ed01695d05b93a577d1ea838b443af2dfb76dd3a Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=ed01695d05b93a577d1ea838b443af2dfb76dd3a commit ed01695d05b93a577d1ea838b443af2dfb76dd3a Author: Zhenlei Huang AuthorDate: 2024-10-24 15:04:48 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 16:32:17 +0000 LinuxKPI: Remove stray semicolons MFC after: 1 week (cherry picked from commit b4856b8e9d872ca6ee0c4ef43e7047693ef7645b) (cherry picked from commit 5942658cf3573bc3df9c378b688beb7549754773) --- sys/compat/linuxkpi/common/include/linux/kernel.h | 2 +- sys/compat/linuxkpi/common/include/linux/skbuff.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h index f6d3216e3b0f..0e248db760a4 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -718,7 +718,7 @@ static inline bool mac_pton(const char *macin, uint8_t *macout) { const char *s, *d; - uint8_t mac[6], hx, lx;; + uint8_t mac[6], hx, lx; int i; if (strlen(macin) < (3 * 6 - 1)) diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h index ee3f427aa6e9..73ad1404b194 100644 --- a/sys/compat/linuxkpi/common/include/linux/skbuff.h +++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h @@ -606,7 +606,7 @@ static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *head) { SKB_TRACE2(skb, head); - struct sk_buff *p, *n;; + struct sk_buff *p, *n; head->qlen--; p = skb->prev; From nobody Thu Nov 7 16:33:25 2024 X-Original-To: dev-commits-src-all@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 4Xkngn5LPsz5c6vK; Thu, 07 Nov 2024 16:33:25 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkngn2t0Hz4HrF; Thu, 7 Nov 2024 16:33:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997205; 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=hcSKa+ZhDMhEPe9tbmddhQKykDxycmfaPGDqZb2jNmU=; b=abdbB6sa6xQ65Lb9Yp6K26V+PaIOuRW749bPGwF3DyxbLiAnWBxHjpyFl65pvr2o5S4lxr Y6Khg3W/IVrheshGHaucGH0Q5ZPWkWvcO1Y/KINNTQ8Q5kRirpLTikh7amsIDXUu/ZL8A4 lNB9byurXbiRl0KvSBbKHn83fzlKPkbiOveF8VqVCJ34rEHZrsFt5qwn5QPomN9Lam2sGV dnY4JuQHUylIMLdghzsMwkTYMu2aGiQRvXKFDbGCDZog6VofXT/LehbQAi9mdWM0ZpUw0K YUMZm5RkxPo99E6Hs61c97Pw0mWjMl9YdElDeKvY2f92gthCWN5l+s7ALrS/Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730997205; 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=hcSKa+ZhDMhEPe9tbmddhQKykDxycmfaPGDqZb2jNmU=; b=R+/pw2waRPuZs1OQiANsg17kbwRBeyFyKynyS05vg5wqRS1m7Em3WQM/Y0corktGB6sXDy Og1JRk6msBpE9As15RKipqwuzM6dxmghyxbaGCpX9Mqva23Sb6LAGsqodb5VnEg/KmNkoR ojpmG+M7xyxeqXpo7skrQovyToIe9tdGNC6MH+ges3wDx3Nz+eEOHWCOtNdvLo48Uje1Vx I2V1vP28WxDv0bheMLY39xXErGcajwjrHlS/z3QH2kNboBYqGLBqP7osgl5YvuYixc/Jli Am6jPzcZXNanuGrlAE+V+PMoeX+tojYEkIi7934LjgXq5Ht/MrTk5x17walS4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730997205; a=rsa-sha256; cv=none; b=EkCx6GLWxO6fx7tmpM4XZsn1AYwRMj+ZEnJuiyPdoKS92v4dNvpDflIVZ2QE742K3P9TaA hLgacAQqYuJNot5X3fN5pdx1lib6+7EcEQya3bX0l9uKy0rFlbqZ874Q3vTpgBy/OKoMSR zVG1QQbtRh0OzhZ2f4R+sfAchYp8p5krTUZYBL+KFY208irFu4iwXMZxfnM//QSyHS8O1y t55YS532Sa88G97955++ZTdl2Lz4OQLLZxBx7SGNV9w0mhQY8fp5luD5/Qvv+UAsD1S+R+ 8IdK7GWDxFLch5mFpMhp+6CI7Q41PssFziDqudRqYk0IRsvei/EQMCtWKjgvSQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkngn2V01ztFM; Thu, 7 Nov 2024 16:33:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7GXPE4072735; Thu, 7 Nov 2024 16:33:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7GXPtO072732; Thu, 7 Nov 2024 16:33:25 GMT (envelope-from git) Date: Thu, 7 Nov 2024 16:33:25 GMT Message-Id: <202411071633.4A7GXPtO072732@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 69d334e3bf2a - stable/13 - ocs_fc: Remove a stray semicolon List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 69d334e3bf2aece6683ffff0fd5928c8c2dddc59 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=69d334e3bf2aece6683ffff0fd5928c8c2dddc59 commit 69d334e3bf2aece6683ffff0fd5928c8c2dddc59 Author: Zhenlei Huang AuthorDate: 2024-10-24 15:04:50 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 16:32:17 +0000 ocs_fc: Remove a stray semicolon MFC after: 1 week (cherry picked from commit 36756195a342dbfb8fcfc7561b1d656fc6310d05) (cherry picked from commit 02e61e1d9e02cb76706d4e82b5f56df20f9802aa) --- sys/dev/ocs_fc/ocs_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ocs_fc/ocs_hw.c b/sys/dev/ocs_fc/ocs_hw.c index 9b368e32ce32..a437342bd0d0 100644 --- a/sys/dev/ocs_fc/ocs_hw.c +++ b/sys/dev/ocs_fc/ocs_hw.c @@ -12192,7 +12192,7 @@ ocs_hw_set_persistent_topology(ocs_hw_t *hw, uint32_t topology, uint32_t opts) param.persistent_topo = SLI4_INIT_LINK_F_P2P_FAIL_OVER; param.topo_failover = 1; } else { - param.persistent_topo = SLI4_INIT_LINK_F_P2P_ONLY;; + param.persistent_topo = SLI4_INIT_LINK_F_P2P_ONLY; param.topo_failover = 0; } break; From nobody Thu Nov 7 18:31:27 2024 X-Original-To: dev-commits-src-all@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 4XkrHz2s0Vz5cM6v; Thu, 07 Nov 2024 18:31:27 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkrHz2Mbcz4Xs8; Thu, 7 Nov 2024 18:31:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731004287; 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=DSRBUDIDOG7TuRH6pN4ZEhX9gx0eziCzQqPeNoP5Ugo=; b=yik3bq1uOJz3MUlzCiiis8HKna/06LCrJvwNZPhJB5V4QzVCB0V0olRslJAgTotQUykp2c hUbY3vIfBj1WEBMbYUwJI2K0U2foI7cm0NgDbYUS6Pvim1LGmxC/CKIudChabcXBDe4zKU UxLviGAyDddgpzUYzmUcqWYlphqdp+ZZCB5DjvQRexYGmrxd44Ze+pagZ9w8GLdlIoFsRu 2o2IFdxV41pq6ciKPM6T3lfCxc9sblqkZ1V13UG1HgqLRD9Kesz9zqFOH8UvjWaQCmRkhD sGrvBy7Skg7vdY8FWaVK62UDkAGLHFV+3HsgfpQmhtJ2QzExwoMDqOtvfpq4Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731004287; 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=DSRBUDIDOG7TuRH6pN4ZEhX9gx0eziCzQqPeNoP5Ugo=; b=DAf7VDC+JQOu3uj4Jp0yM0+cEx3z4N2H8Z+GuxOZu2HDpsLlLuIW+ASH2WaZVkJQt8Z17O 7O52TyMgPN3MGgS3eA8VHisXehT0TpaXKWMp09ns8r9QdLeLSyBh7BaYwP+EftG2BERbsi bAI0MxajZ1PA+byPIV6N3cpPoVNgrpvGYSWyT+zWvd9apw7cCCgsD98tEVUuPgkjzAOPDk zYpxbLOvf7IPV+tg4C78RGEo7bTI7pdc0Kagl2jd3eskrA3GVloEWig4mfeVySdXK3O5XG Rv/DNZDqnvlr3uQB3FgafPxi/st2AV7dgC1HyE6qyPXHSGeHCl+4tv00+KxAuw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731004287; a=rsa-sha256; cv=none; b=e97HC+TzTgoDjJBE6wSgrbeGJWxv2669ozP4nazvI+QgbX1H391bXDafkSAvO2sW4MSgVN rtgopHr9KjjnJugnMNWPccNwJf0Q3sIFxikEwsA9zaqJ4L9E2BTm9DvoFL2D/zEylmwi5h nh0ElXZODaKg8Y1Ta3Tzxm3x39enCpd6hpBlmgEWM8zw+XRwM2iFtt+ic+whDWxj4frvX6 1BY1oftHZLeGP4dtBSSGE89MUfklE6ED46Azhyj5RUptGov9cuPqUspkuDTIZGmjRlrYk+ FqauIp2C6aPnP+Rnsn8QfEZwA9ZVFzdlJrz6sF09Qbh4yFySbKAPjtlk+GRVCw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkrHz1yhVzx0s; Thu, 7 Nov 2024 18:31:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7IVReU093626; Thu, 7 Nov 2024 18:31:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7IVRPO093623; Thu, 7 Nov 2024 18:31:27 GMT (envelope-from git) Date: Thu, 7 Nov 2024 18:31:27 GMT Message-Id: <202411071831.4A7IVRPO093623@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 1d99e8d9a37e - main - p9fs: Use UNLINKAT instead of REMOVE to implement removals List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1d99e8d9a37e1ba528628186df57b79fe74e196c Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=1d99e8d9a37e1ba528628186df57b79fe74e196c commit 1d99e8d9a37e1ba528628186df57b79fe74e196c Author: Mark Johnston AuthorDate: 2024-11-07 18:23:32 +0000 Commit: Mark Johnston CommitDate: 2024-11-07 18:23:32 +0000 p9fs: Use UNLINKAT instead of REMOVE to implement removals REMOVE doesn't work properly in the face of hard links. Use UNLINKAT instead, which is implemented by qemu and bhyve and lets the client specify the name being removed. PR: 282432 Reviewed by: dfr Differential Revision: https://reviews.freebsd.org/D47438 --- sys/fs/p9fs/p9_client.c | 21 +++++++++++++++++++++ sys/fs/p9fs/p9_client.h | 1 + sys/fs/p9fs/p9_protocol.h | 2 ++ sys/fs/p9fs/p9fs_vnops.c | 21 ++++++++++++++------- 4 files changed, 38 insertions(+), 7 deletions(-) diff --git a/sys/fs/p9fs/p9_client.c b/sys/fs/p9fs/p9_client.c index 45d24870306c..547de98c4c03 100644 --- a/sys/fs/p9fs/p9_client.c +++ b/sys/fs/p9fs/p9_client.c @@ -669,6 +669,27 @@ p9_client_remove(struct p9_fid *fid) return (error); } +int +p9_client_unlink(struct p9_fid *dfid, const char *name, int32_t flags) +{ + int error; + struct p9_client *clnt; + struct p9_req_t *req; + + error = 0; + clnt = dfid->clnt; + + req = p9_client_request(clnt, P9PROTO_TUNLINKAT, &error, "dsd", + dfid->fid, name, flags); + if (error != 0) { + P9_DEBUG(PROTO, "RUNLINKAT fid %d\n", dfid->fid); + return (error); + } + + p9_free_req(clnt, req); + return (error); +} + /* Inform the file server that the current file represented by fid is no longer * needed by the client. Any allocated fid on the server needs a clunk to be * destroyed. diff --git a/sys/fs/p9fs/p9_client.h b/sys/fs/p9fs/p9_client.h index 8597c0732ba3..79d402c174e8 100644 --- a/sys/fs/p9fs/p9_client.h +++ b/sys/fs/p9fs/p9_client.h @@ -140,6 +140,7 @@ int p9_client_write(struct p9_fid *fid, uint64_t offset, uint32_t count, char *d int p9_client_file_create(struct p9_fid *fid, char *name, uint32_t perm, int mode, char *extension); int p9_client_remove(struct p9_fid *fid); +int p9_client_unlink(struct p9_fid *dfid, const char *name, int32_t flags); int p9_dirent_read(struct p9_client *clnt, char *buf, int start, int len, struct p9_dirent *dirent); int p9_client_statfs(struct p9_fid *fid, struct p9_statfs *stat); diff --git a/sys/fs/p9fs/p9_protocol.h b/sys/fs/p9fs/p9_protocol.h index ddd8571adc8d..7ffd7dd67bcf 100644 --- a/sys/fs/p9fs/p9_protocol.h +++ b/sys/fs/p9fs/p9_protocol.h @@ -267,6 +267,8 @@ struct p9_iattr_dotl { #define P9PROTO_TGETATTR_BLK 512 +#define P9PROTO_UNLINKAT_REMOVEDIR 0x200 + /* PDU buffer used for SG lists. */ struct p9_buffer { uint32_t size; diff --git a/sys/fs/p9fs/p9fs_vnops.c b/sys/fs/p9fs/p9fs_vnops.c index 14951e96b59d..cfb50c704019 100644 --- a/sys/fs/p9fs/p9fs_vnops.c +++ b/sys/fs/p9fs/p9fs_vnops.c @@ -1497,7 +1497,8 @@ out: * After that, does a node metadata cleanup on client side. */ static int -remove_common(struct p9fs_node *np, struct ucred *cred) +remove_common(struct p9fs_node *dnp, struct p9fs_node *np, const char *name, + struct ucred *cred) { int error; struct p9fs_session *vses; @@ -1508,21 +1509,23 @@ remove_common(struct p9fs_node *np, struct ucred *cred) vses = np->p9fs_ses; vp = P9FS_NTOV(np); - vfid = p9fs_get_fid(vses->clnt, np, cred, VFID, -1, &error); + vfid = p9fs_get_fid(vses->clnt, dnp, cred, VFID, -1, &error); if (error != 0) return (error); - error = p9_client_remove(vfid); + error = p9_client_unlink(vfid, name, + np->v_node->v_type == VDIR ? P9PROTO_UNLINKAT_REMOVEDIR : 0); if (error != 0) return (error); /* Remove all non-open fids associated with the vp */ - p9fs_fid_remove_all(np, TRUE); + if (np->inode.i_links_count == 1) + p9fs_fid_remove_all(np, TRUE); /* Invalidate all entries of vnode from name cache and hash list. */ cache_purge(vp); - vfs_hash_remove(vp); + np->flags |= P9FS_NODE_DELETED; return (error); @@ -1537,8 +1540,10 @@ p9fs_remove(struct vop_remove_args *ap) struct vnode *dvp; struct p9fs_node *dnp; struct p9fs_inode *dinode; + struct componentname *cnp; int error; + cnp = ap->a_cnp; vp = ap->a_vp; np = P9FS_VTON(vp); dvp = ap->a_dvp; @@ -1550,7 +1555,7 @@ p9fs_remove(struct vop_remove_args *ap) if (vp->v_type == VDIR) return (EISDIR); - error = remove_common(np, ap->a_cnp->cn_cred); + error = remove_common(dnp, np, cnp->cn_nameptr, cnp->cn_cred); if (error == 0) P9FS_DECR_LINKS(dinode); @@ -1566,8 +1571,10 @@ p9fs_rmdir(struct vop_rmdir_args *ap) struct vnode *dvp; struct p9fs_node *dnp; struct p9fs_inode *dinode; + struct componentname *cnp; int error; + cnp = ap->a_cnp; vp = ap->a_vp; np = P9FS_VTON(vp); dvp = ap->a_dvp; @@ -1576,7 +1583,7 @@ p9fs_rmdir(struct vop_rmdir_args *ap) P9_DEBUG(VOPS, "%s: vp %p node %p \n", __func__, vp, np); - error = remove_common(np, ap->a_cnp->cn_cred); + error = remove_common(dnp, np, cnp->cn_nameptr, cnp->cn_cred); if (error == 0) P9FS_DECR_LINKS(dinode); From nobody Thu Nov 7 18:40:21 2024 X-Original-To: dev-commits-src-all@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 4XkrVJ6GJlz5cMkj for ; Thu, 07 Nov 2024 18:40:24 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (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 4XkrVJ1ckqz4YTs for ; Thu, 7 Nov 2024 18:40:24 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=bKsqRKm0; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::d2a as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org; dmarc=none Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-83aad4a05eeso47996339f.1 for ; Thu, 07 Nov 2024 10:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1731004823; x=1731609623; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=CQ8tRD4mee3MG0lNgBTYS7alPkUQz18Pzvb0uA/MAMc=; b=bKsqRKm0aZLhOBGfWxye+06BElSWDFQVdisX9Q894lZ2TyH3e0zQaaXrT1BJf/gyDS yVHNHIi4W0KZNez/3tSHa2x/G8JdiVokIbJNkw/qfyOq4ab3lKIbXyOQgjiRFsX6qXJo hLnOPNsiZF25VGlUSTOcrmMlmE3T+0x/a3E2w6GBarlG4KoPsTEsYYYOfR7GouSDL0fA sHyaH9vF5dPJJutBg+vPVa00HpaTiY0Ak/wGSgTyJt3itZ6DWa4JQibr62omivFuSf+U HrRdWhwEF6IHC0oC8byPu27Wz4WxzWIb7Fsi7qsfRDla/cBCnkqHr50Q27fJC9lqgqDV gF7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731004823; x=1731609623; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CQ8tRD4mee3MG0lNgBTYS7alPkUQz18Pzvb0uA/MAMc=; b=g595l392dpWh84JA+tTlYJAnHggmJndL4aakeTAaO+2Q9uQF4fm1ou6C/HIXlwTZkx GBiqCIS7L7OphCj1ZSSNG4gdlHe+JcDh3txM4vsI6a+IF7tsDdEY6isnoQyYF7WdRqOk TjHLhAxS9P93X8QJv7edORr0Vj71XX2HeYteDDPqXM5i26mgouMIDLuA+ftunt0f+IbU pKb9nRHUBbtnFsrI/n81t9ooDuT4qH2iYGfZJexcV3ySmVK8pULlbuZaJzjf9OpMmEng 5AuVUaWYMT82con7RGqVvOMPjQvq+V3iUfY3DPJfB/n7YVbCHRucbYT6+PM6D0ZEt1dS SslQ== X-Forwarded-Encrypted: i=1; AJvYcCWoPfPTPzOvICmF+4mqyzg3ENmA1+Mfi3s0HSXepbzmK99Eh6uPmVuJrkRbArF692+AW8qtDr5vlqRvphMm8O+uJV8P@freebsd.org X-Gm-Message-State: AOJu0YyfYhcCLXFocZVIrkmiFmZ3WVBS/061t07gzgwBAGuFuhGIvJXU oVn+v27N9/HCyCbXGRyDBW9Yr4NiH83J6wfRep/Mgzf+JgBDb0iBS0TNKCWBsIo= X-Google-Smtp-Source: AGHT+IEbO4LZ1V8chM6XOlQ46eZ5xQd1ulremTzEfQTs5Zu5prdQUha9ZTO2swEcscpE6tt8Q5W8aw== X-Received: by 2002:a92:c264:0:b0:3a6:bb77:a362 with SMTP id e9e14a558f8ab-3a6f199037bmr3154345ab.4.1731004822672; Thu, 07 Nov 2024 10:40:22 -0800 (PST) Received: from mutt-hbsd (174-24-91-193.clsp.qwest.net. [174.24.91.193]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4de5f7e35cfsm430686173.27.2024.11.07.10.40.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 10:40:21 -0800 (PST) Date: Thu, 7 Nov 2024 18:40:21 +0000 From: Shawn Webb To: Corvin =?utf-8?B?S8O2aG5l?= Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: d93fbcf0222b - main - bhyve: TPM 2.0 emulation with swtpm Message-ID: X-Operating-System: FreeBSD mutt-hbsd 15.0-CURRENT-HBSD FreeBSD 15.0-CURRENT-HBSD X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <202410221206.49MC6pt3085294@gitrepo.freebsd.org> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gzn2iwiddjqor6t3" Content-Disposition: inline In-Reply-To: <202410221206.49MC6pt3085294@gitrepo.freebsd.org> X-Spamd-Result: default: False [-5.08 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.983]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2a:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[hardenedbsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-all@freebsd.org]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org]; DKIM_TRACE(0.00)[hardenedbsd.org:+] X-Rspamd-Queue-Id: 4XkrVJ1ckqz4YTs X-Spamd-Bar: ----- --gzn2iwiddjqor6t3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 22, 2024 at 12:06:51PM UTC, Corvin K=F6hne wrote: > The branch main has been updated by corvink: >=20 > URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd93fbcf0222b05fcd7704b35bc= 94e5513c2682e2 >=20 > commit d93fbcf0222b05fcd7704b35bc94e5513c2682e2 > Author: Hans Rosenfeld > AuthorDate: 2024-09-09 08:45:40 +0000 > Commit: Corvin K=F6hne > CommitDate: 2024-10-22 12:04:24 +0000 >=20 > bhyve: TPM 2.0 emulation with swtpm > =20 > Implement a TPM 2.0 emulation backend to connect to a running swtpm > instance using a UNIX domain socket. > =20 > Reviewed by: corvink > MFC after: 1 week Hey Corvin, Are you still planning on MFCing this? Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --gzn2iwiddjqor6t3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmctCY0ACgkQ/y5nonf4 4frMchAAgekolPPRkGDbBADN1GdskqnF4/ezDFmrRvDyx4Z3iIPSnsEAgbhFwtIN h+L4mjt4MCQc/xcrDOT47c+wta1O1QDD5vFR+vXvNZczqVMr05XAHymcsl7edMxn ZFMMWOOtdnuf63eaesSQkSi7FaMdyV8rEWh2TNqInm0YeEPwWmRJld3f76vKDzbh 6KChf7GwD2wQFQhmWcq77UnjT1NBRF7qrU2RAsl5Ayi7+GLI0xUewEf/+E/Zjpj6 kEw5x9m+EV9euuIi3FuHwWSj7WCVcvu73XfWw79CLeLs7N3k6qDnoIjXygYl5BWd RkZ+gJsEFV7HBJ3NGYjWpU9Yhl0SrnTbVXjFw0aTMx/kFail0S7bH2HoFKZ8w42X /NiAymw9Kskqqzhp6bD8gustiCqpA9peLV6+x8EHAg07yr7P7yFke8kCYubDn0kC kq3x7GIDxMqPOH9HDf6qYae+q0zUgb3Ngkg6cem8D667Wpttk24jWp+BMzJ46Tp8 MIBhmbfR5jOiFEYfs/61l0X3U5W8iHl/s4a684cJdm4FxyktbmVUdNiNeRQqGuPO xPzM2sP/xwIoppmGvq768tjA/EYx3fr86ImrB8dK3xtfTGzNFjVPpz/0IIy5/Kwi CvjsH45GEa+wMuZMj3OVKIrhprGfXwFSmD/DV653AqdDS87OBcg= =KwBF -----END PGP SIGNATURE----- --gzn2iwiddjqor6t3-- From nobody Thu Nov 7 18:49:43 2024 X-Original-To: dev-commits-src-all@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 4Xkrj41Y8dz5cNb3; Thu, 07 Nov 2024 18:49:44 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkrj34cmZz4bNy; Thu, 7 Nov 2024 18:49:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731005383; 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=mkfjCHMsRVaq15nrF9wNbaFnrEsB2hR1b0qMNEFYwio=; b=hNgUgl0cM6uxAJthvJtl+bT2LNPRAaAbSfeXfo+MxAgiyk6i59ulw9Npqc3RnmzjdL9UoZ k9jdxQiqC0XhSWxohxKscytjKKzGi96v+C6U0bNDPjG5R76OER6dSXIm7gL5BRzdLtmQUz 9BsgQ1YubV7DMaNQtpPnwQclHJiy6r4YCK7Ti/EH9pD97XQr88MMBfGrCu9XHPrKcmnglN uEwWZ0dqwGqrIx4C/sZjbEzo2tu8Ovf/snkc4kJem2+qsxGCWZnMTJ8g1A8zRPDZPVvuk6 FcPXWt38oWS30aH6Tmwyh3RsFE5c3KH+WPID4ALFHEODy0Ny6vSpiXH4WNnT5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731005383; 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=mkfjCHMsRVaq15nrF9wNbaFnrEsB2hR1b0qMNEFYwio=; b=q29xVp2hP+mxX3wI7zbncZqO7AFe4H4K0Jst5lNrveNhSefe+wCKcsjKD9284V321UzUKd RcSfuyusy+lgrpH0z1Qq1AkvCiiR2SUzRkgwqrav7dr0odsCAtDDm5N7orl05tAyayNQIo v0yz1EXHJHYpES32TLC+AsIfRqruPW5E+XRWxC23uc9z/j61VMe2b3QZcKsbONm8lA44a8 EolOA5KIkVBuUwnnzWebSKfKtqx9Fxaux6E1pmzQVBCFeDE8yaK5pN5TMs1+YR7BBRoZqH 5kXic+RKiVOjMHf1FDNryTaGbzpAz1cnCoM9s2GeoIywJT/gZ1EnrVnOzqw15Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731005383; a=rsa-sha256; cv=none; b=bWtb0feMcgIHp+fKhh6WPCzX8WPwFC/6FpNLLr7GFepFwdLMj788ZPqvszfE96ixsbqRKN PVAFISvIUGcB+FAOF+XUdHc+jQ6Uv2pfs5beAAmsdwBbsvRHSZtaKAeDBOi3a8ME4UlkF6 n44V47QvWYANHx1B0F/NssCSwLTXLrcSYYh7XC7a7TBe85zrreXdiK52+LxCI8ujiwPXI4 KAtEfUwnSUzv9FlebM9kB+/q5p1kd1sZ3RBzO5wFz0erSxjMv2JYQYHZlbKUVAZQyZYUlg imPsX5tZ8e6bF2HZcgjvmLMjur78BcgZriqPc1Nhs9MQEBbYBor2FrrofyrNAw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkrj335Fszx0K; Thu, 7 Nov 2024 18:49:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7InhDL015905; Thu, 7 Nov 2024 18:49:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7InhEs015902; Thu, 7 Nov 2024 18:49:43 GMT (envelope-from git) Date: Thu, 7 Nov 2024 18:49:43 GMT Message-Id: <202411071849.4A7InhEs015902@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: e434c56fcd4f - main - rtld_get_var.3: fix typo List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e434c56fcd4f9eee04ac6bb5e0cf028db3006be3 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e434c56fcd4f9eee04ac6bb5e0cf028db3006be3 commit e434c56fcd4f9eee04ac6bb5e0cf028db3006be3 Author: Konstantin Belousov AuthorDate: 2024-11-07 18:48:28 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-07 18:48:28 +0000 rtld_get_var.3: fix typo Noted by: Christos Longros @github MFC after: 3 days --- lib/libc/gen/rtld_get_var.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/rtld_get_var.3 b/lib/libc/gen/rtld_get_var.3 index 06d2e8a41cbc..e211d78345e3 100644 --- a/lib/libc/gen/rtld_get_var.3 +++ b/lib/libc/gen/rtld_get_var.3 @@ -44,7 +44,7 @@ .Sh DESCRIPTION The dynamic linker .Xr rtld 1 -can be configured be setting some environment variables for the process, +can be configured by setting some environment variables for the process, before image activation. Sometimes it is desirable to query the current effective settings or change them afterward. From nobody Thu Nov 7 20:38:54 2024 X-Original-To: dev-commits-src-all@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 4Xkv723h6Cz5cZZZ; Thu, 07 Nov 2024 20:38:54 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkv722lGrz3ww2; Thu, 7 Nov 2024 20:38:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731011934; 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=uMZFnrVknnmbSCi4rUJ146B75tUqLYpMkc31JFJ0IcQ=; b=rmoS4C/P/e5c4v5yhglEXSQ/rTDUIcF2VJL/aGqXoUePpa6zpmZUaqtRMABXd/OR0bMq5/ uIwIVrWcrFCsvCDoPTwllhvoCzCZCZ7zPQK9ou4aC9SlU6AeXWilTX19K+RXmox16I9MXJ nmxTJ1xGOgqM+VJNrQGA9shom4DMkp2dXbq1YgmoU8Z10qsC0j/1zsCqaxgEseRNomwarc s1N0P72En2UKmWtEhLAx7nU6JBU9cJqV7f+kpJK31JZLpOJtIdbUukRcUi7KCgkHmd4QPY rS1o3d9SwHabGblVlvFFiE/B9PIe+Y8QOpSK+AC1XJRDMQZJyXBG0YlQulAeJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731011934; 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=uMZFnrVknnmbSCi4rUJ146B75tUqLYpMkc31JFJ0IcQ=; b=m1eVNf0wQdiihn0l4Pz9flqmn5OS82ME8MqUzP3OUDsxFvi/A2NOUk5IgI1Y1mbNXQ130p VtlOjxJBiuPm97+QvGmZeYundcFqW+K9eicFVeGqBTQyIk/x6utyiZlrJMYboYreCXQzda UJKnB2Ux+B7tPILlSAeQEQNB3Y3ObZseDu++kqryiajeniyRWI+tQQD74xLB9z0NShSNek jYaMhEmjL0T+Xwzy2xbj6mID6ipcXn4NbuUgX88hYRVl6amYG6umA3mwcmN/WCNM8XPwT/ 4rUJcyIYLXFJ3R62oxW8StteerlXhy+RVCDw2P3w+hbGSBu9LFs/zrQSPaj5lg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731011934; a=rsa-sha256; cv=none; b=OjhIfdHVReza59gyvaNXSY98rspYxKpmQyVhFcVDbxm7KGlf1CJjrymuWA4xOwN5tQ85II 26oEB1+wgRB6+Y5qoSo6P58Gmc1uXUyfLMR89JPoeT7YHGVQkGd36LE1UJnDSZ2uA0IRLW qcQNzkA8q1IohqHVZRRuTeWctcQ1nsst0HP/tQDKYqnweGSbFZDSh/3ZgHHVFgJ7Xv/EKF a1mEYlBlMWf2irQc8GL2UHKyJhdFJZdkfRtHenuMJOBVGjrDP1b7DPWZKBVJqydwE6Tp4c jz78+WpsnNBt5+7ETic1+7RsZc/CnmEOH47MMgmmf8LsX+EgF7ygOex1fUAThg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkv7223l6z118q; Thu, 7 Nov 2024 20:38:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7Kcskr019886; Thu, 7 Nov 2024 20:38:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7KcsDC019883; Thu, 7 Nov 2024 20:38:54 GMT (envelope-from git) Date: Thu, 7 Nov 2024 20:38:54 GMT Message-Id: <202411072038.4A7KcsDC019883@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 541e7a98b762 - main - ukbd: Enable ukbd_apple_swap for all Apple ISO keyboards List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 541e7a98b762916cd951a64dd7e77efd51dfa8dc Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=541e7a98b762916cd951a64dd7e77efd51dfa8dc commit 541e7a98b762916cd951a64dd7e77efd51dfa8dc Author: Frank Hilgendorf AuthorDate: 2024-11-01 19:37:38 +0000 Commit: Mark Johnston CommitDate: 2024-11-07 20:38:38 +0000 ukbd: Enable ukbd_apple_swap for all Apple ISO keyboards Key code swapping between [<>] and [^°] key is enabled for all Apple ISO type keyboards. Before, swapping was enabled when the Eject key was detected in HID usage. This did not correlate well with the swapped keys presence. usbdevs file is extended by several Apple keyboard models to support ISO model identification. Reviewed by: markj MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/1506 --- sys/dev/usb/input/ukbd.c | 72 ++++++++++++++++++++++++++++++++++++++++++++---- sys/dev/usb/usbdevs | 42 ++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+), 6 deletions(-) diff --git a/sys/dev/usb/input/ukbd.c b/sys/dev/usb/input/ukbd.c index f33ae6e8a620..9ff093628312 100644 --- a/sys/dev/usb/input/ukbd.c +++ b/sys/dev/usb/input/ukbd.c @@ -72,6 +72,8 @@ #include +#include "usbdevs.h" + #ifdef EVDEV_SUPPORT #include #include @@ -173,13 +175,19 @@ struct ukbd_softc { #define UKBD_FLAG_ATTACHED 0x00000010 #define UKBD_FLAG_GONE 0x00000020 -#define UKBD_FLAG_HID_MASK 0x003fffc0 -#define UKBD_FLAG_APPLE_EJECT 0x00000040 -#define UKBD_FLAG_APPLE_FN 0x00000080 -#define UKBD_FLAG_APPLE_SWAP 0x00000100 +/* set in ukbd_attach */ +#define UKBD_FLAG_APPLE_SWAP 0x00000040 +/* set in ukbd_parse_hid */ +#define UKBD_FLAG_APPLE_EJECT 0x00000080 +#define UKBD_FLAG_APPLE_FN 0x00000100 #define UKBD_FLAG_NUMLOCK 0x00080000 #define UKBD_FLAG_CAPSLOCK 0x00100000 #define UKBD_FLAG_SCROLLLOCK 0x00200000 +#define UKBD_FLAG_HID_MASK UKBD_FLAG_APPLE_EJECT | \ + UKBD_FLAG_APPLE_FN | \ + UKBD_FLAG_NUMLOCK | \ + UKBD_FLAG_CAPSLOCK | \ + UKBD_FLAG_SCROLLLOCK int sc_mode; /* input mode (K_XLATE,K_RAW,K_CODE) */ int sc_state; /* shift/lock key state */ @@ -296,6 +304,48 @@ static const uint8_t ukbd_boot_desc[] = { 0xff, 0x00, 0x81, 0x00, 0xc0 }; +static const STRUCT_USB_HOST_ID ukbd_apple_iso_models[] = { + /* PowerBooks Feb 2005, iBooks G4 */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_FOUNTAIN_ISO) }, + /* PowerBooks Oct 2005 */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_GEYSER_ISO) }, + /* Core Duo MacBook & MacBook Pro */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_GEYSER3_ISO) }, + /* Core2 Duo MacBook & MacBook Pro */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_GEYSER4_ISO) }, + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_GEYSER4_HF_ISO) }, + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_ALU_MINI_ISO) }, + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_ALU_ISO) }, + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_ALU_REVB_ISO) }, + /* MacbookAir, aka wellspring */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING_ISO) }, + /* MacbookProPenryn, aka wellspring2 */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING2_ISO) }, + /* Macbook5,1 (unibody), aka wellspring3 */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING3_ISO) }, + /* MacbookAir3,2 (unibody), aka wellspring4 */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING4_ISO) }, + /* MacbookAir3,1 (unibody), aka wellspring4 */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING4A_ISO) }, + /* Macbook8 (unibody, March 2011) */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING5_ISO) }, + /* Macbook8,2 (unibody) */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING5A_ISO) }, + /* MacbookAir4,2 (unibody, July 2011) */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING6_ISO) }, + /* MacbookAir4,1 (unibody, July 2011) */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING6A_ISO) }, + /* MacbookPro10,1 (unibody, June 2012) */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING7_ISO) }, + /* MacbookPro10,2 (unibody, October 2012) */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING7A_ISO) }, + /* MacbookAir6,2 (unibody, June 2013) */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING8_ISO) }, + /* MacbookPro12,1 */ + { USB_VP(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_WELLSPRING9_ISO) }, +}; + + /* prototypes */ static void ukbd_timeout(void *); static void ukbd_set_leds(struct ukbd_softc *, uint8_t); @@ -1001,8 +1051,7 @@ ukbd_parse_hid(struct ukbd_softc *sc, const uint8_t *ptr, uint32_t len) hid_input, 0, &sc->sc_loc_apple_eject, &flags, &sc->sc_id_apple_eject)) { if (flags & HIO_VARIABLE) - sc->sc_flags |= UKBD_FLAG_APPLE_EJECT | - UKBD_FLAG_APPLE_SWAP; + sc->sc_flags |= UKBD_FLAG_APPLE_EJECT; DPRINTFN(1, "Found Apple eject-key\n"); } if (hid_locate(ptr, len, @@ -1138,6 +1187,17 @@ ukbd_attach(device_t dev) sc->sc_fkeymap[n] = fkey_tab[n]; } + /* check if this is an Apple keyboard with swapped key codes + * apparently, these are the ISO layout models + */ + DPRINTF("uaa vendor: 0x%04x, uaa product 0x%04x\n", uaa->info.idVendor, uaa->info.idProduct ); + if (usbd_lookup_id_by_uaa(ukbd_apple_iso_models, sizeof(ukbd_apple_iso_models), uaa) == 0) { + sc->sc_flags |= UKBD_FLAG_APPLE_SWAP; + DPRINTF("UKBD_FLAG_APPLE_SWAP set\n"); + } else { + DPRINTF("UKBD_FLAG_APPLE_SWAP not set\n"); + } + kbd_set_maps(kbd, &sc->sc_keymap, &sc->sc_accmap, sc->sc_fkeymap, UKBD_NFKEY); diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index 61c7686da957..9a2f6a41c499 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -1141,10 +1141,38 @@ product AOX USB101 0x0008 Ethernet product APPLE IMAC_KBD 0x0201 USB iMac Keyboard product APPLE KBD 0x0202 USB Keyboard M2452 product APPLE EXT_KBD 0x020c Apple Extended USB Keyboard +/* PowerBooks Feb 2005, iBooks G4 */ +product APPLE FOUNTAIN_ANSI 0x020e Apple Internal Keyboard/Trackpad +product APPLE FOUNTAIN_ISO 0x020f Apple Internal Keyboard/Trackpad +/* 17 inch PowerBook */ +product APPLE GEYSER_17 0x020d Apple Internal Keyboard/Trackpad +/* PowerBooks Oct 2005 */ +product APPLE GEYSER_ANSI 0x0214 Apple Internal Keyboard/Trackpad +product APPLE GEYSER_ISO 0x0215 Apple Internal Keyboard/Trackpad +product APPLE GEYSER_JIS 0x0216 Apple Internal Keyboard/Trackpad +/* Core Duo MacBook & MacBook Pro */ +product APPLE GEYSER3_ANSI 0x0217 Apple Internal Keyboard/Trackpad +product APPLE GEYSER3_ISO 0x0218 Apple Internal Keyboard/Trackpad +product APPLE GEYSER3_JIS 0x0219 Apple Internal Keyboard/Trackpad +/* Core2 Duo MacBook & MacBook Pro */ +product APPLE GEYSER4_ANSI 0x021a Apple Internal Keyboard/Trackpad +product APPLE GEYSER4_ISO 0x021b Apple Internal Keyboard/Trackpad +product APPLE GEYSER4_JIS 0x021c Apple Internal Keyboard/Trackpad +/* External */ +product APPLE ALU_MINI_ANSI 0x021d Apple Keyboard/Trackpad +product APPLE ALU_MINI_ISO 0x021e Apple Keyboard/Trackpad +product APPLE ALU_MINI_JIS 0x021f Apple Keyboard/Trackpad +product APPLE ALU_ANSI 0x0220 Apple Keyboard/Trackpad +product APPLE ALU_ISO 0x0221 Apple Keyboard/Trackpad +product APPLE ALU_JIS 0x0222 Apple Keyboard/Trackpad /* MacbookAir, aka wellspring */ product APPLE WELLSPRING_ANSI 0x0223 Apple Internal Keyboard/Trackpad product APPLE WELLSPRING_ISO 0x0224 Apple Internal Keyboard/Trackpad product APPLE WELLSPRING_JIS 0x0225 Apple Internal Keyboard/Trackpad +/* Core2 Duo MacBook3,1 */ +product APPLE GEYSER4_HF_ANSI 0x0229 Apple Internal Keyboard/Trackpad +product APPLE GEYSER4_HF_ISO 0x022a Apple Internal Keyboard/Trackpad +product APPLE GEYSER4_HF_JIS 0x022b Apple Internal Keyboard/Trackpad /* MacbookProPenryn, aka wellspring2 */ product APPLE WELLSPRING2_ANSI 0x0230 Apple Internal Keyboard/Trackpad product APPLE WELLSPRING2_ISO 0x0231 Apple Internal Keyboard/Trackpad @@ -1173,6 +1201,10 @@ product APPLE WELLSPRING6A_JIS 0x024b Apple Internal Keyboard/Trackpad product APPLE WELLSPRING6_ANSI 0x024c Apple Internal Keyboard/Trackpad product APPLE WELLSPRING6_ISO 0x024d Apple Internal Keyboard/Trackpad product APPLE WELLSPRING6_JIS 0x024e Apple Internal Keyboard/Trackpad +/* External */ +product APPLE ALU_REVB_ANSI 0x024f Apple Keyboard/Trackpad +product APPLE ALU_REVB_ISO 0x0250 Apple Keyboard/Trackpad +product APPLE ALU_REVB_JIS 0x0251 Apple Keyboard/Trackpad /* Macbook8,2 (unibody) */ product APPLE WELLSPRING5A_ANSI 0x0252 Apple Internal Keyboard/Trackpad product APPLE WELLSPRING5A_ISO 0x0253 Apple Internal Keyboard/Trackpad @@ -1193,6 +1225,16 @@ product APPLE WELLSPRING8_JIS 0x0292 Apple Internal Keyboard/Trackpad product APPLE WELLSPRING9_ANSI 0x0272 Apple Internal Keyboard/Trackpad product APPLE WELLSPRING9_ISO 0x0273 Apple Internal Keyboard/Trackpad product APPLE WELLSPRING9_JIS 0x0274 Apple Internal Keyboard/Trackpad +product APPLE WELLSPRINGT2_J140K 0x027a Apple Internal Keyboard/Trackpad +product APPLE WELLSPRINGT2_J132 0x027b Apple Internal Keyboard/Trackpad +product APPLE WELLSPRINGT2_J680 0x027c Apple Internal Keyboard/Trackpad +product APPLE WELLSPRINGT2_J213 0x027d Apple Internal Keyboard/Trackpad +product APPLE WELLSPRINGT2_J214K 0x027e Apple Internal Keyboard/Trackpad +product APPLE WELLSPRINGT2_J223 0x027f Apple Internal Keyboard/Trackpad +product APPLE WELLSPRINGT2_J230K 0x0280 Apple Internal Keyboard/Trackpad +product APPLE WELLSPRINGT2_J152F 0x0340 Apple Internal Keyboard/Trackpad +product APPLE MAGIC_KEYBOARD_2021 0x029c Apple Internal Keyboard/Trackpad +product APPLE MAGIC_KEYBOARD_FINGERPRINT_2021 0x029a Apple Keyboard/Trackpad product APPLE MAGIC_TRACKPAD2 0x0265 Apple Magic Trackpad 2 product APPLE MOUSE 0x0301 Mouse M4848 product APPLE OPTMOUSE 0x0302 Optical mouse From nobody Thu Nov 7 20:38:55 2024 X-Original-To: dev-commits-src-all@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 4Xkv7341YQz5cZGv; Thu, 07 Nov 2024 20:38:55 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkv733Lnjz3x1k; Thu, 7 Nov 2024 20:38:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731011935; 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=3Xk7Wz6ZNtmQssVIlV/dvtEy0h5ViFu532PIrJuPEJk=; b=D93VijtmT6Kpv0RR6LeROYkXFtKlYh0BMMK2Qu5r2iSVE/T/BGc7+nhao+MwQiZs8kg+DP PtzPgugmOE3XtjIr8np183kAbKDrEFu7eqsm2hnc9MOXysY8XJtyTadvM+M5rCt7SAsFdG dvrMavsqfdvGzb8oFoH6uSgpNyfp8q6v9fJjNTt2Swqf02fLbTNoDAHaLiOdmKoNpvvLdF XB1ev2r1+gAwFrs9uTblEfNptq9TO4X9tvKDOJ1fabIq4r4z/JNwAiKWbaXXnxrcLE2lP7 Q+3C04daa9n8xTsGdbYCtzYJPUpK2ClFx5GFbwhgwCQw1iTNajzFYn7lJqLQvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731011935; 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=3Xk7Wz6ZNtmQssVIlV/dvtEy0h5ViFu532PIrJuPEJk=; b=Tjlz9g4C+oIMvsozx6KQEXk/Ff4Yom1UYdIX0f3huRViuHoNndeUBMyZEMicAIiBzC2O1U JYMKx4DV8AowxbD5Xvsl+puO99Eq6kxC77EAdWykRyWUoTHadvVom79iSy4KOQkVZ5nVze 8A+FeY+6DoQqx/All40Mu9ZVDyxj1agGuejSt8KVtRhUsMzyRhXKNGYIxDdIA5G/jRJYk3 K7lyFTweuror07Aau1y6klzQKToEohkWCnlgGY8u3YRWgsAvtazysicEAQQ4oJfYIJG0VO xI1uf62cBV0gzcTrrdTdfzH+v+cNYtJlgCBw4UCv4GLTKefYR5aItJHgWZpxsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731011935; a=rsa-sha256; cv=none; b=j60lQX9Jsw3Pbj4JWYWirrSJULWe0M2yVRt8k3Vcg6q5bb6BXgWOeG8I1iTtpv6/kYSihG ZBx5g62CeXxIUES+b96it3PlrcEiqvvx33cRB0d4xBjP3Iej+Kyv2fwLvxJSnyKGdmm1RI yp1o8D3Cx4qxfmzOou/Q5hR/8tzbm/gXUtV3KHyp2YI2h+DpRZFUMqBFmpAf2QwVfD75g5 0o4+90wzMnnYEVZfJ0RLPQ+bYNaHmNQHplF45CTuWUSFVx/+boQg/EcFznoGJpSe4/0M3p 6Nh5z502+YnzMDAeu8GKeofk8B0cP1VkischaDHt3yKGSJ8jgSUKVaLfh1thnA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkv732pDRz10JK; Thu, 7 Nov 2024 20:38:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7KctC3019958; Thu, 7 Nov 2024 20:38:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7KctUv019955; Thu, 7 Nov 2024 20:38:55 GMT (envelope-from git) Date: Thu, 7 Nov 2024 20:38:55 GMT Message-Id: <202411072038.4A7KctUv019955@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: d70230783ae2 - main - vmm: Postpone vmm module initialization to after SI_SUB_DEVFS List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d70230783ae27594a77560582093dd86426d3360 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d70230783ae27594a77560582093dd86426d3360 commit d70230783ae27594a77560582093dd86426d3360 Author: Mark Johnston AuthorDate: 2024-11-07 20:07:39 +0000 Commit: Mark Johnston CommitDate: 2024-11-07 20:38:38 +0000 vmm: Postpone vmm module initialization to after SI_SUB_DEVFS vmmops_modinit() needs to create a device file, and this must happen after SI_SUB_DEVFS. On non-EARLY_AP_STARTUP platforms (i.e., !x86) this happens already by accident, but we shouldn't rely on it. On riscv, remove the current SI_SUB_SMP ordering since that was copied from arm64 and isn't needed. In particular, riscv's vmmops_modinit() does not call smp_rendezvous(). Reported by: Oleksandr Kryvulia Fixes: a97f683fe3c4 ("vmm: Add a device file interface for creating and destroying VMs") --- sys/amd64/vmm/vmm.c | 3 ++- sys/arm64/vmm/vmm.c | 3 ++- sys/riscv/vmm/vmm.c | 5 ++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c index 77e0adda86f5..9569f8ace909 100644 --- a/sys/amd64/vmm/vmm.c +++ b/sys/amd64/vmm/vmm.c @@ -513,8 +513,9 @@ static moduledata_t vmm_kmod = { * * - VT-x initialization requires smp_rendezvous() and therefore must happen * after SMP is fully functional (after SI_SUB_SMP). + * - vmm device initialization requires an initialized devfs. */ -DECLARE_MODULE(vmm, vmm_kmod, SI_SUB_SMP + 1, SI_ORDER_ANY); +DECLARE_MODULE(vmm, vmm_kmod, MAX(SI_SUB_SMP, SI_SUB_DEVFS) + 1, SI_ORDER_ANY); MODULE_VERSION(vmm, 1); static void diff --git a/sys/arm64/vmm/vmm.c b/sys/arm64/vmm/vmm.c index 2f4f3a2b59ea..808df5e599ac 100644 --- a/sys/arm64/vmm/vmm.c +++ b/sys/arm64/vmm/vmm.c @@ -396,8 +396,9 @@ static moduledata_t vmm_kmod = { * * - HYP initialization requires smp_rendezvous() and therefore must happen * after SMP is fully functional (after SI_SUB_SMP). + * - vmm device initialization requires an initialized devfs. */ -DECLARE_MODULE(vmm, vmm_kmod, SI_SUB_SMP + 1, SI_ORDER_ANY); +DECLARE_MODULE(vmm, vmm_kmod, MAX(SI_SUB_SMP, SI_SUB_DEVFS) + 1, SI_ORDER_ANY); MODULE_VERSION(vmm, 1); static void diff --git a/sys/riscv/vmm/vmm.c b/sys/riscv/vmm/vmm.c index 1c0290ace570..f8be363b6170 100644 --- a/sys/riscv/vmm/vmm.c +++ b/sys/riscv/vmm/vmm.c @@ -287,10 +287,9 @@ static moduledata_t vmm_kmod = { /* * vmm initialization has the following dependencies: * - * - HYP initialization requires smp_rendezvous() and therefore must happen - * after SMP is fully functional (after SI_SUB_SMP). + * - vmm device initialization requires an initialized devfs. */ -DECLARE_MODULE(vmm, vmm_kmod, SI_SUB_SMP + 1, SI_ORDER_ANY); +DECLARE_MODULE(vmm, vmm_kmod, SI_SUB_DEVFS + 1, SI_ORDER_ANY); MODULE_VERSION(vmm, 1); static void From nobody Thu Nov 7 23:26:40 2024 X-Original-To: dev-commits-src-all@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 4Xkyrc3qTfz5cqbG; Thu, 07 Nov 2024 23:26:40 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkyrc3Dmpz4Mq5; Thu, 7 Nov 2024 23:26:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731022000; 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=DCGhsBnfSr0PE/R9eTpFQQ5bL10mDxIRUBKFhP5mIrM=; b=Pgj2KCCpVPyUPk0UX3X6+LGwYpt5mEW6GkAfepz8ZgY8ySNiPkZmxhvNfW5kjj9lgvhsWB DT0T28TlpxJG81KC3bn2zCl/AOmvi+E+LC4tOZWkiqiHNUsiOPhb2+81mVgitjsTKoM4N8 CCa4uVoQZ/oCa9MQqdHuaZB5bxBUMjMSJ6Mq/c3ZBGmOZ+UVTVqvmsXFIkrJTwW5/Pm3lK HCQSxH3XGr7SrlNDyBLqAHWHJdxKGLHsVrDflBt9sgdijQZtAG1LImmnRCBZrgSSWW+0MW eeUJoocyJyggy2VPBHMKNQRlR+AGDYjSsEWVtjMArMuuyOewH3LVSFvzwktmfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731022000; 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=DCGhsBnfSr0PE/R9eTpFQQ5bL10mDxIRUBKFhP5mIrM=; b=cr4BOnlGyBOo86Sf++fNz//rlfH+ZULYDlHlsyB/cCn5IworS5nYzIfh1Rat5jn7A5dYme yY2OXlKHF211JMmU7ymY9+KQq7QJUgCXXkRmrGilG4F4jld6vDnuE5ZVjmjzhHKThnvYOR l2qvZBgAROo5UwtO5xUlJv1QYDRaQCZYzZjq1qMHYLA4T8hoc9Ms0YHoDIVRuz5WF3snsh oozsoo7CnND4OvvzDQUiiZJqec+e87JQ6SYPx+fQrQSQO860XXS6wsO2ybRBwFeouZXCMM VhZMljFHj7JqA22Lq1EAzMZihaI3i2SkX3gTMfZVpL13vOMkiBf5t+qS0eNvWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731022000; a=rsa-sha256; cv=none; b=NN+Bs6b2icLW1vQLudJG7Q+i1Pe+1n63uKA2mldq95ydIfxpHiUcUy8evp0sWeTttDZXn7 xKuNb6ZEA8wQGyoMfoHHIPQ3uPH8WtezwfQ8Dz1DJ5DrlgZK2I7fAqod2eyQD7i4GcxFuq gPED606a5CQB3/RaXkyDYi/+EljGhCoDAhjFMIYUpLN0Po94RTeXvX3z9hJdhyRXXe1+3r SZUKMc22NSzVv5O255TkMwvb4VOiHC89TriqSvNlxQq8c/xPVvH1A3uBtcL0SSJ7Cn/OcA 5ZXsRKlMq+LW8WNBuTmqFH2KO5TS24QHCdIzf94ZvjGTCmBryr+ZAFr2mwts2g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkyrc2jrcz14pp; Thu, 7 Nov 2024 23:26:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7NQeWE033676; Thu, 7 Nov 2024 23:26:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7NQefe033673; Thu, 7 Nov 2024 23:26:40 GMT (envelope-from git) Date: Thu, 7 Nov 2024 23:26:40 GMT Message-Id: <202411072326.4A7NQefe033673@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 0be04cb5cb98 - releng/14.2 - ndp: Move the global variable repeat into struct ndp_opts List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 0be04cb5cb9854d71cd98b10a35111b289cd21a5 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=0be04cb5cb9854d71cd98b10a35111b289cd21a5 commit 0be04cb5cb9854d71cd98b10a35111b289cd21a5 Author: Zhenlei Huang AuthorDate: 2024-10-31 16:32:13 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 23:26:09 +0000 ndp: Move the global variable repeat into struct ndp_opts An upcoming fix for the netlink based implementation requires this refactoring. No functional change intended. Reviewed by: kp Approved by: re (cperciva) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47233 (cherry picked from commit 12c04071cf18d1b00ffcc7058fb01f4393163ede) (cherry picked from commit 54514cfa5a84a5d4406bbd5ba34f8950cf1a2b89) --- usr.sbin/ndp/ndp.c | 9 ++++----- usr.sbin/ndp/ndp.h | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index e98e506ee482..89666f7eb633 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -125,7 +125,6 @@ static pid_t pid; static int32_t thiszone; /* time difference with gmt */ static int s = -1; -static int repeat = 0; static char host_buf[NI_MAXHOST]; /* getnameinfo() */ static char ifix_buf[IFNAMSIZ]; /* if_indextoname() */ @@ -252,8 +251,8 @@ main(int argc, char **argv) /*NOTREACHED*/ } mode = 'a'; - repeat = atoi(optarg); - if (repeat < 0) { + opts.repeat = atoi(optarg); + if (opts.repeat < 0) { usage(); /*NOTREACHED*/ } @@ -823,10 +822,10 @@ again: if (buf != NULL) free(buf); - if (repeat) { + if (opts.repeat) { xo_emit("\n"); xo_flush(); - sleep(repeat); + sleep(opts.repeat); goto again; } diff --git a/usr.sbin/ndp/ndp.h b/usr.sbin/ndp/ndp.h index 5b2558982e86..6e7aef2e416e 100644 --- a/usr.sbin/ndp/ndp.h +++ b/usr.sbin/ndp/ndp.h @@ -10,6 +10,7 @@ struct ndp_opts { bool tflag; int flags; time_t expire_time; + int repeat; }; extern struct ndp_opts opts; From nobody Thu Nov 7 23:26:41 2024 X-Original-To: dev-commits-src-all@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 4Xkyrd561Dz5cqJy; Thu, 07 Nov 2024 23:26:41 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkyrd3rb8z4N3D; Thu, 7 Nov 2024 23:26:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731022001; 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=3TCd3Vfj80NmYmhPfrVp0QchY/vYJKOG3XDlW/ypZYc=; b=nGJ/rgiQ0qPKdPyZY0lmjachoQRCpm8pb23FfpWt3WBuu5viTt5qIbUAMBNqaAnBfIQV+v 4c5i8mnN1X66zcHAgESwHwZnttgViE3N8GxRFM8WTSZclKXV8U2yXhOBTOrrF9vyuy+BxM SAmvFaWbTWVmwpOPg+KFcqNi95VpEajxfmpsj33q4lHNnNx2oakXv3kVfcmAJvjG/IMJR3 jajXlbLZK301r9oGVLywZGHuSXS+/VdbeEN9e1glv81u45Mh61mzK20GaOy8uczhL4eaHg l/FGe3S6nDQcuwyWix5p7ReKNEifE9Q8dDICoLDxbECtT0bPI0347yg5pIIRdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731022001; 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=3TCd3Vfj80NmYmhPfrVp0QchY/vYJKOG3XDlW/ypZYc=; b=ouXEXClxVRKYfD9EoCnxb+Lzablr1rvECHMEw6kfbfvq3VhhBEaNBPtKpr3qEYBguzO6vH AuNs0skRMnX0NDjb1xg8LSrcSg4QJ9HwEamT8u2qARhCCXaqt3SrCO9w2zFV0K11OW09B/ oDyOxrpDikI05TouUFTizvFepyncRWtSuRci+fDxWjCWy1lZsdU1mFJ9m9a3cwwQDp0UX9 EDAdo+Xw3cYDGDTevujEcoekMA/ms6OK1C9yit8NGgoPNlXS1YHrQ26k4MsQVXCbKVxWxG T5irh+wVA6J4BstwjfuV5Ej7ruKh1VdHIWKXk1lSeZKu5Y0LYxHUfpBV+KaH4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731022001; a=rsa-sha256; cv=none; b=UPBGTTDXSK9OoCHPUdI0pA5zEgbo/TuDKS37XVrVR7lS9gMkcRyX/1oq0uQrYAN94qSz7t +CDFagzf33tTwyKnBaZUx2eCP8ARbeXFPJBMtg+WEk7iQPuGikHqcKA/yphE0BimjJVkcr Bo4JsZWleF7dmQWKQRYjFf8rN3q/J13JXTQAmRSyQXfshP2wPezh7jnjlInUSKhNHqqDUM yacFwiZ81b3+kiJuUht8mmjXTE/RkPKoSCaF1VFNDVB0onKeMXVLRN0lH5DPZAI8ixyGrq wLOstOVFoOLEn/jl+PZ2AGgG+s3esDtnWz3Z/3rtcFYiqCCvZ7tRwr3n0o8W9Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xkyrd3STTz15Cx; Thu, 7 Nov 2024 23:26:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A7NQf2D033742; Thu, 7 Nov 2024 23:26:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A7NQfTi033739; Thu, 7 Nov 2024 23:26:41 GMT (envelope-from git) Date: Thu, 7 Nov 2024 23:26:41 GMT Message-Id: <202411072326.4A7NQfTi033739@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: a30127914a3d - releng/14.2 - ndp: Bring back the -A option for the netlink implementation List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: a30127914a3dc0c0f4c24274ee9d31aff79faca1 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=a30127914a3dc0c0f4c24274ee9d31aff79faca1 commit a30127914a3dc0c0f4c24274ee9d31aff79faca1 Author: Zhenlei Huang AuthorDate: 2024-10-31 16:32:14 +0000 Commit: Zhenlei Huang CommitDate: 2024-11-07 23:26:09 +0000 ndp: Bring back the -A option for the netlink implementation This was lost during the conversion to netlink. Reviewed by: kp Approved by: re (cperciva) Fixes: 91fbe0819bb9 ndp: convert ndp(8) to netlink MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47234 (cherry picked from commit b6d4e3bee350b881b5efea03068c1247985b12fe) (cherry picked from commit 0de672a59481d48dd5e4667c597d66e1b042a683) --- usr.sbin/ndp/ndp_netlink.c | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/usr.sbin/ndp/ndp_netlink.c b/usr.sbin/ndp/ndp_netlink.c index 179d715c8ded..94dca0f9d4a4 100644 --- a/usr.sbin/ndp/ndp_netlink.c +++ b/usr.sbin/ndp/ndp_netlink.c @@ -316,12 +316,24 @@ print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag) struct snl_state ss_req = {}, ss_cmd = {}; struct snl_parsed_link_simple link = {}; struct snl_writer nw; + struct nlmsghdr *hdr; + struct ndmsg *ndmsg; nl_init_socket(&ss_req); snl_init_writer(&ss_req, &nw); - struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETNEIGH); - struct ndmsg *ndmsg = snl_reserve_msg_object(&nw, struct ndmsg); + /* Print header */ + if (!opts.tflag && !cflag) { + char xobuf[200]; + snprintf(xobuf, sizeof(xobuf), + "{T:/%%-%d.%ds} {T:/%%-%d.%ds} {T:/%%%d.%ds} {T:/%%-9.9s} {T:/%%1s} {T:/%%5s}\n", + W_ADDR, W_ADDR, W_LL, W_LL, W_IF, W_IF); + xo_emit(xobuf, "Neighbor", "Linklayer Address", "Netif", "Expire", "S", "Flags"); + } + +again: + hdr = snl_create_msg_request(&nw, RTM_GETNEIGH); + ndmsg = snl_reserve_msg_object(&nw, struct ndmsg); if (ndmsg != NULL) { ndmsg->ndm_family = AF_INET6; ndmsg->ndm_ifindex = ifindex; @@ -337,14 +349,6 @@ print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag) int count = 0; nl_init_socket(&ss_cmd); - /* Print header */ - if (!opts.tflag && !cflag) { - char xobuf[200]; - snprintf(xobuf, sizeof(xobuf), - "{T:/%%-%d.%ds} {T:/%%-%d.%ds} {T:/%%%d.%ds} {T:/%%-9.9s} {T:/%%1s} {T:/%%5s}\n", - W_ADDR, W_ADDR, W_LL, W_LL, W_IF, W_IF); - xo_emit(xobuf, "Neighbor", "Linklayer Address", "Netif", "Expire", "S", "Flags"); - } xo_open_list("neighbor-cache"); while ((hdr = snl_read_reply_multi(&ss_req, nlmsg_seq, &e)) != NULL) { @@ -382,6 +386,12 @@ print_entries_nl(uint32_t ifindex, struct sockaddr_in6 *addr, bool cflag) count++; snl_clear_lb(&ss_req); } + if (opts.repeat) { + xo_emit("\n"); + xo_flush(); + sleep(opts.repeat); + goto again; + } xo_close_list("neighbor-cache"); snl_free(&ss_req); From nobody Fri Nov 8 00:00:20 2024 X-Original-To: dev-commits-src-all@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 4XkzbS5m7nz5ct5h; Fri, 08 Nov 2024 00:00:20 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkzbS5DTCz4QNk; Fri, 8 Nov 2024 00:00:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731024020; 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=F2we4UblaVe78dvL2wGbRPSS9WPfN8RpkokMwG+F2EE=; b=iVYVyBbltsGMIQrQXIP8y3OtgWzzXeX9odE7e841QIQowKOb/6cUeonwo4u0sl2omlU0sa Jn+rClWe4mjHxmPtPP2bLCAFpy1U8NfTCA67Dk17O6QEcQU8AbqH/dxQv/UyXRknGgl9b8 dhnJKZM0mSkLSPwewCFAozse7NyXh+HD8A5/2cRH/pT7TyDamnLMsSoEQQ8lK+iI/i7QTT KVpWLKkUPkc1XXdp001a9uDXiPkZwc758ad6Zp8EqnLUKUXJkVX097eril+ADSGGxWtGSf G//H+aefEy7fIvcp/nS28At9TEJdzrzp/rgJ5FUv4lJCxyF0qIr2yD0UnGX/fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731024020; 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=F2we4UblaVe78dvL2wGbRPSS9WPfN8RpkokMwG+F2EE=; b=DwGeejAo+/YPP/PSfn8QYCaX42dHbpeRZFiqJu+q8hs85SPNsb9edt+S9KA8KxEwa9QNIy Yg+Tw3ELCRNSOMyLbGRJ/vnwLr0OAHsPv4d/5SD/UP2crOWuTtISqhiKCnMq5jgCNW/KhI luaUaQF2echNwLHkCFPvwFifAmuAPVJOWgFVogvg0uWJGZj24IV9MmIu8AblOTtu8ANRCW R1ZC5hNk/gvdhAh1Z+6Sa7PfUEKMn08RCkFgIGfsM9ik+REhYX8SnFHoWk3bZ0mnJtE27H DtTWN8zg+18zs4uxqM9YjuXSQ1xRWDHrY4r1gcjnWBmfmbdWRvPc92v33zuHcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731024020; a=rsa-sha256; cv=none; b=N6wZW22WRiXglo8VXFbkRJQRDr9qiR58m982kKJYjg2aANYKcnglRj3+4j0RvcnP8cqzK5 egDgR7NMoLu3XJd3JOExAB3sG9VyafBvOAK9IxtiYwy9qyD8nltQ8YLDxTyBr70C8lkTsF YSV8FVO5reklFuJ/vwMGaWiPF1PnZJq21cYZvm/2hivjOWifXmQiUQnKxmkTzlGjvdPFaz U7YOVvix/YkeEwIr+8qsczq4LEotYCDDxaM53nEANvmS6aVXJEFKbY6dqPg8Dvyd1te04c 4lxQMoItR++IEGHjbpEWR55PcC/uyCB9uJ9hNDLx3LKVOozde3R14nhREQgoIQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XkzbS4mS6z15p6; Fri, 8 Nov 2024 00:00:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A800KM6099667; Fri, 8 Nov 2024 00:00:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A800Kqg099664; Fri, 8 Nov 2024 00:00:20 GMT (envelope-from git) Date: Fri, 8 Nov 2024 00:00:20 GMT Message-Id: <202411080000.4A800Kqg099664@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: 0ff73c7796d6 - releng/14.2 - 14.2: Update to BETA2 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 0ff73c7796d646decf3399f9827a7a540600287f Auto-Submitted: auto-generated The branch releng/14.2 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=0ff73c7796d646decf3399f9827a7a540600287f commit 0ff73c7796d646decf3399f9827a7a540600287f Author: Colin Percival AuthorDate: 2024-11-08 00:00:01 +0000 Commit: Colin Percival CommitDate: 2024-11-08 00:00:01 +0000 14.2: Update to BETA2 Approved by: re (implicit) Sponsored by: Amazon --- sys/conf/newvers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 385b47891a43..60a042f04d04 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -53,7 +53,7 @@ TYPE="FreeBSD" REVISION="14.2" -BRANCH="BETA1" +BRANCH="BETA2" if [ -n "${BRANCH_OVERRIDE}" ]; then BRANCH=${BRANCH_OVERRIDE} fi From nobody Fri Nov 8 00:59:57 2024 X-Original-To: dev-commits-src-all@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 4Xl0wF2gqdz5cxVW; Fri, 08 Nov 2024 00:59:57 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xl0wF1Fdgz4VSw; Fri, 8 Nov 2024 00:59:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731027597; 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=9tXoLPWAATQx79XzIFXwKMlCczf8ZaP3eudrZS8cKsM=; b=Y2Bt1VTPrZCOQyy8+v8z++HrTtWYeWx2sKHl/4ELIMSurBYKALAbpkF426m4BciJX981XI 2bTlXqtVB0JoCEtJ7rVcOJ/yhodh0/liiwTXl3bshQZpPmLmGal0M6gFrVnfMGzbIvUnqW zosl9LneCJAHEfGXqsPmpDpHtk8WKcqmAM/2YEjQvr+pnccMYVGGpqCX4IFAX4yuersUgs CvQShvIz8ZrSsGHYwUWGB7qHk9CMrKS7vQpycWyJ+SW8a5ODIwc7CSoEzv5cVwswsYYzPQ xEs91caWU5xC3x2KbHMVw83UQJy7tecj/rP6RcqagoFgKcs1CxHQCut9xplJmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731027597; 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=9tXoLPWAATQx79XzIFXwKMlCczf8ZaP3eudrZS8cKsM=; b=nD3sGEL9RqxG+ZKgJiPdybjVpTloeT13LwKfTEJzXtZ32eg6j27L30SNtGJmOlxp4kh8Ho Vjm66EAPbZND2aGIIraSeMoLRev4hKw8wEvk6ZbNbCcCeox8xbznATVzt6VrlXzzBr1aH1 VkT0M0PWetGT1BB9vFrcwLLWHeVM77teFNkRIQYNU4riVioDWxmPWwt86ol5Z9YxEy1xfs 5AsyKFsFLJYdpINmEfdoI2oMRaWprp1FzG6/JdjLc3Y5kM8YxwhrOhDXOpWtKJdlB/SV+d fn3YjgSH9TASSAJSI+Ty68Nn2vis01U/l5UI7uR/RXZaG3aQanSyJQB0u8w1wQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731027597; a=rsa-sha256; cv=none; b=u/g64s2in5ZM0CUju4OiY1ZzY9NZTQdQTFlrRHUty/34KITmaUga36jb+KTwgsWwmuYYgD Nf760bT9GiOQprpYoATlUj+xG9lpmR1JwZyjt6YwjQqlwmOJAvcpa4YtIs07F4x2Rw+qu7 wn9ZMxeILm1LwneEuZnkUGiXAFZSsO8VUY8u7a7nHBvDLussd8+tYbUmyQT/C/em8Osj/B hRiKWBAQ2esMb/Xp9MGtD5JeRCIxd3mryOnZSgWtxvPC5CRg954Q982guleIbH8sg1XXW1 0Sv+N6ezap8P+gz9LsDw3aCJ1f7U0AzV1srFjdRTkWxeJvJ4NTRnqGtzfn+X7w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xl0wF0lpRz17kn; Fri, 8 Nov 2024 00:59:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A80xv8g000457; Fri, 8 Nov 2024 00:59:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A80xv9q000454; Fri, 8 Nov 2024 00:59:57 GMT (envelope-from git) Date: Fri, 8 Nov 2024 00:59:57 GMT Message-Id: <202411080059.4A80xv9q000454@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: d2434697bc9c - main - loader.kboot: Build on amd64 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d2434697bc9cc2d36da0f356cc5942b33df87896 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d2434697bc9cc2d36da0f356cc5942b33df87896 commit d2434697bc9cc2d36da0f356cc5942b33df87896 Author: Warner Losh AuthorDate: 2024-11-07 22:59:04 +0000 Commit: Warner Losh CommitDate: 2024-11-07 23:23:26 +0000 loader.kboot: Build on amd64 But comment out FDT stuff for amd64 built inside kboot. This also restricts a bit the powerpc platforms we build on to powerpc64. Sponsored by: Netflix --- stand/Makefile | 2 +- stand/kboot/kboot/Makefile | 5 ++++- stand/kboot/kboot/main.c | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/stand/Makefile b/stand/Makefile index ce91802d4a8b..5d81e5f8a032 100644 --- a/stand/Makefile +++ b/stand/Makefile @@ -37,7 +37,7 @@ INTERP_DEPENDS+= lua .include S.${MK_EFI}+= efi -.if ${MK_FDT} != "no" +.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "powerpc64" S.${MK_LOADER_KBOOT}+= kboot .endif S.${MK_LOADER_UBOOT}+= uboot diff --git a/stand/kboot/kboot/Makefile b/stand/kboot/kboot/Makefile index d354e1bc7e60..064d43701ebd 100644 --- a/stand/kboot/kboot/Makefile +++ b/stand/kboot/kboot/Makefile @@ -24,12 +24,15 @@ SRCS= \ hostdisk.c \ hostfs.c \ init.c \ - kbootfdt.c \ main.c \ seg.c \ util.c \ vers.c +.if ${MK_FDT} != "no" +SRCS+= kbootfdt.c +.endif + .if ${MK_LOADER_ZFS} != "no" CFLAGS+= -I${ZFSSRC} CFLAGS+= -I${SYSDIR}/contrib/openzfs/include diff --git a/stand/kboot/kboot/main.c b/stand/kboot/kboot/main.c index 994df1ec9fa1..a9ea2d9354c9 100644 --- a/stand/kboot/kboot/main.c +++ b/stand/kboot/kboot/main.c @@ -26,7 +26,9 @@ #include #include #include +#ifdef LOADER_FDT_SUPPORT #include +#endif #include #include @@ -620,6 +622,7 @@ kboot_zfs_probe(void) #endif } +#ifdef LOADER_FDT_SUPPORT /* * Since proper fdt command handling function is defined in fdt_loader_cmd.c, * and declaring it as extern is in contradiction with COMMAND_SET() macro @@ -634,4 +637,4 @@ command_fdt(int argc, char *argv[]) } COMMAND_SET(fdt, "fdt", "flattened device tree handling", command_fdt); - +#endif From nobody Fri Nov 8 00:59:58 2024 X-Original-To: dev-commits-src-all@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 4Xl0wG2nf5z5cxvl; Fri, 08 Nov 2024 00:59:58 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xl0wG27Lvz4VGh; Fri, 8 Nov 2024 00:59:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731027598; 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=UYnxK7oRYhKsmPLSq7ffpoVrIvdKZCM95KerxZC4td4=; b=BwPh9p3vI4NjpMlz0036lMKQ6hiwebzTuNCZsyPGj2BR7/6oONYQ9bLPD5CY683XaMslbD OamSGAUoe+XlFu01YE2Dv74Wybe+V9uEcfA92/FPNfYIZrZO1IsaZJPOZ08XZOP2kNuDMd zfpDRmXZyh/xfkIMN0QUHY6tG570H9ci/Pqxj8sUPoliyDRXfKg1OAdKjmPOuCeohn0vzk zlit4pn9vsjLq8uJqpj1sCQHg/1tLVDzAMJrUNAuPbMqp+tqJRiHpIb7eE+v4DCnVMbIRz 5Qt1TgyllEMRGXsZK/uUt1/pRrju1/fs7uVSOK0hOzfCe0BPjURYHusy1wE7rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731027598; 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=UYnxK7oRYhKsmPLSq7ffpoVrIvdKZCM95KerxZC4td4=; b=oCGPAvLairRPjqHQBcP5w9R///0AO9YrRThhcTQhUH3lB+cPR/gSZlqyAeHnMHFTBwPSGw rwRK6Q3kmkda1OjXvyqvuuKY0s3yPpPHt84SpuzNyvcdXKRcmJ6+jyNAU51WNrcogQ4fwO nDV5pawDg06iGY0YoHXgZSZF3uec33EFBW8/z10f0s7MgkcBERgySNBpH8gru6Mmaa7Pxs wWuHgFxrmk8QpIQSEDt5WiP22kqIiaGnXfB9YaJyjP8c5Ui5/AUDCfaZ6Yh+jxQ+8dmVpK qoDtYnUpRA/nCKtnMajlqE+FxyfAWajb7HjRgNh1geQzVeBvKavl8+PYHNMXQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731027598; a=rsa-sha256; cv=none; b=dH3Rjcofen/eH/DtJWanGK2CcOHyeg6RgX02jTAGCqCTgusr3jD5P9bkF/Mf77cu949qL7 UPHOhUXLD16nmkLPl8ud8kqgCgn7Uc4tZ2Poroc/n/5r/j46Rg0QXDIaHzS1t01aNT3hZb 40Vqndt95Rvh5lHyj87eFEXM6lAkzxXJHnf/g+uGV+XGfMlGRlDE3aDXPhR/lfxtOj/loF c0pwzvAEHDjNpvGCuOVaNWJg1DOZm2PngJ9OmCHmb3uJsKSkWidy6gbaS6nPseONugN383 oGACgbEPt64DvdEKXoZudZTAf7+4wAmyOKTgbjnXeyDv5l+INrOhn8sve+fvlg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xl0wG1lPgz17kp; Fri, 8 Nov 2024 00:59:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A80xwkC000505; Fri, 8 Nov 2024 00:59:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A80xwIx000502; Fri, 8 Nov 2024 00:59:58 GMT (envelope-from git) Date: Fri, 8 Nov 2024 00:59:58 GMT Message-Id: <202411080059.4A80xwIx000502@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: f11b6ce4a3bc - main - da: Add quirk for ADATA USB Drive List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2 commit f11b6ce4a3bc6d455dbec375218c01ce9b6b5dc2 Author: Warner Losh AuthorDate: 2024-11-08 00:11:15 +0000 Commit: Warner Losh CommitDate: 2024-11-08 00:40:05 +0000 da: Add quirk for ADATA USB Drive ADATA USB Drive lies about the RC16, so add a quirk to ignore it. MFC After: 3 days PR: 188999 Sponsored by: Netflix --- sys/cam/scsi/scsi_da.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 5e562122c5d5..e8e13613413a 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -881,6 +881,11 @@ static struct da_quirk_entry da_quirk_table[] = {T_DIRECT, SIP_MEDIA_REMOVABLE, "JetFlash", "Transcend*", "*"}, /*quirks*/ DA_Q_NO_RC16 }, + { + /* ADATA USB sticks lie on RC16. */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "ADATA", "USB Flash Drive*", + "*"}, /*quirks*/ DA_Q_NO_RC16 + }, { /* * I-O Data USB Flash Disk From nobody Fri Nov 8 01:03:13 2024 X-Original-To: dev-commits-src-all@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 4Xl10J259Gz5cxtS for ; Fri, 08 Nov 2024 01:03:28 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 4Xl10H6sRZz4WY2 for ; Fri, 8 Nov 2024 01:03:27 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-37d43a9bc03so1080159f8f.2 for ; Thu, 07 Nov 2024 17:03:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731027806; x=1731632606; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cqe0i+libYJxUEt7XbFY+ueSoe58woMK7aY8Cram6LI=; b=h8CKYwFTS8ZQShP033XHHv0ytLNK7k5CDrLrbUSK+DBbvpC/qHk+YKAiB/JqW+xcky he7S4IrKULvHgu/3xbTleoxhZswSAtltoSbDK4J1U8493i4t9tg56xkntyi9TqbLU17D 7i27/ZrDpxutSsFSQVYcfdN9ou63CbFvGkplIDAZlTdlGz5+WNd23b8dsAfQLH1Wy0av whTpS7ATyfpm58qWf2yTD5cWe+4oPo2pJ6uRbDCiMCOILmzkc5BJBXYYHvV7kivuMp8A J9sFZGonTxZHUmqtQNlsRodCFPuLyy2HkiKltBaOsp0Nuap51M0DU+CH2fa8I8YYEICT 9wTA== X-Forwarded-Encrypted: i=1; AJvYcCUbW3XcG/FF2AtNWkTycVcK3WvRxFFl56NKp7xIzhtBaCCpiNQoGtsGW3T1nM5KmFjm9qGu7bQflCqDXhulGkx1H/C5@freebsd.org X-Gm-Message-State: AOJu0YyPWHMEA51sRRqcnIDMCqRHDjUaxmHpagM9GuAb5H3WYWKEZIMf duT+BsVUx0fAGcTdcPldDyvvapOfGlOvyS0ZM8uefDz/hyKyQIBKOa4iLjZVFVE= X-Google-Smtp-Source: AGHT+IHJ6Htb6QIkz/Tlbe0yucKQbgbVyGH7uzRJtJ4i3S4LlD7iwtIX495GLE7h748f+OBfv/SiTw== X-Received: by 2002:a5d:5886:0:b0:37d:4a7b:eeb2 with SMTP id ffacd0b85a97d-381f186d34amr748975f8f.35.1731027806424; Thu, 07 Nov 2024 17:03:26 -0800 (PST) Received: from smtpclient.apple ([131.111.5.201]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed9ea6b5sm3107480f8f.84.2024.11.07.17.03.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Nov 2024 17:03:25 -0800 (PST) Content-Type: text/plain; charset=utf-8 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) Subject: Re: git: d2434697bc9c - main - loader.kboot: Build on amd64 From: Jessica Clarke In-Reply-To: <202411080059.4A80xv9q000454@gitrepo.freebsd.org> Date: Fri, 8 Nov 2024 01:03:13 +0000 Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <5B288C0C-5A9A-4772-8B14-06BDCC527B04@freebsd.org> References: <202411080059.4A80xv9q000454@gitrepo.freebsd.org> To: Warner Losh X-Mailer: Apple Mail (2.3818.100.11.1.3) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4Xl10H6sRZz4WY2 X-Spamd-Bar: ---- On 8 Nov 2024, at 00:59, Warner Losh wrote: >=20 > The branch main has been updated by imp: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3Dd2434697bc9cc2d36da0f356cc5942b3= 3df87896 >=20 > commit d2434697bc9cc2d36da0f356cc5942b33df87896 > Author: Warner Losh > AuthorDate: 2024-11-07 22:59:04 +0000 > Commit: Warner Losh > CommitDate: 2024-11-07 23:23:26 +0000 >=20 > loader.kboot: Build on amd64 >=20 > But comment out FDT stuff for amd64 built inside kboot. This also > restricts a bit the powerpc platforms we build on to powerpc64. >=20 > Sponsored by: Netflix > --- > stand/Makefile | 2 +- > stand/kboot/kboot/Makefile | 5 ++++- > stand/kboot/kboot/main.c | 5 ++++- > 3 files changed, 9 insertions(+), 3 deletions(-) >=20 > diff --git a/stand/Makefile b/stand/Makefile > index ce91802d4a8b..5d81e5f8a032 100644 > --- a/stand/Makefile > +++ b/stand/Makefile > @@ -37,7 +37,7 @@ INTERP_DEPENDS+=3D lua > .include >=20 > S.${MK_EFI}+=3D efi > -.if ${MK_FDT} !=3D "no" > +.if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D = "aarch64" || ${MACHINE_ARCH} =3D=3D "powerpc64" > S.${MK_LOADER_KBOOT}+=3D kboot > .endif Hm, is the outer if really needed? We already have: # KBOOT is only for powerpc64 (powerpc64le broken) amd64 and aarch64 .if ${__T} !=3D "powerpc64" && ${__T} !=3D "amd64" && ${__T} !=3D = =E2=80=9Caarch64" BROKEN_OPTIONS+=3DLOADER_KBOOT .endif in src.opts.mk, which is generally where these kinds of restrictions should live. Jess From nobody Fri Nov 8 03:19:13 2024 X-Original-To: dev-commits-src-all@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 4Xl41C0ycGz5bxLM for ; Fri, 08 Nov 2024 03:19:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (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 4Xl41B4M9Bz4mb6 for ; Fri, 8 Nov 2024 03:19:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-7240fa50694so759565b3a.1 for ; Thu, 07 Nov 2024 19:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1731035965; x=1731640765; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UYkc1vIHtZefaNuKlZGOBiwEmWF+usbINxZ0HihKSaE=; b=jGum1v0+tjlPyvVxmSdaMKyV8I+/SrbuJrTH93R58pyihPXfbrY2yb8xqANRT9yaFx v/ZaAMGk+7sCqZgdk/bBlNhlWrXdMYypPUV7WICtwdAdMlxMbXDYydgrmcVgzfTjHoYL Bylb1YBkkc3KtXi/b46kJn/uMa5CKLi46rcvcxy6i0q/QLuM1VxxShSWKNaQbSpnooGQ isRfpgDOJ4ZAER13gHX7GIdsLwhHmDe7ro3aGiiUloUugG34UQw+IJFDI+PX+1OSsZB7 ZPuTfryzfDXImE6E8uWXpw5iVF01Gcte/vDVDLL2OboNO0VX76gmkUWrUdzyPSBG3srq erxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731035965; x=1731640765; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UYkc1vIHtZefaNuKlZGOBiwEmWF+usbINxZ0HihKSaE=; b=Ecee+jGnTblLVB+Nd3ufgN3K0/PlNEcmDSWYIUa8DH1EOVIzqpQE2gA+V99en+x9Bb ymsA+o3KH5pk8X+X85emTx7unc2dDrDz697zPKuh5QqYIFDxmv/BzXllkdmGzWDRwYSU A+DgjD0iT6x5BYOz35yLfAc6nR7htoIIPEEnWA5FlFn3GTq5vwtocHhCXIf/mowPcPZu 4jgMbURKNMH514eVYjEm+244bzMbSgeLUahtYODkrB9ECrhCft15xJ4KNRZyLgna2LUW KqQOX4pu5vXqyf2N1OvcVhWbIyYGx1VKWwKpcOO/YuoELtK2pU/oUhynv5Ub/+ygY84S KM2Q== X-Forwarded-Encrypted: i=1; AJvYcCXTRWaj4tKjBmiuTnQjVN/7JBRzYutUi0u0MJY5fG/BGHAqFHs3gVwQAcnunU/YAJuOOmRpSoo3gpmcL2qToDkfEijB@freebsd.org X-Gm-Message-State: AOJu0YyOZcVfpI74W12mPXUVM3jFgKucC880Ll6yYjxtgoLx+C0C3djs yiNDgFEaJDnH3jQLdT95ZGI8RW3SMuzTw1pZxtIbva14/XkS7qmPEG6VZCvEWaYaEqMqjnk3qiI eUJ/wX/RfRucI8IF/y4vJ27g/sRC/EGyoVrf1u7Vbor/aDowL X-Google-Smtp-Source: AGHT+IGys9WFYQc6wKC7kFDxDW9yb86aBekbsa7XfvCwdyK+udzssVqK9nsPTkB8KhSWyb0i2IvhoDj72UC+JHIyLSc= X-Received: by 2002:a05:6a21:999f:b0:1db:d84f:c7d8 with SMTP id adf61e73a8af0-1dc228c6919mr1973539637.2.1731035965326; Thu, 07 Nov 2024 19:19:25 -0800 (PST) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 References: <202411080059.4A80xv9q000454@gitrepo.freebsd.org> <5B288C0C-5A9A-4772-8B14-06BDCC527B04@freebsd.org> In-Reply-To: <5B288C0C-5A9A-4772-8B14-06BDCC527B04@freebsd.org> From: Warner Losh Date: Thu, 7 Nov 2024 19:19:13 -0800 Message-ID: Subject: Re: git: d2434697bc9c - main - loader.kboot: Build on amd64 To: Jessica Clarke Cc: Warner Losh , src-committers , "" , "" Content-Type: multipart/alternative; boundary="000000000000cea0c506265e3729" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Xl41B4M9Bz4mb6 X-Spamd-Bar: ---- --000000000000cea0c506265e3729 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 7, 2024, 5:03=E2=80=AFPM Jessica Clarke wr= ote: > On 8 Nov 2024, at 00:59, Warner Losh wrote: > > > > The branch main has been updated by imp: > > > > URL: > https://cgit.FreeBSD.org/src/commit/?id=3Dd2434697bc9cc2d36da0f356cc5942b= 33df87896 > > > > commit d2434697bc9cc2d36da0f356cc5942b33df87896 > > Author: Warner Losh > > AuthorDate: 2024-11-07 22:59:04 +0000 > > Commit: Warner Losh > > CommitDate: 2024-11-07 23:23:26 +0000 > > > > loader.kboot: Build on amd64 > > > > But comment out FDT stuff for amd64 built inside kboot. This also > > restricts a bit the powerpc platforms we build on to powerpc64. > > > > Sponsored by: Netflix > > --- > > stand/Makefile | 2 +- > > stand/kboot/kboot/Makefile | 5 ++++- > > stand/kboot/kboot/main.c | 5 ++++- > > 3 files changed, 9 insertions(+), 3 deletions(-) > > > > diff --git a/stand/Makefile b/stand/Makefile > > index ce91802d4a8b..5d81e5f8a032 100644 > > --- a/stand/Makefile > > +++ b/stand/Makefile > > @@ -37,7 +37,7 @@ INTERP_DEPENDS+=3D lua > > .include > > > > S.${MK_EFI}+=3D efi > > -.if ${MK_FDT} !=3D "no" > > +.if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D=3D "aarch64"= || > ${MACHINE_ARCH} =3D=3D "powerpc64" > > S.${MK_LOADER_KBOOT}+=3D kboot > > .endif > > Hm, is the outer if really needed? We already have: > > # KBOOT is only for powerpc64 (powerpc64le broken) amd64 and aarch64 > .if ${__T} !=3D "powerpc64" && ${__T} !=3D "amd64" && ${__T} !=3D =E2= =80=9Caarch64" > BROKEN_OPTIONS+=3DLOADER_KBOOT > .endif > > in src.opts.mk, which is generally where these kinds of restrictions > should live. > Oh. That's a great idea. I'll update. Warner > --000000000000cea0c506265e3729 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Nov 7, 2024, 5:03=E2=80=AFPM Jessica Clarke &l= t;jrtc27@freebsd.org> wrote:
On 8 Nov 2024, at 00:59, Warner Losh= <imp@FreeBSD.org> wrote:
>
> The branch main has been updated by imp:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd2434697bc9cc2d36da0f356cc5942= b33df87896
>
> commit d2434697bc9cc2d36da0f356cc5942b33df87896
> Author:=C2=A0 =C2=A0 =C2=A0Warner Losh <imp@FreeBSD.org>
> AuthorDate: 2024-11-07 22:59:04 +0000
> Commit:=C2=A0 =C2=A0 =C2=A0Warner Losh <imp@FreeBSD.org>
> CommitDate: 2024-11-07 23:23:26 +0000
>
>=C2=A0 =C2=A0 loader.kboot:=C2=A0 Build on amd64
>
>=C2=A0 =C2=A0 But comment out FDT stuff for amd64 built inside kboot. T= his also
>=C2=A0 =C2=A0 restricts a bit the powerpc platforms we build on to powe= rpc64.
>
>=C2=A0 =C2=A0 Sponsored by:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Net= flix
> ---
> stand/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 2 +- > stand/kboot/kboot/Makefile | 5 ++++-
> stand/kboot/kboot/main.c=C2=A0 =C2=A0| 5 ++++-
> 3 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/stand/Makefile b/stand/Makefile
> index ce91802d4a8b..5d81e5f8a032 100644
> --- a/stand/Makefile
> +++ b/stand/Makefile
> @@ -37,7 +37,7 @@ INTERP_DEPENDS+=3D lua
> .include <bsd.arch.inc.mk>
>
> S.${MK_EFI}+=3D efi
> -.if ${MK_FDT} !=3D "no"
> +.if ${MACHINE_ARCH} =3D=3D "amd64" || ${MACHINE_ARCH} =3D= =3D "aarch64" || ${MACHINE_ARCH} =3D=3D "powerpc64"
> S.${MK_LOADER_KBOOT}+=3D kboot
> .endif

Hm, is the outer if really needed? We already have:

=C2=A0 # KBOOT is only for powerpc64 (powerpc64le broken) amd64 and aarch64=
=C2=A0 .if ${__T} !=3D "powerpc64" && ${__T} !=3D "a= md64" && ${__T} !=3D =E2=80=9Caarch64"
=C2=A0 BROKEN_OPTIONS+=3DLOADER_KBOOT
=C2=A0 .endif

in src.opts.mk, which is generally where these kinds of restriction= s
should live.

Oh. That's a great idea. I'll update.

Warner
--000000000000cea0c506265e3729-- From nobody Fri Nov 8 13:25:38 2024 X-Original-To: dev-commits-src-all@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 4XlKSf3DpZz5ckfj; Fri, 08 Nov 2024 13:25:38 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlKSf2Tvfz4SMm; Fri, 8 Nov 2024 13:25:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731072338; 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=DVuj6LclpM8aUfza4xAsk6GPLQbTsjWGPAxPMU7VMlM=; b=j5JhxXeb4afDmheH5sccPfuGU7qNjjM7C6lzeB2YsAbrHOam6kQ7/pcm/iE0X0PLdKMB1v xXx1WAu24yxYZHkEILsAHO1YbPFFSzESp1nlxLXDrtADJlTLf5iHWB8E/teV4xxW1UpndY E/YmYZfqx84Ae8xyKz1C+CyccPbt/KeT0XA6akLjm518N6a6Ul7t/0Zr6XHMOnAnNSsxbO L3PmqcBOcIbOpRuJlA2jcnCRL1oaFjcUNcUgCtFuV1pLHUVksNXv6onneCpN+5736Ori9D Br8537BwB2JEtMchqx+GOJmy2dbrB3kR7789RQKUdSCudOuglT9BftSc5U/lBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731072338; 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=DVuj6LclpM8aUfza4xAsk6GPLQbTsjWGPAxPMU7VMlM=; b=HeK7/VeHwGzuQCVYUPIqOEX0gOqREtduFjYtfUOwJ6vhhSwSKuZVEzwX5r2abTfipzrFIG hIus3UEVSgvPMNnlDLej6JzBv4262nIBp0T5xXTE6fLlxHzGf/b9Tkn/lwhihw0UDhgfQb 5y3i3JDP95mT4pwD+A0YUZFU++QNpuABisaqIbb1KPIm5cGGYMnzxuwWeBuEhEtQSigdCU IgOQ1SViY+o3PTZIKs1NMWTljSa3sNTeN2cEkn6f1swwBiFlLmacRZA95RZkEK/dNcfEUg OR6hnq9Hsu4eX/xUdN+UkLfgLPHzooB4rSWZ8qXBUAbtHNvlp11k7A4AaAB4xQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731072338; a=rsa-sha256; cv=none; b=tnqmiIoTk01y+Jp6S6PZrn1JxBxXKYde/3uRUgkjorj0XU87rNV4ySDIm35Je7bdhpyRdd Y7adsVEjgVT9jpimVqFwZXBi+PMH+/3Z/iMQ+sVNTNfO2kg5jn0NMvqXwTj/SFHbRAmYbn 7/wobbaewWxAdrH6QAePbqCmGEbM4bZpsxAAsUZtOFI3qf8BsA43htRhusnJriXEXZ+OXQ r8PNBE1Qv5atMHQOqEm5EnLBZ/I0bZCPWn8AoEBsI4GIN4Rkj6eGFUGrzScFwyiZDKcDL+ LEgtuxZHGho81L+Dz71R4MlkWoYCCaiDcIoIvuFE0eRwydT2Fo1siPDz1YLGmg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlKSf1yY9zXHH; Fri, 8 Nov 2024 13:25:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A8DPc2m094553; Fri, 8 Nov 2024 13:25:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A8DPc8u094550; Fri, 8 Nov 2024 13:25:38 GMT (envelope-from git) Date: Fri, 8 Nov 2024 13:25:38 GMT Message-Id: <202411081325.4A8DPc8u094550@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Rabson Subject: git: d03c82c28da8 - main - release: add optional OCI images List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dfr X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d03c82c28da86e0812b98b051d24ae5980804ad7 Auto-Submitted: auto-generated The branch main has been updated by dfr: URL: https://cgit.FreeBSD.org/src/commit/?id=d03c82c28da86e0812b98b051d24ae5980804ad7 commit d03c82c28da86e0812b98b051d24ae5980804ad7 Author: Doug Rabson AuthorDate: 2024-08-14 15:39:24 +0000 Commit: Doug Rabson CommitDate: 2024-11-08 13:23:08 +0000 release: add optional OCI images This adds three OCI archive format files to the release containing FreeBSD base images suitable for static linked, dynamic linked and shell workloads. The shell image also contains pkg-bootstrap and can be easily extended by installing packages (including pkgbase packages). Reviewed by: dch, cpersiva, jlduran, zlei Differential Revision: https://reviews.freebsd.org/D46759 MFC after: 2 days --- release/Makefile | 11 ++++--- release/Makefile.oci | 34 +++++++++++++++++++ release/release.conf.sample | 4 +++ release/release.sh | 47 ++++++++++++++++++++++++++- release/scripts/make-oci-image.sh | 63 ++++++++++++++++++++++++++++++++++++ release/tools/oci-image-dynamic.conf | 11 +++++++ release/tools/oci-image-minimal.conf | 19 +++++++++++ release/tools/oci-image-static.conf | 42 ++++++++++++++++++++++++ share/examples/Makefile | 6 ++++ share/examples/oci/Containerfile.pkg | 27 ++++++++++++++++ share/examples/oci/README | 7 ++++ share/man/man7/release.7 | 14 +++++++- 12 files changed, 279 insertions(+), 6 deletions(-) diff --git a/release/Makefile b/release/Makefile index be628d20ba8d..85da63b0c49a 100644 --- a/release/Makefile +++ b/release/Makefile @@ -7,14 +7,16 @@ # memstick: Builds memory stick image (memstick.img) # mini-memstick: Builds minimal memory stick image (mini-memstick.img) # ftp: Sets up FTP distribution area (ftp) -# release: Invokes real-release, vm-release, and cloudware-release targets +# release: Invokes real-release, vm-release, cloudware-release and oci-release targets # real-release: Build all media and FTP distribution area # vm-release: Build all virtual machine image targets # cloudware-release: Build all cloud hosting provider targets -# install: Invokes the release-install and vm-install targets +# oci-release: Build all OCI container images +# install: Invokes the release-install, vm-install and oci-install targets # release-install: Copies all release installation media into ${DESTDIR} # vm-install: Copies all virtual machine images into ${DESTDIR} # cloud-install: Copies non-uploaded cloud images into ${DESTDIR} +# oci-install: Copies all OCI container images into ${DESTDIR} # # Variables affecting the build process: # WORLDDIR: location of src tree -- must have built world and default kernel @@ -316,7 +318,7 @@ ftp: packagesystem mkdir -p ftp cp *.txz MANIFEST ftp -release: real-release vm-release cloudware-release +release: real-release vm-release cloudware-release oci-release ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} release-done true @@ -327,7 +329,7 @@ real-release: ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} obj ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${RELEASE_TARGETS} -install: release-install vm-install .WAIT cloud-install +install: release-install vm-install oci-install .WAIT cloud-install release-install: .if defined(DESTDIR) && !empty(DESTDIR) @@ -347,3 +349,4 @@ release-install: .include "${.CURDIR}/Makefile.inc1" .include "${.CURDIR}/Makefile.vm" +.include "${.CURDIR}/Makefile.oci" diff --git a/release/Makefile.oci b/release/Makefile.oci new file mode 100644 index 000000000000..461c95f49636 --- /dev/null +++ b/release/Makefile.oci @@ -0,0 +1,34 @@ +# +# +# +# Makefile for building OCI container images. +# + +.if defined(WITH_OCIIMAGES) && !empty(WITH_OCIIMAGES) +OCI_IMAGES= static dynamic minimal +.endif + +oci-install: +.if defined(WITH_OCIIMAGES) && !empty(WITH_OCIIMAGES) + mkdir -p ${DESTDIR}/ociimages +. for _IMG in ${OCI_IMAGES} + cp -p ${.OBJDIR}/container-image-${_IMG}.txz ${DESTDIR}/ociimages +. endfor +.endif + +OCI_TARGETS= +OCI_DEPS_static= +OCI_DEPS_dynamic= container-image-static.txz +OCI_DEPS_minimal= container-image-dynamic.txz + +.for _IMG in ${OCI_IMAGES} +OCI_TARGETS+= container-image-${_IMG}.txz +container-image-${_IMG}.txz: ${OCI_DEPS_${_IMG}} + sh ${.CURDIR}/scripts/make-oci-image.sh ${.CURDIR} ${REVISION} ${BRANCH} ${TARGET_ARCH} ${_IMG} + skopeo copy \ + containers-storage:localhost/freebsd${REVISION:R}-${_IMG}:latest \ + oci-archive:${.OBJDIR}/container-image-${_IMG}.tar:freebsd${REVISION:R}-${_IMG}:${REVISION}-${BRANCH}-${TARGET_ARCH} + ${XZ_CMD} < ${.OBJDIR}/container-image-${_IMG}.tar > ${.OBJDIR}/container-image-${_IMG}.txz +.endfor + +oci-release: ${OCI_TARGETS} diff --git a/release/release.conf.sample b/release/release.conf.sample index c306efb13b65..e583e49828d4 100644 --- a/release/release.conf.sample +++ b/release/release.conf.sample @@ -114,3 +114,7 @@ PORTBRANCH="main" ## If WITH_CLOUDWARE is set to a non-empty value, this is a list of providers ## to create disk images. #CLOUDWARE="EC2 GCE ORACLE VAGRANT-VIRTUALBOX VAGRANT-VMWARE" + +## If WITH_OCIIMAGES is set to a non-empty value, build Open Container +## Initiative (OCI) base images as part of the release. +#WITH_OCIIMAGES= diff --git a/release/release.sh b/release/release.sh index cee0fbd5643d..d6752e016994 100755 --- a/release/release.sh +++ b/release/release.sh @@ -120,6 +120,9 @@ env_setup() { # cloud providers as part of the release. WITH_CLOUDWARE= + # Set to non-empty to build OCI images as part of the release + WITH_OCIIMAGES= + return 0 } # env_setup() @@ -195,7 +198,8 @@ env_check() { RELEASE_RMAKEFLAGS="${ARCH_FLAGS} ${RELEASE_FLAGS} \ KERNCONF=\"${KERNEL}\" ${CONF_FILES} ${SRCPORTS} \ WITH_DVD=${WITH_DVD} WITH_VMIMAGES=${WITH_VMIMAGES} \ - WITH_CLOUDWARE=${WITH_CLOUDWARE} XZ_THREADS=${XZ_THREADS}" + WITH_CLOUDWARE=${WITH_CLOUDWARE} WITH_OCIIMAGES=${WITH_OCIIMAGES} \ + XZ_THREADS=${XZ_THREADS}" return 0 } # env_check() @@ -288,6 +292,44 @@ extra_chroot_setup() { fi fi + if [ ! -z "${WITH_OCIIMAGES}" ]; then + # Install buildah and skopeo from ports if the ports tree is available; + # otherwise install the pkg. + if [ -d ${CHROOTDIR}/usr/ports ]; then + # Trick the ports 'run-autotools-fixup' target to do the right + # thing. + _OSVERSION=$(chroot ${CHROOTDIR} /usr/bin/uname -U) + REVISION=$(chroot ${CHROOTDIR} make -C /usr/src/release -V REVISION) + BRANCH=$(chroot ${CHROOTDIR} make -C /usr/src/release -V BRANCH) + UNAME_r=${REVISION}-${BRANCH} + GITUNSETOPTS="CONTRIB CURL CVS GITWEB GUI HTMLDOCS" + GITUNSETOPTS="${GITUNSETOPTS} ICONV NLS P4 PERL" + GITUNSETOPTS="${GITUNSETOPTS} SEND_EMAIL SUBTREE SVN" + GITUNSETOPTS="${GITUNSETOPTS} PCRE PCRE2" + PBUILD_FLAGS="OSVERSION=${_OSVERSION} BATCH=yes" + PBUILD_FLAGS="${PBUILD_FLAGS} UNAME_r=${UNAME_r}" + PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}" + PBUILD_FLAGS="${PBUILD_FLAGS} WRKDIRPREFIX=/tmp/ports" + PBUILD_FLAGS="${PBUILD_FLAGS} DISTDIR=/tmp/distfiles" + for _PORT in sysutils/buildah sysutils/skopeo; do + eval chroot ${CHROOTDIR} env ${PBUILD_FLAGS} make -C \ + /usr/ports/${_PORT} \ + FORCE_PKG_REGISTER=1 deinstall install clean distclean + done + else + eval chroot ${CHROOTDIR} env ASSUME_ALWAYS_YES=yes \ + pkg install -y sysutils/buildah sysutils/skopeo + eval chroot ${CHROOTDIR} env ASSUME_ALWAYS_YES=yes \ + pkg clean -y + fi + # Use the vfs storage driver so that this works whether or not + # the build directory is on ZFS. The images are small so the + # performance difference is negligible. + eval chroot ${CHROOTDIR} sed -I .bak -e '/^driver/s/zfs/vfs/' /usr/local/etc/containers/storage.conf + # Remove any stray images from previous builds + eval chroot ${CHROOTDIR} buildah rmi -af + fi + if [ ! -z "${EMBEDDEDPORTS}" ]; then _OSVERSION=$(chroot ${CHROOTDIR} /usr/bin/uname -U) REVISION=$(chroot ${CHROOTDIR} make -C /usr/src/release -V REVISION) @@ -323,6 +365,9 @@ chroot_build_target() { fi eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} buildworld eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_KMAKEFLAGS} buildkernel + if [ ! -z "${WITH_OCIIMAGES}" ]; then + eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} packages + fi return 0 } # chroot_build_target diff --git a/release/scripts/make-oci-image.sh b/release/scripts/make-oci-image.sh new file mode 100644 index 000000000000..a139a38d1930 --- /dev/null +++ b/release/scripts/make-oci-image.sh @@ -0,0 +1,63 @@ +#! /bin/sh + +# Build an Open Container Initiative (OCI) container image + +curdir=$1; shift +rev=$1; shift +branch=$1; shift +arch=$1; shift +image=$1; shift + +major=${rev%.*} +minor=${rev#*.} + +abi=FreeBSD:${major}:${arch} + +echo "Building OCI freebsd${major}-${image} image for ${abi}" + +. ${curdir}/tools/oci-image-${image}.conf + +init_workdir() { + local abi=$1; shift + local workdir=$(mktemp -d -t oci-images) + + mkdir ${workdir}/repos + cat > ${workdir}/repos/base.conf < /dev/null + mtree -deU -p $m/var -f /etc/mtree/BSD.var.dist > /dev/null + mtree -deU -p $m/usr -f /etc/mtree/BSD.usr.dist > /dev/null + mtree -deU -p $m/usr/include -f /etc/mtree/BSD.include.dist > /dev/null + mtree -deU -p $m/usr/lib -f /etc/mtree/BSD.debug.dist > /dev/null + install_packages ${abi} ${workdir} $m FreeBSD-caroot FreeBSD-zoneinfo + cp /etc/master.passwd $m/etc + pwd_mkdb -p -d $m/etc $m/etc/master.passwd || return $? + cp /etc/group $m/etc || return $? + cp /etc/termcap.small $m/etc/termcap.small || return $? + cp /etc/termcap.small $m/usr/share/misc/termcap || return $? + env DESTDIR=$m /usr/sbin/certctl rehash + # Generate a suitable repo config for pkgbase + case ${branch} in + CURRENT|STABLE|BETA*) + repo=base_latest + ;; + *) + repo=base_release_${minor} + ;; + esac + mkdir -p $m/usr/local/etc/pkg/repos + cat > $m/usr/local/etc/pkg/repos/base.conf < To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 21d7ac8c79a3 - main - inpcb: Remove some unused parameters in internal hash lookup functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 21d7ac8c79a34cf3b7205d0c32014ee39f1f28ab Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=21d7ac8c79a34cf3b7205d0c32014ee39f1f28ab commit 21d7ac8c79a34cf3b7205d0c32014ee39f1f28ab Author: Mark Johnston AuthorDate: 2024-11-08 14:25:19 +0000 Commit: Mark Johnston CommitDate: 2024-11-08 14:25:19 +0000 inpcb: Remove some unused parameters in internal hash lookup functions in_pcblookup_hash_wild_* looks up unconnected inpcbs, so there is no point in passing the foreign address and port, and indeed those parameters are not used. So, remove them. No functional change intended. MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D47385 --- sys/netinet/in_pcb.c | 17 ++++++++--------- sys/netinet6/in6_pcb.c | 14 ++++++-------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 6ea197cf68d8..769724fd5063 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -2179,9 +2179,8 @@ in_pcblookup_wild_match(const struct inpcb *inp, struct in_addr laddr, #define INP_LOOKUP_AGAIN ((struct inpcb *)(uintptr_t)-1) static struct inpcb * -in_pcblookup_hash_wild_smr(struct inpcbinfo *pcbinfo, struct in_addr faddr, - u_short fport, struct in_addr laddr, u_short lport, - const inp_lookup_t lockflags) +in_pcblookup_hash_wild_smr(struct inpcbinfo *pcbinfo, struct in_addr laddr, + u_short lport, const inp_lookup_t lockflags) { struct inpcbhead *head; struct inpcb *inp; @@ -2217,8 +2216,8 @@ in_pcblookup_hash_wild_smr(struct inpcbinfo *pcbinfo, struct in_addr faddr, } static struct inpcb * -in_pcblookup_hash_wild_locked(struct inpcbinfo *pcbinfo, struct in_addr faddr, - u_short fport, struct in_addr laddr, u_short lport) +in_pcblookup_hash_wild_locked(struct inpcbinfo *pcbinfo, struct in_addr laddr, + u_short lport) { struct inpcbhead *head; struct inpcb *inp, *local_wild, *local_exact, *jail_wild; @@ -2319,8 +2318,8 @@ in_pcblookup_hash_locked(struct inpcbinfo *pcbinfo, struct in_addr faddr, inp = in_pcblookup_lbgroup(pcbinfo, &faddr, fport, &laddr, lport, numa_domain); if (inp == NULL) { - inp = in_pcblookup_hash_wild_locked(pcbinfo, faddr, - fport, laddr, lport); + inp = in_pcblookup_hash_wild_locked(pcbinfo, laddr, + lport); } } @@ -2402,8 +2401,8 @@ in_pcblookup_hash_smr(struct inpcbinfo *pcbinfo, struct in_addr faddr, } inp = INP_LOOKUP_AGAIN; } else { - inp = in_pcblookup_hash_wild_smr(pcbinfo, faddr, fport, - laddr, lport, lockflags); + inp = in_pcblookup_hash_wild_smr(pcbinfo, laddr, lport, + lockflags); } if (inp == INP_LOOKUP_AGAIN) { return (in_pcblookup_hash(pcbinfo, faddr, fport, laddr, diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 501434f2fac6..49a430ea6d01 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -997,8 +997,7 @@ in6_pcblookup_wild_match(const struct inpcb *inp, const struct in6_addr *laddr, static struct inpcb * in6_pcblookup_hash_wild_smr(struct inpcbinfo *pcbinfo, - const struct in6_addr *faddr, u_short fport, const struct in6_addr *laddr, - u_short lport, const inp_lookup_t lockflags) + const struct in6_addr *laddr, u_short lport, const inp_lookup_t lockflags) { struct inpcbhead *head; struct inpcb *inp; @@ -1035,8 +1034,7 @@ in6_pcblookup_hash_wild_smr(struct inpcbinfo *pcbinfo, static struct inpcb * in6_pcblookup_hash_wild_locked(struct inpcbinfo *pcbinfo, - const struct in6_addr *faddr, u_short fport, const struct in6_addr *laddr, - u_short lport) + const struct in6_addr *laddr, u_short lport) { struct inpcbhead *head; struct inpcb *inp, *jail_wild, *local_exact, *local_wild; @@ -1118,8 +1116,8 @@ in6_pcblookup_hash_locked(struct inpcbinfo *pcbinfo, inp = in6_pcblookup_lbgroup(pcbinfo, faddr, fport, laddr, lport, numa_domain); if (inp == NULL) { - inp = in6_pcblookup_hash_wild_locked(pcbinfo, faddr, - fport, laddr, lport); + inp = in6_pcblookup_hash_wild_locked(pcbinfo, + laddr, lport); } } return (inp); @@ -1195,8 +1193,8 @@ in6_pcblookup_hash_smr(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, } inp = INP_LOOKUP_AGAIN; } else { - inp = in6_pcblookup_hash_wild_smr(pcbinfo, faddr, fport, - laddr, lport, lockflags); + inp = in6_pcblookup_hash_wild_smr(pcbinfo, laddr, lport, + lockflags); } if (inp == INP_LOOKUP_AGAIN) { return (in6_pcblookup_hash(pcbinfo, faddr, fport, laddr, From nobody Fri Nov 8 15:09:51 2024 X-Original-To: dev-commits-src-all@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 4XlMn20YgKz5cN8q; Fri, 08 Nov 2024 15:09:58 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlMn203n4z4gGc; Fri, 8 Nov 2024 15:09:58 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731078598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DUBps9LHPogNg+DXKT07RWCy0DAwIHuivPcg6p4jNSA=; b=GQhEcyoNJKdZ2L7DXFtVvhQCE+oMebnMmoUoMx73gmtQuwZ2xccRSbkIjQmLDXHSprAZMw 7aRIEzmg4FIk7qYjkOILVbU/ViwZzKjRc0Y4Y6cLOpkBx4k34HVRr7WWYBev1bCDk5bb+l TwKVVz5M471iMp0vUEgv02Ss+ChIoq/BesZ7OywkUjitOMO10qT4xBEtkurGrtVR/LQjVj l8CvwYgZbMmB7nxg+KxrTljJdBPiAYLMrsr6up2TIvpnGEL3XLfbYou5lB8w0CznL72NhB 6OooKIxRKcw5weQ921aJ7VfdT9BZE+D4l8EqFR6myjkdeop13INEWEsJc4NUsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731078598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DUBps9LHPogNg+DXKT07RWCy0DAwIHuivPcg6p4jNSA=; b=ICZCojaGg7JTSyoxrtjeRnodwh8MuMqepU4i2R0FbeZQzGJ6nee1DXklVOOoUhQdT5EY6B ZAbVY+IqDvd1HI5/or8bfqT0AK/I9qpnHHkMeencZu/QOfqQn7g3KyUuFg+mhLIOojsk4n mMYaXtrUIon8MMjHYjbe40ljBchi10KT+3uyxAl6062VHbPNmKixVtR+iCuD8+fHu2LTaw y1SHaLJCdx8p1hnSt/t16j12URj+nK6TPO+/xJwhnPLz7+pVxvaRV9+ataL/FGZe6+NGct Wq7SHgqXeqFizmPOvKeKODgfpawMXz8jkNjwoDzWdVl3BdeLjlCmdM+Q0kFfXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731078598; a=rsa-sha256; cv=none; b=cE7OMMu68+AGhXmn4/6gBTjmlk/YO5aeaV+OOTk07u5aQ40MH/7aQpt/DUY+MTdH5cYeww O7FwNqVr6nv4oQlUkOfWew/g8hskMeZ8wSjvR5xK2OGEGWXrvdDSbLF3FlI8USttNuqOhJ FHMLx7pIk0vKXZZyPXVYgS1DAyTf3zR2rPSEdI8j50R1LIKQ1XShlZTXN+/ZqXJ5X7GMuC jxithKdbwa9F+vU2JZnVO7pCSfr4h3WO7teuouMq28aAzfsaJy+r3pXNkyXKHPDSWAWoNI yv7Ce3jcPnfwyDv3qC3CyPsdSthvEFOBhrniy9HKa8LuBBgS4LutLzh8G+x4XA== Received: from [10.9.4.95] (unknown [209.182.120.176]) (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 did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XlMmz1x99zftQ; Fri, 8 Nov 2024 15:09:55 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: Date: Fri, 8 Nov 2024 09:09:51 -0600 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: d2434697bc9c - main - loader.kboot: Build on amd64 To: Jessica Clarke , Warner Losh Cc: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" References: <202411080059.4A80xv9q000454@gitrepo.freebsd.org> <5B288C0C-5A9A-4772-8B14-06BDCC527B04@freebsd.org> Content-Language: en-US From: Kyle Evans In-Reply-To: <5B288C0C-5A9A-4772-8B14-06BDCC527B04@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/7/24 19:03, Jessica Clarke wrote: > On 8 Nov 2024, at 00:59, Warner Losh wrote: >> >> The branch main has been updated by imp: >> >> URL: https://cgit.FreeBSD.org/src/commit/?id=d2434697bc9cc2d36da0f356cc5942b33df87896 >> >> commit d2434697bc9cc2d36da0f356cc5942b33df87896 >> Author: Warner Losh >> AuthorDate: 2024-11-07 22:59:04 +0000 >> Commit: Warner Losh >> CommitDate: 2024-11-07 23:23:26 +0000 >> >> loader.kboot: Build on amd64 >> >> But comment out FDT stuff for amd64 built inside kboot. This also >> restricts a bit the powerpc platforms we build on to powerpc64. >> >> Sponsored by: Netflix >> --- >> stand/Makefile | 2 +- >> stand/kboot/kboot/Makefile | 5 ++++- >> stand/kboot/kboot/main.c | 5 ++++- >> 3 files changed, 9 insertions(+), 3 deletions(-) >> >> diff --git a/stand/Makefile b/stand/Makefile >> index ce91802d4a8b..5d81e5f8a032 100644 >> --- a/stand/Makefile >> +++ b/stand/Makefile >> @@ -37,7 +37,7 @@ INTERP_DEPENDS+= lua >> .include >> >> S.${MK_EFI}+= efi >> -.if ${MK_FDT} != "no" >> +.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "powerpc64" >> S.${MK_LOADER_KBOOT}+= kboot >> .endif > > Hm, is the outer if really needed? We already have: > > # KBOOT is only for powerpc64 (powerpc64le broken) amd64 and aarch64 > .if ${__T} != "powerpc64" && ${__T} != "amd64" && ${__T} != “aarch64" > BROKEN_OPTIONS+=LOADER_KBOOT > .endif > > in src.opts.mk, which is generally where these kinds of restrictions > should live. > I had the same thought about the BHYVE option the other day... it'd be useful if we BROKEN_OPTION'd it so that MK_BHYVE is accurate on platforms that don't support it. The particular context where it would've been nice is depend-cleanup.sh, since we could've used it as a heuristic to nuke the errant include dirs if the option was properly disabled. Thanks, Kyle Evans From nobody Fri Nov 8 16:26:15 2024 X-Original-To: dev-commits-src-all@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 4XlPT4033vz5cSnR; Fri, 08 Nov 2024 16:26:16 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlPT34W6kz4nFF; Fri, 8 Nov 2024 16:26:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731083175; 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=cL+IrwCFege9RQ0d2U3ip1pq3ecBwWNGb6+9lt015NE=; b=n+Bv2oI6zanVcU5HdSjNjaQqcIlQzDrdpLyK29NEdTnDwExpicqtO70qrgnj6+1fxfFObN hxFy5K5wys3V0fFTqDMEy+F2AAqajc882KSFxKmUpG9FRH+/u29ONEo16736+OwiC/Rwdk 1hPT+J8Z2uRO85mVzCUhgyhqlgiL3fyjyxsRBAaB+0o7PGZwnDns8/DKWc6tGJse7EKot0 +E5lMOfa/g/jvpXB5/gvEDFLyWW4ptBRwsFngeETv9YqxrP97U2sdq5SXrwks9Ka5lRge/ tM0dHPq4GRgYdrVVJEDbmgof+/ATlVZowOmgNnQlGhEFwgVGAnKRFr1MPF77pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731083175; 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=cL+IrwCFege9RQ0d2U3ip1pq3ecBwWNGb6+9lt015NE=; b=PY347be1W3FoQ+y68A9IPEhjDPDGDVBGQ7u0rajvGAygObvkXAWBr8H8YSo27ojY7zWsWS tV4jm5rGkidecLiYlbsf2PgRVPLtjW5APfOLj2iibtMQzja0DAPrqFKcHl/O4w8FTIQvvi U2g1WJVhMv7RpXHA6Tgx+TsIweLsYAZy9BdKDVVIz1TYwdgpGTBE/2bRPz4CR7/sCpja14 6YlvWnDTzzAemzUpVzLwkiPhDMOeuyluF2Lznd73I3pRICps/ny/eVQliivHUfxR0Iy8qZ XNCVl8VuNWfi/QZd5bFBcJFw33EIFzla10i51aofFSKOl2/9Yls1TXwtJBalYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731083175; a=rsa-sha256; cv=none; b=MY4BvikFN+hX3l25ywH4/ExRQCxbmSYw6UOxSQCHLDGTzq/MJAi2+BxedtwYpadctp/I+K EzPgRAw2Xd57uAxduzvKZhpNICs1t5cv52yW1C60Lb7qcoLLPaOKb34qj+OluX0CCPaSIv 8V0JUAwER8Y87l7wb1Z74kdSLRXXQAw4PwN3CB9n2fQST6pPGUIzDsGaYKUHyPSrPm7PMn MlJTXxu/kH1ynuT5nQ/b72+nbx5NMBkgS5wG25qu6CgUqQ7A8tg0NgGDDmoGHbs4ylMybT 0thNFoMJVqohmgTTuB94Lnn5ZgONC2YOgJu08nkqEmEy3QnSO6If2BTI9Vg/rg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlPT346Ddzc6q; Fri, 8 Nov 2024 16:26:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A8GQFDj029741; Fri, 8 Nov 2024 16:26:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A8GQF5J029738; Fri, 8 Nov 2024 16:26:15 GMT (envelope-from git) Date: Fri, 8 Nov 2024 16:26:15 GMT Message-Id: <202411081626.4A8GQF5J029738@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Adrian Chadd Subject: git: 8838f3c32ac0 - main - rtwn: ensure TX work isn't scheduled during reset / abort List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: adrian X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8838f3c32ac0ebcb8b20863f8c455375039a505e Auto-Submitted: auto-generated The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=8838f3c32ac0ebcb8b20863f8c455375039a505e commit 8838f3c32ac0ebcb8b20863f8c455375039a505e Author: Adrian Chadd AuthorDate: 2024-11-08 16:26:05 +0000 Commit: Adrian Chadd CommitDate: 2024-11-08 16:26:05 +0000 rtwn: ensure TX work isn't scheduled during reset / abort Don't schedule work during reset / abort. For USB NICs, work must not be scheduled during a call to rtwn_usb_abort_xfers(), as then it'll cause the call to usbd_transfer_drain() to hang. This fixes a hang I've been seeing where the NIC hits a TX timeout and then the reset/re-init path is called. If data is scheduled to be transmitted in that window, the call to usbd_transfer_drain() would hang and require a hard reboot to recover. Differential Revision: https://reviews.freebsd.org/D47479 --- sys/dev/rtwn/if_rtwn_tx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/rtwn/if_rtwn_tx.c b/sys/dev/rtwn/if_rtwn_tx.c index f5e97933b314..bf45d14f7edc 100644 --- a/sys/dev/rtwn/if_rtwn_tx.c +++ b/sys/dev/rtwn/if_rtwn_tx.c @@ -263,6 +263,11 @@ rtwn_start(struct rtwn_softc *sc) struct mbuf *m; RTWN_ASSERT_LOCKED(sc); + + /* Ensure no work is scheduled during reset/teardown */ + if ((sc->sc_flags & RTWN_RUNNING) == 0) + return; + while ((m = mbufq_dequeue(&sc->sc_snd)) != NULL) { if (sc->qfullmsk != 0) { mbufq_prepend(&sc->sc_snd, m); From nobody Fri Nov 8 16:46:32 2024 X-Original-To: dev-commits-src-all@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 4XlPwZ3FXDz5cTh7; Fri, 08 Nov 2024 16:46:38 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlPwZ2x59z4psH; Fri, 8 Nov 2024 16:46:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731084398; 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=Ir0hYDI3F/ukJ/X/TmUYnmRD5ftgIjPaWjmOcKpl0mA=; b=pMLub+2aD7gzuiMIPKj6tkWetbjEQYKVy0Rpx9lHodC9rwlgyHVfWPvIn+bJQgrpQ2FNf4 vmuREfZK5LgviBVqTrLrsgRB8wCnnfhXvUfYebqh44oqUT8y5GyoHchiWINiYml82h+wi2 NVL1ktcdKkv4fKJiYp4BEPi8hAcnuSFepss4H288Eu6raI/tdYxbXcPqL9OoiiWhoizFv/ Rf1/8Mvva9IGDY/rYPP8PX764n1jpb3B5KggGRUqVDIgA3F0ZBESJOSOdAYOWQ03wgAV6c mkMzlKq6Kzr5XqcUn4gtc+Jl3gF9fvDN98q+mXfJkH03xGYxSUgthgxXhugrTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731084398; 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=Ir0hYDI3F/ukJ/X/TmUYnmRD5ftgIjPaWjmOcKpl0mA=; b=gpUOgGc2T5wDKIsHxNROkQ8WKsjTCyC8omVNzulwv+srVW+zyOarLl20thNak8HNJQdZbX DRzhPJrJkTJfLB1Imi6h/Rhbk413dsqOS1lC36hKw/1XY4Rz4Rvst/GeV5kQ1m+mVCiXGS LxkIlu5EgvULM1Vo8bimNJ+0VlPIQAtFvGfm9s/71+q888uZm/sBG3PoTBe5AxeLPAaIfx ccwtko/wN9GD4Szn+B+ma6n3YsEzGvYlAhG1f4jd78CtelmfjVWb6+RmeAdzb3SSb3T754 2O40ej3kJKQBY2eUKsfJeI380JFCMQx0Lel3sYduXSEnMq9WZzRFcKRLINpZeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731084398; a=rsa-sha256; cv=none; b=totYMGM3+MUlImcxMF+V9oEDQ66MQi2CBAQ8pPxrvgirJmin8ioLDL5q9TVwTP9r4OrEYO 1vdJGRyaoiiMkIh5Hhdhs+9CtXtCiuhUTKVMq/MDjv3h7KNdjrJr0NBp0/sg8JX2GVu4bN W/MqA7Ulej2DBUW/AAHzoGz4joPJHdGb18QaFAR1JhiNTq3eAynSKiXDxXaogWu3ctwOcD PZpGmpZsoRBcyaJVSvb2YfEEG2mPezlSX3SaXi6RKMtaEJZD17qipccBb0SyDqkkqxgfIi 9b69sQ4hOsU9d0BASo3KEHOJR36Ytg2Hmzsd/LBW+EflU4rleU2mazdewHBzAQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlPwZ2Pwlzcgf; Fri, 8 Nov 2024 16:46:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A8GkcLS066424; Fri, 8 Nov 2024 16:46:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A8GkWip066394; Fri, 8 Nov 2024 16:46:32 GMT (envelope-from git) Date: Fri, 8 Nov 2024 16:46:32 GMT Message-Id: <202411081646.4A8GkWip066394@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: d686ce931cab - main - Merge llvm-project release/19.x llvmorg-19.1.3-0-gab51eccf88f5 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d686ce931cab72612a9e1ada9fe99d65e11a32a3 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d686ce931cab72612a9e1ada9fe99d65e11a32a3 commit d686ce931cab72612a9e1ada9fe99d65e11a32a3 Merge: 8838f3c32ac0 efdccd835863 Author: Dimitry Andric AuthorDate: 2024-11-08 11:32:34 +0000 Commit: Dimitry Andric CommitDate: 2024-11-08 16:45:31 +0000 Merge llvm-project release/19.x llvmorg-19.1.3-0-gab51eccf88f5 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/19.x llvmorg-19.1.3-0-gab51eccf88f5, a.k.a. 19.1.3 release. PR: 280562 MFC after: 1 month .../clang/include/clang/AST/ExternalASTSource.h | 48 ++++++++++++++++------ .../llvm-project/clang/lib/Basic/Targets/ARM.cpp | 2 + .../clang/lib/Basic/Targets/OSTargets.h | 4 ++ .../llvm-project/clang/lib/CodeGen/CGBuiltin.cpp | 45 +++++++++----------- .../clang/lib/CodeGen/CodeGenModule.cpp | 10 +++-- .../llvm-project/clang/lib/CodeGen/Targets/ARM.cpp | 3 ++ contrib/llvm-project/clang/lib/Driver/Driver.cpp | 5 ++- .../clang/lib/Driver/ToolChains/Arch/ARM.cpp | 7 ++++ .../clang/lib/Driver/ToolChains/Gnu.cpp | 2 + .../clang/lib/Driver/ToolChains/Linux.cpp | 1 + .../clang/lib/Format/UnwrappedLineParser.cpp | 5 +++ contrib/llvm-project/clang/lib/Parse/ParseStmt.cpp | 11 +++-- .../clang/lib/Sema/SemaTemplateDeductionGuide.cpp | 21 ++++++++-- .../clang/lib/Serialization/ASTReaderDecl.cpp | 3 +- .../clang/lib/Serialization/ASTWriterDecl.cpp | 5 ++- .../sanitizer_procmaps_solaris.cpp | 4 ++ contrib/llvm-project/libcxx/include/__config | 2 +- .../llvm/include/llvm/TargetParser/Triple.h | 35 +++++++++++++--- .../llvm/lib/Analysis/ConstantFolding.cpp | 4 +- .../llvm/lib/Target/ARM/ARMSubtarget.h | 4 +- .../llvm/lib/Target/ARM/ARMTargetMachine.cpp | 2 + .../llvm/lib/Target/ARM/ARMTargetMachine.h | 1 + .../lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp | 6 +-- .../WebAssembly/WebAssemblyTargetMachine.cpp | 12 ++---- .../llvm/lib/TargetParser/ARMTargetParser.cpp | 3 ++ .../llvm-project/llvm/lib/TargetParser/Triple.cpp | 6 +++ .../llvm/lib/Transforms/Utils/InlineFunction.cpp | 2 +- .../llvm/lib/Transforms/Utils/ModuleUtils.cpp | 12 +++--- lib/clang/include/VCSVersion.inc | 6 +-- lib/clang/include/clang/Basic/Version.inc | 6 +-- lib/clang/include/lld/Common/Version.inc | 2 +- lib/clang/include/lldb/Version/Version.inc | 6 +-- lib/clang/include/llvm/Config/config.h | 4 +- lib/clang/include/llvm/Config/llvm-config.h | 4 +- lib/clang/include/llvm/Support/VCSRevision.h | 2 +- lib/libc++/__assertion_handler | 3 +- lib/libomp/kmp_config.h | 2 +- 37 files changed, 203 insertions(+), 97 deletions(-) diff --cc lib/clang/include/VCSVersion.inc index 5b4ac649986a,000000000000..b514dee27f3a mode 100644,000000..100644 --- a/lib/clang/include/VCSVersion.inc +++ b/lib/clang/include/VCSVersion.inc @@@ -1,8 -1,0 +1,8 @@@ - #define LLVM_REVISION "llvmorg-19.1.2-0-g7ba7d8e2f7b6" ++#define LLVM_REVISION "llvmorg-19.1.3-0-gab51eccf88f5" +#define LLVM_REPOSITORY "https://github.com/llvm/llvm-project.git" + - #define CLANG_REVISION "llvmorg-19.1.2-0-g7ba7d8e2f7b6" ++#define CLANG_REVISION "llvmorg-19.1.3-0-gab51eccf88f5" +#define CLANG_REPOSITORY "https://github.com/llvm/llvm-project.git" + - #define LLDB_REVISION "llvmorg-19.1.2-0-g7ba7d8e2f7b6" ++#define LLDB_REVISION "llvmorg-19.1.3-0-gab51eccf88f5" +#define LLDB_REPOSITORY "https://github.com/llvm/llvm-project.git" diff --cc lib/clang/include/clang/Basic/Version.inc index 163d9b601b93,000000000000..2795c08bec37 mode 100644,000000..100644 --- a/lib/clang/include/clang/Basic/Version.inc +++ b/lib/clang/include/clang/Basic/Version.inc @@@ -1,8 -1,0 +1,8 @@@ - #define CLANG_VERSION 19.1.2 - #define CLANG_VERSION_STRING "19.1.2" ++#define CLANG_VERSION 19.1.3 ++#define CLANG_VERSION_STRING "19.1.3" +#define CLANG_VERSION_MAJOR 19 +#define CLANG_VERSION_MAJOR_STRING "19" +#define CLANG_VERSION_MINOR 1 - #define CLANG_VERSION_PATCHLEVEL 2 ++#define CLANG_VERSION_PATCHLEVEL 3 + +#define CLANG_VENDOR "FreeBSD " diff --cc lib/clang/include/lld/Common/Version.inc index 555a95af9183,000000000000..6a1154413579 mode 100644,000000..100644 --- a/lib/clang/include/lld/Common/Version.inc +++ b/lib/clang/include/lld/Common/Version.inc @@@ -1,4 -1,0 +1,4 @@@ +// Local identifier in __FreeBSD_version style +#define LLD_FREEBSD_VERSION 1500001 + - #define LLD_VERSION_STRING "19.1.2 (FreeBSD llvmorg-19.1.2-0-g7ba7d8e2f7b6-" __XSTRING(LLD_FREEBSD_VERSION) ")" ++#define LLD_VERSION_STRING "19.1.3 (FreeBSD llvmorg-19.1.3-0-gab51eccf88f5-" __XSTRING(LLD_FREEBSD_VERSION) ")" diff --cc lib/clang/include/lldb/Version/Version.inc index be36ec215810,000000000000..1e614fc8a0cc mode 100644,000000..100644 --- a/lib/clang/include/lldb/Version/Version.inc +++ b/lib/clang/include/lldb/Version/Version.inc @@@ -1,6 -1,0 +1,6 @@@ - #define LLDB_VERSION 19.1.2 - #define LLDB_VERSION_STRING "19.1.2" ++#define LLDB_VERSION 19.1.3 ++#define LLDB_VERSION_STRING "19.1.3" +#define LLDB_VERSION_MAJOR 19 +#define LLDB_VERSION_MINOR 1 - #define LLDB_VERSION_PATCH 2 ++#define LLDB_VERSION_PATCH 3 +/* #undef LLDB_FULL_VERSION_STRING */ diff --cc lib/clang/include/llvm/Config/config.h index 2ad54b836743,000000000000..972b3c894dac mode 100644,000000..100644 --- a/lib/clang/include/llvm/Config/config.h +++ b/lib/clang/include/llvm/Config/config.h @@@ -1,372 -1,0 +1,372 @@@ +#ifndef CONFIG_H +#define CONFIG_H + +// Include this header only under the llvm source tree. +// This is a private header. + +/* Exported configuration */ +#include "llvm/Config/llvm-config.h" + +/* Bug report URL. */ +#define BUG_REPORT_URL "https://bugs.freebsd.org/submit/" + +/* Define to 1 to enable backtraces, and to 0 otherwise. */ +#define ENABLE_BACKTRACES 1 + +/* Define to 1 to enable crash overrides, and to 0 otherwise. */ +#define ENABLE_CRASH_OVERRIDES 1 + +/* Define to 1 to enable crash memory dumps, and to 0 otherwise. */ +#define LLVM_ENABLE_CRASH_DUMPS 0 + +/* Define to 1 to prefer forward slashes on Windows, and to 0 prefer + backslashes. */ +#define LLVM_WINDOWS_PREFER_FORWARD_SLASH 0 + +/* Define to 1 if you have the `backtrace' function. */ +#define HAVE_BACKTRACE TRUE + +#define BACKTRACE_HEADER + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_CRASHREPORTERCLIENT_H */ + +/* can use __crashreporter_info__ */ +#if defined(__APPLE__) +#define HAVE_CRASHREPORTER_INFO 1 +#else +#define HAVE_CRASHREPORTER_INFO 0 +#endif + +/* Define to 1 if you have the declaration of `arc4random', and to 0 if you + don't. */ +#define HAVE_DECL_ARC4RANDOM 1 + +/* Define to 1 if you have the declaration of `FE_ALL_EXCEPT', and to 0 if you + don't. */ +#define HAVE_DECL_FE_ALL_EXCEPT 1 + +/* Define to 1 if you have the declaration of `FE_INEXACT', and to 0 if you + don't. */ +#define HAVE_DECL_FE_INEXACT 1 + +/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you + don't. */ +#define HAVE_DECL_STRERROR_S 0 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define if dlopen() is available on this platform. */ +#define HAVE_DLOPEN 1 + +/* Define if dladdr() is available on this platform. */ +#define HAVE_DLADDR 1 + +#if !defined(__arm__) || defined(__USING_SJLJ_EXCEPTIONS__) || defined(__ARM_DWARF_EH__) +/* Define to 1 if we can register EH frames on this platform. */ +#define HAVE_REGISTER_FRAME 1 + +/* Define to 1 if we can deregister EH frames on this platform. */ +#define HAVE_DEREGISTER_FRAME 1 +#endif // !arm || USING_SJLJ_EXCEPTIONS || ARM_DWARF_EH_ + +/* Define if __unw_add_dynamic_fde() is available on this platform. */ +/* #undef HAVE_UNW_ADD_DYNAMIC_FDE */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_FENV_H 1 + +/* Define if libffi is available on this platform. */ +/* #undef HAVE_FFI_CALL */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_FFI_FFI_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_FFI_H */ + +/* Define to 1 if you have the `futimens' function. */ +#define HAVE_FUTIMENS 1 + +/* Define to 1 if you have the `futimes' function. */ +#define HAVE_FUTIMES 1 + +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define to 1 if you have the `getrlimit' function. */ +#define HAVE_GETRLIMIT 1 + +/* Define to 1 if you have the `getrusage' function. */ +#define HAVE_GETRUSAGE 1 + +/* Define to 1 if you have the `isatty' function. */ +#define HAVE_ISATTY 1 + +/* Define to 1 if you have the `edit' library (-ledit). */ +#define HAVE_LIBEDIT TRUE + +/* Define to 1 if you have the `pfm' library (-lpfm). */ +/* #undef HAVE_LIBPFM */ + +/* Define to 1 if the `perf_branch_entry' struct has field cycles. */ +/* #undef LIBPFM_HAS_FIELD_CYCLES */ + +/* Define to 1 if you have the `psapi' library (-lpsapi). */ +/* #undef HAVE_LIBPSAPI */ + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#define HAVE_LIBPTHREAD 1 + +/* Define to 1 if you have the `pthread_getname_np' function. */ +#define HAVE_PTHREAD_GETNAME_NP 1 + +/* Define to 1 if you have the `pthread_setname_np' function. */ +#define HAVE_PTHREAD_SETNAME_NP 1 + +/* Define to 1 if you have the header file. */ +#if __has_include() +#define HAVE_LINK_H 1 +#else +#define HAVE_LINK_H 0 +#endif + +/* Define to 1 if you have the header file. */ +#if __has_include() +#define HAVE_MACH_MACH_H 1 +#endif + +/* Define to 1 if you have the `mallctl' function. */ +#if defined(__FreeBSD__) +#define HAVE_MALLCTL 1 +#endif + +/* Define to 1 if you have the `mallinfo' function. */ +#if defined(__linux__) +#define HAVE_MALLINFO 1 +#endif + +/* Define to 1 if you have the `mallinfo2' function. */ +/* #undef HAVE_MALLINFO2 */ + +/* Define to 1 if you have the header file. */ +#if __has_include() +#define HAVE_MALLOC_MALLOC_H 1 +#endif + +/* Define to 1 if you have the `malloc_zone_statistics' function. */ +#if defined(__APPLE__) +#define HAVE_MALLOC_ZONE_STATISTICS 1 +#endif + +/* Define to 1 if you have the `posix_spawn' function. */ +#define HAVE_POSIX_SPAWN 1 + +/* Define to 1 if you have the `pread' function. */ +#define HAVE_PREAD 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_PTHREAD_H 1 + +/* Have pthread_mutex_lock */ +#define HAVE_PTHREAD_MUTEX_LOCK 1 + +/* Have pthread_rwlock_init */ +#define HAVE_PTHREAD_RWLOCK_INIT 1 + +/* Define to 1 if you have the `sbrk' function. */ +#define HAVE_SBRK 1 + +/* Define to 1 if you have the `setenv' function. */ +#define HAVE_SETENV 1 + +/* Define to 1 if you have the `setrlimit' function. */ +#define HAVE_SETRLIMIT 1 + +/* Define to 1 if you have the `sigaltstack' function. */ +#define HAVE_SIGALTSTACK 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SIGNAL_H 1 + +/* Define to 1 if you have the `strerror_r' function. */ +#define HAVE_STRERROR_R 1 + +/* Define to 1 if you have the `sysconf' function. */ +#define HAVE_SYSCONF 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_MMAN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_RESOURCE_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if stat struct has st_mtimespec member .*/ +#if !defined(__linux__) +#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1 +#endif + +/* Define to 1 if stat struct has st_mtim member. */ +#if !defined(__APPLE__) +#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 +#endif + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_VALGRIND_VALGRIND_H */ + +/* Have host's _alloca */ +/* #undef HAVE__ALLOCA */ + +/* Define to 1 if you have the `_chsize_s' function. */ +/* #undef HAVE__CHSIZE_S */ + +/* Define to 1 if you have the `_Unwind_Backtrace' function. */ +#define HAVE__UNWIND_BACKTRACE 1 + +/* Have host's __alloca */ +/* #undef HAVE___ALLOCA */ + +/* Have host's __ashldi3 */ +/* #undef HAVE___ASHLDI3 */ + +/* Have host's __ashrdi3 */ +/* #undef HAVE___ASHRDI3 */ + +/* Have host's __chkstk */ +/* #undef HAVE___CHKSTK */ + +/* Have host's __chkstk_ms */ +/* #undef HAVE___CHKSTK_MS */ + +/* Have host's __cmpdi2 */ +/* #undef HAVE___CMPDI2 */ + +/* Have host's __divdi3 */ +/* #undef HAVE___DIVDI3 */ + +/* Have host's __fixdfdi */ +/* #undef HAVE___FIXDFDI */ + +/* Have host's __fixsfdi */ +/* #undef HAVE___FIXSFDI */ + +/* Have host's __floatdidf */ +/* #undef HAVE___FLOATDIDF */ + +/* Have host's __lshrdi3 */ +/* #undef HAVE___LSHRDI3 */ + +/* Have host's __main */ +/* #undef HAVE___MAIN */ + +/* Have host's __moddi3 */ +/* #undef HAVE___MODDI3 */ + +/* Have host's __udivdi3 */ +/* #undef HAVE___UDIVDI3 */ + +/* Have host's __umoddi3 */ +/* #undef HAVE___UMODDI3 */ + +/* Have host's ___chkstk */ +/* #undef HAVE____CHKSTK */ + +/* Have host's ___chkstk_ms */ +/* #undef HAVE____CHKSTK_MS */ + +/* Linker version detected at compile time. */ +/* #undef HOST_LINK_VERSION */ + +/* Define if overriding target triple is enabled */ +/* #undef LLVM_TARGET_TRIPLE_ENV */ + +/* Whether tools show host and target info when invoked with --version */ +#define LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO 1 + +/* Whether tools show optional build config flags when invoked with --version */ +#define LLVM_VERSION_PRINTER_SHOW_BUILD_CONFIG 1 + +/* Define if libxml2 is supported on this platform. */ +/* #undef LLVM_ENABLE_LIBXML2 */ + +/* Define to the extension used for shared libraries, say, ".so". */ +#if defined(__APPLE__) +#define LTDL_SHLIB_EXT ".dylib" +#else +#define LTDL_SHLIB_EXT ".so" +#endif + +/* Define to the extension used for plugin libraries, say, ".so". */ +#if defined(__APPLE__) +#define LLVM_PLUGIN_EXT ".dylib" +#else +#define LLVM_PLUGIN_EXT ".so" +#endif + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "https://bugs.freebsd.org/submit/" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "LLVM" + +/* Define to the full name and version of this package. */ - #define PACKAGE_STRING "LLVM 19.1.2" ++#define PACKAGE_STRING "LLVM 19.1.3" + +/* Define to the version of this package. */ - #define PACKAGE_VERSION "19.1.2" ++#define PACKAGE_VERSION "19.1.3" + +/* Define to the vendor of this package. */ +/* #undef PACKAGE_VENDOR */ + +/* Define to a function implementing stricmp */ +/* #undef stricmp */ + +/* Define to a function implementing strdup */ +/* #undef strdup */ + +/* Whether GlobalISel rule coverage is being collected */ +#define LLVM_GISEL_COV_ENABLED 0 + +/* Define to the default GlobalISel coverage file prefix */ +/* #undef LLVM_GISEL_COV_PREFIX */ + +/* Whether Timers signpost passes in Xcode Instruments */ +#if defined(__APPLE__) +#define LLVM_SUPPORT_XCODE_SIGNPOSTS 1 +#else +#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0 +#endif + +/* #undef HAVE_PROC_PID_RUSAGE */ + +#define HAVE_BUILTIN_THREAD_POINTER 1 + +#endif diff --cc lib/clang/include/llvm/Config/llvm-config.h index 0d8253e78646,000000000000..c3a1df747ff6 mode 100644,000000..100644 --- a/lib/clang/include/llvm/Config/llvm-config.h +++ b/lib/clang/include/llvm/Config/llvm-config.h @@@ -1,232 -1,0 +1,232 @@@ +/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/ +/* */ +/* Part of the LLVM Project, under the Apache License v2.0 with LLVM */ +/* Exceptions. */ +/* See https://llvm.org/LICENSE.txt for license information. */ +/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ +/* */ +/*===----------------------------------------------------------------------===*/ + +/* This file enumerates variables from the LLVM configuration so that they + can be in exported headers and won't override package specific directives. + This is a C header that can be included in the llvm-c headers. */ + +#ifndef LLVM_CONFIG_H +#define LLVM_CONFIG_H + +/* Define if LLVM_ENABLE_DUMP is enabled */ +/* #undef LLVM_ENABLE_DUMP */ + +/* Target triple LLVM will generate code for by default */ +/* Doesn't use `cmakedefine` because it is allowed to be empty. */ +/* #undef LLVM_DEFAULT_TARGET_TRIPLE */ + +/* Define if threads enabled */ +#define LLVM_ENABLE_THREADS 1 + +/* Has gcc/MSVC atomic intrinsics */ +#define LLVM_HAS_ATOMICS 1 + +/* Host triple LLVM will be executed on */ +/* #undef LLVM_HOST_TRIPLE */ + +/* LLVM architecture name for the native architecture, if available */ +/* #undef LLVM_NATIVE_ARCH */ + +/* LLVM name for the native AsmParser init function, if available */ +/* #undef LLVM_NATIVE_ASMPARSER */ + +/* LLVM name for the native AsmPrinter init function, if available */ +/* #undef LLVM_NATIVE_ASMPRINTER */ + +/* LLVM name for the native Disassembler init function, if available */ +/* #undef LLVM_NATIVE_DISASSEMBLER */ + +/* LLVM name for the native Target init function, if available */ +/* #undef LLVM_NATIVE_TARGET */ + +/* LLVM name for the native TargetInfo init function, if available */ +/* #undef LLVM_NATIVE_TARGETINFO */ + +/* LLVM name for the native target MC init function, if available */ +/* #undef LLVM_NATIVE_TARGETMC */ + +/* LLVM name for the native target MCA init function, if available */ +/* #undef LLVM_NATIVE_TARGETMCA */ + +/* Define if the AArch64 target is built in */ +#ifdef LLVM_TARGET_ENABLE_AARCH64 +#define LLVM_HAS_AARCH64_TARGET 1 +#else +#define LLVM_HAS_AARCH64_TARGET 0 +#endif + +/* Define if the AMDGPU target is built in */ +#define LLVM_HAS_AMDGPU_TARGET 0 + +/* Define if the ARC target is built in */ +#define LLVM_HAS_ARC_TARGET 0 + +/* Define if the ARM target is built in */ +#ifdef LLVM_TARGET_ENABLE_ARM +#define LLVM_HAS_ARM_TARGET 1 +#else +#define LLVM_HAS_ARM_TARGET 0 +#endif + +/* Define if the AVR target is built in */ +#define LLVM_HAS_AVR_TARGET 0 + +/* Define if the BPF target is built in */ +#ifdef LLVM_TARGET_ENABLE_BPF +#define LLVM_HAS_BPF_TARGET 1 +#else +#define LLVM_HAS_BPF_TARGET 0 +#endif + +/* Define if the CSKY target is built in */ +#define LLVM_HAS_CSKY_TARGET 0 + +/* Define if the DirectX target is built in */ +#define LLVM_HAS_DIRECTX_TARGET 0 + +/* Define if the Hexagon target is built in */ +#define LLVM_HAS_HEXAGON_TARGET 0 + +/* Define if the Lanai target is built in */ +#define LLVM_HAS_LANAI_TARGET 0 + +/* Define if the LoongArch target is built in */ +#define LLVM_HAS_LOONGARCH_TARGET 0 + +/* Define if the M68k target is built in */ +#define LLVM_HAS_M68K_TARGET 0 + +/* Define if the Mips target is built in */ +#ifdef LLVM_TARGET_ENABLE_MIPS +#define LLVM_HAS_MIPS_TARGET 1 +#else +#define LLVM_HAS_MIPS_TARGET 0 +#endif + +/* Define if the MSP430 target is built in */ +#define LLVM_HAS_MSP430_TARGET 0 + +/* Define if the NVPTX target is built in */ +#define LLVM_HAS_NVPTX_TARGET 0 + +/* Define if the PowerPC target is built in */ +#ifdef LLVM_TARGET_ENABLE_POWERPC +#define LLVM_HAS_POWERPC_TARGET 1 +#else +#define LLVM_HAS_POWERPC_TARGET 0 +#endif + +/* Define if the RISCV target is built in */ +#ifdef LLVM_TARGET_ENABLE_RISCV +#define LLVM_HAS_RISCV_TARGET 1 +#else +#define LLVM_HAS_RISCV_TARGET 0 +#endif + +/* Define if the Sparc target is built in */ +#define LLVM_HAS_SPARC_TARGET 0 + +/* Define if the SPIRV target is built in */ +#define LLVM_HAS_SPIRV_TARGET 0 + +/* Define if the SystemZ target is built in */ +#define LLVM_HAS_SYSTEMZ_TARGET 0 + +/* Define if the VE target is built in */ +#define LLVM_HAS_VE_TARGET 0 + +/* Define if the WebAssembly target is built in */ +#define LLVM_HAS_WEBASSEMBLY_TARGET 0 + +/* Define if the X86 target is built in */ +#ifdef LLVM_TARGET_ENABLE_X86 +#define LLVM_HAS_X86_TARGET 1 +#else +#define LLVM_HAS_X86_TARGET 0 +#endif + +/* Define if the XCore target is built in */ +#define LLVM_HAS_XCORE_TARGET 0 + +/* Define if the Xtensa target is built in */ +#define LLVM_HAS_XTENSA_TARGET 0 + +/* Define if this is Unixish platform */ +#define LLVM_ON_UNIX 1 + +/* Define if we have the Intel JIT API runtime support library */ +#define LLVM_USE_INTEL_JITEVENTS 0 + +/* Define if we have the oprofile JIT-support library */ +#define LLVM_USE_OPROFILE 0 + +/* Define if we have the perf JIT-support library */ +#define LLVM_USE_PERF 0 + +/* Major version of the LLVM API */ +#define LLVM_VERSION_MAJOR 19 + +/* Minor version of the LLVM API */ +#define LLVM_VERSION_MINOR 1 + +/* Patch version of the LLVM API */ - #define LLVM_VERSION_PATCH 2 ++#define LLVM_VERSION_PATCH 3 + +/* LLVM version string */ - #define LLVM_VERSION_STRING "19.1.2" ++#define LLVM_VERSION_STRING "19.1.3" + +/* Whether LLVM records statistics for use with GetStatistics(), + * PrintStatistics() or PrintStatisticsJSON() + */ +#define LLVM_FORCE_ENABLE_STATS 0 + +/* Define if we have z3 and want to build it */ +/* #undef LLVM_WITH_Z3 */ + +/* Define if we have curl and want to use it */ +/* #undef LLVM_ENABLE_CURL */ + +/* Define if we have cpp-httplib and want to use it */ +/* #undef LLVM_ENABLE_HTTPLIB */ + +/* Define if zlib compression is available */ +#define LLVM_ENABLE_ZLIB 1 + +/* Define if zstd compression is available */ +#define LLVM_ENABLE_ZSTD 1 + +/* Define if LLVM is using tflite */ +/* #undef LLVM_HAVE_TFLITE */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYSEXITS_H 1 + +/* Define if building libLLVM shared library */ +/* #undef LLVM_BUILD_LLVM_DYLIB */ + +/* Define if building LLVM with BUILD_SHARED_LIBS */ +/* #undef LLVM_BUILD_SHARED_LIBS */ + +/* Define if building LLVM with LLVM_FORCE_USE_OLD_TOOLCHAIN_LIBS */ +/* #undef LLVM_FORCE_USE_OLD_TOOLCHAIN */ + +/* Define if llvm_unreachable should be optimized with undefined behavior + * in non assert builds */ +#define LLVM_UNREACHABLE_OPTIMIZE 1 + +/* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */ +#define LLVM_ENABLE_DIA_SDK 0 + +/* Define if plugins enabled */ +/* #undef LLVM_ENABLE_PLUGINS */ + +/* Define if logf128 is available */ +/* #undef LLVM_HAS_LOGF128 */ + +#endif diff --cc lib/clang/include/llvm/Support/VCSRevision.h index a9cdf75b6b13,000000000000..361bd66edf2f mode 100644,000000..100644 --- a/lib/clang/include/llvm/Support/VCSRevision.h +++ b/lib/clang/include/llvm/Support/VCSRevision.h @@@ -1,2 -1,0 +1,2 @@@ - #define LLVM_REVISION "llvmorg-19.1.2-0-g7ba7d8e2f7b6" ++#define LLVM_REVISION "llvmorg-19.1.3-0-gab51eccf88f5" +#define LLVM_REPOSITORY "https://github.com/llvm/llvm-project.git" diff --cc lib/libc++/__assertion_handler index 3b6d6b2cca53,000000000000..e12ccccdaff3 mode 100644,000000..100644 --- a/lib/libc++/__assertion_handler +++ b/lib/libc++/__assertion_handler @@@ -1,40 -1,0 +1,41 @@@ +// -*- C++ -*- +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef _LIBCPP___ASSERTION_HANDLER +#define _LIBCPP___ASSERTION_HANDLER + +#include <__config> +#include <__verbose_abort> + +#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) +# pragma GCC system_header +#endif + +#if _LIBCPP_HARDENING_MODE == _LIBCPP_HARDENING_MODE_DEBUG + +# define _LIBCPP_ASSERTION_HANDLER(message) _LIBCPP_VERBOSE_ABORT("%s", message) + +#else + +# if __has_builtin(__builtin_verbose_trap) +// AppleClang shipped a slightly different version of __builtin_verbose_trap from the upstream +// version before upstream Clang actually got the builtin. - # if defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER < 17000 ++// TODO: Remove once AppleClang supports the two-arguments version of the builtin. ++# if defined(_LIBCPP_APPLE_CLANG_VER) && _LIBCPP_APPLE_CLANG_VER < 1700 +# define _LIBCPP_ASSERTION_HANDLER(message) __builtin_verbose_trap(message) +# else +# define _LIBCPP_ASSERTION_HANDLER(message) __builtin_verbose_trap("libc++", message) +# endif +# else +# define _LIBCPP_ASSERTION_HANDLER(message) ((void)message, __builtin_trap()) +# endif + +#endif // _LIBCPP_HARDENING_MODE == _LIBCPP_HARDENING_MODE_DEBUG + +#endif // _LIBCPP___ASSERTION_HANDLER diff --cc lib/libomp/kmp_config.h index 3a8f726353bf,000000000000..9caf4b8cdf44 mode 100644,000000..100644 --- a/lib/libomp/kmp_config.h +++ b/lib/libomp/kmp_config.h @@@ -1,196 -1,0 +1,196 @@@ +/* + * kmp_config.h -- Feature macros + */ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +#ifndef KMP_CONFIG_H +#define KMP_CONFIG_H + +#include "kmp_platform.h" + +// cmakedefine01 MACRO will define MACRO as either 0 or 1 +// cmakedefine MACRO 1 will define MACRO as 1 or leave undefined +#define DEBUG_BUILD 0 +#define RELWITHDEBINFO_BUILD 0 +#define LIBOMP_USE_ITT_NOTIFY 1 +#define USE_ITT_NOTIFY LIBOMP_USE_ITT_NOTIFY +#if ! LIBOMP_USE_ITT_NOTIFY +# define INTEL_NO_ITTNOTIFY_API +#endif +#define LIBOMP_USE_VERSION_SYMBOLS 1 +#if LIBOMP_USE_VERSION_SYMBOLS +# define KMP_USE_VERSION_SYMBOLS +#endif +#define LIBOMP_HAVE_WEAK_ATTRIBUTE 1 +#define KMP_HAVE_WEAK_ATTRIBUTE LIBOMP_HAVE_WEAK_ATTRIBUTE +#define LIBOMP_HAVE_PSAPI 0 +#define KMP_HAVE_PSAPI LIBOMP_HAVE_PSAPI +#define LIBOMP_STATS 0 +#define KMP_STATS_ENABLED LIBOMP_STATS +#define LIBOMP_HAVE_X86INTRIN_H 0 +#define KMP_HAVE_X86INTRIN_H LIBOMP_HAVE_X86INTRIN_H +#define LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER 0 +#define KMP_HAVE___BUILTIN_READCYCLECOUNTER LIBOMP_HAVE___BUILTIN_READCYCLECOUNTER +#define LIBOMP_HAVE___RDTSC 0 +#define KMP_HAVE___RDTSC LIBOMP_HAVE___RDTSC +#define LIBOMP_USE_DEBUGGER 0 +#define USE_DEBUGGER LIBOMP_USE_DEBUGGER +#define LIBOMP_OMPT_DEBUG 0 +#define OMPT_DEBUG LIBOMP_OMPT_DEBUG +#define LIBOMP_OMPT_SUPPORT 1 +#define OMPT_SUPPORT LIBOMP_OMPT_SUPPORT +#define LIBOMP_OMPD_SUPPORT 0 +#define OMPD_SUPPORT LIBOMP_OMPD_SUPPORT +#define LIBOMP_OMPX_TASKGRAPH 0 +#define OMPX_TASKGRAPH LIBOMP_OMPX_TASKGRAPH +#define LIBOMP_PROFILING_SUPPORT 0 +#define OMP_PROFILING_SUPPORT LIBOMP_PROFILING_SUPPORT +#define LIBOMP_OMPT_OPTIONAL 1 +#define OMPT_OPTIONAL LIBOMP_OMPT_OPTIONAL +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 // FreeBSD customization { +#define LIBOMP_USE_ADAPTIVE_LOCKS 1 +#else +#define LIBOMP_USE_ADAPTIVE_LOCKS 0 +#endif // } FreeBSD customization +#define KMP_USE_ADAPTIVE_LOCKS LIBOMP_USE_ADAPTIVE_LOCKS +#define KMP_DEBUG_ADAPTIVE_LOCKS 0 +#define LIBOMP_USE_INTERNODE_ALIGNMENT 0 +#define KMP_USE_INTERNODE_ALIGNMENT LIBOMP_USE_INTERNODE_ALIGNMENT +#define LIBOMP_ENABLE_ASSERTIONS 1 +#define KMP_USE_ASSERT LIBOMP_ENABLE_ASSERTIONS +#define LIBOMP_USE_HIER_SCHED 0 +#define KMP_USE_HIER_SCHED LIBOMP_USE_HIER_SCHED +#define STUBS_LIBRARY 0 +#define LIBOMP_USE_HWLOC 0 +#define KMP_USE_HWLOC LIBOMP_USE_HWLOC +#define LIBOMP_ENABLE_SHARED 1 +#define KMP_DYNAMIC_LIB LIBOMP_ENABLE_SHARED +#if KMP_ARCH_X86 // FreeBSD customization { +#define KMP_ARCH_STR "IA-32" +#elif KMP_ARCH_X86_64 +#define KMP_ARCH_STR "Intel(R) 64" +#elif KMP_ARCH_AARCH64 +#define KMP_ARCH_STR "AARCH64" +#elif KMP_ARCH_PPC64 +#define KMP_ARCH_STR "PPC64BE" +#elif KMP_ARCH_MIPS +#define KMP_ARCH_STR "MIPS" +#elif KMP_ARCH_MIPS64 +#define KMP_ARCH_STR "MIPS64" +#elif KMP_ARCH_RISCV64 +#define KMP_ARCH_STR "RISCV64" +#else +#error Unknown KMP_ARCH value +#endif // } FreeBSD customization +#define KMP_LIBRARY_FILE "libomp.so" +#define KMP_VERSION_MAJOR 5 +#define KMP_VERSION_MINOR 0 +#define MSVC 0 +#define KMP_MSVC_COMPAT MSVC +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 // FreeBSD customization { +#define LIBOMP_HAVE_WAITPKG_INTRINSICS 1 +#else +#define LIBOMP_HAVE_WAITPKG_INTRINSICS 0 +#endif // } FreeBSD customization +#define KMP_HAVE_WAITPKG_INTRINSICS LIBOMP_HAVE_WAITPKG_INTRINSICS +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 // FreeBSD customization { +#define LIBOMP_HAVE_RTM_INTRINSICS 1 +#else +#define LIBOMP_HAVE_RTM_INTRINSICS 0 +#endif // } FreeBSD customization +#define KMP_HAVE_RTM_INTRINSICS LIBOMP_HAVE_RTM_INTRINSICS +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 // FreeBSD customization { +#define LIBOMP_HAVE_IMMINTRIN_H 1 +#else +#define LIBOMP_HAVE_IMMINTRIN_H 0 +#endif // } FreeBSD customization +#define KMP_HAVE_IMMINTRIN_H LIBOMP_HAVE_IMMINTRIN_H +#define LIBOMP_HAVE_INTRIN_H 0 +#define KMP_HAVE_INTRIN_H LIBOMP_HAVE_INTRIN_H +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 // FreeBSD customization { +#define LIBOMP_HAVE_ATTRIBUTE_WAITPKG 1 +#else +#define LIBOMP_HAVE_ATTRIBUTE_WAITPKG 0 +#endif // } FreeBSD customization +#define KMP_HAVE_ATTRIBUTE_WAITPKG LIBOMP_HAVE_ATTRIBUTE_WAITPKG +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 // FreeBSD customization { +#define LIBOMP_HAVE_ATTRIBUTE_RTM 1 +#else +#define LIBOMP_HAVE_ATTRIBUTE_RTM 0 +#endif // } FreeBSD customization +#define KMP_HAVE_ATTRIBUTE_RTM LIBOMP_HAVE_ATTRIBUTE_RTM +#define LIBOMP_ARCH_AARCH64_A64FX 0 +#define KMP_ARCH_AARCH64_A64FX LIBOMP_ARCH_AARCH64_A64FX +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 // FreeBSD customization { +#define LIBOMP_HAVE_XMMINTRIN_H 1 +#else +#define LIBOMP_HAVE_XMMINTRIN_H 0 +#endif // } FreeBSD customization +#define KMP_HAVE_XMMINTRIN_H LIBOMP_HAVE_XMMINTRIN_H +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 // FreeBSD customization { +#define LIBOMP_HAVE__MM_MALLOC 1 +#else +#define LIBOMP_HAVE__MM_MALLOC 0 +#endif // } FreeBSD customization +#define KMP_HAVE__MM_MALLOC LIBOMP_HAVE__MM_MALLOC +#define LIBOMP_HAVE_ALIGNED_ALLOC 1 +#define KMP_HAVE_ALIGNED_ALLOC LIBOMP_HAVE_ALIGNED_ALLOC +#define LIBOMP_HAVE_POSIX_MEMALIGN 1 +#define KMP_HAVE_POSIX_MEMALIGN LIBOMP_HAVE_POSIX_MEMALIGN +#define LIBOMP_HAVE__ALIGNED_MALLOC 0 +#define KMP_HAVE__ALIGNED_MALLOC LIBOMP_HAVE__ALIGNED_MALLOC +#define OPENMP_ENABLE_LIBOMPTARGET 0 +#define ENABLE_LIBOMPTARGET OPENMP_ENABLE_LIBOMPTARGET + +// Configured cache line based on architecture - #if KMP_ARCH_PPC64 ++#if KMP_ARCH_PPC64 || KMP_ARCH_PPC +# define CACHE_LINE 128 +#elif KMP_ARCH_AARCH64_A64FX +# define CACHE_LINE 256 +#elif KMP_ARCH_S390X +# define CACHE_LINE 256 +#else +# define CACHE_LINE 64 +#endif + +#if ! KMP_32_BIT_ARCH +# define BUILD_I8 1 +#endif + +#define KMP_NESTED_HOT_TEAMS 1 +#define KMP_ADJUST_BLOCKTIME 1 +#define BUILD_PARALLEL_ORDERED 1 +#define KMP_ASM_INTRINS 1 +#define USE_ITT_BUILD LIBOMP_USE_ITT_NOTIFY +#define INTEL_ITTNOTIFY_PREFIX __kmp_itt_ +#if ! KMP_MIC +# define USE_LOAD_BALANCE 1 +#endif +#if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN) +# define KMP_TDATA_GTID 1 +#endif +#if STUBS_LIBRARY +# define KMP_STUB 1 +#endif +#if DEBUG_BUILD || RELWITHDEBINFO_BUILD +# define KMP_DEBUG 1 +#endif + *** 13 LINES SKIPPED *** From nobody Fri Nov 8 18:13:17 2024 X-Original-To: dev-commits-src-all@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 4XlRrY5MNCz5cbLy; Fri, 08 Nov 2024 18:13:17 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlRrY4n3gz42rJ; Fri, 8 Nov 2024 18:13:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731089597; 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=tjpE0V/uobuYkqmHurwPEK47VscKo/M3YiYbrKvfCmA=; b=e3MffsDIqnIGtblxU61C+YjcSZqsO/tFSNSxYqUzfY/q+WfO9rAn5R8tb7JBPwJ/KiT9jT W9r0bv6DMad2dyvbL4occHm17Z+ADdWxLv0Ss0eWjCkyuIJsUtCPvJ31srqC9mva5U/NBc RVepjp9SCqu8xn/lGzlpo3h+pW2SjaLHk+NWAuaARIgThQ7auHTMm6D2fhmX5emlNZPCjI y8snIbM+J82pw8gmSAPCMt+0v42/MYqSE3EzDfUXFnNMfZhkaZhqjjc+fYHaJ/e0YkbfQ3 uJTHfdnmtqewkrwaF0zF2qO82Sij6kxm72xrF3vfF+ueixWbxJ7HebHHLUuSKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731089597; 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=tjpE0V/uobuYkqmHurwPEK47VscKo/M3YiYbrKvfCmA=; b=HNMKtUBJczv4AXhxlJpJopVEtxDt9A3WY/cDWOb2qqGFm6hZjvORe5Z11iWWwm95itsvVz 7lOtlkRhTiveGIb+GKgAZ//gZswhzzQUWY2RmwUEtH44IwyeVXpFMytHZl/tSoWkpO8TjE 11CU2T7ACalifry0P/BlEdunQ0PHv6I3Tn9nvBuE827KJwJ1LE6vB7em+RhM9phQ4Ntqx+ At4trUojcaAIBuFOZuKMoRbQsTr3GvXM5svtDt3VyU9BsSEnJmHe2WiXKV+pO/WW4GQB6H bb89zcpU0s/GgE8vu5PL7U0+Tx2sS0RyDFaXbfAy9mIB6a+c5KiZyXyiS9qX9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731089597; a=rsa-sha256; cv=none; b=aWD7DX4aejyZS8MMaRaGdmkFvEgwc6RI21QcbJYU6kiIxyDxkO1RAtE5NozWYM5heDSo12 y/t9G6fITc7NisyeER+iQUzxCFeEMm2Ea/XS9dROXPQZyhIKJ9KN39BloDHTPtrJvdLyaY 3Jb9WTnJsi6ZrqtzqmmdGJKoaPNMppKn0kV0dcXHoC6ijQwbGucRE/Og5+OViPFMKkRexa 19P+1//AANG2tz5ZyBoq3btKLMavUV0Ipbz/GViBPRCJv2JtXfNXMNRXyk7UWQKInB3LqU vtNDGbu+belWlAhnUMBV2/9wUdpugW7Tokx8UZj7msijGwE2IDyFEAl/Sie2Qg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlRrY4HlMzgYF; Fri, 8 Nov 2024 18:13:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A8IDH6c033743; Fri, 8 Nov 2024 18:13:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A8IDHmi033740; Fri, 8 Nov 2024 18:13:17 GMT (envelope-from git) Date: Fri, 8 Nov 2024 18:13:17 GMT Message-Id: <202411081813.4A8IDHmi033740@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 52f8e99e7e5e - main - iwlwifi: script to extract firmware details List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 52f8e99e7e5e6fab52b3fff535d62b873f8c02dd Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=52f8e99e7e5e6fab52b3fff535d62b873f8c02dd commit 52f8e99e7e5e6fab52b3fff535d62b873f8c02dd Author: Bjoern A. Zeeb AuthorDate: 2024-11-08 18:09:37 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-11-08 18:09:37 +0000 iwlwifi: script to extract firmware details When having to find a firmware image with a lower version number we must only break the inner but not also the outer loop so we keep looking at any possibly remaining firmware details. While here also try to find a version from max..1 and not from 1..max. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh b/sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh index 60c75c00cbc7..6b6798aae49e 100644 --- a/sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh +++ b/sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh @@ -155,11 +155,11 @@ list_fw() vn=$(echo ${fx} | awk '{ gsub(".ucode$", ""); gsub("^.*-", ""); print; }') #echo "BN ${bn} VN ${vn}" # Single digits are not zero-padded so just ${i} will be fine. - for i in `jot ${vn} 1`; do + for i in `jot ${vn} ${vn} 1`; do xn="${bn}-${i}.ucode" if test -e ${LFWDIR}/${xn}; then lx="${lx} ${xn}" - break 2; + break fi done ;; From nobody Fri Nov 8 18:15:56 2024 X-Original-To: dev-commits-src-all@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 4XlRvc58Vdz5cbpt; Fri, 08 Nov 2024 18:15:56 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlRvc4fQNz42vZ; Fri, 8 Nov 2024 18:15:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731089756; 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=5Y4YCb2PHeAeb32z/URzlu24OynwbRkNqfZQb+WUpXo=; b=xb1Y1rL/iyJV+zXSpitfaOtAFTJ2Rz87Uhmt543eCgvOWscoeoo51N+iRkckW32BKKXtSB E8YO4GYXU3hJP966SGmkRQM2ROVRca8xRDbjd8KzUtba96W8L6QadKZJvXtHmOazj3UIDm n6tE3J+IDFEZRf9EQSHeLEci/ZAMDkXo398q4fJtpDvoSa0SUrc5MNkyJJMUqm48fcsHTb Q+UQ5visX60t6kSoxoZM+4g2gFZBt+rNJxexFhaQSpglzrTaTptrM7bFl7S8gkEwlyiFg4 eKnbv7q4DY257mEsMRPNTnJKVDUaSHJoFb65xvYtFLMzt1oWVIoi/XQ/2QSVbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731089756; 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=5Y4YCb2PHeAeb32z/URzlu24OynwbRkNqfZQb+WUpXo=; b=uje1el5L6jIygO+H0icwbtMVBLb/fHZAj5YYfxf0ylK4ikG6jThUqDKiuOGPCGVptfKRP5 huTuiH1ouo0P1d0ouXPa5othMaRN/qDmKsFnYVdmYqg57BoDYZVqff+GChsiVVbbx/PXMu M3flPXaUWJ521Q9z1Vicv9V123egse+IivMl/7WjpkgAF3Ka7N3aWTroNH23OcuVCO5cey okjf0waV8cUOKA/C5l8jYmeB1+XRVjFYTVmadkU9zQSRkjNddgZg9Js5KOkCULDnz+ICzo RBu2D269OxQBSlmQgNwt5MStqyweBSkGa+TVxractR7e8yeYYnZacuoh+kCzGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731089756; a=rsa-sha256; cv=none; b=CCAZ76zWGHUBLaT7qPFkkXvdSnZc47tk2tFjTohMAQmGFopKOWEu4fKkXbWdhx4a4T0Dbi ult8e7SY79MD9DKJtgB3kaow8AG/0FiSJxMVIE6moRM7wk8HFaETApg+Zk+jCjsadHKKr/ 1jsGUyJnTpswCcN31v9PSVpHI+uX2toPSKbPSRK3dzrXy3eqSfHwQXAwzgSWbsTN1gQGRV lfVjTFrWjK+CuKd3NglgiNv3CRPgCoIzfYdklPZBsNNnAKYYjGHsLvX3VrnabWlEwJIR2u /dMTd4CMXbUCGBRLTFfN+FlAd7cLJPnMoj9gMAOZWT5hEWQoa/nyFMobb1EoSg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlRvc4BMHzgNR; Fri, 8 Nov 2024 18:15:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A8IFunG034593; Fri, 8 Nov 2024 18:15:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A8IFubf034590; Fri, 8 Nov 2024 18:15:56 GMT (envelope-from git) Date: Fri, 8 Nov 2024 18:15:56 GMT Message-Id: <202411081815.4A8IFubf034590@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 1eb3f15c149b - main - fwget: add -q for quiet output List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1eb3f15c149b9a2e5b6f5e10aed454fc85945bbd Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=1eb3f15c149b9a2e5b6f5e10aed454fc85945bbd commit 1eb3f15c149b9a2e5b6f5e10aed454fc85945bbd Author: Bjoern A. Zeeb AuthorDate: 2024-11-04 23:59:58 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-11-08 18:13:54 +0000 fwget: add -q for quiet output Introduce -q to quieten other output (unless -v is also given). pkg-install(8) currently has no option to allow skipping unavail packages but it will just fail. We would realy want to try to install as much firmware found as possible from the installer. Work around this by doing one firmware package at a time. For that it is highly helpful to be able to query (or possibly re-query) all outstanding fimrware packages. -q together with -n only shows each package to be installed one by line. Once https://github.com/freebsd/pkg/issues/2195 will be implemented we could undo this part of the change and future changes to the installer and use the new option for pkg-install(8) there. While here switch to getopts so -qn works and not just -q -n. Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D47445 --- usr.sbin/fwget/fwget.sh | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) diff --git a/usr.sbin/fwget/fwget.sh b/usr.sbin/fwget/fwget.sh old mode 100644 new mode 100755 index 154fb7dc92e1..3e2181e53b73 --- a/usr.sbin/fwget/fwget.sh +++ b/usr.sbin/fwget/fwget.sh @@ -38,7 +38,8 @@ Supported subsystems pci Options: - -n -- Do not install package, only print the results + -n -- Do not install packages, only print the results + -q -- Quiet mode. If used with -n only prints a package a line -v -- More verbose EOF exit 1 @@ -75,22 +76,27 @@ addpkg() } DRY_RUN=n +QUIET=n VERBOSE=n -while [ $# -gt 0 ]; do - case $1 in - -n) - DRY_RUN=y - ;; - -v) - VERBOSE=y - ;; - *) - subsystems="${subsystems} $1" - ;; +while getopts ":nqv" _arg; do + case ${_arg} in + n) + DRY_RUN=y + ;; + q) + QUIET=y + ;; + v) + VERBOSE=y + ;; + ?) + usage + ;; esac - shift done +shift $(($OPTIND - 1)) +subsystems="$@" # Default searching PCI subsystem if [ -z "${subsystems}" ]; then @@ -112,13 +118,25 @@ done case "${packages}" in ""|^[[:space:]]*$) - echo "No firmware packages to install." + if [ "${QUIET}" != "y" ]; then + echo "No firmware packages to install." + fi exit 0 ;; esac -echo "Needed firmware packages: '${packages}'" +if [ "${QUIET}" != "y" ]; then + echo "Needed firmware packages: '${packages}'" +fi if [ "${DRY_RUN}" = "y" ]; then + if [ "${QUIET}" = "y" ]; then + for pkg in ${packages}; do + case "${pkg}" in + ""|^[[:space:]]*$) continue ;; + esac + echo "${pkg}" + done + fi exit 0 fi From nobody Fri Nov 8 18:17:00 2024 X-Original-To: dev-commits-src-all@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 4XlRwz26PKz5cc1l; Fri, 08 Nov 2024 18:17:07 +0000 (UTC) (envelope-from bz@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlRwz18Ldz43rj; Fri, 8 Nov 2024 18:17:07 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731089827; 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=Unv8iPqV46+xvqBeGGw6Efsto4OCA+AXdes1VsMvjE4=; b=V5C+0X1KFFhweOhoFpNLp2bTol3kF3UJf3S9NG0i9k0ThNv7NB1r2CP2auk13K2MFjkZ0O BUQWphr6qUTE8UAw8wA3L0HUf1qnTK+5yFkrgu/Gnw7/ix86FmMgyZYNU0x+xiCWUZue26 8bos0CsDw/9M5k/mvLI2V+VukVinVJbxJ8HLwYBhixtFsFUX45gMesB4vfrj2DdBb2pBIu Y7tMow7t0bGberBC2sBv3AqsXtYMJIEiJY/wkhAw1kGmZB6K8dJ5HrjZxzLFxrKruEUg9p XnGgC7vAe9o7PVzZKyc+4EspzuX+Bs8xIqwG0QygJxbOKjkyrfQ6/3JOZ+UiBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731089827; 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=Unv8iPqV46+xvqBeGGw6Efsto4OCA+AXdes1VsMvjE4=; b=fa8Jj7TZo7t3JcSxKuY2HkwXGIT5tVoGGa2u3YJcKDkB/cLonIuGfkgNcVXvLTY0zAE4HG YTFUPtE+rft0MW3fy1IAdolTo3qPaoOIVpo3WEPUCmKshoTHWODQHFGxQFEMqbgQIE/oMp HOjg3Aj8JBi2uzxBWD9Ec+u+jCzuJhF51ZJ7PkZ/8qV7BsYs72W6dvzHKt2uN6qXimlHBR 50otQUlWK58MLH6ek4iy/BXvMk1HXIJMXDwwI4Sk3saiEhBAfGANUjlz1YtmT37k8ZMyjr C4yr9NDcQpAPFD6+HFdMZKj2AyU6DLA94AlYtM9Yc5v4PgbjwEIZRGnvlMUdQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731089827; a=rsa-sha256; cv=none; b=yGlN5ki7cm4sSnByhiLxR6GeEw2lXkin3GiTI1kJ0Qdyv+LYm8z8yHtXiU7ICiAOWcZ5KE MS06oZyujz4PqdzZ/VXvLyHQz76MWe4ZD/yhWhXi8LnzkzeAW1AV2PI1jv1z/1xOwL4W8L b3TJKvAsWIMQBfoMJMvWZvQJhbUEPbCEKxTDdwWRW4NQYLBg3xwnL8QPfxcQ8HNVF7YISe R7/AXXrVDjRartDKDMRE/QDf3dSQYXm4u6G/nJErzs06Fw7pa1R78wxYsrluZ4vcyt+0xV CelYD9Yk18hjyR/gwK7gJGw6G5hv00v7H9i/Iv7592E3ssAU8+OLzJV7QHn/5Q== Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E6" (verified OK)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XlRwy24k6z10w7; Fri, 8 Nov 2024 18:17:06 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 2CCC9A64805; Fri, 08 Nov 2024 18:16:57 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 7767A2D029D9; Fri, 8 Nov 2024 18:17:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id 7biDhOWLGx4D; Fri, 8 Nov 2024 18:17:01 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id A9C442D029D8; Fri, 8 Nov 2024 18:17:01 +0000 (UTC) Date: Fri, 8 Nov 2024 18:17:00 +0000 (UTC) From: "Bjoern A. Zeeb" To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 1eb3f15c149b - main - fwget: add -q for quiet output In-Reply-To: <202411081815.4A8IFubf034590@gitrepo.freebsd.org> Message-ID: References: <202411081815.4A8IFubf034590@gitrepo.freebsd.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Fri, 8 Nov 2024, Bjoern A. Zeeb wrote: > The branch main has been updated by bz: > > URL: https://cgit.FreeBSD.org/src/commit/?id=1eb3f15c149b9a2e5b6f5e10aed454fc85945bbd > > commit 1eb3f15c149b9a2e5b6f5e10aed454fc85945bbd > Author: Bjoern A. Zeeb > AuthorDate: 2024-11-04 23:59:58 +0000 > Commit: Bjoern A. Zeeb > CommitDate: 2024-11-08 18:13:54 +0000 > > fwget: add -q for quiet output > > Introduce -q to quieten other output (unless -v is also given). > > pkg-install(8) currently has no option to allow skipping unavail > packages but it will just fail. > We would realy want to try to install as much firmware found as > possible from the installer. > Work around this by doing one firmware package at a time. > For that it is highly helpful to be able to query (or possibly re-query) > all outstanding fimrware packages. > -q together with -n only shows each package to be installed one by line. > > Once https://github.com/freebsd/pkg/issues/2195 will be implemented > we could undo this part of the change and future changes to the installer > and use the new option for pkg-install(8) there. > > While here switch to getopts so -qn works and not just -q -n. > > Sponsored by: The FreeBSD Foundation > MFC after: 3 days Reviewed by: manu > Differential Revision: https://reviews.freebsd.org/D47445 -- Bjoern A. Zeeb r15:7 From nobody Fri Nov 8 22:12:48 2024 X-Original-To: dev-commits-src-all@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 4XlY8w6nlVz5csRg; Fri, 08 Nov 2024 22:12:48 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlY8w6Gzzz4SGX; Fri, 8 Nov 2024 22:12:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731103968; 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=s63tWWu50uGuamoX2bcOLhZVnaySwXXGL1SEDJDepx8=; b=Bq61UQvvQ1+JjqRZ1ofG73cPtcXR0KmgIZbCCSe0rix/RvOWnLcjnCloFUCkkqoDv718Mh hqemkCFMuREv4He+OLQ3wGQqqPE/fU6CzoPBfsL0c53fWqKZOPZTVFDBjhBOhZ+nipfzrm 9cUYlF/BEXg7DG1GVB0C35wbCRanPEZl9S1b9mwS41PuUA3YfGxbQJlEcUyg+1C/OKIoFQ nIq172rNruod6Y1T+axAZ/y2RN4+AHmFIAem1Jydr03ecnVbO78yPz+z4I9IH24C3ofnvs 1j10JBc6QF8kVLhikpkW+TtT+ZpPKIanmk221nTCzCYaHCP4ayG5SfPteWYneg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731103968; 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=s63tWWu50uGuamoX2bcOLhZVnaySwXXGL1SEDJDepx8=; b=esx4B/JFYkl+pJn9d4IfZ6nlMKwldSr9Jme35YpEgNYNoKOEJWCLmH5g0a8EaTBXYLMQ04 nbhYwo5WtJAJL1it8n0yo3mtJE0uGequRtzTJ7vlnCI5kE8zbtNVeWPb2hEjL2dwtsrVln xqN5qj9Dk0uIK42CJiOlx86sxdVZJrHLAn5LM05LCbAO1ZSwsGuebFo7+BvZC9yP1iIjIi 4PWFNvSebAyQBAU6rRa6C8MBThq+hpRjqCjr28b2WY6eNtmUpRNZhMfWvtI1iv/ViKC335 656PEKuVqdILv3Upt4d1EpkqKrBz5KiYVopzMLlYiy72A5H1OCEBqhHVtmfodw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731103968; a=rsa-sha256; cv=none; b=fqPFVO2GHKk396TqwdYmeEX4wz+ZSGtKZyVS6rSDEx2x98sURSX++GsTXpKUhDrQEWlQFn gOClY4ch6kp/031kZ6q5i21FrNOmgd40IjqbMPFJd01oj9kdsh0JKnVOb95hZfjWBkZBwa OLkwFrrIaUA4q45ErvpdVPEBJNmKIjaPW6l7WYTWbh+aFHXDbQwvwPMZ/D1JHMs90SDLfP 8TAacL66ZfjM2mMKPQ+9Tt9AvC7v8e5IDzosdyfihhdN/bFuw7H8AxzsTTLl7CRzMgK+Up JzdeYd9A/dWcySnN7zi8ysPsb/oNjYOl9Tc2eRBlYtYKg5UCXdfOxjTYDnYbww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlY8w5tS6znP1; Fri, 8 Nov 2024 22:12:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A8MCmGD080910; Fri, 8 Nov 2024 22:12:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A8MCmsw080907; Fri, 8 Nov 2024 22:12:48 GMT (envelope-from git) Date: Fri, 8 Nov 2024 22:12:48 GMT Message-Id: <202411082212.4A8MCmsw080907@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Gallatin Subject: git: fd67ff5c7a6c - main - Use the correct idle routine on recent AMD EPYC servers List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gallatin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fd67ff5c7a6cd9a2e82e6a02ea249cec76a4c030 Auto-Submitted: auto-generated The branch main has been updated by gallatin: URL: https://cgit.FreeBSD.org/src/commit/?id=fd67ff5c7a6cd9a2e82e6a02ea249cec76a4c030 commit fd67ff5c7a6cd9a2e82e6a02ea249cec76a4c030 Author: Andrew Gallatin AuthorDate: 2024-11-08 21:37:32 +0000 Commit: Andrew Gallatin CommitDate: 2024-11-08 22:10:44 +0000 Use the correct idle routine on recent AMD EPYC servers We have been incorrectly choosing the "hlt" idle method on modern AMD EPYC servers for C1 idle. This is because AMD also uses the Functional Fixed Hardware interface. Due to not parsing the table properly for AMD, and due to a weird quirk where the mwait latency for C1 is mis-interpreted as the latency for hlt, we wind up choosing hlt for c1, which has a far higher wake up latency (similar to IO) of roughly 400us on my test system (AMD 7502P). This patch fixes this by: - Looking for AMD in addition to Intel in the FFH (Note the vendor id of "2" for AMD is not publically documented, but AMD has confirmed they are using "2" and has promised to document it.) - Using mwait on AMD when specified in the table, and when CPUid says its supported - Fixing a weird issue where we copy the contents of cx_ptr for C1 and when moving to C2, we do not reinitialize cx_ptr. This leads to mwait being selected, and ignoring the specified i/o halt method unless we clear mwait before looking at the table for C2. Differential Revision: https://reviews.freebsd.org/D47444 Reviewed by: dab, kib, vangyzen Sponsored by: Netflix --- sys/dev/acpica/acpi_cpu.c | 9 +++++++-- sys/x86/include/x86_var.h | 1 + sys/x86/x86/identcpu.c | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 80855cf168e9..63e17de1ff28 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -131,6 +131,7 @@ struct acpi_cpu_device { #define PIIX4_PCNTRL_BST_EN (1<<10) #define CST_FFH_VENDOR_INTEL 1 +#define CST_FFH_VENDOR_AMD 2 #define CST_FFH_INTEL_CL_C1IO 1 #define CST_FFH_INTEL_CL_MWAIT 2 #define CST_FFH_MWAIT_HW_COORD 0x0001 @@ -855,7 +856,8 @@ acpi_cpu_cx_cst(struct acpi_cpu_softc *sc) acpi_cpu_cx_cst_free_plvlx(sc->cpu_dev, cx_ptr); #if defined(__i386__) || defined(__amd64__) if (acpi_PkgFFH_IntelCpu(pkg, 0, &vendor, &class, &address, - &accsize) == 0 && vendor == CST_FFH_VENDOR_INTEL) { + &accsize) == 0 && + (vendor == CST_FFH_VENDOR_INTEL || vendor == CST_FFH_VENDOR_AMD)) { if (class == CST_FFH_INTEL_CL_C1IO) { /* C1 I/O then Halt */ cx_ptr->res_rid = sc->cpu_cx_count; @@ -872,7 +874,9 @@ acpi_cpu_cx_cst(struct acpi_cpu_softc *sc) "degrading to C1 Halt", (int)address); } } else if (class == CST_FFH_INTEL_CL_MWAIT) { - acpi_cpu_cx_cst_mwait(cx_ptr, address, accsize); + if (vendor == CST_FFH_VENDOR_INTEL || + (vendor == CST_FFH_VENDOR_AMD && cpu_mon_mwait_edx != 0)) + acpi_cpu_cx_cst_mwait(cx_ptr, address, accsize); } } #endif @@ -922,6 +926,7 @@ acpi_cpu_cx_cst(struct acpi_cpu_softc *sc) acpi_PkgGas(sc->cpu_dev, pkg, 0, &cx_ptr->res_type, &cx_ptr->res_rid, &cx_ptr->p_lvlx, RF_SHAREABLE); if (cx_ptr->p_lvlx) { + cx_ptr->do_mwait = false; ACPI_DEBUG_PRINT((ACPI_DB_INFO, "acpi_cpu%d: Got C%d - %d latency\n", device_get_unit(sc->cpu_dev), cx_ptr->type, diff --git a/sys/x86/include/x86_var.h b/sys/x86/include/x86_var.h index f19c557e270b..6609871bf89e 100644 --- a/sys/x86/include/x86_var.h +++ b/sys/x86/include/x86_var.h @@ -62,6 +62,7 @@ extern char cpu_vendor[]; extern char cpu_model[]; extern u_int cpu_vendor_id; extern u_int cpu_mon_mwait_flags; +extern u_int cpu_mon_mwait_edx; extern u_int cpu_mon_min_size; extern u_int cpu_mon_max_size; extern u_int cpu_maxphyaddr; diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c index d3aec5b5e0c6..3f8f11fda011 100644 --- a/sys/x86/x86/identcpu.c +++ b/sys/x86/x86/identcpu.c @@ -117,6 +117,7 @@ u_int cpu_stdext_feature3; /* %edx */ uint64_t cpu_ia32_arch_caps; u_int cpu_max_ext_state_size; u_int cpu_mon_mwait_flags; /* MONITOR/MWAIT flags (CPUID.05H.ECX) */ +u_int cpu_mon_mwait_edx; /* MONITOR/MWAIT supported on AMD (CPUID.05H.EDX) */ u_int cpu_mon_min_size; /* MONITOR minimum range size, bytes */ u_int cpu_mon_max_size; /* MONITOR minimum range size, bytes */ u_int cpu_maxphyaddr; /* Max phys addr width in bits */ @@ -1634,6 +1635,7 @@ finishidentcpu(void) if (cpu_high >= 5 && (cpu_feature2 & CPUID2_MON) != 0) { do_cpuid(5, regs); cpu_mon_mwait_flags = regs[2]; + cpu_mon_mwait_edx = regs[3]; cpu_mon_min_size = regs[0] & CPUID5_MON_MIN_SIZE; cpu_mon_max_size = regs[1] & CPUID5_MON_MAX_SIZE; } From nobody Sat Nov 9 00:12:58 2024 X-Original-To: dev-commits-src-all@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 4Xlbqb2WPGz5d1Jy; Sat, 09 Nov 2024 00:12:59 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xlbqb0jgBz4ZJc; Sat, 9 Nov 2024 00:12:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731111179; 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=oL4c9zqUiharGLtO8GQo/PY0TSi3V+UvgKZcTOlcxQM=; b=NWAGzT2VHEUbBtKexbybLpS5pRAr6t3NqgOyvykAN5A/e1UKh5VyQlJjkfKjzF+R507c8z wl8HzmkOrGsKDcg7+Zw0FulW7gBPeylcU04j72Ih+7yy36LGvKWUpTjf1d2tmkHwVBRY+l 6YiXmLLoWeKen1i7GPL3Ekl2XKECiPIyQqIIYxqEgbey00jp2yC4lWTadSye1m9HqtYjMT LJHjmf6V5i5HNt/mruQLVRcXwTIasxXTjPOx0qkH43Y8hvuymMgs0AXQjEd4dO/gTfrgOS X7YuI0gu+woCyRjo6JezXJxkNviezw84eAQQROfoa7KRec0ntiDXZzERXn+/Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731111179; 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=oL4c9zqUiharGLtO8GQo/PY0TSi3V+UvgKZcTOlcxQM=; b=XFUphcTYL+W+K8LAkUfdF8fFKChBB3+8eoR74PhFexWSztUdPoJfZuAkYXJ0rgMQUCZOdK RqQDTBf6Jldilg/XoSFqY/ZL/AF17+YdWLEvfBPYZG63tWMRcDS0GwK15EB/w7WM9v2XZB Qy+VMnpKI5Oxz1A2HYbJxxTj3lDfpBEKF3OwEWxoRfDMxtZm0aV4Gmb4oeb97b6OnwK/UF vKDj3KdjKEi498Tc+bmwg21NW5D497YtLAR/Iu3MuzMeq4Oi8wjBlZ3U1WA+zjAztAmI8P SxehTMrSUej0wIjjLuBzLA39i3yx6ydLy2h3qyYLPewcArWT6CfQx+I68GHX2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731111179; a=rsa-sha256; cv=none; b=V90FZXPxGznDCkHhL39xw7PEFqA7uyuL7pwBSdv7eCftSGYIwCERPBqSY2kg9WyVjvtnMk pv34QL+6pUD9Y/9I8HgQDlmQfQRhWxPsXh8vTEj7yt4lJPonDswkQZvo8zLbTW97BkECLS Dt2qoP86JcFhv50d1vHDi0V+fsuRIISOz6o7NFIMybYfFwjgpsiU63+X1/dC6e/SdjXGmy ARH950FIWpkLU8Pbgp6Vt2cll+G/Dxu0zGtASbWB2Z8AvmVrCyKGTTbs9qZvNBzM7cHGKg 2mjyYXmGyLQf/9aNkaDTHS15bfv9Dxo8JgV3KfB+fXNxcvWZNTfnSOljiZ3MrQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xlbqb0KQ2zrRf; Sat, 9 Nov 2024 00:12:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A90Cw0V003903; Sat, 9 Nov 2024 00:12:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A90CwwZ003900; Sat, 9 Nov 2024 00:12:58 GMT (envelope-from git) Date: Sat, 9 Nov 2024 00:12:58 GMT Message-Id: <202411090012.4A90CwwZ003900@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Simon J. Gerraty" Subject: git: f239981ed58c - main - proc_rwmem check PRIV_PROC_MEM_WRITE when writing List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f239981ed58ca632d4dba39b2229c3152dd32a15 Auto-Submitted: auto-generated The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f239981ed58ca632d4dba39b2229c3152dd32a15 commit f239981ed58ca632d4dba39b2229c3152dd32a15 Author: Simon J. Gerraty AuthorDate: 2024-11-09 00:11:12 +0000 Commit: Simon J. Gerraty CommitDate: 2024-11-09 00:11:33 +0000 proc_rwmem check PRIV_PROC_MEM_WRITE when writing This will fail when mac_veriexec is enforced. Move the check from procfs_doprocmem to proc_rwmem to ensure all cases are covered. Reviewed by: olce, markj Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D47484 --- sys/fs/procfs/procfs_mem.c | 2 -- sys/kern/sys_process.c | 6 ++++++ sys/sys/priv.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/fs/procfs/procfs_mem.c b/sys/fs/procfs/procfs_mem.c index 159b40785172..0020b8f8a8d8 100644 --- a/sys/fs/procfs/procfs_mem.c +++ b/sys/fs/procfs/procfs_mem.c @@ -62,8 +62,6 @@ procfs_doprocmem(PFS_FILL_ARGS) PROC_LOCK(p); error = p_candebug(td, p); - if (error == 0 && uio->uio_rw == UIO_WRITE) - error = priv_check(td, PRIV_PROC_MEM_WRITE); PROC_UNLOCK(p); if (error == 0) error = proc_rwmem(p, uio); diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index a3a7a22f4cd3..fe2e112dbcfa 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -361,6 +361,12 @@ proc_rwmem(struct proc *p, struct uio *uio) reqprot = writing ? VM_PROT_COPY | VM_PROT_READ : VM_PROT_READ; fault_flags = writing ? VM_FAULT_DIRTY : VM_FAULT_NORMAL; + if (writing) { + error = priv_check_cred(p->p_ucred, PRIV_PROC_MEM_WRITE); + if (error) + return (error); + } + /* * Only map in one page at a time. We don't have to, but it * makes things easier. This way is trivial - right? diff --git a/sys/sys/priv.h b/sys/sys/priv.h index 5e14fee2cce1..864fb5b9cdea 100644 --- a/sys/sys/priv.h +++ b/sys/sys/priv.h @@ -515,7 +515,7 @@ */ #define PRIV_KMEM_READ 680 /* Open mem/kmem for reading. */ #define PRIV_KMEM_WRITE 681 /* Open mem/kmem for writing. */ -#define PRIV_PROC_MEM_WRITE 682 /* Open /proc//mem for writing. */ +#define PRIV_PROC_MEM_WRITE 682 /* Writes via proc_rwmem */ /* * Kernel debugger privileges. From nobody Sat Nov 9 01:10:43 2024 X-Original-To: dev-commits-src-all@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 4Xld6C6MGCz5d3vC; Sat, 09 Nov 2024 01:10:43 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xld6C5vHnz4gtd; Sat, 9 Nov 2024 01:10:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114643; 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=415X78FpzsI6osPBYZINaPCDRuzJ9l4k0JhRnmPn684=; b=kuYY4+NLcQUUt74xIUtNRBgQejGB5e74/noSz3wFU/18i9u6TF9ff6bm2q50D2PWQ8w1jc mkVwR10U/8qvxYdl+yTnau6n7KxBWhcCjSW2kTwziLnopqTzqqam4BjXcqHKHoqHN+YQNx Chw1HCTLUlAfFhdQGL3jhEM/l0vPSrNZgBYxcKh47akT75iZMz30vSJb8smE5vlstPbbHe PfwlkR0JgOxKwp1AKYm53oeagQQ0P2iGYaMGRfC5mbvkZHloNohap4tFa6+DchSLWb2sAk Px2qpf03Kij+ZDasf8gKkm+AqN/qc/T/4vgbr7AvA5Z4UU/9biCtM0H2H5eN3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114643; 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=415X78FpzsI6osPBYZINaPCDRuzJ9l4k0JhRnmPn684=; b=D4mnzdNLezcAuFCVGsy/Flq62Hh0rCDrAo54xQQn6VmwlO4kh3iXlYo0GMaE4OCa6lViSF W9EztgVzrQi9gMLj1FNlnKzo8hbhLbbDW0NsH2MMVAQVHWUw9qyMyQkmfFbDvc/PzLT2J+ 3ij3JohwHJxs0JDQLaYjUJkiRascKuYgwrNHRdCW9+qzdsJ1n7e9nECQhcGc2zoXgiWt8U v960jmhjsRupNtgyVhSakRBavucpFhQUdymL1BvPo0PoDYq0XR3oW2RTRXy33LjA/BCOLB 7mn/z+BPMOvXL4izfUb+NCUI7HSywpIJmJKqgoks2zkXV5LNQG7AHeOSXreRTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731114643; a=rsa-sha256; cv=none; b=N8BWJ+/hPhh/vKm1m0MqBFzvBOymmQRdIlG9SSX5bIy9a6MJ4EklqfcBNMb6ifZJf+SItP UHGMlGlkqIiCbVoOrpL3PVH1rkCnQq66pACvF+V2AmaD5wu3SuHzmuI/EIWmHXqpSs6eul BBt6AKc3FRdx4FzEb728iFayEEw/CDn7e9oYH447LT+cTemJaFYtEr+OekD/Ia0EjwB9/i YIRNSa9qhh+AjKXneZFwA4uLBAd556w2drCEB1YodrybU2zAxsnjnIbv/di4WBImzjXEEp qTpSifSVkOUHje804Q8xtl6QwvexFHfaVYhgkVYYec+RjPGB1+Iicr1C9u0ziQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xld6C5VSFzscJ; Sat, 9 Nov 2024 01:10:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A91AhLK007789; Sat, 9 Nov 2024 01:10:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A91AhVt007786; Sat, 9 Nov 2024 01:10:43 GMT (envelope-from git) Date: Sat, 9 Nov 2024 01:10:43 GMT Message-Id: <202411090110.4A91AhVt007786@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: bba8c461b995 - stable/14 - rc.d/kld: Print the kernel modules being loaded List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: bba8c461b995de8b13ec724fc6f82457280b4dd6 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=bba8c461b995de8b13ec724fc6f82457280b4dd6 commit bba8c461b995de8b13ec724fc6f82457280b4dd6 Author: Mark Felder AuthorDate: 2024-10-26 18:43:46 +0000 Commit: Mark Johnston CommitDate: 2024-11-09 01:09:29 +0000 rc.d/kld: Print the kernel modules being loaded PR: 282269 MFC after: 2 weeks (cherry picked from commit 152382e6613d7998fe6f5233767df54d3fdec329) --- libexec/rc/rc.d/kld | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libexec/rc/rc.d/kld b/libexec/rc/rc.d/kld index 510884a117d0..4cfc94cb07fc 100755 --- a/libexec/rc/rc.d/kld +++ b/libexec/rc/rc.d/kld @@ -44,10 +44,12 @@ kld_start() local _kld - echo 'Loading kernel modules:' + echo -n 'Loading kernel modules: ' for _kld in $kld_list ; do load_kld -e ${_kld}.ko $_kld + echo -n "${_kld} " done + echo } load_rc_config $name From nobody Sat Nov 9 01:10:44 2024 X-Original-To: dev-commits-src-all@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 4Xld6D723pz5d3vD; Sat, 09 Nov 2024 01:10:44 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xld6D6Y9hz4gd7; Sat, 9 Nov 2024 01:10:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114644; 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=0Svs6KX0E573uf6Rn3yGIurXiLPIQOPmg5AWoSLkAik=; b=VwQB5Ov1zAVpacOVBwC62NzJRg3tzIMXUHRO6mQ2oiRl/OEp6siHOOjPY+Sc75/DmcbKur eTxySPQZoIggOdBzyK2/vyLqR2mbXUTtJ6zOFxyDZ1Jhb/ifchMMpW2vMcazgOt2/VxuOA K2gZNc8l2g3ptX0V4QK6+6BtB/9McWagZ/lgLl8I3aHsZhzw/WDddVMxfbdq/QXdpVfM8z nbN+zOvGzlDJXg7fb/Rp798s6Sgx7WzDfbBYFLD0xRCXYyQM+LaDVf6CUnE9kK8PVHmMwP fEVZ+/PdAOuoMhFwSkCuXDUhVl7nee038SkJBIQ0Ifhmsrb8WZpsnqJ6f03Mmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114644; 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=0Svs6KX0E573uf6Rn3yGIurXiLPIQOPmg5AWoSLkAik=; b=Vz32r4TOSjBEf0levdcmxWDT1R8JczQ7F6GjG+eagNC6uVLtv15mdwRXfzbSKZ7F/HGq/u 1mVljKui4zY9Skjz7KLTYE4rJKtBfKLm8VMWO/yo4OXOBircyNYpEutlz2JsT541gdSxwv hm9pkozinc0qvvOzRja8z/oEYMX/bJeWvgGJCrjRleXbcbrYHxAedf19E3s14TRKkWBzXX wa4Etex178hLPC6Qm4Fgcy1PKdfkhX3lTDsgZb7sjNWmYXLp/tPVH6EwWZIxDjk3Uc8WXJ 0phKa6xYbvuu5lFXSE18Mk31UHNTO+oYekY3emJ/0ZtIp1wR6uwfjNCsQQsZdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731114644; a=rsa-sha256; cv=none; b=HIk5gZFRSkBS1iatG0gbbXzcRMe8K8p7u5sWU+EK2D7F9etjmzHDwh0qsS5cXbfVnCQvXz ZOzCu2Zfc3YDPvqePivRuaJpBbdwBHNpIf+0sKCGEV6co4W8awaaQS99L9pctLcFcIcvBA Vzaye2zJPhhoIQmxU+FXgjvYkv2fwnOLQb3iCBruAKSNO7zbdMDqBxfy5GTFeb5AHbt2rv nz4Z89EKsSdOeofng0y9HAbFKPkwc/5G1uVEMCofvlxGnR86N29mZ3+BqLyDaKelkRiLBz 2FTuEyrEMiCdAmD7VSiqwQCLVaFT9iHhVEjaXC5Zqyv4KcZ4GdvCLDVTrnVeAw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xld6D69H9zsSf; Sat, 9 Nov 2024 01:10:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A91Airi007841; Sat, 9 Nov 2024 01:10:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A91AiKF007838; Sat, 9 Nov 2024 01:10:44 GMT (envelope-from git) Date: Sat, 9 Nov 2024 01:10:44 GMT Message-Id: <202411090110.4A91AiKF007838@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 2cb615d01514 - stable/14 - rc.d/kld: Avoid printing a trailing space List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 2cb615d01514835f8c9459a80d4ce4babce275cd Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2cb615d01514835f8c9459a80d4ce4babce275cd commit 2cb615d01514835f8c9459a80d4ce4babce275cd Author: Mark Johnston AuthorDate: 2024-10-26 19:07:22 +0000 Commit: Mark Johnston CommitDate: 2024-11-09 01:09:47 +0000 rc.d/kld: Avoid printing a trailing space Fixes: 152382e6613d ("rc.d/kld: Print the kernel modules being loaded") Reported by: jrtc27 (cherry picked from commit cdb3cda6fd53b89c2bba0308d21aa8edf782dc34) --- libexec/rc/rc.d/kld | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libexec/rc/rc.d/kld b/libexec/rc/rc.d/kld index 4cfc94cb07fc..81a751503e51 100755 --- a/libexec/rc/rc.d/kld +++ b/libexec/rc/rc.d/kld @@ -44,12 +44,11 @@ kld_start() local _kld - echo -n 'Loading kernel modules: ' + echo -n 'Loading kernel modules:' for _kld in $kld_list ; do load_kld -e ${_kld}.ko $_kld - echo -n "${_kld} " + echo -n " ${_kld}" done - echo } load_rc_config $name From nobody Sat Nov 9 01:10:45 2024 X-Original-To: dev-commits-src-all@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 4Xld6G2BRYz5d40f; Sat, 09 Nov 2024 01:10:46 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xld6G0MsWz4gmS; Sat, 9 Nov 2024 01:10:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114646; 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=xeHlkxuZJtAFgA2B9uHN8xX9h751WKRgLNixA1gmfGk=; b=dzNA/9uwxHda0jbPmiXy8kgnu/H9OoNugM7/JaNU8U+1vScWQS2Dl6v5rl0f/ufBTtoUG7 fnaHoe+o3bUl02yYd1MPGe1HBvzSZZ6q4fk9A2gwXsAdYMai2oS2fSfnmEKjGYy+p3fOl/ Z1efKAmmfHaC1DIbMWpratzteHQac6X9QHNgzYDam/TyBmd6WCkzkjdPfxmCYodHaNHwmB fgCKJ2hX1WJH7mxCpHp0U++ORC/1goKUOYwKLo+r8jglEfoe6glXYCovRYZWjjerCRitkw sPurJhbBNsleoxWk8bDkxiwFDa+BHDa+kqeJ0j6kWw6jRgj0eh+bv8TGHl3ATg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114646; 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=xeHlkxuZJtAFgA2B9uHN8xX9h751WKRgLNixA1gmfGk=; b=PH3G676AgBspyPh5923j3a0HebEvgY6gRbtmMU5M9PXwrEsUsW1AKQ88SAbQPbb1/eH5AM kOcd8MT9cC44sqVvtu3gqUaDHwD1oa9it6yl8PUkkSPN6MctlipB9IKQCBx0MGfYWVnuoN nubSDL4i9yW7BcqzjoUfviarKK1WH7dtw9ft73pKpPY9OagbCtGqe33DlVosgxx27aBg9m VsfESzvLSpmJKnhdzuUSWShtd/hhUDkf7xaMEdQtlo7BnnUC8C4C1Yb5nbZFopx7NdNMvd Fe453u+bz/leDUtzg4w1FMS2mBmfpcg/1syRGUag0qU2DPNjOg1SlOTD2OZhRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731114646; a=rsa-sha256; cv=none; b=td1aZ5XzjCHJgqdA4F1NEJUxDHh14LXUB24OQns+KO1ABfx6dXCGeh18MQ3uwyvL+jVBbj EcUicFHwNKuFXxuooocmK/pV+QVY8F0WubzToqGj3e/Q7mL5Yk3K9GzfL4HydbZeh2jBGl xwE+rNdH4GQYdM4e08PwwjE9//QGQsWiVBpeqzOPgmG8Alo7+NWhtyiOBi1AeXZ7IS3WMR 5VbQgq2aHrMyPE+hrdlf0bl0OwwBKRpgN4syuemZZxhBNp06ClMtZQOTYhfDE3U3Z4uQ7v E+1l/8vLJOR0oUBbStbDLRZXPv1/744pXEpe8w/uKeK2Z4y4Web507opaiwhRQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xld6F73HHzsQF; Sat, 9 Nov 2024 01:10:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A91AjYN007890; Sat, 9 Nov 2024 01:10:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A91AjdG007887; Sat, 9 Nov 2024 01:10:45 GMT (envelope-from git) Date: Sat, 9 Nov 2024 01:10:45 GMT Message-Id: <202411090110.4A91AjdG007887@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: fc3c731bbf9c - stable/14 - rc.d/kld: Print modules being loaded, take three List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fc3c731bbf9cc51a002e3109b2b97754b6c7e06c Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=fc3c731bbf9cc51a002e3109b2b97754b6c7e06c commit fc3c731bbf9cc51a002e3109b2b97754b6c7e06c Author: Mark Johnston AuthorDate: 2024-10-26 19:18:50 +0000 Commit: Mark Johnston CommitDate: 2024-11-09 01:09:50 +0000 rc.d/kld: Print modules being loaded, take three Some kernel modules will print informative messages when they are loaded, making the output confusing. Print everything up front instead. Fixes: 152382e6613d ("rc.d/kld: Print the kernel modules being loaded") (cherry picked from commit 3e55170e0fa2695f6d662e3ab67201138a6f8698) --- libexec/rc/rc.d/kld | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libexec/rc/rc.d/kld b/libexec/rc/rc.d/kld index 81a751503e51..ccfffe3091a6 100755 --- a/libexec/rc/rc.d/kld +++ b/libexec/rc/rc.d/kld @@ -44,10 +44,9 @@ kld_start() local _kld - echo -n 'Loading kernel modules:' + echo 'Loading kernel modules:' $kld_list for _kld in $kld_list ; do load_kld -e ${_kld}.ko $_kld - echo -n " ${_kld}" done } From nobody Sat Nov 9 01:10:47 2024 X-Original-To: dev-commits-src-all@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 4Xld6H3PcMz5d4BH; Sat, 09 Nov 2024 01:10:47 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xld6H1D0fz4gmj; Sat, 9 Nov 2024 01:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114647; 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=pDqJ1y8Et6j9Jd4/zzsDKcC3SRrHt1aewCPuXrokoHk=; b=uQj9rL48CDymlz6vkM2ZpLnv6tJ+OKImmb6uJaT1vI/2sfWnjHlhEVY7GaGGmvdOo1VzwC lHRsIl8W+8gzc8aVwC3ZswDVwWZqH2waJvuxR0bgNJhhiYO79PFFC2m0Ub7qystM958wV2 5yYoQgwx2lSV/HzAE8cjDIsiqLkPHisSOT6aN0jtIxb6irG7c+qeFbSD2CONu1vUE/fIBa tOtCb17R81dEXGI1Wbj4mC/J61Vjo4RhrShuf1ekTB2/Ycx3VOaXyKIVe4eU+IyVUdA5nY fCGBDq7syK4gk0yi3mjLiQB53KDzGiXvNhOXyjaF3/0YJtuxsmpRAP0cD5WEqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114647; 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=pDqJ1y8Et6j9Jd4/zzsDKcC3SRrHt1aewCPuXrokoHk=; b=gprrOpisRUSkE2EIM5mgbr/j4exO6dkMrAKOEPq0EI7nXrbvETJDm17skhjWX2Oi6wQ5Sq q483lxzpJP4VcjXxaSahgzaijiNwMc9HROXoILmHAaA+oUdCjLjVcyZwMdywrCCRvCFucX l/vwZD+sNOJTav8RcDEyv6PND2dXupSUcCmhp76Uvx9CD9G3L+IJjzifRI9+iNF9iUhXVE q3pLnHGwe8/BJBy26/9otLZ0F87DrBJmhXhUn1xnRtJ7kk0wCFG3gV5/7P0YJvPHfr4ZGl QcEDaCdvGuQliWJegr1pkdaK2Tn7pnfRVGRuNNrs2oapRxlA0PEACBt4jmEBxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731114647; a=rsa-sha256; cv=none; b=VWQGYe1jUdlZXVso3QRA9HxVth9rCpSSXeVmz2qp5OeY9LfyAimvp95uasmBBXGVSFh3ng AP4Se1Kwn4pVesGhns9LCzVAg18pleuhOhY1H02+0Y7/Tbxj1mSriguSDg1Q/bY9xvcCI+ XaK5axo09tJOx7tz772Hn8g37Qo+r9HIRU6WLxaxiDgnZ39yebmLuHuhtniq3xjFObKUX+ BwFd6YqVKTgIpRes3B/LSXswYlKTC0em0wKMOyCJJGTxvQdoA2qRZXwfIGtpgb3sqoHUE7 sG9wkUOlmV+i2WIjwW52oOHgr52MXnRv7vKOy9AhBEoE9dXcEPV6MSHm5qO3vQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xld6H0r4PzsMn; Sat, 9 Nov 2024 01:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A91AlGw007950; Sat, 9 Nov 2024 01:10:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A91Alix007947; Sat, 9 Nov 2024 01:10:47 GMT (envelope-from git) Date: Sat, 9 Nov 2024 01:10:47 GMT Message-Id: <202411090110.4A91Alix007947@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: da80e62f965c - stable/14 - linker: Make linker.h more self-contained List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: da80e62f965c56d4f3d2b91be2b33960ada46854 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=da80e62f965c56d4f3d2b91be2b33960ada46854 commit da80e62f965c56d4f3d2b91be2b33960ada46854 Author: Mark Johnston AuthorDate: 2024-10-26 14:05:56 +0000 Commit: Mark Johnston CommitDate: 2024-11-09 01:10:14 +0000 linker: Make linker.h more self-contained struct kld_file_stat embeds a reference to MAXPATHLEN, defined in param.h. PR: 280432 MFC after: 2 weeks (cherry picked from commit f44029e322446469f116bbd26d51ba857083bacb) --- lib/libc/sys/kldfind.2 | 1 - lib/libc/sys/kldfirstmod.2 | 1 - lib/libc/sys/kldload.2 | 1 - lib/libc/sys/kldnext.2 | 1 - lib/libc/sys/kldstat.2 | 1 - lib/libc/sys/kldsym.2 | 1 - lib/libc/sys/kldunload.2 | 1 - sys/sys/linker.h | 2 ++ 8 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/libc/sys/kldfind.2 b/lib/libc/sys/kldfind.2 index a7e147af55f1..5ede0d1e1464 100644 --- a/lib/libc/sys/kldfind.2 +++ b/lib/libc/sys/kldfind.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldfind "const char *file" diff --git a/lib/libc/sys/kldfirstmod.2 b/lib/libc/sys/kldfirstmod.2 index 8e69b366c8aa..b6dbab2c94b7 100644 --- a/lib/libc/sys/kldfirstmod.2 +++ b/lib/libc/sys/kldfirstmod.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldfirstmod "int fileid" diff --git a/lib/libc/sys/kldload.2 b/lib/libc/sys/kldload.2 index 20bf3778c1ae..63a13c328d58 100644 --- a/lib/libc/sys/kldload.2 +++ b/lib/libc/sys/kldload.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldload "const char *file" diff --git a/lib/libc/sys/kldnext.2 b/lib/libc/sys/kldnext.2 index 8d8102711494..28b14dfc3035 100644 --- a/lib/libc/sys/kldnext.2 +++ b/lib/libc/sys/kldnext.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldnext "int fileid" diff --git a/lib/libc/sys/kldstat.2 b/lib/libc/sys/kldstat.2 index f0ab26ac2608..111323a0da8d 100644 --- a/lib/libc/sys/kldstat.2 +++ b/lib/libc/sys/kldstat.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldstat "int fileid" "struct kld_file_stat *stat" diff --git a/lib/libc/sys/kldsym.2 b/lib/libc/sys/kldsym.2 index d3025ca536f8..641fc26c38ec 100644 --- a/lib/libc/sys/kldsym.2 +++ b/lib/libc/sys/kldsym.2 @@ -31,7 +31,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldsym "int fileid" "int cmd" "void *data" diff --git a/lib/libc/sys/kldunload.2 b/lib/libc/sys/kldunload.2 index 2d33aabb3f33..c89f869e9eeb 100644 --- a/lib/libc/sys/kldunload.2 +++ b/lib/libc/sys/kldunload.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldunload "int fileid" diff --git a/sys/sys/linker.h b/sys/sys/linker.h index be127e6ded48..e9073dab236c 100644 --- a/sys/sys/linker.h +++ b/sys/sys/linker.h @@ -29,6 +29,8 @@ #ifndef _SYS_LINKER_H_ #define _SYS_LINKER_H_ +#include + #ifdef _KERNEL #include From nobody Sat Nov 9 05:12:07 2024 X-Original-To: dev-commits-src-all@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 4XlkSl4Vctz5dKlg; Sat, 09 Nov 2024 05:12:07 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlkSl3p6Cz4GxY; Sat, 9 Nov 2024 05:12:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731129127; 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=xtJIhZX8YtLztye5mDagqeHKkzLkwfmLuDPyYwJTzIc=; b=QWYB0TVXXwtLyN6zQXRxDHG9BsJODFd5tRYA+ASgZRQNcdY60WTspPb6ewN2HWY7aTHp4y rs+0MMdJznNhxmV1IDEctap/8aBiFnZp7VP1s9Fe14V4rIp5yWoKDgKbpb8Q/VnellHgwX BdrHhZ3pmqlPh+daF8k8cqYmsRhH5m64coaVIO3fcN+Z5tSceKgRWUGo7C/wvh4fMAaE0e aI6fCIufJQMEpwRaMEeOclvQil9zvmQwiugUMUEMAjbh28f8FBCRVs2Ttgo3AtJ9JFhs/D NK1JtmwIGrQRJ73gJikanIeaznyA9qwpmyQz+sb8R9Uip5n7K1hk59mIWY8IKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731129127; 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=xtJIhZX8YtLztye5mDagqeHKkzLkwfmLuDPyYwJTzIc=; b=YOYeSz3+jkL8SnENsDFAaaLBH2F/mUdKxiMKqkcGmZavmscjDtGZYJliPvzETY1ERTs3pN QgTuwJU8TmcVEYTLbg+bYcMXHjsze3NeynE9kve6An9dMStt9gOBmDsJIubYAjrXUYLkCb 3jvi4+SrTUsV+maemOZ5PuD++Q8VqPvQ/tuRLvamVkL49MnZuaPMGCQlt+ZMaZoIUiD+CW rSWeCtsv/czH6lAtmUBV6673d+kaH/agc9laQYr7le6vGtqx9eWbHrLu/0y5Gn2BpSduBN TcO0RchdxN6AE10eE8/DW9kB0Wn3a7GZxfV648/PjtV24joCLK70H7W5f2eakA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731129127; a=rsa-sha256; cv=none; b=QMUZGqLn9bg/espXnxwDG9mtwHiHI4rJ/z3VFAt/r1YEPfTQpBMWNuVq3FW8YVpk3PUj3O MLYZ9/e9fbywS25Mb61MlChYOLD3fAEtv2fY1s7xmyjDXHENntWj5w4ihl9aGM91nbuZrN 1Z9TcdNl2oDE0U+rSmIIC6TrjZaNbvTsiJ1X/3/WAC1TDT416EsxqeNcW7YDvxtCYFe6gB xiGJFGoO4kA3jqSZKMFVoxcEofUyJk2Rx8zdrOZOHU7v3UZ+aLzf2tpHrb0T3LyVszmmEg qOkslOO0SL2FwgpR3kIpBrwy2+1iew1LbtnFmk4hOoydsvVkBsNxE9e5/66PzQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlkSl3P8Tz11RR; Sat, 9 Nov 2024 05:12:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A95C7CG063415; Sat, 9 Nov 2024 05:12:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A95C7J2063412; Sat, 9 Nov 2024 05:12:07 GMT (envelope-from git) Date: Sat, 9 Nov 2024 05:12:07 GMT Message-Id: <202411090512.4A95C7J2063412@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 018cb11cb7d4 - main - iichid(4): Do not power down opened device in attach handler List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 018cb11cb7d412b031e1be681a6a19e734473f99 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=018cb11cb7d412b031e1be681a6a19e734473f99 commit 018cb11cb7d412b031e1be681a6a19e734473f99 Author: Vladimir Kondratyev AuthorDate: 2024-11-08 19:23:38 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-11-09 05:11:09 +0000 iichid(4): Do not power down opened device in attach handler Some iichid(4) child devices, currently hkbd(4) only, opens parent device in their attach handlers. That breaks internal iichid(4) state leading to rejecting any incoming data on software and hardware levels. Fix it with adding of extra state check in iichid(4) attach handler. Reported by: many Submitted by: trasz (initial version) PR: 280290 MFC after: 3 days --- sys/dev/iicbus/iichid.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c index fc9f5c2a68b3..86b02250d5d3 100644 --- a/sys/dev/iicbus/iichid.c +++ b/sys/dev/iicbus/iichid.c @@ -1205,8 +1205,12 @@ iichid_attach(device_t dev) iichid_detach(dev); } done: - (void)iichid_set_power(sc, I2C_HID_POWER_OFF); - sc->power_on = false; + iicbus_request_bus(device_get_parent(dev), dev, IIC_WAIT); + if (!sc->open) { + (void)iichid_set_power(sc, I2C_HID_POWER_OFF); + sc->power_on = false; + } + iicbus_release_bus(device_get_parent(dev), dev); return (error); } From nobody Sat Nov 9 05:12:08 2024 X-Original-To: dev-commits-src-all@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 4XlkSm68cVz5dKlh; Sat, 09 Nov 2024 05:12:08 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlkSm4KGyz4Grx; Sat, 9 Nov 2024 05:12:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731129128; 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=6YkuOJVrL41QIL32rtFpzYqQ4wIyBh3rZU9c8Zy6x1g=; b=IBV+F9Au12NDhWJQ3Dwg56re4/AEAKlQuZnEMhE1mSomMZqCDVHHKD4ojXMQRT0Au/qjV2 +SOvbsB7buupxoa6kJANfnIKnEGXD61YnSTVNnNzUphcJIFxH2+D0wwjlCcER5sL0xcC5E /H68QuUpFpCGXzCnmgcHHF5DNuQ2T7j01x4RpTbH+yzV7FAYT9xp5Ome1diPv8RzBxbit2 U7PaxatweMEcmLo4vPSKgp+4Q2PM4KqRuHp8V9RDeMzSw+QqRusiCsTyhK5ity7dKn92EI TPqEyIaIvYatiQpoNtt+r1svn99m6oFkewIcHV1cm9aLQjK1SDHQXKbtzJR1Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731129128; 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=6YkuOJVrL41QIL32rtFpzYqQ4wIyBh3rZU9c8Zy6x1g=; b=HcjoCFp6fpfG2mcECl4+wcpt9PPsZMvkdN9Ye+xuGmemGHGIOiDCMdzijuGztEtJCX2YWm a2SAhH/axJ/D65p3HSViUCR3Xwp4FKjU6KFxY2nr7iNTdDsowcWhMjS+WLI7HTLuF5ny1R OuUDW8WDu6CUQNSn9+slfGK4mLVoJnKQSTdx/4Yuf7VDy2dM4u7GYywZISY/s/Kpl5dJ+5 iL/CI87YPN9uilC0Y+1i+8SYCCxJ7FayzYiOKXXndsnYE2qSt/2AKwG1XhqH1yP94YosWv BOqlIS6cmobrjNE9RzflG+2kQIIoeixJ1E9Mqxv8jTFEaFVZmj/5D/3dCZjJxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731129128; a=rsa-sha256; cv=none; b=dzYWwNrqvZdY2ScUqFLrjdzadT7OJLoZVqxTJGTS/qMSoWtFg7zXaXhTpHo45yVamW39Vs UZWZGB2InQG5tPH2Kx5Pb9q8b2nCDGthe3Oi/aUvw/nRUXm6QQdqXytqCzpzktxuFC+23w OKatUNQg4QS8nsV9c0nxlWstiJQaS2QybeSXbJwmSawVaivkIUMu9ugjf1oxSBkBmaWvni Z+mfq0Mlm6QfRpgmp29DdQp+Yu8IUNCQcBuhRVbVFP/wwnBxhXeVezEmd69mLmksuzbbYH KQG5tLWcnT/ZPSFZyikudC8a+7JSasW7hy6j/pfgErKQM3bxRzM/DZoZ2QMTyg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlkSm3x1Xz11Fp; Sat, 9 Nov 2024 05:12:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A95C8nH063537; Sat, 9 Nov 2024 05:12:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A95C81K063534; Sat, 9 Nov 2024 05:12:08 GMT (envelope-from git) Date: Sat, 9 Nov 2024 05:12:08 GMT Message-Id: <202411090512.4A95C81K063534@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: bab5e3d46830 - main - ig4(4): Add Meteor Lake PCI IDs List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bab5e3d468305928e9e5cf1ca9efcee4c89f6a76 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=bab5e3d468305928e9e5cf1ca9efcee4c89f6a76 commit bab5e3d468305928e9e5cf1ca9efcee4c89f6a76 Author: Austin Shafer AuthorDate: 2024-11-09 05:05:34 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-11-09 05:11:09 +0000 ig4(4): Add Meteor Lake PCI IDs PR: 282389 MFC after: 3 days --- sys/dev/ichiic/ig4_pci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/ichiic/ig4_pci.c b/sys/dev/ichiic/ig4_pci.c index 138de77c35db..874d6a9abc55 100644 --- a/sys/dev/ichiic/ig4_pci.c +++ b/sys/dev/ichiic/ig4_pci.c @@ -172,6 +172,8 @@ static int ig4iic_pci_detach(device_t dev); #define PCI_CHIP_METEORLAKE_M_I2C_1 0x7e798086 #define PCI_CHIP_METEORLAKE_M_I2C_2 0x7e508086 #define PCI_CHIP_METEORLAKE_M_I2C_3 0x7e518086 +#define PCI_CHIP_METEORLAKE_M_I2C_4 0x7e7a8086 +#define PCI_CHIP_METEORLAKE_M_I2C_5 0x7e7b8086 struct ig4iic_pci_device { uint32_t devid; @@ -288,6 +290,8 @@ static struct ig4iic_pci_device ig4iic_pci_devices[] = { { PCI_CHIP_METEORLAKE_M_I2C_1, "Intel Meteor Lake-M I2C Controller-1", IG4_TIGERLAKE}, { PCI_CHIP_METEORLAKE_M_I2C_2, "Intel Meteor Lake-M I2C Controller-2", IG4_TIGERLAKE}, { PCI_CHIP_METEORLAKE_M_I2C_3, "Intel Meteor Lake-M I2C Controller-3", IG4_TIGERLAKE}, + { PCI_CHIP_METEORLAKE_M_I2C_4, "Intel Meteor Lake-M I2C Controller-4", IG4_TIGERLAKE}, + { PCI_CHIP_METEORLAKE_M_I2C_5, "Intel Meteor Lake-M I2C Controller-5", IG4_TIGERLAKE}, }; static int From nobody Sat Nov 9 07:16:31 2024 X-Original-To: dev-commits-src-all@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 4XlnDH6WvMz5dRqb; Sat, 09 Nov 2024 07:16:31 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlnDH5rkMz4RFx; Sat, 9 Nov 2024 07:16:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731136591; 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=DeaQhYivflgcKXgRItmV6oR/pwdezpEUFwkykSP687k=; b=FTwDg8P0F2vvXm8/K/fCGj8czx2GaizK8XgvFCMahp1YC/23bl8SACWcrFfTfrNetUbH3k hYCoOHj0rct0xrN+7m+DQqoHgk2unx3M8g/Gy/h6CUQq4E4MFDs+XOajXdzK0dW5Cf3apw /NvesxdEhmdmmkYeIwJuog57CbeJO7jiHqnsYg+EKZngKVjrrO17q6yrKchRXatK9LZVE/ GbpyUNun2/eEZWOmuRk8tZjV02iln9hEdXVjpGN/PaI5LPhHWJZqMocnZ/hD23D9P4dib5 I0aydE/LITiByext+qT/8SkLOs7A4w9uihkrJzl1JGWVBZLlbXwnqHngGAs7sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731136591; 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=DeaQhYivflgcKXgRItmV6oR/pwdezpEUFwkykSP687k=; b=qimlZTA8sZZwFsJPycgfH0aiygNEuYujauaknVAyQxZO/q5iZIa/tQTJxypRYXSGBeycDI AavhHistuWaJszHhFzC4K1520Wq5qOSqPopOytCX/JatWu3ifXlTjvoJaWhrvYOwIbYPXL D5kW1nuVoXR4k187iy9a8CMq3wBZl8w5x8vFd1TtrtG3ixSce5A3Z9rM6e8HuSCpmDMrXl i8EOcxA1+jitVdC00UiJERept2ZBM2Yjhi3F9+8XxVEOHBprv9x1z1OPLDTxRUhHpx921U eJNDnRmlbVIbX0DwCLhqlmiG1Xz/RuSOg39lqrLaKMlR+1YbKHxS+tKwMu2GSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731136591; a=rsa-sha256; cv=none; b=j1WwwaS8nd8mBtA1XtmzzWTueWBCtIrWwUfAPjHzo9sj9ogj+NL4GWv1v3uHeuI2h5fOPB jot3X4d+JDUvQ9Jsd75kXp1hRKkLpXDaSvwMg+QRkPTtq8Xp3L2O871l+fZksHGYiPRc/H n0RkMm4y1TOnmdCEOOKjRGfQr0Z5WuoglEfawEiYMSqlZUBSGWtEVJVkduS9tVm21nI5LR 3Ht+SHiew1FLWkBmRXBgP4XNxYsAng/p5pKGa/zm5lZjAxFLLTg64+VR6ftFzpUs/U7uNI akgPmSR7J5oiwve3El0s334eUBVgMI5pS2Z/q9/r2kB8fC4jK2iQlGSeHTjh/g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlnDH5BP5z14Jm; Sat, 9 Nov 2024 07:16:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A97GVCk087310; Sat, 9 Nov 2024 07:16:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A97GVDt087307; Sat, 9 Nov 2024 07:16:31 GMT (envelope-from git) Date: Sat, 9 Nov 2024 07:16:31 GMT Message-Id: <202411090716.4A97GVDt087307@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michal Meloun Subject: git: ba045ba49ded - main - arm: Improve the creation of kernel.bin List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mmel X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ba045ba49dedb068ba2f0e13fbb1c1a91fde8333 Auto-Submitted: auto-generated The branch main has been updated by mmel: URL: https://cgit.FreeBSD.org/src/commit/?id=ba045ba49dedb068ba2f0e13fbb1c1a91fde8333 commit ba045ba49dedb068ba2f0e13fbb1c1a91fde8333 Author: Michal Meloun AuthorDate: 2024-11-03 12:15:33 +0000 Commit: Michal Meloun CommitDate: 2024-11-09 07:15:23 +0000 arm: Improve the creation of kernel.bin Instead of relinking the kernel without elf headers, replace them with a binary blob of the same length starting with a jump to the kernel's start address. This ensures that all symbols stay at the same offsets as in the original kernel, so kernel.debug remains valid also for kernel.bin. Also ensure that the awk script used runs with the neutral locale defined. Awk 'write' is a locale compilant, and script is used to write binary data to a file, so it needs to ensure that bytes > 127 are written unchanged. While I'm on, set the neutral locale also for arm64, where the same script is used to generate the kernel booti image. Reviewed by: emaste, imp Differential Revision: https://reviews.freebsd.org/D47488 --- sys/conf/Makefile.arm | 36 ++++++++++++++++++++---------------- sys/conf/Makefile.arm64 | 1 + 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 5416aff76666..8e98e5b07648 100644 --- a/sys/conf/Makefile.arm +++ b/sys/conf/Makefile.arm @@ -57,6 +57,7 @@ KERNVIRTADDR= 0xc0000000 # "ELF for the ARM architecture" for more info on the mapping symbols. SYSTEM_LD= \ ${SYSTEM_LD_BASECMD} \ + --Map=/usr2/Meloun/ld.map \ --defsym='text_start=kernbase + SIZEOF_HEADERS' \ -o ${.TARGET} ${SYSTEM_OBJS} vers.o; \ $(OBJCOPY) \ @@ -64,22 +65,6 @@ SYSTEM_LD= \ --strip-symbol='$$[adt]*' \ ${.TARGET} -# Generate the .bin (no elf headers) kernel as an extra build output. -# We must relink to generate the .bin kernel, because without headers the -# location of everything changes. We also strip the ARM marker symbols. -${KERNEL_KO}.bin: ${SYSTEM_DEP} vers.o - @echo "linking ${.TARGET}" - @${SYSTEM_LD_BASECMD} \ - --defsym='text_start=kernbase' \ - -o ${.TARGET} ${SYSTEM_OBJS} vers.o - ${SIZE} ${.TARGET} - @${OBJCOPY} \ - --wildcard \ - --strip-symbol='$$[adt]*' \ - --output-target=binary \ - ${.TARGET} - @chmod 755 ${.TARGET} - # hack because genassym.c includes sys/bus.h which includes these. genassym.o: bus_if.h device_if.h @@ -98,3 +83,22 @@ genassym.o: bus_if.h device_if.h %RULES .include "$S/conf/kern.post.mk" + +# Generate the .bin (no elf headers) kernel +# Copy the kernel to directly executable format (the elf headers are +# stripped and a binary head blob with jump to kernel start address is +# prepended), saving the output in a temp file. +# We also strip arm "marker" symbols which are used only by elf toolchains. Read +# the symbols from kernel.full and pass them to arm_kernel_boothdr.awk, which +# generates a binary header blob that goes on the front of the stripped kernel. +# Cat the header blob and the temp file together to make the kernel.bin file. +${KERNEL_KO}.bin: ${FULLKERNEL} + @${OBJCOPY} --wildcard --strip-symbol='$$[adtx]*' \ + --output-target=binary ${FULLKERNEL} ${.TARGET}.temp + @{ ${NM} ${FULLKERNEL} | \ + LC_ALL=C \ + ${AWK} -f $S/tools/arm_kernel_boothdr.awk -v hdrtype=v7jump && \ + cat ${.TARGET}.temp; \ + } > ${.TARGET} + @rm ${.TARGET}.temp + @echo "created ${.TARGET} from ${.ALLSRC}" diff --git a/sys/conf/Makefile.arm64 b/sys/conf/Makefile.arm64 index 52f0f9052db3..ed9624ee5446 100644 --- a/sys/conf/Makefile.arm64 +++ b/sys/conf/Makefile.arm64 @@ -88,6 +88,7 @@ ${KERNEL_KO}.bin: ${FULLKERNEL} @${OBJCOPY} --wildcard --strip-symbol='$$[adtx]*' \ --output-target=binary ${FULLKERNEL} ${.TARGET}.temp @{ ${NM} ${FULLKERNEL} | \ + LC_ALL=C \ ${AWK} -f $S/tools/arm_kernel_boothdr.awk -v hdrtype=v8booti && \ cat ${.TARGET}.temp; \ } > ${.TARGET} From nobody Sat Nov 9 07:31:54 2024 X-Original-To: dev-commits-src-all@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 4XlnZ26j5Tz5dSQr; Sat, 09 Nov 2024 07:31:54 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlnZ26Cylz4ST6; Sat, 9 Nov 2024 07:31:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731137514; 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=gYrjGOB2NQGCuwdjGgUffwEKuFfimtn80t5SFA/UFP8=; b=Tf6FodyK1B4uncWPrRY0qdiboIllO2qFSCTv7U1JoFGSmfoQTxNytMe5wYiv7DGfOrdq4I P3fI4lVxS5ZlX7P6M72DqIK0f3nPMGKe3f7V5xrgxsW8wl6003BS5Bk3Z/MrRzjOTTorxM yecG7wWhUKO9QhZjUF1k+SffiRe1v14ZFft7vREobQ3zK8XgSJkXaIZv8tP9tTZbrM3kFc UuTRVLnZMRJwCoepzArItFRJdvdqwjbK20v0jWUtZhpgkh9uyaD4jl63TwnNL/ElnN7wnk wKdsH/kcBfer9IPrNc0GnQJklvLwDHzlfiGXFconyqurHqDdBZrKYyOclv1xaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731137514; 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=gYrjGOB2NQGCuwdjGgUffwEKuFfimtn80t5SFA/UFP8=; b=p9+R4Zm6HUm6VLGlKuDALlCd0ntphsEMJUxQ6yGyuvC1EjULRLxrS2k2apZT9G7krYFXDU FVnyIrzr/JPt6T7ditNxAlxjG3s1XkENFfTOCnxke+67WN5KwYByIiiY8LDQ7/BDWdgfWj zn2OYLmvQ6mRMwVuQ/jho/YrOSVz5XwvVkw6QnGCPZeSlnMQJU1SGudiDgPEub0zSuTTkG 3T4fuwVqNd2mreFbnLsfVnquuV6RERsNP183M+B2GHKkDqb3jRbrPnwP95zasaHzja3lcY QPm0hFyjASLrYWrhHEJActzMbjJV187NOm3l0m5XGWuFFGNqH48c+PRH/KZx2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731137514; a=rsa-sha256; cv=none; b=PmX2PCJi+rfgehmhBrxG/i7IJG3iLTOamDpSiBCTCq5D4JCW2aZttarlP0+iNNsVKVnaUf DZ6Dzr9ujne+YbhTq/0/Q0fVE1hPjLFH4W5znFIs7D9OTlTej3KHZZhHc0J9BtvAGehnlp fHlpAz07zLZ8bVIWvh8b5qwZ/uWtO8zTHGV5/q9ZaMZqQxcq1rXzZl7UGaPHNqaqKleg6H IpzgY5tF7oIxxmQOkLFJPoSmydh2RieWo8KHFlD8LY+6Pn3CfwVB6/Wx+P0/XfzYl9ukC5 l8c60AQxeVp3/jSY9ImYMDqeDrKHjBzYM82oq82lUefZHJz99rRz85rLh/ujiA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XlnZ25mwRz14Gy; Sat, 9 Nov 2024 07:31:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A97VsT9021689; Sat, 9 Nov 2024 07:31:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A97Vsdu021686; Sat, 9 Nov 2024 07:31:54 GMT (envelope-from git) Date: Sat, 9 Nov 2024 07:31:54 GMT Message-Id: <202411090731.4A97Vsdu021686@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michal Meloun Subject: git: 0283eebb4a54 - main - arm: remove accidentally added -Map switch to linker List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mmel X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0283eebb4a54c7270f9ac03bb4ed2742cb959c28 Auto-Submitted: auto-generated The branch main has been updated by mmel: URL: https://cgit.FreeBSD.org/src/commit/?id=0283eebb4a54c7270f9ac03bb4ed2742cb959c28 commit 0283eebb4a54c7270f9ac03bb4ed2742cb959c28 Author: Michal Meloun AuthorDate: 2024-11-09 07:25:15 +0000 Commit: Michal Meloun CommitDate: 2024-11-09 07:31:14 +0000 arm: remove accidentally added -Map switch to linker Fixes: ba045ba49ded --- sys/conf/Makefile.arm | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 8e98e5b07648..2dc566869c14 100644 --- a/sys/conf/Makefile.arm +++ b/sys/conf/Makefile.arm @@ -57,7 +57,6 @@ KERNVIRTADDR= 0xc0000000 # "ELF for the ARM architecture" for more info on the mapping symbols. SYSTEM_LD= \ ${SYSTEM_LD_BASECMD} \ - --Map=/usr2/Meloun/ld.map \ --defsym='text_start=kernbase + SIZEOF_HEADERS' \ -o ${.TARGET} ${SYSTEM_OBJS} vers.o; \ $(OBJCOPY) \ From nobody Sat Nov 9 16:51:38 2024 X-Original-To: dev-commits-src-all@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 4Xm1zt6n8cz5cP3T; Sat, 09 Nov 2024 16:51:38 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm1zt5vdqz4JlC; Sat, 9 Nov 2024 16:51:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731171098; 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=utTaJb9O73mjzugvSawCGtrWlpeCKCvXBzmBxgxCCe4=; b=LBpRHnpHXnr/nCKNKpmYceGdTnO+iStefyL8nJ1uh1yx4qXhuhCOr+SttW4IiPDJSvq8Az M+sf+0+7H/5M/PY9gr7TTNbhw4XVbgbrc6xGqIGeaY/r+9VKzNbn9JD0mCZXYNg5CVI5ig xCVlH80XweK+oeG4RgUKkr4Ak2VMsCIpEyU0TMtefXn405X8mpcwyKgio6Biubl1wTF+hr D8X0e3UjzcWBF5K5yNng+K2Eu5cK7+DHGXBHr2WrRbr9sTjWLN4nDf46+0kt6dC/KwKkWg 9cVT3VNGoMCMNvFwhNvJkgE2inEhFKMMb7kKsfEedR9vwqWxYCLkJ+sXFGC78g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731171098; 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=utTaJb9O73mjzugvSawCGtrWlpeCKCvXBzmBxgxCCe4=; b=SWx+DiwpHnfRGMpNNNPOSQIQWNyfB3766RNT36SeCcqweFh15F7OHn1dBhHlBttG664Hau 2r/Ml4gTGAbwvfdF6qwAM2TZ5SUcpZM+dbfmg14u4L/Ef301ywB3XaUfV+nxvDny/+HlUk DwFQyzc3OhPHiSaeQ6gn1Z4FS5CWtLDA6x/O7eTbrELe8sOz+9YAo8g188Aytbg+q8GkCe IkzQ7K6nJKuTGVIg+vx1c8KBB/u3u53gevcwBYmTNgkx3eG0elamsfFP3GZzuB8GzM461d 2GEUYsF9gx3RHtg3IbfCBMsZfdrMVIeSQGtotXNhuDHI0yPORsHnqWgCoqhUfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731171098; a=rsa-sha256; cv=none; b=BRPN5PViLpy425Att7SP6+GE86L4hW9BgUY4A4MYrgxyOWMw/Q5p751HvkRydGcOl7qzr/ RCaGosDfSiCye9BQyuxMOjJ4TSd1uLPhvYbA72mpWumWw8A4+8LVWoQo5AIrYTKSkHp3Md 1/Se9INT0qVCnIaRWtYIKgp1+b+RvE8wrZbXYyaG8YM2KsqoyIMS0mQcl9IdGEK8JgUbeM OXNxw8NPNOmJtY5U/8ylvBW/jSSsbdNXWLQMbLSukX733BUzA+/DjYg4bJzlvhoK+uBxFk SOlJ6ao6S8FtcuGmbMILfzCLr/UyGxEI4Wz1KGBL5e4p/atQfR4B1J6OP7aEqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm1zt5W9sz1LZK; Sat, 9 Nov 2024 16:51:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9GpcHj055461; Sat, 9 Nov 2024 16:51:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9Gpcjj055458; Sat, 9 Nov 2024 16:51:38 GMT (envelope-from git) Date: Sat, 9 Nov 2024 16:51:38 GMT Message-Id: <202411091651.4A9Gpcjj055458@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 57921ae825dc - releng/14.2 - Merge commit d0b9c2c56476 from llvm git (by David CARLIER): List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.2 X-Git-Reftype: branch X-Git-Commit: 57921ae825dcf690b06b63db2e38613ee32d1b8e Auto-Submitted: auto-generated The branch releng/14.2 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=57921ae825dcf690b06b63db2e38613ee32d1b8e commit 57921ae825dcf690b06b63db2e38613ee32d1b8e Author: Dimitry Andric AuthorDate: 2024-11-07 16:12:12 +0000 Commit: Mark Johnston CommitDate: 2024-11-09 16:49:52 +0000 Merge commit d0b9c2c56476 from llvm git (by David CARLIER): [compiler-rt] Remove SHA2 interceptions for NetBSD/FreeBSD. (#110246) To Fix #110215 Interceptors introduced with 18a7ebda99044473fdbce6376993714ff54e6690 This fixes undesirable runtime failures when using -fsanitize=-address in combination with -lcrypto. Direct commit to stable/14, because main already got this change as part of the llvm-19 import. Approved by: re (cperciva) Reported by: Theo Buehler PR: 281685 (cherry picked from commit 4f1754bccef155c0fd24547ab3c872bd0f182224) --- .../sanitizer_common_interceptors.inc | 180 --------------------- .../sanitizer_platform_interceptors.h | 2 - 2 files changed, 182 deletions(-) diff --git a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc index 3ecdb55cdbf7..2cf21f2e3361 100644 --- a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -8809,83 +8809,6 @@ INTERCEPTOR(char *, RMD160Data, u8 *data, SIZE_T len, char *buf) { #define INIT_RMD160 #endif -#if SANITIZER_INTERCEPT_MD5 -INTERCEPTOR(void, MD5Init, void *context) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Init, context); - REAL(MD5Init)(context); - if (context) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, MD5_CTX_sz); -} - -INTERCEPTOR(void, MD5Update, void *context, const unsigned char *data, - unsigned int len) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Update, context, data, len); - if (data && len > 0) - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - REAL(MD5Update)(context, data, len); - if (context) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, MD5_CTX_sz); -} - -INTERCEPTOR(void, MD5Final, unsigned char digest[16], void *context) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Final, digest, context); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - REAL(MD5Final)(digest, context); - if (digest) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, digest, sizeof(unsigned char) * 16); -} - -INTERCEPTOR(char *, MD5End, void *context, char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5End, context, buf); - if (context) - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, MD5_CTX_sz); - char *ret = REAL(MD5End)(context, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -INTERCEPTOR(char *, MD5File, const char *filename, char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5File, filename, buf); - if (filename) - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1); - char *ret = REAL(MD5File)(filename, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -INTERCEPTOR(char *, MD5Data, const unsigned char *data, unsigned int len, - char *buf) { - void *ctx; - COMMON_INTERCEPTOR_ENTER(ctx, MD5Data, data, len, buf); - if (data && len > 0) - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); - char *ret = REAL(MD5Data)(data, len, buf); - if (ret) - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, MD5_return_length); - return ret; -} - -#define INIT_MD5 \ - COMMON_INTERCEPT_FUNCTION(MD5Init); \ - COMMON_INTERCEPT_FUNCTION(MD5Update); \ - COMMON_INTERCEPT_FUNCTION(MD5Final); \ - COMMON_INTERCEPT_FUNCTION(MD5End); \ - COMMON_INTERCEPT_FUNCTION(MD5File); \ - COMMON_INTERCEPT_FUNCTION(MD5Data) -#else -#define INIT_MD5 -#endif - #if SANITIZER_INTERCEPT_FSEEK INTERCEPTOR(int, fseek, __sanitizer_FILE *stream, long int offset, int whence) { void *ctx; @@ -9016,107 +8939,6 @@ INTERCEPTOR(char *, MD2Data, const unsigned char *data, unsigned int len, #define INIT_MD2 #endif -#if SANITIZER_INTERCEPT_SHA2 -#define SHA2_INTERCEPTORS(LEN, SHA2_STATE_T) \ - INTERCEPTOR(void, SHA##LEN##_Init, void *context) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Init, context); \ - REAL(SHA##LEN##_Init)(context); \ - if (context) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - } \ - INTERCEPTOR(void, SHA##LEN##_Update, void *context, \ - const u8 *data, SIZE_T len) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Update, context, data, len); \ - if (data && len > 0) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - REAL(SHA##LEN##_Update)(context, data, len); \ - if (context) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - } \ - INTERCEPTOR(void, SHA##LEN##_Final, u8 digest[LEN/8], \ - void *context) { \ - void *ctx; \ - CHECK_EQ(SHA##LEN##_digest_length, LEN/8); \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Final, digest, context); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - REAL(SHA##LEN##_Final)(digest, context); \ - if (digest) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, digest, \ - sizeof(digest[0]) * \ - SHA##LEN##_digest_length); \ - } \ - INTERCEPTOR(char *, SHA##LEN##_End, void *context, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_End, context, buf); \ - if (context) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, context, SHA##LEN##_CTX_sz); \ - char *ret = REAL(SHA##LEN##_End)(context, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_File, const char *filename, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_File, filename, buf); \ - if (filename) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1);\ - char *ret = REAL(SHA##LEN##_File)(filename, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_FileChunk, const char *filename, char *buf, \ - OFF_T offset, OFF_T length) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_FileChunk, filename, buf, offset, \ - length); \ - if (filename) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, filename, internal_strlen(filename) + 1);\ - char *ret = REAL(SHA##LEN##_FileChunk)(filename, buf, offset, length); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } \ - INTERCEPTOR(char *, SHA##LEN##_Data, u8 *data, SIZE_T len, char *buf) { \ - void *ctx; \ - COMMON_INTERCEPTOR_ENTER(ctx, SHA##LEN##_Data, data, len, buf); \ - if (data && len > 0) \ - COMMON_INTERCEPTOR_READ_RANGE(ctx, data, len); \ - char *ret = REAL(SHA##LEN##_Data)(data, len, buf); \ - if (ret) \ - COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ret, SHA##LEN##_return_length); \ - return ret; \ - } - -SHA2_INTERCEPTORS(224, u32) -SHA2_INTERCEPTORS(256, u32) -SHA2_INTERCEPTORS(384, u64) -SHA2_INTERCEPTORS(512, u64) - -#define INIT_SHA2_INTECEPTORS(LEN) \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Init); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Update); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Final); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_End); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_File); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_FileChunk); \ - COMMON_INTERCEPT_FUNCTION(SHA##LEN##_Data) - -#define INIT_SHA2 \ - INIT_SHA2_INTECEPTORS(224); \ - INIT_SHA2_INTECEPTORS(256); \ - INIT_SHA2_INTECEPTORS(384); \ - INIT_SHA2_INTECEPTORS(512) -#undef SHA2_INTERCEPTORS -#else -#define INIT_SHA2 -#endif - #if SANITIZER_INTERCEPT_VIS INTERCEPTOR(char *, vis, char *dst, int c, int flag, int nextc) { void *ctx; @@ -10542,10 +10364,8 @@ static void InitializeCommonInterceptors() { INIT_SHA1; INIT_MD4; INIT_RMD160; - INIT_MD5; INIT_FSEEK; INIT_MD2; - INIT_SHA2; INIT_VIS; INIT_CDB; INIT_GETFSENT; diff --git a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h index de55c736d0e1..d78f942b3dd4 100644 --- a/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h +++ b/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h @@ -559,10 +559,8 @@ #define SANITIZER_INTERCEPT_SHA1 SI_NETBSD #define SANITIZER_INTERCEPT_MD4 SI_NETBSD #define SANITIZER_INTERCEPT_RMD160 SI_NETBSD -#define SANITIZER_INTERCEPT_MD5 (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_FSEEK (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_MD2 SI_NETBSD -#define SANITIZER_INTERCEPT_SHA2 (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_CDB SI_NETBSD #define SANITIZER_INTERCEPT_VIS (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_POPEN SI_POSIX From nobody Sat Nov 9 17:25:09 2024 X-Original-To: dev-commits-src-all@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 4Xm2kY4Jpjz5cRS5; Sat, 09 Nov 2024 17:25:09 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm2kY3NDgz4MLP; Sat, 9 Nov 2024 17:25:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173109; 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=d1UL0Y11l0eytDLTqkHknNS4u+VUHefUi3oNHjmwOBY=; b=oIb8tOKfF/OUY9ywxU14MKlYmLX+x9Flia3dorHGLNb97xWox86b6do9vG948xV49FEeTe 0iWCP2MSBS9KwbKD9aioeIe6dsOeBRE+nKjBeHqk8qDWNrBFpWKmR5pAfvwbS/n7KGTixp 5Np9106EfcqHWfDLv9QoZ+pnObXFEsMlV+gxt6cmYi1ScalxahFf4PIYmSJAoJevyD4UYn tTLCZ521aCKwldpGWQxlXujYjQm4qdYZNtoCMh4Cf3jHQtywCVj2QAms+GpA4oD+FbjxZF pylpdGRgT2ksaTOyDFciO1hWRpQrXY5JhzB8ZedHbQXqftgKGjvOzECzy4ZR7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173109; 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=d1UL0Y11l0eytDLTqkHknNS4u+VUHefUi3oNHjmwOBY=; b=f1PJ4pFOkeOld1PGgOBN9RwXxwGuLYHpDH46JKtjxDDhg3f6pH5TlcbY+1YN4oF4FWXTwd U/ath+XzDDJ6MC9Ju7nKkB/2bLqrbYrlGSt+2egn1PE0Px66XYk31rpTbuzVh6+oABMC4C mX/d9+D+p8ON2Abd9kx5cScCcVEdUZY4TYt3azkPvnWl+6ti3Xwcqfo1d+aJlNzvfcvRTP vj5WHy647qNdLNunXTlt3IMJuPkRdlN55cFhy7Zbpgv5uEHvm+cGffd6NuEcuPP48rC8Dr qQCD6jRMPB5EuITGfjP0BwUDkgrZXom67qRG5Hs7KTln4Z9gQ/M4rm8//GxhIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731173109; a=rsa-sha256; cv=none; b=yg2RrZ8mquVspuynBq1Qjv7ukhAIZH8iwxJ/xZxPRhLxqPQtN9xvQgpbGr93FUWq+N8qds kuP2CNcon0vYdIRJ4EmE+mvJhgCNa5X+K6qn2RKxOEjk8B1KgvG8fDDNg0SZC34UHJW4ns 9eYnSADfa9z4f+107Ao+vmAxowG3NoKteZ6QJyFW9LhkCs1X44Ci7aUzTsA0VbK5G6IuOe Bk8HWYFP+sZB73CYMSXzYRhPlM8gnx/eK/Es+rriICr0LbrJBe+pkAvMiOvvaeOgbuJk21 4GCchWoUCp/saIx1MAJAOB2Rb8EXNQVX9Dll6Q3hrs0aLWkFzOPOim1f/cchiw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm2kY2jSRz1MYH; Sat, 9 Nov 2024 17:25:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9HP9Mj015690; Sat, 9 Nov 2024 17:25:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9HP9gO015687; Sat, 9 Nov 2024 17:25:09 GMT (envelope-from git) Date: Sat, 9 Nov 2024 17:25:09 GMT Message-Id: <202411091725.4A9HP9gO015687@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: cd9e781e76d9 - main - ps.1: visually align process flags hex values by filling leading zeroes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cd9e781e76d90275b26b92ba512297ea3ca852e5 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=cd9e781e76d90275b26b92ba512297ea3ca852e5 commit cd9e781e76d90275b26b92ba512297ea3ca852e5 Author: Konstantin Belousov AuthorDate: 2024-11-09 01:43:31 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 17:22:22 +0000 ps.1: visually align process flags hex values by filling leading zeroes Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47492 --- bin/ps/ps.1 | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index bac86ad8a882..121757fb943d 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -331,33 +331,33 @@ The flags associated with the process as in the include file .In sys/proc.h : .Bl -column P_SINGLE_BOUNDARY 0x40000000 -.It Dv "P_ADVLOCK" Ta No "0x00001" Ta "Process may hold a POSIX advisory lock" -.It Dv "P_CONTROLT" Ta No "0x00002" Ta "Has a controlling terminal" -.It Dv "P_KPROC" Ta No "0x00004" Ta "Kernel process" -.It Dv "P_PPWAIT" Ta No "0x00010" Ta "Parent is waiting for child to exec/exit" -.It Dv "P_PROFIL" Ta No "0x00020" Ta "Has started profiling" -.It Dv "P_STOPPROF" Ta No "0x00040" Ta "Has thread in requesting to stop prof" -.It Dv "P_HADTHREADS" Ta No "0x00080" Ta "Has had threads (no cleanup shortcuts)" -.It Dv "P_SUGID" Ta No "0x00100" Ta "Had set id privileges since last exec" -.It Dv "P_SYSTEM" Ta No "0x00200" Ta "System proc: no sigs, stats or swapping" -.It Dv "P_SINGLE_EXIT" Ta No "0x00400" Ta "Threads suspending should exit, not wait" -.It Dv "P_TRACED" Ta No "0x00800" Ta "Debugged process being traced" -.It Dv "P_WAITED" Ta No "0x01000" Ta "Someone is waiting for us" -.It Dv "P_WEXIT" Ta No "0x02000" Ta "Working on exiting" -.It Dv "P_EXEC" Ta No "0x04000" Ta "Process called exec" -.It Dv "P_WKILLED" Ta No "0x08000" Ta "Killed, shall go to kernel/user boundary ASAP" -.It Dv "P_CONTINUED" Ta No "0x10000" Ta "Proc has continued from a stopped state" -.It Dv "P_STOPPED_SIG" Ta No "0x20000" Ta "Stopped due to SIGSTOP/SIGTSTP" -.It Dv "P_STOPPED_TRACE" Ta No "0x40000" Ta "Stopped because of tracing" -.It Dv "P_STOPPED_SINGLE" Ta No "0x80000" Ta "Only one thread can continue" -.It Dv "P_PROTECTED" Ta No "0x100000" Ta "Do not kill on memory overcommit" -.It Dv "P_SIGEVENT" Ta No "0x200000" Ta "Process pending signals changed" -.It Dv "P_SINGLE_BOUNDARY" Ta No "0x400000" Ta "Threads should suspend at user boundary" -.It Dv "P_HWPMC" Ta No "0x800000" Ta "Process is using HWPMCs" -.It Dv "P_JAILED" Ta No "0x1000000" Ta "Process is in jail" -.It Dv "P_TOTAL_STOP" Ta No "0x2000000" Ta "Stopped for system suspend" -.It Dv "P_INEXEC" Ta No "0x4000000" Ta Process is in Xr execve 2 -.It Dv "P_STATCHILD" Ta No "0x8000000" Ta "Child process stopped or exited" +.It Dv "P_ADVLOCK" Ta No "0x00000001" Ta "Process may hold a POSIX advisory lock" +.It Dv "P_CONTROLT" Ta No "0x00000002" Ta "Has a controlling terminal" +.It Dv "P_KPROC" Ta No "0x00000004" Ta "Kernel process" +.It Dv "P_PPWAIT" Ta No "0x00000010" Ta "Parent is waiting for child to exec/exit" +.It Dv "P_PROFIL" Ta No "0x00000020" Ta "Has started profiling" +.It Dv "P_STOPPROF" Ta No "0x00000040" Ta "Has thread in requesting to stop prof" +.It Dv "P_HADTHREADS" Ta No "0x00000080" Ta "Has had threads (no cleanup shortcuts)" +.It Dv "P_SUGID" Ta No "0x00000100" Ta "Had set id privileges since last exec" +.It Dv "P_SYSTEM" Ta No "0x00000200" Ta "System proc: no sigs, stats or swapping" +.It Dv "P_SINGLE_EXIT" Ta No "0x00000400" Ta "Threads suspending should exit, not wait" +.It Dv "P_TRACED" Ta No "0x00000800" Ta "Debugged process being traced" +.It Dv "P_WAITED" Ta No "0x00001000" Ta "Someone is waiting for us" +.It Dv "P_WEXIT" Ta No "0x00002000" Ta "Working on exiting" +.It Dv "P_EXEC" Ta No "0x00004000" Ta "Process called exec" +.It Dv "P_WKILLED" Ta No "0x00008000" Ta "Killed, shall go to kernel/user boundary ASAP" +.It Dv "P_CONTINUED" Ta No "0x00010000" Ta "Proc has continued from a stopped state" +.It Dv "P_STOPPED_SIG" Ta No "0x00020000" Ta "Stopped due to SIGSTOP/SIGTSTP" +.It Dv "P_STOPPED_TRACE" Ta No "0x00040000" Ta "Stopped because of tracing" +.It Dv "P_STOPPED_SINGLE" Ta No "0x00080000" Ta "Only one thread can continue" +.It Dv "P_PROTECTED" Ta No "0x00100000" Ta "Do not kill on memory overcommit" +.It Dv "P_SIGEVENT" Ta No "0x00200000" Ta "Process pending signals changed" +.It Dv "P_SINGLE_BOUNDARY" Ta No "0x00400000" Ta "Threads should suspend at user boundary" +.It Dv "P_HWPMC" Ta No "0x00800000" Ta "Process is using HWPMCs" +.It Dv "P_JAILED" Ta No "0x01000000" Ta "Process is in jail" +.It Dv "P_TOTAL_STOP" Ta No "0x02000000" Ta "Stopped for system suspend" +.It Dv "P_INEXEC" Ta No "0x04000000" Ta Process is in Xr execve 2 +.It Dv "P_STATCHILD" Ta No "0x08000000" Ta "Child process stopped or exited" .It Dv "P_INMEM" Ta No "0x10000000" Ta "Loaded into memory" .It Dv "P_SWAPPINGOUT" Ta No "0x20000000" Ta "Process is being swapped out" .It Dv "P_SWAPPINGIN" Ta No "0x40000000" Ta "Process is being swapped in" From nobody Sat Nov 9 17:25:10 2024 X-Original-To: dev-commits-src-all@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 4Xm2kZ4MZ0z5cRS6; Sat, 09 Nov 2024 17:25:10 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm2kZ3WyYz4MLQ; Sat, 9 Nov 2024 17:25:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173110; 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=ORUiKX0kArdGn/OTuAca6t5lE3lRxjM/kuPbrIJj/LI=; b=rBBG+75cap1a7092bWRKKsNGtazUK0J4lOjWUMzGf94ali7Lhd51v8CEcu66Rh56Vqathh kHnqXHDRp7Ps9EVPmgDl0LYcH24l36D4dRhr5ps3Bv1jFsYLoHg7Wbl5ZSrKJ1eOSsDs9p X3bfMQhN8I+bAY0bEgImlvFI8dh52QxHSH6a88aCPvXdlwX44mlPZcKjMbpJ9IMj0N2o/c HG/hM+7o9nelV10welvkRE0+b2ZgKJwNU8RQEq33JiQh1yf9SrN9hG3qbeV6VEJstUX82Z puDCpV7QkMHnao0wqYHn/tLn4f8k95QSdGdiKEqC6NlNvp1IP7aCOw4tQeyWRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173110; 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=ORUiKX0kArdGn/OTuAca6t5lE3lRxjM/kuPbrIJj/LI=; b=Tb0H02wxTtYK0NokQ0S6n8DJAGrwICUQ+3rtdY0Rmx+ds7DZX0tH4Q8QJNmWrn+oWDf/BR 0oD61OLJXYUVH6O8D5t1IbUidgwr6jiNOuj81InEzL5TSgiSA+jbZGTIlfIWKoW01cCRFQ Gdu2qmjGj252JOae1ZQnKkuNmO/iE9dY58KwDzWDvdRfr9Sdn4MR3PqU9Nkh3YZjt3Hxh1 eWLY3Aj/4htbsNv8d8E/HRza7n0DV7P5hOuikhnBnv9ZW2C9jGLo5vjfVXvSfY4JuMyOAA WQZN9kOcoXwO3bInuyiOjW10zcABkqnvFSMedEcc/3BumRblA0r80iNlCOwUGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731173110; a=rsa-sha256; cv=none; b=GX6JF0eC+s1xW/iIGxLjpKxv3/G3eKuFrgKCnBfBxBhsaMI81iqCO/d8PvllwGKlFxiBVh tp+7acwdKoXMhqVIK1a/4uLd6fLbFYzwqYn8RRYdxEx/116F9lvAbIpy/44UFVVIS+U/HS q+jBGVREeahqocq6VQMIXR9GiB6a9YyEpmDckuxIOljBlUbu7VPJlsxA83iwVUberwbMWD wey2UzCbnYS16cbdH+hf+5zRlWxyC65jRSzyD+sS3NXo+XwdqUIjroYi9WBfGKM7A0uKtx xjZ3p60xfq6vQJ9UB0XjOwhpXFbyU6ZFNZ8cXxxaji3aqygoMz6qpvlrOBA6rA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm2kZ37Ldz1MHg; Sat, 9 Nov 2024 17:25:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9HPAvD015744; Sat, 9 Nov 2024 17:25:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9HPAkf015741; Sat, 9 Nov 2024 17:25:10 GMT (envelope-from git) Date: Sat, 9 Nov 2024 17:25:10 GMT Message-Id: <202411091725.4A9HPAkf015741@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4c367bc90ba0 - main - ps.1: document rest of flag2 bits List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4c367bc90ba02a76d015364345343eed1cc4492a Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4c367bc90ba02a76d015364345343eed1cc4492a commit 4c367bc90ba02a76d015364345343eed1cc4492a Author: Konstantin Belousov AuthorDate: 2024-11-09 02:00:42 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 17:22:29 +0000 ps.1: document rest of flag2 bits Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47492 --- bin/ps/ps.1 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index 121757fb943d..828239fd2ba9 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -375,6 +375,24 @@ the include file .It Dv "P2_NOTRACE_EXEC" Ta No "0x00000004" Ta Keep P2_NOPTRACE on Xr execve 2 .It Dv "P2_AST_SU" Ta No "0x00000008" Ta "Handles SU ast for kthreads" .It Dv "P2_PTRACE_FSTP" Ta No "0x00000010" Ta "SIGSTOP from PT_ATTACH not yet handled" +.It Dv "P2_TRAPCAP" Ta No "0x00000020" Ta "SIGTRAP on ENOTCAPABLE" +.It Dv "P2_ASLR_ENABLE" Ta No "0x00000040" Ta "Force enable ASLR" +.It Dv "P2_ASLR_DISABLE" Ta No "0x00000080" Ta "Force disable ASLR" +.It Dv "P2_ASLR_IGNSTART" Ta No "0x00000100" Ta "Enable ASLR to consume sbrk area" +.It Dv "P2_PROTMAX_ENABLE" Ta No "0x00000200" Ta "Force enable implied PROT_MAX" +.It Dv "P2_PROTMAX_DISABLE" Ta No "0x00000400" Ta "Force disable implied PROT_MAX" +.It Dv "P2_STKGAP_DISABLE" Ta No "0x00000800" Ta "Disable stack gap for MAP_STACK" +.It Dv "P2_STKGAP_DISABLE_EXEC" Ta No " 0x00001000" Ta "Stack gap disabled after exec" +.It Dv "P2_ITSTOPPED" Ta No "0x00002000" Ta "itimers stopped (as part of process stop)" +.It Dv "P2_PTRACEREQ" Ta No "0x00004000" Ta "Active ptrace req" +.It Dv "P2_NO_NEW_PRIVS" Ta No "0x00008000" Ta "Ignore setuid on exec" +.It Dv "P2_WXORX_DISABLE" Ta No "0x00010000" Ta "WX mappings enabled" +.It Dv "P2_WXORX_ENABLE_EXEC" Ta No "0x00020000" Ta "WxorX enabled after exec" +.It Dv "P2_WEXIT" Ta No "0x00040000" Ta "Internal exit early state" +.It Dv "P2_REAPKILLED" Ta No "0x00080000" Ta "REAP_KILL pass handled the process" +.It Dv "P2_MEMBAR_PRIVE" Ta No "0x00100000" Ta "membarrier private expedited registered" +.It Dv "P2_MEMBAR_PRIVE_SYNCORE" Ta No "0x00200000" Ta "membarrier private expedited sync core registered" +.It Dv "P2_MEMBAR_GLOBE" Ta No "0x00400000" Ta "membar global expedited registered" .El .It Cm label The MAC label of the process. From nobody Sat Nov 9 17:25:11 2024 X-Original-To: dev-commits-src-all@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 4Xm2kb67MGz5cRQT; Sat, 09 Nov 2024 17:25:11 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm2kb570dz4M8h; Sat, 9 Nov 2024 17:25:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173111; 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=GtvINwBUdMTzTEaOMGI/iT28eORGkgxsVc2PrkMKV0c=; b=aC7JvVOF+4RRU0RqTZhrH4oxdNhb6Ni3BrkH3zcB5QNQWqYv4fMS2cQ3mwr0vpylGNqSSK rETL6l8uHFYp4a6jAd72CZOBHSPc0DYOfYRYGoq8wydt55RBudqiu2IG4nj1fTWNVruMj7 3LA8F0rp2HgejkAwCj6DUhGwt8FC42HcWGTmP4lQejZBz/E/RBXprSPXw8x/6xiUQIMAp9 vqgdQ5PMS3N633tSKVD2yjA+2ONSENssCdE2j5wiH2lakCWiRTfvmAm2mqw7+wWzoAmUyi zGHO0OMt5/qQ6Whr2V6fmS6VXNFtFJeJuY9m/4P8sNUDAfcTkDCkDAOTOWB84A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173111; 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=GtvINwBUdMTzTEaOMGI/iT28eORGkgxsVc2PrkMKV0c=; b=OiYMc6uW0vCv7ImOKsKLHOXuKxwHGMKv7oB2OWc3JtiAq76Aee+4321xrf6AsUOnyQj/CE Crr9+sApPv1V7t7qXtaE5lyetvN3NSMJLMSgm8ynIoMm0rVvreZ15IaWdZUaNmwEi59A/H iNyaoE736Tdu4H+VSAIsJsyj21pMx5x0zPX9wUBYFv7PenskQRc2IAs0dSTiOiOLxBK5B5 K8DD/5cRgWDfSEa9r3H9SWwiHne0fz8xqO1L+lt2pdQZSHpFC6ndPcZfQbkF7WwA2tPO4G pgPNo92UZ8ZndwCeIdIiA4V41Q8d5wosJzciwpAXa1g0rtsv/ltWO79Nc60yPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731173111; a=rsa-sha256; cv=none; b=vxaFgE0zLmD36hHnYnl1hpmgL/DgRH70Ky7FPJh+O8NEwnPruL6JN4N8EvAooR7/6FwqTC wzoU9ioEbqQUth6lrUgTzxbVbWtEFUyxnkDLHqQuOWCdBYwJt33+2f9xewl2XERZrljcmy C/WFF3y98JYTgtLpYvZJz/M2y/HDPRCmCAernrL1dKw9k2QhjkEJLzkPltywEjZIk1xUnE 9qDT4VpR/xxMATGeyMoTRMnhcV1lQ870Po8FJWR7Lz6QykiGp0DAyt2QesTKst+oHf+lZT Ck8+T7UYgllGI3978HsNut/lO5w76KAzzMTXQ6Z25xH+VmJjFCCS7YvRjTCQzA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm2kb4SKtz1MNB; Sat, 9 Nov 2024 17:25:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9HPB02015794; Sat, 9 Nov 2024 17:25:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9HPB7r015791; Sat, 9 Nov 2024 17:25:11 GMT (envelope-from git) Date: Sat, 9 Nov 2024 17:25:11 GMT Message-Id: <202411091725.4A9HPB7r015791@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 14b3a4564af3 - main - sys/proc.h: add comments to the flag2 bits List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 14b3a4564af36d30a94f01d7d94e64f72df7b880 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=14b3a4564af36d30a94f01d7d94e64f72df7b880 commit 14b3a4564af36d30a94f01d7d94e64f72df7b880 Author: Konstantin Belousov AuthorDate: 2024-11-09 02:02:36 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 17:22:36 +0000 sys/proc.h: add comments to the flag2 bits Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47492 --- sys/sys/proc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 466fb3c0cd41..c56d3debd5c0 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -868,7 +868,7 @@ struct proc { MAP_STACK */ #define P2_STKGAP_DISABLE_EXEC 0x00001000 /* Stack gap disabled after exec */ -#define P2_ITSTOPPED 0x00002000 +#define P2_ITSTOPPED 0x00002000 /* itimers stopped */ #define P2_PTRACEREQ 0x00004000 /* Active ptrace req */ #define P2_NO_NEW_PRIVS 0x00008000 /* Ignore setuid */ #define P2_WXORX_DISABLE 0x00010000 /* WX mappings enabled */ @@ -876,7 +876,7 @@ struct proc { #define P2_WEXIT 0x00040000 /* exit just started, no external thread_single() is permitted */ -#define P2_REAPKILLED 0x00080000 +#define P2_REAPKILLED 0x00080000 /* REAP_KILL pass touched me */ #define P2_MEMBAR_PRIVE 0x00100000 /* membar private expedited registered */ #define P2_MEMBAR_PRIVE_SYNCORE 0x00200000 /* membar private expedited From nobody Sat Nov 9 17:25:12 2024 X-Original-To: dev-commits-src-all@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 4Xm2kd26R1z5cR7F; Sat, 09 Nov 2024 17:25:13 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm2kc64c7z4M8w; Sat, 9 Nov 2024 17:25:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173112; 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=Lc0i1dMwHo4de86uOJk0yGjkZXDrv7a6W60efNqvRF0=; b=tUci5AllkwYJOhuF2xT8L6K3q0UJ4cgv1KvmHaa4BjmrM7vz5F/eSkDOwxn3iygwvAL833 oqNrJ6FlwGM2pcQNVGXS1qeC+8qK021WWkrqIOwcIkR9RwxmboCp6HImDUek+I6Hxo7wM+ 1V8dCIOJF1l3cLn8R3FEmIqGFubFbAZp57Xj0jAPqJj+mI2T94OhRilX5pQnzmKozs+v6f SNx4SS6lfewMqSVyMI6aMvr+/On8hx4Bs34jU2H7tyVLPLDGJeAaoCK0zc1T3dK/5VY6v4 t/sxLA+kh3TaZWmy6HC2BBTORpE7cswCX7cAfOe0zHydK/6dvFiAfecASNJXaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173112; 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=Lc0i1dMwHo4de86uOJk0yGjkZXDrv7a6W60efNqvRF0=; b=JHoRWXT+hiHfkHaKh7sl1pXw/hb1vex8bHwa0UrneMap0NfAIRw45nLAjyv5VKiO5z5XBj xlD7wmbaqczklNroq9Twc6rPU7t+liYoIyW9R6C+wXI004U9mOIaPRyfl5IniAQZ2KNF4r JAEbDvtdAG+rcVw47OeA08HQjJKJT/kKA9IYcgV+KZOtbNdv9DqUWdG6VD+KiJPecbMKQG AQ0jkg+L/0z1IPSK9qtQpm5r2aOWGAv9cN+/ibxh2li8j2XenzztzPUVPAI3NkIjS9bdQj d/h2WBE96p8V5VASGKa/sMY36q0OzfzDToyd6YhXpBKXAN4GKCsRJ7oLPosfWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731173112; a=rsa-sha256; cv=none; b=Z/ADdBd25vab5DYoDQJZoQwqSeXpHKAgfXsHh5sYLxvSs+C+8n6ySXIVw3rhn+I07FamzJ kxgdRzL0NSFyeIyz5gFaerQpCZulcvucyShaP52dDcD3emjoC83oSitWNDGRWITuOoxTCH eACzuIvkkjYu07fBSehsUn8ricmmJ9Wt+ErwESqjPbSoBPZS46YyO1pds/OVMqMe0kss5d MzRGV33igrzCVTHXehJjKaeeR46nqOfzMhe9hu2Pd6LULgxmZURCLCHJ3qrImkUXYti/QG nc3I84tKgRtAj8sXtLXaF5rSAHEEY+vDyV6VwJU2cKKHDmBZxq7QyvWUrssfvQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm2kc5T29z1Lbb; Sat, 9 Nov 2024 17:25:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9HPCgE015839; Sat, 9 Nov 2024 17:25:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9HPCHC015836; Sat, 9 Nov 2024 17:25:12 GMT (envelope-from git) Date: Sat, 9 Nov 2024 17:25:12 GMT Message-Id: <202411091725.4A9HPCHC015836@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 62e6ca0f07e4 - main - ps(1): clean up after swapout removal List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 62e6ca0f07e448da27cb2cc8165e749e7fdfcd7e Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=62e6ca0f07e448da27cb2cc8165e749e7fdfcd7e commit 62e6ca0f07e448da27cb2cc8165e749e7fdfcd7e Author: Konstantin Belousov AuthorDate: 2024-11-09 01:37:07 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 17:22:42 +0000 ps(1): clean up after swapout removal The process flag P_INMEM is always set. Eliminate all checks for the bit. Also eliminate LAZY_PS define and code covered by it: we do not have an u-area for long time, and it cannot be swapped out. Also eliminate setting controlled by the '-f' switch, but accept it for backward compatibility. The 'W' process secondary state (swapped out) is impossible, stop calculating it. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D47492 --- bin/ps/Makefile | 7 ------- bin/ps/print.c | 6 +----- bin/ps/ps.1 | 9 +-------- bin/ps/ps.c | 41 ++++++++--------------------------------- 4 files changed, 10 insertions(+), 53 deletions(-) diff --git a/bin/ps/Makefile b/bin/ps/Makefile index a25b6a796ed0..71973b34dd24 100644 --- a/bin/ps/Makefile +++ b/bin/ps/Makefile @@ -2,13 +2,6 @@ PACKAGE=runtime PROG= ps SRCS= fmt.c keyword.c nlist.c print.c ps.c -# -# To support "lazy" ps for non root/wheel users -# add -DLAZY_PS to the cflags. This helps -# keep ps from being an unnecessary load -# on large systems. -# -CFLAGS+=-DLAZY_PS LIBADD= m kvm jail xo .include diff --git a/bin/ps/print.c b/bin/ps/print.c index a3423d8b3956..59631fb66a10 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -253,8 +253,6 @@ state(KINFO *k, VARENT *ve __unused) *cp = '?'; } cp++; - if (!(flag & P_INMEM)) - *cp++ = 'W'; if (k->ki_p->ki_nice < NZERO || k->ki_p->ki_pri.pri_class == PRI_REALTIME) *cp++ = '<'; else if (k->ki_p->ki_nice > NZERO || k->ki_p->ki_pri.pri_class == PRI_IDLE) @@ -633,7 +631,7 @@ getpcpu(const KINFO *k) #define fxtofl(fixpt) ((double)(fixpt) / fscale) /* XXX - I don't like this */ - if (k->ki_p->ki_swtime == 0 || (k->ki_p->ki_flag & P_INMEM) == 0) + if (k->ki_p->ki_swtime == 0) return (0.0); if (rawcpu) return (100.0 * fxtofl(k->ki_p->ki_pctcpu)); @@ -661,8 +659,6 @@ getpmem(KINFO *k) if (failure) return (0.0); - if ((k->ki_p->ki_flag & P_INMEM) == 0) - return (0.0); /* XXX want pmap ptpages, segtab, etc. (per architecture) */ /* XXX don't have info about shared */ fracmem = ((double)k->ki_p->ki_rssize) / mempages; diff --git a/bin/ps/ps.1 b/bin/ps/ps.1 index 828239fd2ba9..8ece5b1bbfad 100644 --- a/bin/ps/ps.1 +++ b/bin/ps/ps.1 @@ -159,9 +159,6 @@ does not imply but works well with it. .It Fl e Display the environment as well. -.It Fl f -Show command-line and environment information about swapped out processes. -This option is honored only if the UID of the user is 0. .It Fl G Display information about processes which are running with the specified real group IDs. @@ -358,9 +355,7 @@ the include file .It Dv "P_TOTAL_STOP" Ta No "0x02000000" Ta "Stopped for system suspend" .It Dv "P_INEXEC" Ta No "0x04000000" Ta Process is in Xr execve 2 .It Dv "P_STATCHILD" Ta No "0x08000000" Ta "Child process stopped or exited" -.It Dv "P_INMEM" Ta No "0x10000000" Ta "Loaded into memory" -.It Dv "P_SWAPPINGOUT" Ta No "0x20000000" Ta "Process is being swapped out" -.It Dv "P_SWAPPINGIN" Ta No "0x40000000" Ta "Process is being swapped in" +.It Dv "P_INMEM" Ta No "0x10000000" Ta "Always set, unused" .It Dv "P_PPTRACE" Ta No "0x80000000" Ta "Vforked child issued ptrace(PT_TRACEME)" .El .It Cm flags2 @@ -491,8 +486,6 @@ The process is a session leader. The process' parent is suspended during a .Xr vfork 2 , waiting for the process to exec or exit. -.It Li W -The process is swapped out. .It Li X The process is being traced or debugged. .El diff --git a/bin/ps/ps.c b/bin/ps/ps.c index b0af2bdf37ca..49c69bb76084 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -68,14 +68,6 @@ #define W_SEP " \t" /* "Whitespace" list separators */ #define T_SEP "," /* "Terminate-element" list separators */ -#ifdef LAZY_PS -#define DEF_UREAD 0 -#define OPT_LAZY_f "f" -#else -#define DEF_UREAD 1 /* Always do the more-expensive read. */ -#define OPT_LAZY_f /* I.e., the `-f' option is not added. */ -#endif - /* * isdigit takes an `int', but expects values in the range of unsigned char. * This wrapper ensures that values from a 'char' end up in the correct range. @@ -92,7 +84,6 @@ int showthreads; /* will threads be shown? */ struct velisthead varlist = STAILQ_HEAD_INITIALIZER(varlist); -static int forceuread = DEF_UREAD; /* Do extra work to get u-area. */ static kvm_t *kd; static int needcomm; /* -o "command" */ static int needenv; /* -e */ @@ -154,7 +145,7 @@ static char vfmt[] = "pid,state,time,sl,re,pagein,vsz,rss,lim,tsiz," "%cpu,%mem,command"; static char Zfmt[] = "label"; -#define PS_ARGS "AaCcD:de" OPT_LAZY_f "G:gHhjJ:LlM:mN:O:o:p:rSTt:U:uvwXxZ" +#define PS_ARGS "AaCcD:defG:gHhjJ:LlM:mN:O:o:p:rSTt:U:uvwXxZ" int main(int argc, char *argv[]) @@ -272,12 +263,9 @@ main(int argc, char *argv[]) case 'e': /* XXX set ufmt */ needenv = 1; break; -#ifdef LAZY_PS case 'f': - if (getuid() == 0 || getgid() == 0) - forceuread = 1; + /* compat */ break; -#endif case 'G': add_list(&gidlist, optarg); xkeep_implied = 1; @@ -1276,31 +1264,21 @@ fmt(char **(*fn)(kvm_t *, const struct kinfo_proc *, int), KINFO *ki, return (s); } -#define UREADOK(ki) (forceuread || (ki->ki_p->ki_flag & P_INMEM)) - static void saveuser(KINFO *ki) { char tdname[COMMLEN + 1]; char *argsp; - if (ki->ki_p->ki_flag & P_INMEM) { - /* - * The u-area might be swapped out, and we can't get - * at it because we have a crashdump and no swap. - * If it's here fill in these fields, otherwise, just - * leave them 0. - */ - ki->ki_valid = 1; - } else - ki->ki_valid = 0; + ki->ki_valid = 1; + /* * save arguments if needed */ if (needcomm) { if (ki->ki_p->ki_stat == SZOMB) { ki->ki_args = strdup(""); - } else if (UREADOK(ki) || (ki->ki_p->ki_args != NULL)) { + } else if (ki->ki_p->ki_args != NULL) { (void)snprintf(tdname, sizeof(tdname), "%s%s", ki->ki_p->ki_tdname, ki->ki_p->ki_moretdname); ki->ki_args = fmt(kvm_getargv, ki, @@ -1315,11 +1293,8 @@ saveuser(KINFO *ki) ki->ki_args = NULL; } if (needenv) { - if (UREADOK(ki)) - ki->ki_env = fmt(kvm_getenvv, ki, - (char *)NULL, (char *)NULL, 0); - else - ki->ki_env = strdup("()"); + ki->ki_env = fmt(kvm_getenvv, ki, (char *)NULL, + (char *)NULL, 0); if (ki->ki_env == NULL) xo_errx(1, "malloc failed"); } else { @@ -1479,7 +1454,7 @@ pidmax_init(void) static void __dead2 usage(void) { -#define SINGLE_OPTS "[-aCcde" OPT_LAZY_f "HhjlmrSTuvwXxZ]" +#define SINGLE_OPTS "[-aCcdeHhjlmrSTuvwXxZ]" xo_error("%s\n%s\n%s\n%s\n%s\n", "usage: ps [--libxo] " SINGLE_OPTS " [-O fmt | -o fmt]", From nobody Sat Nov 9 17:35:10 2024 X-Original-To: dev-commits-src-all@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 4Xm2y64kW7z5cRjR; Sat, 09 Nov 2024 17:35:10 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm2y64Bbvz4PSv; Sat, 9 Nov 2024 17:35:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173710; 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=LMkWeH6pRhNJgG1xcG16ylMpgPsCiQ/UKVcK8x72XZw=; b=njTytJulG8AcXERQ2beSLBWuXra78fyay7HRmKYPxyT98yZoBumcR2b1yJjje+A3bgARp+ XuC7CaBm5I+7e9guSCofl1WB2m7z36gxiH1unHIWQs2N1a2X7RNYLBINXhZD5r3/FjPAGx glQ/2GqVjLeLYL3/j+XO1+FfcMpTu574SUvZ5kFXCpfJtnd5af4edloQbO1EbBrDNZSHJE 8zGfcKcYSXJzmO3inz6//X+Q6zLU1o8G25RQgkguLBYa7DAIslz5o7k2oB/ithPb84EnMu wdJDkhDvOCN6gIavj40MLp6/c6dQax2iucLUJAhDneBnrkwmvY2hCig2PG41zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731173710; 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=LMkWeH6pRhNJgG1xcG16ylMpgPsCiQ/UKVcK8x72XZw=; b=BinO7Vyyf4ahhBT/jYfWuReg2cUTfzQzFBocSTVShx8G5btKJ6Mrfcut4OApLfHcDibjML MfKQs6o20usVx3lteDk5snRGEb6J5QBuRL8Ixt4QHalXftMwwdGeszjYxdGtUhx17xUsOq GF1+xj5d7GFgbQsrPXkhlxGrAqZ7KApLV5DEqC1jAE+9YSEsEYKMhAXfgbgKWS/xev/iDX uaywWJQoqtUjufg16YZ3wwFl4oIVEp2lEnwpNizMg4ZH+8I43mosaT/5ttVf7xZwh7spwh 3W9QuOhN9c07wsmq9Yh4doaF6PYcrE5VVN1TQrocfBDbXEKUd1lXm+qoqfT1Tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731173710; a=rsa-sha256; cv=none; b=ykMREY1vo66eaffebYs9ShGnW91ZBh/Rqy75kv+kSwm1L6x2h/YmtJxb+B0pRtI6Qd6WfJ R0l11PBHcTk98YkxyD9LI9gG31AceD1/je1norVMKqzt4QGab8N8uRNYDShNQkuyNDDBRh psjZkzsRj+D7krm+oLdCDd0oVEbVu2Qyol7719FfPxVjrohe0E9JRCSURTihJrm9uV1G42 mI3mOhxOGCSj/m9lSyY5gak5wgLyhbg3Awq9S1xWxGtvxJUwqOe9zLnuHUXE+6JMLTxo00 ru1PHMm3tdfbm1nHqAoXK7CRgx+br1nO/Avo75bpc4mR18DX88yR+vw0nbktiQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm2y63lVLz1Lc5; Sat, 9 Nov 2024 17:35:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9HZAqK034661; Sat, 9 Nov 2024 17:35:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9HZAYx034658; Sat, 9 Nov 2024 17:35:10 GMT (envelope-from git) Date: Sat, 9 Nov 2024 17:35:10 GMT Message-Id: <202411091735.4A9HZAYx034658@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f08746a7e319 - main - nvme: Pass malloc flags to request allocation functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f08746a7e3195a6e144e6f58003dc5c221d15d02 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f08746a7e3195a6e144e6f58003dc5c221d15d02 commit f08746a7e3195a6e144e6f58003dc5c221d15d02 Author: Mark Johnston AuthorDate: 2024-11-09 17:34:12 +0000 Commit: Mark Johnston CommitDate: 2024-11-09 17:34:12 +0000 nvme: Pass malloc flags to request allocation functions There are some contexts where it is safe to sleep, so we should pass M_WAITOK to ensure that a null pointer dereference can't happen. A few places allocate with M_NOWAIT but have no way to signal an error. Flag those with an XXX comment. PR: 276770 Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47307 --- sys/dev/nvme/nvme_ctrlr.c | 22 ++++++++++++++-------- sys/dev/nvme/nvme_ctrlr_cmd.c | 29 +++++++++++++++++++---------- sys/dev/nvme/nvme_ns_cmd.c | 24 +++++++++--------------- sys/dev/nvme/nvme_private.h | 26 +++++++++++++++----------- sys/dev/nvme/nvme_sim.c | 11 ++++++----- 5 files changed, 63 insertions(+), 49 deletions(-) diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c index 994994c3643f..29c165899f7f 100644 --- a/sys/dev/nvme/nvme_ctrlr.c +++ b/sys/dev/nvme/nvme_ctrlr.c @@ -820,7 +820,13 @@ nvme_ctrlr_construct_and_submit_aer(struct nvme_controller *ctrlr, struct nvme_request *req; aer->ctrlr = ctrlr; - req = nvme_allocate_request_null(nvme_ctrlr_async_event_cb, aer); + /* + * XXX-MJ this should be M_WAITOK but we might be in a non-sleepable + * callback context. AER completions should be handled on a dedicated + * thread. + */ + req = nvme_allocate_request_null(M_NOWAIT, nvme_ctrlr_async_event_cb, + aer); aer->req = req; /* @@ -1272,12 +1278,12 @@ nvme_ctrlr_passthrough_cmd(struct nvme_controller *ctrlr, goto err; } req = nvme_allocate_request_vaddr(buf->b_data, pt->len, - nvme_pt_done, pt); + M_WAITOK, nvme_pt_done, pt); } else req = nvme_allocate_request_vaddr(pt->buf, pt->len, - nvme_pt_done, pt); + M_WAITOK, nvme_pt_done, pt); } else - req = nvme_allocate_request_null(nvme_pt_done, pt); + req = nvme_allocate_request_null(M_WAITOK, nvme_pt_done, pt); /* Assume user space already converted to little-endian */ req->cmd.opc = pt->cmd.opc; @@ -1363,14 +1369,14 @@ nvme_ctrlr_linux_passthru_cmd(struct nvme_controller *ctrlr, ret = EFAULT; goto err; } - req = nvme_allocate_request_vaddr(buf->b_data, npc->data_len, - nvme_npc_done, npc); + req = nvme_allocate_request_vaddr(buf->b_data, + npc->data_len, M_WAITOK, nvme_npc_done, npc); } else req = nvme_allocate_request_vaddr( (void *)(uintptr_t)npc->addr, npc->data_len, - nvme_npc_done, npc); + M_WAITOK, nvme_npc_done, npc); } else - req = nvme_allocate_request_null(nvme_npc_done, npc); + req = nvme_allocate_request_null(M_WAITOK, nvme_npc_done, npc); req->cmd.opc = npc->opcode; req->cmd.fuse = npc->flags; diff --git a/sys/dev/nvme/nvme_ctrlr_cmd.c b/sys/dev/nvme/nvme_ctrlr_cmd.c index 68934b9b3947..993a7718356d 100644 --- a/sys/dev/nvme/nvme_ctrlr_cmd.c +++ b/sys/dev/nvme/nvme_ctrlr_cmd.c @@ -37,7 +37,7 @@ nvme_ctrlr_cmd_identify_controller(struct nvme_controller *ctrlr, void *payload, struct nvme_command *cmd; req = nvme_allocate_request_vaddr(payload, - sizeof(struct nvme_controller_data), cb_fn, cb_arg); + sizeof(struct nvme_controller_data), M_WAITOK, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_IDENTIFY; @@ -59,7 +59,7 @@ nvme_ctrlr_cmd_identify_namespace(struct nvme_controller *ctrlr, uint32_t nsid, struct nvme_command *cmd; req = nvme_allocate_request_vaddr(payload, - sizeof(struct nvme_namespace_data), cb_fn, cb_arg); + sizeof(struct nvme_namespace_data), M_WAITOK, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_IDENTIFY; @@ -79,7 +79,7 @@ nvme_ctrlr_cmd_create_io_cq(struct nvme_controller *ctrlr, struct nvme_request *req; struct nvme_command *cmd; - req = nvme_allocate_request_null(cb_fn, cb_arg); + req = nvme_allocate_request_null(M_WAITOK, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_CREATE_IO_CQ; @@ -103,7 +103,7 @@ nvme_ctrlr_cmd_create_io_sq(struct nvme_controller *ctrlr, struct nvme_request *req; struct nvme_command *cmd; - req = nvme_allocate_request_null(cb_fn, cb_arg); + req = nvme_allocate_request_null(M_WAITOK, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_CREATE_IO_SQ; @@ -127,7 +127,7 @@ nvme_ctrlr_cmd_delete_io_cq(struct nvme_controller *ctrlr, struct nvme_request *req; struct nvme_command *cmd; - req = nvme_allocate_request_null(cb_fn, cb_arg); + req = nvme_allocate_request_null(M_WAITOK, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_DELETE_IO_CQ; @@ -148,7 +148,7 @@ nvme_ctrlr_cmd_delete_io_sq(struct nvme_controller *ctrlr, struct nvme_request *req; struct nvme_command *cmd; - req = nvme_allocate_request_null(cb_fn, cb_arg); + req = nvme_allocate_request_null(M_WAITOK, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_DELETE_IO_SQ; @@ -171,7 +171,7 @@ nvme_ctrlr_cmd_set_feature(struct nvme_controller *ctrlr, uint8_t feature, struct nvme_request *req; struct nvme_command *cmd; - req = nvme_allocate_request_null(cb_fn, cb_arg); + req = nvme_allocate_request_null(M_WAITOK, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_SET_FEATURES; @@ -193,7 +193,7 @@ nvme_ctrlr_cmd_get_feature(struct nvme_controller *ctrlr, uint8_t feature, struct nvme_request *req; struct nvme_command *cmd; - req = nvme_allocate_request_null(cb_fn, cb_arg); + req = nvme_allocate_request_null(M_WAITOK, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_GET_FEATURES; @@ -259,7 +259,12 @@ nvme_ctrlr_cmd_get_log_page(struct nvme_controller *ctrlr, uint8_t log_page, struct nvme_request *req; struct nvme_command *cmd; - req = nvme_allocate_request_vaddr(payload, payload_size, cb_fn, cb_arg); + /* + * XXX-MJ this should be M_WAITOK but we might be called from AER + * completion processing, which is a non-sleepable context. + */ + req = nvme_allocate_request_vaddr(payload, payload_size, + M_NOWAIT, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_GET_LOG_PAGE; @@ -319,7 +324,11 @@ nvme_ctrlr_cmd_abort(struct nvme_controller *ctrlr, uint16_t cid, struct nvme_request *req; struct nvme_command *cmd; - req = nvme_allocate_request_null(cb_fn, cb_arg); + /* + * XXX-MJ this should be M_WAITOK, we do reset from non-sleepable + * context and abort commands as part of that. + */ + req = nvme_allocate_request_null(M_NOWAIT, cb_fn, cb_arg); cmd = &req->cmd; cmd->opc = NVME_OPC_ABORT; diff --git a/sys/dev/nvme/nvme_ns_cmd.c b/sys/dev/nvme/nvme_ns_cmd.c index 8cbeac025307..1bad9929cb09 100644 --- a/sys/dev/nvme/nvme_ns_cmd.c +++ b/sys/dev/nvme/nvme_ns_cmd.c @@ -36,8 +36,7 @@ nvme_ns_cmd_read(struct nvme_namespace *ns, void *payload, uint64_t lba, struct nvme_request *req; req = nvme_allocate_request_vaddr(payload, - lba_count*nvme_ns_get_sector_size(ns), cb_fn, cb_arg); - + lba_count * nvme_ns_get_sector_size(ns), M_NOWAIT, cb_fn, cb_arg); if (req == NULL) return (ENOMEM); @@ -56,11 +55,9 @@ nvme_ns_cmd_read_bio(struct nvme_namespace *ns, struct bio *bp, uint64_t lba; uint64_t lba_count; - req = nvme_allocate_request_bio(bp, cb_fn, cb_arg); - + req = nvme_allocate_request_bio(bp, M_NOWAIT, cb_fn, cb_arg); if (req == NULL) return (ENOMEM); - lba = bp->bio_offset / nvme_ns_get_sector_size(ns); lba_count = bp->bio_bcount / nvme_ns_get_sector_size(ns); nvme_ns_read_cmd(&req->cmd, ns->id, lba, lba_count); @@ -77,8 +74,7 @@ nvme_ns_cmd_write(struct nvme_namespace *ns, void *payload, uint64_t lba, struct nvme_request *req; req = nvme_allocate_request_vaddr(payload, - lba_count*nvme_ns_get_sector_size(ns), cb_fn, cb_arg); - + lba_count * nvme_ns_get_sector_size(ns), M_NOWAIT, cb_fn, cb_arg); if (req == NULL) return (ENOMEM); @@ -97,8 +93,7 @@ nvme_ns_cmd_write_bio(struct nvme_namespace *ns, struct bio *bp, uint64_t lba; uint64_t lba_count; - req = nvme_allocate_request_bio(bp, cb_fn, cb_arg); - + req = nvme_allocate_request_bio(bp, M_NOWAIT, cb_fn, cb_arg); if (req == NULL) return (ENOMEM); lba = bp->bio_offset / nvme_ns_get_sector_size(ns); @@ -118,8 +113,8 @@ nvme_ns_cmd_deallocate(struct nvme_namespace *ns, void *payload, struct nvme_command *cmd; req = nvme_allocate_request_vaddr(payload, - num_ranges * sizeof(struct nvme_dsm_range), cb_fn, cb_arg); - + num_ranges * sizeof(struct nvme_dsm_range), M_NOWAIT, cb_fn, + cb_arg); if (req == NULL) return (ENOMEM); @@ -141,8 +136,7 @@ nvme_ns_cmd_flush(struct nvme_namespace *ns, nvme_cb_fn_t cb_fn, void *cb_arg) { struct nvme_request *req; - req = nvme_allocate_request_null(cb_fn, cb_arg); - + req = nvme_allocate_request_null(M_NOWAIT, cb_fn, cb_arg); if (req == NULL) return (ENOMEM); @@ -165,8 +159,8 @@ nvme_ns_dump(struct nvme_namespace *ns, void *virt, off_t offset, size_t len) int i; status.done = FALSE; - req = nvme_allocate_request_vaddr(virt, len, nvme_completion_poll_cb, - &status); + req = nvme_allocate_request_vaddr(virt, len, M_NOWAIT, + nvme_completion_poll_cb, &status); if (req == NULL) return (ENOMEM); diff --git a/sys/dev/nvme/nvme_private.h b/sys/dev/nvme/nvme_private.h index dd7a849b6782..949e69ec9290 100644 --- a/sys/dev/nvme/nvme_private.h +++ b/sys/dev/nvme/nvme_private.h @@ -486,11 +486,14 @@ nvme_single_map(void *arg, bus_dma_segment_t *seg, int nseg, int error) } static __inline struct nvme_request * -_nvme_allocate_request(nvme_cb_fn_t cb_fn, void *cb_arg) +_nvme_allocate_request(const int how, nvme_cb_fn_t cb_fn, void *cb_arg) { struct nvme_request *req; - req = malloc(sizeof(*req), M_NVME, M_NOWAIT | M_ZERO); + KASSERT(how == M_WAITOK || how == M_NOWAIT, + ("nvme_allocate_request: invalid how %d", how)); + + req = malloc(sizeof(*req), M_NVME, how | M_ZERO); if (req != NULL) { req->cb_fn = cb_fn; req->cb_arg = cb_arg; @@ -501,11 +504,11 @@ _nvme_allocate_request(nvme_cb_fn_t cb_fn, void *cb_arg) static __inline struct nvme_request * nvme_allocate_request_vaddr(void *payload, uint32_t payload_size, - nvme_cb_fn_t cb_fn, void *cb_arg) + const int how, nvme_cb_fn_t cb_fn, void *cb_arg) { struct nvme_request *req; - req = _nvme_allocate_request(cb_fn, cb_arg); + req = _nvme_allocate_request(how, cb_fn, cb_arg); if (req != NULL) { req->payload = memdesc_vaddr(payload, payload_size); req->payload_valid = true; @@ -514,20 +517,21 @@ nvme_allocate_request_vaddr(void *payload, uint32_t payload_size, } static __inline struct nvme_request * -nvme_allocate_request_null(nvme_cb_fn_t cb_fn, void *cb_arg) +nvme_allocate_request_null(const int how, nvme_cb_fn_t cb_fn, void *cb_arg) { struct nvme_request *req; - req = _nvme_allocate_request(cb_fn, cb_arg); + req = _nvme_allocate_request(how, cb_fn, cb_arg); return (req); } static __inline struct nvme_request * -nvme_allocate_request_bio(struct bio *bio, nvme_cb_fn_t cb_fn, void *cb_arg) +nvme_allocate_request_bio(struct bio *bio, const int how, nvme_cb_fn_t cb_fn, + void *cb_arg) { struct nvme_request *req; - req = _nvme_allocate_request(cb_fn, cb_arg); + req = _nvme_allocate_request(how, cb_fn, cb_arg); if (req != NULL) { req->payload = memdesc_bio(bio); req->payload_valid = true; @@ -536,16 +540,16 @@ nvme_allocate_request_bio(struct bio *bio, nvme_cb_fn_t cb_fn, void *cb_arg) } static __inline struct nvme_request * -nvme_allocate_request_ccb(union ccb *ccb, nvme_cb_fn_t cb_fn, void *cb_arg) +nvme_allocate_request_ccb(union ccb *ccb, const int how, nvme_cb_fn_t cb_fn, + void *cb_arg) { struct nvme_request *req; - req = _nvme_allocate_request(cb_fn, cb_arg); + req = _nvme_allocate_request(how, cb_fn, cb_arg); if (req != NULL) { req->payload = memdesc_ccb(ccb); req->payload_valid = true; } - return (req); } diff --git a/sys/dev/nvme/nvme_sim.c b/sys/dev/nvme/nvme_sim.c index 8bdeb4be49f3..4974bb718222 100644 --- a/sys/dev/nvme/nvme_sim.c +++ b/sys/dev/nvme/nvme_sim.c @@ -96,15 +96,16 @@ nvme_sim_nvmeio(struct cam_sim *sim, union ccb *ccb) /* SG LIST ??? */ if ((nvmeio->ccb_h.flags & CAM_DATA_MASK) == CAM_DATA_BIO) req = nvme_allocate_request_bio((struct bio *)payload, - nvme_sim_nvmeio_done, ccb); + M_NOWAIT, nvme_sim_nvmeio_done, ccb); else if ((nvmeio->ccb_h.flags & CAM_DATA_SG) == CAM_DATA_SG) - req = nvme_allocate_request_ccb(ccb, nvme_sim_nvmeio_done, ccb); + req = nvme_allocate_request_ccb(ccb, M_NOWAIT, + nvme_sim_nvmeio_done, ccb); else if (payload == NULL) - req = nvme_allocate_request_null(nvme_sim_nvmeio_done, ccb); + req = nvme_allocate_request_null(M_NOWAIT, nvme_sim_nvmeio_done, + ccb); else - req = nvme_allocate_request_vaddr(payload, size, + req = nvme_allocate_request_vaddr(payload, size, M_NOWAIT, nvme_sim_nvmeio_done, ccb); - if (req == NULL) { nvmeio->ccb_h.status = CAM_RESRC_UNAVAIL; xpt_done(ccb); From nobody Sat Nov 9 19:37:33 2024 X-Original-To: dev-commits-src-all@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 4Xm5gK4c5gz5cZFr; Sat, 09 Nov 2024 19:37:33 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm5gK45hRz4Z3v; Sat, 9 Nov 2024 19:37:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731181053; 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=kLoOG6/Ha4DHfFblwGSFwytNFur3JIy/x3hnh6SeaT4=; b=iKN60pj9Gr2StWNZU8regDP5FsMY0eVlHMuBgK2djn/KOghjPAKPzKfam+adxD2hEDXxpl iKgyyDNtMKqfLr9x99/lpIY73U0Kw5FwIAvu1nW+Irz/ijoqZSaJt/w8BbK4/hr7G0cBWc dHb80B5odlmnrcZw4UyQWZ1Mt7AdmQQk0eVHpuLlIPdX/r6PbOv5epsEp0KcJVKbaO2iPg ja+5vGnm5+gmldLnDpBBrtihGyDjVL9Z7Fdi0LfTs+XkNleGOR62pxwWaSJZ5MCb8Kq5gV k4qmxTmg+Bz85IXmE2rhuGTlHOuICOUFC5/n7bPSihaZHF4vujek01YekQyJuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731181053; 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=kLoOG6/Ha4DHfFblwGSFwytNFur3JIy/x3hnh6SeaT4=; b=jPd0Yby7ZElayUjKEPO0d1CVKR+D5a3+ylBUXCQboEcBuKA61BeQtYl9eAcl/Use28VibQ VgyQnbfehbMoNovYOUzvpjTNOP0wpuyXTInI+jfw1nENuyYERdQjN+NY+0H8LNAhizA01C nLq9KG81rsj9So1PS+et4ahiERj7PmdpY8pQGgJ2PxAvOy0ZcsYy8GGbnPr13gG4Czq6G2 Hlo3NQFLw6RnJtIQedlYOW8t18Mb6FAbU5JZKf5X+B1w20bmFsZuu2crrA3ma56hnh5sXD OizocLtypsSSsfKgZtJJDqUZtOv4WfCQ3NSUO51dfpSbLvo1CcJdiuiM2rgUGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731181053; a=rsa-sha256; cv=none; b=U0abaDU2E4s/egqm7WCPhArOH+fP+DJmnF7cs8YFDblPDO9omL/ikRzdDaJQZoJ9XvyJJJ y2dRNngLtlg1ZM9sTsY5MdG/QOL8RXB6KXDY4HHwYs7lFEQDElYvVwbo3o/J5sNchkf3A/ R5ss8N5BYJJja1N9cw81GaFg7SrO6YBswxTtNu9S6M6UHCGxmvCvtoeB5lZq+RRvR9Ri0y NK0G0Jvyil3enochjpdfPOVzLHta8j59xUJ3zpvpsPxKdT/F0LSbRIPiTsVlrxM2obj6sH Am+KUzlJnZg7nC1+2PecSk6uhWZchWaJwSBNcuwW89KoIcIcEdWaW+GMmkXkSg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm5gK3YfYz1Qk5; Sat, 9 Nov 2024 19:37:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9JbXCF057682; Sat, 9 Nov 2024 19:37:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9JbXk0057679; Sat, 9 Nov 2024 19:37:33 GMT (envelope-from git) Date: Sat, 9 Nov 2024 19:37:33 GMT Message-Id: <202411091937.4A9JbXk0057679@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Moore Subject: git: f3895e983ce8 - main - vm_radix: Add iter lookup_le interface List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f3895e983ce82474e3ae5825baa295ec1c923203 Auto-Submitted: auto-generated The branch main has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=f3895e983ce82474e3ae5825baa295ec1c923203 commit f3895e983ce82474e3ae5825baa295ec1c923203 Author: Doug Moore AuthorDate: 2024-11-09 19:32:58 +0000 Commit: Doug Moore CommitDate: 2024-11-09 19:32:58 +0000 vm_radix: Add iter lookup_le interface Add a function to the vm_radix interface to lookup the greatest page less than or equal to some given page. Reviewed by: alc Differential Revision: https://reviews.freebsd.org/D47046 --- sys/vm/vm_radix.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys/vm/vm_radix.h b/sys/vm/vm_radix.h index e1f7323dd205..561e36f2e164 100644 --- a/sys/vm/vm_radix.h +++ b/sys/vm/vm_radix.h @@ -257,6 +257,19 @@ vm_radix_iter_step(struct pctrie_iter *pages) return (VM_RADIX_PCTRIE_ITER_STEP_GE(pages)); } +/* + * Initialize an iterator pointing to the page with the greatest pindex that is + * less than or equal to the specified pindex, or NULL if there are no such + * pages. Return the page. + * + * Requires that access be externally synchronized by a lock. + */ +static __inline vm_page_t +vm_radix_iter_lookup_le(struct pctrie_iter *pages, vm_pindex_t index) +{ + return (VM_RADIX_PCTRIE_ITER_LOOKUP_LE(pages, index)); +} + /* * Update the iterator to point to the page with the pindex that is one greater * than the current pindex, or NULL if there is no such page. Return the page. From nobody Sat Nov 9 20:04:53 2024 X-Original-To: dev-commits-src-all@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 4Xm6Gt0HMxz5cbr6; Sat, 09 Nov 2024 20:04:54 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6Gs6d5gz4cL7; Sat, 9 Nov 2024 20:04:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731182693; 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=rVTiPJBlVWQQ7zicuqGWpwFooixYdGmT//sopLPuV4Q=; b=QBnK/5dNWj8MN4KcCNjaiBZTX8bT6+paoHkzrQ1Cgc51D5M60EP8tBIV75qqUjnwxVKfqU Kbr6TqapUl5TEH/TAn8zSUxICXBBMiQpMdTC8I1XJ2w1vdJXMCQrTxdI4kug2GfSbBrWoK oXwrZKmq8l9z5SPLkZfC+Ur7bRc0rV3BoBwQt5Y8cc5iHjWGinokJIym/AomM7kbYVAlEs O8XgfkOa6w0crsUF5z5jZwFkdZRpQ2uQzejCYsd2XRUPB4iDw9edhX25YBjsu1YKoEHBFL zFTQQTz7/LyYzhIiu/D3Z5naY7iWh9+fMzL9NtyHApohwBa7b3Od5isM9aBKRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731182693; 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=rVTiPJBlVWQQ7zicuqGWpwFooixYdGmT//sopLPuV4Q=; b=Wpj2ud0yldeXrCsyD/dpmKTfiQlYqLMK1x25FkKp4LOXJvj0iN05ZLjeP1evIgjr/DW4yx X24wCDCEt6jOAIjQQ7kfCOexajOadkO8tb2jtOzCmFWnY3pylaZleSAe4/TRoPPlwOD++x infXFGqL0jIuyw8gb26gWVqip6koQgG2M4U7yqBRs1Gg6spAllcG85CQqz2bar8FykjljO b3hGQGF/ULipaaujlBIl6b/PxeNk+HTK9N06h90saNC381+WM6VLZV97wI9txX7co3MStK QbbTnJLvzF0EyiD6rTBDecI3WOqGmNyahx2wUJ3q/TIgJJxT9MGzvh7/J2FTXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731182693; a=rsa-sha256; cv=none; b=AL0ouUBJhrHw2R/FxgKCj9Ug8EGtco931jkci3lS8ImRfijpQ3NgF/jyTbMsAwktETBhfP KtcAuTbSAGnh2cZBNhaIhV9tVM8GwHwcfpmuEnO16/xBTKxweqfp5LVIZA6HuFfXEYOTNe tV9qDpU/jV14EpD1nnpZOYfujJiVYp7uixD+9D1AUwaJLYmdC15+vugzYNGInk3BDcXNSv S/K9WXlOUp74CdPNjQapoaDiERQjxMqoPj/sntmweUtz5ZZTlOWyhEYnOAFvHvWsZ22Jin sh1DmPxEe2Lfmq1nC06MOdtdhNCbVapIiJNUSiNIo9qCmLf/qCHE0MDy12M0Ww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6Gs61PKz1R9f; Sat, 9 Nov 2024 20:04:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9K4rYl013313; Sat, 9 Nov 2024 20:04:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9K4rvW013310; Sat, 9 Nov 2024 20:04:53 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:04:53 GMT Message-Id: <202411092004.4A9K4rvW013310@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f7c45c012201 - main - nvmecontrol tests: Fix nvmecontrol usage in a couple of tests List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f7c45c012201aff52a83c45c1ba516a855b11ed9 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f7c45c012201aff52a83c45c1ba516a855b11ed9 commit f7c45c012201aff52a83c45c1ba516a855b11ed9 Author: Mark Johnston AuthorDate: 2024-11-09 19:59:46 +0000 Commit: Mark Johnston CommitDate: 2024-11-09 20:04:04 +0000 nvmecontrol tests: Fix nvmecontrol usage in a couple of tests nvmecontrol {admin,io}-passthru's -r option doesn't take an argument, so the tests which added one failed because they tried to open /dev/0. MFC after: 1 week --- sbin/nvmecontrol/tests/basic.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sbin/nvmecontrol/tests/basic.sh b/sbin/nvmecontrol/tests/basic.sh index f4a6b9504a3e..83b74721c66b 100755 --- a/sbin/nvmecontrol/tests/basic.sh +++ b/sbin/nvmecontrol/tests/basic.sh @@ -94,11 +94,11 @@ admin_passthru_head() admin_passthru_body() { if [ -c "${TEST_DEV_PATH}" ] ; then - atf_check -o not-empty -e empty nvmecontrol admin-passthru --opcode=06 --data-len=4096 --cdw10=1 -r 0 ${TEST_DEV} + atf_check -o not-empty -e empty nvmecontrol admin-passthru --opcode=06 --data-len=4096 --cdw10=1 -r ${TEST_DEV} else - atf_check -s not-exit:0 -o empty -e not-empty nvmecontrol admin-passthru --opcode=06 --data-len=4096 --cdw10=1 -r 0 ${TEST_DEV} + atf_check -s not-exit:0 -o empty -e not-empty nvmecontrol admin-passthru --opcode=06 --data-len=4096 --cdw10=1 -r ${TEST_DEV} fi - atf_check -s not-exit:0 -o ignore -e match:"${INV_OPT_MSG}" nvmecontrol admin-passthru ${INV_OPT} --opcode=06 --data-len=4096 --cdw10=1 -r 0 ${TEST_DEV} + atf_check -s not-exit:0 -o ignore -e match:"${INV_OPT_MSG}" nvmecontrol admin-passthru ${INV_OPT} --opcode=06 --data-len=4096 --cdw10=1 -r ${TEST_DEV} } atf_test_case devlist @@ -142,11 +142,11 @@ io_passthru_head() io_passthru_body() { if [ -c "${TEST_DEV_PATH}" ] ; then - atf_check -o not-empty -e empty nvmecontrol io-passthru --opcode=02 --data-len=4096 --cdw10=0 --cdw11=0 --cdw12=0x70000 -r 0 nvme0 ${TEST_DEV} + atf_check -o not-empty -e empty nvmecontrol io-passthru --opcode=02 --data-len=4096 --cdw10=0 --cdw11=0 --cdw12=0x70000 -r nvme0 ${TEST_DEV} else - atf_check -s not-exit:0 -o empty -e not-empty nvmecontrol io-passthru --opcode=02 --data-len=4096 --cdw10=0 --cdw11=0 --cdw12=0x70000 -r 0 nvme0 ${TEST_DEV} + atf_check -s not-exit:0 -o empty -e not-empty nvmecontrol io-passthru --opcode=02 --data-len=4096 --cdw10=0 --cdw11=0 --cdw12=0x70000 -r nvme0 ${TEST_DEV} fi - atf_check -s not-exit:0 -o ignore -e match:"${INV_OPT_MSG}" nvmecontrol io-passthru ${INV_OPT} --opcode=02 --data-len=4096 --cdw10=0 --cdw11=0 --cdw12=0x70000 -r 0 nvme0 ${TEST_DEV} + atf_check -s not-exit:0 -o ignore -e match:"${INV_OPT_MSG}" nvmecontrol io-passthru ${INV_OPT} --opcode=02 --data-len=4096 --cdw10=0 --cdw11=0 --cdw12=0x70000 -r nvme0 ${TEST_DEV} } atf_test_case logpage From nobody Sat Nov 9 20:19:13 2024 X-Original-To: dev-commits-src-all@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 4Xm6bP4hTBz5ccfx; Sat, 09 Nov 2024 20:19:13 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6bP4Gkzz4f7m; Sat, 9 Nov 2024 20:19:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183553; 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=Te/bOnpSNmcvJqeTokQW3oQVWxkfNO/EFY7PF6gdwmY=; b=m1QfCvwKirTWVbxzftCHUMKlZ86g29d8gVLdoUdYPYbTcvKUUsafowPDZBtjBJFGeezn3o Dp7I5HrV5ejLhzqznXmurCy/TCuOd/y9gT+vV94YgxRQEaRtbQ2vJugKxS7X6omOxthEAH Sybxoead+msstI9biR5k04yR8OUXq/ChBLz1+7xSogfgIjhYBrilPWEuwkPUARJ5VBOm5w n83ad1we1X/lSfDqzqVyQZJURMjNYHYRQZ1E3Ny5gAX9apEiWgce+rln4wufHtoST6tlJE QxzxRMdeU7fX/7slrmn3nNoRCO7vJuGeGXviTjcaWjTEyBCln9tC3ULUmwqHIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183553; 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=Te/bOnpSNmcvJqeTokQW3oQVWxkfNO/EFY7PF6gdwmY=; b=kOTwn6N0wBcPxbhrpeGKcxtUZGVi4DOfF7eD0bRHOhiP3VcAqtRsLYKJqBVI2bKy/YTmRC gcGARpwZJsKCldDfrt1ZTXdMFKydKHH/2swJZoYThV9rng+d8Q8LG3J5Hr/VbQDiOfSCO5 vIQqWDPErvMyUTodVBwDkHvPYXH3XDfM5FeYB7NgWqPi33LAZrUTmImQLL0OlW/NVJ3nb3 Vi/wKWdIT8rLZLQ30S4pGptEQMaNLIF3Ix2krgVKDww/4G4/1538lvs6XGkJf/J7HbNjYt bXl7w2tbWKjLrfpmiWOB3OMrXoQR+jeJTjAaavWpWmdNtFhiPzn8ri4XpDWLew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731183553; a=rsa-sha256; cv=none; b=pBWCkukMJAab9XxicR/SeEeWPkgoTv3at8oFA/+bqljCCPK+lisT6c0hsLo0Ia+CILMoas WRJ4nY7VuJANLBFT8tHxG8HCwzhaBeUjgi1AdH3NTz/ZhcabHLdoNOMi1UXxMLKSKGiZqe dV7GVVCGBEFvd/yHqMPC2yQ2Ia22RVDEJfG256wf272Lq5u1cPqI11Hg+s3gHsgIXd/u9K LyOBWwKQLmxrQ8E8/PkBG0DBwBtJVMTWD2eEsDS/KHzjBjn6VHR+lfmZxuIYnsliTGn9OI yVxPJ6bwrLkfGB/nSq3pNlw35ReYjm61E/+9n8TloHC7gm6Izt05aL4eQ3nnYg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6bP3sspz1RbQ; Sat, 9 Nov 2024 20:19:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9KJDR7033396; Sat, 9 Nov 2024 20:19:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9KJDll033393; Sat, 9 Nov 2024 20:19:13 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:19:13 GMT Message-Id: <202411092019.4A9KJDll033393@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d4e318edeccc - stable/14 - x86/iommu/amd_reg.h: AMD IOMMU registers definitions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d4e318edeccc81f36855a30b26a3569b7490ff2c Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d4e318edeccc81f36855a30b26a3569b7490ff2c commit d4e318edeccc81f36855a30b26a3569b7490ff2c Author: Konstantin Belousov AuthorDate: 2024-04-12 04:23:13 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:04:18 +0000 x86/iommu/amd_reg.h: AMD IOMMU registers definitions (cherry picked from commit 0a9bec17447c1256b046a03dbf5cd40ced437b56) --- sys/x86/iommu/amd_reg.h | 746 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 746 insertions(+) diff --git a/sys/x86/iommu/amd_reg.h b/sys/x86/iommu/amd_reg.h new file mode 100644 index 000000000000..33f744c65cc6 --- /dev/null +++ b/sys/x86/iommu/amd_reg.h @@ -0,0 +1,746 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2024 The FreeBSD Foundation + * + * This software was developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef __X86_IOMMU_AMD_REG_H +#define __X86_IOMMU_AMD_REG_H + +/* + * MMIO Registers. Offsets and bits definitions. + */ + +#define AMDIOMMU_DEVTAB_BASE 0x0000 +#define AMDIOMMU_CMDBUF_BASE 0x0008 +#define AMDIOMMU_EVNTLOG_BASE 0x0010 +#define AMDIOMMU_CTRL 0x0018 +#define AMDIOMMU_EXCL_BASE 0x0020 +#define AMDIOMMU_EXCL_RANGE 0x0028 +#define AMDIOMMU_EFR 0x0030 +#define AMDIOMMU_PPRLOG_BASE 0x0038 +#define AMDIOMMU_HWEV_UPPER 0x0040 +#define AMDIOMMU_HWEV_LOWER 0x0048 +#define AMDIOMMU_HWEV_STATUS 0x0050 + +#define AMDIOMMU_SMIF_0 0x0060 +#define AMDIOMMU_SMIF_1 0x0068 +#define AMDIOMMU_SMIF_2 0x0070 +#define AMDIOMMU_SMIF_3 0x0078 +#define AMDIOMMU_SMIF_4 0x0080 +#define AMDIOMMU_SMIF_5 0x0088 +#define AMDIOMMU_SMIF_6 0x0090 +#define AMDIOMMU_SMIF_7 0x0098 +#define AMDIOMMU_SMIF_8 0x00a0 +#define AMDIOMMU_SMIF_9 0x00a8 +#define AMDIOMMU_SMIF_10 0x00b0 +#define AMDIOMMU_SMIF_11 0x00b8 +#define AMDIOMMU_SMIF_12 0x00c0 +#define AMDIOMMU_SMIF_13 0x00c8 +#define AMDIOMMU_SMIF_14 0x00d0 +#define AMDIOMMU_SMIF_15 0x00d8 + +#define AMDIOMMU_VAPIC_LOG_BASE 0x00e0 +#define AMDIOMMU_VAPIC_LOG_TAIL 0x00e8 +#define AMDIOMMU_PPRLOGB_BASE 0x00f0 +#define AMDIOMMU_EVNTLOGB_BASE 0x00f0 + +#define AMDIOMMU_DEVTAB_S1_BASE 0x0100 +#define AMDIOMMU_DEVTAB_S2_BASE 0x0108 +#define AMDIOMMU_DEVTAB_S3_BASE 0x0110 +#define AMDIOMMU_DEVTAB_S4_BASE 0x0118 +#define AMDIOMMU_DEVTAB_S5_BASE 0x0120 +#define AMDIOMMU_DEVTAB_S6_BASE 0x0128 +#define AMDIOMMU_DEVTAB_S7_BASE 0x0130 + +#define AMDIOMMU_DSFX 0x0138 +#define AMDIOMMU_DSCX 0x0140 +#define AMDIOMMU_DSSX 0x0148 + +#define AMDIOMMU_MSI_VEC0 0x0150 +#define AMDIOMMU_MSI_VEC1 0x0154 +#define AMDIOMMU_MSI_CAP_H 0x0158 +#define AMDIOMMU_MSI_ADDR_LOW 0x015c +#define AMDIOMMU_MSI_ADDR_HIGH 0x0160 +#define AMDIOMMU_MSI_DATA 0x0164 +#define AMDIOMMU_MSI_MAPCAP 0x0168 + +#define AMDIOMMU_PERFOPT 0x016c + +#define AMDIOMMU_x2APIC_CTRL 0x0170 +#define AMDIOMMU_PPRI_CTRL 0x0178 +#define AMDIOMMU_GALOGI_CTRL 0x0180 + +#define AMDIOMMU_vIOMMU_STATUS 0x0190 + +#define AMDIOMMU_MARC0_BASE 0x0200 +#define AMDIOMMU_MARC0_RELOC 0x0208 +#define AMDIOMMU_MARC0_LEN 0x0210 +#define AMDIOMMU_MARC1_BASE 0x0218 +#define AMDIOMMU_MARC1_RELOC 0x0220 +#define AMDIOMMU_MARC1_LEN 0x0228 +#define AMDIOMMU_MARC2_BASE 0x0230 +#define AMDIOMMU_MARC2_RELOC 0x0238 +#define AMDIOMMU_MARC2_LEN 0x0240 +#define AMDIOMMU_MARC3_BASE 0x0248 +#define AMDIOMMU_MARC3_RELOC 0x0250 +#define AMDIOMMU_MARC3_LEN 0x0258 + +#define AMDIOMMU_EFR2 0x01a0 + +#define AMDIOMMU_CMDBUF_HEAD 0x2000 +#define AMDIOMMU_CMDBUF_TAIL 0x2008 +#define AMDIOMMU_EVNTLOG_HEAD 0x2010 +#define AMDIOMMU_EVNTLOG_TAIL 0x2018 +#define AMDIOMMU_CMDEV_STATUS 0x2020 +#define AMDIOMMU_PPRLOG_HEAD 0x2030 +#define AMDIOMMU_PPRLOG_TAIL 0x2038 +#define AMDIOMMU_vAPICLOG_HEAD 0x2040 +#define AMDIOMMU_vAPICLOG_TAIL 0x2048 +#define AMDIOMMU_PPRLOGB_HEAD 0x2050 +#define AMDIOMMU_PPRLOGB_TAIL 0x2058 +#define AMDIOMMU_EVNTLOGB_HEAD 0x2070 +#define AMDIOMMU_EVNTLOGB_TAIL 0x2078 +#define AMDIOMMU_PPRLOG_AUR 0x2080 +#define AMDIOMMU_PPRLOG_EAI 0x2088 +#define AMDIOMMU_PPRLOGB_AUR 0x2090 + +/* + * IOMMU Control Register AMDIOMMU_CTRL fields + */ +#define AMDIOMMU_CTRL_EN 0x0000000000000001ull /* IOMMU En */ +#define AMDIOMMU_CTRL_HTTUN_EN 0x0000000000000002ull /* HT Tun Trans En */ +#define AMDIOMMU_CTRL_EVNTLOG_EN 0x0000000000000004ull /* Event Log En */ +#define AMDIOMMU_CTRL_EVENTINT_EN 0x0000000000000008ull /* Event Log Intr En */ +#define AMDIOMMU_CTRL_COMWINT_EN 0x0000000000000010ull /* Compl Wait Intr En */ +#define AMDIOMMU_CTRL_INVTOUT_MASK 0x00000000000000e0ull /* IOTLB Inv Timeout*/ +#define AMDIOMMU_CTRL_INVTOUT_NO 0x0000000000000000ull +#define AMDIOMMU_CTRL_INVTOUT_1MS 0x0000000000000020ull +#define AMDIOMMU_CTRL_INVTOUT_10MS 0x0000000000000040ull +#define AMDIOMMU_CTRL_INVTOUT_100MS 0x0000000000000060ull +#define AMDIOMMU_CTRL_INVTOUT_1S 0x0000000000000080ull +#define AMDIOMMU_CTRL_INVTOUT_10S 0x00000000000000a0ull +#define AMDIOMMU_CTRL_INVTOUT_100S 0x00000000000000b0ull +#define AMDIOMMU_CTRL_INVTOUT_RSRV 0x00000000000000e0ull +#define AMDIOMMU_CTRL_PASSPW 0x0000000000000100ull /* HT Pass Posted Wr */ +#define AMDIOMMU_CTRL_REPASSPW 0x0000000000000200ull /* HT Resp Pass Posted Wr */ +#define AMDIOMMU_CTRL_COHERENT 0x0000000000000400ull /* HT Coherent Reads */ +#define AMDIOMMU_CTRL_ISOC 0x0000000000000800ull /* HT Isoc Reads */ +#define AMDIOMMU_CTRL_CMDBUF_EN 0x0000000000001000ull /* Start CMD proc En */ +#define AMDIOMMU_CTRL_PPRLOG_EN 0x0000000000002000ull /* Periph Page Req Log En */ +#define AMDIOMMU_CTRL_PPRINT_EN 0x0000000000004000ull /* Periph Page Req Intr En */ +#define AMDIOMMU_CTRL_PPR_EN 0x0000000000008000ull /* Periph Page Req En */ +#define AMDIOMMU_CTRL_GT_EN 0x0000000000010000ull /* Guest En */ +#define AMDIOMMU_CTRL_GA_EN 0x0000000000020000ull /* Guest vAPIC En */ +#define AMDIOMMU_CTRL_SMIF_EN 0x0000000000400000ull /* SMI Filter En */ +#define AMDIOMMU_CTRL_SLFWB_DIS 0x0000000000800000ull /* Self WriteBack Dis */ +#define AMDIOMMU_CTRL_SMIFLOG_EN 0x0000000001000000ull /* SMI Filter Log En */ +#define AMDIOMMU_CTRL_GAM_EN_MASK 0x000000000e000000ull /* Guest vAPIC Mode En */ +#define AMDIOMMU_CTRL_GAM_EN_vAPIC_GM0 0x0000000000000000ull /* IRTE.GM = 0 */ +#define AMDIOMMU_CTRL_GAM_EN_vAPIC_GM1 0x0000000002000000ull /* IRTE.GM = 1 */ +#define AMDIOMMU_CTRL_GALOG_EN 0x0000000010000000ull /* Guest vAPIC GA Log En */ +#define AMDIOMMU_CTRL_GAINT_EN 0x0000000020000000ull /* Guest vAPIC GA Intr En */ +#define AMDIOMMU_CTRL_DUALPPRLOG_MASK 0x00000000c0000000ull /* Dual Periph Page Req Log En */ +#define AMDIOMMU_CTRL_DUALPPRLOG_A 0x0000000000000000ull /* Use Log A */ +#define AMDIOMMU_CTRL_DUALPPRLOG_B 0x0000000040000000ull /* Use Log B */ +#define AMDIOMMU_CTRL_DUALPPRLOG_SWAP 0x0000000080000000ull /* Auto-swap on full */ +#define AMDIOMMU_CTRL_DUALPPRLOG_RSRV 0x00000000c0000000ull +#define AMDIOMMU_CTRL_DUALEVNTLOG_MASK 0x0000000300000000ull /* Dual Event Log En */ +#define AMDIOMMU_CTRL_DUALEVNTLOG_A 0x0000000000000000ull /* Use Log A Buf */ +#define AMDIOMMU_CTRL_DUALEVNTLOG_B 0x0000000100000000ull /* Use Log B Buf */ +#define AMDIOMMU_CTRL_DUALEVNTLOG_SWAP 0x0000000200000000ull /* Auto-swap on full */ +#define AMDIOMMU_CTRL_DUALEVNTLOG_RSRV 0x0000000300000000ull +#define AMDIOMMU_CTRL_DEVTABSEG_MASK 0x0000001c00000000ull /* Dev Table Segm */ +#define AMDIOMMU_CTRL_DEVTABSEG_1 0x0000000000000000ull /* 1 Segment */ +#define AMDIOMMU_CTRL_DEVTABSEG_2 0x0000000400000000ull /* 2 Segments */ +#define AMDIOMMU_CTRL_DEVTABSEG_4 0x0000000800000000ull /* 4 Segments */ +#define AMDIOMMU_CTRL_DEVTABSEG_8 0x0000000c00000000ull /* 8 Segments */ +#define AMDIOMMU_CTRL_PRIVABRT_MASK 0x0000006000000000ull /* Privilege Abort En */ +#define AMDIOMMU_CTRL_PRIVABRT_USR 0x0000000000000000ull /* Privilege Abort User */ +#define AMDIOMMU_CTRL_PRIVABRT_ALL 0x0000002000000000ull /* Privilege Abort Always */ +#define AMDIOMMU_CTRL_PPRAUTORSP_EN 0x0000008000000000ull /* PPR Auto Resp En */ +#define AMDIOMMU_CTRL_MARC_EN 0x0000010000000000ull /* Memory Addr Routing En */ +#define AMDIOMMU_CTRL_BLKSTOPMRK_EN 0x0000020000000000ull /* Block StopMark En */ +#define AMDIOMMU_CTRL_PPRAUTORESPA_EN 0x0000040000000000ull /* PPR Auto Resp Always En */ +#define AMDIOMMU_CTRL_EPH_EN 0x0000200000000000ull /* Enh PPR Handling En */ +#define AMDIOMMU_CTRL_HADUP_MASK 0x0000c00000000000ull /* Access and Dirty in host PT */ +#define AMDIOMMU_CTRL_GDUP_DIS 0x0001000000000000ull /* Dis Dirty in guest PT */ +#define AMDIOMMU_CTRL_XT_EN 0x0004000000000000ull /* x2APIC mode */ +#define AMDIOMMU_CTRL_INTCAPXT_EN 0x0008000000000000ull /* x2APIC mode for IOMMU intrs */ +#define AMDIOMMU_CTRL_vCMD_EN 0x0010000000000000ull /* vCMD buffer proc En */ +#define AMDIOMMU_CTRL_vIOMMU_EN 0x0020000000000000ull /* vIOMMU En */ +#define AMDIOMMU_CTRL_GAUP_DIS 0x0040000000000000ull /* Dis Access in guest PT */ +#define AMDIOMMU_CTRL_GAPPI_EN 0x0080000000000000ull /* Guest APIC phys proc intr En */ +#define AMDIOMMU_CTRL_TMPM_EN 0x0100000000000000ull /* Tiered Mem Page Migration En */ +#define AMDIOMMU_CTRL_GGCR3TRP_PHYS 0x0400000000000000ull /* GCR3 is GPA (otherwise SPA) */ +#define AMDIOMMU_CTRL_IRTCACHE_DIS 0x0800000000000000ull /* IRT Caching Dis */ +#define AMDIOMMU_CTRL_GSTBUFTRP_MODE 0x1000000000000000ull /* See spec */ +#define AMDIOMMU_CTRL_SNPAVIC_MASK 0xe000000000000000ull /* MBZ */ + +/* + * IOMMU Extended Feature Register AMDIOMMU_EFR fields + */ +#define AMDIOMMU_EFR_XT_SUP 0x0000000000000004ull /* x2APIC */ +#define AMDIOMMU_EFR_HWEV_SUP 0x0000000000000100ull /* HW Event regs */ +#define AMDIOMMU_EFR_PC_SUP 0x0000000000000200ull /* Perf counters */ +#define AMDIOMMU_EFR_HATS_MASK 0x0000000000000c00ull /* Host Addr Trans Size */ +#define AMDIOMMU_EFR_HATS_4LVL 0x0000000000000000ull +#define AMDIOMMU_EFR_HATS_5LVL 0x0000000000000400ull +#define AMDIOMMU_EFR_HATS_6LVL 0x0000000000000800ull +#define AMDIOMMU_EFR_DEVTBLSEG_MASK 0x000000c000000000ull /* DevTbl segmentation */ +#define AMDIOMMU_EFR_DEVTBLSEG_SHIFT 38 + +/* IOMMU Command Pointers (Head/Tail) registers fields */ +#define AMDIOMMU_CMDPTR_MASK 0x000000000007fff0ull + +/* IOMMU Command Buffer Base fields */ +#define AMDIOMMU_CMDBUF_BASE_SZSHIFT 56 /* Shift for size */ +#define AMDIOMMU_CMDBUF_MAX (512 * 1024) + +/* IOMMU Event Log Base register fields */ +#define AMDIOMMU_EVNTLOG_BASE_SZSHIFT 56 /* Shift for size */ +#define AMDIOMMU_EVNTLOG_MIN 256 +#define AMDIOMMU_EVNTLOG_MAX 32768 + +/* IOMMU Hardware Event Status register fields */ +#define AMDIOMMU_HWEVS_HEV 0x00000001 /* HW Ev Valid */ +#define AMDIOMMU_HWEVS_HEO 0x00000002 /* HW Ev Overfl */ + +/* + * IOMMU Command and Event Status register fields. + * From the spec, all defined bits are either RO or RW1C. As a consequence, + * single bit can be safely written to the register to clean a specific + * condition. + */ +#define AMDIOMMU_CMDEVS_EVOVRFLW 0x00000001 +#define AMDIOMMU_CMDEVS_EVLOGINT 0x00000002 +#define AMDIOMMU_CMDEVS_COMWAITINT 0x00000004 +#define AMDIOMMU_CMDEVS_EVLOGRUN 0x00000008 +#define AMDIOMMU_CMDEVS_CMDBUFRUN 0x00000010 +#define AMDIOMMU_CMDEVS_PPROVRFLW 0x00000020 +#define AMDIOMMU_CMDEVS_PPRINT 0x00000040 +#define AMDIOMMU_CMDEVS_PPRLOGRUN 0x00000080 +#define AMDIOMMU_CMDEVS_GALOGRUN 0x00000100 +#define AMDIOMMU_CMDEVS_GALOVRFLW 0x00000200 +#define AMDIOMMU_CMDEVS_GAINT 0x00000400 +#define AMDIOMMU_CMDEVS_PPROVRFLWB 0x00000800 +#define AMDIOMMU_CMDEVS_PPRLOGACTIVE 0x00001000 +#define AMDIOMMU_CMDEVS_RESV1 0x00002000 +#define AMDIOMMU_CMDEVS_RESV2 0x00004000 +#define AMDIOMMU_CMDEVS_EVOVRFLWB 0x00008000 +#define AMDIOMMU_CMDEVS_EVLOGACTIVE 0x00010000 +#define AMDIOMMU_CMDEVS_PPROVRFLWEB 0x00020000 +#define AMDIOMMU_CMDEVS_PPROVRFLWE 0x00040000 + +/* + * Device Table Entry (DTE) + */ +struct amdiommu_dte { + u_int v:1; /* Valid */ + u_int tv:1; /* Translation Valid */ + u_int rsrv0:5; + u_int had:2; /* Host Access Dirty */ + u_int pgmode:3; /* Paging Mode */ + uint64_t ptroot:40; /* Page Table Root */ + u_int ppr:1; /* PPR En */ + u_int gprp:1; /* Guest PPR Resp with PASID */ + u_int giov:1; /* Guest IO Prot Valid */ + u_int gv:1; /* Guest Translation Valid */ + u_int glx:2; /* Guest Levels Translated */ + u_int gcr3root0:3; /* GCR3 root pointer part */ + u_int ir:1; /* Read Perm */ + u_int iw:1; /* Write Perm */ + u_int rsrv1:1; + u_int domainid:16; /* domain tag */ + u_int gcr3root1:16; /* GCR3 root pointer part */ + u_int i:1; /* IOTLB En */ + u_int se:1; /* Suppress IO Fault Events */ + u_int sa:1; /* Suppress All IO Fault Events */ + u_int pioctl:2; /* Port IO Control */ + u_int cache:1; /* IOTLB Cache Hint */ + u_int sd:1; /* Snoop Disable */ + u_int ex:1; /* Allow Exclusion */ + u_int sysmgt:2; /* System Management Msg Handling */ + u_int sats:1; /* Secure/Non-secure ATS */ + u_int gcr3root2:21; /* GCR3 root pointer part */ + u_int iv:1; /* Intr Map Valid */ + u_int inttablen:4; /* log2 Intr Table Len */ + u_int ig:1; /* Ignore Unmapped Interrupts */ + uint64_t intrroot:46; /* Interrupt Table Root (-low 6bits) */ + u_int rsrv2:2; + u_int gpm:2; /* Guest Paging Mode */ + u_int initpass:1; /* INIT pass-through */ + u_int eintpass:1; /* ExtInt pass-through */ + u_int nmipass:1; /* NMI pass-through */ + u_int hptmode:1; /* Host Page Table Mode Hint */ + u_int intctl:2; /* Interrupt Control */ + u_int lint0pass:1; /* LINT0 pass-through */ + u_int lint1pass:1; /* LINT1 pass-through */ + u_int rsrv3:15; + u_int vimu:1; /* Virtualize IOMMU En */ + u_int gdevid:16; /* Guest Dev Id */ + u_int gid:16; /* Guest Id */ + u_int rsrv4:5; + u_int rsrv5:1; /* Not Checked, sw avail */ + u_int attrv:1; /* Attr Override Valid */ + u_int mode0fc:1; /* Replace for PTE.FC */ + u_int snoopattr:8; /* GuestPTE.PAT -> ATS.N xlat */ +} __packed; +_Static_assert(sizeof(struct amdiommu_dte) == 8 * sizeof(uint32_t), "DTE"); + +#define AMDIOMMU_DTE_HAD_NAND 0x0 /* No Access, No Dirty */ +#define AMDIOMMU_DTE_HAD_AND 0x1 /* Access, No Dirty */ +#define AMDIOMMU_DTE_HAD_RSRV 0x2 +#define AMDIOMMU_DTE_HAD_AD 0x3 /* Access, Dirty */ + +#define AMDIOMMU_DTE_PGMODE_1T1 0x0 /* SPA = GPA */ +#define AMDIOMMU_DTE_PGMODE_1LV 0x1 /* 1 Level PT */ +#define AMDIOMMU_DTE_PGMODE_2LV 0x2 /* 2 Level PT */ +#define AMDIOMMU_DTE_PGMODE_3LV 0x3 /* 3 Level PT */ +#define AMDIOMMU_DTE_PGMODE_4LV 0x4 /* 4 Level PT */ +#define AMDIOMMU_DTE_PGMODE_5LV 0x5 /* 5 Level PT */ +#define AMDIOMMU_DTE_PGMODE_6LV 0x6 /* 6 Level PT */ +#define AMDIOMMU_DTE_PGMODE_RSRV 0x7 + +#define AMDIOMMU_DTE_GLX_1LV 0x0 /* 1 Level GCR3 */ +#define AMDIOMMU_DTE_GLX_2LV 0x1 /* 2 Level GCR3 */ +#define AMDIOMMU_DTE_GLX_3LV 0x2 /* 3 Level GCR3 */ +#define AMDIOMMU_DTE_GLX_RSRV 0x3 + +#define AMDIOMMU_DTE_PIOCTL_DIS 0x0 +#define AMDIOMMU_DTE_PIOCTL_EN 0x1 +#define AMDIOMMU_DTE_PIOCTL_MAP 0x2 +#define AMDIOMMU_DTE_PIOCTL_RSRV 0x3 + +#define AMDIOMMU_DTE_SYSMGT_DIS 0x0 /* Target Abort */ +#define AMDIOMMU_DTE_SYSMGT_FW 0x0 /* Forwarded All */ +#define AMDIOMMU_DTE_SYSMGT_FWI 0x0 /* Forwarded INT */ +#define AMDIOMMU_DTE_SYSMGT_T 0x0 /* Translated */ + +#define AMDIOMMU_DTE_GPM_4LV 0x0 /* 4 Level */ +#define AMDIOMMU_DTE_GPM_5LV 0x1 /* 4 Level */ +#define AMDIOMMU_DTE_GPM_RSRV1 0x2 +#define AMDIOMMU_DTE_GPM_RSRV2 0x3 + +#define AMDIOMMU_DTE_INTCTL_DIS 0x0 /* Target Abort */ +#define AMDIOMMU_DTE_INTCTL_FW 0x1 /* Forward Unmapped */ +#define AMDIOMMU_DTE_INTCTL_MAP 0x2 /* Forward Remapped */ +#define AMDIOMMU_DTE_INTCTL_RSRV 0x3 + +#define AMDIOMMU_PGTBL_MAXLVL 6 + +/* + * Page Table Entry (PTE/PDE) + */ +#define AMDIOMMU_PTE_PR 0x0001 /* Present, AKA V */ +#define AMDIOMMU_IGN1 0x0002 +#define AMDIOMMU_IGN2 0x0004 +#define AMDIOMMU_IGN3 0x0008 +#define AMDIOMMU_IGN4 0x0010 +#define AMDIOMMU_PTE_A 0x0020 /* Accessed */ +#define AMDIOMMU_PTE_D 0x0040 /* Dirty */ +#define AMDIOMMU_IGN5 0x0080 +#define AMDIOMMU_IGN6 0x0100 +#define AMDIOMMU_PTE_NLVL_MASK 0x0e00 /* Next Level */ +#define AMDIOMMU_PTE_NLVL_SHIFT 9 +#define AMDIOMMU_PTE_NLVL_7h 0x0e00 /* Magic Next Level */ +#define AMDIOMMU_PTE_PA_MASK 0x000ffffffffff000ull +#define AMDIOMMU_PTE_PA_SHIFT 12 +#define AMDIOMMU_PTE_PMC_MASK 0x0600000000000000ull /* Page Migr */ +#define AMDIOMMU_PTE_U 0x0800000000000000ull /* ATS.U */ +#define AMDIOMMU_PTE_FC 0x1000000000000000ull /* Force Coh */ +#define AMDIOMMU_PTE_IR 0x2000000000000000ull /* Read Perm */ +#define AMDIOMMU_PTE_IW 0x4000000000000000ull /* Write Perm */ +#define AMDIOMMU_PTE_IGN7 0x8000000000000000ull + +/* + * IRTEs + */ + +/* vAPIC is not enabled, guestmode = 0 */ +struct amdiommu_irte_basic_novapic { + u_int remapen:1; /* 0 - Target Abort */ + u_int supiopf:1; /* Supress IO_PAGE_FAULT events */ + u_int inttype:3; + u_int rqeoi:1; /* Request EOI */ + u_int dm:1; /* Dest Mode */ + u_int guestmode:1; /* MBZ */ + u_int dest:8; /* Destination APIC */ + u_int vector:8; + u_int rsrv:8; +} __packed; +_Static_assert(sizeof(struct amdiommu_irte_basic_novapic) == + 1 * sizeof(uint32_t), "IRTE 1"); + +/* vAPIC is enabled, guestmode = 0 */ +struct amdiommu_irte_basic_vapic { + u_int remapen:1; /* 0 - Target Abort */ + u_int supiopf:1; /* Supress IO_PAGE_FAULT events */ + u_int inttype:3; + u_int rqeoi:1; /* Request EOI */ + u_int dm:1; /* Dest Mode */ + u_int guestmode:1; /* MBZ */ + u_int dest:8; /* Destination APIC */ + u_int rsrv0:16; + u_int rsrv1:32; + u_int vector:8; + u_int rsrv2:24; + u_int rsrv3:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_irte_basic_vapic) == + 4 * sizeof(uint32_t), "IRTE 2"); + +/* vAPIC is enabled, guestmode = 1 */ +struct amdiommu_irte_guest_vapic { + u_int remapen:1; /* 0 - Target Abort */ + u_int supiopf:1; /* Supress IO_PAGE_FAULT events */ + u_int galogintr:1; + u_int rsrv0:2; + u_int gappidis:1; /* supress GAPPI */ + u_int isrun:1; /* Guest Running hint */ + u_int guestmode:1; /* MB1 */ + u_int dest:8; /* Destination APIC for dorbell */ + u_int rsrv1:16; + u_int gatag:32; + u_int vector:8; + u_int rsrv2:4; + uint64_t vapicrp:40; /* 51:12 bits of SPA for APIC backing page */ + u_int rsrv3:12; +} __packed; +_Static_assert(sizeof(struct amdiommu_irte_guest_vapic) == + 4 * sizeof(uint32_t), "IRTE 3"); + +/* vAPIC is enabled, guestmode = 0, x2APIC */ +struct amdiommu_irte_basic_vapic_x2 { + u_int remapen:1; /* 0 - Target Abort */ + u_int supiopf:1; /* Supress IO_PAGE_FAULT events */ + u_int inttype:3; + u_int rqeoi:1; /* Request EOI */ + u_int dm:1; /* Dest Mode */ + u_int guestmode:1; /* MBZ */ + u_int dest0:24; /* Destination APIC 23:0 */ + u_int rsrv0:32; + u_int vector:8; + u_int rsrv1:24; + u_int rsrv2:24; + u_int dest1:8; /* Destination APIC 31:24 */ +} __packed; +_Static_assert(sizeof(struct amdiommu_irte_basic_vapic_x2) == + 4 * sizeof(uint32_t), "IRTE 4"); + +/* vAPIC is enabled, guestmode = 1, x2APIC */ +struct amdiommu_irte_guest_vapic_x2 { + u_int remapen:1; /* 0 - Target Abort */ + u_int supiopf:1; /* Supress IO_PAGE_FAULT events */ + u_int galogintr:1; + u_int rsrv0:2; + u_int gappidis:1; /* supress GAPPI */ + u_int isrun:1; /* Guest Running hint */ + u_int guestmode:1; /* MB1 */ + u_int dest0:24; /* Destination APIC for dorbell 23:0 */ + u_int gatag:32; + u_int vector:8; + u_int rsrv2:4; + uint64_t vapicrp:40; /* 51:12 bits of SPA for APIC backing page */ + u_int rsrv3:4; + u_int dest1:8; /* Destination APIC 31:24 */ +} __packed; +_Static_assert(sizeof(struct amdiommu_irte_guest_vapic_x2) == + 4 * sizeof(uint32_t), "IRTE 5"); + +#define AMDIOMMU_IRTE_INTTYPE_FIXED 0 +#define AMDIOMMU_IRTE_INTTYPE_ARBITR 1 + +#define AMDIOMMU_IRTE_DM_LOGICAL 1 +#define AMDIOMMU_IRTE_DM_PHYSICAL 1 + +/* + * Commands + */ + +struct amdiommu_cmd_generic { + u_int w0:32; + union { + u_int ww1:32; + struct { + u_int w1:28; + u_int op:4; + }; + }; + u_int w2:32; + u_int w3:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_generic) == + 4 * sizeof(uint32_t), "CMD_GENERIC"); + +#define AMDIOMMU_CMD_SZ_SHIFT 4 /* Shift for cmd count + to ring offset */ +#define AMDIOMMU_CMD_SZ sizeof(struct amdiommu_cmd_generic) + /* Command size */ +_Static_assert((1 << AMDIOMMU_CMD_SZ_SHIFT) == AMDIOMMU_CMD_SZ, + "CMD size shift"); + +struct amdiommu_cmd_completion_wait { + u_int s:1; + u_int i:1; + u_int f:1; + u_int address0:29; /* Store Address 31:3 */ + u_int address1:20; /* Store Address 51:32 */ + u_int rsrv:8; + u_int op:4; + u_int data0:32; + u_int data1:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_completion_wait) == + 4 * sizeof(uint32_t), "CMD_COMPLETION_WAIT"); + +struct amdiommu_cmd_invalidate_devtab_entry { + u_int devid:16; + u_int rsrv0:16; + u_int rsrv1:28; + u_int op:4; + u_int rsrv2:32; + u_int rsrv3:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_invalidate_devtab_entry) == + 4 * sizeof(uint32_t), "CMD_INVALIDATE_DEVTAB_ENTRY"); + +struct amdiommu_cmd_invalidate_iommu_pages { + u_int pasid:20; + u_int rsrv0:12; + u_int domainid:16; + u_int rsrv1:12; + u_int op:4; + u_int s:1; + u_int pde:1; + u_int gn:1; + u_int rsrv2:9; + uint64_t address:52; /* Address 63:12 */ +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_invalidate_iommu_pages) == + 4 * sizeof(uint32_t), "CMD_INVALIDATE_IOMMU_PAGES"); + +struct amdiommu_cmd_invalidate_iotlb_pages { + u_int devid:16; + u_int pasid1:8; + u_int maxpend0:8; + u_int queueid:16; + u_int pasid0:8; + u_int pasid2:4; + u_int op:4; + u_int s:1; + u_int rsrv0:1; + u_int gn:1; + u_int rsrv1:1; + u_int type:2; + u_int rsrv2:6; + uint64_t address:52; /* Address 63:12 */ +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_invalidate_iotlb_pages) == + 4 * sizeof(uint32_t), "CMD_INVALIDATE_IOTLB_PAGES"); + +struct amdiommu_cmd_invalidate_interrupt_table { + u_int devid:16; + u_int rsrv0:16; + u_int rsrv1:28; + u_int op:4; + u_int rsrv2:32; + u_int rsrv3:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_invalidate_interrupt_table) == + 4 * sizeof(uint32_t), "CMD_INVALIDATE_INTERRUPT_TABLE"); + +struct amdiommu_cmd_prefetch_iommu_pages { + u_int devid:16; + u_int rsrv0:8; + u_int pfcount:8; + u_int pasid:20; + u_int rsrv1:8; + u_int op:4; + u_int s:1; + u_int rsrv2:1; + u_int gn:1; + u_int rsrv3:1; + u_int inval:1; /* Invalidate First */ + u_int rsrv4:7; + uint64_t address:52; /* Address 63:12 */ +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_prefetch_iommu_pages) == + 4 * sizeof(uint32_t), "CMD_PREFETCH_IOMMU_PAGES"); + +struct amdiommu_cmd_complete_ppr_request { + u_int devid:16; + u_int rsrv0:16; + u_int pasid:20; + u_int rsrv1:8; + u_int op:4; + u_int rsrv2:2; + u_int gn:1; + u_int rsrv3:29; + u_int compltag:16; + u_int rsrv4:16; +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_complete_ppr_request) == + 4 * sizeof(uint32_t), "CMD_COMPLETE_PPR_REQUEST"); + +struct amdiommu_cmd_invalidate_iommu_all { + u_int rsrv0:32; + u_int op:4; + u_int rsrv1:28; + u_int rsrv2:32; + u_int rsrv3:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_invalidate_iommu_all) == + 4 * sizeof(uint32_t), "CMD_INVALIDATE_IOMMU_ALL"); + +struct amdiommu_cmd_insert_guest_event { + u_int rsrv0:32; + u_int guestid:16; + u_int rsrv1:12; + u_int op:4; + u_int rsrv2:32; + u_int rsrv3:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_insert_guest_event) == + 4 * sizeof(uint32_t), "CMD_INSERT_GUEST_EVENT"); + +struct amdiommu_cmd_reset_vmmio { + u_int guestid:16; + u_int rsrv0:11; + u_int all:1; + u_int rsrv1:3; + u_int vcmd:1; + u_int rsrv2:27; + u_int op:4; + u_int rsrv3:32; + u_int rsrv4:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_cmd_reset_vmmio) == + 4 * sizeof(uint32_t), "CMD_RESET_VMMIO"); + +#define AMDIOMMU_CMD_COMPLETION_WAIT 0x1 +#define AMDIOMMU_CMD_INVALIDATE_DEVTAB_ENTRY 0x2 +#define AMDIOMMU_CMD_INVALIDATE_IOMMU_PAGES 0x3 +#define AMDIOMMU_CMD_INVALIDATE_IOTLB_PAGES 0x4 +#define AMDIOMMU_CMD_INVALIDATE_INTERRUPT_TABLE 0x5 +#define AMDIOMMU_CMD_PREFETCH_IOMMU_PAGES 0x6 +#define AMDIOMMU_CMD_COMPLETE_PPR_REQUEST 0x7 +#define AMDIOMMU_CMD_INVALIDATE_IOMMU_ALL 0x8 +#define AMDIOMMU_CMD_INSERT_GUEST_EVENT 0x9 +#define AMDIOMMU_CMD_RESET_VMMIO 0xa + +/* + * Logging + */ +struct amdiommu_event_generic { + u_int w0:32; + union { + u_int ww1:32; + struct { + u_int w1:28; + u_int code:4; + }; + }; + u_int w2:32; + u_int w3:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_event_generic) == + 4 * sizeof(uint32_t), "EVENT_GENERIC"); + +#define AMDIOMMU_EV_SZ_SHIFT 4 /* Shift for event count + to ring offset */ +#define AMDIOMMU_EV_SZ sizeof(struct amdiommu_event_generic) + /* Event size */ +_Static_assert((1 << AMDIOMMU_EV_SZ_SHIFT) == AMDIOMMU_EV_SZ, + "Event size shift"); + +struct amdiommu_event_ill_dev_table_entry { + u_int devid:16; + u_int pasid1:4; + u_int rsrv0:7; + u_int vnr:1; + u_int rsrv1:1; + u_int vevent:1; + u_int vptr:1; + u_int vcmd:1; + u_int pasid:16; + u_int gn:1; + u_int rsrv2:2; + u_int i:1; + u_int rsrv3:1; + u_int rw:1; + u_int rsrv4:1; + u_int rz:1; + u_int tr:1; + u_int rsrv5:3; + u_int code:4; + u_int rsrv6:2; + u_int addr1:30; + u_int addr2:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_event_ill_dev_table_entry) == + 4 * sizeof(uint32_t), "EVENT_ILLEGAL_DEV_TABLE_ENTRY"); + +struct amdiommu_event_io_page_fault_entry { + u_int devid:16; + u_int pasid1:4; + u_int rsrv0:7; + u_int vnr:1; + u_int rsrv1:1; + u_int vevent:1; + u_int vptr:1; + u_int vcmd:1; + u_int pasid:16; /* also domain id */ + u_int gn:1; + u_int nx:1; + u_int us:1; + u_int i:1; + u_int pr:1; + u_int rw:1; + u_int pe:1; + u_int rz:1; + u_int tr:1; + u_int rsrv2:3; + u_int code:4; + u_int addr1:32; + u_int addr2:32; +} __packed; +_Static_assert(sizeof(struct amdiommu_event_io_page_fault_entry) == + 4 * sizeof(uint32_t), "EVENT_IO_PAGE_FAULT_ENTRY"); + +#define AMDIOMMU_EV_ILL_DEV_TABLE_ENTRY 0x1 +#define AMDIOMMU_EV_IO_PAGE_FAULT 0x2 +#define AMDIOMMU_EV_DEV_TAB_HW_ERROR 0x3 +#define AMDIOMMU_EV_PAGE_TAB_HW_ERROR 0x4 +#define AMDIOMMU_EV_ILL_CMD_ERROR 0x5 +#define AMDIOMMU_EV_CMD_HW_ERROR 0x6 +#define AMDIOMMU_EV_IOTLB_INV_TIMEOUT 0x7 +#define AMDIOMMU_EV_INVALID_DEV_REQ 0x8 +#define AMDIOMMU_EV_INVALID_PPR_REQ 0x9 +#define AMDIOMMU_EV_COUNTER_ZERO 0xa /* Typo in table 42? */ + +#endif /* __X86_IOMMU_AMD_REG_H */ From nobody Sat Nov 9 20:19:14 2024 X-Original-To: dev-commits-src-all@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 4Xm6bQ6BNYz5cccR; Sat, 09 Nov 2024 20:19:14 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6bQ5KgSz4f9g; Sat, 9 Nov 2024 20:19:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183554; 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=G4aPdh5y3gd1Sl7LZbJlafnkG5iGdUNyMafaWwfUT2A=; b=KJQLdbXD5Fc0Bnlh9mb23SwnSONGa4mIMzzhcp/qVum1srlUXj42QMLB0D0X8Tn6yKedom AzwxppGJF7LxcHizlPObZ/rqWoK69sa5SAFPAPCJlTmAW2+XyoKXr/Y56RgpyWLBCGJxPr yNGMCKbQ+3M0UJD4o6K7AZEci5uFOpOK1LyJqfQWUE5d5FZsjU+0WVm4TRay57TanN09+z Do6wJSzrZOsnqXR6Eiodq9geQzyqcZ/X7Cxip/qMXQsQbijohTX71kyDBydFH9Ge6MZbr5 1jqVk0qE7pM1fagJyxnpN1LR2fjQkuxTT0HDx2i8lxBrRm6pCheVJI1O7iKMzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183554; 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=G4aPdh5y3gd1Sl7LZbJlafnkG5iGdUNyMafaWwfUT2A=; b=ShNE1hFe6DdoD0Lv4U/ZHWV9OPpqZPCu6RwKnw/vGw/g5KNVZq6gHATbL3ZyG1gltG9uWL aHLsjCstU78gFBa9Ab2Sl4LB0M+K1fYfhRS1o46zSknN9Isjjpt0/kxhdI3DXH54Ej225q VvHkBS882TVvoWkI9Pnpcd5LFtUQHDgA2F4Fug6eFiSNXHTiX7D5wge/k8rb6xk5k/1kmF nEfHp0qikO8Gak3Ljr9Vt5sZyNDKIfHr27kkPOXw9nLE7iyH447756K/c0Bkt059BGHebY aHFBFQ7X7KHVrThpJNb4uU3e8yfUjfhpEOnGdJfpNstrwVVRounhgZycvK2agQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731183554; a=rsa-sha256; cv=none; b=s66LMEcE2TlQsG207wNXEm96l4dGqxELKIEIk4R1b6V91yH9ran4dYChGXXKWZn2HBHYOi 4yRjZUFAdleJ3RJlGRLVd2wUi1MPLZqBRu5JXjlWxBYVfXE/evXgTNunQbwBRBKsmAvZ2z JPPBn7HTDHStffUn7Yjj+sTV9MmKOyWUMQhNmRgtEZxoOYrhnASQB3GGLZhD9tReGpgy/R RFUGxgHAnHNpCCKU9bz0GO8jK2OiAj6ZycZA30aUOSrQzKH+L9ejrLxAtEN1RE2/5esL7v IcVJVB3zdw+xGAUfm9EZfBTm0i8xAB73NtYnZWC9xRVtwzUF8H2PD03IOoe8ew== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6bQ4q08z1RY7; Sat, 9 Nov 2024 20:19:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9KJEpA033443; Sat, 9 Nov 2024 20:19:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9KJE4I033439; Sat, 9 Nov 2024 20:19:14 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:19:14 GMT Message-Id: <202411092019.4A9KJE4I033439@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: dd40825e613d - stable/14 - x86/iommu/amd_reg.h: fix typo in comment List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: dd40825e613d341be7d77b6e85ef76a5ae93f640 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=dd40825e613d341be7d77b6e85ef76a5ae93f640 commit dd40825e613d341be7d77b6e85ef76a5ae93f640 Author: Konstantin Belousov AuthorDate: 2024-11-03 00:19:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:04:18 +0000 x86/iommu/amd_reg.h: fix typo in comment (cherry picked from commit 57aebec4f767db3b3b8c7af813e5f1080d0e08ec) --- sys/x86/iommu/amd_reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/x86/iommu/amd_reg.h b/sys/x86/iommu/amd_reg.h index 33f744c65cc6..37375b3fa7b5 100644 --- a/sys/x86/iommu/amd_reg.h +++ b/sys/x86/iommu/amd_reg.h @@ -342,7 +342,7 @@ _Static_assert(sizeof(struct amdiommu_dte) == 8 * sizeof(uint32_t), "DTE"); #define AMDIOMMU_DTE_SYSMGT_T 0x0 /* Translated */ #define AMDIOMMU_DTE_GPM_4LV 0x0 /* 4 Level */ -#define AMDIOMMU_DTE_GPM_5LV 0x1 /* 4 Level */ +#define AMDIOMMU_DTE_GPM_5LV 0x1 /* 5 Level */ #define AMDIOMMU_DTE_GPM_RSRV1 0x2 #define AMDIOMMU_DTE_GPM_RSRV2 0x3 From nobody Sat Nov 9 20:19:15 2024 X-Original-To: dev-commits-src-all@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 4Xm6bS34chz5ccLL; Sat, 09 Nov 2024 20:19:16 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6bR6TxMz4f14; Sat, 9 Nov 2024 20:19:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183555; 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=hp8dRlM6YRIXVjzQaZ73GZ7tZiS8ANnJ/NEqhceB5sU=; b=lsMGr+hmEeR8rvOL7GH4DaAxj07aLAn7cWE7XkNU7F3PhRq3O5ogdvf3De2PEIiEVw7kcu KpvxUEBBJ17wViWQWLWfZylZiMykA3hsk5JzKSh1OPN3RqI1CVo0KXXGdNcXbaq1FSyn5B N0vbgK7QJYTe+TlH52DYxCkl1vaGD33BWHvGxMO8DVH3iftswplaViY+6uw1QBqkGbvl2w unFW3T8hEa1zf0pmKc82WYLqAA7QAD6X9tcDJef6ypOlVEyLsleEBoM41bZ5iZJiz2FitU T9PyDrWqL6yScgQD9aTKp2A+hmDlUolY1JPZcuUAJhB3dJctS1yvwvoH4Igbpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183555; 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=hp8dRlM6YRIXVjzQaZ73GZ7tZiS8ANnJ/NEqhceB5sU=; b=JTJQFjzKN0rY2Mg1jAbVVbTgnnGu+PMENWL5noK4THMUrLjPBNxgP+LauZ83gp8srr5Z0L 3P67q/fUkgx++7jnHWRw2beR+xzDqv92AR4l3oYsrJUjU6/HQPkpdS3wCPgp6uTZt9+mKJ njk6ARg9KtIdN79syJOvlHHYPtQkNFWl8Ucp3X3poHFJk0hucXf5JnG+L6MXCAniVtwIE4 CMfvVoWuCoF2Up+nlhvIDfekJRoyS6bvLIMBOhv+jk9Ny8ty+fAUtHjBJv5gqzjzb1p4qi fbMSjWjYayjeCys7RYjVcbykDGok3UtzbXrNxZ1m5g37EsD989ad/5a3kkxiqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731183555; a=rsa-sha256; cv=none; b=q4HNTheIIO48K10W25m4gUQp2PGGyrKm1w2ZzvFjICMLKXZbl4ITK1jJqFjQfz1twBWaII mzUw1rciPCjZEJ9ruB4K/PnH4CtjcnAiq6liFKdm8pcHp7lPPp1UVCYPeZUa4S99hxAHXb CErWkKCYhhGsWtdMLxgVq/m8zqJdI9QyDTEdYYLNLRNNMdOY6e/wnZi6FPMWTnD/OSz1mW kAld8AbhMDxcGkVxT+RYvXoKe7ViySKcOSvc/zm3UDIOs7BS9S6rt2j/NzarqVIuz3T/Bo BWc7whtRpPNoKfazY7CAvrdwk9wcRoh4iUZnWymfzLKRF+r6+jg4QRjFZkgjjA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6bR5htvz1Rqk; Sat, 9 Nov 2024 20:19:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9KJFj9033492; Sat, 9 Nov 2024 20:19:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9KJFgD033481; Sat, 9 Nov 2024 20:19:15 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:19:15 GMT Message-Id: <202411092019.4A9KJFgD033481@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: fa6787221742 - stable/14 - AMD IOMMU driver List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fa6787221742a00d410920a4a917bf2f9b1ed192 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=fa6787221742a00d410920a4a917bf2f9b1ed192 commit fa6787221742a00d410920a4a917bf2f9b1ed192 Author: Konstantin Belousov AuthorDate: 2024-05-12 10:20:11 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:04:18 +0000 AMD IOMMU driver (cherry picked from commit 0f5116d7efe33c81f0b24b56eec78af37898f500) --- sys/conf/files.x86 | 6 + sys/x86/iommu/amd_cmd.c | 360 +++++++++++++ sys/x86/iommu/amd_ctx.c | 639 +++++++++++++++++++++++ sys/x86/iommu/amd_drv.c | 1205 +++++++++++++++++++++++++++++++++++++++++++ sys/x86/iommu/amd_event.c | 323 ++++++++++++ sys/x86/iommu/amd_idpgtbl.c | 396 ++++++++++++++ sys/x86/iommu/amd_intrmap.c | 391 ++++++++++++++ sys/x86/iommu/amd_iommu.h | 243 +++++++++ 8 files changed, 3563 insertions(+) diff --git a/sys/conf/files.x86 b/sys/conf/files.x86 index c6d705e9715d..33da95a65ba4 100644 --- a/sys/conf/files.x86 +++ b/sys/conf/files.x86 @@ -344,6 +344,12 @@ x86/cpufreq/hwpstate_amd.c optional cpufreq x86/cpufreq/hwpstate_intel.c optional cpufreq x86/cpufreq/p4tcc.c optional cpufreq x86/cpufreq/powernow.c optional cpufreq +x86/iommu/amd_cmd.c optional acpi iommu pci +x86/iommu/amd_ctx.c optional acpi iommu pci +x86/iommu/amd_drv.c optional acpi iommu pci +x86/iommu/amd_event.c optional acpi iommu pci +x86/iommu/amd_idpgtbl.c optional acpi iommu pci +x86/iommu/amd_intrmap.c optional acpi iommu pci x86/iommu/intel_ctx.c optional acpi iommu pci x86/iommu/intel_drv.c optional acpi iommu pci x86/iommu/intel_fault.c optional acpi iommu pci diff --git a/sys/x86/iommu/amd_cmd.c b/sys/x86/iommu/amd_cmd.c new file mode 100644 index 000000000000..bbc2a8e0ad9f --- /dev/null +++ b/sys/x86/iommu/amd_cmd.c @@ -0,0 +1,360 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2024 The FreeBSD Foundation + * + * This software was developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include "opt_acpi.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +static void +amdiommu_enable_cmdbuf(struct amdiommu_unit *unit) +{ + AMDIOMMU_ASSERT_LOCKED(unit); + + unit->hw_ctrl |= AMDIOMMU_CTRL_CMDBUF_EN; + amdiommu_write8(unit, AMDIOMMU_CTRL, unit->hw_ctrl); +} + +static void +amdiommu_disable_cmdbuf(struct amdiommu_unit *unit) +{ + AMDIOMMU_ASSERT_LOCKED(unit); + + unit->hw_ctrl &= ~AMDIOMMU_CTRL_CMDBUF_EN; + amdiommu_write8(unit, AMDIOMMU_CTRL, unit->hw_ctrl); +} + + +static void +amdiommu_enable_qi_intr(struct iommu_unit *iommu) +{ + struct amdiommu_unit *unit; + + unit = IOMMU2AMD(iommu); + AMDIOMMU_ASSERT_LOCKED(unit); + unit->hw_ctrl |= AMDIOMMU_CTRL_COMWINT_EN; + amdiommu_write8(unit, AMDIOMMU_CTRL, unit->hw_ctrl); + amdiommu_write8(unit, AMDIOMMU_CMDEV_STATUS, + AMDIOMMU_CMDEVS_COMWAITINT); +} + +static void +amdiommu_disable_qi_intr(struct iommu_unit *iommu) +{ + struct amdiommu_unit *unit; + + unit = IOMMU2AMD(iommu); + AMDIOMMU_ASSERT_LOCKED(unit); + unit->hw_ctrl &= ~AMDIOMMU_CTRL_COMWINT_EN; + amdiommu_write8(unit, AMDIOMMU_CTRL, unit->hw_ctrl); +} + +static void +amdiommu_cmd_advance_tail(struct iommu_unit *iommu) +{ + struct amdiommu_unit *unit; + + unit = IOMMU2AMD(iommu); + AMDIOMMU_ASSERT_LOCKED(unit); + amdiommu_write8(unit, AMDIOMMU_CMDBUF_TAIL, unit->x86c.inv_queue_tail); +} + +static void +amdiommu_cmd_ensure(struct iommu_unit *iommu, int descr_count) +{ + struct amdiommu_unit *unit; + uint64_t head; + int bytes; + + unit = IOMMU2AMD(iommu); + AMDIOMMU_ASSERT_LOCKED(unit); + bytes = descr_count << AMDIOMMU_CMD_SZ_SHIFT; + for (;;) { + if (bytes <= unit->x86c.inv_queue_avail) + break; + /* refill */ + head = amdiommu_read8(unit, AMDIOMMU_CMDBUF_HEAD); + head &= AMDIOMMU_CMDPTR_MASK; + unit->x86c.inv_queue_avail = head - unit->x86c.inv_queue_tail - + AMDIOMMU_CMD_SZ; + if (head <= unit->x86c.inv_queue_tail) + unit->x86c.inv_queue_avail += unit->x86c.inv_queue_size; + if (bytes <= unit->x86c.inv_queue_avail) + break; + + /* + * No space in the queue, do busy wait. Hardware must + * make a progress. But first advance the tail to + * inform the descriptor streamer about entries we + * might have already filled, otherwise they could + * clog the whole queue.. + * + * See dmar_qi_invalidate_locked() for a discussion + * about data race prevention. + */ + amdiommu_cmd_advance_tail(iommu); + unit->x86c.inv_queue_full++; + cpu_spinwait(); + } + unit->x86c.inv_queue_avail -= bytes; +} + +static void +amdiommu_cmd_emit(struct amdiommu_unit *unit, const struct + amdiommu_cmd_generic *cmd) +{ + AMDIOMMU_ASSERT_LOCKED(unit); + + memcpy(unit->x86c.inv_queue + unit->x86c.inv_queue_tail, cmd, + sizeof(*cmd)); + unit->x86c.inv_queue_tail += AMDIOMMU_CMD_SZ; + KASSERT(unit->x86c.inv_queue_tail <= unit->x86c.inv_queue_size, + ("tail overflow 0x%x 0x%jx", unit->x86c.inv_queue_tail, + (uintmax_t)unit->x86c.inv_queue_size)); + unit->x86c.inv_queue_tail &= unit->x86c.inv_queue_size - 1; +} + +static void +amdiommu_cmd_emit_wait_descr(struct iommu_unit *iommu, uint32_t seq, + bool intr, bool memw, bool fence) +{ + struct amdiommu_unit *unit; + struct amdiommu_cmd_completion_wait c; + + unit = IOMMU2AMD(iommu); + AMDIOMMU_ASSERT_LOCKED(unit); + + bzero(&c, sizeof(c)); + c.op = AMDIOMMU_CMD_COMPLETION_WAIT; + if (memw) { + uint32_t x; + + c.s = 1; + x = unit->x86c.inv_waitd_seq_hw_phys; + x >>= 3; + c.address0 = x; + x = unit->x86c.inv_waitd_seq_hw_phys >> 32; + c.address1 = x; + c.data0 = seq; + } + if (fence) + c.f = 1; + if (intr) + c.i = 1; + amdiommu_cmd_emit(unit, (struct amdiommu_cmd_generic *)&c); +} + +static void +amdiommu_qi_invalidate_emit(struct iommu_domain *adomain, iommu_gaddr_t base, + iommu_gaddr_t size, struct iommu_qi_genseq *pseq, bool emit_wait) +{ + struct amdiommu_domain *domain; + struct amdiommu_unit *unit; + struct amdiommu_cmd_invalidate_iommu_pages c; + u_int isize; + + domain = IODOM2DOM(adomain); + unit = domain->unit; + AMDIOMMU_ASSERT_LOCKED(unit); + bzero(&c, sizeof(c)); + c.op = AMDIOMMU_CMD_INVALIDATE_IOMMU_PAGES; + c.domainid = domain->domain; + isize = IOMMU_PAGE_SIZE; /* XXXKIB handle superpages */ + + for (; size > 0; base += isize, size -= isize) { + amdiommu_cmd_ensure(AMD2IOMMU(unit), 1); + c.s = 0; + c.pde = 1; + c.address = base >> IOMMU_PAGE_SHIFT; + amdiommu_cmd_emit(unit, (struct amdiommu_cmd_generic *)&c); + } + iommu_qi_emit_wait_seq(AMD2IOMMU(unit), pseq, emit_wait); +} + +void +amdiommu_qi_invalidate_all_pages_locked_nowait(struct amdiommu_domain *domain) +{ + struct amdiommu_unit *unit; + struct amdiommu_cmd_invalidate_iommu_pages c; + + unit = domain->unit; + AMDIOMMU_ASSERT_LOCKED(unit); + bzero(&c, sizeof(c)); + c.op = AMDIOMMU_CMD_INVALIDATE_IOMMU_PAGES; + c.domainid = domain->domain; + + /* + * The magic specified in the note for INVALIDATE_IOMMU_PAGES + * description. + */ + c.s = 1; + c.pde = 1; + c.address = 0x7ffffffffffff; + + amdiommu_cmd_ensure(AMD2IOMMU(unit), 1); + amdiommu_cmd_emit(unit, (struct amdiommu_cmd_generic *)&c); +} + +void +amdiommu_qi_invalidate_wait_sync(struct iommu_unit *iommu) +{ + struct iommu_qi_genseq gseq; + + amdiommu_cmd_ensure(iommu, 1); + iommu_qi_emit_wait_seq(iommu, &gseq, true); + IOMMU2AMD(iommu)->x86c.inv_seq_waiters++; + amdiommu_cmd_advance_tail(iommu); + iommu_qi_wait_for_seq(iommu, &gseq, true); +} + +void +amdiommu_qi_invalidate_ctx_locked_nowait(struct amdiommu_ctx *ctx) +{ + struct amdiommu_cmd_invalidate_devtab_entry c; + + amdiommu_cmd_ensure(AMD2IOMMU(CTX2AMD(ctx)), 1); + bzero(&c, sizeof(c)); + c.op = AMDIOMMU_CMD_INVALIDATE_DEVTAB_ENTRY; + c.devid = ctx->context.rid; + amdiommu_cmd_emit(CTX2AMD(ctx), (struct amdiommu_cmd_generic *)&c); +} + + +void +amdiommu_qi_invalidate_ctx_locked(struct amdiommu_ctx *ctx) +{ + amdiommu_qi_invalidate_ctx_locked_nowait(ctx); + amdiommu_qi_invalidate_wait_sync(AMD2IOMMU(CTX2AMD(ctx))); +} + +void +amdiommu_qi_invalidate_ir_locked_nowait(struct amdiommu_unit *unit, + uint16_t devid) +{ + struct amdiommu_cmd_invalidate_interrupt_table c; + + AMDIOMMU_ASSERT_LOCKED(unit); + + amdiommu_cmd_ensure(AMD2IOMMU(unit), 1); + bzero(&c, sizeof(c)); + c.op = AMDIOMMU_CMD_INVALIDATE_INTERRUPT_TABLE; + c.devid = devid; + amdiommu_cmd_emit(unit, (struct amdiommu_cmd_generic *)&c); +} + +void +amdiommu_qi_invalidate_ir_locked(struct amdiommu_unit *unit, uint16_t devid) +{ + amdiommu_qi_invalidate_ir_locked_nowait(unit, devid); + amdiommu_qi_invalidate_wait_sync(AMD2IOMMU(unit)); +} + +static void +amdiommu_qi_task(void *arg, int pending __unused) +{ + struct amdiommu_unit *unit; + + unit = IOMMU2AMD(arg); + iommu_qi_drain_tlb_flush(AMD2IOMMU(unit)); + + AMDIOMMU_LOCK(unit); + if (unit->x86c.inv_seq_waiters > 0) + wakeup(&unit->x86c.inv_seq_waiters); + AMDIOMMU_UNLOCK(unit); +} + +int +amdiommu_init_cmd(struct amdiommu_unit *unit) +{ + uint64_t qi_sz, rv; + + unit->x86c.qi_buf_maxsz = ilog2(AMDIOMMU_CMDBUF_MAX / PAGE_SIZE); + unit->x86c.qi_cmd_sz = AMDIOMMU_CMD_SZ; + iommu_qi_common_init(AMD2IOMMU(unit), amdiommu_qi_task); + get_x86_iommu()->qi_ensure = amdiommu_cmd_ensure; + get_x86_iommu()->qi_emit_wait_descr = amdiommu_cmd_emit_wait_descr; + get_x86_iommu()->qi_advance_tail = amdiommu_cmd_advance_tail; + get_x86_iommu()->qi_invalidate_emit = amdiommu_qi_invalidate_emit; + + rv = pmap_kextract((uintptr_t)unit->x86c.inv_queue); + + /* + * See the description of the ComLen encoding for Command + * buffer Base Address Register. + */ + qi_sz = ilog2(unit->x86c.inv_queue_size / PAGE_SIZE) + 8; + rv |= qi_sz << AMDIOMMU_CMDBUF_BASE_SZSHIFT; + + AMDIOMMU_LOCK(unit); + amdiommu_write8(unit, AMDIOMMU_CMDBUF_BASE, rv); + amdiommu_enable_cmdbuf(unit); + amdiommu_enable_qi_intr(AMD2IOMMU(unit)); + AMDIOMMU_UNLOCK(unit); + + return (0); +} + +static void +amdiommu_fini_cmd_helper(struct iommu_unit *iommu) +{ + amdiommu_disable_cmdbuf(IOMMU2AMD(iommu)); + amdiommu_disable_qi_intr(iommu); +} + +void +amdiommu_fini_cmd(struct amdiommu_unit *unit) +{ + iommu_qi_common_fini(AMD2IOMMU(unit), amdiommu_fini_cmd_helper); +} diff --git a/sys/x86/iommu/amd_ctx.c b/sys/x86/iommu/amd_ctx.c new file mode 100644 index 000000000000..b3e85350a995 --- /dev/null +++ b/sys/x86/iommu/amd_ctx.c @@ -0,0 +1,639 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2024 The FreeBSD Foundation + * + * This software was developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +static MALLOC_DEFINE(M_AMDIOMMU_CTX, "amdiommu_ctx", "AMD IOMMU Context"); +static MALLOC_DEFINE(M_AMDIOMMU_DOMAIN, "amdiommu_dom", "AMD IOMMU Domain"); + +static void amdiommu_unref_domain_locked(struct amdiommu_unit *unit, + struct amdiommu_domain *domain); + +static struct amdiommu_dte * +amdiommu_get_dtep(struct amdiommu_ctx *ctx) +{ + return (&CTX2AMD(ctx)->dev_tbl[ctx->context.rid]); +} + +void +amdiommu_domain_unload_entry(struct iommu_map_entry *entry, bool free, + bool cansleep) +{ + struct amdiommu_domain *domain; + struct amdiommu_unit *unit; + + domain = IODOM2DOM(entry->domain); + unit = DOM2AMD(domain); + + /* + * If "free" is false, then the IOTLB invalidation must be performed + * synchronously. Otherwise, the caller might free the entry before + * dmar_qi_task() is finished processing it. + */ + if (free) { + AMDIOMMU_LOCK(unit); + iommu_qi_invalidate_locked(&domain->iodom, entry, true); + AMDIOMMU_UNLOCK(unit); + } else { + iommu_qi_invalidate_sync(&domain->iodom, entry->start, + entry->end - entry->start, cansleep); + iommu_domain_free_entry(entry, false); + } +} + +static bool +amdiommu_domain_unload_emit_wait(struct amdiommu_domain *domain, + struct iommu_map_entry *entry) +{ + return (true); /* XXXKIB */ +} + +void +amdiommu_domain_unload(struct iommu_domain *iodom, + struct iommu_map_entries_tailq *entries, bool cansleep) +{ + struct amdiommu_domain *domain; + struct amdiommu_unit *unit; + struct iommu_map_entry *entry, *entry1; + int error __diagused; + + domain = IODOM2DOM(iodom); + unit = DOM2AMD(domain); + + TAILQ_FOREACH_SAFE(entry, entries, dmamap_link, entry1) { + KASSERT((entry->flags & IOMMU_MAP_ENTRY_MAP) != 0, + ("not mapped entry %p %p", domain, entry)); + error = iodom->ops->unmap(iodom, entry, + cansleep ? IOMMU_PGF_WAITOK : 0); + KASSERT(error == 0, ("unmap %p error %d", domain, error)); + } + if (TAILQ_EMPTY(entries)) + return; + + AMDIOMMU_LOCK(unit); + while ((entry = TAILQ_FIRST(entries)) != NULL) { + TAILQ_REMOVE(entries, entry, dmamap_link); + iommu_qi_invalidate_locked(&domain->iodom, entry, + amdiommu_domain_unload_emit_wait(domain, entry)); + } + AMDIOMMU_UNLOCK(unit); +} + +static void +amdiommu_domain_destroy(struct amdiommu_domain *domain) +{ + struct iommu_domain *iodom; + struct amdiommu_unit *unit; + + iodom = DOM2IODOM(domain); + + KASSERT(TAILQ_EMPTY(&domain->iodom.unload_entries), + ("unfinished unloads %p", domain)); + KASSERT(LIST_EMPTY(&iodom->contexts), + ("destroying dom %p with contexts", domain)); + KASSERT(domain->ctx_cnt == 0, + ("destroying dom %p with ctx_cnt %d", domain, domain->ctx_cnt)); + KASSERT(domain->refs == 0, + ("destroying dom %p with refs %d", domain, domain->refs)); + + if ((domain->iodom.flags & IOMMU_DOMAIN_GAS_INITED) != 0) { + AMDIOMMU_DOMAIN_LOCK(domain); + iommu_gas_fini_domain(iodom); + AMDIOMMU_DOMAIN_UNLOCK(domain); + } + if ((domain->iodom.flags & IOMMU_DOMAIN_PGTBL_INITED) != 0) { + if (domain->pgtbl_obj != NULL) + AMDIOMMU_DOMAIN_PGLOCK(domain); + amdiommu_domain_free_pgtbl(domain); + } + iommu_domain_fini(iodom); + unit = DOM2AMD(domain); + free_unr(unit->domids, domain->domain); + free(domain, M_AMDIOMMU_DOMAIN); +} + +static iommu_gaddr_t +lvl2addr(int lvl) +{ + int x; + + x = IOMMU_PAGE_SHIFT + IOMMU_NPTEPGSHIFT * lvl; + /* Level 6 has only 8 bits for page table index */ + if (x >= NBBY * sizeof(uint64_t)) + return (-1ull); + return (1ull < (1ull << x)); +} + +static void +amdiommu_domain_init_pglvl(struct amdiommu_unit *unit, + struct amdiommu_domain *domain) +{ + iommu_gaddr_t end; + int hats, i; + uint64_t efr_hats; + + end = DOM2IODOM(domain)->end; + for (i = AMDIOMMU_PGTBL_MAXLVL; i > 1; i--) { + if (lvl2addr(i) >= end && lvl2addr(i - 1) < end) + break; + } + domain->pglvl = i; + + efr_hats = unit->efr & AMDIOMMU_EFR_HATS_MASK; + switch (efr_hats) { + case AMDIOMMU_EFR_HATS_6LVL: + hats = 6; + break; + case AMDIOMMU_EFR_HATS_5LVL: + hats = 5; + break; + case AMDIOMMU_EFR_HATS_4LVL: + hats = 4; + break; + default: + printf("amdiommu%d: HATS %#jx (reserved) ignoring\n", + unit->iommu.unit, (uintmax_t)efr_hats); + return; + } + if (hats >= domain->pglvl) + return; + + printf("amdiommu%d: domain %d HATS %d pglvl %d reducing to HATS\n", + unit->iommu.unit, domain->domain, hats, domain->pglvl); + domain->pglvl = hats; + domain->iodom.end = lvl2addr(hats); +} + +static struct amdiommu_domain * +amdiommu_domain_alloc(struct amdiommu_unit *unit, bool id_mapped) +{ + struct amdiommu_domain *domain; + struct iommu_domain *iodom; + int error, id; + + id = alloc_unr(unit->domids); + if (id == -1) + return (NULL); + domain = malloc(sizeof(*domain), M_AMDIOMMU_DOMAIN, M_WAITOK | M_ZERO); + iodom = DOM2IODOM(domain); + domain->domain = id; + LIST_INIT(&iodom->contexts); + iommu_domain_init(AMD2IOMMU(unit), iodom, &amdiommu_domain_map_ops); + + domain->unit = unit; + + domain->iodom.end = id_mapped ? ptoa(Maxmem) : BUS_SPACE_MAXADDR; + amdiommu_domain_init_pglvl(unit, domain); + iommu_gas_init_domain(DOM2IODOM(domain)); + + if (id_mapped) { + domain->iodom.flags |= IOMMU_DOMAIN_IDMAP; + } else { + error = amdiommu_domain_alloc_pgtbl(domain); + if (error != 0) + goto fail; + /* Disable local apic region access */ + error = iommu_gas_reserve_region(iodom, 0xfee00000, + 0xfeefffff + 1, &iodom->msi_entry); + if (error != 0) + goto fail; + } + + return (domain); + +fail: + amdiommu_domain_destroy(domain); + return (NULL); +} + +static struct amdiommu_ctx * +amdiommu_ctx_alloc(struct amdiommu_domain *domain, uint16_t rid) +{ + struct amdiommu_ctx *ctx; + + ctx = malloc(sizeof(*ctx), M_AMDIOMMU_CTX, M_WAITOK | M_ZERO); + ctx->context.domain = DOM2IODOM(domain); + ctx->context.tag = malloc(sizeof(struct bus_dma_tag_iommu), + M_AMDIOMMU_CTX, M_WAITOK | M_ZERO); + ctx->context.rid = rid; + ctx->context.refs = 1; + return (ctx); +} + +static void +amdiommu_ctx_link(struct amdiommu_ctx *ctx) +{ + struct amdiommu_domain *domain; + + domain = CTX2DOM(ctx); + IOMMU_ASSERT_LOCKED(domain->iodom.iommu); + KASSERT(domain->refs >= domain->ctx_cnt, + ("dom %p ref underflow %d %d", domain, domain->refs, + domain->ctx_cnt)); + domain->refs++; + domain->ctx_cnt++; + LIST_INSERT_HEAD(&domain->iodom.contexts, &ctx->context, link); +} + +static void +amdiommu_ctx_unlink(struct amdiommu_ctx *ctx) +{ + struct amdiommu_domain *domain; + + domain = CTX2DOM(ctx); + IOMMU_ASSERT_LOCKED(domain->iodom.iommu); + KASSERT(domain->refs > 0, + ("domain %p ctx dtr refs %d", domain, domain->refs)); + KASSERT(domain->ctx_cnt >= domain->refs, + ("domain %p ctx dtr refs %d ctx_cnt %d", domain, + domain->refs, domain->ctx_cnt)); + domain->refs--; + domain->ctx_cnt--; + LIST_REMOVE(&ctx->context, link); +} + +struct amdiommu_ctx * +amdiommu_find_ctx_locked(struct amdiommu_unit *unit, uint16_t rid) +{ + struct amdiommu_domain *domain; + struct iommu_ctx *ctx; + + AMDIOMMU_ASSERT_LOCKED(unit); + + LIST_FOREACH(domain, &unit->domains, link) { + LIST_FOREACH(ctx, &domain->iodom.contexts, link) { + if (ctx->rid == rid) + return (IOCTX2CTX(ctx)); + } + } + return (NULL); +} + +struct amdiommu_domain * +amdiommu_find_domain(struct amdiommu_unit *unit, uint16_t rid) +{ + struct amdiommu_domain *domain; + struct iommu_ctx *ctx; + + AMDIOMMU_LOCK(unit); + LIST_FOREACH(domain, &unit->domains, link) { + LIST_FOREACH(ctx, &domain->iodom.contexts, link) { + if (ctx->rid == rid) + break; + } + } + AMDIOMMU_UNLOCK(unit); + return (domain); +} + +static void +amdiommu_free_ctx_locked(struct amdiommu_unit *unit, struct amdiommu_ctx *ctx) +{ + struct amdiommu_dte *dtep; + struct amdiommu_domain *domain; + + AMDIOMMU_ASSERT_LOCKED(unit); + KASSERT(ctx->context.refs >= 1, + ("amdiommu %p ctx %p refs %u", unit, ctx, ctx->context.refs)); + + /* + * If our reference is not last, only the dereference should + * be performed. + */ + if (ctx->context.refs > 1) { + ctx->context.refs--; + AMDIOMMU_UNLOCK(unit); + return; + } + + KASSERT((ctx->context.flags & IOMMU_CTX_DISABLED) == 0, + ("lost ref on disabled ctx %p", ctx)); + + /* + * Otherwise, the device table entry must be cleared before + * the page table is destroyed. + */ + dtep = amdiommu_get_dtep(ctx); + dtep->v = 0; + atomic_thread_fence_rel(); + memset(dtep, 0, sizeof(*dtep)); + + domain = CTX2DOM(ctx); + amdiommu_qi_invalidate_ctx_locked_nowait(ctx); + amdiommu_qi_invalidate_ir_locked_nowait(unit, ctx->context.rid); + amdiommu_qi_invalidate_all_pages_locked_nowait(domain); + amdiommu_qi_invalidate_wait_sync(AMD2IOMMU(CTX2AMD(ctx))); + + if (unit->irte_enabled) + amdiommu_ctx_fini_irte(ctx); + + amdiommu_ctx_unlink(ctx); + free(ctx->context.tag, M_AMDIOMMU_CTX); + free(ctx, M_AMDIOMMU_CTX); + amdiommu_unref_domain_locked(unit, domain); +} + +static void +amdiommu_free_ctx(struct amdiommu_ctx *ctx) +{ + struct amdiommu_unit *unit; + + unit = CTX2AMD(ctx); + AMDIOMMU_LOCK(unit); + amdiommu_free_ctx_locked(unit, ctx); +} + +static void +amdiommu_unref_domain_locked(struct amdiommu_unit *unit, + struct amdiommu_domain *domain) +{ + AMDIOMMU_ASSERT_LOCKED(unit); + KASSERT(domain->refs >= 1, + ("amdiommu%d domain %p refs %u", unit->iommu.unit, domain, + domain->refs)); + KASSERT(domain->refs > domain->ctx_cnt, + ("amdiommu%d domain %p refs %d ctx_cnt %d", unit->iommu.unit, + domain, domain->refs, domain->ctx_cnt)); + + if (domain->refs > 1) { + domain->refs--; + AMDIOMMU_UNLOCK(unit); + return; + } + + LIST_REMOVE(domain, link); + AMDIOMMU_UNLOCK(unit); + + taskqueue_drain(unit->iommu.delayed_taskqueue, + &domain->iodom.unload_task); + amdiommu_domain_destroy(domain); +} + +static void +dte_entry_init_one(struct amdiommu_dte *dtep, struct amdiommu_ctx *ctx, + vm_page_t pgtblr, uint8_t dte, uint32_t edte) +{ + struct amdiommu_domain *domain; + struct amdiommu_unit *unit; + + domain = CTX2DOM(ctx); + unit = DOM2AMD(domain); + + dtep->tv = 1; + /* dtep->had not used for now */ + dtep->ir = 1; + dtep->iw = 1; + dtep->domainid = domain->domain; + dtep->pioctl = AMDIOMMU_DTE_PIOCTL_DIS; + + /* fill device interrupt passing hints from IVHD. */ + dtep->initpass = (dte & ACPI_IVHD_INIT_PASS) != 0; + dtep->eintpass = (dte & ACPI_IVHD_EINT_PASS) != 0; + dtep->nmipass = (dte & ACPI_IVHD_NMI_PASS) != 0; + dtep->sysmgt = (dte & ACPI_IVHD_SYSTEM_MGMT) >> 4; + dtep->lint0pass = (dte & ACPI_IVHD_LINT0_PASS) != 0; + dtep->lint1pass = (dte & ACPI_IVHD_LINT1_PASS) != 0; + + if (unit->irte_enabled) { + dtep->iv = 1; + dtep->i = 0; + dtep->inttablen = ilog2(unit->irte_nentries); + dtep->intrroot = pmap_kextract(unit->irte_x2apic ? + (vm_offset_t)ctx->irtx2 : + (vm_offset_t)ctx->irtb) >> 6; + + dtep->intctl = AMDIOMMU_DTE_INTCTL_MAP; + } + + if ((DOM2IODOM(domain)->flags & IOMMU_DOMAIN_IDMAP) != 0) { + dtep->pgmode = AMDIOMMU_DTE_PGMODE_1T1; + } else { + MPASS(domain->pglvl > 0 && domain->pglvl <= + AMDIOMMU_PGTBL_MAXLVL); + dtep->pgmode = domain->pglvl; + dtep->ptroot = VM_PAGE_TO_PHYS(pgtblr) >> 12; + } + + atomic_thread_fence_rel(); + dtep->v = 1; +} + +static void +dte_entry_init(struct amdiommu_ctx *ctx, bool move, uint8_t dte, uint32_t edte) +{ + struct amdiommu_dte *dtep; + struct amdiommu_unit *unit; + struct amdiommu_domain *domain; + int i; + + domain = CTX2DOM(ctx); + unit = DOM2AMD(domain); + + dtep = amdiommu_get_dtep(ctx); + KASSERT(dtep->v == 0, + ("amdiommu%d initializing valid dte @%p %#jx", + CTX2AMD(ctx)->iommu.unit, dtep, (uintmax_t)(*(uint64_t *)dtep))); + + if (iommu_is_buswide_ctx(AMD2IOMMU(unit), + PCI_RID2BUS(ctx->context.rid))) { + MPASS(!move); + for (i = 0; i <= PCI_BUSMAX; i++) { + dte_entry_init_one(&dtep[i], ctx, domain->pgtblr, + dte, edte); + } + } else { + dte_entry_init_one(dtep, ctx, domain->pgtblr, dte, edte); + } +} + +struct amdiommu_ctx * +amdiommu_get_ctx_for_dev(struct amdiommu_unit *unit, device_t dev, uint16_t rid, + int dev_domain, bool id_mapped, bool rmrr_init, uint8_t dte, uint32_t edte) +{ + struct amdiommu_domain *domain, *domain1; + struct amdiommu_ctx *ctx, *ctx1; + int bus, slot, func; + + if (dev != NULL) { + bus = pci_get_bus(dev); + slot = pci_get_slot(dev); + func = pci_get_function(dev); + } else { + bus = PCI_RID2BUS(rid); + slot = PCI_RID2SLOT(rid); + func = PCI_RID2FUNC(rid); + } + AMDIOMMU_LOCK(unit); + KASSERT(!iommu_is_buswide_ctx(AMD2IOMMU(unit), bus) || + (slot == 0 && func == 0), + ("iommu%d pci%d:%d:%d get_ctx for buswide", AMD2IOMMU(unit)->unit, + bus, slot, func)); + ctx = amdiommu_find_ctx_locked(unit, rid); + if (ctx == NULL) { + /* + * Perform the allocations which require sleep or have + * higher chance to succeed if the sleep is allowed. + */ + AMDIOMMU_UNLOCK(unit); + domain1 = amdiommu_domain_alloc(unit, id_mapped); + if (domain1 == NULL) + return (NULL); + if (!id_mapped) { + /* + * XXXKIB IVMD seems to be less significant + * and less used on AMD than RMRR on Intel. + * Not implemented for now. + */ + } + ctx1 = amdiommu_ctx_alloc(domain1, rid); + amdiommu_ctx_init_irte(ctx1); + AMDIOMMU_LOCK(unit); + + /* + * Recheck the contexts, other thread might have + * already allocated needed one. + */ + ctx = amdiommu_find_ctx_locked(unit, rid); + if (ctx == NULL) { + domain = domain1; + ctx = ctx1; + amdiommu_ctx_link(ctx); + ctx->context.tag->owner = dev; + iommu_device_tag_init(CTX2IOCTX(ctx), dev); + + LIST_INSERT_HEAD(&unit->domains, domain, link); + dte_entry_init(ctx, false, dte, edte); + amdiommu_qi_invalidate_ctx_locked(ctx); + if (dev != NULL) { + device_printf(dev, + "amdiommu%d pci%d:%d:%d:%d rid %x domain %d " *** 2653 LINES SKIPPED *** From nobody Sat Nov 9 20:19:16 2024 X-Original-To: dev-commits-src-all@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 4Xm6bT2Xc8z5ccqV; Sat, 09 Nov 2024 20:19:17 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6bT14R6z4fDb; Sat, 9 Nov 2024 20:19:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183557; 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=anIVAgU6NpIrHor5cyZcDV7IN2feHJsfix6CoIBH4e8=; b=qE5Pd9r1C1y7pOLSOc/DePTv5Y3XktI/je82hbFfsipBvFRC6GUGZ2rPL7vskK6zKU0Q/B +mck4hKSF15WG+egnNBJIspKtNp1ooSNmrwL3FuOhUIQ0zRtZEJFnL22xs4TbSHyfE4aZ2 Qk5/+h06LY2YwL0YZPAazElnoJELRGkr0aOORB6wbWjZhCcNscd0LO1w1RIBhmbhpHBFA+ 3FUuSERdqlyLiGPWhpMuxAfJ+LF6UI0HMw/Nlw6/49C6rJKmp75PAZK58oeBWXP9tLAp+4 NgfqO4KdmuUAbsBQk8NO/Omh9C+A3QjxrcwIWksEUy993lisALhaw/aCBo4Dzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183557; 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=anIVAgU6NpIrHor5cyZcDV7IN2feHJsfix6CoIBH4e8=; b=lV6vzq8F5pHWHjjF8Ido/wGSNrcyy1br9ed0z9fGywy2l3LEL7KHTCuHbF9JcEOgQ/Qxfi Cfq/neDUCrOEDDOfD+rQc7zoP4kuLlMIs0wdw2yW2S45WTLlpejaqd3ntlBlimumdtHYyH vzD1K2pSJRz7UXSfv8wilU+er98//Cl4Taq8kseoi6HPcnGSfA8SmaGr4Z9UIsHRQXd0OF YzscCHTCrVSnfG8cFAsslqES3PhBH3fYjEUq11keS4PwSk4bF2ZN1LU+tkbsn6t5DqetfA k+iWFLoGRhrzX0d3c2R4kJe7ERH6gqBP5G6HSQRkl6JybYp20BZY2xSs8TJ8fA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731183557; a=rsa-sha256; cv=none; b=r+LG8B4o79kHxqSc96ELpZe0iOwvLZfLbfS360G8CPqH+bu+huF1ul4FONyFAh5b7we3Q+ ZSVdkYSOKEbM4el503f3c+sK4I0y46a09BVycqJWbMKUtHqfmtTpsMx61h3BDmufWecSyQ O8srluCyVjpfm1UPEBGBxPvzZls/1ZFuNQXiiQCmMs5CyQd4jUkDKhUFYdrt4H4wbr3YnR V4D+ZUKyNuyEbgWtzAmvGvzkYRt33I9zSalD3H2S7hCAMGzCnyxie6v3fDpr9WpNjfn9dl GvSOC/A95hYLVk9u9q8WK2AcxcojXZj4eXqXMHDwlehRZ+qqXoV5jXVVhVxheg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6bS6hcyz1RBX; Sat, 9 Nov 2024 20:19:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9KJG3j033564; Sat, 9 Nov 2024 20:19:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9KJGZB033561; Sat, 9 Nov 2024 20:19:16 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:19:16 GMT Message-Id: <202411092019.4A9KJGZB033561@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 83217f087be7 - stable/14 - amdiommu: changes for stable/14 merge List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 83217f087be7de6e250039ca757e5d37facff72a Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=83217f087be7de6e250039ca757e5d37facff72a commit 83217f087be7de6e250039ca757e5d37facff72a Author: Konstantin Belousov AuthorDate: 2024-11-09 19:29:26 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:31:25 +0000 amdiommu: changes for stable/14 merge to accomodate lack of ilog2() on stable/14. Done as separate commit to ease future cherry-picks. Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation --- sys/x86/iommu/amd_cmd.c | 4 ++-- sys/x86/iommu/amd_ctx.c | 2 +- sys/x86/iommu/amd_drv.c | 2 +- sys/x86/iommu/amd_event.c | 2 +- sys/x86/iommu/amd_intrmap.c | 2 +- sys/x86/iommu/x86_iommu.h | 10 ++++++++++ 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/sys/x86/iommu/amd_cmd.c b/sys/x86/iommu/amd_cmd.c index bbc2a8e0ad9f..384d92066e36 100644 --- a/sys/x86/iommu/amd_cmd.c +++ b/sys/x86/iommu/amd_cmd.c @@ -320,7 +320,7 @@ amdiommu_init_cmd(struct amdiommu_unit *unit) { uint64_t qi_sz, rv; - unit->x86c.qi_buf_maxsz = ilog2(AMDIOMMU_CMDBUF_MAX / PAGE_SIZE); + unit->x86c.qi_buf_maxsz = ilog2_local(AMDIOMMU_CMDBUF_MAX / PAGE_SIZE); unit->x86c.qi_cmd_sz = AMDIOMMU_CMD_SZ; iommu_qi_common_init(AMD2IOMMU(unit), amdiommu_qi_task); get_x86_iommu()->qi_ensure = amdiommu_cmd_ensure; @@ -334,7 +334,7 @@ amdiommu_init_cmd(struct amdiommu_unit *unit) * See the description of the ComLen encoding for Command * buffer Base Address Register. */ - qi_sz = ilog2(unit->x86c.inv_queue_size / PAGE_SIZE) + 8; + qi_sz = ilog2_local(unit->x86c.inv_queue_size / PAGE_SIZE) + 8; rv |= qi_sz << AMDIOMMU_CMDBUF_BASE_SZSHIFT; AMDIOMMU_LOCK(unit); diff --git a/sys/x86/iommu/amd_ctx.c b/sys/x86/iommu/amd_ctx.c index b3e85350a995..81e284373fc8 100644 --- a/sys/x86/iommu/amd_ctx.c +++ b/sys/x86/iommu/amd_ctx.c @@ -462,7 +462,7 @@ dte_entry_init_one(struct amdiommu_dte *dtep, struct amdiommu_ctx *ctx, if (unit->irte_enabled) { dtep->iv = 1; dtep->i = 0; - dtep->inttablen = ilog2(unit->irte_nentries); + dtep->inttablen = ilog2_local(unit->irte_nentries); dtep->intrroot = pmap_kextract(unit->irte_x2apic ? (vm_offset_t)ctx->irtx2 : (vm_offset_t)ctx->irtb) >> 6; diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c index 395cefc65caa..5db7a5225538 100644 --- a/sys/x86/iommu/amd_drv.c +++ b/sys/x86/iommu/amd_drv.c @@ -236,7 +236,7 @@ amdiommu_create_dev_tbl(struct amdiommu_unit *sc) sc->devtbl_obj->domain.dr_policy = DOMAINSET_PREF(dom); sc->hw_ctrl &= ~AMDIOMMU_CTRL_DEVTABSEG_MASK; - sc->hw_ctrl |= (uint64_t)segnum_log << ilog2(AMDIOMMU_CTRL_DEVTABSEG_2); + sc->hw_ctrl |= (uint64_t)segnum_log << 34; /* ilog2(AMDIOMMU_CTRL_DEVTABSEG_2) */ sc->hw_ctrl |= AMDIOMMU_CTRL_COHERENT; amdiommu_write8(sc, AMDIOMMU_CTRL, sc->hw_ctrl); diff --git a/sys/x86/iommu/amd_event.c b/sys/x86/iommu/amd_event.c index 4a52e42260c2..d4be79474c6a 100644 --- a/sys/x86/iommu/amd_event.c +++ b/sys/x86/iommu/amd_event.c @@ -285,7 +285,7 @@ amdiommu_init_event(struct amdiommu_unit *unit) "amdiommu%d event taskq", unit->iommu.unit); base_reg = pmap_kextract((vm_offset_t)unit->event_log) | - (((uint64_t)0x8 + ilog2(unit->event_log_size / + (((uint64_t)0x8 + ilog2_local(unit->event_log_size / AMDIOMMU_EVNTLOG_MIN)) << AMDIOMMU_EVNTLOG_BASE_SZSHIFT); AMDIOMMU_LOCK(unit); /* diff --git a/sys/x86/iommu/amd_intrmap.c b/sys/x86/iommu/amd_intrmap.c index a4c1a7836268..c5c1706f1f3e 100644 --- a/sys/x86/iommu/amd_intrmap.c +++ b/sys/x86/iommu/amd_intrmap.c @@ -374,7 +374,7 @@ amdiommu_init_irt(struct amdiommu_unit *unit) nentries = 32; TUNABLE_INT_FETCH("hw.iommu.amd.ir_num", &nentries); - nentries = roundup_pow_of_two(nentries); + nentries = roundup_pow_of_two_local(nentries); if (nentries < 1) nentries = 1; if (nentries > 2048) diff --git a/sys/x86/iommu/x86_iommu.h b/sys/x86/iommu/x86_iommu.h index eb4a9907a5d6..835a4623a95e 100644 --- a/sys/x86/iommu/x86_iommu.h +++ b/sys/x86/iommu/x86_iommu.h @@ -200,4 +200,14 @@ void iommu_db_print_ctx(struct iommu_ctx *ctx); void iommu_db_domain_print_contexts(struct iommu_domain *iodom); void iommu_db_domain_print_mappings(struct iommu_domain *iodom); +static __inline __pure2 int +ilog2_local(int n) +{ + KASSERT(n != 0, ("ilog argument must be nonzero")); + return (8 * sizeof(n) - 1 - __builtin_clz((u_int)n)); +} + +#define order_base_2_local(n) ilog2_local(2*(n)-1) +#define roundup_pow_of_two_local(n) ((__typeof(n))1 << order_base_2_local(n)) + #endif From nobody Sat Nov 9 20:19:17 2024 X-Original-To: dev-commits-src-all@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 4Xm6bV3Dbrz5ccWp; Sat, 09 Nov 2024 20:19:18 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6bV14rhz4fH4; Sat, 9 Nov 2024 20:19:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183558; 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=XgwCYZgy99cVa1nFkbO9u8avyvA2basJ29h/8k25d3A=; b=WZcYIYJBKG9aNmhIsOXS18/xrYtrvjzOO4vNNLSDsEQ6N2zYJYbhiI+eaSHQBuFZzTSC7T wn7v6wNrEXQxzQTSzU4CzEHZYj5woW5uEVMJpAv1Nyf4Lg6Vm0gmCOhpQhEpEIw9EkJI2Z JYwUZRx/b/6ZcpiKhGoWRuXHG64Xdi7hPKtX+7tUahs3g+SUIH+OEOy59n4jKnciJeHRjL DFxk9WIHYnv5qb+ynI/EAHtmBjIdUZutiFRw180V/akalozAE0wPgjLZxPDsh7mZ9Iyi74 xz80ZixiGkpQTnx4AiyfTB/2v5DjjnOpTLJPCShmFE1YK4tEFQG6dx9McdY4ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183558; 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=XgwCYZgy99cVa1nFkbO9u8avyvA2basJ29h/8k25d3A=; b=kVe/mlA4xDH12IPN34/LPuriguFrvVCIzhDjvLi4lolHq9szJ9U8sCK/Pkcglnn7PTtyk0 kHy6XqaLDfEds+SZHb7tJHhRJgVG7UCYaCmwlkbF9tagvYhZwtJanXZ/qu9x/ru8R05Mre PElAwlY0WoYRar9ud7o/F0vip2jeheAoCWf4QBrrYoD1B6zUQQZw9FRRGkrILNeG2UD+EM WPVm9piPTwpO7SFigH0KEZ2bml/LwUOyR+QwscMGNKHA1zyb3NKPHaXPE/83sJlyM8zaiC fEqbPy6SkCR6mNbMyt0PLzqnVQ6HYhxRg3lUjOEC21dbIQg8XihYso9UI7Qd+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731183558; a=rsa-sha256; cv=none; b=pTDu+yZGLKBnfyPlZPlCPXkBDOoXQ3Pl0aNv4M1L8ZIlqu/IDZfcNI9XKdG0/TpFHB3dzS XEYClFowSw/fnNMP9mAhNf3VmdkS2wqbN1VrOcnoDh3pkloyZISu5zmj/c0MiTPJqNM9l7 xo4hoxS67YryB6uX9OULEOAsCPqNMil4Ggvs8hdJzre/Ni8DkUlrtCOd1OszuhtJ6e6OYu 5VI1YYyTDV0v1bYnKjpIrxv7Yz7SXJtu5Px95dCdqHKWN3nSewUC5G/4RyjzGCIWUoyXPL vDp2Y61EH/Ylp5OlrZS4rgmrL4aMCFAQIr/4QQjqvJ2AvBVTT7z5zJ+OD15cdQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6bV0Thnz1RBY; Sat, 9 Nov 2024 20:19:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9KJHm8033619; Sat, 9 Nov 2024 20:19:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9KJHE7033616; Sat, 9 Nov 2024 20:19:17 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:19:17 GMT Message-Id: <202411092019.4A9KJHE7033616@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: f5f29d3c1303 - stable/14 - vmm: Rename the amdiommu driver to amdviiommu List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f5f29d3c1303a5558a2bc0c135d4877dba8f7dbf Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f5f29d3c1303a5558a2bc0c135d4877dba8f7dbf commit f5f29d3c1303a5558a2bc0c135d4877dba8f7dbf Author: Mark Johnston AuthorDate: 2024-11-04 14:44:19 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:31:28 +0000 vmm: Rename the amdiommu driver to amdviiommu (cherry picked from commit f95acbd89d594b5932197679d94d2ba23c1d0331) --- sys/amd64/vmm/amd/{amdiommu.c => amdviiommu.c} | 38 +++++++++++++------------- sys/modules/vmm/Makefile | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/sys/amd64/vmm/amd/amdiommu.c b/sys/amd64/vmm/amd/amdviiommu.c similarity index 85% rename from sys/amd64/vmm/amd/amdiommu.c rename to sys/amd64/vmm/amd/amdviiommu.c index 559a7bc7d953..e9b2dfc3dcbd 100644 --- a/sys/amd64/vmm/amd/amdiommu.c +++ b/sys/amd64/vmm/amd/amdviiommu.c @@ -41,36 +41,36 @@ #include "amdvi_priv.h" #include "ivhd_if.h" -struct amdiommu_softc { +struct amdviiommu_softc { struct resource *event_res; /* Event interrupt resource. */ void *event_tag; /* Event interrupt tag. */ int event_rid; }; -static int amdiommu_probe(device_t); -static int amdiommu_attach(device_t); -static int amdiommu_detach(device_t); +static int amdviiommu_probe(device_t); +static int amdviiommu_attach(device_t); +static int amdviiommu_detach(device_t); static int ivhd_setup_intr(device_t, driver_intr_t, void *, const char *); static int ivhd_teardown_intr(device_t); -static device_method_t amdiommu_methods[] = { +static device_method_t amdviiommu_methods[] = { /* device interface */ - DEVMETHOD(device_probe, amdiommu_probe), - DEVMETHOD(device_attach, amdiommu_attach), - DEVMETHOD(device_detach, amdiommu_detach), + DEVMETHOD(device_probe, amdviiommu_probe), + DEVMETHOD(device_attach, amdviiommu_attach), + DEVMETHOD(device_detach, amdviiommu_detach), DEVMETHOD(ivhd_setup_intr, ivhd_setup_intr), DEVMETHOD(ivhd_teardown_intr, ivhd_teardown_intr), DEVMETHOD_END }; -static driver_t amdiommu_driver = { - "amdiommu", - amdiommu_methods, - sizeof(struct amdiommu_softc), +static driver_t amdviiommu_driver = { + "amdviiommu", + amdviiommu_methods, + sizeof(struct amdviiommu_softc), }; static int -amdiommu_probe(device_t dev) +amdviiommu_probe(device_t dev) { int error; int capoff; @@ -100,7 +100,7 @@ amdiommu_probe(device_t dev) } static int -amdiommu_attach(device_t dev) +amdviiommu_attach(device_t dev) { device_set_desc(dev, "AMD-Vi/IOMMU PCI function"); @@ -108,7 +108,7 @@ amdiommu_attach(device_t dev) } static int -amdiommu_detach(device_t dev) +amdviiommu_detach(device_t dev) { return (0); @@ -118,7 +118,7 @@ static int ivhd_setup_intr(device_t dev, driver_intr_t handler, void *arg, const char *desc) { - struct amdiommu_softc *sc; + struct amdviiommu_softc *sc; int error, msicnt; sc = device_get_softc(dev); @@ -159,7 +159,7 @@ fail: static int ivhd_teardown_intr(device_t dev) { - struct amdiommu_softc *sc; + struct amdviiommu_softc *sc; sc = device_get_softc(dev); @@ -177,5 +177,5 @@ ivhd_teardown_intr(device_t dev) } /* This driver has to be loaded before ivhd */ -DRIVER_MODULE(amdiommu, pci, amdiommu_driver, 0, 0); -MODULE_DEPEND(amdiommu, pci, 1, 1, 1); +DRIVER_MODULE(amdviiommu, pci, amdviiommu_driver, 0, 0); +MODULE_DEPEND(amdviiommu, pci, 1, 1, 1); diff --git a/sys/modules/vmm/Makefile b/sys/modules/vmm/Makefile index 6bb78d055580..48a7dd851032 100644 --- a/sys/modules/vmm/Makefile +++ b/sys/modules/vmm/Makefile @@ -50,7 +50,7 @@ SRCS+= ept.c \ # amd-specific files .PATH: ${SRCTOP}/sys/amd64/vmm/amd SRCS+= vmcb.c \ - amdiommu.c \ + amdviiommu.c \ ivhd_if.c \ ivhd_if.h \ svm.c \ From nobody Sat Nov 9 20:19:19 2024 X-Original-To: dev-commits-src-all@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 4Xm6bW31D2z5ccqY; Sat, 09 Nov 2024 20:19:19 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6bW1xBQz4fHG; Sat, 9 Nov 2024 20:19:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183559; 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=mQoD4tysn682eFbnR5kNQECEGKDZxmGKvV4BIsxcUiM=; b=WGD3LqTA89kDOABjqw4FJSHq7+O8ltC9qSOeLMERGh5ZTyycNMJhEYgv8qhXklDSfmMS0W PL2/BvZaKuuYpEBTwwvJgZZUKn8XUkIdTpVcz6DqQ6wwmizqDr+Iipg95E/4BkFVXplXLb yYkaWlRC16HanSEXGIiDLkovmJTT3GVKUasE91ZFY4mTocc1FTzmT0eobpVqyrE/HC5ekx yWZ3y9kVFZLr0qZYq1K7fMArWdcP76tLJsl+gZsY0USvR9qbeo9CYDyZj5IquhPXjAufjl JA3PdSr1L3vs1eh7qeVK+Mk2+FYLa5PHJhtDquxC4C1x7D4mCssN9ax2RQ9nng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183559; 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=mQoD4tysn682eFbnR5kNQECEGKDZxmGKvV4BIsxcUiM=; b=qqZ7AU3zUGoKJ5Yux/DYys9028dM4RmR16VogVLpkriJybvmKBxmr3I9nWXeA0jSTF7GPC F5xZuvQFbEohus7dDE8wcduAm5EJEoKdHqKy7QO+LFX6C5cU5fWLjmbnEOKHXSk2L5aKCx R0JfJZ+ZTxZHrwlNBBzpklhK0KoDfegRUYhXKs6w92XXB93Qc8qWePuUB9PMKugmlMokYZ 4aeU8NY+ea70N+4+Cliup+Q78E03V1Ep0irWPUYsKYQ4ts9tS0DJpykoIl+OEPM0ueUkbR kKCYW8hPhCvi8/pKrE9CCYtcERWWRlN4CO8aKft7SrJvZl1MSZsGbNkUsd2rnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731183559; a=rsa-sha256; cv=none; b=SW8QBBgVae9n0uOtoW6WLKPT6OtrujtWcSpubOsTGqeU5lzhEw7v23Jm0Geh1J30Q34b2r heihWB8lursOoFRQrmg30+F/vsFmSG6Ytw6H70sHGLE4y23SyAi/OKnM3QnViLcln5Jiir EpovATJe68oeIyHL28x45Y+B9BMqOK4KzKl1TTGS8PI9K8k2qU29msl/1gkaT2Le471+BJ Ot9oOeAH/8F5804wnBWCIjieDPAUrfgnUlP9XOjqcg6mHwPQ4ArRuGdVFn2fQxnwixZRa4 xm15e/9rIVuA8zs1D6tFRjdUgVzKtAoZiRIObdHDqOCEvdi4OQ6+S2VbKhM/BA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6bW1WQFz1RY8; Sat, 9 Nov 2024 20:19:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9KJJIZ033681; Sat, 9 Nov 2024 20:19:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9KJJqv033678; Sat, 9 Nov 2024 20:19:19 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:19:19 GMT Message-Id: <202411092019.4A9KJJqv033678@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: aebd6c32dfae - stable/14 - amdiommu: print more domain information from ddb show List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: aebd6c32dfae9716210aa3195900fbacb63ff2db Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=aebd6c32dfae9716210aa3195900fbacb63ff2db commit aebd6c32dfae9716210aa3195900fbacb63ff2db Author: Konstantin Belousov AuthorDate: 2024-11-03 15:14:54 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:31:28 +0000 amdiommu: print more domain information from ddb show (cherry picked from commit 43bfb4e71483ecb5666e5142b5108999ca888b22) --- sys/x86/iommu/amd_drv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c index 5db7a5225538..513463f21292 100644 --- a/sys/x86/iommu/amd_drv.c +++ b/sys/x86/iommu/amd_drv.c @@ -1100,14 +1100,12 @@ amdiommu_print_domain(struct amdiommu_domain *domain, bool show_mappings) iodom = DOM2IODOM(domain); -#if 0 db_printf( - " @%p dom %d mgaw %d agaw %d pglvl %d end %jx refs %d\n" + " @%p dom %d pglvl %d end %jx refs %d\n" " ctx_cnt %d flags %x pgobj %p map_ents %u\n", - domain, domain->domain, domain->mgaw, domain->agaw, domain->pglvl, + domain, domain->domain, domain->pglvl, (uintmax_t)domain->iodom.end, domain->refs, domain->ctx_cnt, domain->iodom.flags, domain->pgtbl_obj, domain->iodom.entries_cnt); -#endif iommu_db_domain_print_contexts(iodom); From nobody Sat Nov 9 20:19:20 2024 X-Original-To: dev-commits-src-all@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 4Xm6bX5b9mz5ccl9; Sat, 09 Nov 2024 20:19:20 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6bX4VVTz4fMW; Sat, 9 Nov 2024 20:19:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183560; 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=ptPGWG/BFNoDXzCTtDvUhE2rUQpXT9yK+S3RchObdtE=; b=EHLWs4eT/094QXxGQ5Fx3zq0kb0EFKYQ+mZASvCcYjL98Q2xG5seB4MLKGbYb8KP/06t3H OsCpNT1owjzA7UXsgmhR6X+BFs8Rv4VjbO7LLiFjp0YxPaaXcHWN3eimSPiwY0lADJvE+7 p2DlkM6bwaqLZ0mNrwOZiLqQoAlqBhKmvAP3zw4Fr3r9d60xZIkbg7VC6HGDisGYHTdOvC Dg8JiO6G/iY5AV6DDKq+c37QQKeJ99WU/FkR9f+CYxcHXjuZ4JOH18N9D6x4irOb+bMITb 96rovODc8e0C6LY/8eOsrJtGm7GQcRxG+V1BPV+RMxa3W9zYGfz2ya1lM4nU8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183560; 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=ptPGWG/BFNoDXzCTtDvUhE2rUQpXT9yK+S3RchObdtE=; b=pWy724KwytKQIURlNFLDqB8jEu58vuod/rph2SQsFllVXq+6ATxH8FcwLuMRLLmFxS+xyg zjqjlSyDg6OxEYPixN4XB1/nggyjbtSNnDfLEI+Ama8QTCVWLSCmG6JixYt6Jjphawlay5 d56NuQm1mJHnUi84Lx9PiySuVb6Rf3W10pdCTx+wbjklri0puwh8jOItq9fIOIcupJ4pYv dT/eHo98AIIz4sBwj/jw1uGZFcg6e13qMtAhP48NX+rmEMjnnBWTAdFRCdGizalIMmXRbu 90IJP7CYUCoWGtURjV8zq9qJIJDHNTs7MWlGXDITheQsHv2DXay1ywg4tpmASw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731183560; a=rsa-sha256; cv=none; b=Y3a6rjAZiibI/SZcpTMcypjFDAIY9d163kxztiNMkA4PbrmSNaGs+/bPunjWLHiLK57S1N lXMfzGo20jQ5es2h3sjxSMaHTlRlBs82t3lsaRcd2eEt26QHlqUvQYpkBNl8cByG7Neze5 EFs1+M2MGc55fGVQ2o0pj7YJ+lWMVweC1t8naf37QgWQk5yTNIGQID0KQMdPLQgLZjEOWi lfCUdevL2QJzYOZ8yCktQrlRB8QchrLSulKesm5CSNN+b6tCjQTT5MMDzVCMVmRhy0Rajs Er3lv5QjOzZWr43CWyTfMrBv0ycwmR4LapxismBmYdNdfOaAjClGV0LlrSFtgg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6bX2ZZ2z1RBZ; Sat, 9 Nov 2024 20:19:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9KJKdp033720; Sat, 9 Nov 2024 20:19:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9KJKvt033716; Sat, 9 Nov 2024 20:19:20 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:19:20 GMT Message-Id: <202411092019.4A9KJKvt033716@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: ae81fb2db3df - stable/14 - iommu: eliminate iommu_free_ctx() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: ae81fb2db3df71e96fc154c72a1327dd3675f1a6 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ae81fb2db3df71e96fc154c72a1327dd3675f1a6 commit ae81fb2db3df71e96fc154c72a1327dd3675f1a6 Author: Konstantin Belousov AuthorDate: 2024-11-03 14:50:01 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:31:28 +0000 iommu: eliminate iommu_free_ctx() iommu_free_ctx_locked() alone is enough Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week (cherry picked from commit d97838b7c2a605932b6edf36f87abe7ccce74314) --- sys/arm64/iommu/iommu.c | 19 +++---------------- sys/dev/iommu/busdma_iommu.c | 10 ++++++++-- sys/x86/iommu/amd_ctx.c | 19 ------------------- sys/x86/iommu/amd_drv.c | 1 - sys/x86/iommu/amd_iommu.h | 1 - sys/x86/iommu/intel_ctx.c | 19 ------------------- sys/x86/iommu/intel_dmar.h | 1 - sys/x86/iommu/intel_drv.c | 1 - sys/x86/iommu/iommu_utils.c | 6 ------ sys/x86/iommu/x86_iommu.h | 1 - 10 files changed, 11 insertions(+), 67 deletions(-) diff --git a/sys/arm64/iommu/iommu.c b/sys/arm64/iommu/iommu.c index eb682a4a623f..afb5c7c5e152 100644 --- a/sys/arm64/iommu/iommu.c +++ b/sys/arm64/iommu/iommu.c @@ -375,32 +375,19 @@ void iommu_free_ctx_locked(struct iommu_unit *iommu, struct iommu_ctx *ioctx) { struct bus_dma_tag_iommu *tag; + int error; IOMMU_ASSERT_LOCKED(iommu); tag = ioctx->tag; IOMMU_CTX_FREE(iommu->dev, ioctx); + IOMMU_UNLOCK(iommu); free(tag, M_IOMMU); -} - -void -iommu_free_ctx(struct iommu_ctx *ioctx) -{ - struct iommu_unit *iommu; - struct iommu_domain *iodom; - int error; - - iodom = ioctx->domain; - iommu = iodom->iommu; - - IOMMU_LOCK(iommu); - iommu_free_ctx_locked(iommu, ioctx); - IOMMU_UNLOCK(iommu); /* Since we have a domain per each ctx, remove the domain too. */ - error = iommu_domain_free(iodom); + error = iommu_domain_free(ioctx->domain); if (error) device_printf(iommu->dev, "Could not free a domain\n"); } diff --git a/sys/dev/iommu/busdma_iommu.c b/sys/dev/iommu/busdma_iommu.c index dbd4ee0ef0f1..8c97965bcdf1 100644 --- a/sys/dev/iommu/busdma_iommu.c +++ b/sys/dev/iommu/busdma_iommu.c @@ -400,6 +400,8 @@ iommu_bus_dma_tag_destroy(bus_dma_tag_t dmat1) { struct bus_dma_tag_iommu *dmat, *parent; struct bus_dma_tag_iommu *dmat_copy __unused; + struct iommu_unit *iommu; + struct iommu_ctx *ctx; int error; error = 0; @@ -414,8 +416,12 @@ iommu_bus_dma_tag_destroy(bus_dma_tag_t dmat1) parent = (struct bus_dma_tag_iommu *)dmat->common.parent; if (atomic_fetchadd_int(&dmat->common.ref_count, -1) == 1) { - if (dmat == dmat->ctx->tag) - iommu_free_ctx(dmat->ctx); + ctx = dmat->ctx; + if (dmat == ctx->tag) { + iommu = ctx->domain->iommu; + IOMMU_LOCK(iommu); + iommu_free_ctx_locked(iommu, dmat->ctx); + } free(dmat->segments, M_IOMMU_DMAMAP); free(dmat, M_DEVBUF); dmat = parent; diff --git a/sys/x86/iommu/amd_ctx.c b/sys/x86/iommu/amd_ctx.c index 81e284373fc8..7f0e67f37eef 100644 --- a/sys/x86/iommu/amd_ctx.c +++ b/sys/x86/iommu/amd_ctx.c @@ -398,16 +398,6 @@ amdiommu_free_ctx_locked(struct amdiommu_unit *unit, struct amdiommu_ctx *ctx) amdiommu_unref_domain_locked(unit, domain); } -static void -amdiommu_free_ctx(struct amdiommu_ctx *ctx) -{ - struct amdiommu_unit *unit; - - unit = CTX2AMD(ctx); - AMDIOMMU_LOCK(unit); - amdiommu_free_ctx_locked(unit, ctx); -} - static void amdiommu_unref_domain_locked(struct amdiommu_unit *unit, struct amdiommu_domain *domain) @@ -628,12 +618,3 @@ amdiommu_free_ctx_locked_method(struct iommu_unit *iommu, ctx = IOCTX2CTX(context); amdiommu_free_ctx_locked(unit, ctx); } - -void -amdiommu_free_ctx_method(struct iommu_ctx *context) -{ - struct amdiommu_ctx *ctx; - - ctx = IOCTX2CTX(context); - amdiommu_free_ctx(ctx); -} diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c index 513463f21292..2c544dfb60a6 100644 --- a/sys/x86/iommu/amd_drv.c +++ b/sys/x86/iommu/amd_drv.c @@ -1072,7 +1072,6 @@ static struct x86_iommu amd_x86_iommu = { .domain_unload = amdiommu_domain_unload, .get_ctx = amdiommu_get_ctx, .free_ctx_locked = amdiommu_free_ctx_locked_method, - .free_ctx = amdiommu_free_ctx_method, .alloc_msi_intr = amdiommu_alloc_msi_intr, .map_msi_intr = amdiommu_map_msi_intr, .unmap_msi_intr = amdiommu_unmap_msi_intr, diff --git a/sys/x86/iommu/amd_iommu.h b/sys/x86/iommu/amd_iommu.h index 2b0db4f8fe6d..64dd13db9745 100644 --- a/sys/x86/iommu/amd_iommu.h +++ b/sys/x86/iommu/amd_iommu.h @@ -222,7 +222,6 @@ struct amdiommu_ctx *amdiommu_find_ctx_locked(struct amdiommu_unit *unit, uint16_t rid); void amdiommu_free_ctx_locked_method(struct iommu_unit *iommu, struct iommu_ctx *context); -void amdiommu_free_ctx_method(struct iommu_ctx *context); struct amdiommu_domain *amdiommu_find_domain(struct amdiommu_unit *unit, uint16_t rid); diff --git a/sys/x86/iommu/intel_ctx.c b/sys/x86/iommu/intel_ctx.c index c7c7012e94ea..ae74d0456b25 100644 --- a/sys/x86/iommu/intel_ctx.c +++ b/sys/x86/iommu/intel_ctx.c @@ -804,16 +804,6 @@ dmar_free_ctx_locked(struct dmar_unit *dmar, struct dmar_ctx *ctx) TD_PINNED_ASSERT; } -static void -dmar_free_ctx(struct dmar_ctx *ctx) -{ - struct dmar_unit *dmar; - - dmar = CTX2DMAR(ctx); - DMAR_LOCK(dmar); - dmar_free_ctx_locked(dmar, ctx); -} - /* * Returns with the domain locked. */ @@ -942,12 +932,3 @@ dmar_free_ctx_locked_method(struct iommu_unit *iommu, ctx = IOCTX2CTX(context); dmar_free_ctx_locked(dmar, ctx); } - -void -dmar_free_ctx_method(struct iommu_ctx *context) -{ - struct dmar_ctx *ctx; - - ctx = IOCTX2CTX(context); - dmar_free_ctx(ctx); -} diff --git a/sys/x86/iommu/intel_dmar.h b/sys/x86/iommu/intel_dmar.h index 1a9b5041975c..57a66aae69b2 100644 --- a/sys/x86/iommu/intel_dmar.h +++ b/sys/x86/iommu/intel_dmar.h @@ -237,7 +237,6 @@ struct dmar_ctx *dmar_get_ctx_for_devpath(struct dmar_unit *dmar, uint16_t rid, int dmar_move_ctx_to_domain(struct dmar_domain *domain, struct dmar_ctx *ctx); void dmar_free_ctx_locked_method(struct iommu_unit *dmar, struct iommu_ctx *ctx); -void dmar_free_ctx_method(struct iommu_ctx *ctx); struct dmar_ctx *dmar_find_ctx_locked(struct dmar_unit *dmar, uint16_t rid); struct iommu_ctx *dmar_get_ctx(struct iommu_unit *iommu, device_t dev, uint16_t rid, bool id_mapped, bool rmrr_init); diff --git a/sys/x86/iommu/intel_drv.c b/sys/x86/iommu/intel_drv.c index 22d04029f9ae..b21c8460e830 100644 --- a/sys/x86/iommu/intel_drv.c +++ b/sys/x86/iommu/intel_drv.c @@ -1317,7 +1317,6 @@ static struct x86_iommu dmar_x86_iommu = { .domain_unload = dmar_domain_unload, .get_ctx = dmar_get_ctx, .free_ctx_locked = dmar_free_ctx_locked_method, - .free_ctx = dmar_free_ctx_method, .find = dmar_find_method, .alloc_msi_intr = dmar_alloc_msi_intr, .map_msi_intr = dmar_map_msi_intr, diff --git a/sys/x86/iommu/iommu_utils.c b/sys/x86/iommu/iommu_utils.c index 479e8637ee8e..2db02a98ca91 100644 --- a/sys/x86/iommu/iommu_utils.c +++ b/sys/x86/iommu/iommu_utils.c @@ -288,12 +288,6 @@ iommu_free_ctx_locked(struct iommu_unit *iommu, struct iommu_ctx *context) x86_iommu->free_ctx_locked(iommu, context); } -void -iommu_free_ctx(struct iommu_ctx *context) -{ - x86_iommu->free_ctx(context); -} - struct iommu_unit * iommu_find(device_t dev, bool verbose) { diff --git a/sys/x86/iommu/x86_iommu.h b/sys/x86/iommu/x86_iommu.h index 835a4623a95e..1c9ad6529d47 100644 --- a/sys/x86/iommu/x86_iommu.h +++ b/sys/x86/iommu/x86_iommu.h @@ -81,7 +81,6 @@ struct x86_iommu { device_t dev, uint16_t rid, bool id_mapped, bool rmrr_init); void (*free_ctx_locked)(struct iommu_unit *iommu, struct iommu_ctx *context); - void (*free_ctx)(struct iommu_ctx *context); struct iommu_unit *(*find)(device_t dev, bool verbose); int (*alloc_msi_intr)(device_t src, u_int *cookies, u_int count); int (*map_msi_intr)(device_t src, u_int cpu, u_int vector, From nobody Sat Nov 9 20:19:21 2024 X-Original-To: dev-commits-src-all@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 4Xm6bY5Zrlz5ccqd; Sat, 09 Nov 2024 20:19:21 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm6bY4mDpz4fFJ; Sat, 9 Nov 2024 20:19:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183561; 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=Xz6161b2jCdMB9icPa5c9o+iezpriAHeyTcanlDHs+4=; b=omX94g0VQhuDARbxD7Ws/Krs+Lp6lw0lWQ1o6yfZ+8m8pRuoFbHOfLq9+HMBLF458vbkhG 7sdK3n8HvMDHEMlDun9usgBTr5N7nLBszzBHR4mDJ+FfMvUTFM5sLKULzsUPgfrbDdVY7L eoeCydnvissr1RLSnK2dDOi/9Re/NzfsVVbejaHxVUhhO4DtihVuJIGbqZfM7sziOe8rxl k4v9vT7DjxcfUUhwSr04tDfVlYEgqK7dV/3M8Jqv/WSyq2dKJ9jYEk7cNcXRis0zbGzBbf 4HWQMt945sdACHfT11tHOTFXIdlHGAn+4BWQbmJIbuk0Np4qkxD2GSprg2bZYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731183561; 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=Xz6161b2jCdMB9icPa5c9o+iezpriAHeyTcanlDHs+4=; b=HeE0Ja6FEOjY/DCDX1j01ikfgycYjCitVXQNo+28xOzoz/y711MI51jh/Go3jPMNnkE6Bn bc/u0dkQG++BUtzhrPqRyOwpVwDO0L/rO/WKrfgUeIX/3Tbqyr4oBoERUDCJ3pnuig0+70 0O5rGN2JUTUhBanSSM78nGFewVftJIADCxSJ7q4+m69uknjJjDpS9RrFzRQ9nzmTz3a05c irMqsf46nCXGL+YsFUfDUKYIyCEivEcO+i3yHzxgDvm+R6B2vv7qKOVdDfoneOU6yXiQW+ Dbc9/a3zRr/pf4M+8AoerYCW5dyeUc3bF8HjvAlOU/o+gRuQip0qrqtmlsgWcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731183561; a=rsa-sha256; cv=none; b=DBWLaPVwIBhqbZU+jroMEC7JaAXx9WONLB5MBDbrrNo4QGwopy3Jf/aknhG2CmleIhqbAm zT/64q0Cx0b0mZU66D1Sr3FeX2IuzjrPYNYd0y5JBJQmGomvIwH5EcllUc+fQN62ifP7ev tisfbTdY17vwEdrUr0u0GtO+XrKEIQ0pWM6icl6kdQ28z6TnSNo5xak/YBULr6Eod8TXNf OzrfPKDWBbM9C7ZXBPOH0X2ETweewICvJPExAdSiebDHBH3jnLtb6+/NRINyxer4RUZiwc +iwbibD8/tDKpyf6c1HEiQoIC/dOCQ/nGq2QO8fVmP8iBaz/dX9EY7LdI9S77w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm6bY34Qjz1RBb; Sat, 9 Nov 2024 20:19:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9KJL1B033774; Sat, 9 Nov 2024 20:19:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9KJLPS033771; Sat, 9 Nov 2024 20:19:21 GMT (envelope-from git) Date: Sat, 9 Nov 2024 20:19:21 GMT Message-Id: <202411092019.4A9KJLPS033771@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 0a500beeb03b - stable/14 - iommu: Clean up a lingering function prototype List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0a500beeb03b7a4e39258b402eccf96cff34ead1 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0a500beeb03b7a4e39258b402eccf96cff34ead1 commit 0a500beeb03b7a4e39258b402eccf96cff34ead1 Author: Mark Johnston AuthorDate: 2024-11-04 19:38:22 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:31:28 +0000 iommu: Clean up a lingering function prototype (cherry picked from commit ff84f8b536ceaa9a16b4dca94a1856300be0216b) --- sys/x86/iommu/intel_ctx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/x86/iommu/intel_ctx.c b/sys/x86/iommu/intel_ctx.c index ae74d0456b25..79ab907136e3 100644 --- a/sys/x86/iommu/intel_ctx.c +++ b/sys/x86/iommu/intel_ctx.c @@ -77,7 +77,6 @@ static void dmar_unref_domain_locked(struct dmar_unit *dmar, static void dmar_domain_destroy(struct dmar_domain *domain); static void dmar_free_ctx_locked(struct dmar_unit *dmar, struct dmar_ctx *ctx); -static void dmar_free_ctx(struct dmar_ctx *ctx); static void dmar_ensure_ctx_page(struct dmar_unit *dmar, int bus) From nobody Sat Nov 9 21:07:58 2024 X-Original-To: dev-commits-src-all@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 4Xm7gg16x5z5cgBX; Sat, 09 Nov 2024 21:07:59 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm7gg0VPMz4lk3; Sat, 9 Nov 2024 21:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731186479; 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=uLWkkjfr09SLxOgEbKGjeSXJeV3CT6LS0PE5CqUqWPM=; b=hCKKyUEViGh/2NcswMAJX8w0/+NMdCtdNBRHcXK5mhgjEXXTxOmA4LiiLDJ5leNxDdiIWC PEamBq5N3fNepmaCT+AjIpuzCHaEvjp6VqFRALNpZHKLaoTe+o0dEzZP7H2UtoTcPZBRka RzJNgtSzwRNjZ+GBydFxJ5SnCDu/AOdRc70jqiAcE4YesXCM7dhlhM0gLH65BLIs4yNQwD Ilchl5nVpXpdEWp80g6ghCVFmhOeDnkliqXEAfnUBoeXvAclNBn7cVzJfK+wyOl8uf8maE WnRxLq/cS5JE7ZQi9yXA0CtmGBDoPg8XAbWs36DKfUlJ5JHdUHMuF4e9e4+m/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731186479; 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=uLWkkjfr09SLxOgEbKGjeSXJeV3CT6LS0PE5CqUqWPM=; b=fBHFcABvXnlfMi1rXAg6nnw8OyedTXKW5DPHfLw+/23jWsFtGh8+I0x5iiEolRhRlUiOWd 0JANQPOIf5hbcneCxXju6ZCgBkFzLvu1RpR5l6MWTObIALK/AUc0WBpCU7/R0QGQFckNUv fn4Z19Lk8rC+wnzxv7ALmidfYmLagjReOw68iHlfWssPfqQSCdssepWUXGMPFQBzwbxrJJ r0cfb76QxNjMYQrLZcsqSrAlywn5VB1AxqIFw1N0oEcdm2ethn9qILB/U4OFBukWXS5rUH W4s/IWmukL9vxLnGrZor2jjFWBvgiD3jyT4/Y9wc7Ey2eneogUOPGgxkYhEXew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731186479; a=rsa-sha256; cv=none; b=NEKB623YpV8GjNU+L/Zua2ApFTyJJJyb5QyIE/no6/sMA5XX3jONq7yE4qVzBwrfj3SULi 0kxpxjFw+X/tjdwxdevkVeVonkFzSqAwq+Bvi3sOIlbDmK7bSmH0KZdh/546/KKJzrcjJ2 bx7bvtur0SBW5Sg1VghmUPxoHFpfFm79k2sK1z7nK0jLep91NEdAegw3uiK+uY3lMRd0Ad WQJtwMyjMS2QOGpVUXFzwGTnkhhTTrK9747YeQST78LoDbaF6oH6pSs5bOHIBiyRJphtXY mlbS+wlzQ0zVeyc5PftGH9Grd0/cXD9KOgpN+BHiabYRNWmgKzcwj2/90HCrVA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm7gf70CZz1SPx; Sat, 9 Nov 2024 21:07:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9L7wjM026249; Sat, 9 Nov 2024 21:07:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9L7wU2026246; Sat, 9 Nov 2024 21:07:58 GMT (envelope-from git) Date: Sat, 9 Nov 2024 21:07:58 GMT Message-Id: <202411092107.4A9L7wU2026246@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 1bca58a1d40d - main - amdiommu: hide HPET report under verbose List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1bca58a1d40d10c7cdd14b2988924cadd6efdc43 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1bca58a1d40d10c7cdd14b2988924cadd6efdc43 commit 1bca58a1d40d10c7cdd14b2988924cadd6efdc43 Author: Konstantin Belousov AuthorDate: 2024-11-09 21:06:06 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 21:07:41 +0000 amdiommu: hide HPET report under verbose Reported by: markj Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/x86/iommu/amd_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c index 257de73baab5..d8f3c25fcae0 100644 --- a/sys/x86/iommu/amd_drv.c +++ b/sys/x86/iommu/amd_drv.c @@ -1001,8 +1001,9 @@ amdiommu_find_unit_for_hpet(device_t hpet, struct amdiommu_unit **unitp, res = amdiommu_ivrs_iterate_tbl(amdiommu_find_unit_scan_0x11, amdiommu_find_unit_scan_0x11, amdiommu_find_unit_scan_0x10, &ifu); if (!res) { - printf("amdiommu cannot match hpet no %d in IVHD\n", - hpet_no); + if (verbose) + printf("amdiommu cannot match hpet no %d in IVHD\n", + hpet_no); return (ENXIO); } From nobody Sat Nov 9 21:48:26 2024 X-Original-To: dev-commits-src-all@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 4Xm8ZM1Nkbz5cjJw; Sat, 09 Nov 2024 21:48:27 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm8ZL69fGz4nTx; Sat, 9 Nov 2024 21:48:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731188906; 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=qdKyTffyR1A+i9mu2D5A6xM90N3MshzUnITDSJTHRLo=; b=C3OWnAkGSnQnOFlHEOnoCxs/co5PmfUqnZMlEhJnmvQtD7YO+APMXxzt8jOGgJl8aZHELn jfq7kFbhIXPcaV6o/mn6AK3FdyRqbTraKnu4XwYcuBQuTkNAaSvhC+OEX09I91vjxz8i2Q ivV/sQlpMrlKycsYFGuxHto9HDQw/35djdFBBPzs1Id9n1RhrwTEjvd4QnghDjs9dpLnHx XzvrkdfWfrTmKFA3ZvFzYbiXr0UxmG69Mob07V1W7xB9sdT5FnAH1RG0JBAzfYOmFNIp2h wOYCTIqp0sHbmp9mwk/9kwfctVrJjHfFwZyOHbi60pmzoIWMq2+az53hBa1q+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731188906; 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=qdKyTffyR1A+i9mu2D5A6xM90N3MshzUnITDSJTHRLo=; b=WyPDQkZ35Wx6ZF+YdkZ9Bn+WsyUNpQwp0u33EXIcwOStYVV/BiMXFzH9jz/oluMKLcqmnW Owgnc+XQdEM2D5uHSoZWHOr7SQ4dnjrUkqHM0Yh/qtLwbkOVJPl9m8E9iSXH1fBEko5lPf 1bmV2qCy4lYg+H2SPrHZKGbH0gcwN8ojnwWqIoh/zErLm0kdPvCPysNJ42XPfAQzqW2Sqg g4/Nd1Yk2Lup6IvhvBpYWnO1T2qqbeZFRwoOc5hkr4qKzlF6aHYTyQvFifKzUaxA1V5fR9 nalBAvcaf2mAy0BrOcHzrE5+TVeOHUtO5Tego2VawEP7RiAZm8Gv2gIVEOXOyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731188906; a=rsa-sha256; cv=none; b=LFkBDa98olrOMET4MnImb8d8B+SQX0fK2BDSWXboxht/Koh/KdD7mttbHyIAneaQlryPD+ faQZs9QjTUUKmNWZbcNOaU9LD8GAzfskY279IpwvaqWRsHl1HJEU7HC/o22HAdigqU7ao0 K+b16dvWhZuLgaoORFfUZstro6nZ72EH4npil6uB+Jv8eXY8YjZ6o6HVsDpnAc/GXDiscW zXyhBdbZCr7Fa3qc1rLAws7huqK2fCR1voJgfoebHKB3RMpmW82UogAL6jsNhcub2UdslW uWAYwT+bV94bT/I62PVw15BDx50tWfKBDBLfaAdSw3ZJDJbZTHm5YnJeNUyqLg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm8ZL5f70zDsS; Sat, 9 Nov 2024 21:48:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9LmQ2q099533; Sat, 9 Nov 2024 21:48:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9LmQ2o099530; Sat, 9 Nov 2024 21:48:26 GMT (envelope-from git) Date: Sat, 9 Nov 2024 21:48:26 GMT Message-Id: <202411092148.4A9LmQ2o099530@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: edab5a280e0b - main - LinuxKPI: 802.11: improve lladdr change to not use ifnet internals List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: edab5a280e0b4a53d0f3e34957075c7efe048e8d Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=edab5a280e0b4a53d0f3e34957075c7efe048e8d commit edab5a280e0b4a53d0f3e34957075c7efe048e8d Author: Bjoern A. Zeeb AuthorDate: 2024-11-08 21:24:00 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-11-09 21:45:14 +0000 LinuxKPI: 802.11: improve lladdr change to not use ifnet internals The changes from 4aff4048 were based on net80211 which is still using if_private.h details. Adjust the code to no longer depend on internal details of ifnet. We also switch the "check"-functionn from if_init to if_transmit which we can query. Given we do have a per-vif eventhandler we could do without that check but would still need to check if_getflags() for IFF_UP. Sponsored by: The FreeBSD Foundation Reported by: jhibbits Fixes: 4aff4048 MFC after: 3 days Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D47490 --- sys/compat/linuxkpi/common/src/linux_80211.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index ec471db21efd..9d0166829d52 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -2763,6 +2763,10 @@ lkpi_ic_wme_update(struct ieee80211com *ic) * we do use a per-[l]vif event handler to be sure we exist as we * cannot assume that from every vap derives a vif and we have a hard * time checking based on net80211 information. + * Should this ever become a real problem we could add a callback function + * to wlan_iflladdr() to be set optionally but that would be for a + * single-consumer (or needs a list) -- was just too complicated for an + * otherwise perfect mechanism FreeBSD already provides. */ static void lkpi_vif_iflladdr(void *arg, struct ifnet *ifp) @@ -2771,8 +2775,9 @@ lkpi_vif_iflladdr(void *arg, struct ifnet *ifp) struct ieee80211_vif *vif; NET_EPOCH_ENTER(et); - /* NB: identify vap's by if_init; left as an extra check. */ - if (ifp->if_init != ieee80211_init || (ifp->if_flags & IFF_UP) != 0) { + /* NB: identify vap's by if_transmit; left as an extra check. */ + if (if_gettransmitfn(ifp) != ieee80211_vap_transmit || + (if_getflags(ifp) & IFF_UP) != 0) { NET_EPOCH_EXIT(et); return; } From nobody Sat Nov 9 22:32:56 2024 X-Original-To: dev-commits-src-all@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 4Xm9Yh5K1xz5cldx; Sat, 09 Nov 2024 22:32:56 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xm9Yh4Ht6z4tCc; Sat, 9 Nov 2024 22:32:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731191576; 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=RiOBtoY1a3WJB7fa4dNeAJj/MAVafVsZCIojJyzWquo=; b=w5+L1QR3Gsyjsi0sv48ZcSRAO7K2l8pcvXj7PpGT7c4w4nH6wx+RHGXZefhLS7DdtGFvc/ 0wJ7f0FSBrIhd1G/MgNTyrWlFpNYMU7YZnBhR+cAUnyFcqrbp6B9GsG0SYlSxqGbGmHQc8 PV+SBRRTi+CYQfAuHzDgjEuzUQqoH5AH3Ds5eQ1LTaPvlv0DyPBqWlrENjsYfKwh1Z32xq HBKtHRzfJxfoW0c/HMK+JQt5ihQOgVPB8CGbUF0G4qAmTvQcTK+69LCJpkMemLW3JS37tE MYRtfUz64RdB6ZWrxSWeADl6b/ChOU1aJGj0RBcUJ8jVD6SJ1rx1tma8PyA13A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731191576; 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=RiOBtoY1a3WJB7fa4dNeAJj/MAVafVsZCIojJyzWquo=; b=qDTIIXMnE3B8Y28BVlpKiIbc4HMJasDJfMH+zM6dsalQd7hPYK9agxMZilo6AaWdQQOMCT lSnQSP20HkGKqH67nsiw+67qWVoHP9Kt/Fgi16eqRctUZURPhmLlJarMQKJ2YMtCpMy+Zb C0c91AU6vEI2FdgIv5zVSja2udoZKrmr2YE4S4o+ca8yNs90QE/B4IXNwPNKHBwkZn1OGz bp0ocr2lp52X9m1QucBwlK8cUE/yV/aaQu2lm0AqBrDN0yjq/m9Yz4GHPfzyhWFUBcH7zw 4EXcAeeRyrAc+y/y9eefs0dN1xXuTBmO+pCEGhdEtnbdS+gcFOpjbr96CP5HWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731191576; a=rsa-sha256; cv=none; b=tXLBKTt79+vnkrwLelkFDg0oIOefIWRvMfOrasU3X/vGJn6o60aEaTqU6TdKMzFyC7jinE DK1VDTvYG5xESpgWC4Z6azPMewk+N5fi4Ea8w6TITYrNWVucPO1qYM3TvRGWn9HdC1FlFb CaWFnYx2nZodV3HMDeyOv8n/k9utIgIK0rZu3GimAKzppHA5JaDT+rZYCp8UuhoRYdVm4D hTEcLvUhXJSjPUWLw0J73zpB37yrRdfNIY43sDjtErs4yKDQ1pRx5Q8mi54QadCqV9fGvf KKzz61+TeoE4WfM+ep2ARaOXIBIdCErsrilnSlOkoz5Z73IWgsicGSor0MAzow== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xm9Yh3vZgzG8j; Sat, 9 Nov 2024 22:32:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A9MWu7m091024; Sat, 9 Nov 2024 22:32:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A9MWubs091021; Sat, 9 Nov 2024 22:32:56 GMT (envelope-from git) Date: Sat, 9 Nov 2024 22:32:56 GMT Message-Id: <202411092232.4A9MWubs091021@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 9805e5b071a1 - main - amdiommu: short-circuit all amdiommu_find_unit() functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9805e5b071a10711cfcd3c7a750ac4a4d14b6e3f Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9805e5b071a10711cfcd3c7a750ac4a4d14b6e3f commit 9805e5b071a10711cfcd3c7a750ac4a4d14b6e3f Author: Konstantin Belousov AuthorDate: 2024-11-09 22:29:20 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 22:32:37 +0000 amdiommu: short-circuit all amdiommu_find_unit() functions for the case where amdiommu is not enabled. In this case, it does not matter if IVHD does not describe some device. Similarly, no unit can be found for a device, because units are not instantiated, but it does not matter. Reported by: mav Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/x86/iommu/amd_drv.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c index d8f3c25fcae0..d35c6c8dddc8 100644 --- a/sys/x86/iommu/amd_drv.c +++ b/sys/x86/iommu/amd_drv.c @@ -879,6 +879,9 @@ amdiommu_find_unit(device_t dev, struct amdiommu_unit **unitp, uint16_t *ridp, int error, flags; bool res; + if (!amdiommu_enable) + return (ENXIO); + if (device_get_devclass(device_get_parent(dev)) != devclass_find("pci")) return (ENXIO); @@ -943,6 +946,9 @@ amdiommu_find_unit_for_ioapic(int apic_id, struct amdiommu_unit **unitp, device_t apic_dev; bool res; + if (!amdiommu_enable) + return (ENXIO); + bzero(&ifu, sizeof(ifu)); ifu.type = IFU_DEV_IOAPIC; ifu.devno = apic_id; @@ -992,6 +998,9 @@ amdiommu_find_unit_for_hpet(device_t hpet, struct amdiommu_unit **unitp, int hpet_no; bool res; + if (!amdiommu_enable) + return (ENXIO); + hpet_no = hpet_get_uid(hpet); bzero(&ifu, sizeof(ifu)); ifu.type = IFU_DEV_HPET; @@ -1042,7 +1051,7 @@ amdiommu_find_method(device_t dev, bool verbose) error = amdiommu_find_unit(dev, &unit, &rid, &dte, &edte, verbose); if (error != 0) { - if (verbose) + if (verbose && amdiommu_enable) device_printf(dev, "cannot find amdiommu unit, error %d\n", error); From nobody Sun Nov 10 01:42:18 2024 X-Original-To: dev-commits-src-all@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 4XmFmC2ck1z5c1GF; Sun, 10 Nov 2024 01:42:19 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmFmC0nFWz3wnY; Sun, 10 Nov 2024 01:42:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731202939; 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=af2rlac4WFAirUHsmY52FcSkXERvO9eEOypCXIDLZog=; b=vVTSGHACzQNnxu36ftb9c1DEiQNEhH4Y3HUBpK2zjSJ7SIAi08q+92xzTfzmGUYt3UH9hl vkWhtQZP4ZPPIriEtGB2qKKivQR9kF+rro1GgHkrd2ebYdx9tep56apBUd2clRdM8PhEXP VurEpjyi7mIYhFHEf4oJ4Aw4GCst2aClA8emlHShoxJglGAvkwZKLICWSeShIP5WwXbSQC nti9ehwXgyQtaSCUkKw1DdWXKplUasY4hSY94rJ87qcOYnWToKxnOrEZehLxguqEbd2JnQ EH1KBX3Oge3gDG22ibiNZrXE7akNRUENR3WOi1iums8xnXCX4zWw6mQLl0h43Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731202939; 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=af2rlac4WFAirUHsmY52FcSkXERvO9eEOypCXIDLZog=; b=eMzgOd1Q8hbNBF+s3DsRDn4L5c6ydwzbDBZMSfXfVHDcvKvLKxHV4bXrvoAeYVbjwrPjSS sZ9Syz2WaR4jpZiXI+XeTZopOE7PUovW+wYVIdoxxfCIk3zeLgzHW3FosgPYEdHucKlePH EcH6lucSs/XCDGMnpgNX5XifBMbEvavif2h/Isr9i+LRb0nI17+nytr3JLJkmexLrf2H9e GRA0TePMjm4CQbaIxWhm2tw3merNNE7TLHYG05CqJPeQ4ozMXHZM4L1WHAy+2GPxJVsLYI tDmkxxsvM9MFaIQTkLuo8wNHXqz3nmIjM7RmwUH22ocJr9v3/rJOVV9IjEVLQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731202939; a=rsa-sha256; cv=none; b=m7xCr4lT9h1yIiZhcFO9bVCsIM6zWAy5UBxdwSK3vUTy3RtiDiMxk65pD3SNUGa7GZZtAo mMj1zw7JwJr/tk0ODwVG/O9nxwwje7a/Cq4lLYHUlKCG0eczI6nGzy/RAAMbxpgn3CP83Q 9WJyUY+TsxuArxw29VWWK8mdiztwBDPsYNwwh3q5MEZP7T2M+fVpHPlA4f2apbWAF0koYy e/mQCUQ6ElGGwSp7EtlAPUI1mD3Z2GMmlAziVdwdYoFHKi9SICJoBvcYckMAa3HFSCnfyW ZxndxGoNJPP3Bd8R+Vk5qI917SYrEhIHOHYU6hmWjbCbYSES1gHprfT6b1pmzQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XmFmB6ywMzMyn; Sun, 10 Nov 2024 01:42:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AA1gIx9042330; Sun, 10 Nov 2024 01:42:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AA1gIjm042327; Sun, 10 Nov 2024 01:42:18 GMT (envelope-from git) Date: Sun, 10 Nov 2024 01:42:18 GMT Message-Id: <202411100142.4AA1gIjm042327@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 27f51b8c5111 - stable/14 - libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 27f51b8c5111975bbf1421dbb1ca25e09053450f Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=27f51b8c5111975bbf1421dbb1ca25e09053450f commit 27f51b8c5111975bbf1421dbb1ca25e09053450f Author: Konstantin Belousov AuthorDate: 2024-11-03 14:12:13 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:31:29 +0000 libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8 (cherry picked from commit e2864e7189781d742b6899d110b565c9744bb948) --- lib/libc/nls/Makefile.inc | 1 + lib/libc/nls/ru_RU.UTF-8.msg | 265 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 266 insertions(+) diff --git a/lib/libc/nls/Makefile.inc b/lib/libc/nls/Makefile.inc index 0d4c245c6911..f26e04c187a5 100644 --- a/lib/libc/nls/Makefile.inc +++ b/lib/libc/nls/Makefile.inc @@ -32,6 +32,7 @@ NLS+= no_NO.ISO8859-1 NLS+= pl_PL.ISO8859-2 NLS+= pt_BR.ISO8859-1 NLS+= ru_RU.KOI8-R +NLS+= ru_RU.UTF-8 NLS+= sk_SK.ISO8859-2 NLS+= sv_SE.ISO8859-1 NLS+= uk_UA.UTF-8 diff --git a/lib/libc/nls/ru_RU.UTF-8.msg b/lib/libc/nls/ru_RU.UTF-8.msg new file mode 100644 index 000000000000..cda0909aa76c --- /dev/null +++ b/lib/libc/nls/ru_RU.UTF-8.msg @@ -0,0 +1,265 @@ +$ +$ Message catalog for ru_RU.KOI8-R locale +$ +$ strerror() support catalog +$ +$set 1 +$ EPERM +1 Операция не разрешена +$ ENOENT +2 Нет такого файла или каталога +$ ESRCH +3 Нет такого процесса +$ EINTR +4 Прерванный системный вызов +$ EIO +5 Ошибка ввода/вывода +$ ENXIO +6 Устройство не сконфигурировано +$ E2BIG +7 Слишком длинный список аргументов +$ ENOEXEC +8 Ошибка формата выполняемого файла +$ EBADF +9 Некорректный дескриптор файла +$ ECHILD +10 Нет порожденных процессов +$ EDEADLK +11 Предотвращена взаимная блокировка при доступе к ресурсу +$ ENOMEM +12 Невозможно выделить память +$ EACCES +13 Недостаточно привилегий +$ EFAULT +14 Некорректный адрес +$ ENOTBLK +15 Необходимо указать блочное устройство +$ EBUSY +16 Устройство занято +$ EEXIST +17 Файл существует +$ EXDEV +18 Ссылка на другое устройство +$ ENODEV +19 Операция не поддерживается устройством +$ ENOTDIR +20 Указанный файл не является каталогом +$ EISDIR +21 Указанный файл является каталогом +$ EINVAL +22 Недопустимый аргумент +$ ENFILE +23 Слишком много открытых файлов в системе +$ EMFILE +24 Слишком много открытых файлов +$ ENOTTY +25 Вызов ioctl не поддерживается устройством +$ ETXTBSY +26 Текстовый файл занят +$ EFBIG +27 Слишком большой файл +$ ENOSPC +28 На устройстве не осталось места +$ ESPIPE +29 Недопустимое смещение +$ EROFS +30 Файловая система только для чтения +$ EMLINK +31 Слишком много ссылок +$ EPIPE +$ XXX??? +32 Канал разрушен +$ EDOM +33 Недопустимое значение числового аргумента +$ ERANGE +34 Слишком большой результат +$ EAGAIN, EWOULDBLOCK +35 Ресурс временно недоступен +$ EINPROGRESS +36 Операция в процессе выполнения +$ EALREADY +$ XXX??? +37 Операция уже выполняется +$ ENOTSOCK +38 Операция с сокетом применена не к сокету +$ EDESTADDRREQ +39 Требуется целевой адрес +$ EMSGSIZE +40 Слишком длинное сообщение +$ EPROTOTYPE +41 Неверный тип протокола для сокета +$ ENOPROTOOPT +42 Протокол недоступен +$ EPROTONOSUPPORT +43 Протокол не поддерживается +$ ESOCKTNOSUPPORT +44 Этот тип сокета не поддерживается +$ EOPNOTSUPP +45 Операция не поддерживается +$ EPFNOSUPPORT +46 Семейство протоколов не поддерживается +$ EAFNOSUPPORT +47 Семейство адресов не поддерживается семейством протоколов +$ EADDRINUSE +48 Адрес уже используется +$ EADDRNOTAVAIL +49 Не могу назначить указанный адрес +$ ENETDOWN +50 Сеть не работает +$ ENETUNREACH +51 Сеть недостижима +$ ENETRESET +52 Сеть закрыла подключение при сбросе +$ ECONNABORTED +53 Программа вызвала аварийное прекращение подключения +$ ECONNRESET +54 Подключение сброшено противоположной стороной +$ ENOBUFS +55 Не осталось места под буфер +$ EISCONN +56 Сокет уже подключен +$ ENOTCONN +57 Сокет не подключен +$ ESHUTDOWN +58 Не могу послать после закрытия сокета +$ ETOOMANYREFS +59 Слишком много ссылок: не могу соединить +$ ETIMEDOUT +60 Операция превысила лимит времени +$ ECONNREFUSED +61 Подключение отвергнуто +$ ELOOP +62 Слишком много уровней символьных ссылок +$ ENAMETOOLONG +63 Слишком длинное имя файла +$ EHOSTDOWN +64 Хост не работает +$ EHOSTUNREACH +65 Нет маршрута к хосту +$ ENOTEMPTY +66 Каталог не пуст +$ EPROCLIM +67 Слишком много процессов +$ EUSERS +68 Слишком много пользователей +$ EDQUOT +69 Превзойдена дисковая квота +$ ESTALE +70 Устаревший дескриптор файла NFS +$ EREMOTE +71 Слишком много дистанционных переходов в пути +$ EBADRPC +72 Некорректная структура RPC +$ ERPCMISMATCH +73 Неверная версия RPC +$ EPROGUNAVAIL +74 Программа RPC недоступна +$ EPROGMISMATCH +75 Неверная версия программы +$ EPROCUNAVAIL +76 Некорректная процедура для программы +$ ENOLCK +77 Блокировки недоступны +$ ENOSYS +78 Функция не реализована +$ EFTYPE +79 Неподходящий тип или формат файла +$ EAUTH +80 Ошибка аутентификации +$ ENEEDAUTH +81 Необходимо удостоверение +$ EIDRM +82 Идентификатор удален +$ ENOMSG +83 Нет сообщения требуемого типа +$ EOVERFLOW +84 Слишком большое значение для хранения в указанном типе данных +$ ECANCELED +85 Операция отменена +$ EILSEQ +86 Недопустимая последовательность байтов +$ ENOATTR +87 Атрибут не найден +$ EDOOFUS +88 Ошибка программирования +$ EBADMSG +89 Плохой формат сообщения +$ EMULTIHOP +90 Попытка мультихопа +$ ENOLINK +91 Канал разорван +$ EPROTO +92 Ошибка протокола +$ ENOTCAPABLE +93 Недостаточно возможностей +$ +$ strsignal() support catalog +$ +$set 2 +$ SIGHUP +$ XXX: Отключение? +1 Разрыв связи +$ SIGINT +2 Прерывание по сигналу +$ SIGQUIT +3 Выход +$ SIGILL +4 Недопустимая инструкция +$ SIGTRAP +5 Ловушка трассировки/точки останова +$ SIGABRT +$ XXX: Аварийное завершение +6 Ловушка аварийного прекращения +$ SIGEMT +7 Ловушка EMT +$ SIGFPE +$ XXX: Ошибка операции с плавающей точкой? +8 Ошибка при работе с вещественным числом +$ SIGKILL +$ XXX: Убит +9 Принудительно прекращен +$ SIGBUS +$ XXX: Ошибка адресации на шине +10 Ошибка шины +$ SIGSEGV +11 Ошибка сегментации +$ SIGSYS +12 Недопустимый системный вызов +$ SIGPIPE +13 Канал разрушен +$ SIGALRM +14 Сработал таймер +$ SIGTERM +15 Завершен +$ SIGURG +16 Необходим срочный ввод-вывод +$ SIGSTOP +17 Приостановка (сигнал) +$ SIGTSTP +18 Приостановка +$ SIGCONT +19 Продолжение работы +$ SIGCHLD +20 Завершена работа порожденного процесса +$ SIGTTIN +21 Остановлен (ввод с терминала) +$ SIGTTOU +22 Остановлен (вывод на терминал) +$ SIGIO +23 Ввод-вывод возможен +$ SIGXCPU +24 Превышено ограничение процессорного времени +$ SIGXFSZ +25 Превышен максимальный размер файла +$ SIGVTALRM +26 Истек виртуальный таймер +$ SIGPROF +27 Истек таймер профилирования +$ SIGWINCH +28 Изменение размера окна +$ SIGINFO +29 Запрос информации +$ SIGUSR1 +30 Пользовательский сигнал 1 +$ SIGUSR2 +31 Пользовательский сигнал 2 From nobody Sun Nov 10 01:42:20 2024 X-Original-To: dev-commits-src-all@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 4XmFmD3Nk5z5c106; Sun, 10 Nov 2024 01:42:20 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmFmD1bDPz3ww4; Sun, 10 Nov 2024 01:42:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731202940; 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=dMrpaEKXEl7jGwW4AAOcFzBfTNrV9fPjVKHMTRiPvzM=; b=LrCQHjr7juywoY0oW8i3F5M83HsUtKZ2KTKq/xWFTyMOzght9hlXWB1pT979Grd0Qj99vw BtpmxLVKmUnED/RjD1COQjOO2Rkxg3j06Bn7Y5QtvLYb7E1Y/q0stRKlLu2n/+pAGI1alU WqIudRAgeY5X+9wjYtUzPlCc0+wqSXcvECFVetL7dzmqki51GE4s8pihOJsCOaTM+6/Mdd ylDnWgZretRr2F2Wwt12hqJJJzw34qze9512FnXyswj2cKnNg5bSme7v+lduCo2kaVaFVz KoZTZr95VgjPV64FbMpP8w9guEyyctU065MWf16/cuU/CJw0igpOhSO4c3SsnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731202940; 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=dMrpaEKXEl7jGwW4AAOcFzBfTNrV9fPjVKHMTRiPvzM=; b=nH6oVFzSFEtm/zLdkl/53NbGAvZum6kKQHAhLLQdUDA/M35B0mODPVec9m5AF58cRleBer ryhCYXRQcJUD3PNeUcRtjkB56PTQ97V6gq+HIUqlmgLVZWGped5UjLhAWMIoHkxPjgPrki H8vxljhFbZ+WNqvZwtF/dn/ZSc2mhdtA1mxoifVDYGncmhd/lL0U0XxZdNtnO3tjFDL3Sc uHZb35tMS9itMlw6diN7b1eAOiU5IBqdM6fBZg/aMeuMHWb0u+19OmDwkQzlqwf6GZtQhf ANX0Z39WuNIA8HZ28sKjTq8vGY82wZRR7QwRf117pqgImFYA/0z2LaPGwTWPJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731202940; a=rsa-sha256; cv=none; b=RZ1DTmCSAVPTSSPq/vlwbzAxvSR+K4uF9u7LzMVIuuXXQPaWpp0hWiCvdqfICTX02Ubr26 B7rnRHuP5n6YtMyHnECLztrJGpswPCXNLQtn/d+YZuk2JFDMK0NrFWsL+zeIryzF50HQI7 XaEat90jidX1ZxStRLRA1x3AIWiNpyns4iuWSiGmd+DXLrvl3dOoka7pegxjW6HrB8wJXN f6sAhC1tNBaRzLJVcZ54lRhC0ssy6r9C4dnOCIyVLcEVQZ9m3qDBQLGP7MN3EoqRAXEpFR nf4agUDDeTQM2ztWw6E75eFDUfj+SgT8jLJIC4FjVUibl7wqTFUPWHt5JFcMuA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XmFmD1BQPzMMG; Sun, 10 Nov 2024 01:42:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AA1gKop042396; Sun, 10 Nov 2024 01:42:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AA1gKPv042393; Sun, 10 Nov 2024 01:42:20 GMT (envelope-from git) Date: Sun, 10 Nov 2024 01:42:20 GMT Message-Id: <202411100142.4AA1gKPv042393@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 37095a500dc1 - stable/14 - libc: remove some XXX for russian translations of errnos List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 37095a500dc179cc0c623f3be64d60fe6f28122c Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=37095a500dc179cc0c623f3be64d60fe6f28122c commit 37095a500dc179cc0c623f3be64d60fe6f28122c Author: Konstantin Belousov AuthorDate: 2024-11-03 16:44:20 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-09 19:31:29 +0000 libc: remove some XXX for russian translations of errnos (cherry picked from commit 3b65da5b65a6bfaf1150075e1dab3c627cb32f92) --- lib/libc/nls/ru_RU.KOI8-R.msg | 2 -- lib/libc/nls/ru_RU.UTF-8.msg | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/libc/nls/ru_RU.KOI8-R.msg b/lib/libc/nls/ru_RU.KOI8-R.msg index 0fcd0e9b1225..7b5cd288ed60 100644 --- a/lib/libc/nls/ru_RU.KOI8-R.msg +++ b/lib/libc/nls/ru_RU.KOI8-R.msg @@ -67,7 +67,6 @@ $ EROFS $ EMLINK 31 $ EPIPE -$ XXX??? 32 $ EDOM 33 @@ -78,7 +77,6 @@ $ EAGAIN, EWOULDBLOCK $ EINPROGRESS 36 $ EALREADY -$ XXX??? 37 $ ENOTSOCK 38 diff --git a/lib/libc/nls/ru_RU.UTF-8.msg b/lib/libc/nls/ru_RU.UTF-8.msg index cda0909aa76c..1bd2179dfe81 100644 --- a/lib/libc/nls/ru_RU.UTF-8.msg +++ b/lib/libc/nls/ru_RU.UTF-8.msg @@ -67,7 +67,6 @@ $ EROFS $ EMLINK 31 Слишком много ссылок $ EPIPE -$ XXX??? 32 Канал разрушен $ EDOM 33 Недопустимое значение числового аргумента @@ -78,7 +77,6 @@ $ EAGAIN, EWOULDBLOCK $ EINPROGRESS 36 Операция в процессе выполнения $ EALREADY -$ XXX??? 37 Операция уже выполняется $ ENOTSOCK 38 Операция с сокетом применена не к сокету From nobody Sun Nov 10 02:46:54 2024 X-Original-To: dev-commits-src-all@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 4XmHBk5dGsz5c4jC; Sun, 10 Nov 2024 02:46:54 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmHBk4n2Pz43dR; Sun, 10 Nov 2024 02:46:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731206814; 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=1FMURDOuE4j0GBsnIegmmmHOeu6Vs0L+8SvE+jB113A=; b=KeXxdv3E6Zdi8p8TxTSsunkNj14fLzHFYj50xGkC4dbsWzgHrsrwMRNexmPL1FGFX8NwBy 0XJyQ3LNaVVJLjDroiNcmdlq1y5a43tPoPZlIQyfVNOnlb8CQ07y3X5C9Wz1a4IewkrqY9 QdHIp8tXEXh0ff1URldQC1y3U63bRGjaCX4YFyybheZI7D3cWtpJHpA9yApAjb41/RMGqk 6m0W8ux6GyBPQAYK7iVMdJZ0o7NfJPEBE4CFKEvi9br6KuQpnHSuiH8jQBcct79k3jjbRm QbMd5gLqrGHqruZ9BMRknaHpUWPSJnX8TSJwWaSwBi5zFygnxFpWScgU0EilhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731206814; 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=1FMURDOuE4j0GBsnIegmmmHOeu6Vs0L+8SvE+jB113A=; b=lZ26Y5VFj68LE9PODtIqxvoHoYKW7VctbdaY/tKJ1mPBfCtM7E1vxsmB1NFnYPVSh5bP21 V/exY+fFcIEZGdlCSSt4zMEEKkPZHgx1UA4Haxrebentb5xJNZ7uB/eaCMlYxcal74zwWI nEzNLAwx32aeZfNM4ICZRj/qIS5bLu/R4J1X/sOZu/4N6KgAPKA8J1LSe2ZXt4tLISPqas iLR1i3z/YU3I3PGRHnWsbBrpvZQ/JseyHeWqahT1Om49n5B9H7qta+QfSk871lI480UuAT v9FGs525pZlhA8tRV3M9tonNBeSnKaXF3uOJ7I7fVVfzrv9ZxBi9BVZp4s40DQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731206814; a=rsa-sha256; cv=none; b=Elr3zmm3zw/r5xVVFjaroXEl3FqdSIyOme8wKDJF2+vcZprndKiial7hFNE3A2/BT9SUdl /SNCZk3b1ZW7Oe07EEL7EgfRO8NdDLuQAaTfWjGQtOOqDp7zHZbq3CWzk+o1t9x2RtJvfc Jt2dlzIGy8yxGzzmXMWPexMlBvlYU5axaEpv+BxY5TJsR+1R/H8LDbh5DEiwYBDYjWzpfe IwnvpBirK6FhxEbpNkikFOCRbSfDWAyf+GBDmTGZyIuHUea0elsbbLehpGdSz52KY4m7XI jPc86f3QpxIAzhTlEObqMR8zMB4NihN5h4AF3Ado2zRnJjuainFgW04E00rv8w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XmHBk4G9jzPkb; Sun, 10 Nov 2024 02:46:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AA2ksxZ054911; Sun, 10 Nov 2024 02:46:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AA2ks1r054907; Sun, 10 Nov 2024 02:46:54 GMT (envelope-from git) Date: Sun, 10 Nov 2024 02:46:54 GMT Message-Id: <202411100246.4AA2ks1r054907@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jose Luis Duran Subject: git: cdd3234186b1 - main - sound: Include ai2s and davbus for PowerPC List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cdd3234186b19e1b9d7cfc985ef8d247552b0f11 Auto-Submitted: auto-generated The branch main has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=cdd3234186b19e1b9d7cfc985ef8d247552b0f11 commit cdd3234186b19e1b9d7cfc985ef8d247552b0f11 Author: Jose Luis Duran AuthorDate: 2024-11-10 02:44:14 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-10 02:44:14 +0000 sound: Include ai2s and davbus for PowerPC Include PowerPC ai2s and davbus sound modules in the metadriver. Reviewed by: christos, emaste Approved by: emaste (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47467 --- sys/dev/sound/driver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/sound/driver.c b/sys/dev/sound/driver.c index 13218f419a28..c9219261e08f 100644 --- a/sys/dev/sound/driver.c +++ b/sys/dev/sound/driver.c @@ -55,6 +55,9 @@ static moduledata_t snd_mod = { DECLARE_MODULE(snd_driver, snd_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE); MODULE_VERSION(snd_driver, 1); +#if defined(__powerpc__) +MODULE_DEPEND(snd_driver, snd_ai2s, 1, 1, 1); +#endif MODULE_DEPEND(snd_driver, snd_als4000, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_atiixp, 1, 1, 1); #if defined(__i386__) || defined(__amd64__) @@ -63,6 +66,9 @@ MODULE_DEPEND(snd_driver, snd_cmi, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_cs4281, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_csa, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_csapcm, 1, 1, 1); +#if defined(__powerpc__) +MODULE_DEPEND(snd_driver, snd_davbus, 1, 1, 1); +#endif MODULE_DEPEND(snd_driver, snd_emu10kx, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_envy24, 1, 1, 1); MODULE_DEPEND(snd_driver, snd_envy24ht, 1, 1, 1); From nobody Sun Nov 10 02:58:03 2024 X-Original-To: dev-commits-src-all@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 4XmHRc1ktRz5c5Zp; Sun, 10 Nov 2024 02:58:04 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmHRc165dz44hC; Sun, 10 Nov 2024 02:58:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731207484; 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=LgGS69XN18ZP5ZsgmxCi3c8SKsOIQZSkBHsKB7ZWUmA=; b=MItzO+4mXphrdEVldj0GBFd3B9AOkpjk6lgWRWWQGy6uUoHePXgViXCp4nm7Nb9oKT3CN5 Ztp56xf1Md28B6g8BfVf4ybUu7fXbgf/CfnePrQIPlwzzURRDCIWt2mFvViO0SZ4t9luGg Lq/egb7jxnoAK8qip43CwuuGi5+RV3aGjjtqe1mwoPjVFrf+U5dSo+02o1rwDjrpxc3mzL 5p+MRppplLbe4FH31Bq2FjE4dMAwkeByk38PjAjEDexlExhjHCeZUN01HPd7aZkDRjPf4E mqO85jbJb56Rh71naF0x1UpvIHlpR2QzLfJrQ83jQPnK56h6/kMnU3/pix60tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731207484; 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=LgGS69XN18ZP5ZsgmxCi3c8SKsOIQZSkBHsKB7ZWUmA=; b=aff0hx9XAfBKye1RxUJDT7BjBHvxkYSwCmZQjueLnleE30CdV+R9Mvo5XnZIQG+e4z066l qZFiZ5HFhQ9EWQMIxogcLHFBhb1YvT0E7V/Ha62RUD8GFnvWaxtqbwS6vvOhiRWGGXZUVG tibCudXu3PnTB/2WU18b+a0pjWdlFMvpR+Yv18v4Gc1+r8ZRObXMGppUdHWYdLpAtSukEV 8v/9s2Zlc1YTOCOm9ylfaogafS4h1rVaPYHtoTSw79lm04I5n3cgdEULa8Ez0OvpY2rzol bKup1blsChV9SMekphtJJflUHH9U7hZEtmNjUXLmGiph11EvTmfmuoHzAYwTww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731207484; a=rsa-sha256; cv=none; b=LX0JuMep6SOk5FmjuD0QP7mDtg69JB8RQd3BlCk8u6TnPiVNFTpS+Tr2sHbfM/n6Ix3SRH rhChsMMKhugJk7JzbOp/PPi1Rgcys2shhhvktQkdcydNLy5XNhBpdfGZFI04cybty6TYQg cio3p1dYFxpyrs88qZgHRFHX/XzRnKvDSTh+C7CUWPSDOQCL8pH4tE85D5wS1CNKqCbF1B 8TpRDkzQaRGRHL2D/GqmF5MeSEU9v57nAOpGPPflQ9RRIJdIzXBsUOA9yZijeybILowXZS +BayAs9Id3LcMp00XqJphu4wOVTSUOg2ml6cTKCurk+nRJ/Hc3JzpAEovDrp9w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XmHRc0QJTzQ0Z; Sun, 10 Nov 2024 02:58:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AA2w30d073776; Sun, 10 Nov 2024 02:58:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AA2w3hs073773; Sun, 10 Nov 2024 02:58:03 GMT (envelope-from git) Date: Sun, 10 Nov 2024 02:58:03 GMT Message-Id: <202411100258.4AA2w3hs073773@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jose Luis Duran Subject: git: 221461661a94 - stable/14 - release: Remove binutils List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jlduran X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 221461661a94d1d4f83e43b6b5cbd150f127c070 Auto-Submitted: auto-generated The branch stable/14 has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=221461661a94d1d4f83e43b6b5cbd150f127c070 commit 221461661a94d1d4f83e43b6b5cbd150f127c070 Author: Jose Luis Duran AuthorDate: 2024-10-18 03:17:57 +0000 Commit: Jose Luis Duran CommitDate: 2024-11-10 02:57:38 +0000 release: Remove binutils Reviewed by: mhorne, emaste Approved by: emaste (mentor) Fixes: 74e8d41e0ac8 MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/1485 (cherry picked from commit 6baae68d7f311f4ee0e844782dbaf4f3c9b223ed) --- release/packages/Makefile.package | 2 -- 1 file changed, 2 deletions(-) diff --git a/release/packages/Makefile.package b/release/packages/Makefile.package index ed3da78665be..0f7cec0fb5a1 100644 --- a/release/packages/Makefile.package +++ b/release/packages/Makefile.package @@ -15,8 +15,6 @@ autofs_COMMENT= Autofs Utilities autofs_DESC= Autofs Utilities bhyve_COMMENT= Bhyve Utilities bhyve_DESC= Bhyve Utilities -binutils_COMMENT= Binutils -binutils_DESC= Binutils blocklist_COMMENT= Blocklist Utilities blocklist_DESC= Blocklist Utilities bluetooth_COMMENT= Bluetooth Utilities From nobody Sun Nov 10 19:02:34 2024 X-Original-To: dev-commits-src-all@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 4XmhrV40b6z5c6yY; Sun, 10 Nov 2024 19:02:34 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmhrV1NSZz4Pcw; Sun, 10 Nov 2024 19:02:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731265354; 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=9foQMq+RZa1K4BIZqOB+Fo1JGSmMrjk55I8XsnN0Htg=; b=ekEf2vWFKEEnSGLm6tI1jV8Q44ma02S1BIhgtm8+u7O9xUl4smLWPgHCQpXT0AV/HYlHuI 7tXJ+ouewwDk6eEKHFf6OvXaqC4MG8/jFMhyKpyk0kubB24imMPJI4PFD7Qe16+Oo5DZNg 4sl+3I0DtKjJjQDVBviplcEjedeM/3kCSFV46yDzAWmxANJMYtON5suuYuF293SuN+gbtM SOW0YTm4Cq7Oeo83ZHK9PE4lqp8FjK8ppf9H1Nj+6HJbIres2tmG9DS/B4IZFluwFrOGqc sChFqZ9qaaJlSXwbMtVOTJnsxwYbWIvMiUsN0BuA/EUg36CBmOVx2Wo1BC9YWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731265354; 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=9foQMq+RZa1K4BIZqOB+Fo1JGSmMrjk55I8XsnN0Htg=; b=vx0ELgibQ3mbO1GKVFy3JuuaVsrPYTqWe/nyHMzaNkXlBRcktE0SKgK1KHCqqLDXaUS9rj tfp69sBD41s5ZdqJxhN4LI8kWIIDzMXFHI2iziq1pAPsytWQYO87itS4l/0mpRDB5/MbTw a+WRgyqXi2AczxVnZXxibUSWfb6f/KjBTUPvsbSPdHh+OFwSDhpTo9/u/wK9lfYZX/La5+ 38P62ZY1B9yRTkf07Bo8UvVtbfpEaohP0ASDi9kh/UbgPZOHlG1an2etKJr8lQN8fSzndF 9wRzu2JIseZfhu62S1nicvxANEqvnvmOwNiUP5i7mXIz1WA59BfIBBn829gAPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731265354; a=rsa-sha256; cv=none; b=PXNp2i7Sm0U5jcWd4bgGZBY+7aa6jNVacoNsKSwz+6z0lJTNYzRINLnhp1hsRBqzJRlhij 4U4SMharNlejWmNWF9I16Tgk+CnQthvdugVEzimOmSrG8njobuyQv/i2pv3cX0wcCp36Cd H9SFZWYOC6KhWlgDjzYvGVCVEAcKV/PCW91vs52XWoy8d4HI3ZwmlQHXA8PsScL38ABT9u bnnIiT7KEk6pPQhbFDtP9lh64i36JQWJIEZhv7NXjr1F0S5Oa1x73WP6ZM3kRtEgChZIqm 4uUPVj3biBxwO95W9mwbX3gR6ua8p2pHraZacvIt6cdaO5Jb9iyR9UkLl50weQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XmhrV0zmYztcn; Sun, 10 Nov 2024 19:02:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AAJ2YgP071581; Sun, 10 Nov 2024 19:02:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AAJ2YRE071578; Sun, 10 Nov 2024 19:02:34 GMT (envelope-from git) Date: Sun, 10 Nov 2024 19:02:34 GMT Message-Id: <202411101902.4AAJ2YRE071578@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 2483a2d36803 - main - release: add wifi-firmware-kmod@release to ship as package List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2483a2d36803896d27861c03e1f53dd9546b1e73 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=2483a2d36803896d27861c03e1f53dd9546b1e73 commit 2483a2d36803896d27861c03e1f53dd9546b1e73 Author: Bjoern A. Zeeb AuthorDate: 2024-11-02 23:47:14 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-11-10 19:00:55 +0000 release: add wifi-firmware-kmod@release to ship as package Rather than adding the rtw88 package add the flavored port for all the supported wireless drivers we recently added support for. Sponsored by: The FreeBSD Foundation MFC after: 3 days Pointed out by: cperciva (as part of the set of changes) Reviewed by: cperciva (#releng) Differential Revision: https://reviews.freebsd.org/D47406 --- release/scripts/pkg-stage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/scripts/pkg-stage.sh b/release/scripts/pkg-stage.sh index a887173aa858..8f96bd5cf5a1 100755 --- a/release/scripts/pkg-stage.sh +++ b/release/scripts/pkg-stage.sh @@ -19,7 +19,7 @@ graphics/drm-515-kmod misc/freebsd-doc-all net/mpd5 net/rsync -net/wifi-firmware-rtw88-kmod +net/wifi-firmware-kmod@release ports-mgmt/pkg shells/bash shells/zsh From nobody Sun Nov 10 19:34:06 2024 X-Original-To: dev-commits-src-all@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 4XmjXt2qfWz5c8lS; Sun, 10 Nov 2024 19:34:06 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmjXt20tZz4R5D; Sun, 10 Nov 2024 19:34:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731267246; 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=DYl8nybdjipLTRFcSc7BLBg7WzTzRCIC5Hz+31l6oxE=; b=btzcNQgH15YADt9wHUB1jYov8rd0b+z3n8PVeCu8wHo86GaMcF4oalCC3tmxYnD7g/ZXSG LF2OClfWaoycNMTr9ZCvuftUdjCQOMfPWv33LXRiukDKMRz5QgUXD55coW5CufH7jsaJTS 7opYaiMI4iiryS8AJXMTW+6f5uPpfhj6xsKSs2Y54ptg61nzGKQ9//Zznw8JR/PrhRyXvK 7887RhxScUyQxL8Q55RwXsIZHdRzrq14bUG5OnwvGJavaKHwSDcEsMoe79XNF/WS9FHRLY aTi2RjzdJOO/fqA/ZCsHNEUAIWNelts5D9F4yjjDz9lKQT0F0gasHATijauTnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731267246; 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=DYl8nybdjipLTRFcSc7BLBg7WzTzRCIC5Hz+31l6oxE=; b=g0T1O3jCF24yHdd6Rfei5P66htCxr5/YNkXMXyBuFE8TV7n/eylspqfMNUSMSQGXJ3pdY1 omHIR73xCnD6RnL1+b8xchuOkp6JD1A64e++vZlMz0/6SettQY+CJ1TKk2EiJs12WkmmAZ Qd88vm//Go/M9ZKDqWt+hoxhfgQBaSE8WnwXyhLzCYOqIiCtagbsqktNkBHaVfhX2dH+g0 qTLpKerYc4wlrlLcp5gAAkRP+aPfzByeF7s4YfqnTjZXmbWtibPuH987gmdWAPPUCP5iLn LMZ2EkySrEuDF5ZZZBbXC3K46jUMFtz6LrY+tpuUsolJkG6mconUXqQCOKHX1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731267246; a=rsa-sha256; cv=none; b=wWcK3BHA/GJRmWikPQoRP6HgUaWxoYYZcRn4lvIu4xK57n7ZyooL14m95b5H15B1JmAv/l b8RRhu+KB1vg7s+jQqh/etvZHwwM2hCowwUjPgran7xShQSqSDowTYnmf18EYAkO4av69d PduhGvsOXGSBFuobjW0hEpypkE6u2HqXDHUD8SmaHhkDcrqUBkrEgmIQMSKWtESSaBCXbA ZFLaud7CuxqZTzKTuc5WaoKZjztEgLzqBqJhWj7ouIxGQKG2V1TGwTyzNyKjwo1rJtT+Vi h9u8Th5TOK7EksihT9zwv2uLtURSRNjH1RY9REyEcGZRVGzcvO/s04ss1AlpQw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XmjXt1cXWzvkT; Sun, 10 Nov 2024 19:34:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AAJY6Bs026732; Sun, 10 Nov 2024 19:34:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AAJY6Ac026729; Sun, 10 Nov 2024 19:34:06 GMT (envelope-from git) Date: Sun, 10 Nov 2024 19:34:06 GMT Message-Id: <202411101934.4AAJY6Ac026729@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 8f1a2d507e25 - main - iwm.4: move hardware list to .Sh HARDWARE and minor cleanup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8f1a2d507e25e77d20a5d7675dc8eee9b83d3570 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=8f1a2d507e25e77d20a5d7675dc8eee9b83d3570 commit 8f1a2d507e25e77d20a5d7675dc8eee9b83d3570 Author: Alexander Ziaee AuthorDate: 2024-11-10 19:28:22 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-11-10 19:33:18 +0000 iwm.4: move hardware list to .Sh HARDWARE and minor cleanup Add devices supported by this driver to a HARDWARE section for inclusion in the Release Hardware Compatibility Notes. While here: - license: add spdx license identifier tag - synopsis: join a line for grep/brevity - description: reflow for consistency, xref iwmfw(4) - examples: use test-net-1 in cidr notation as example IPv4 address - see also: add networking(7) quick start guide - bugs: move 'incompatible modes' here for consistency/flow - mention 802.11a support MFC after: 3 days Reported by: bz (relnotes generation, cidr, test-net-1 ip4addr) Reported by: Graham Percival (no prompt) Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D47171 --- share/man/man4/iwm.4 | 94 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 54 insertions(+), 40 deletions(-) diff --git a/share/man/man4/iwm.4 b/share/man/man4/iwm.4 index b810f7016e54..7fd301929524 100644 --- a/share/man/man4/iwm.4 +++ b/share/man/man4/iwm.4 @@ -1,3 +1,6 @@ +.\"- +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" Copyright (c) 2004-2006 .\" Damien Bergamini . All rights reserved. .\" @@ -31,8 +34,7 @@ .Nd Intel IEEE 802.11ac wireless network driver .Sh SYNOPSIS To compile this driver into the kernel, -include the following lines in your -kernel configuration file: +include the following lines in your kernel configuration file: .Bd -ragged -offset indent .Cd "device iwm" .Cd "device pci" @@ -79,55 +81,59 @@ iwm9260fw_load="YES" .Sh DESCRIPTION The .Nm -driver provides support for: -.Pp -.Bl -tag -width Ds -offset indent -compact -.It Intel Dual Band Wireless AC 3160 -.It Intel Dual Band Wireless AC 3165 -.It Intel Dual Band Wireless AC 3168 -.It Intel Dual Band Wireless AC 7260 -.It Intel Dual Band Wireless AC 7265 -.It Intel Dual Band Wireless AC 8260 -.It Intel Dual Band Wireless AC 8265 -.It Intel Dual Band Wireless AC 9260 -.It Intel Dual Band Wireless AC 9270 -.It Intel Dual Band Wireless AC 946X -.It Intel Dual Band Wireless AC 9560 -.El -.Pp -.Nm -supports +driver supports running most Intel Wireless AC series network devices in .Cm station mode operation. Only one virtual interface may be configured at any time. -For more information on configuring this device, see -.Xr ifconfig 8 . -.Pp This driver requires the firmware built with the -.Nm iwmfw +.Xr iwmfw 4 module to work. .Pp -Currently, +For more information on configuring this device, see +.Xr ifconfig 8 . +.Sh HARDWARE +The .Nm -only supports 802.11b and 802.11g modes. -It will not associate to access points that are configured to operate only -in 802.11n or 802.11ac modes. +driver supports the following PCIe Wi-Fi devices: +.Pp +.Bl -bullet -compact +.It +Intel Dual Band Wireless AC 3160 +.It +Intel Dual Band Wireless AC 3165 +.It +Intel Dual Band Wireless AC 3168 +.It +Intel Dual Band Wireless AC 7260 +.It +Intel Dual Band Wireless AC 7265 +.It +Intel Dual Band Wireless AC 8260 +.It +Intel Dual Band Wireless AC 8265 +.It +Intel Dual Band Wireless AC 9260 +.It +Intel Dual Band Wireless AC 9270 +.It +Intel Dual Band Wireless AC 946X +.It +Intel Dual Band Wireless AC 9560 +.El .Sh EXAMPLES Join an existing BSS network (i.e., connect to an access point): -.Bd -literal -offset indent -ifconfig wlan create wlandev iwm0 inet 192.168.0.20 \e - netmask 0xffffff00 -.Ed +.Pp +.Dl ifconfig wlan create wlandev iwm0 inet 192.0.2.20/24 .Pp Join a specific BSS network with network name -.Dq Li my_net : +.Ar my_net : .Pp -.Dl "ifconfig wlan create wlandev iwm0 ssid my_net up" +.Dl ifconfig wlan create wlandev iwm0 ssid my_net up .Pp Join a specific BSS network with 64-bit WEP encryption: .Bd -literal -offset indent ifconfig wlan create wlandev iwm0 ssid my_net \e - wepmode on wepkey 0x1234567890 weptxkey 1 up + wepmode on wepkey 0x1234567890 weptxkey 1 up .Ed .Pp Join a specific BSS network with 128-bit WEP encryption: @@ -155,15 +161,16 @@ Verify the .Xr iwmfw 4 firmware module is present. .It "iwm%d: could not load boot firmware" -An attempt to upload the boot firmware image to the onboard microcontroller -failed. +An attempt to upload the boot firmware image +to the onboard microcontroller failed. This should not happen. .It "iwm%d: could not load microcode" -An attempt to upload the microcode image to the onboard microcontroller failed. +An attempt to upload the microcode image +to the onboard microcontroller failed. This should not happen. .It "iwm%d: could not load main firmware" -An attempt to upload the main firmware image to the onboard microcontroller -failed. +An attempt to upload the main firmware image +to the onboard microcontroller failed. This should not happen. .El .Sh SEE ALSO @@ -174,5 +181,12 @@ This should not happen. .Xr wlan_ccmp 4 , .Xr wlan_tkip 4 , .Xr wlan_wep 4 , +.Xr networking 7 , .Xr ifconfig 8 , .Xr wpa_supplicant 8 +.Sh BUGS +Currently, +.Nm +only supports 802.11a/b/g modes. +It will not associate to access points that are configured to operate +only in 802.11n/ac modes.