From nobody Mon Feb 12 00:18: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 4TY4nN1MFbz591kc; Mon, 12 Feb 2024 00:18:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.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 mx1.freebsd.org (Postfix) with ESMTPS id 4TY4nM4rzhz4jh8; Mon, 12 Feb 2024 00:18:47 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 41C0IcQL020223; Mon, 12 Feb 2024 02:18:41 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 41C0IcQL020223 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 41C0IcVq020222; Mon, 12 Feb 2024 02:18:38 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 12 Feb 2024 02:18:38 +0200 From: Konstantin Belousov To: Alan Somers Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 8dfc788b8480 - main - aio_read2/aio_write2: add AIO_OP2_VECTORED Message-ID: References: <202402110154.41B1scZ9090228@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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on tom.home X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4TY4nM4rzhz4jh8 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Sun, Feb 11, 2024 at 07:28:17AM -0700, Alan Somers wrote: > What's the difference between this symbol and the existing > LIO_VECTORED symbol ? They seem redundant to me. Same relation as between LIO_FOFFSET and AIO_OP2_FOFFSET. aio_read2/aio_write2 are simpler to use when a single op is needed. > > On Sat, Feb 10, 2024 at 6:54 PM Konstantin Belousov wrote: > > > > The branch main has been updated by kib: > > > > URL: https://cgit.FreeBSD.org/src/commit/?id=8dfc788b8480a13f1f945f0a94d8b1e327af5c6f > > > > commit 8dfc788b8480a13f1f945f0a94d8b1e327af5c6f > > Author: Konstantin Belousov > > AuthorDate: 2024-02-03 18:09:36 +0000 > > Commit: Konstantin Belousov > > CommitDate: 2024-02-11 01:54:11 +0000 > > > > aio_read2/aio_write2: add AIO_OP2_VECTORED > > > > Suggested by: Vinícius dos Santos Oliveira > > Reviewed by: jhb > > Sponsored by: The FreeBSD Foundation > > MFC after: 1 week > > Differential revision: https://reviews.freebsd.org/D43448 > > --- > > lib/libc/gen/aio_read2.c | 4 +++- > > lib/libc/gen/aio_write2.c | 4 +++- > > sys/sys/aio.h | 1 + > > 3 files changed, 7 insertions(+), 2 deletions(-) > > > > diff --git a/lib/libc/gen/aio_read2.c b/lib/libc/gen/aio_read2.c > > index 3a783e1b1b15..a5186d509b26 100644 > > --- a/lib/libc/gen/aio_read2.c > > +++ b/lib/libc/gen/aio_read2.c > > @@ -37,13 +37,15 @@ aio_read2(struct aiocb *iocb, int flags) > > { > > int error; > > > > - if ((flags & ~(AIO_OP2_FOFFSET)) != 0) { > > + if ((flags & ~(AIO_OP2_FOFFSET | AIO_OP2_VECTORED)) != 0) { > > errno = EINVAL; > > return (-1); > > } > > iocb->aio_lio_opcode = LIO_READ; > > if ((flags & AIO_OP2_FOFFSET) != 0) > > iocb->aio_lio_opcode |= LIO_FOFFSET; > > + if ((flags & AIO_OP2_VECTORED) != 0) > > + iocb->aio_lio_opcode |= LIO_VECTORED; > > > > error = lio_listio(LIO_NOWAIT, &iocb, 1, NULL); > > if (error == -1 && errno == EIO) { > > diff --git a/lib/libc/gen/aio_write2.c b/lib/libc/gen/aio_write2.c > > index 8b5d4a38a6c5..8f4f6a35fd4d 100644 > > --- a/lib/libc/gen/aio_write2.c > > +++ b/lib/libc/gen/aio_write2.c > > @@ -37,13 +37,15 @@ aio_write2(struct aiocb *iocb, int flags) > > { > > int error; > > > > - if ((flags & ~(AIO_OP2_FOFFSET)) != 0) { > > + if ((flags & ~(AIO_OP2_FOFFSET | AIO_OP2_VECTORED)) != 0) { > > errno = EINVAL; > > return (-1); > > } > > iocb->aio_lio_opcode = LIO_WRITE; > > if ((flags & AIO_OP2_FOFFSET) != 0) > > iocb->aio_lio_opcode |= LIO_FOFFSET; > > + if ((flags & AIO_OP2_VECTORED) != 0) > > + iocb->aio_lio_opcode |= LIO_VECTORED; > > > > error = lio_listio(LIO_NOWAIT, &iocb, 1, NULL); > > if (error == -1 && errno == EIO) { > > diff --git a/sys/sys/aio.h b/sys/sys/aio.h > > index 6680f9fed3fa..919a6180b130 100644 > > --- a/sys/sys/aio.h > > +++ b/sys/sys/aio.h > > @@ -58,6 +58,7 @@ > > /* aio_read2/aio_write2 flags */ > > #if __BSD_VISIBLE > > #define AIO_OP2_FOFFSET 0x00000001 > > +#define AIO_OP2_VECTORED 0x00000002 > > #endif > > > > /* From nobody Mon Feb 12 03:21: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 4TY8rh0nRXz59Kjl; Mon, 12 Feb 2024 03:21: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TY8rh0LRZz4xfq; Mon, 12 Feb 2024 03:21:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707708116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mX6OW0GK+WNU7YIfXJOyVcXmq29SwdP89Pv9S0cdt4s=; b=JQc9Iq3+4bbsGA21hUlLMY4O+QCef6hIvdsvVfDDavxn6P77sR1wa/DtcMwCzzkR+/ZeBh QgJrmyR5vZ4Ip/2qbhJ6Ptwdnk8itarfYIbK4JxmnJe7/mkey+nih33CWVac+AIvne9Zfu n73EX3BnQ2uE2/d7h+Rp11XjAFbSL/k+utzF0EhtC0q95sQG7i6/5gzXVELwZGxYJiQeRo IRBbCIVkL1hbUrm/pKTZw84hEYiFqrcTbWG/dKsdvWgo1a7CRg57enQoQLYQid9+mHnd1y AAY5BqWtAueXqjpb0aGHOof7MQgHM/m9hqUsajjF6thF1oV3QoXAqbSyXFSDKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707708116; a=rsa-sha256; cv=none; b=SIhDQ51zCVzGhSWKjpsDpKa1CMsPlTkz1hrPatgl4Gees2qoEC1mpZ0dDNwmwEgIsnXR2j R+4e98utb6MKh75P0Jm3vFN+95CSkS6E6dvcMNfHDpfrXjx0mTyFHsdZaKLeT8rg3/SJMB 7tnu35Ql1aQG09cUjKkt+MNcs6+bTM48hLC1zojJzHIEcvyVECFk3YDcwNn1p3gwXvxjFE t+mMGZzr0vgseKPG8utaSdy7Nzz+FgN956AKBwy5JEEDpLHdiJ2TznPTF1joC5LIJ61n1P LD2OIdWK+qSGEIdLTDV5bRD7MbG617ALS9c3DvM81q9VJsQA7tw3ylnzFiiQPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707708116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mX6OW0GK+WNU7YIfXJOyVcXmq29SwdP89Pv9S0cdt4s=; b=OODMDLr470f1En5zmifsMJJ/hTL3pVeQ59EJnO3kWXH8xjUXhqj6ouN+ZDVkMcl5EY2p8J YmldGbEsIj2XqPSRXw6bUEIU/xJeuN2LAOaJM7t2Y44vP03mAyow6uC+743R1uH31YEp10 NPAUqXLeyCQWo4GEVjmWwGHDAPJDolUrWXWyNFrqFyh4734yF/7qv5IeRFBL996PxGXvp6 EtK4SzY1ZrA8evCB6LpxsaYUNYQqG2g0/kOIsbCWTIpc2T6+2hzVUmtlNLeVExL4WraedI 49uH4R7cDmQehHgh0Fx36YxIfQrrjzXMUt4SdkmqG02tMxOyeQbiBj9QKRaVrg== 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 4TY8rg6Wh3z1PkZ; Mon, 12 Feb 2024 03:21:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41C3LtuE064335; Mon, 12 Feb 2024 03:21:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41C3Ltp1064332; Mon, 12 Feb 2024 03:21:55 GMT (envelope-from git) Date: Mon, 12 Feb 2024 03:21:55 GMT Message-Id: <202402120321.41C3Ltp1064332@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Li-Wen Hsu Subject: git: a1f798b54906 - stable/14 - release: Add AZURE to CLOUDWARE 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a1f798b54906f03c603d7faee827d12ad52d8b41 Auto-Submitted: auto-generated The branch stable/14 has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=a1f798b54906f03c603d7faee827d12ad52d8b41 commit a1f798b54906f03c603d7faee827d12ad52d8b41 Author: Li-Wen Hsu AuthorDate: 2024-02-08 05:49:01 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-12 03:21:14 +0000 release: Add AZURE to CLOUDWARE Let Azure use the image directly built by the release engineering team. Reviewed by: emaste Approved by: cperciva (re) MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41906 (cherry picked from commit 63007e46110d7f7a1f9d48fbac99f8a5bc166456) --- release/Makefile.vm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release/Makefile.vm b/release/Makefile.vm index 58703de16cf3..3a3b3bcd5f9d 100644 --- a/release/Makefile.vm +++ b/release/Makefile.vm @@ -17,7 +17,8 @@ VMDK_DESC= VMWare, VirtualBox disk image QCOW2_DESC= Qemu, KVM disk image RAW_DESC= Unformatted raw disk image -CLOUDWARE_TYPES?= BASIC-CI \ +CLOUDWARE_TYPES?= AZURE \ + BASIC-CI \ EC2 \ GCE \ OCI \ From nobody Mon Feb 12 08:02: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 4TYH3w0llnz59m6S; Mon, 12 Feb 2024 08:02: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYH3v5BlJz46kP; Mon, 12 Feb 2024 08:02:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707724923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YXz/LWHiouEfSP8rxIkvmIj01fPJzb2gnfzz2mF0oSk=; b=AlyUht6YUNAqf913g+4mqFbrUX8oW/+M8ba43PuuAHOGfZyp6KPCZZzeycfh4yfVAxH4dA Ut4F9OrGGaCVx4u/TVZFWYO9GJ+MnF2e5zRwUF8oPPYzaLEBVvda3W7/CHf9urN92SGzUM jGN8WgkImB2JWOw0N4IKcDY84HGrgRp7CLAoJqJfHjkKvwVNfFSL56tcPNRy1T7qRXVHaD GyT3LoJX99QNlyqQZlEwRY65VrnNE2L32rOam/4B50wQ4oXUXCo31Wk+jKPOKH4zSpefkN 3UnSp/b2RxjEBRMCygttE6wSOj2SdSTNFoXvbTDatErrg4Nd76WFWIV7VPG5RQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707724923; a=rsa-sha256; cv=none; b=Ratba8Qm7xvtmpNcEjOkiZIeADmOShFBkZdCaa9syoKekyPA20FiZH7SRM88/epHjYd/GX HpqDI1JWFTUV50VpY2stcH13Pjd9fF0FMQETa7bD8cThJ9eOya5Ru3dq6dnEyFtMBoD0BY eP0d+Dy5rKl+omP0BKQAoHgbUvCusemAFBWtCOTajqihk3udASNSiy/cdGgcEefLrOcwnW RDz1qvbB7laVNngpV2oznQJytrQpPpbndLnZdWXT2STfeDibKB9o/mRWzsgcCr4LKw7IcS 8/CajC4qxz/AHYk5Q0adoriKERwgJ6tBol3orzFMusYduUmTVRqOY++IQNBJHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707724923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YXz/LWHiouEfSP8rxIkvmIj01fPJzb2gnfzz2mF0oSk=; b=vbhUnnif2wQYfBJw2ZHBI6skXNmDaq8fY14IYe41/d1GcDpY0QZF7GeQVeAtIyKAqeiR0z tDeLfC7NYLyOUM/Lful8F1hGaIOcnt6O0g7YQLrIIxJFY9dQZqhdRSRatbojnEWkIpf/b+ bIZD8Na9iuzrC60fTLRSf3RgCeOEELc0rLYNrWUevMlkTWoRkNHrgM2DFT3lGoFQjm5NUF rFcKkPBu0UNlH45NjVBsJi4Lk3gF/qb4vlolPiYYiPXfmOaA8bcBma2h8k/5ozdNjPY4kB zgV9xtFpRCtWWNJjtCJYRSTScYSkYDeuRUsqxJhMpF/gXiYzg3XcY3G07+uXGw== 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 4TYH3v4GCxzJS6; Mon, 12 Feb 2024 08:02:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41C823Rp037551; Mon, 12 Feb 2024 08:02:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41C823ji037548; Mon, 12 Feb 2024 08:02:03 GMT (envelope-from git) Date: Mon, 12 Feb 2024 08:02:03 GMT Message-Id: <202402120802.41C823ji037548@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Eugene Grosbein Subject: git: 81092e92ea51 - main - graid: unbreak Promise RAID1 with 4+ providers 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 81092e92ea5184c4eeedad58044d72cfef72dd24 Auto-Submitted: auto-generated The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=81092e92ea5184c4eeedad58044d72cfef72dd24 commit 81092e92ea5184c4eeedad58044d72cfef72dd24 Author: Eugene Grosbein AuthorDate: 2024-02-12 07:24:28 +0000 Commit: Eugene Grosbein CommitDate: 2024-02-12 07:33:43 +0000 graid: unbreak Promise RAID1 with 4+ providers Fix a problem in graid implementation of Promise RAID1 created with 4+ disks. Such an array generally works fine until reboot only due to a bug in metadata writing code. Before the fix, next taste erronously created RAID1E (kind of RAID10) instead of RAID1, hence graid used wrong offsets for I/O operations. The bug did not affect Promise RAID1 arrays with 2 or 3 disks only. Reviewed by: mav MFC after: 3 days --- sys/geom/raid/md_promise.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/geom/raid/md_promise.c b/sys/geom/raid/md_promise.c index ba7a4d2b1cc4..d0d041e027c2 100644 --- a/sys/geom/raid/md_promise.c +++ b/sys/geom/raid/md_promise.c @@ -1762,8 +1762,9 @@ g_raid_md_write_promise(struct g_raid_md_object *md, struct g_raid_volume *tvol, meta->total_disks = vol->v_disks_count; meta->stripe_shift = ffs(vol->v_strip_size / 1024); meta->array_width = vol->v_disks_count; - if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1 || - vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) + if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1) + meta->array_width = 1; + else if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) meta->array_width /= 2; meta->array_number = vol->v_global_id; meta->total_sectors = vol->v_mediasize / 512; From nobody Mon Feb 12 09:28: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 4TYJzY14GZz59QM6; Mon, 12 Feb 2024 09:28: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYJzY0XP2z4HWV; Mon, 12 Feb 2024 09:28:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707730105; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zZmaWsRcqyfUhgAhdF4PkR2SVbdghLAP+acmh/QoAYs=; b=pHiNl5Xt39awJJr71DPnQ+wnBjO3hjaOaT4vxdpYESXNd5OA10aAq3Yr9Cl5v8VRrLvgB6 67C1nHJuJNLcAoVC3HkEUnT9uLIg6l+5oyn+P1CwSVmXvXxHEUcuPDz9UnoxA3OZk0eqUH RSLeM0t1F2KnrFPW0MzdUjr+tO0CxYWPleq/bqeU+ugieBnqvUYujqgGnwGY1Kd8PEEu1b gEY7lKLbierSAa+u/wSj1Le++z+jzpaWYeuLQ5TimkliVD4nwTaiEPs5H4kZY8Rm4D5Z+v cTeS0S2rReIGFsdCxu7jGbVONTsWhnsS4p4hybDrpp8OiW+tklh7s6kIUiuj9Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707730105; a=rsa-sha256; cv=none; b=aEU+ZARHu56lyOqhEWE7DrhtaFHnoicKScXKYW2I6giw1QF37b6IKsV0CIBq0uItdZFZZ6 VLfoX/Shmk5VYtZYRodCpGU/9ulZH2tiqhtKSsvrFi0NLr3SZ/uJldjBLZ4sdifUARRF9E xmeA5yRFEW4c20lMD+en9FfKkt5duchRY5vzdAQ6G/Rs0ljdwqn6+3MpXdTnQVpAm70lOO wXOwdDdRStOzYbBC8nHR6XkceHd7MdKOjBvflXHdZ6nh+PoqupSkVIPjLSbYIHVVhNzUlN r5+i4Hqzk5afvu/nHh4GmDCgaoCkCyq+5uUa7PUrb7Yy+opH8WpapQWEribM/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707730105; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zZmaWsRcqyfUhgAhdF4PkR2SVbdghLAP+acmh/QoAYs=; b=QAJ7tdRuAuzICkEBqS3dq/zdvAVnpRCD3uKi7neXQ0ZGw8FNppe42nmRFv82htC4Sqt8jI FegjRiCQVM1kaMoZ6xl6n1pAUhDyCdDNT/QY2DpCmFBezV3KdJk9OUmeqN2JrHb1B93/Sy c0QYD5ugVvbS7J/tjXV3sfySTlHs9uzqMIWadcU0fKnLe6AluGpf+IHiJxvzuYqh2ZqIHv vVIiIMqUPSpdCLi9Zsc3zmCi7N3/kkxG8ZfoliRjU8mMos846/rjYeWmb33R0lOIxm7JDx n2R74W2NIn7yRNW7P7hxEorSWazPlOesXqPjwO/WR2FrUiWsfAuhGryokWYujw== 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 4TYJzX6jkxzLlJ; Mon, 12 Feb 2024 09:28:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41C9SOcu073528; Mon, 12 Feb 2024 09:28:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41C9SO01073525; Mon, 12 Feb 2024 09:28:24 GMT (envelope-from git) Date: Mon, 12 Feb 2024 09:28:24 GMT Message-Id: <202402120928.41C9SO01073525@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: d9c0e2e16660 - main - Revert "Build clang and other llvm executables as PIE" 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: d9c0e2e16660ecbe33e780821e95508a1d7870b1 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d9c0e2e16660ecbe33e780821e95508a1d7870b1 commit d9c0e2e16660ecbe33e780821e95508a1d7870b1 Author: Dimitry Andric AuthorDate: 2024-02-12 09:27:00 +0000 Commit: Dimitry Andric CommitDate: 2024-02-12 09:27:00 +0000 Revert "Build clang and other llvm executables as PIE" This reverts commit 470f9f13de10e47e6d45721c15af6b4abe7aad55. I need more time to figure out how to make this work correctly with incremental builds, which it currently miserably fails on. --- lib/clang/Makefile.inc | 6 +----- usr.bin/clang/Makefile.inc | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/clang/Makefile.inc b/lib/clang/Makefile.inc index 5a8ead5292c6..2dfc966726b0 100644 --- a/lib/clang/Makefile.inc +++ b/lib/clang/Makefile.inc @@ -2,11 +2,7 @@ .include PACKAGE= clang - -# Build only PIE static libraries; bsd.lib.mk does support this directly. -MK_PIE:= no -CFLAGS+= ${PIEFLAG} ${SHARED_CFLAGS} -CXXFLAGS+= ${PIEFLAG} ${SHARED_CXXFLAGS} +MK_PIE:= no # Explicit libXXX.a references .if ${COMPILER_TYPE} == "clang" DEBUG_FILES_CFLAGS= -gline-tables-only diff --git a/usr.bin/clang/Makefile.inc b/usr.bin/clang/Makefile.inc index 8f812e24fcdb..831cd56a8c25 100644 --- a/usr.bin/clang/Makefile.inc +++ b/usr.bin/clang/Makefile.inc @@ -3,6 +3,8 @@ WARNS?= 0 .include +MK_PIE:= no # Explicit libXXX.a references + .if ${COMPILER_TYPE} == "clang" DEBUG_FILES_CFLAGS= -gline-tables-only .else From nobody Mon Feb 12 11:00: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 4TYM1b3wXXz59ZSh; Mon, 12 Feb 2024 11:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYM1b3QNgz4VY4; Mon, 12 Feb 2024 11:00:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZAlAlJeb2JQ/exs1zCcjDtd5kGZon1SuUjLiQOVI39M=; b=oHcW6ywqC2QelqxNwK7Iu8vphRDNwAwcow4H/CT4VM00fkkbcbSx/DzS4T2JfW8XDf6AMb yWMiWIZuxDd67Cl74Tgd84DzAB7Zi2hP0pAt11U9ya55G+6RJP7lhYWSg4gGBhfywE0ufT u8+d/t3ahqUFC/1DXfWeY7Br1vV2eStoZAi/HMqmN8vXpZbBNDG9MYDhxVxfS+SFIzULUS y+H8z7T9hcPNSPZ0HJhiZ2QeAwTsgWizuZy2nw8hB5QH5u2XoCZcnehYYVfNmyBlE+QlyB bJET611hv2VXhfamYcMP7Q65c43nWkgYKqclPj8UmRaCG5bAVUo/2D4ANkessw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707735619; a=rsa-sha256; cv=none; b=HgrRt51vpKKk/LLuqGI5k9ArUMq8+nZEQwI9aFcse+gvv9orafGTLezo511R8P42CdCqku Jy2pDE/JMWBSeCkR7K71ZQBQbsPxcyA0pMZEs/HUG43gRujlPXDEZn7opnFtHKmTl4hbPq HaO1jzDlasOob6NOVPTDYcirVElWkfY9V1ArTeidSDqU6ZdK0S7ldVe+G4dK5arTiVD8um XyQu22+n9H0aDSt6f9jI0sRwm7o+dNzGzskwBuitg4DOwX7fZVmexoYnkxmbVa4U7dEINK AJpwVD8mwBbzc8HWJ029RmKnP++UOLQb0aRn+Ob7dfjIfdHRgQJ8wwMJpyv4og== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZAlAlJeb2JQ/exs1zCcjDtd5kGZon1SuUjLiQOVI39M=; b=qbw1QipCQUp+79wsoBEtnFr0kG2djQS72sKkueACOc1txnuBU4lXLjPuMmS6m6+5rOlG61 sStw/ArlhniOfTJ0VsdPjCKkueC3LZqyToNRL7Bsk+rOjWuSxEp1G0q7Db69VYx64ozUmW wSsd01jTXBl8XIdk+b8DClauEzniLVKh7W11h04JODzc8ImrFsT7Lh+j6/R482YmiNW2Ze 42vl9ojiFgRUKWaNloO3PGTYkZFGOMHCe6u4T3qQbmFG3bEqq+i2YvIwp/TdD0Z5o1fLpD Bbfd8MnsbSYB9ApGmTPhjZ03JvzpgJhQ/RgRpj+DFJ8eFUXAVLv33+jzKWGgGA== 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 4TYM1b2T0zzNnC; Mon, 12 Feb 2024 11:00:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB0JTT033178; Mon, 12 Feb 2024 11:00:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB0JSF033175; Mon, 12 Feb 2024 11:00:19 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:00:19 GMT Message-Id: <202402121100.41CB0JSF033175@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 09ba07011a62 - main - mixer(8): Improve error messsages and 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 09ba07011a627e3ea05e0be8ee6db76fd2371540 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=09ba07011a627e3ea05e0be8ee6db76fd2371540 commit 09ba07011a627e3ea05e0be8ee6db76fd2371540 Author: Christos Margiolis AuthorDate: 2024-02-12 10:58:55 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 10:59:58 +0000 mixer(8): Improve error messsages and warnings No functional change intended. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch, imp Differential Revision: https://reviews.freebsd.org/D43793 --- usr.sbin/mixer/mixer.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index bb868fb5ca9b..043c8c412857 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -66,9 +66,10 @@ main(int argc, char *argv[]) aflag = 1; break; case 'd': + errno = 0; dunit = strtol(optarg, NULL, 10); if (errno == EINVAL || errno == ERANGE) - err(1, "strtol"); + err(1, "strtol(%s)", optarg); dflag = 1; break; case 'f': @@ -92,11 +93,11 @@ main(int argc, char *argv[]) /* Print all mixers and exit. */ if (aflag) { if ((n = mixer_get_nmixers()) < 0) - err(1, "mixer_get_nmixers"); + errx(1, "no mixers present in the system"); for (i = 0; i < n; i++) { (void)snprintf(buf, sizeof(buf), "/dev/mixer%d", i); if ((m = mixer_open(buf)) == NULL) - err(1, "mixer_open: %s", buf); + errx(1, "%s: no such mixer", buf); initctls(m); if (sflag) printrecsrc(m, oflag); @@ -111,7 +112,7 @@ main(int argc, char *argv[]) } if ((m = mixer_open(name)) == NULL) - err(1, "mixer_open: %s", name); + errx(1, "%s: no such mixer", name); initctls(m); @@ -212,7 +213,7 @@ initctls(struct mixer *m) } if (rc) { (void)mixer_close(m); - err(1, "cannot make controls"); + errx(1, "cannot make mixer controls"); } } @@ -315,7 +316,7 @@ set_dunit(struct mixer *m, int dunit) return (-1); } if (mixer_set_dunit(m, dunit) < 0) { - warn("cannot set default unit to: %d", dunit); + warn("cannot set default unit to %d", dunit); return (-1); } printf("default_unit: %d -> %d\n", n, dunit); From nobody Mon Feb 12 11: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 4TYM1c4xvjz59ZSn; Mon, 12 Feb 2024 11: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYM1c4Nwzz4VGx; Mon, 12 Feb 2024 11: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=1707735620; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GpBcbkpSKR3+qLhsUi6FUk3SL/5wbL/Mb4aITLW94+U=; b=t93wul6I1Nz47/mu/KFP/LEg/Sb044poaWRC6/pZn7Lga50M79FBCKW5KkXilZwsOPADtw GLiz+prJjGjgSSxYFcylyIq0Be1kanrNhnkbFO8zxtFib9cK0TIp9sCd7t4pCn46m6I1QV Tq0jZASuO5dvdy6BUmRSFJHE55Q8L5yf0m64cWdW/ObQzxd/FuRSjz6xTaXgP41mfqCTEq NfyNyGv2a+OTkxpoyY3IlCWijXwAmMIcUlu8coGsPqjlI2nF12nF/xpyqmBzVlEQ3Bjwwd 7n6DiL+XwyqjsPiEWr71nXGYjsX2gIZshscPqiKGBSUlcIg5ADPfMKSen1hG2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707735620; a=rsa-sha256; cv=none; b=jCKvYHwdZrEMbQz4+3IlvenP5UbrQ/d4EKbD0QXDbpH3jCG/IJSH+PL0lr2+qh2WdQhZiO JuuBq9iap+LefVwmUSmA87wtwjNJ/fmNhP5soLvzZZk5g/q4311q2i6R5x52SZOv932J3x KekkhHcMJrqsCJKUVGR2XAzm6vpcsxdt/on0afuM/a+0Y15/3KqLArEIHp9aflHXFjf/3O YyMdXqPXPaSyGFf9vjWhGdcM/UuCHzyTVjWJE/i1uKqatxQbx4qo1gTf/u5M30w7tzxTyQ 5RuItjpsp3sTqs00kt2VIvVD/PPhtnmZdJvD5ePk5ruBzpE008k9u7alV0R6hw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735620; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GpBcbkpSKR3+qLhsUi6FUk3SL/5wbL/Mb4aITLW94+U=; b=nLcVC9AmcQ7xi2UbYbFgYm70T9eHqjFiiz6MaIBDXsMm7UaHQRI1oGitUOxm84/6C7sAh1 hz+Fp4Udd9+30u41PigaMyIHismtjaGlB1ULtbXhjdPZAst4YR0WzXTFcCe2HMZbADECXg ghXI55lzRR4st8ZX0Vj/U+KBUgxQ4F7BG3bmEFUdsHzgk/R1L+E+aEazff6HLPI7DoQNkA VTrm51HJ7Xmt6MG0JnWFp9M+RlqZrJnvZA9MUMjqJ2wmcVlpzDmmqovrHw2I4xUpQt4ljn EhKiI9JA1u6pSC3exCcuOuwX26IAsZ27yDNrPZkk/k3FP6zjyu7AedJeOvNHRQ== 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 4TYM1c3VvhzNpw; Mon, 12 Feb 2024 11:00:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB0KGH033241; Mon, 12 Feb 2024 11:00:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB0K7h033239; Mon, 12 Feb 2024 11:00:20 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:00:20 GMT Message-Id: <202402121100.41CB0K7h033239@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 75be886e58dc - main - mixer(8): Allow full PCM device names as input for the -d option 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 75be886e58dc237b633104fc9cf8d7d1285e4003 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=75be886e58dc237b633104fc9cf8d7d1285e4003 commit 75be886e58dc237b633104fc9cf8d7d1285e4003 Author: Christos Margiolis AuthorDate: 2024-02-12 10:59:02 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:00:05 +0000 mixer(8): Allow full PCM device names as input for the -d option The -d option is a wrapper around hw.snd.default_unit. Currently mixer(8) expects the option argument to be just the unit's number (e.g pcm0 -> 0). To avoid confusion, allow full device names of the form "pcmN" as well. While here, improve the -d option's description in the man page. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch, imp Differential Revision: https://reviews.freebsd.org/D43794 --- usr.sbin/mixer/mixer.8 | 23 ++++++++++++++--------- usr.sbin/mixer/mixer.c | 6 ++++-- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/usr.sbin/mixer/mixer.8 b/usr.sbin/mixer/mixer.8 index 10a461d91693..5750b81c98c5 100644 --- a/usr.sbin/mixer/mixer.8 +++ b/usr.sbin/mixer/mixer.8 @@ -19,7 +19,7 @@ .\" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN .\" THE SOFTWARE. .\" -.Dd January 12, 2024 +.Dd February 8, 2024 .Dt MIXER 8 .Os .Sh NAME @@ -28,12 +28,11 @@ .Sh SYNOPSIS .Nm .Op Fl f Ar device -.Op Fl d Ar unit +.Op Fl d Ar pcmN | N .Op Fl os .Op Ar dev Ns Op Cm \&. Ns Ar control Ns Op Cm \&= Ns Ar value .Ar ... .Nm -.Op Fl d Ar unit .Op Fl os .Fl a .Nm @@ -44,16 +43,17 @@ The utility is used to set and display soundcard mixer device controls. .Pp The options are as follows: -.Bl -tag -width "-f device" +.Bl -tag -width "-d pcmN | N" .It Fl a Print the values for all mixer devices available in the system .Pq see Sx FILES . -.It Fl d Ar unit +.It Fl d Ar pcmN | N Change the default audio card to -.Ar unit . -The unit has to be an integer value. -To see what unit values are available, look at the number each mixer device has by running -.Nm . +.Ar pcmN , +where N is the unit number (e.g for pcm0, the unit number is 0). +See +.Sx EXAMPLES +on how to list all available audio devices in the system. .It Fl f Ar device Open .Ar device @@ -218,6 +218,11 @@ opens when the option has not been specified. .El .Sh EXAMPLES +List all available audio devices in the system: +.Bd -literal -offset indent +$ mixer -a | grep ^pcm +.Ed +.Pp Increase the volume for the .Cm vol device of the first mixer found by 5%: diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index 043c8c412857..0c0c37ccb2bc 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -66,6 +66,8 @@ main(int argc, char *argv[]) aflag = 1; break; case 'd': + if (strncmp(optarg, "pcm", 3) == 0) + optarg += 3; errno = 0; dunit = strtol(optarg, NULL, 10); if (errno == EINVAL || errno == ERANGE) @@ -194,8 +196,8 @@ next: static void __dead2 usage(void) { - fprintf(stderr, "usage: %1$s [-f device] [-d unit] [-os] [dev[.control[=value]]] ...\n" - " %1$s [-d unit] [-os] -a\n" + fprintf(stderr, "usage: %1$s [-f device] [-d pcmN | N] [-os] [dev[.control[=value]]] ...\n" + " %1$s [-os] -a\n" " %1$s -h\n", getprogname()); exit(1); } From nobody Mon Feb 12 11:00: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 4TYM1f0lFcz59ZSq; Mon, 12 Feb 2024 11:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYM1d5QSMz4Vdc; Mon, 12 Feb 2024 11:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S4dW34hU4kO0nr/hKSKBNb4Y/TtP0yFmsBX9vVy52Tk=; b=AZ/h8pWPJ6Nff5upot1Wr/2P3NA7e1WfYUqHP0XNXz6h4Rdv/+rZNnOItvNWG9NnHqk0pC tZTgLlAUuDullmEpUOjrsrNtdzUFr7uds0mhadKKXiS9jaEYYIkjZ8oOS3GJG4eM1gAugF +/RsX9KoyhLFrHooDvVAHoC88L8qGMLdTFj1FE9hQNZTnivzX95DeIQt9kEtSLCn4pULHb Pc5DzKiy+Jsrd/L12wu6qBLqR6jaYBEtKJ/qlmavXeWClYXH/6yLlOkUxQ7WwMmPqts/QP 5Q1dy4IFEFIIabqXC28qmhkl9HqFXIo+BeH2AxhQ66veqxosrCF7DgN8oSFPhw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707735621; a=rsa-sha256; cv=none; b=r8IqQM7AE92J0A9J6V0AmjZGwT3yD1lHRlYk1EI1/6gKfnlglEveWO/8bF3UXoJ8GvfaDi TreQPQzjAKYnMAd/k4XS5OFFkxW/vnpbNRw9blGkJUDfuyAT7eCMTmtrHsr23JRIgzOiE7 THiyNLVMKAdq/IfQwrSSYj5S1P4BDl9WF44FaJZ12/8AwPd42LO2IK6eXUzKIun0N7r+uH lcE7QZyKPZZYAi3Q8EIEH0WzHNppkrAOavmHDlfdRra8n7umQfVVxzf93it60YUSdRSIom wfMcxDoHyVjv39cA7mT48AIJoEqAewXwL2I8/m2gMAlp3UUOcJJlC1sW/qfPOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S4dW34hU4kO0nr/hKSKBNb4Y/TtP0yFmsBX9vVy52Tk=; b=YFV9yLsENJxZ7ujQAQ13Elfva5Uiri04bhtUhmJVDqEwd+nrXHb1vybzIh9XKuvyYAeAG3 XXuFgRn0W9kEitOVEC86mN8sytYlcY+DAyJ5iWkfxaVD51ghKcRguvej1DwY6RcF2cNkyd ipXNr9mMkHwDQUZCEHCyRPSzDA9cM2+TdWdZN8UQ9z7zK7v3ooRMu7P2cyVzBYj3+ADBk5 6E5uJa9NZU5CYF4p5V8QX08bbVhvaEifHwdR89oJpsAuKsbs2RE7DK/oEka4vtzCKhfMcA qgzQLu4+GvtjS8k4bwbnUFN3ZNOMvZhQKlnlLkB8jqLYRcGZawHGZAgreLX6PA== 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 4TYM1d4VJxzNRT; Mon, 12 Feb 2024 11:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB0L5u033280; Mon, 12 Feb 2024 11:00:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB0L0X033277; Mon, 12 Feb 2024 11:00:21 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:00:21 GMT Message-Id: <202402121100.41CB0L0X033277@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 7bd14d09a92a - main - mixer.8: Fix wrong sentence 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 7bd14d09a92a63f217ccee92e7fc9a1d6d60b387 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=7bd14d09a92a63f217ccee92e7fc9a1d6d60b387 commit 7bd14d09a92a63f217ccee92e7fc9a1d6d60b387 Author: Christos Margiolis AuthorDate: 2024-02-12 10:59:16 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:00:05 +0000 mixer.8: Fix wrong sentence 246e0457d93071ffd901c78e3ee7badc5f51bd4c ("mixer.8: Add terse example for increasing volume") mentions that the example changes the volume of the "first mixer found", while the example shows how the change the volume of the current mixer's "vol" device. Re-phrease sentence to reflect the actual behavior of the command. Also, improve the example by using the % operator, instead of hardcoding 0.05. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43795 --- usr.sbin/mixer/mixer.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/mixer/mixer.8 b/usr.sbin/mixer/mixer.8 index 5750b81c98c5..db0ec5f23a0c 100644 --- a/usr.sbin/mixer/mixer.8 +++ b/usr.sbin/mixer/mixer.8 @@ -223,11 +223,11 @@ List all available audio devices in the system: $ mixer -a | grep ^pcm .Ed .Pp -Increase the volume for the +Increase the .Cm vol -device of the first mixer found by 5%: +device's volume by 5%: .Bd -literal -offset indent -$ mixer vol=+0.05 +$ mixer vol=+5% .Ed .Pp Change the volume for the From nobody Mon Feb 12 11:00: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 4TYM1g10R0z59ZLp; Mon, 12 Feb 2024 11:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYM1f6RCPz4VHZ; Mon, 12 Feb 2024 11:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fd0oGpjmEM+fAQQy9KeMYwSLIG3SKArAAchGCNiFzCg=; b=YF10GsyjGfC87gsxLnuyui+wC+1+SKdft0usXm0MV3XfGFXI52czDqrosyx9H/T1bNaxQm IcL80+zuor0IprbMjCZG6ti4vHDJjW+ZmcQ7bjWp4A9bH+0r9MFbhh7m6nE/qC2pHsofV0 /dDj+E6gJgOKaoubZebftEvO5waeVo0G5Dkc7XuNWQtUOw8SUSCxwVj1qVINZm1sOg/ZW1 tLTsnWVsAaKLEcPtPzYGwVHERkWJLjmqKs5oWrzqKUEHhbLkQbqQvLYS0a9l+zPEmCy6s0 uYx5Fad6dV+btnXD7Yz2ucG20VS5FF1ENdrNcAF8Alvsm+MTMSmzHediOlfFTA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707735622; a=rsa-sha256; cv=none; b=ICQiWAAMRMRVNtH1NtEwNd8yesy1ZAadQObN+JKp1aJU5a0Myn/D+3fKq6eqnXLiwZTlqp DwvMdNud++QMBcuqk8BmYuy5jn0zp8JYtI3q6wSwVcpT1KejsZOOkUiz2SHEWXunSSGM1i 7tVdT2/E4skhHz6vZKti45Olg5Yptsbq+y6n5CmLHN3JEMGDYbwY+GDZeV8HMPDJ6grBFi Y8Czgp8mkDCewUH36nP76SeIolM57mSSzIIHUXuO0IJmZHCX+dXhpbFEiVOwTbXCYjskXf Kx7CjZ7TWzXUMkY5YP94J/jovvfjeHzYSWrtNAY8zEOdR3CXuB+lZE5pj94YHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fd0oGpjmEM+fAQQy9KeMYwSLIG3SKArAAchGCNiFzCg=; b=oJvt+utIjsq/Ls+oBbYInvKguvWKH/M1ZbSHAtEZqQaFtqdUYtZlQoEqx1Ce9gRZ0UWi47 zQieMF/6lytMl5KsVLPDI4h6WBnSt8T4kGeiHxYFr8m4iuhIrhPTCP/vG0GnvR2KjxK10E X4TPwwVIep6xVFESzXh7NxLQXfei3vYo/3NMJXuSSAnMiCu+oMimi/BIZuh3nImGb/E+dD fSiqxXmW7gSyOJvwT9SWQNwgXK9RzBPmUfTYhhLw7DBCNj9xFDWA2gjhRMHX7X6dCf13vx CrMFDWxKcsC1SnQZgvK9z7fkCq4ISGqL3W5BTK7jacTW9Uqpzs4z7pXFVYR6eQ== 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 4TYM1f5TyzzNRV; Mon, 12 Feb 2024 11:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB0MUD033325; Mon, 12 Feb 2024 11:00:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB0M4G033322; Mon, 12 Feb 2024 11:00:22 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:00:22 GMT Message-Id: <202402121100.41CB0M4G033322@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: cc7479d7dc9b - main - mixer(8): Improve mute and recsrc controls 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: cc7479d7dc9b895c0a2f4d3805315437e03d0cf6 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=cc7479d7dc9b895c0a2f4d3805315437e03d0cf6 commit cc7479d7dc9b895c0a2f4d3805315437e03d0cf6 Author: Christos Margiolis AuthorDate: 2024-02-12 10:59:22 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:00:05 +0000 mixer(8): Improve mute and recsrc controls The input options of "dev.mute" (+, -, ^) and "dev.recsrc" (+, -, ^, =) are quite cryptic. Allow the input to also be an actual description of what these options do. + -> add (recsrc) - -> remove (recsrc) ^ -> toggle (recsrc, mute) = -> set (recsrc) 0 -> off (mute) 1 -> on (mute) Also, deprecate the use of the symbol options in the EXAMPLES section of the man page, by using the new descriptive options. In the future, we might want to get rid of the symbol options altogether, but preserve backwards compatibility for now. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch, imp Differential Revision: https://reviews.freebsd.org/D43796 --- usr.sbin/mixer/mixer.8 | 33 +++++++++++++++++--------------- usr.sbin/mixer/mixer.c | 52 +++++++++++++++++++++++--------------------------- 2 files changed, 42 insertions(+), 43 deletions(-) diff --git a/usr.sbin/mixer/mixer.8 b/usr.sbin/mixer/mixer.8 index db0ec5f23a0c..75c6a81e3a55 100644 --- a/usr.sbin/mixer/mixer.8 +++ b/usr.sbin/mixer/mixer.8 @@ -114,7 +114,9 @@ with one of the available devices): .Oo Cm \&: Oo Cm \&+ | Cm \&- Oc Ar rvol Oo % Oc Oc .Xc .It Ar dev Cm .mute Ta Cm 0 | 1 | ^ +.It Ar dev Cm .mute Ta Cm off | on | toggle .It Ar dev Cm .recsrc Ta Cm ^ | + | - | = +.It Ar dev Cm .recsrc Ta Cm toggle | add | remove | set .El .Sm on .Pp @@ -150,14 +152,14 @@ The .Ar dev Ns Cm .mute control (un)mutes a device. The following values are available: -.Bl -tag -width = -offset indent -.It Cm 0 +.Bl -tag -width "xxxxxxxxxx" -offset indent +.It Cm 0 | off unmutes .Ar dev -.It Cm 1 +.It Cm 1 | on mutes .Ar dev -.It Cm ^ +.It Cm ^ | toggle toggles the mute of .Ar dev .El @@ -174,22 +176,23 @@ To modify the recording source you can use one of the following modifiers on a .Sy rec device: -.Bl -tag -width = -offset indent -.It Cm ^ +.Bl -tag -width "xxxxxxxxxx" -offset indent +.It Cm ^ | toggle toggles .Ar dev of possible recording devices -.It Cm + +.It Cm + | add adds .Ar dev to possible recording devices -.It Cm - +.It Cm - | remove removes .Ar dev from possible recording devices -.It Cm = -sets the recording device to +.It Cm = | set +makes .Ar dev +the only recording device. .El .Sh FILES .Bl -tag -width /dev/mixerN -compact @@ -250,16 +253,16 @@ $ mixer mic.volume=+0.10:-0.05 Toggle the mute for .Cm vol : .Bd -literal -offset indent -$ mixer vol.mute=^ +$ mixer vol.mute=toggle .Ed .Pp -Set +Add .Cm mic -and toggle +and remove .Cm line -recording sources: +from the recording devices: .Bd -literal -offset indent -$ mixer mic.recsrc=+ line.recsrc=^ +$ mixer mic.recsrc=add line.recsrc=remove .Ed .Pp Dump diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index 0c0c37ccb2bc..83e97df19116 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -413,26 +413,24 @@ mod_mute(struct mix_dev *d, void *p) m = d->parent_mixer; cp = mixer_get_ctl(m->dev, C_MUT); val = p; - switch (*val) { - case '0': + if (strncmp(val, "off", strlen(val)) == 0 || *val == '0') opt = MIX_UNMUTE; - break; - case '1': + else if (strncmp(val, "on", strlen(val)) == 0 || *val == '1') opt = MIX_MUTE; - break; - case '^': + else if (strncmp(val, "toggle", strlen(val)) == 0 || *val == '^') opt = MIX_TOGGLEMUTE; - break; - default: - warnx("%c: no such modifier", *val); + else { + warnx("%s: no such modifier", val); return (-1); } n = MIX_ISMUTE(m, m->dev->devno); if (mixer_set_mute(m, opt) < 0) - warn("%s.%s=%c", m->dev->name, cp->name, *val); + warn("%s.%s=%s", m->dev->name, cp->name, val); else - printf("%s.%s: %d -> %d\n", - m->dev->name, cp->name, n, MIX_ISMUTE(m, m->dev->devno)); + printf("%s.%s: %s -> %s\n", + m->dev->name, cp->name, + n ? "on" : "off", + MIX_ISMUTE(m, m->dev->devno) ? "on" : "off"); return (0); } @@ -448,29 +446,26 @@ mod_recsrc(struct mix_dev *d, void *p) m = d->parent_mixer; cp = mixer_get_ctl(m->dev, C_SRC); val = p; - switch (*val) { - case '+': + if (strncmp(val, "add", strlen(val)) == 0 || *val == '+') opt = MIX_ADDRECSRC; - break; - case '-': + else if (strncmp(val, "remove", strlen(val)) == 0 || *val == '-') opt = MIX_REMOVERECSRC; - break; - case '=': + else if (strncmp(val, "set", strlen(val)) == 0 || *val == '=') opt = MIX_SETRECSRC; - break; - case '^': + else if (strncmp(val, "toggle", strlen(val)) == 0 || *val == '^') opt = MIX_TOGGLERECSRC; - break; - default: - warnx("%c: no such modifier", *val); + else { + warnx("%s: no such modifier", val); return (-1); } n = MIX_ISRECSRC(m, m->dev->devno); if (mixer_mod_recsrc(m, opt) < 0) - warn("%s.%s=%c", m->dev->name, cp->name, *val); + warn("%s.%s=%s", m->dev->name, cp->name, val); else - printf("%s.%s: %d -> %d\n", - m->dev->name, cp->name, n, MIX_ISRECSRC(m, m->dev->devno)); + printf("%s.%s: %s -> %s\n", + m->dev->name, cp->name, + n ? "add" : "remove", + MIX_ISRECSRC(m, m->dev->devno) ? "add" : "remove"); return (0); } @@ -493,7 +488,8 @@ print_mute(struct mix_dev *d, void *p) struct mixer *m = d->parent_mixer; const char *ctl_name = p; - printf("%s.%s=%d\n", m->dev->name, ctl_name, MIX_ISMUTE(m, m->dev->devno)); + printf("%s.%s=%s\n", m->dev->name, ctl_name, + MIX_ISMUTE(m, m->dev->devno) ? "on" : "off"); return (0); } @@ -506,7 +502,7 @@ print_recsrc(struct mix_dev *d, void *p) if (!MIX_ISRECSRC(m, m->dev->devno)) return (-1); - printf("%s.%s=+\n", m->dev->name, ctl_name); + printf("%s.%s=add\n", m->dev->name, ctl_name); return (0); } From nobody Mon Feb 12 11:00: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 4TYM1h2b3vz59ZYl; Mon, 12 Feb 2024 11:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYM1h0LLSz4Vn0; Mon, 12 Feb 2024 11:00:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uQrOaTQMMuj6xCyGIxaGjyP9QLQKb3zUGAeq0+RanRo=; b=VxckLDQy5CTDdFEG1i/u5ShGDX3YlcwgCGpWOrjS8fatJjE+Z5Ukr4Mp/tQS+DeoGvdrn4 burVYPYD84OY+yBkab/w45LTlf+r4WBgIy9h+F4u1lThXFBTbAZ8LK4rrDZ5MXpGE6mx3s bU25+kVo6PLTENM3QAtrc/EREM7bnCRy0TRyZROwzEez6MvwE6ueF8QiEzJgqFJaNITwnS JPdD1Q6vvterjCTL6MGg62zAlOONtExeEg4R1qqwbpeySeEwuaTztweoyj8u48q+etwb2V udmndrHk1MUXtQvRtFwJ98aljLe89OVvnded7ZhPV95X4Tjc+9DUPxYZiWy1zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707735624; a=rsa-sha256; cv=none; b=KhID5WSf23yTLA7TyU+iOZ7yit3/E5kb9Kdo8pfpf5rzjIYeGwx1XGh4iGS2pieHJxhb1a cxb+ZZaQFIxqwvj+ba3AOjz65vtyEGScCUMuuFe4YVJWJ1y/ZidWcLYXGfiZVdmZE16pS9 7+mjgGZdfMYLPZ3FFkeHTH7TWLj9LN0IpJgQ+FAXVN32hEB+QxgnryOzPNi8Wx1YcYb674 yhz5ZAhRy1fJW2ywsPlSTYPRSUPMo+ZwPKo6yjiKHOW2uWKMVnGdQva+4xc7saQX5E1UZ4 t6MlPFG+78+xKJ72FCQAnYBULwkPCaHiwlgrdPRMMMu+hNV8FtcHCWc/7+ic1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uQrOaTQMMuj6xCyGIxaGjyP9QLQKb3zUGAeq0+RanRo=; b=W79tQ1Orz2VCCcy+pNNyR/nYrRU1eL7dQf6FLuISUpcibsOyqoAnUVaFVL7Ya07fIFk/TH VvyK8I6M1NUMUiuPHiCzR7QDPEwKxk7PL3LA9v/G16PrCvAqzpskjNiKne24aejgspAuYx g1rI6C4r1uTayi0ylKtsQvvXfTHTlxosHk19Sw1r9njlOU3grXEPuY0+elywkvX3WktDjI ruqmu8+35stG5HWUw/LHBVsVAqlls/u6T0ul7zh88fuWgXo3KVUuEhq1Ma38J4fuoIuZHI Xkb0NGTBERQSGqjgVVYPuzfKqBNUscdBr1LEy2fgYkA3b8BndWr0xEQOkgljqw== 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 4TYM1g6XTGzPDQ; Mon, 12 Feb 2024 11:00:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB0NGV033388; Mon, 12 Feb 2024 11:00:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB0N7s033386; Mon, 12 Feb 2024 11:00:23 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:00:23 GMT Message-Id: <202402121100.41CB0N7s033386@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 5daa7cf42f45 - main - mixer(8): Use new mixer if we change the default unit 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 5daa7cf42f4551cb2f4a452fd038807925320eac Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=5daa7cf42f4551cb2f4a452fd038807925320eac commit 5daa7cf42f4551cb2f4a452fd038807925320eac Author: Christos Margiolis AuthorDate: 2024-02-12 10:59:28 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:00:05 +0000 mixer(8): Use new mixer if we change the default unit If we use the -d option to change the default unit, close the current mixer and open the one we set as the default to avoid printing and applying changes (if any) to the old one. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43809 --- usr.sbin/mixer/mixer.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index 83e97df19116..47d8e6359b73 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -118,8 +118,21 @@ main(int argc, char *argv[]) initctls(m); - if (dflag && set_dunit(m, dunit) < 0) - goto parse; + if (dflag) { + if (set_dunit(m, dunit) < 0) + goto parse; + else { + /* + * Open current mixer since we changed the default + * unit, otherwise we'll print and apply changes to the + * old one. + */ + (void)mixer_close(m); + if ((m = mixer_open(NULL)) == NULL) + errx(1, "cannot open default mixer"); + initctls(m); + } + } if (sflag) { printrecsrc(m, oflag); (void)mixer_close(m); From nobody Mon Feb 12 11:00: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 4TYM1j1nfsz59ZYq; Mon, 12 Feb 2024 11:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYM1j15khz4VZD; Mon, 12 Feb 2024 11:00:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=X32RC32XxwTTI5KevtY0Y4mAMmUzYJ4q/PlbNLPH8yg=; b=G17sVmmofiw3ppid+yxxUiiy2MPHalZrfzCAWXYwvEmBHwan+oumiNpIJJ8ob6zGorQru5 1Th3YA9bbbK8sTXZf1Rbyhg/WUuDTJHuyxM6W+PQPLHT/2Cw65/O6Hgnde3QEFUfI6UPaz 20jNVI1f8yvKJIm52PkAiNUpgAyodqMINyj8bzRiEwKvp6Z5eGLm1ArFiNQkrDq8w3EhVw 4wOWAoM0K66wQeTidOi6eqtXAnmeFdOlcgne2NLdi3TRJi3CZ88Sj/kzgrvZSVH6kh6Ksg ke1VtuE0MA3BEhPPYxA1bTk2oW77I5bLeMv3KcmSFflHPOF2bBf+c/Qb9u2s4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707735625; a=rsa-sha256; cv=none; b=Dy0BtmEb3ZF491s/xWhbY45D/8rJ2hMNUEpLY2imAoEYhQNl1UhVTkDuNr+9ksbmZGuwmp 8KWvqGvGtLyzfqpME8rU4n5EZO1i10idtel7OXofZHVh2s3mJLUVdI24AfTBNfWIOGF1Hl zuGgqvGyqtQJxHbHVzc9t6PMxqLQZsfuBB72k2Q47/9FMe1aNnAGQ9TSqyAWulR6lfBec3 JRSDv5L81re5REwh8OZAH05wy0z98ak7W8X1v1VHEXBsmgIa0bf0KY+mVJwhJ8uxruQzUp +vFiADl7um+xmVVZthlfXygsy0eMDRDgjfbw5ZQWby9IZ0kWyvHZDJ4tj501vw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707735625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=X32RC32XxwTTI5KevtY0Y4mAMmUzYJ4q/PlbNLPH8yg=; b=kTDlPbQPep4wWlV0ah+VAdAMBSjMLSXJV77rJqnfw4xJGo3p007KsDjKa12ERcPYLJfwmG pPAyv1cVyj+etcJJemhVoQdVW3dDYmIKWx4l88b7zxjh/B508lDlC5Wp8Lnk8EiCtW1IaS xl+abvXzNqJHRFs4vfPhFe/Dc0NSVvFfYQQD39HRKGcdm6srDdZ8026FFB0q+QxL6g313L orqrPtxTO1IN3I19P2g5I7Kzd6m6PIwImg//l+19U/cm0nT0rPSl/1LB2ZrzVwnNNB7jlP qlGRIbeDLpEuzcXUlJoMYoaO7Ayakj+UjX4yvWEatP+d59fQoD6+8TQ5HYRRYA== 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 4TYM1j0CHxzNnD; Mon, 12 Feb 2024 11:00:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB0OJd033431; Mon, 12 Feb 2024 11:00:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB0Oeb033428; Mon, 12 Feb 2024 11:00:24 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:00:24 GMT Message-Id: <202402121100.41CB0Oeb033428@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 53c768e6836a - main - mixer(3): Do not hardcode "/dev/mixer" 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 53c768e6836a32c8dcd0b0b422a169ef7a82a3ab Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=53c768e6836a32c8dcd0b0b422a169ef7a82a3ab commit 53c768e6836a32c8dcd0b0b422a169ef7a82a3ab Author: Christos Margiolis AuthorDate: 2024-02-12 10:59:32 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:00:05 +0000 mixer(3): Do not hardcode "/dev/mixer" We have BASEPATH defined. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43812 --- lib/libmixer/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libmixer/mixer.c b/lib/libmixer/mixer.c index d78ca6e0fc87..93ace1d0c69b 100644 --- a/lib/libmixer/mixer.c +++ b/lib/libmixer/mixer.c @@ -87,7 +87,7 @@ mixer_open(const char *name) dunit: if ((m->unit = mixer_get_dunit()) < 0) goto fail; - (void)snprintf(m->name, sizeof(m->name), "/dev/mixer%d", m->unit); + (void)snprintf(m->name, sizeof(m->name), BASEPATH "%d", m->unit); } if ((m->fd = open(m->name, O_RDWR)) < 0) From nobody Mon Feb 12 11:08: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 4TYMCL35hZz59bDV; Mon, 12 Feb 2024 11:08: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYMCL0ftKz4Y3g; Mon, 12 Feb 2024 11:08:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=249hNd4P0OXZHjvJwM+ORSaqkw9gTESp+HGidM7NOg8=; b=T28EzHgtLvF3uNmss9OkSt9kAiCVH1RFXKIkPW8g416BlntFug4DKs5wwAyPYc3YpdRqbE YchpOn6RJabVDd9vyIqZEwPBjXHXEyQ21n+AnPNajGIabfj9STc4ZMAEf+F/gJmlrjaE6p 3KPUIOnmQV1Y0p3/WN9AsdnqA9IL4P6kwIOs11ER47gVTNj+AT6P4vmg96zTqpHXHeQ3f5 oPqOzbXRWDhZcRGxSUN/6DB06lcrB4Ymg7eGSDcrHOHZyRxt6TEyWsEfRi0M9uxTb5+8LY b0zpkkjVfB5Wh/U0/b2YeJz7luLefyEsFhbXvMcIy6EYzIrr/b0bHfoNUhvSew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707736126; a=rsa-sha256; cv=none; b=T7GNaxnDyJjU2F48ffvQuAHX267uUe4PBi40YCnbttPeLXteFcnVHMN71kt60dSfoinF25 GX4WV3ENKoUH81zHwg1N8xc7+xZjfco8juqVLFyBdvlCmi3rutN6zhvHDpr7xP+tR9CV5z ZcLD0kIC3+OxNyhhmwLDvsDgiTjrEoABgtu5o3+adWCBFp4UcweZQh8cFV+NH478QC7K63 r64i8vuToIcEODnrPQG5CJ3TFpGAdDvbbeqggf9X2P9W+CiQUs8qt9u1HphzyykEhP5/8D csiA9xBtNs18vv6uyRMDXWNyocjMISKLJVoNqCPc1pupKtaK5hJ4WAn8147tjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=249hNd4P0OXZHjvJwM+ORSaqkw9gTESp+HGidM7NOg8=; b=yf7OqHnV909UPne1WKJSR3sq/4GkaUYIZ2FUbTOxBVTq5HYNlLq2qhdPwhKTH3JucLP9LD 9fPxlIipQ4ap+7rkHJUw4UoKtaONr8hevRwJNkoj3/HnLx3VdJNQIbmChWFC4iEvhRaPdL bBDXi4D5Xe+2hrk11I38buPHUqN/IIxfnUg8GRnjGf1nHzZcupyJYf+ztBqxxpfsX3Qsvr 7jhIn9xBJy7GfeCkS3mCDJivohx7IpFc4rGDZJFtBGnTa2nWZxAnTa4Fb/U0cCdVqP0p3d E/3ft05UvJTbCPBHwqw2912E8nCrNTI0U9LeHBLQDTZUPt9i7jqfLME4lAlP4w== 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 4TYMCK6qvkzPDl; Mon, 12 Feb 2024 11:08:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB8j67041220; Mon, 12 Feb 2024 11:08:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB8jHD041217; Mon, 12 Feb 2024 11:08:45 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:08:45 GMT Message-Id: <202402121108.41CB8jHD041217@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: b2e97edffdab - main - snd_uaudio(4): Adapt buffer length to buffer_ms tunable. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: b2e97edffdab6ad1e9103a6bbe90300d78a961ed Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=b2e97edffdab6ad1e9103a6bbe90300d78a961ed commit b2e97edffdab6ad1e9103a6bbe90300d78a961ed Author: Florian Walpen AuthorDate: 2024-02-12 11:04:57 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:06:19 +0000 snd_uaudio(4): Adapt buffer length to buffer_ms tunable. Adapt the length of the driver side audio buffer to the USB transfer interval, which is adjustable through the buffer_ms tunable. This eliminates unnecessary latency in USB audio playback. To reduce power consumption caused by frequent CPU wakeups, increase the default buffer_ms value to 4ms. In combination with adaptive buffer length, this still results in less roundtrip latency compared to the previous 2ms default. Extend the buffer_ms value range to 1ms for low latency applications. MFC after: 2 weeks Reviewed by: christos Differential Revision: https://reviews.freebsd.org/D41942 --- sys/dev/sound/usb/uaudio.c | 70 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 60 insertions(+), 10 deletions(-) diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index 917b6bd3f238..b0bf815f7797 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -96,7 +96,7 @@ static int uaudio_default_rate = 0; /* use rate list */ static int uaudio_default_bits = 32; static int uaudio_default_channels = 0; /* use default */ -static int uaudio_buffer_ms = 2; +static int uaudio_buffer_ms = 4; static bool uaudio_handle_hid = true; static SYSCTL_NODE(_hw_usb, OID_AUTO, uaudio, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, @@ -110,6 +110,9 @@ SYSCTL_INT(_hw_usb_uaudio, OID_AUTO, default_bits, CTLFLAG_RWTUN, SYSCTL_INT(_hw_usb_uaudio, OID_AUTO, default_channels, CTLFLAG_RWTUN, &uaudio_default_channels, 0, "uaudio default sample channels"); +#define UAUDIO_BUFFER_MS_MIN 1 +#define UAUDIO_BUFFER_MS_MAX 8 + static int uaudio_buffer_ms_sysctl(SYSCTL_HANDLER_ARGS) { @@ -121,10 +124,10 @@ uaudio_buffer_ms_sysctl(SYSCTL_HANDLER_ARGS) if (err != 0 || req->newptr == NULL || val == uaudio_buffer_ms) return (err); - if (val > 8) - val = 8; - else if (val < 2) - val = 2; + if (val > UAUDIO_BUFFER_MS_MAX) + val = UAUDIO_BUFFER_MS_MAX; + else if (val < UAUDIO_BUFFER_MS_MIN) + val = UAUDIO_BUFFER_MS_MIN; uaudio_buffer_ms = val; @@ -133,7 +136,7 @@ uaudio_buffer_ms_sysctl(SYSCTL_HANDLER_ARGS) SYSCTL_PROC(_hw_usb_uaudio, OID_AUTO, buffer_ms, CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, 0, sizeof(int), uaudio_buffer_ms_sysctl, "I", - "uaudio buffering delay from 2ms to 8ms"); + "uaudio buffering delay in milliseconds, from 1 to 8"); #ifdef USB_DEBUG static int uaudio_debug; @@ -1310,13 +1313,60 @@ uaudio_detach(device_t dev) return (0); } +static uint32_t +uaudio_get_interval_frames(const usb_endpoint_descriptor_audio_t *ed) +{ + uint32_t frames = 1; + /* Isochronous transfer interval is 2^(bInterval - 1) frames. */ + if (ed->bInterval >= 1 && ed->bInterval <= 16) + frames = (1 << (ed->bInterval - 1)); + /* Limit transfer interval to maximum number of frames. */ + if (frames > UAUDIO_NFRAMES) + frames = UAUDIO_NFRAMES; + return (frames); +} + +static uint32_t +uaudio_get_buffer_ms(struct uaudio_softc *sc, uint32_t int_frames) +{ + uint32_t ms = 1; + uint32_t fps = usbd_get_isoc_fps(sc->sc_udev); + /* Make sure a whole USB transfer interval fits into the buffer. */ + if (fps >= 1000 && int_frames > 0 && int_frames <= UAUDIO_NFRAMES) { + /* Convert interval frames to milliseconds. */ + ms = ((int_frames * 1000) / fps); + } + /* Respect minimum buffer length set through buffer_ms tunable. */ + if (ms < uaudio_buffer_ms) + ms = uaudio_buffer_ms; + /* Limit buffer length to 8 milliseconds. */ + if (ms > UAUDIO_BUFFER_MS_MAX) + ms = UAUDIO_BUFFER_MS_MAX; + return (ms); +} + static uint32_t uaudio_get_buffer_size(struct uaudio_chan *ch, uint8_t alt) { struct uaudio_chan_alt *chan_alt = &ch->usb_alt[alt]; - /* We use 2 times 8ms of buffer */ - uint32_t buf_size = chan_alt->sample_size * - howmany(chan_alt->sample_rate * (UAUDIO_NFRAMES / 8), 1000); + uint32_t int_frames, ms, buf_size; + /* USB transfer interval in frames, from endpoint descriptor. */ + int_frames = uaudio_get_interval_frames(chan_alt->p_ed1); + /* Buffer length in milliseconds, and in bytes of audio data. */ + ms = uaudio_get_buffer_ms(ch->priv_sc, int_frames); + buf_size = chan_alt->sample_size * + howmany(chan_alt->sample_rate * ms, 1000); + return (buf_size); +} + +static uint32_t +uaudio_max_buffer_size(struct uaudio_chan *ch, uint8_t alt) +{ + struct uaudio_chan_alt *chan_alt = &ch->usb_alt[alt]; + uint32_t buf_size; + /* Maximum buffer length is 8 milliseconds. */ + buf_size = chan_alt->sample_size * + howmany(chan_alt->sample_rate * UAUDIO_BUFFER_MS_MAX, 1000); return (buf_size); } @@ -2626,7 +2676,7 @@ uaudio_chan_init(struct uaudio_chan *ch, struct snd_dbuf *b, buf_size = 0; for (x = 0; x != ch->num_alt; x++) { - uint32_t temp = uaudio_get_buffer_size(ch, x); + uint32_t temp = uaudio_max_buffer_size(ch, x); if (temp > buf_size) buf_size = temp; } From nobody Mon Feb 12 11:08: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 4TYMCM3BKHz59b7Y; Mon, 12 Feb 2024 11:08: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYMCM1G1Vz4Y1J; Mon, 12 Feb 2024 11:08:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vXonqPs42ua0ZXs0sLXzID14CtNuiTyRfuJaCpKNPys=; b=gWwCZPONzybuSDbWgMmuncUS41mjr9GpZxBCY11EoKGXJaPw/fFhXNtwbJl1vMag3ToHOd +oClkvJ1RPL8iddIRt0TOsZd/p7XW/3yv/u9NUDMsgi31Rl83GB+R+bhEAe5VDaYcAbJiW RZw7eVR+nnb7WvN/eD+Oo6mK5kJGLu6nVjWyAqplliIi/BJDH3cVUmuD10ot6mhxqJ5vce 6iRo6KF44Pohw70bmVxpdRjfMpjAqmtvUsKqmQVYjHMU3trXEL4DV1BBcsG5eVNqEb+40E i/UHV8FU3PamWhYZtbwHkac/C9/Z+K21k9JWiqv4BjXxvBo4z73SM5k3sQyuuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707736127; a=rsa-sha256; cv=none; b=kcA5MJ52rBTt9/mRBsMtO3ALn6f7ONXYDcWgxfadj/plH2VAb9jP7Y+aTiMVF0z5zK+Tve 3Pb3gT4zHosmiwknnYnL71tURosTmwkaaBVh4+TGC6xqg1jXxj7bQO8QRXits8fehI/n0B Kib8+eN7PiG4UoLDfjXMRewFQtEuS4jJoAXN8L+ao8D3AOHQVHMnsKe0BUZSnAfPbzIYO7 SDe0fu3+OYUG/rmrrh6aagq96SCvou3sv6xtUhoNQHwWHZIZ6Egl08TEf1fgNBWTTL51tT 89+V0mIzwahOOHlZS41sCzRMrE8Y/PRENc5QXztUV9KgNm6sBGXUWfYLeh5zNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vXonqPs42ua0ZXs0sLXzID14CtNuiTyRfuJaCpKNPys=; b=kX6DuTelQQzxnZeDqNIKT43g/VgQRFZrcbDXgWtx/dM2Jts5oTjGXdolKMZPOf2XxaB3xu WM05bWR7QVtYDb+xmvlJQEsUHHvnFNmiMc6hrxtGY69iLd0TnKpkNFC/gWxeduzmy59LYi dfZLMyArXqxcR4O/l/XFjqfEwgPMwwjSchoA6imKWM7h5PHD0xS5Vszg46uR+Ez6l7Tu/F z0u7oiVyLY1OXaxTsQ7dCcu42GiluTFrrmUfnu8tdJOMQuOh2eBEaEi2HieDkI27ZzdMly u7s4chUklQjk664eVK/FagJ8SmHlkQQ6EoYi6M+Hsj1nODaaXHtN4BrVyuDPnA== 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 4TYMCM0LFJzP0Z; Mon, 12 Feb 2024 11:08:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB8k40041274; Mon, 12 Feb 2024 11:08:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB8kAP041271; Mon, 12 Feb 2024 11:08:46 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:08:46 GMT Message-Id: <202402121108.41CB8kAP041271@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 42fdcd9fd917 - main - snd_uaudio(4): Fix config detection with defaults set. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 42fdcd9fd917764d84edcc43e252a90cade78f80 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=42fdcd9fd917764d84edcc43e252a90cade78f80 commit 42fdcd9fd917764d84edcc43e252a90cade78f80 Author: Florian Walpen AuthorDate: 2024-02-12 11:05:27 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:07:21 +0000 snd_uaudio(4): Fix config detection with defaults set. Let the USB audio descriptor iteration detect configurations with more channels and larger sample size, even when the following global sysctl tunables are set to a lower value: hw.usb.uaudio.default_channels hw.usb.uaudio.default_bits This improves utility and is closer to the meaning of default. Also, do not create duplicate sample rate entries. MFC after: 2 weeks Reviewed by: christos Differential Revision: https://reviews.freebsd.org/D43679 --- sys/dev/sound/usb/uaudio.c | 68 +++++++++++++++++++++++++++++++--------------- 1 file changed, 46 insertions(+), 22 deletions(-) diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index b0bf815f7797..eb4b676d5e7d 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -94,7 +94,7 @@ #include "feeder_if.h" static int uaudio_default_rate = 0; /* use rate list */ -static int uaudio_default_bits = 32; +static int uaudio_default_bits = 0; /* use default sample size */ static int uaudio_default_channels = 0; /* use default */ static int uaudio_buffer_ms = 4; static bool uaudio_handle_hid = true; @@ -150,6 +150,7 @@ SYSCTL_INT(_hw_usb_uaudio, OID_AUTO, debug, CTLFLAG_RWTUN, #define UAUDIO_NFRAMES 64 /* must be factor of 8 due HS-USB */ #define UAUDIO_NCHANBUFS 2 /* number of outstanding request */ #define UAUDIO_RECURSE_LIMIT 255 /* rounds */ +#define UAUDIO_BITS_MAX 32 /* maximum sample size in bits */ #define UAUDIO_CHANNELS_MAX MIN(64, AFMT_CHANNEL_MAX) #define UAUDIO_MATRIX_MAX 8 /* channels */ @@ -2203,31 +2204,37 @@ uaudio_chan_fill_info(struct uaudio_softc *sc, struct usb_device *udev) uint8_t bits = uaudio_default_bits; uint8_t y; uint8_t channels = uaudio_default_channels; + uint8_t channels_max; uint8_t x; bits -= (bits % 8); - if ((bits == 0) || (bits > 32)) { + if ((bits == 0) || (bits > UAUDIO_BITS_MAX)) { /* set a valid value */ - bits = 32; + bits = UAUDIO_BITS_MAX; } - if (channels == 0) { - switch (usbd_get_speed(udev)) { - case USB_SPEED_LOW: - case USB_SPEED_FULL: - /* - * Due to high bandwidth usage and problems - * with HIGH-speed split transactions we - * disable surround setups on FULL-speed USB - * by default - */ - channels = 4; - break; - default: - channels = UAUDIO_CHANNELS_MAX; - break; - } - } else if (channels > UAUDIO_CHANNELS_MAX) + + if (channels > UAUDIO_CHANNELS_MAX) channels = UAUDIO_CHANNELS_MAX; + switch (usbd_get_speed(udev)) { + case USB_SPEED_LOW: + case USB_SPEED_FULL: + /* + * Due to high bandwidth usage and problems + * with HIGH-speed split transactions we + * disable surround setups on FULL-speed USB + * by default + */ + channels_max = 4; + /* more channels on request */ + if (channels > channels_max) + channels_max = channels; + break; + default: + channels_max = UAUDIO_CHANNELS_MAX; + break; + } + if (channels == 0) + channels = channels_max; if (sbuf_new(&sc->sc_sndstat, NULL, 4096, SBUF_AUTOEXTEND)) sc->sc_sndstat_valid = 1; @@ -2241,9 +2248,26 @@ uaudio_chan_fill_info(struct uaudio_softc *sc, struct usb_device *udev) uaudio_chan_fill_info_sub(sc, udev, rate, x, y); /* try find a matching rate, if any */ - for (z = 0; uaudio_rate_list[z]; z++) - uaudio_chan_fill_info_sub(sc, udev, uaudio_rate_list[z], x, y); + for (z = 0; uaudio_rate_list[z]; z++) { + if (uaudio_rate_list[z] != rate) + uaudio_chan_fill_info_sub(sc, udev, + uaudio_rate_list[z], x, y); + } + + /* after default value in first round, proceed with max bits */ + if (y == bits) + y = UAUDIO_BITS_MAX + 8; + /* skip default value subsequently */ + if (y == (bits + 8)) + y -= 8; } + + /* after default value in first round, proceed with max channels */ + if (x == channels) + x = channels_max + 1; + /* skip default value subsequently */ + if (x == (channels + 1)) + x--; } if (sc->sc_sndstat_valid) sbuf_finish(&sc->sc_sndstat); From nobody Mon Feb 12 11:08: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 4TYMCN38FNz59bDZ; Mon, 12 Feb 2024 11:08: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYMCN2WRFz4Xyk; Mon, 12 Feb 2024 11:08:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9B5EhbRzLOm+xGgZPwoQP5kadiPxpQNdQg9UCNwWDCA=; b=SPOEDoj3Or8F3SWc97fvBkrzmMfgq9IiZvprnLxXlIGNa01q/DFqVcFuMnOW7357y7Qnis p2AvDuYCeR6L0SrcayKkvAcgXvE/wHNuWEEwyPvgge8m/9hSJME3SlQfiPFHYXfoQr9x0u Q57VpcguIP7iGTBVAnESA6TSO/jBl2sADMGNqr4S1/tubm+Xxf0RqusanNnMmhG36Txako XMHHiEQFRyaTA/nGE/6IMfZJFaWlc4+xFsLsfBhQt+tCM0iarwxYXh/7+y1hXxkjI4XJ+o LluSUCaeypBw/edG4ckHCZMQP7QxZ7y1F4msAghgYdr93Sy5jpvOgp7LAINgcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707736128; a=rsa-sha256; cv=none; b=IVryrrpcan1uj67rKpcRNgPMyUkDD+FjYqPzPc0MR3e9i9berASWrwlLnKNhAlWL4t1QQ4 bzumGDmlYsO/cfYiB5b2NeqGSefFzVCq2m/PlBR16Ljj/aCZnMkN5i3gMo0GWQsTcylhOG xwWt9LuQPXsnpUaUDWpzzPMTnvTud1La6lLWSDyOU9tWCLKKt2ey4PGHmiUuyG6f6l1yXz wQBfD0+nMnY8Sh7Q3Kv7FspHqXG1fu7fCB3uI61BZSKxlg9/V2UYNp6e4HdkBTJZReD8kQ vlFERBXRM1uIS00ChCs6RAEgREuVqxo4ThUbqPNrViQRbJ9hbf+Fgprh1xk+4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9B5EhbRzLOm+xGgZPwoQP5kadiPxpQNdQg9UCNwWDCA=; b=xNB+XasVhp+FJSb9caXMuCI5xxwlFUKgw+2XXxzTW3LGP81ks3Aho4d5+L2sdixEWdP2NU 3hXDcAvrkg9hrEohAC4sv4GNgVUm5k2fOaRW8TBIWovwLhq1pkBTvK3vw7NrYhGwMb9xDi nh1/jTmW9HV6KfYC8+HTnV3k1RmXHdajjrFV5U/24ryxDbbhxQBxqs/niJnQdbcdkvzPOh HOe46LLmkJ3SShO+tVQRBQ1QbHDNzb4eYmkE1Z9t73vC11Foiy/yfhp0Oxr+50q3Uy1XGp 6iPhnTxHnTtPD/7bOzMRR81Qh3eoDJfSYfe/S5PdtCTcwLpet+60Ni9MpRVLxw== 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 4TYMCN1bn0zP21; Mon, 12 Feb 2024 11:08:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB8mju041317; Mon, 12 Feb 2024 11:08:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB8mNm041314; Mon, 12 Feb 2024 11:08:48 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:08:48 GMT Message-Id: <202402121108.41CB8mNm041314@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 883b8ed582eb - main - sound: remove snddev_info->inprog and pcm_inprog() 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 883b8ed582eb3e9e98c62c471228ff3c3a25377d Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=883b8ed582eb3e9e98c62c471228ff3c3a25377d commit 883b8ed582eb3e9e98c62c471228ff3c3a25377d Author: Christos Margiolis AuthorDate: 2024-02-12 11:05:33 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:07:50 +0000 sound: remove snddev_info->inprog and pcm_inprog() No longer used. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D43737 --- sys/dev/sound/pcm/sound.c | 17 ----------------- sys/dev/sound/pcm/sound.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index b23a28d3af08..186e7b194f27 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -392,16 +392,6 @@ pcm_chnref(struct pcm_channel *c, int ref) return (c->refcount); } -int -pcm_inprog(struct snddev_info *d, int delta) -{ - PCM_LOCKASSERT(d); - - d->inprog += delta; - - return (d->inprog); -} - static void pcm_setmaxautovchans(struct snddev_info *d, int num) { @@ -1127,7 +1117,6 @@ pcm_register(device_t dev, void *devinfo, int numplay, int numrec) d->pvchanformat = 0; d->rvchanrate = 0; d->rvchanformat = 0; - d->inprog = 0; /* * Create clone manager, disabled by default. Cloning will be @@ -1182,12 +1171,6 @@ pcm_unregister(device_t dev) d->flags |= SD_F_DETACHING; - if (d->inprog != 0) { - device_printf(dev, "unregister: operation in progress\n"); - PCM_UNLOCK(d); - return (EBUSY); - } - PCM_ACQUIRE(d); PCM_UNLOCK(d); diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index 5b366a62630c..4af56a2c411a 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -320,7 +320,6 @@ int pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction, pid_t pid, char *comm, int devunit); int pcm_chnrelease(struct pcm_channel *c); int pcm_chnref(struct pcm_channel *c, int ref); -int pcm_inprog(struct snddev_info *d, int delta); struct pcm_channel *pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t cls, int dir, int num, void *devinfo); int pcm_chn_destroy(struct pcm_channel *ch); @@ -379,7 +378,6 @@ struct snddev_info { struct snd_clone *clones; unsigned devcount, playcount, reccount, pvchancount, rvchancount ; unsigned flags; - int inprog; unsigned int bufsz; void *devinfo; device_t dev; From nobody Mon Feb 12 11:08:49 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 4TYMCQ177yz59b59; Mon, 12 Feb 2024 11:08: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYMCP3gT6z4YCC; Mon, 12 Feb 2024 11:08:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NviqJ3qPGQ5NV6zCIMAKcwUpMYbEUB4+uB3/0hQrgKw=; b=GMahIPrH736tzFc4JLida77iIg3Aj8RTuRpmVQmIyoN4HcNZbDmY4oVnEiSNhhvLNBAmb7 ECoko5P5ok5GRhD7h5OYz2KexYLgpBff4jIP+ZP5/QH45v64DVoPteoYplp3hVj+eidHkB nKsyr1TB/Ea+XAD74O4+rYhR1GwntyVcAxzVrxebj4MLySSTG0MLbbjCUQBnBo9ieEPRLt 4i14Repo2W6O4nJuiVBvFPGXZBXxekc0muQJUyxaTBNM+WCQL+8ovRuZKZAGtpQajSH3NI mNFqWCiNTxr2zJiwHFOi72G/tg25eQzY6dyNtkQyYg+svlQxP6Pt3s+buFhTUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707736129; a=rsa-sha256; cv=none; b=Vw56V7lKmbonw2eCrLmK+lRluQEqNJhDe2HRmH8UyWbKekTMAoAlkT2MVipZN0+QoZ18pQ EYWhSZAdGwUC0WZz0VNqgoM1ZyaZmGIcDX5nfobGVI3egz5XrRqqxSqbCuMWIkXkNTfA+u 3UXuYpOOS1sbs5TYBm1zhGaHo5/wOqPyhyYR4fPQGCC3MG6zXhGmJhzgUc6wT4Aa/Bm8pD 9Tk6v2JMAlPmU0AlL4eqqaQfoZiP4p1gdp2k6+fBuEqaPryeFS99Dws42dkidqySYJNORM DuHKzMTXUVu+XykhdjMZ4HJEaxovBxaCMYX71FTp/kBRvVSiAEMKlyi71quGJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NviqJ3qPGQ5NV6zCIMAKcwUpMYbEUB4+uB3/0hQrgKw=; b=UNdjhUPljT84Z/MHeVJi++MPs3o4semDPeF3lXs0kfJ6Dhn5yhh/HTU0xwbsyLjc8t8X05 XR+aDPtKmGvFamjjpXiewNumDKd1ot+sZi/q+Dt4EvWS8umC6rE6ldSvOCT7TMYu/DwCqY KwEOBOqiMbF8qqG4YVABnHlpVEb862DBokuROQNhR+EeBWGIFIOaCgtaURcLs12UErFywW Xuxh/xRNAFlbkz52kwdnbm4jSzd3NaeyGdTPmQtdERYyrnJ0X6FNzOGuwZwhg8ywyYBpe+ UFLLQzKeoSkQ6cm9ymj48W4fm/C8UpnnTgpvJpDutI+dkeABXXortbg914ZgHg== 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 4TYMCP2brJzPJJ; Mon, 12 Feb 2024 11:08:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB8n8Z041357; Mon, 12 Feb 2024 11:08:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB8nhK041354; Mon, 12 Feb 2024 11:08:49 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:08:49 GMT Message-Id: <202402121108.41CB8nhK041354@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: f60e99f45e81 - main - snd_uaudio: mark selected configurations 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: f60e99f45e8197de2bc0970c7dd7f87148fdaf30 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=f60e99f45e8197de2bc0970c7dd7f87148fdaf30 commit f60e99f45e8197de2bc0970c7dd7f87148fdaf30 Author: Christos Margiolis AuthorDate: 2024-02-12 11:05:47 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:07:50 +0000 snd_uaudio: mark selected configurations snd_uaudio(4) selects the first maching rate/channel/bit/format/buffer configuration for use during attach, even though it will print the rest of the supported configurations detected. To make this clear, mark the selected playback and recording configurations with a "selected" string. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch Differential Revision: https://reviews.freebsd.org/D43766 --- sys/dev/sound/usb/uaudio.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index eb4b676d5e7d..26d95bf3ee9f 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -1051,11 +1051,12 @@ uaudio_attach(device_t dev) for (x = 0; x != sc->sc_play_chan[i].num_alt; x++) { device_printf(dev, "Play[%u]: %d Hz, %d ch, %s format, " - "2x%dms buffer.\n", i, + "2x%dms buffer.%s\n", i, sc->sc_play_chan[i].usb_alt[x].sample_rate, sc->sc_play_chan[i].usb_alt[x].channels, sc->sc_play_chan[i].usb_alt[x].p_fmt->description, - uaudio_buffer_ms); + uaudio_buffer_ms, + (x == 0) ? " (selected)" : ""); } } if (i == 0) @@ -1081,11 +1082,12 @@ uaudio_attach(device_t dev) for (x = 0; x != sc->sc_rec_chan[i].num_alt; x++) { device_printf(dev, "Record[%u]: %d Hz, %d ch, %s format, " - "2x%dms buffer.\n", i, + "2x%dms buffer.%s\n", i, sc->sc_rec_chan[i].usb_alt[x].sample_rate, sc->sc_rec_chan[i].usb_alt[x].channels, sc->sc_rec_chan[i].usb_alt[x].p_fmt->description, - uaudio_buffer_ms); + uaudio_buffer_ms, + (x == 0) ? " (selected)" : ""); } } if (i == 0) From nobody Mon Feb 12 11: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 4TYMCQ70cjz59bLr; Mon, 12 Feb 2024 11:08: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYMCQ4XKtz4Y0F; Mon, 12 Feb 2024 11:08:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qi2XFVwLJH3r1PTGYjwFpzyTrvOhde0c4gSv3D8aLnE=; b=fk2e7s1KPjWHf9u3BMkdwhzX3RfHr4CkjsEJ15xWrdbXnTjtHNJ3jD42UNNb2tMlWGQkAB Cj7K7Rky0Ng0BcpSvXPojEImmwN9bQLDRC2rEgaoQJRBS3lcMgtl+r3hL6pcgv1mrgFjD0 oHNvQloH7MZeQvQCtcQPOJff0YCmp8NNTO6bqc8bobeCMF9P5OnwXIsFdzkN+zfKYvCHT4 FtEO8v+qqukV9NNGkYvkgyFsDkbS1HZMyN2CPBNJY+8ZZsBv41B4D8iN+KEucgCXSyU5zw 67uz7BG2UAbk4N31APaCMUP3bCKfxuzAkgo7/4D56/vITGAZ7pjX5YKyyKAKlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707736130; a=rsa-sha256; cv=none; b=pAeuZmSuXYKcgz/SrOtefKZYbA7mBMtOsf/RGHfeRXhdU5WUxBV9nyqrpkrh0NnSSZPjd/ gq4IWlQ1tYyDv6uQrVnLQxp+dBJCTFLjELvuAmiYeHz545NOLLbu7HLpwQlFuHyO34/GKJ PadasBo8k8m0inl/K558OfQ4nc+mWBhYb+xSsOjMy6UZFo/4hdoMoG4qJhUp1RtivP24UY 0wFcyY2wJoj0m65QHWXTTjPjMYv6dVDmNaoFi+boz3hTaf/iu+5Srqdi09KH4Iu6A73SqG YkqHQFM/mg/6f86RShvlJC6fHgoUa4xmrFFbpc9YQLrsisT/09FbcsQWlvY7/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736130; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qi2XFVwLJH3r1PTGYjwFpzyTrvOhde0c4gSv3D8aLnE=; b=VISdTI4FcInI95HfwNpUJ5+SYUWN6vJV/fuhbOcBK6nTg0tbAJBOcqyBQbndvn5P9GJb2H tGl91AVorxjb27JUtp+8iHl3pXCfj9ZTv+Uid+W5yh2aeIsnF9r+ua6y9Mcr1zsZYeBPHS SmMdz3RpNemvn1cpURAPaSwFisZcpOOmRmdEwdnxAaKziqm66xE5RKO1dCBJDmiEDrOmA3 Txqx9QRtDC6T9z5QPsmwA1zALY4P/mv5sGloMDc/LVO0wC83SOr3sSlKxo2MPIU+J2JzYK 25dAZcDOi4pKnJQpBfHMWrtc0/zmxGvIIVdnAekvv8XcIl9X80CWQivJT/dT3w== 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 4TYMCQ3d9vzPJK; Mon, 12 Feb 2024 11:08:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB8oFb041400; Mon, 12 Feb 2024 11:08:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB8oSM041397; Mon, 12 Feb 2024 11:08:50 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:08:50 GMT Message-Id: <202402121108.41CB8oSM041397@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: dcc47cd49e19 - main - snd_uaudio.4: remove useless .Tn 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: dcc47cd49e19df4af987cd094e5a313935f4cd86 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=dcc47cd49e19df4af987cd094e5a313935f4cd86 commit dcc47cd49e19df4af987cd094e5a313935f4cd86 Author: Christos Margiolis AuthorDate: 2024-02-12 11:05:55 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:07:51 +0000 snd_uaudio.4: remove useless .Tn macro Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43651 --- share/man/man4/snd_uaudio.4 | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/share/man/man4/snd_uaudio.4 b/share/man/man4/snd_uaudio.4 index df2c74b886c3..04dc10ccaa25 100644 --- a/share/man/man4/snd_uaudio.4 +++ b/share/man/man4/snd_uaudio.4 @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd November 12, 2016 +.Dd January 29, 2024 .Dt SND_UAUDIO 4 .Os .Sh NAME @@ -51,17 +51,11 @@ snd_uaudio_load="YES" .Sh DESCRIPTION The .Nm -driver provides support for -.Tn USB -audio class devices and -.Tn USB -MIDI class devices. +driver provides support for USB audio class devices and USB MIDI class devices. .Pp -A -.Tn USB -audio device consists of a number of components: -input terminals (e.g.\& USB digital input), output terminals (e.g.\& -speakers), and a number of units in between (e.g.\& volume control). +A USB audio device consists of a number of components: input terminals (e.g.\& +USB digital input), output terminals (e.g.\& speakers), and a number of units +in between (e.g.\& volume control). .Pp Refer to the .Ql USB Audio Class Specification @@ -86,9 +80,7 @@ and modified for by .An Hiten Pandya Aq Mt hmp@FreeBSD.org . .Sh BUGS -The -.Tn PCM -framework in +The PCM framework in .Fx only supports synchronous device detach. That means all mixer and DSP character devices belonging to a given @@ -104,9 +96,7 @@ See the .Va dev.pcm.%d.[play|rec].vchanrate sysctls. .Pp -The -.Tn PCM -framework in +The PCM framework in .Fx currently doesn't support the full set of USB audio mixer controls. From nobody Mon Feb 12 11:08: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 4TYMCS01mwz59bKK; Mon, 12 Feb 2024 11:08: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYMCR5WHGz4Y0b; Mon, 12 Feb 2024 11: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=1707736131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o8mT/T7bW3CZprL9dBAREb3rTnmHHG5ZtVjMlwTqkPs=; b=MAgt6mFYrT1zx+sQs2I+KcwOhAHMLcwRxZjpY5//UAoliky52nuKp9YMC+2kC2kHdf8iRj 7iN1LtKZ3a2zPGgd2DImY73ZPiZmNFZpznqukAISH59oRkFOU2eU0HkxN39eY9cxFNKuzs 8cJjyplfii9ZxNmM2Cxn0QnH4oa8+DXW8N5pCRtjViK9MhUyS9uekd685Rt3DM78EgREpP JeHV5KSRsb6Kwrp9h/9acW13+IeDRAgddiCIHTnukSlH6kdIsOxLum5AXgypMxhtQ3ieIx VsVgOVADsIgdaeYHdwE/RIw5p4Dv9OopUpUv2prvFq6lCzYRS4dR7d+Hi7XWtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707736131; a=rsa-sha256; cv=none; b=o1zmajYDbSMNcvaVoMQS+1V7Brs6a3/4+jrog+FQ8R0Q6ExVr2EfsrEAu7RHylsaJGsGD/ ESqIrAJV4AUS65yiJj97uiqRiCIjDgQGZBt11KsMQlpLX9q0RA2DnaxG4WC2yaDg7m3c2+ fSEyMSclXigx1leIGu01e2Pi+30PPfikKTwMjGdFzI0ZFQAOqjssM4Ws//HFDjbWLolpjZ rz6NgmJVvLZ/wpEbyb+WCmytSk83BK/tP/NWax8WSfYGoBE9RKMN0hseHFXQGRYUaApST+ Fb2YtGdvxivmLc/dd0L4ya4weyayb2L5qdMxv3yczBQu9RE6hGCbo9hbhVLWBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707736131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o8mT/T7bW3CZprL9dBAREb3rTnmHHG5ZtVjMlwTqkPs=; b=Z/F+dGpki0cfhD7LLWe/8tjl5tZCoM8zDCG5QQGS3JxecQ9l0jw5Eri0KfTw5nePSjEjx8 v+UoBNCqX7ZAM4WLhaBwV8Sf1MFtH8Qfp0XAn3895wopMTbI4kNz6OyfPtvxPVPn/Zp2N3 npYOsKMDBawV+ST771vAJ+iXAIt1LH5JMZGYbRy3SNjk2/NMWkAv7MWHaq4g2CnDC+0s/Q 8L+dujg0krCNGUFAEV4kuOd2wyl0CFjtLE+QFK2j33vykUQ1tAXcG8mMLDsLldghRDqk35 zSiOr8L4zgtLz9ed+cCSt7c1lEhMXGORJsJkvT9IuKhLD32dhI6LJOC5WtFw5g== 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 4TYMCR4dPRzP0b; Mon, 12 Feb 2024 11:08:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CB8piZ041437; Mon, 12 Feb 2024 11:08:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CB8pau041434; Mon, 12 Feb 2024 11:08:51 GMT (envelope-from git) Date: Mon, 12 Feb 2024 11:08:51 GMT Message-Id: <202402121108.41CB8pau041434@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 5960ab73d865 - main - snd_uaudio.4: document sysctls 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/main X-Git-Reftype: branch X-Git-Commit: 5960ab73d865b59bfa7d7fd3bd49a6f7d730ef83 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=5960ab73d865b59bfa7d7fd3bd49a6f7d730ef83 commit 5960ab73d865b59bfa7d7fd3bd49a6f7d730ef83 Author: Christos Margiolis AuthorDate: 2024-02-12 11:06:00 +0000 Commit: Christos Margiolis CommitDate: 2024-02-12 11:07:51 +0000 snd_uaudio.4: document sysctls Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: dev_submerge.ch Differential Revision: https://reviews.freebsd.org/D43649 --- share/man/man4/snd_uaudio.4 | 81 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/share/man/man4/snd_uaudio.4 b/share/man/man4/snd_uaudio.4 index 04dc10ccaa25..b6a6c06a2312 100644 --- a/share/man/man4/snd_uaudio.4 +++ b/share/man/man4/snd_uaudio.4 @@ -57,12 +57,88 @@ A USB audio device consists of a number of components: input terminals (e.g.\& USB digital input), output terminals (e.g.\& speakers), and a number of units in between (e.g.\& volume control). .Pp +If the device supports multiple configurations, and there have been no +user-supplied values specified through the +.Xr sysctl 8 +interface, the driver will select the best matching configuration supported by +the device during attach. +"Best" means the configuration with the most channels and highest quality in +sample rate and sample size. +.Pp Refer to the .Ql USB Audio Class Specification for more information. +.Sh SYSCTL VARIABLES +The following settings can be entered at the +.Xr loader 8 +prompt or in +.Xr loader.conf 5 +and can also be changed at runtime with the +.Xr sysctl 8 +command. +For a change to take effect during runtime, the device has to be re-attached. +.Bl -tag -width indent +.It Va hw.usb.uaudio.buffer_ms +Period of audio data processed at once, in milliseconds, from 1 to 8 (default +is 4). +Lower values mean less latency, but this can result in audible gaps due to +frequent CPU wakeups. +.It Va hw.usb.uaudio.default_bits +Preferred sample size in bits, from 0 to 32 (default is 0). +A value of 0 sets the sample size to the maximum supported sample size. +.Pp +Set this to select a smaller sample size if the device supports multiple sample +sizes. +.It Va hw.usb.uaudio.default_channels +Preferred number of sample channels, from 0 to 64 (default is 0). +USB 1.1 devices are limited to 4 channels due to bandwidth constraints, unless +a higher value is explicitly requested. +A value of 0 sets the sample channels to the maximum supported channel number. +.Pp +Set this to select a smaller channel number if the device supports multiple +channel configurations. +.It Va hw.usb.uaudio.default_rate +Preferred sample rate in Hz (default is 0). +If set to 0, the device's highest supported sample rate will be used. +.Pp +Note that if VCHANs are enabled, the sample rate will be overridden by +.Pa dev.pcm.%d.[play|rec].vchanrate +(see +.Xr sound 4 ) , +which can also be used to adjust the sample rate during runtime. +.Pp +If +.Pa hw.usb.uaudio.default_rate +is non-zero, +.Pa dev.pcm.%d.[play|rec].vchanrate +will use it as its maximum allowed value. +.It Va hw.usb.uaudio.handle_hid +Let +.Nm +handle HID volume keys, if any (default is 1). +.Bl -tag -width 2n +.It 0 +Disabled. +.It 1 +Enabled. +.El +.El +.Pp +If +.Xr usb 4 +has been compiled with +.Va USB_DEBUG +on, the following setting is also available: +.Bl -tag -width indent +.It Va hw.usb.uaudio.debug +Debug output level (default is 0). +.El .Sh SEE ALSO .Xr sound 4 , -.Xr usb 4 +.Xr usb 4 , +.Xr loader.conf 5 , +.Xr loader 8 , +.Xr sysctl 8 .Rs .%T "USB Audio Class Specifications" .%U http://www.usb.org/developers/docs/devclass_docs/ @@ -98,8 +174,7 @@ sysctls. .Pp The PCM framework in .Fx -currently doesn't support the full set of USB audio mixer -controls. +currently does not support the full set of USB audio mixer controls. Some mixer controls are only available as .Va dev.pcm.%d.mixer sysctls. From nobody Mon Feb 12 14:25: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 4TYRZj121Sz59vTk; Mon, 12 Feb 2024 14:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYRZj0XGcz4sGt; Mon, 12 Feb 2024 14:25:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707747949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t3Og0CyA1lhgd2mOix88+458GFWAeBe6R95f8Z4g1pU=; b=XnFupVha4qGWTl86gpRMwiPx1+zj/xk4HjhxFTYpjEd+h5CGMaZBxzlJRdncqEfG1hNzg3 Q27tQ5eLJgWRNAbiWFm7D4leMcRvZzCgOma10yYu+056uDcb/nH2cn6yzLSldkuslF7ylU vOqpyso95nYqWPLqU+sxo8mA5QGqHY+xMDJs4WyZF7OhidcIQfOVggPZ+IQs6e3PyspT7h Ac02CaSgtwbV2aMs4GnuO+ZyxcWIu787YzWNUlsPFZztmbx3bA5jsOABhCwvrhxQ0hl9Qn 7vqCyp9i8MyPnGztQlZAPGcLzAkIcqNCReFL+bKvkvzR2e4rTDullcL1W3BLJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707747949; a=rsa-sha256; cv=none; b=gowrOwOLHYJZ+ETMuxFKu9OxpJ6MVTjUflW7N8gxnDwI9FQ85VrajuRe3j11Ixh15LPHte qmdK3PuwyOJdmUyxIqFs/pWXeYweGfcehSgkFU4S7YDXknFzrswRgn3sLSmZY98WcpU5ft o0YjeUnwKNQpeU4rydD77DWZ+Vzfv7gXBZ1+/51eyQxY2s9fd3yFf0JzLuKiDLH5D9pk+L hMhPDUTuFkX1Y8IzH3cZvytOyFdyAPyKHWbW0HoJHRkXVZxOK0iuUpJHZEhQZEme0G8FZU sMHjjg6L9aaa24Gf5MGfRbCD2TvgPpvoxslRtr48AIiNZpxyxwSnXX/MtfQHwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707747949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t3Og0CyA1lhgd2mOix88+458GFWAeBe6R95f8Z4g1pU=; b=YQr3tC+ylkZUh16IsOUU59jvojbhxSLNIkjzUiuVYcHGVf7lNfiukBsaEly/EQ2VnC0cso BMNWLHVQIGxJV0sNoQgnARRd68pIhRAM5/7YjoJdGq76RZQcku3K7OZI4oFh5pvBzLK6Ka k0zRtLiFrXIW9AEkeMQ4gP40axxRZRKRy7v5tuhzkCDkxd+Njs2y0NJMt0Hpsm007rHiq4 arPrivSpFI84gZIspNdMB+Dv3Jb+4Qki9bEsBdQCtOJzEGu4kw33re6/Voe+MtUbMHRbwI 9oWO1AzQnfcf7hcUzhQDucSYgBw/f5XpM7MsGj/pXZn7kZiaIJ8jPFx7Ml/lwA== 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 4TYRZh6hfBzVwb; Mon, 12 Feb 2024 14:25:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CEPmxV075186; Mon, 12 Feb 2024 14:25:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CEPmxI075183; Mon, 12 Feb 2024 14:25:48 GMT (envelope-from git) Date: Mon, 12 Feb 2024 14:25:48 GMT Message-Id: <202402121425.41CEPmxI075183@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: fd1066bed67f - main - .profile: Don't bother checking for /home symlink 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: fd1066bed67f642ed01f5dd62b7b6cfb0a45fd4c Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=fd1066bed67f642ed01f5dd62b7b6cfb0a45fd4c commit fd1066bed67f642ed01f5dd62b7b6cfb0a45fd4c Author: Collin Funk AuthorDate: 2024-02-04 12:04:52 +0000 Commit: Ed Maste CommitDate: 2024-02-12 14:24:49 +0000 .profile: Don't bother checking for /home symlink Since FreeBSD 14.0, user directories are created directly under /home. This check should no longer be needed. This reverts commit 4cea05a273c875b5d5d4c41bfa6f2f0a60fa4a66. Signed-off-by: Collin Funk Pull-request: https://github.com/freebsd/freebsd-src/pull/1102 --- share/skel/dot.profile | 3 --- 1 file changed, 3 deletions(-) diff --git a/share/skel/dot.profile b/share/skel/dot.profile index 40dfa58f4e84..7b9aa96c834a 100644 --- a/share/skel/dot.profile +++ b/share/skel/dot.profile @@ -19,9 +19,6 @@ PAGER=less; export PAGER # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV -# Let sh(1) know it's at home, despite /home being a symlink. -if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi - # Query terminal size; useful for serial lines. if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi From nobody Mon Feb 12 15:23: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 4TYSsg149jz5B0sy; Mon, 12 Feb 2024 15:23: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYSsg0Ln5z416r; Mon, 12 Feb 2024 15:23:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707751431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/X5teVZxf015ahKgK6fgB/U/uu7Z9a4GIJ2TEhAKZ+A=; b=HCHzANAHf9kXgKHpCTw3qMn/AwteJiPOq2uF1lgQYFimVSla2LdcTDSLaNL2CM2ZQR2ArX 4Aktlvf2rLEZEC6q9SNAqczuCxJtksojwmyLzbZYwrK1U0uWk+cAf8ZfgmycY46mtl1c7P rJgSVxJiU2wiMfMJZFWxWS4D3B+ldNgMNt0NBZLUEuhfbDyVkpMGagdiWIE/oOySsfnrtH hDVGyoEU4W71rl9yqL/wWFj0rDLm35JqzelU/e9T7r+TWfQVyw/hzSiS8vzskN/2cXY+CE XbhJEQHb5N0HGCMmeb4p+6Qs8jHwGT6iWEr1Eni3c/KavSNMfvBM4VoxIJu7Sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707751431; a=rsa-sha256; cv=none; b=oWI/gaORB4Pn9afpEuMF0s4z30xYNNPag8bZmdyab7aDNME50ecEovsD3+1Ow9Ty1TN/th fyiZD0vqTa6tBY/gx2ZU0L2xPWnMPKx95pgvf025zKUQ3yiEJE7eEqyxUZ38oWY5XL2Ah7 vwkCR5y3g3nwSpol2ZTJExgisSYm3bEC5zFfRE96QVrtNzsb47ho54jOQS+rM+rGdz6EPq xfgvjnP1pbkCvAwaDB4nwy0POsjql9jsxLeXm5dYkocSrpi/uvnsTkjrTEpvuKMhKc+ak2 Co0TUX1vpPwGaukTc9K+vQYmGnf0YRju6oPA4an3h87iNAEW7fjMekJ4zjtUzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707751431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/X5teVZxf015ahKgK6fgB/U/uu7Z9a4GIJ2TEhAKZ+A=; b=sHkORqkfkWdxVsqYmJbHL5sXVQVVOfP8C5673va4WQ1RhtIllJkZXNepvJNdaTUY5iy6f/ /PkFDhZfp3xCRUDdTKcEX7HoTaaM8tQH4Y4ZwOZBqSEFFBwx2GMktX11jOFGkxZzD3oS+O CaUYjnTNkqXLO15oG/2k/mM9TyZUTCxaQ1lPf/d/8fQcOxDqR1LvH0enNVE+djjynqS4F6 ucMtALrPEbIUrw9V2CWqIYredUqyn2TIOJZ/lsw3+gGvrVLwmM3/Rm/ZPlKkhezsr+F7N5 gNZQgUeQbfSSBuUhdgSY29O9b3I1tvCzE374ILXKSDjkXsZp2SXEhSxQZ7ei2w== 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 4TYSsf6VRjzXY0; Mon, 12 Feb 2024 15:23:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CFNoi9075508; Mon, 12 Feb 2024 15:23:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CFNoFh075505; Mon, 12 Feb 2024 15:23:50 GMT (envelope-from git) Date: Mon, 12 Feb 2024 15:23:50 GMT Message-Id: <202402121523.41CFNoFh075505@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Wolfram Schneider Subject: git: 147ab264373a - stable/13 - do not expect mandoc(1) to terminate in finite time 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 147ab264373a61eea9f6bd9ffd06b399a186f7ef Auto-Submitted: auto-generated The branch stable/13 has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=147ab264373a61eea9f6bd9ffd06b399a186f7ef commit 147ab264373a61eea9f6bd9ffd06b399a186f7ef Author: Wolfram Schneider AuthorDate: 2022-12-27 17:04:04 +0000 Commit: Wolfram Schneider CommitDate: 2024-02-12 15:22:55 +0000 do not expect mandoc(1) to terminate in finite time PR: 266868 (cherry picked from commit 433c5a8ae42f0487cfe860af1d291ec3c7d009f7) --- usr.bin/man/man.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index 114ea9d7a0b2..1d9eb423b707 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -27,6 +27,12 @@ # SUCH DAMAGE. # +# Rendering a manual page is fast. Even a manual page several 100k in size +# takes less than a CPU second. If it takes much longer, it is very likely +# that a tool like mandoc(1) is running in an infinite loop. In this case +# it is better to terminate it. +ulimit -t 20 + # Usage: add_to_manpath path # Adds a variable to manpath while ensuring we don't have duplicates. # Returns true if we were able to add something. False otherwise. From nobody Mon Feb 12 15:40: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 4TYTDt1W4xz5B2Cd; Mon, 12 Feb 2024 15:40: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYTDt0zt9z42gG; Mon, 12 Feb 2024 15:40:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pPiDd55bwUL5HzaJWvyHTX3gcI4e3NT4RL1VLFnWldg=; b=tV8JPzviqxqWGvTdTmoDauhXR4XvGEVQPHg7xu5un5U39bDZGFltKlFcHHQ+m4znQfBR8s +eU14eydYjHwoxgHBHDbeq6GnlNm/a+ps9x7xkR89+jgMHu95hRlWDE1d7crTuiz8wp0is ajUInOaoM51ZWNCREaeIrO3hpZwl/9/Qej7LN1/GGNnW1x/QgIi30K8vm0jAZsAjfsrDK/ qmQKPoNmo7ffMJynjyw0FPQdr1LdmDUeuHtgAyrx58B2+T84rCNheAY8Vsr3CLKHZ6l+ml KESbx3W9Dckb3CCb8T+823+qZ5a02HePZ6xmrwUlhiXOYM/R+w/mET056t8KUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707752430; a=rsa-sha256; cv=none; b=m+fhM8U7b3UGM2aZEgWLTsp+4d7nUaJ22WQGdZxuJ4r8xJBDABp5Cf45Ri+gQwev7CW4wD chvy2uaZSVhT0vzRH3FIgakFoxrdXZjyixHEYs6ODIQohELKskb6wjzgclHhJLjLJVWv2X YfFfflJokdyWpOmBR+QpVZErd5nWI3C1PtdmN+57fMsEO/czjNWKXC4UOxMHEPEO6Hps1v A/zNgMrXdXrki1pcMWSaXj3cIRVKhN2XTqtSQA7De1TaVjjd738EzXE5v/62WHsULVvxFq vSLtu4CQcpsKazxMkEmpJpmAxE5jTXD7WtIiUl7a2mJpFOIxOrNKXOWriPvntw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pPiDd55bwUL5HzaJWvyHTX3gcI4e3NT4RL1VLFnWldg=; b=fL+2YsHxVO9/usKhp4Jgr9Kx20kD65ONgrgzpF3cVFjf/VeRmf+l0LbsmSCzACYvkJ0zWO xJXvLE/Pm8mZkXFNCwuCyh1u5SHa+8IjSBKOjsIpsIFQuvyrArhEyrbfh37Bb67FZ4lwgZ o5FbffXWscl2lEwRqYdcrNvOiDKw/8rYHv5xAaWaHX68oVeeO/mT/WcUrVf2+FVpbbK93O bjpONoyKEf4Za57SZn7Ptr7hTpPARluEX3oxK2jUp2sX2m3ZP4mzDz46qdgzuWpRibTMll 728Er9p/XyEOeFBqop18KPvWNHJy4e/1XxjIbe4rGLBhgAHD5wrpTKFAp/x/Qg== 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 4TYTDt02j3zXxd; Mon, 12 Feb 2024 15:40:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CFeTXW001731; Mon, 12 Feb 2024 15:40:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CFeT0N001728; Mon, 12 Feb 2024 15:40:29 GMT (envelope-from git) Date: Mon, 12 Feb 2024 15:40:29 GMT Message-Id: <202402121540.41CFeT0N001728@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: f1bd7311fbd5 - main - style.lua.9: remove mention of $FreeBSD$ 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: f1bd7311fbd576a387042c0d81945b701c7459a3 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=f1bd7311fbd576a387042c0d81945b701c7459a3 commit f1bd7311fbd576a387042c0d81945b701c7459a3 Author: Ed Maste AuthorDate: 2024-02-12 15:36:36 +0000 Commit: Ed Maste CommitDate: 2024-02-12 15:38:40 +0000 style.lua.9: remove mention of $FreeBSD$ Also restore a comment line in an example which previously started with -- $FreeBSD$ but was removed in 6ef644f5889a. The example shows the of a module require statement block following the license header. --- share/man/man9/style.lua.9 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/man/man9/style.lua.9 b/share/man/man9/style.lua.9 index 0417efc83c45..991a6f96b01b 100644 --- a/share/man/man9/style.lua.9 +++ b/share/man/man9/style.lua.9 @@ -44,14 +44,13 @@ is silent on an issue. The copyright header should be a series of single-line comments. Use the single-line comment style for every line in a multi-line comment. .Pp -After any copyright header, there is a blank line, and the -.Li $\&FreeBSD$ -comment for non-C/C++ source files. +After any copyright header there is a blank line. .Pp The preferred method of including other files and modules is with .Fn require name , such as: .Bd -literal +-- License block config = require("config"); menu = require("menu"); From nobody Mon Feb 12 15:49: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 4TYTRN2HWZz5B35F; Mon, 12 Feb 2024 15:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYTRN1nChz43d2; Mon, 12 Feb 2024 15:49:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+6zewjqAezCa6FDjOOwh2RPKgxt2ltFBQ7q4KMOUvmw=; b=fmEPO7QKbhAFKoGmX0X7O9WxXpp8Ga/LETYKApx1inT3GXQWgYwWYbtwfwlDkpfoLQjaNH yVsRPgjsx5fcXDkZBqn4EMohKA+/QMjfi/EqOTliDmVlpXzuogjn/WKbYB2hNzdQIATCgh dua0SI/0ZL/voLn0gTZNHkR0voGRJtJ95XgKWuxujW7t5sRLuMs8EmpGDBFVCWIjhf1L+O g4imaLnzdHmZdoZ4gstJkK+grhVTpJ8D0Y6DAqyahm9AoK4GZaf7NIzMEMp/zHm13L+KRU rNLV+sHCp6zHwUBfDwispUJBefn/673IE26Svuw2lgbScguX7EtChOeIJ5lM9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707752976; a=rsa-sha256; cv=none; b=oJfujimVf+3+Nubh8pYEXcGjcBRfk4XMsSL4kTPhiYa6GSeMilcn78QBrzUO8YxgJWpbBe jSOZa+3DqdIdYu6Xvo/ERKlYNVQw1oeXv8UdNHPxuJLPk1ZQ3HLSLlDeSbwboIFii+DTbL jiDlvpO6VSJcU51pRKE13C5KMRrmnqmFs8aPmSiLYExKkX8vs7Da0F4RYp2IsU1ixkox2Y z6NLnBWJ2pas47MDDcO0k50NFLIg3OkqE7h00j9G+yxergNfeAtwD6I/X+OSvqHmut70EA lzif34UeM7iiU6t3foTNeG1i2jobZu5us2NQinDGCbKRmx+y4vxYCPbIuEiCWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+6zewjqAezCa6FDjOOwh2RPKgxt2ltFBQ7q4KMOUvmw=; b=mWpaDWyh142bGfN/B63OP0lsZ1HdI3lwd8cdo18J5SFxwAAD0t7TszjjsSNM6TxJV6qOGg vdklsDFJCIRY0+7SLWELS3983HQDdclBFCLWnpb884DhesFZmAXtNzTKcaIEIaOo7i+i81 CO4la6AZT2gB1Nkjf0v4PCtI6lAEHceyFdVcF+OuYiWZJrorRlzo1YPuk6rtVJOlrnyx0l h9yiaauz/5CPSDrpn7URd43zCocbqMZkNnzph7QUjL16wpIPFy9lS7V4K4XR+a+87Vk25s RB3XsmxTSeMr3LX5clIiH+JNmY+Ktx5C4aza8QFZULgfcQO8HnQkFX3hDhAAzA== 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 4TYTRN0r4PzY2Y; Mon, 12 Feb 2024 15:49:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CFnaLm010088; Mon, 12 Feb 2024 15:49:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CFna3d010085; Mon, 12 Feb 2024 15:49:36 GMT (envelope-from git) Date: Mon, 12 Feb 2024 15:49:36 GMT Message-Id: <202402121549.41CFna3d010085@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Wolfram Schneider Subject: git: b8f3f97c5ce2 - stable/13 - man(1): Support custom sections 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b8f3f97c5ce240c156fab0205e0e3938196ed1e2 Auto-Submitted: auto-generated The branch stable/13 has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=b8f3f97c5ce240c156fab0205e0e3938196ed1e2 commit b8f3f97c5ce240c156fab0205e0e3938196ed1e2 Author: Wolfram Schneider AuthorDate: 2023-06-27 13:51:24 +0000 Commit: Wolfram Schneider CommitDate: 2024-02-12 15:41:01 +0000 man(1): Support custom sections PR: 271830 Signed-off-by: Mohamed Akram Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/764 (cherry picked from commit 8edb6fb572f29578877fdac3c30f718e589a0360 - needed for further bugfixes) --- usr.bin/man/man.sh | 76 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 48 insertions(+), 28 deletions(-) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index 1d9eb423b707..6ddeb62a3764 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -68,6 +68,25 @@ build_manlocales() { decho "Available manual locales: $MANLOCALES" } +# Usage: build_mansect +# Builds a correct MANSECT variable. +build_mansect() { + # If the user has set mansect, who are we to argue. + if [ -n "$MANSECT" ]; then + return + fi + + parse_configs + + # Trim leading colon + MANSECT=${mansect#:} + + if [ -z "$MANSECT" ]; then + MANSECT=$man_default_sections + fi + decho "Using manual sections: $MANSECT" +} + # Usage: build_manpath # Builds a correct MANPATH variable. build_manpath() { @@ -547,10 +566,10 @@ man_find_and_display() { fi } -# Usage: man_parse_args "$@" +# Usage: man_parse_opts "$@" # Parses commandline options for man. -man_parse_args() { - local IFS cmd_arg +man_parse_opts() { + local cmd_arg OPTIND=1 while getopts 'M:P:S:adfhkm:op:tw' cmd_arg; do @@ -594,19 +613,6 @@ man_parse_args() { do_apropos "$@" exit fi - - IFS=: - for sect in $man_default_sections; do - if [ "$sect" = "$1" ]; then - decho "Detected manual section as first arg: $1" - MANSECT="$1" - shift - break - fi - done - unset IFS - - pages="$*" } # Usage: man_setup @@ -626,14 +632,8 @@ man_setup() { decho "Using architecture: $MACHINE_ARCH:$MACHINE" setup_pager - - # Setup manual sections to search. - if [ -z "$MANSECT" ]; then - MANSECT=$man_default_sections - fi - decho "Using manual sections: $MANSECT" - build_manpath + build_mansect man_setup_locale man_setup_width } @@ -780,6 +780,10 @@ parse_file() { trim "${line#MANCONFIG}" config_local="$tstr" ;; + MANSECT*) decho " MANSECT" 3 + trim "${line#MANSECT}" + mansect="$mansect:$tstr" + ;; # Set variables in the form of FOO_BAR *_*[\ \ ]*) var="${line%%[\ \ ]*}" trim "${line#$var}" @@ -972,13 +976,29 @@ do_apropos() { } do_man() { - man_parse_args "$@" - if [ -z "$pages" ]; then - echo 'What manual page do you want?' >&2 - exit 1 - fi + local IFS + + man_parse_opts "$@" man_setup + shift $(( $OPTIND - 1 )) + IFS=: + for sect in $MANSECT; do + if [ "$sect" = "$1" ]; then + decho "Detected manual section as first arg: $1" + MANSECT="$1" + shift + break + fi + done + unset IFS + pages="$*" + + if [ -z "$pages" ]; then + echo 'What manual page do you want?' >&2 + exit 1 + fi + for page in "$pages"; do decho "Searching for \"$page\"" man_find_and_display "$page" From nobody Mon Feb 12 15:49: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 4TYTRP308dz5B37Y; Mon, 12 Feb 2024 15:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYTRP2VDCz43lx; Mon, 12 Feb 2024 15:49:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZbtZZ2PSs3URtZg4cXsdeg8HYbb2sfaaZO5TJIMre1I=; b=omNd8iqLIxt5kgbHCsspcTXoxsbbuluV7vmRR2iEBmAobjTYgIyQgTZK9RhJMUzwWuQaEf zPikQZeCPHRLu9DfHlpqE07VcVuyFhkh3U1lXdymvmAu7pav/8Y0/vuZuFpayF489Th4YM 8rFaCUxH77P/vJonqBL3fzA3Poa7dJHojOvgFj7FZ3wOw7JaIwbJsCYW6uvii8EiSrBszu GdkiOFs4SxN18VMBYiDAZwzdACZAVjaCKRhqlUgUIFjHaO+nJYMVNgp9Wa/aOJiiPrf79X p6WnVn6kw/Yt1FsOsXHR/MZnYGb4gGs8qMZdgWiWJRvtUjvfp4mlw/be+loKww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707752977; a=rsa-sha256; cv=none; b=OlDVIArHBcApPypFzQy+1/7WXjSuxsYHtqP5lH7W5DX89TdEXMLknTDXuyYVuLTkNG4Uri /2vnVETi6QAzNkPpH/e5sdDjUFvxWnJV5msoUMN+ZYWW11bHnNxveflXRF/YVA1E8AsUaH RCp6jWRvWzIBuqbH/VL5QgenxGzCJqgCLWcGEkMUq3sVQ8lAVNLnzQBmEtV4fRGHIDCDvm zvW+vZjujuo2UnVHWbX3N6wHg44HlKpJIDHG0TY/5eQx2FkjFwLLeKML694WFcHJO43Lwn nCWsA1YpqVPeRbd7mzIr/SHhdj1f96MFFbcKxSxSEMm38DgZPsGg0KJQ/LTK+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZbtZZ2PSs3URtZg4cXsdeg8HYbb2sfaaZO5TJIMre1I=; b=cxjBPsBBzFnbkg4cFLA/G1DgdBYTcDyHQSLXOVx+HFGBj6Bkc6qHv8z1MQIc+EWoT//0b+ /EOWA3a8Piiqtul/8chbmlmafnA6kGG4VErUn5cswWySpHRK59ovKZQp/yi7uMrgJxCetY 03yFuU/7jwC0GtDtFzH8/Nt3RqmHMfRLNpRsCj/uRoxAmdhF8pGIPpo2KUd2d1woTDwbk9 HyZOuygoMN+uFJSxgDEmGqqVE+OpSTB3VCNawuF9sfDYdA5lODznERPM2tk05eWYTwyAUA p7yRojBy2irnrysYXGTvdhDngqEGgwh5A3DCvqra/olTjd6HTHIQe52u/LrcUQ== 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 4TYTRP1XfCzYBg; Mon, 12 Feb 2024 15:49:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CFnbfk010141; Mon, 12 Feb 2024 15:49:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CFnbZD010138; Mon, 12 Feb 2024 15:49:37 GMT (envelope-from git) Date: Mon, 12 Feb 2024 15:49:37 GMT Message-Id: <202402121549.41CFnbZD010138@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Wolfram Schneider Subject: git: ec4c6d7ebfc9 - stable/13 - fix using man(1) with multiple 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ec4c6d7ebfc91a2e6a06949451aaaad4bf582041 Auto-Submitted: auto-generated The branch stable/13 has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=ec4c6d7ebfc91a2e6a06949451aaaad4bf582041 commit ec4c6d7ebfc91a2e6a06949451aaaad4bf582041 Author: Wolfram Schneider AuthorDate: 2024-02-12 15:44:40 +0000 Commit: Wolfram Schneider CommitDate: 2024-02-12 15:44:40 +0000 fix using man(1) with multiple pages PR: 275978 Reported by: Mohamed Akram Fixes: 789480702e490818244af11279868ba4f3dabe6b MFC after: 1 week (cherry picked from commit 1e82d882ed3372bcaf82451bfb865483a409ab1f) --- usr.bin/man/man.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index 6ddeb62a3764..ecc73733b560 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -999,7 +999,7 @@ do_man() { exit 1 fi - for page in "$pages"; do + for page in "$@"; do decho "Searching for \"$page\"" man_find_and_display "$page" done From nobody Mon Feb 12 15:49: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 4TYTRQ6Qspz5B35J; Mon, 12 Feb 2024 15:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYTRQ3yc4z43kD; Mon, 12 Feb 2024 15:49:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O7UbtwYGKzcdUEClLPdcgZMIam1JQoQ55WHEuwLZH4k=; b=BXI3fp2lcjk6WSo+1P/26PdrmV9TYfEtME9eRVuvaAQjyhDY1/Qc0/tVLuB0kKADuLm3uc PxjfeYqnwnK3KHS5YrkodB7naEGg//eXmNily84slQzEFtFGif6IQWfMtmDslCggrTdBlv HCcwYr/p3dcoVYe0eHO50Ut2l8a284DVmrgNIgx7MCj9HOrgzFrMbBQ+q2IzWMQe/TdzB3 TQMd27mzsg6hm4ZPZxUsrQI2MjjTSYZLxmjHc6dSgTnjf4uOfUQIVR195WPqAf1li3fQ0R z5nNqrmazFIJ3Orv+cktBZeSDIzhaTbbE65iXMXqasA2uvJnpOdcAOzG3Hkm3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707752978; a=rsa-sha256; cv=none; b=iUtgu8NrqstwTliXH2wU2mRxmGBFwMSITSBW6lqm+BD3plVYRjAESLDxfYpycQDsNa8Viz 0Qk1RghVXKpdhpkkZCST3oBl6Kj4eFn/HQdApmvpXphbvYW7H90hcrDv+nwWl7UFY5ObOD /2NSHBJOkhArSJY8GXy893Vjdn7WeACXL0UHoNsEMGKRh1alUtB/XFcvmJMkmZy1lsm3zK mLG7GU4O0NK+cD1889B0RAk/G8AIwrbe0j5yQoS5AQR5mweedqsvgc3OHxGie0jjSwnprB MmT87+5KdUeG2FfB2R6e3/RJJHcfKf/0IBVpCp7fPAjRZxq9zvPQuOAxZuKsDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O7UbtwYGKzcdUEClLPdcgZMIam1JQoQ55WHEuwLZH4k=; b=CbhVXFmIdXdpfzoC53eF+ZIVNNL7g04PhZie9r2lqD9wHHTRAwIcnRkKWvWk2uI9DiqAwz hwz17ZvKyLoQQB/8AkI2I18EFKOM+S/dHvI1KA4yJX/olTkeYkVssf2wzGpNsr05VWAY4h WdbYljEgFsgczBLbD99zfOp4tMDXlJnbauMrC6l1w2xOHCMJz9o8E6EmRYFJ2VAEH6AD+k Yq7hIVN6mPGiO8v45WjdjUYH8LPEG0uVjRt/ogpw+cvPvEjpAYsUxN9CQQGswBH5JLbrkL mN8e6uEOBmf2KUH98pjRPlWgFySKUoQK/q3Q/WeRQQiulbghpaWCHV+dI23BBg== 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 4TYTRQ2nrTzYBh; Mon, 12 Feb 2024 15:49:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CFnch4010183; Mon, 12 Feb 2024 15:49:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CFncrj010180; Mon, 12 Feb 2024 15:49:38 GMT (envelope-from git) Date: Mon, 12 Feb 2024 15:49:38 GMT Message-Id: <202402121549.41CFncrj010180@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Wolfram Schneider Subject: git: 1024a7c061ed - stable/13 - man(1): support spaces in filenames 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1024a7c061ed5cb34f5f3730f70432b5c01c9a12 Auto-Submitted: auto-generated The branch stable/13 has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=1024a7c061ed5cb34f5f3730f70432b5c01c9a12 commit 1024a7c061ed5cb34f5f3730f70432b5c01c9a12 Author: Wolfram Schneider AuthorDate: 2024-01-13 16:16:55 +0000 Commit: Wolfram Schneider CommitDate: 2024-02-12 15:45:52 +0000 man(1): support spaces in filenames The globbing function in exists() needs to handle white spaces. PR: 275978 Reviewed by: kevans, bapt, emaste Differential Revision: https://reviews.freebsd.org/D43222 MFC after: 1 week (cherry picked from commit e3c7b76fa8105929ae9a785e5ffc44274b1b0a81) (cherry picked from commit 7169c947ab4150a539f2af6c9dcf3ab4344b0033) --- usr.bin/man/man.sh | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index ecc73733b560..8cce52148699 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -191,7 +191,9 @@ decho() { } # Usage: exists glob -# Returns true if glob resolves to a real file. +# +# Returns true if glob resolves to a real file and store the first +# found filename in the variable $found exists() { local IFS @@ -201,14 +203,16 @@ exists() { # Use some globbing tricks in the shell to determine if a file # exists or not. set +f - set -- "$1" $1 + for file in "$1"* + do + if [ -r "$file" ]; then + found="$file" + set -f + return 0 + fi + done set -f - if [ "$1" != "$2" -a -r "$2" ]; then - found="$2" - return 0 - fi - return 1 } @@ -230,10 +234,10 @@ find_file() { fi decho " Searching directory $manroot" 2 - mann="$manroot/$4.$2*" - man0="$manroot/$4.0*" - catn="$catroot/$4.$2*" - cat0="$catroot/$4.0*" + mann="$manroot/$4.$2" + man0="$manroot/$4.0" + catn="$catroot/$4.$2" + cat0="$catroot/$4.0" # This is the behavior as seen by the original man utility. # Let's not change that which doesn't seem broken. @@ -313,7 +317,7 @@ man_check_for_so() { .so*) trim "${line#.so}" decho "$manpage includes $tstr" # Glob and check for the file. - if ! check_man "$path/$tstr*" ""; then + if ! check_man "$path/$tstr" ""; then decho " Unable to find $tstr" return 1 fi From nobody Mon Feb 12 15:49: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 4TYTRS0MGyz5B2kH; Mon, 12 Feb 2024 15:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYTRR4XY6z43bb; Mon, 12 Feb 2024 15:49:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752979; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uEf4GKz7oV44ZySg0xJNFIZmJf9ohB4iJr5xyQdE3fo=; b=qiuFN8rDAN+dD2o487Al9ryNkpHcmMiDmLopaDZk4qLgRp+elIIhjDlfleR3ABBI+5CSbM x0fjdOH2psTLqD56Q76Ms55GMT6g4w9LPmc+q8Y+3Wrla0FANYt5RFOtTQhggmpKvdSYSi GfU3nDi36p8YvIDW/d0LHnke4IrRX/+DQshrsshe26kLT0Wk3uVAL8cLH/BC2FADNsr5Ss djFtrxefnfA5iJPzx5rbpXI3x3w8AsEKp0ER31Xid8+hi9lH3DDkECacZKJSy8NPyoYzSN 3K6mATXmGYpKYCQcGMLPC77RQ5/0kgJcsJv002vVAtbe1fsJBTIOPLG6rCLZQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707752979; a=rsa-sha256; cv=none; b=rP7jKdSVsD47cDT4nGumdlj2iihXoVnP7ThTCgiA+8XALUTwuDxWcNeoRAhvLB26JBSwvw aH0IINIBvuypAGbeYOIRKD5BdxdMrg1Zl8nnBybIw1QlofMIYoHJzKV2WOLpZ6whu35qvR VnPWJDt9u5sM8c/1TUYOjdjH7DIoulZGxj+mEY247xG+sSmbDJ1lVRFqKGbLgh4eAjYGUp DFDksa1Lj1hnB85fZAWFC/aLFkkTNR3pFzn0fF+bH8B/dRPIWxQduorNxUbO38T+92UaoC rcL1803MuWm91Ly0T9D1WjzAubg99oCZlfbZv6KjJayzf9JNmvhT4cDPLvgU0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707752979; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uEf4GKz7oV44ZySg0xJNFIZmJf9ohB4iJr5xyQdE3fo=; b=hptW3LBV85V+9RCrzeAbuaCqpKrK57pddz0P3xtb/A23vxpplDJxbRj50qdoB4gSf5GJJd +NOUp17wuQGVC4oNrVjIZ2s3wghL9aeNIBsrx7Kk8B0qRWDUtAPipeAVEwlVh4IsmR+0YI y9KHvWVrITN666iQX4B3V8b8LplQR2bAa4VUmVTZqoJVq1awk5zrlhqCrfhxOl5KLuyXiE QUpSXl3Fh4snTZa56w30AyI1iwgvNQkBL5KtWl7iHfc0zCMC9CNAmiT1DsXmxT2afj9YXo 36urhrgNbsqbUdcqrGuyarXs0LY+GyYOt29gc4wVE46bRshWM1kEtEUjsZoLSw== 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 4TYTRR3fLczYBj; Mon, 12 Feb 2024 15:49:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CFnd14010230; Mon, 12 Feb 2024 15:49:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CFndL8010227; Mon, 12 Feb 2024 15:49:39 GMT (envelope-from git) Date: Mon, 12 Feb 2024 15:49:39 GMT Message-Id: <202402121549.41CFndL8010227@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Wolfram Schneider Subject: git: fedb7575a920 - stable/13 - man: support special characters in filenames 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: fedb7575a9202fae644c8499cfa9579d5765e3df Auto-Submitted: auto-generated The branch stable/13 has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=fedb7575a9202fae644c8499cfa9579d5765e3df commit fedb7575a9202fae644c8499cfa9579d5765e3df Author: Wolfram Schneider AuthorDate: 2024-01-25 07:14:06 +0000 Commit: Wolfram Schneider CommitDate: 2024-02-12 15:48:48 +0000 man: support special characters in filenames man.sh needs to handle double quotes and sub shell character as '`' '$' etc. PR: 275967 Reviewed by: bapt MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43453 (cherry picked from commit b8a484ec343d163a40f7cf4a6026e880f992c738) --- usr.bin/man/man.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh index 8cce52148699..ca9b002dfc08 100755 --- a/usr.bin/man/man.sh +++ b/usr.bin/man/man.sh @@ -349,7 +349,7 @@ man_display_page() { decho "Command: $cattool \"$catpage\" | $MANPAGER" ret=0 else - eval "$cattool \"$catpage\" | $MANPAGER" + $cattool "$catpage" | $MANPAGER ret=$? fi fi @@ -374,7 +374,7 @@ man_display_page() { pipeline="mandoc $mandoc_args | $MANPAGER" fi - if ! eval "$cattool \"$manpage\" | $testline" ;then + if ! $cattool "$manpage" | eval "$testline"; then if which -s groff; then man_display_page_groff else @@ -387,10 +387,10 @@ man_display_page() { fi if [ $debug -gt 0 ]; then - decho "Command: $cattool \"$manpage\" | $pipeline" + decho "Command: $cattool \"$manpage\" | eval \"$pipeline\"" ret=0 else - eval "$cattool \"$manpage\" | $pipeline" + $cattool "$manpage" | eval "$pipeline" ret=$? fi } @@ -480,10 +480,10 @@ man_display_page_groff() { fi if [ $debug -gt 0 ]; then - decho "Command: $cattool \"$manpage\" | $pipeline" + decho "Command: $cattool \"$manpage\" | eval \"$pipeline\"" ret=0 else - eval "$cattool \"$manpage\" | $pipeline" + $cattool "$manpage" | eval "$pipeline" ret=$? fi } From nobody Mon Feb 12 16:14: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 4TYTzq1YQzz5B4w4; Mon, 12 Feb 2024 16:14:15 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYTzp20hNz46bL; Mon, 12 Feb 2024 16:14:14 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=freebsd.org (policy=none); spf=none (mx1.freebsd.org: domain of brooks@spindle.one-eyed-alien.net has no SPF policy when checking 199.48.129.229) smtp.mailfrom=brooks@spindle.one-eyed-alien.net Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id BBF873C019A; Mon, 12 Feb 2024 16:14:07 +0000 (UTC) Date: Mon, 12 Feb 2024 16:14:07 +0000 From: Brooks Davis To: Don Lewis Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 49d684369c66 - main - libthr: filter rather than link with libsys Message-ID: References: <202402071951.417JpRgf034979@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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.59 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.99)[-0.991]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : No valid SPF, No valid DKIM,none]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; FREEFALL_USER(0.00)[brooks]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org,dev-commits-src-main@freebsd.org]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[4] X-Rspamd-Queue-Id: 4TYTzp20hNz46bL On Sat, Feb 10, 2024 at 01:36:19PM -0800, Don Lewis wrote: > On 7 Feb, Brooks Davis wrote: > > The branch main has been updated by brooks: > > > > URL: https://cgit.FreeBSD.org/src/commit/?id=49d684369c6682eebca325c55a6c96b7c03f5aeb > > > > commit 49d684369c6682eebca325c55a6c96b7c03f5aeb > > Author: Brooks Davis > > AuthorDate: 2024-02-07 19:38:16 +0000 > > Commit: Brooks Davis > > CommitDate: 2024-02-07 19:50:47 +0000 > > > > libthr: filter rather than link with libsys > > > > The allows gcc + GNU ld to link programs with -m32 -pthread without > > erroring out due to _umtx_op_err being undefined (unless -lsys is added > > to the link command. > > > > We now always link _umtx_op_err into libthr (not just when it's static) > > and filter it with libsys so we call that implementation. The dynamic > > implementations (at least the assembly ones) should likely become stubs > > as a further refinement. > > Thanks! I ran into this problem early this week when lang/gcc12 stopped > bulding and I spent a bunch of time bisecting. Sorry about that. We (mostly antone) did a number of exp-runs, but I made a last minute change to fix (somewhat ironically) buildworld with GCC 12 and that broke the GCC MULTILIB option... I'm not convinced there isn't an underlying bug in GNU ld's -m32 support, but even if there is we need this to work with past versions so I've not put more effort into this. -- Brooks From nobody Mon Feb 12 16:25: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 4TYVFF2LmPz5B5l7; Mon, 12 Feb 2024 16:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYVFF1ggrz47lb; Mon, 12 Feb 2024 16:25:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707755153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hnjpIpewbARPr92LvsYNgDOdcDXSRFod7AonqalXfMY=; b=tkjuu2KIf6NBQowT1xrKZ/vzi9QgHBjqTAlKDujNzr5Xh14H0xl/HIAh7b0RicOiasy0aH ayLm8q30GgUK1BSt1eCDQPqijImyVqOWbwwRcemMuJvpCceS+FY9Bujd0KZCJuVaEFgf53 +37c+gjqMX/jp7DE3xtEULLhF02cY/qQCThq8RBlvdmtc4EznNVyjhd3hl0LkLFeJsN4TC Z3Xl5mSWH4RpxATbjKLOXJciq/rqdaeY+y11HMmjKeMmNSLjiWiCrZkm994QSnv+TwEaDw PW/DwG2AhPfnw1r1k6DmIaUMSKLZM4F0AwEI4XgeRtONtRJyML6lERdBSsmllg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707755153; a=rsa-sha256; cv=none; b=aU0H6YzsOZOTOh+MwCEnC+y6aKD5X15B6/0sX9uQYyK00VwvFp0S0cVU4ahpOSWlbuqybJ pvUpgbmd/6/FKM2DKrUs4ijLzVPZllkn5MP2ZWrDCnrpJZcT5B58lsXCLUCsa8veNzkRCo GVEvLkjn+x+ZpM/QSneBNzN/jfxJ5zRHjkkw6MWvAMkUPGHSited6yu5H9m0icyfOhrjrB XSg/fYsQegTXAV6NWVAPl1YNnbDR1ga3joAtFMrT1MD+fDvXDg0QMTm/h8PXL7pKL6YsNO NjhGlp89fNgyDndjHfnOurLN/zRLIqp38h31NMWyFaR5aWi1R63bPb7Oi5eeHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707755153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hnjpIpewbARPr92LvsYNgDOdcDXSRFod7AonqalXfMY=; b=NAYd++aq633nupH3Aw4vfXeVUc0JFhd8pi6pzAy7b6t1p9L6WUCHr8NItNf9VaTtYKEAcq y+E9tSfcHKXGjHMFfFCj9nsp1RckFQSlcuchk1xBE7VFv5lvsJP5X5YdKEcN+c5hMFRmyO Q23hS9lCql+XdZs41ER+R/zC2xV+ZSZOk5NhHHaGslj/kVVhSYUaSCcDJSoZ4l1LcUChUx e1osAM6F5mUjfeaWppRSETPYOCHJVRA06Mv4gm7EktuFk3FQ9+R+GVh4lJMV6RbbCVUY8z HLN6aLKoZu3mpYwDIV8gbuea2Xr5Idm5BVBHIsW7LCsZ4kQ3+PDYzm6RSer1Tw== 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 4TYVFF0jztzZ5s; Mon, 12 Feb 2024 16:25:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CGPrDE077340; Mon, 12 Feb 2024 16:25:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CGPrHK077337; Mon, 12 Feb 2024 16:25:53 GMT (envelope-from git) Date: Mon, 12 Feb 2024 16:25:53 GMT Message-Id: <202402121625.41CGPrHK077337@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: 93c87d96e114 - stable/14 - jail: Fix information leak. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 93c87d96e11421e425e257354b8fbf2d3ad878eb Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=93c87d96e11421e425e257354b8fbf2d3ad878eb commit 93c87d96e11421e425e257354b8fbf2d3ad878eb Author: Pawel Jakub Dawidek AuthorDate: 2024-01-17 17:43:55 +0000 Commit: Mark Johnston CommitDate: 2024-02-12 16:24:21 +0000 jail: Fix information leak. There is a lack of proper visibility checking in kern.ttys sysctl handler which leads to information leak about processes outside the current jail. This can be demonstrated with pstat -t: when called from within a jail, it will output all terminal devices including process groups and session leader process IDs: jail# pstat -t | grep pts/ | head LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE pts/2 1920 0 0 192 1984 0 199 0 4132 27245 Oi pts/3 1920 0 0 192 1984 0 199 16 24890 33627 Oi pts/5 0 0 0 0 0 0 0 25 17758 0 G pts/16 0 0 0 0 0 0 0 0 52495 0 G pts/15 0 0 0 0 0 0 0 25 53446 0 G pts/17 0 0 0 0 0 0 0 6702 33230 0 G pts/19 0 0 0 0 0 0 0 14 1116 0 G pts/0 0 0 0 0 0 0 0 0 2241 0 G pts/23 0 0 0 0 0 0 0 20 15639 0 G pts/6 0 0 0 0 0 0 0 0 44062 93792 G jail# pstat -t | grep pts/ | wc -l 85 Devfs does the filtering correctly and we get only one entry: jail# ls /dev/pts/ 2 Approved by: mzaborski, secteam MFC after: 1 week Sponsored by: Fudo Security (cherry picked from commit f1d0a0cbecf2c688061f35adea85bfb29c9ec893) --- sys/kern/tty.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 353a3b58846c..6d060d61695c 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1308,9 +1308,11 @@ static int sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) { unsigned long lsize; + struct thread *td = curthread; struct xtty *xtlist, *xt; struct tty *tp; - int error; + struct proc *p; + int cansee, error; sx_slock(&tty_list_sx); lsize = tty_list_count * sizeof(struct xtty); @@ -1323,13 +1325,28 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) TAILQ_FOREACH(tp, &tty_list, t_list) { tty_lock(tp); - tty_to_xtty(tp, xt); + if (tp->t_session != NULL) { + p = tp->t_session->s_leader; + PROC_LOCK(p); + cansee = (p_cansee(td, p) == 0); + PROC_UNLOCK(p); + } else { + cansee = !jailed(td->td_ucred); + } + if (cansee) { + tty_to_xtty(tp, xt); + xt++; + } tty_unlock(tp); - xt++; } sx_sunlock(&tty_list_sx); - error = SYSCTL_OUT(req, xtlist, lsize); + lsize = (xt - xtlist) * sizeof(struct xtty); + if (lsize > 0) { + error = SYSCTL_OUT(req, xtlist, lsize); + } else { + error = 0; + } free(xtlist, M_TTY); return (error); } From nobody Mon Feb 12 16:25: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 4TYVFG3FDyz5B5jh; Mon, 12 Feb 2024 16:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYVFG2cCMz47r5; Mon, 12 Feb 2024 16:25:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707755154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CAAzw8GmlsJFn5zwmf7KiljOSXDZf38sf/N98qkOf84=; b=qgZ/4s/7aH2GpirHH6Ei9ymhcFDlphPi/bbZl+NKhFQXKTod6lwBvvbjXmkAXZuLKi+O7/ 14YBU+80b9fHuSmNHI13SSQm1pODZM5UiVNSJBgBbiDqjcUDVKCTZvkUhzbQwtY7ZLT+i8 W2CQDbwib+M/FS3bsNsFjoXCv6mSxBph15HWffzlDJ3mLQjHV7rq8SeElqLtG0RQE+rS0N fl8Q2UEN9Uj6pJc2ousdc7SE6Ka7E53NC4gXWE+Vvk7le/v3nvV7H+r+SqzLpN3kG8k161 wDco4xUlcETXZxfOh7xers7KQeujqq7//tQ8j4Wes28T+0mulx2kVo64WrRc0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707755154; a=rsa-sha256; cv=none; b=Wb9dAOHdt1M4Wr1/94SzHopmL1CZ7frZeJbQ4IQlHcpoxaGtBrmLz6KR/K9tOwX7e/kDEl RXZAyhNncUpJBwMCdTZhYSD24f+qO7ftyRFAc6A7ZrdsB2opwifkJfjXP5mpozGVYHxgWD 9QmNveF55QJexwp6v1IpRqHYEksPhNIPbiUf9r/CDHV57fIcprsDHAA/+a3ZVWBt0GCmKH 1J7XHLDvqgET141N3hVsHmvtILP9O325+IRNht5+RgnnyKpfwYOMltZNtdBfOpjpHoSHUg wAGZhq4LcDTmPjmxc+0XJUlYKSpBYX9atvTsQcFRQpbQ0MA2WJ102V6gPPLGJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707755154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CAAzw8GmlsJFn5zwmf7KiljOSXDZf38sf/N98qkOf84=; b=aICVM6uLYVfygcnp7MWEpiBVJYEOFCdYu8qF9QDuoX1CscaI8PIqVIr08BL60qAL3NNwAs 2SLLwpPPiqcnZpfUXSV6E3Z1DEk3anWOmcaH/MwCYwHk7HzjRjcs3M2wCP9tR/cD773Dvs ZfkkoB7vKQsejQFy6/imAeQbnUKyNRVVrIYCbxgeIinMVjOJ6PBR36/I9m2a/ZzjfknufB 3lGfkO+Lf2bIsgPxVluHvAxKauDXSJJEO/lHzAeOHPg/XwiRMQXyxJ3ETzgIQXWy1EPuzZ u8X60Ugipph73/Ph7402kgpr44gMjKmE/k0+VJkLwHlyIk1ssTPonjZDVrazCg== 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 4TYVFG1gLZzZ5t; Mon, 12 Feb 2024 16:25:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CGPsvU077385; Mon, 12 Feb 2024 16:25:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CGPsdp077382; Mon, 12 Feb 2024 16:25:54 GMT (envelope-from git) Date: Mon, 12 Feb 2024 16:25:54 GMT Message-Id: <202402121625.41CGPsdp077382@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: 215bb03edc54 - stable/14 - Fix the build. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 215bb03edc541634ec3fd9b01b55d7396b14d9cf Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=215bb03edc541634ec3fd9b01b55d7396b14d9cf commit 215bb03edc541634ec3fd9b01b55d7396b14d9cf Author: Pawel Jakub Dawidek AuthorDate: 2024-01-17 18:54:43 +0000 Commit: Mark Johnston CommitDate: 2024-02-12 16:24:31 +0000 Fix the build. MFC after: 1 week MFC with: f1d0a0cbecf2c688061f35adea85bfb29c9ec893 (cherry picked from commit 41ac0b4ce00bae061164384f23356a4df6e0e695) --- sys/kern/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 6d060d61695c..eaf6fe98fe2e 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -44,6 +44,7 @@ #ifdef COMPAT_43TTY #include #endif /* COMPAT_43TTY */ +#include #include #include #include From nobody Mon Feb 12 16:27: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 4TYVHD2ybXz5B5nT; Mon, 12 Feb 2024 16:27: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYVHD2NdGz48lm; Mon, 12 Feb 2024 16:27:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707755256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I9/FdQIFie1vNCxE+5MjW+PEeRL6Or40HOnp4pjDSLo=; b=eAAbacswBy9RIQdV7DnLCvaPQ+pXBLoLLfd3Beioo5sOliIYGtEK4yruqj4E44B+XwT0Nr FilQlF94LERntzYgEK9jTqPAgBSQF/qh8OEocR7uLgXTm1fTvGTkFGdQi5sdu7PbEJ/jXz wYcrTL1wlGDsfVKArbtKcKX6SNudQc3uJw7h0KETkCV8faHh8yg7g1rJ93QYyGgrOFMzFU UtQHsa8Va6yvul+8/WCQNdR9YB91QF+CoKeio6uxurKoBLZQh2N9dVXQSco1ft/N00v4AY VnpFo94gVZZvmH6Ug6u2exX7EY+GfWqPNtg5uxlsBYEdoIfOc8HcHw/higJ4lQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707755256; a=rsa-sha256; cv=none; b=ypxosHezqio9ZmVXX0w72ecWFtlw1Y0FZUJ5SQEdaMT+6fDTUr7cb94rCfWOIbYdDeNbyl 8nwv4UYJdrPk0o/tNNjHAdSkHYDTVTjs8jugzCXHsBfxUo1aDEcDOxNAJe6++k8XFPx18I dq6Sq5RZEPiHDUJ5/hVZ7y2N0ZoTsSKKmCx9g34/8fEVH0FB7YlPd6Ooy8LLOLDl/wCvel Tmlf+ZWBDjzlmOkci8Z/eVSCBF5FzfvPzNlKZrBbykxn8YCmTA5eWbacsDpu1n/jP6w0lg FYY9xNLYHH87FQdoZlWkNJ5HC+DYa4S1eQVIWzytoI4EeQQ6cx+zan7Mw+XB8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707755256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I9/FdQIFie1vNCxE+5MjW+PEeRL6Or40HOnp4pjDSLo=; b=OPeH4+4aRRXmRF5yX4C7eO0BIQD9IraG/tQ1GVbVCVIAdqltS/IoFmJ3u2rC68JB4AwP24 CJ6KUc04YgBA4Wq6rBuorxTlW+KmKAhgmA37jXl9ItzmY5P8eFrgkPdZG5YARj+NMONkiJ KX8BAMlSDWaoL4ErNUi+OHkMHZPfGnOYwTshUUJa/cCEDcica4rRuz1cu9qQjB2OFFmgPm vPoBuMwGcxEn9Wbk8sxRcNuwUj+Lj1jgSyKeWuT1Mnk2Ba8fkdD3nA6E50wd4gc0MG5+SE n3r4ZQHHD8/kDISz/OZEOq/4NdJCdUQSoRfXTx8x3sUexZ8degdWxz1fBIBggg== 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 4TYVHD1T9JzZPL; Mon, 12 Feb 2024 16:27:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CGRamS077738; Mon, 12 Feb 2024 16:27:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CGRa4R077735; Mon, 12 Feb 2024 16:27:36 GMT (envelope-from git) Date: Mon, 12 Feb 2024 16:27:36 GMT Message-Id: <202402121627.41CGRa4R077735@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: a376108029a2 - stable/13 - jail: Fix information leak. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: a376108029a20f4ce51476d98f2483a7008ce7b5 Auto-Submitted: auto-generated The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=a376108029a20f4ce51476d98f2483a7008ce7b5 commit a376108029a20f4ce51476d98f2483a7008ce7b5 Author: Pawel Jakub Dawidek AuthorDate: 2024-01-17 17:43:55 +0000 Commit: Mark Johnston CommitDate: 2024-02-12 16:26:02 +0000 jail: Fix information leak. There is a lack of proper visibility checking in kern.ttys sysctl handler which leads to information leak about processes outside the current jail. This can be demonstrated with pstat -t: when called from within a jail, it will output all terminal devices including process groups and session leader process IDs: jail# pstat -t | grep pts/ | head LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE pts/2 1920 0 0 192 1984 0 199 0 4132 27245 Oi pts/3 1920 0 0 192 1984 0 199 16 24890 33627 Oi pts/5 0 0 0 0 0 0 0 25 17758 0 G pts/16 0 0 0 0 0 0 0 0 52495 0 G pts/15 0 0 0 0 0 0 0 25 53446 0 G pts/17 0 0 0 0 0 0 0 6702 33230 0 G pts/19 0 0 0 0 0 0 0 14 1116 0 G pts/0 0 0 0 0 0 0 0 0 2241 0 G pts/23 0 0 0 0 0 0 0 20 15639 0 G pts/6 0 0 0 0 0 0 0 0 44062 93792 G jail# pstat -t | grep pts/ | wc -l 85 Devfs does the filtering correctly and we get only one entry: jail# ls /dev/pts/ 2 Approved by: mzaborski, secteam MFC after: 1 week Sponsored by: Fudo Security (cherry picked from commit f1d0a0cbecf2c688061f35adea85bfb29c9ec893) --- sys/kern/tty.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index d7f9a914166a..be4cc2593fd1 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1308,9 +1308,11 @@ static int sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) { unsigned long lsize; + struct thread *td = curthread; struct xtty *xtlist, *xt; struct tty *tp; - int error; + struct proc *p; + int cansee, error; sx_slock(&tty_list_sx); lsize = tty_list_count * sizeof(struct xtty); @@ -1323,13 +1325,28 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) TAILQ_FOREACH(tp, &tty_list, t_list) { tty_lock(tp); - tty_to_xtty(tp, xt); + if (tp->t_session != NULL) { + p = tp->t_session->s_leader; + PROC_LOCK(p); + cansee = (p_cansee(td, p) == 0); + PROC_UNLOCK(p); + } else { + cansee = !jailed(td->td_ucred); + } + if (cansee) { + tty_to_xtty(tp, xt); + xt++; + } tty_unlock(tp); - xt++; } sx_sunlock(&tty_list_sx); - error = SYSCTL_OUT(req, xtlist, lsize); + lsize = (xt - xtlist) * sizeof(struct xtty); + if (lsize > 0) { + error = SYSCTL_OUT(req, xtlist, lsize); + } else { + error = 0; + } free(xtlist, M_TTY); return (error); } From nobody Mon Feb 12 16:27: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 4TYVHF5fTTz5B5lJ; Mon, 12 Feb 2024 16:27: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYVHF3LtVz487d; Mon, 12 Feb 2024 16:27:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707755257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kA84sZYzi9rvrG4tH7bizn5ouYIewpXdxebH3H3My2A=; b=W0HMZGyEnS4jbJTr9kkyvx6D0VuAe+PX2iW0ciZth9cE7bz57znV1dn4wO5W4eCZn41k6p qg2jElm1YtEJG3vM/f1sWfkvPj5rmXpcZYdVX/gqw7HCSSxQ+p6SdSYVP5vjvc+1XXGXef Ffyh6bFa1NCJDK6O8/EOA6huCl1Z4p1QirMz9p57oNArL+SK1P7oOeWwxbUcLuCq5O1x87 q8IYj9Mpdtl3ZiDDuCvNyBGlR4IA8WRva8Y3t9Yk59qSUE9BeJN/it6RwazTHIuqz+P97V cjyDjyWM46+vo5uYKmnFdurIW48rsoWNow1ItASOFs5eKY00LxuewXMxTcbrag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707755257; a=rsa-sha256; cv=none; b=cQ7TtqERqs+j0ZI6Graoe9QFZvymsHI1gp2BoZKU4SMgLiyIFhnyxh1gQWr7KG8Nf9fUQL mRFs/0jLxwq0gmtTiNWeCRNo7FHt4PCXs0CMZhe/yv/pNWWjjohfnMNc87ydVTIScA8H5r lO/I+9zv4oxisEWOsONfeFeaadIn1irWwOsm2nlMhYDvg1/sOUKx55K7gYMGu1eauGzLHI amoko+E2s9jM047Aclig/AUGFw+kkaaf8KQY07C7pLQnFAPI/khCGWIpF+nuDrffa2AGNo jpQEvJ3Pua//MQyFyTd4YEz1QH475aoBVHgqQziFIuntIdvNffB3hEuRjhj7ZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707755257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kA84sZYzi9rvrG4tH7bizn5ouYIewpXdxebH3H3My2A=; b=vkpRw7TAzwp1j2gcZKJlSwu8bMZ9ixvN4erWHtHzq1WhPAmKS8AUJKjPUJi0bFI46DKd9X 4/mCKQhDfUyf3REqf63eykYX/q7jTnqVEsVwv8R9Sf3rp6NIyew7jnkki72/2QdC0s1JJ5 ONeqvdd2WOdK61HV86YWqScCqlmt+vtTVG3I5U9sOhqYD6LKZGN3teT1xxwTlitcUJZbzv DU6e/ncTdoeld0jwc+Bl7F/kU1KrB5uw1ZubBACMVKGpuPxeH/B71SS/IWPGcvdXzAyayh S9aHXIBI2S8ATHkyTXn2+waf1vemdcOj/8dnU6RjH0V2aWSDFgC1FIFo2aP5uQ== 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 4TYVHF2RRRzZKD; Mon, 12 Feb 2024 16:27:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CGRbCj077781; Mon, 12 Feb 2024 16:27:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CGRbjA077778; Mon, 12 Feb 2024 16:27:37 GMT (envelope-from git) Date: Mon, 12 Feb 2024 16:27:37 GMT Message-Id: <202402121627.41CGRbjA077778@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: 9bff7ec98354 - stable/13 - Fix the build. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 9bff7ec98354a76c171905ce9530f85685725ee7 Auto-Submitted: auto-generated The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=9bff7ec98354a76c171905ce9530f85685725ee7 commit 9bff7ec98354a76c171905ce9530f85685725ee7 Author: Pawel Jakub Dawidek AuthorDate: 2024-01-17 18:54:43 +0000 Commit: Mark Johnston CommitDate: 2024-02-12 16:26:05 +0000 Fix the build. MFC after: 1 week MFC with: f1d0a0cbecf2c688061f35adea85bfb29c9ec893 (cherry picked from commit 41ac0b4ce00bae061164384f23356a4df6e0e695) --- sys/kern/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index be4cc2593fd1..508c0f14b861 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -44,6 +44,7 @@ #ifdef COMPAT_43TTY #include #endif /* COMPAT_43TTY */ +#include #include #include #include From nobody Mon Feb 12 17:19: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 4TYWQZ5czBz5BB5D; Mon, 12 Feb 2024 17:19: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYWQZ32Yrz4Kss; Mon, 12 Feb 2024 17:19:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707758342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Cw4CZnFYh7VPrk0/00x1dOpmGonxXhN98dPwBCZstMI=; b=boC1P8omPyMYMl5z3s2gDwQFIoRZUQLA3oe04rW1I5WtYTrSpNEpWBvqWUtdMyrorfdd9b GFkmk4RFxiZahBtQ61KLNghZFZHSR3A6u31MEul43rILlkLthAc+E60R+cl29nt7OJ4Cyi ytd1aGCFCYLIOtpp7Q3w81MXX6l+843FvPHzBSxHzbhbn613LfsVQGO+aBTt6JpM42ZUsc Zi+2mwQpkrECODCH2S4v00txw2buaubIAOuizRF4YM8OArAK2D1HZdcbMFUHPRGdyZ86FO gYVAgmNS4ZS5cIpPiat1RPIyihBQx3/Xiw/mC4OqcvJV91ESPNtDXtpkCRpsSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707758342; a=rsa-sha256; cv=none; b=L5qhSEuXfPJTSQOYkoUNHm0mIiFJLi6EuH6GrPV4JlPMTFG4D/G4G7kdtBKWct3UqO4u++ s0stACI/x05eVGACPOTdUk/00mZLwL8tC4nCIyUF0iL0QNU4FxmB3dZYWETzFWZ71gYy5O +Fg5H9jz3zjUJmcYEOXvOXP4EwJ7VbXfCPhKIz/WINKYejMwIDR9T52ndVAbL0o39Pi4ls D0cGvn+Tq55JI4hXnQafrgSu/hR7gv2v8bfMTUtotgNAuog7QehdrN7FQcxJKKPkGyXMbE bce0MQ/4jBp/3r34H/ZkIzd+ymcmvG34HwTEUBHEHqEG9kA1j5GDg5z3H9s/Lw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707758342; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Cw4CZnFYh7VPrk0/00x1dOpmGonxXhN98dPwBCZstMI=; b=uL5Nav7WcVywUfuiAWvyOccLJdJBKEBs0Xbs9KmU+pQiJLXATfAXCZVCtu3qoFgfgKTGYz ZEgDmW+IBBPIBltUPad0jWmd/wXnVC1PWrKykRZl/i1ep2nKG74n2a36Ln6Iw1wR6a9Mqm h9B+yIV9WhIw7mKwIAm6179Si3DrobxIhGLxNoP8+cEi6jCky4X0O/eRwJhkSPs03KUE4K e4fqey3ldDkxe+reSq61ZrIfQu+GiVZh5ZGiuGaGROVw5TGVIq4dRDT2cVeR0QqQsjxL1M BSmsruHwEIqnoLtcljH/IkXdRxvmxP8yaF72ns9MC3pmqD2vReBfH10vCGWY/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 4TYWQZ1nkbzb1X; Mon, 12 Feb 2024 17:19:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CHJ294062688; Mon, 12 Feb 2024 17:19:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CHJ2kC062685; Mon, 12 Feb 2024 17:19:02 GMT (envelope-from git) Date: Mon, 12 Feb 2024 17:19:02 GMT Message-Id: <202402121719.41CHJ2kC062685@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 114ab149e23e - main - files: make uart_bus_puc.c not depend on puc 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 114ab149e23e11760a2a41a773a786b97980616a Auto-Submitted: auto-generated The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=114ab149e23e11760a2a41a773a786b97980616a commit 114ab149e23e11760a2a41a773a786b97980616a Author: Emmanuel Vadot AuthorDate: 2024-02-12 17:18:20 +0000 Commit: Emmanuel Vadot CommitDate: 2024-02-12 17:18:20 +0000 files: make uart_bus_puc.c not depend on puc If one wants to have puc working as a module we need the bus in the kernel otherwise we won't be able to find any child to attach. Reviewed by: imp Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D43846 --- sys/conf/files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/files b/sys/conf/files index c91b1f89f921..b5f28b848800 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -3174,7 +3174,7 @@ dev/uart/uart_bus_acpi.c optional uart acpi dev/uart/uart_bus_fdt.c optional uart fdt dev/uart/uart_bus_isa.c optional uart isa dev/uart/uart_bus_pci.c optional uart pci -dev/uart/uart_bus_puc.c optional uart puc +dev/uart/uart_bus_puc.c optional uart pci dev/uart/uart_bus_scc.c optional uart scc dev/uart/uart_core.c optional uart dev/uart/uart_cpu_acpi.c optional uart acpi From nobody Mon Feb 12 17:43: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 4TYWz53rKBz5BDJY; Mon, 12 Feb 2024 17:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYWz53Jynz4VRj; Mon, 12 Feb 2024 17:43:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jsWpPX2tFIHxfXen1xppNIJ7ITjGgVs2T4kBABiIUzY=; b=NWxnHDCDnkNADkV2ADuOB/lVnwVOhLQk3f5cCRDxfFnFKpLM8LPW3BDC7pFh4YebLJf+lg AWoEvF/3VpeFbhr1gQRsc/Vb+SZt6KWuC6kP4ncgoUqHVQQF+j7PV7oPE4HpmSrLDpxvgd zFx5TvfBsoIMHn5SfkNDv/KUE0j8MK8jAJIXvosCOwNo8ufFl5OlpT+U1LAJFh6ErKo7Jz 6qU84//UDxD2HgqpmsLkZXrDsBzwJId5e23hHlSLiAIoz9Z2h0up98h9lhobROmFupBPvX c3vu+P9mtF086xJoP6KHB2kA79DpotK+IwiS6malfkP8r3T3snl36LMXdfT4rw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707759825; a=rsa-sha256; cv=none; b=tQgMHyfeFw/zpUCMO94UtOBNrRcm6in55enZjcL06xZkBgqlYyA54DLWsIOWQmfxubVYxl Vd9nuFZ/IObpnaXjq+xr2EhXt+LseqhPyITWKeZdXma3c9lpYLQC1D9XgpE0LgMzQRj8SK LXnXcY9774cbTxePoeGf5FtT11ZsE57y4j2UwY+/NOkrgYuxX8tfi6JgCHALsOJ3Mv8Nwm RFNoEz4nkUe7yfB0RSBmcvtg97VcJ8MQhnz2K3v6nBwK1WBRAQHbnaNCUoDe6jbdUjBlwN Hx+kjNizab1aHovJw8YMX9YBl+RLCDKIsF+6Gif+fpTRR8IkIwvJIYNpDVisvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jsWpPX2tFIHxfXen1xppNIJ7ITjGgVs2T4kBABiIUzY=; b=G4+Npn5dkvDFBkDQY81DuNufK/h08l/fRpf3D3szOgRg3sIKQULV8gXVbVoSOl8iCOa2BV kratHf5cn3etqe+sqe8D9b3PXYBgK53D6PJ9ggKLM2zbcALelZOo4LyD/l6IlxMtxx+kyb fyT6wCR5p5YUlj4HP8iN96cx1B6MZb8Bw6ygtf6qYGkdpgzkvEsLfJYnnOMglYHh6CwIm8 J1lQad3BGAeoMPOeZqPRqeBOEh/WGmGAKhGcFoYTolgyvG7djqGhVgYzmJlzaVlNFKXDLx zlxkQyXc5nFLYse9EVIRfXbeuIJG2rANVmS1XHvNi1nzBMd+7OBznhKLLGdeCw== 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 4TYWz52MKrzhFw; Mon, 12 Feb 2024 17:43:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CHhjAa012173; Mon, 12 Feb 2024 17:43:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CHhj7G012170; Mon, 12 Feb 2024 17:43:45 GMT (envelope-from git) Date: Mon, 12 Feb 2024 17:43:45 GMT Message-Id: <202402121743.41CHhj7G012170@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 9826f8eb0cca - stable/14 - fusefs: fix an interaction between copy_file_range and mmap 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 9826f8eb0cca1a755d411174c24222c3588881d9 Auto-Submitted: auto-generated The branch stable/14 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=9826f8eb0cca1a755d411174c24222c3588881d9 commit 9826f8eb0cca1a755d411174c24222c3588881d9 Author: Alan Somers AuthorDate: 2023-12-31 14:31:16 +0000 Commit: Alan Somers CommitDate: 2024-02-12 17:42:46 +0000 fusefs: fix an interaction between copy_file_range and mmap If a copy_file_range operation tries to read from a page that was previously written via mmap, that page must be flushed first. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D43451 (cherry picked from commit 1c909c300b92601f7690610097ac98126caff835) --- sys/fs/fuse/fuse_vnops.c | 1 + tests/sys/fs/fusefs/copy_file_range.cc | 68 +++++++++++++++++++++++++ tests/sys/fs/fusefs/io.cc | 90 ++++++++++++++++++++++++++++++++-- 3 files changed, 154 insertions(+), 5 deletions(-) diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c index 9728afb66654..b5e177dac376 100644 --- a/sys/fs/fuse/fuse_vnops.c +++ b/sys/fs/fuse/fuse_vnops.c @@ -907,6 +907,7 @@ fuse_vnop_copy_file_range(struct vop_copy_file_range_args *ap) if (err) goto unlock; + vnode_pager_clean_sync(invp); err = fuse_inval_buf_range(outvp, outfilesize, *ap->a_outoffp, *ap->a_outoffp + io.uio_resid); if (err) diff --git a/tests/sys/fs/fusefs/copy_file_range.cc b/tests/sys/fs/fusefs/copy_file_range.cc index 8640780c0b58..17b21b888736 100644 --- a/tests/sys/fs/fusefs/copy_file_range.cc +++ b/tests/sys/fs/fusefs/copy_file_range.cc @@ -27,6 +27,7 @@ extern "C" { #include +#include #include #include @@ -320,6 +321,73 @@ TEST_F(CopyFileRange, fallback) ASSERT_EQ(len, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); } +/* + * Writes via mmap should not conflict with using copy_file_range. Any dirty + * pages that overlap with copy_file_range's input should be flushed before + * FUSE_COPY_FILE_RANGE is sent. + */ +TEST_F(CopyFileRange, mmap_write) +{ + const char FULLPATH[] = "mountpoint/src.txt"; + const char RELPATH[] = "src.txt"; + uint8_t *wbuf, *fbuf; + void *p; + size_t fsize = 0x6000; + size_t wsize = 0x3000; + ssize_t r; + off_t offset2_in = 0; + off_t offset2_out = wsize; + size_t copysize = wsize; + const uint64_t ino = 42; + const uint64_t fh = 0xdeadbeef1a7ebabe; + int fd; + const mode_t mode = 0644; + + fbuf = (uint8_t*)calloc(1, fsize); + wbuf = (uint8_t*)malloc(wsize); + memset(wbuf, 1, wsize); + + expect_lookup(RELPATH, ino, S_IFREG | mode, fsize, 1); + expect_open(ino, 0, 1, fh); + /* This read is initiated by the mmap write */ + expect_read(ino, 0, fsize, fsize, fbuf, -1, fh); + /* This write flushes the buffer filled by the mmap write */ + expect_write(ino, 0, wsize, wsize, wbuf); + + EXPECT_CALL(*m_mock, process( + ResultOf([=](auto in) { + return (in.header.opcode == FUSE_COPY_FILE_RANGE && + (off_t)in.body.copy_file_range.off_in == offset2_in && + (off_t)in.body.copy_file_range.off_out == offset2_out && + in.body.copy_file_range.len == copysize + ); + }, Eq(true)), + _) + ).WillOnce(Invoke(ReturnImmediate([&](auto in __unused, auto& out) { + SET_OUT_HEADER_LEN(out, write); + out.body.write.size = copysize; + }))); + + fd = open(FULLPATH, O_RDWR); + + /* First, write some data via mmap */ + p = mmap(NULL, wsize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + ASSERT_NE(MAP_FAILED, p) << strerror(errno); + memmove((uint8_t*)p, wbuf, wsize); + ASSERT_EQ(0, munmap(p, wsize)) << strerror(errno); + + /* + * Then copy it around the file via copy_file_range. This should + * trigger a FUSE_WRITE to flush the pages written by mmap. + */ + r = copy_file_range(fd, &offset2_in, fd, &offset2_out, copysize, 0); + ASSERT_EQ(copysize, (size_t)r) << strerror(errno); + + free(wbuf); + free(fbuf); +} + + /* * copy_file_range should send SIGXFSZ and return EFBIG when the operation * would exceed the limit imposed by RLIMIT_FSIZE. diff --git a/tests/sys/fs/fusefs/io.cc b/tests/sys/fs/fusefs/io.cc index fda13a72cc4c..357772c31c2c 100644 --- a/tests/sys/fs/fusefs/io.cc +++ b/tests/sys/fs/fusefs/io.cc @@ -73,7 +73,7 @@ static void compare(const void *tbuf, const void *controlbuf, off_t baseofs, } } -typedef tuple IoParam; +typedef tuple IoParam; class Io: public FuseTest, public WithParamInterface { public: @@ -112,6 +112,7 @@ void SetUp() default: FAIL() << "Unknown cache mode"; } + m_kernel_minor_version = get<3>(GetParam()); m_noatime = true; // To prevent SETATTR for atime on close FuseTest::SetUp(); @@ -120,9 +121,10 @@ void SetUp() if (verbosity > 0) { printf("Test Parameters: init_flags=%#x maxwrite=%#x " - "%sasync cache=%s\n", + "%sasync cache=%s kernel_minor_version=%d\n", m_init_flags, m_maxwrite, m_async? "" : "no", - cache_mode_to_s(get<2>(GetParam()))); + cache_mode_to_s(get<2>(GetParam())), + m_kernel_minor_version); } expect_lookup(RELPATH, ino, S_IFREG | 0644, 0, 1); @@ -195,6 +197,30 @@ void SetUp() }, Eq(true)), _) ).WillRepeatedly(Invoke(ReturnErrno(0))); + EXPECT_CALL(*m_mock, process( + ResultOf([=](auto in) { + return (in.header.opcode == FUSE_COPY_FILE_RANGE && + in.header.nodeid == ino && + in.body.copy_file_range.nodeid_out == ino && + in.body.copy_file_range.flags == 0); + }, Eq(true)), + _) + ).WillRepeatedly(Invoke(ReturnImmediate([=](auto in, auto& out) { + off_t off_in = in.body.copy_file_range.off_in; + off_t off_out = in.body.copy_file_range.off_out; + ASSERT_EQ((ssize_t)in.body.copy_file_range.len, + copy_file_range(m_backing_fd, &off_in, m_backing_fd, + &off_out, in.body.copy_file_range.len, 0)); + SET_OUT_HEADER_LEN(out, write); + out.body.write.size = in.body.copy_file_range.len; + }))); + /* Claim that we don't support FUSE_LSEEK */ + EXPECT_CALL(*m_mock, process( + ResultOf([=](auto in) { + return (in.header.opcode == FUSE_LSEEK); + }, Eq(true)), + _) + ).WillRepeatedly(Invoke(ReturnErrno(ENOSYS))); m_test_fd = open(FULLPATH, O_RDWR ); EXPECT_LE(0, m_test_fd) << strerror(errno); @@ -223,6 +249,31 @@ void do_closeopen() ASSERT_LE(0, m_control_fd) << strerror(errno); } +void do_copy_file_range(off_t off_in, off_t off_out, size_t size) +{ + ssize_t r; + off_t test_off_in = off_in; + off_t test_off_out = off_out; + off_t test_size = size; + off_t control_off_in = off_in; + off_t control_off_out = off_out; + off_t control_size = size; + + while (test_size > 0) { + r = copy_file_range(m_test_fd, &test_off_in, m_test_fd, + &test_off_out, test_size, 0); + ASSERT_GT(r, 0) << strerror(errno); + test_size -= r; + } + while (control_size > 0) { + r = copy_file_range(m_control_fd, &control_off_in, m_control_fd, + &control_off_out, control_size, 0); + ASSERT_GT(r, 0) << strerror(errno); + control_size -= r; + } + m_filesize = std::max(m_filesize, off_out + (off_t)size); +} + void do_ftruncate(off_t offs) { ASSERT_EQ(0, ftruncate(m_test_fd, offs)) << strerror(errno); @@ -345,6 +396,13 @@ virtual void SetUp() { } }; +class IoCopyFileRange: public Io { +public: +virtual void SetUp() { + Io::SetUp(); +} +}; + /* * Extend a file with dirty data in the last page of the last block. * @@ -517,16 +575,38 @@ TEST_P(IoCacheable, vnode_pager_generic_putpage_clean_block_at_eof) do_mapwrite(0x1bbc3, 0x3b4e0); } +/* + * A copy_file_range that follows an mmap write to the input area needs to + * flush the mmap buffer first. + */ +TEST_P(IoCopyFileRange, copy_file_range_from_mapped_write) +{ + do_mapwrite(0x1000, 0); + do_copy_file_range(0, 0x1000, 0x1000); + do_read(0x1000, 0x1000); +} + + INSTANTIATE_TEST_SUITE_P(Io, Io, Combine(Bool(), /* async read */ Values(0x1000, 0x10000, 0x20000), /* m_maxwrite */ - Values(Uncached, Writethrough, Writeback, WritebackAsync) + Values(Uncached, Writethrough, Writeback, WritebackAsync), + Values(28) /* kernel_minor_vers */ ) ); INSTANTIATE_TEST_SUITE_P(Io, IoCacheable, Combine(Bool(), /* async read */ Values(0x1000, 0x10000, 0x20000), /* m_maxwrite */ - Values(Writethrough, Writeback, WritebackAsync) + Values(Writethrough, Writeback, WritebackAsync), + Values(28) /* kernel_minor_vers */ + ) +); + +INSTANTIATE_TEST_SUITE_P(Io, IoCopyFileRange, + Combine(Values(true), /* async read */ + Values(0x10000), /* m_maxwrite */ + Values(Writethrough, Writeback, WritebackAsync), + Values(27, 28) /* kernel_minor_vers */ ) ); From nobody Mon Feb 12 17:43: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 4TYWz66G48z5BDYy; Mon, 12 Feb 2024 17:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYWz64K0Bz4V8F; Mon, 12 Feb 2024 17:43:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2RNzQlvvA0St5Cq5EXdoAYXM7cDn1IOGJZjc1V2nmHc=; b=Zzg/mU0JunRqHhwXWZUDd9x1POaCjtDCeVqstXYQpfH5A3C5agjJt72gMx296YZrqSbuAy yK1XNiOhDCv/XbSh0/GMpN0w2A8PPtiMUmg0Q0OqMS1Sk81OqRS/UWCKP2M9R23iEljU93 +eAQTOEPl8yPmzUxzJfC7QqAucXXCVuA4LgDNtjOpMpoTXh2DM1dqKTMj/kJB04Vqc3Cak pSfFFRaLMSIPb7eE5sKcCidLM1CMPaeU7NZQa8+X5UjnLOabcH/OOgo6Ig2buiBsdcer/W +coOH2ft2jP/6YL+twkLmgz2Teku04PjutsImRchkCC7Eq+sxJ8qfzew2CMZoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707759826; a=rsa-sha256; cv=none; b=ho5cC27vBVqlmgS4q/S6CV8W2/0hR2FTskNnq1qw3Wa6NUK8HdHTmkq7R0GLWq5Ha99u9M CuhRT9swhirPwygVOLazSJZVl3997BlD604Vu22QUuNhVT2MsGkj6ceeZaRIa4KOfP9p14 qMd8vXdKLD+mUwhyYopaOd1UdE+T0YP2jzTnn5gW5W3HYF7PWW2HHUtYXbwnrlFQF1YZP6 m+OZbbaZrkvf0GS3ZgIlsMPZMYSM/w8EoFKVDAD/Jw7rXc+rvaG4jlK/z6eXNX1H7OEOKY VabEMFqAxHUzREeiAyC9xRFW6/dWjq/ElSj03gypZMoymUbGhXA3rzxpa5iD4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2RNzQlvvA0St5Cq5EXdoAYXM7cDn1IOGJZjc1V2nmHc=; b=i5/1fSRNMokjug+pr7MKgzvtQO03WWsUGOhAwFqSSOJSO9HaO3ycm2lXUx16Ky1VvKtbzD BRPSMy5cxTZizdDZPfepWabS4r74iT0IymaiacLJdjBNu3xw1U90RSd4Ftprb8B/but5/7 tNckeKJK4MwInP5Vzs8jUeGQyc3V4w84MzxxVHW4H3sTBm4tfRFISeUTg0c93hAo2M900o ZXom7PSDNY0WsO9kv6Ia8ZRByDQKGyO/nC0NxH0TEu0MIsl6fpuXic94STKhkU5jXmkSkV FXnLhoPKUuVsH0V/IPvgFSIoUhOF1fgjbV9/bQYq1cChRNbRN9LQzZ5ePVkNGg== 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 4TYWz63PYtzhFx; Mon, 12 Feb 2024 17:43:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CHhkM6012221; Mon, 12 Feb 2024 17:43:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CHhkrO012218; Mon, 12 Feb 2024 17:43:46 GMT (envelope-from git) Date: Mon, 12 Feb 2024 17:43:46 GMT Message-Id: <202402121743.41CHhkrO012218@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 31c31be71624 - stable/14 - fusefs: more consistent operand ordering in io.cc 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 31c31be71624ce743fd0474929dbecec39dc125b Auto-Submitted: auto-generated The branch stable/14 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=31c31be71624ce743fd0474929dbecec39dc125b commit 31c31be71624ce743fd0474929dbecec39dc125b Author: Alan Somers AuthorDate: 2024-01-15 23:16:40 +0000 Commit: Alan Somers CommitDate: 2024-02-12 17:42:57 +0000 fusefs: more consistent operand ordering in io.cc (cherry picked from commit daf26f9350cf8fb3ae60d4528b60ddf65a56f5cc) --- tests/sys/fs/fusefs/io.cc | 54 +++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/tests/sys/fs/fusefs/io.cc b/tests/sys/fs/fusefs/io.cc index 357772c31c2c..283b601c9e87 100644 --- a/tests/sys/fs/fusefs/io.cc +++ b/tests/sys/fs/fusefs/io.cc @@ -281,7 +281,7 @@ void do_ftruncate(off_t offs) m_filesize = offs; } -void do_mapread(ssize_t size, off_t offs) +void do_mapread(off_t offs, ssize_t size) { void *control_buf, *p; off_t pg_offset, page_mask; @@ -307,7 +307,7 @@ void do_mapread(ssize_t size, off_t offs) free(control_buf); } -void do_read(ssize_t size, off_t offs) +void do_read(off_t offs, ssize_t size) { void *test_buf, *control_buf; ssize_t r; @@ -331,7 +331,7 @@ void do_read(ssize_t size, off_t offs) free(test_buf); } -void do_mapwrite(ssize_t size, off_t offs) +void do_mapwrite(off_t offs, ssize_t size) { char *buf; void *p; @@ -368,7 +368,7 @@ void do_mapwrite(ssize_t size, off_t offs) ASSERT_EQ(0, munmap(p, map_size)) << strerror(errno); } -void do_write(ssize_t size, off_t offs) +void do_write(off_t offs, ssize_t size) { char *buf; long i; @@ -416,9 +416,9 @@ TEST_P(Io, extend_from_dirty_page) ssize_t rsize = 0x9b22; off_t truncsize = 0x28702; - do_write(wsize, wofs); + do_write(wofs, wsize); do_ftruncate(truncsize); - do_read(rsize, rofs); + do_read(rofs, rsize); } /* @@ -428,9 +428,9 @@ TEST_P(Io, extend_from_dirty_page) */ TEST_P(IoCacheable, extend_by_mapwrite) { - do_mapwrite(0x849e, 0x29a3a); /* [0x29a3a, 0x31ed7] */ - do_mapwrite(0x3994, 0x3c7d8); /* [0x3c7d8, 0x4016b] */ - do_read(0xf556, 0x30c16); /* [0x30c16, 0x4016b] */ + do_mapwrite(0x29a3a, 0x849e); /* [0x29a3a, 0x31ed7] */ + do_mapwrite(0x3c7d8, 0x3994); /* [0x3c7d8, 0x4016b] */ + do_read(0x30c16, 0xf556); /* [0x30c16, 0x4016b] */ } /* @@ -442,9 +442,9 @@ TEST_P(IoCacheable, extend_by_mapwrite) */ TEST_P(Io, last_page) { - do_write(0xcc77, 0x1134f); /* [0x1134f, 0x1dfc5] */ - do_write(0xdfa7, 0x2096a); /* [0x2096a, 0x2e910] */ - do_read(0xb5b7, 0x1a3aa); /* [0x1a3aa, 0x25960] */ + do_write(0x1134f, 0xcc77); /* [0x1134f, 0x1dfc5] */ + do_write(0x2096a, 0xdfa7); /* [0x2096a, 0x2e910] */ + do_read(0x1a3aa, 0xb5b7); /* [0x1a3aa, 0x25960] */ } /* @@ -454,8 +454,8 @@ TEST_P(Io, last_page) */ TEST_P(IoCacheable, mapread_hole) { - do_write(0x123b7, 0xf205); /* [0xf205, 0x215bb] */ - do_mapread(0xeeea, 0x2f4c); /* [0x2f4c, 0x11e35] */ + do_write(0xf205, 0x123b7); /* [0xf205, 0x215bb] */ + do_mapread(0x2f4c, 0xeeea); /* [0x2f4c, 0x11e35] */ } /* @@ -470,8 +470,8 @@ TEST_P(Io, read_hole_from_cached_block) off_t rofs = 0x472e; ssize_t rsize = 0xd8d5; - do_write(wsize, wofs); - do_read(rsize, rofs); + do_write(wofs, wsize); + do_read(rofs, rsize); } /* @@ -491,10 +491,10 @@ TEST_P(Io, truncate_into_dirty_buffer) ssize_t rsize = 0x29ff; off_t truncsize1 = 0x152b4; - do_write(wsize0, wofs0); - do_write(wsize1, wofs1); + do_write(wofs0, wsize0); + do_write(wofs1, wsize1); do_ftruncate(truncsize0); - do_read(rsize, rofs); + do_read(rofs, rsize); do_ftruncate(truncsize1); close(m_test_fd); } @@ -523,11 +523,11 @@ TEST_P(Io, truncate_into_dirty_buffer2) * Creates a dirty buffer. The part in lbn 2 doesn't flush * synchronously. */ - do_write(wsize, wofs); + do_write(wofs, wsize); /* Truncates part of the dirty buffer created in step 2 */ do_ftruncate(truncsize1); /* XXX ?I don't know why this is necessary? */ - do_read(rsize2, rofs2); + do_read(rofs2, rsize2); /* Truncates the dirty buffer */ do_ftruncate(truncsize2); close(m_test_fd); @@ -558,10 +558,10 @@ TEST_P(Io, truncate_into_dirty_buffer2) */ TEST_P(Io, resize_a_valid_buffer_while_extending) { - do_write(0x14530, 0x36ee6); /* [0x36ee6, 0x4b415] */ - do_write(0x1507c, 0x33256); /* [0x33256, 0x482d1] */ - do_write(0x175c, 0x4c03d); /* [0x4c03d, 0x4d798] */ - do_read(0xe277, 0x3599c); /* [0x3599c, 0x43c12] */ + do_write(0x36ee6, 0x14530); /* [0x36ee6, 0x4b415] */ + do_write(0x33256, 0x1507c); /* [0x33256, 0x482d1] */ + do_write(0x4c03d, 0x175c); /* [0x4c03d, 0x4d798] */ + do_read(0x3599c, 0xe277); /* [0x3599c, 0x43c12] */ close(m_test_fd); } @@ -572,7 +572,7 @@ TEST_P(Io, resize_a_valid_buffer_while_extending) */ TEST_P(IoCacheable, vnode_pager_generic_putpage_clean_block_at_eof) { - do_mapwrite(0x1bbc3, 0x3b4e0); + do_mapwrite(0x3b4e0, 0x1bbc3); } /* @@ -581,7 +581,7 @@ TEST_P(IoCacheable, vnode_pager_generic_putpage_clean_block_at_eof) */ TEST_P(IoCopyFileRange, copy_file_range_from_mapped_write) { - do_mapwrite(0x1000, 0); + do_mapwrite(0, 0x1000); do_copy_file_range(0, 0x1000, 0x1000); do_read(0x1000, 0x1000); } From nobody Mon Feb 12 17:43: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 4TYWz76HQqz5BD4w; Mon, 12 Feb 2024 17:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYWz74fqDz4VRn; Mon, 12 Feb 2024 17:43:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jGjZjy8Ko+TJvY9JYgI7BsB7mRvupDfKd87EZzwzFjo=; b=jpzh8Enj/76s868djONXsKB5/sHQp77dIEuxyF/kH4qp+NQ1bhYyWe1Lo2XLB+MocJ48Zn RgtfXIf78nIAMxWD5AlfQeYCYP1fBcuYaXOmCQdXQ/RNB84EUFp9NXRqt0Zp4nR0bF/YGX FVn+V73H0DartiNTKfj9Npf/w1HgNTg5AarzlbqvQ+TH7hG976u/x2htx47hj4xmqMkiv3 1fm/jKVInDUVNCDQz3VW+bSVGgUCGABWviYGSZHoqKrHz/KzefcJGz/O8UzHPT4uiQkw46 zWtCTx2VtkjTdB1isYJAgKBJJq0e8XDs+weQYG4ZsH6OcCLAXcYIGD5Q8WpZiQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707759827; a=rsa-sha256; cv=none; b=iROnnT9VP8KEYkR42U2QldSavUlcDcEeKMXgtJPwlA/W6/2KKVFn7gbJpNyoQOrhfY88CL MaPxzx00QRyqM6M6rUdY7hYaYdXyTWL5ptxWSHymdy8iMykosfIHYVRuri/rO9Sud9FrWW bamKL6kWGEDSfaQiSpJC1A/QxEt51Ff+wRnFWqoBizZ+eBJVwiqYafU1gcn/KXuyYEyrno V7vMKSDq7+XfFQyug1MzlIc3xTXy1sEGJeAfF1H39z/nobkqmVQnxbiCMX+PRiOOpHd55A RW2OFOyu0I0I5StjN3kzvGVdrAv0J8ME6jVNd6wwI0wdlW82WAo/iNLKnwcGvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jGjZjy8Ko+TJvY9JYgI7BsB7mRvupDfKd87EZzwzFjo=; b=H0QmPgO1XrdaOVQZ77pjbHHidK7GOHU4SASiOKETMcZMTwD6Xz1hF/9sn5vVfLS1u6XSB6 PyOCg3n6XRWsMiqzJtoNro/50fYUVeqQ3+uafPKMXNMDZKnK710FECjuvhLZpCjTNL0ixl gQMsdrMPXzDFnanb5QJhS30/nm+X9k0A8i3G20OzrEa2K6zS7M/FV0BHsF+hMVIWCiRdDE NsV23j1kW0K8d/Bl5vGAzf1W83EtrrEzzw7AaPev1eQofwrB6dEhq7FuvJUwrVXx5WxCXs iGBV8hHZAy/1AslNF1Aeld05Gt3tg433QEWXoGtQzPWx8ihxASxNBRTDJYkKoQ== 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 4TYWz73l0Vzh4V; Mon, 12 Feb 2024 17:43:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CHhlMx012265; Mon, 12 Feb 2024 17:43:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CHhlEP012262; Mon, 12 Feb 2024 17:43:47 GMT (envelope-from git) Date: Mon, 12 Feb 2024 17:43:47 GMT Message-Id: <202402121743.41CHhlEP012262@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 8510b8fe2abc - stable/14 - fusefs: prefer new/delete over malloc/free 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 8510b8fe2abcae696aefda394b3bcc1368c266e0 Auto-Submitted: auto-generated The branch stable/14 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=8510b8fe2abcae696aefda394b3bcc1368c266e0 commit 8510b8fe2abcae696aefda394b3bcc1368c266e0 Author: Alan Somers AuthorDate: 2024-01-15 23:49:47 +0000 Commit: Alan Somers CommitDate: 2024-02-12 17:43:03 +0000 fusefs: prefer new/delete over malloc/free Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D43464 (cherry picked from commit 8bae22bbbe6571da9259e0d43ffa8a56f4b3e171) --- tests/sys/fs/fusefs/bmap.cc | 5 +- tests/sys/fs/fusefs/copy_file_range.cc | 22 ++++---- tests/sys/fs/fusefs/fallocate.cc | 6 +-- tests/sys/fs/fusefs/io.cc | 30 +++++------ tests/sys/fs/fusefs/read.cc | 14 +++-- tests/sys/fs/fusefs/setattr.cc | 23 ++++----- tests/sys/fs/fusefs/write.cc | 94 +++++++++++++++------------------- 7 files changed, 85 insertions(+), 109 deletions(-) diff --git a/tests/sys/fs/fusefs/bmap.cc b/tests/sys/fs/fusefs/bmap.cc index 1ef3dfa00045..4c9edac9360a 100644 --- a/tests/sys/fs/fusefs/bmap.cc +++ b/tests/sys/fs/fusefs/bmap.cc @@ -188,7 +188,7 @@ TEST_P(BmapEof, eof) const off_t filesize = 2 * m_maxbcachebuf; const ino_t ino = 42; mode_t mode = S_IFREG | 0644; - void *buf; + char *buf; int fd; int ngetattrs; @@ -243,11 +243,12 @@ TEST_P(BmapEof, eof) out.body.attr.attr.size = filesize / 2; }))); - buf = calloc(1, filesize); + buf = new char[filesize](); fd = open(FULLPATH, O_RDWR); ASSERT_LE(0, fd) << strerror(errno); read(fd, buf, filesize); + delete[] buf; leak(fd); } diff --git a/tests/sys/fs/fusefs/copy_file_range.cc b/tests/sys/fs/fusefs/copy_file_range.cc index 17b21b888736..806ecf3c3653 100644 --- a/tests/sys/fs/fusefs/copy_file_range.cc +++ b/tests/sys/fs/fusefs/copy_file_range.cc @@ -197,7 +197,7 @@ TEST_F(CopyFileRange, evicts_cache) const char RELPATH1[] = "src.txt"; const char FULLPATH2[] = "mountpoint/dst.txt"; const char RELPATH2[] = "dst.txt"; - void *buf0, *buf1, *buf; + char *buf0, *buf1, *buf; const uint64_t ino1 = 42; const uint64_t ino2 = 43; const uint64_t fh1 = 0xdeadbeef1a7ebabe; @@ -209,7 +209,7 @@ TEST_F(CopyFileRange, evicts_cache) ssize_t len = m_maxbcachebuf; int fd1, fd2; - buf0 = malloc(m_maxbcachebuf); + buf0 = new char[m_maxbcachebuf]; memset(buf0, 42, m_maxbcachebuf); expect_lookup(RELPATH1, ino1, S_IFREG | 0644, fsize1, 1); @@ -240,7 +240,7 @@ TEST_F(CopyFileRange, evicts_cache) fd2 = open(FULLPATH2, O_RDWR); // Prime cache - buf = malloc(m_maxbcachebuf); + buf = new char[m_maxbcachebuf]; ASSERT_EQ(m_maxbcachebuf, pread(fd2, buf, m_maxbcachebuf, start2)) << strerror(errno); EXPECT_EQ(0, memcmp(buf0, buf, m_maxbcachebuf)); @@ -249,7 +249,7 @@ TEST_F(CopyFileRange, evicts_cache) ASSERT_EQ(len, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); // Read again. This should bypass the cache and read direct from server - buf1 = malloc(m_maxbcachebuf); + buf1 = new char[m_maxbcachebuf]; memset(buf1, 69, m_maxbcachebuf); start2 -= len; expect_read(ino2, start2, m_maxbcachebuf, m_maxbcachebuf, buf1, -1, @@ -258,9 +258,9 @@ TEST_F(CopyFileRange, evicts_cache) << strerror(errno); EXPECT_EQ(0, memcmp(buf1, buf, m_maxbcachebuf)); - free(buf1); - free(buf0); - free(buf); + delete[] buf1; + delete[] buf0; + delete[] buf; leak(fd1); leak(fd2); } @@ -343,8 +343,8 @@ TEST_F(CopyFileRange, mmap_write) int fd; const mode_t mode = 0644; - fbuf = (uint8_t*)calloc(1, fsize); - wbuf = (uint8_t*)malloc(wsize); + fbuf = new uint8_t[fsize](); + wbuf = new uint8_t[wsize]; memset(wbuf, 1, wsize); expect_lookup(RELPATH, ino, S_IFREG | mode, fsize, 1); @@ -383,8 +383,8 @@ TEST_F(CopyFileRange, mmap_write) r = copy_file_range(fd, &offset2_in, fd, &offset2_out, copysize, 0); ASSERT_EQ(copysize, (size_t)r) << strerror(errno); - free(wbuf); - free(fbuf); + delete[] wbuf; + delete[] fbuf; } diff --git a/tests/sys/fs/fusefs/fallocate.cc b/tests/sys/fs/fusefs/fallocate.cc index 251552ddc8d0..92e327be5ade 100644 --- a/tests/sys/fs/fusefs/fallocate.cc +++ b/tests/sys/fs/fusefs/fallocate.cc @@ -415,14 +415,14 @@ TEST_F(Fspacectl_7_18, ok) const char FULLPATH[] = "mountpoint/some_file.txt"; const char RELPATH[] = "some_file.txt"; struct spacectl_range rqsr, rmsr; - void *buf; + char *buf; uint64_t ino = 42; uint64_t fsize = 2000; uint64_t offset = 500; uint64_t length = 1000; int fd; - buf = malloc(length); + buf = new char[length]; expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); expect_open(ino, 0, 1); @@ -437,7 +437,7 @@ TEST_F(Fspacectl_7_18, ok) EXPECT_EQ((off_t)(offset + length), rmsr.r_offset); leak(fd); - free(buf); + delete[] buf; } /* diff --git a/tests/sys/fs/fusefs/io.cc b/tests/sys/fs/fusefs/io.cc index 283b601c9e87..99b5eae34e09 100644 --- a/tests/sys/fs/fusefs/io.cc +++ b/tests/sys/fs/fusefs/io.cc @@ -283,7 +283,8 @@ void do_ftruncate(off_t offs) void do_mapread(off_t offs, ssize_t size) { - void *control_buf, *p; + char *control_buf; + void *p; off_t pg_offset, page_mask; size_t map_size; @@ -295,8 +296,7 @@ void do_mapread(off_t offs, ssize_t size) offs - pg_offset); ASSERT_NE(p, MAP_FAILED) << strerror(errno); - control_buf = malloc(size); - ASSERT_NE(nullptr, control_buf) << strerror(errno); + control_buf = new char[size]; ASSERT_EQ(size, pread(m_control_fd, control_buf, size, offs)) << strerror(errno); @@ -304,18 +304,16 @@ void do_mapread(off_t offs, ssize_t size) compare((void*)((char*)p + pg_offset), control_buf, offs, size); ASSERT_EQ(0, munmap(p, map_size)) << strerror(errno); - free(control_buf); + delete[] control_buf; } void do_read(off_t offs, ssize_t size) { - void *test_buf, *control_buf; + char *test_buf, *control_buf; ssize_t r; - test_buf = malloc(size); - ASSERT_NE(nullptr, test_buf) << strerror(errno); - control_buf = malloc(size); - ASSERT_NE(nullptr, control_buf) << strerror(errno); + test_buf = new char[size]; + control_buf = new char[size]; errno = 0; r = pread(m_test_fd, test_buf, size, offs); @@ -327,8 +325,8 @@ void do_read(off_t offs, ssize_t size) compare(test_buf, control_buf, offs, size); - free(control_buf); - free(test_buf); + delete[] control_buf; + delete[] test_buf; } void do_mapwrite(off_t offs, ssize_t size) @@ -343,8 +341,7 @@ void do_mapwrite(off_t offs, ssize_t size) pg_offset = offs & page_mask; map_size = pg_offset + size; - buf = (char*)malloc(size); - ASSERT_NE(nullptr, buf) << strerror(errno); + buf = new char[size]; for (i=0; i < size; i++) buf[i] = random(); @@ -364,7 +361,7 @@ void do_mapwrite(off_t offs, ssize_t size) ASSERT_EQ(size, pwrite(m_control_fd, buf, size, offs)) << strerror(errno); - free(buf); + delete[] buf; ASSERT_EQ(0, munmap(p, map_size)) << strerror(errno); } @@ -373,8 +370,7 @@ void do_write(off_t offs, ssize_t size) char *buf; long i; - buf = (char*)malloc(size); - ASSERT_NE(nullptr, buf) << strerror(errno); + buf = new char[size]; for (i=0; i < size; i++) buf[i] = random(); @@ -384,7 +380,7 @@ void do_write(off_t offs, ssize_t size) << strerror(errno); m_filesize = std::max(m_filesize, offs + size); - free(buf); + delete[] buf; } }; diff --git a/tests/sys/fs/fusefs/read.cc b/tests/sys/fs/fusefs/read.cc index 3df0420facb9..373f742d4fd3 100644 --- a/tests/sys/fs/fusefs/read.cc +++ b/tests/sys/fs/fusefs/read.cc @@ -1216,8 +1216,7 @@ TEST_F(Read, cache_block) char buf[bufsize]; const char *contents1 = CONTENTS0 + bufsize; - contents = (char*)calloc(1, filesize); - ASSERT_NE(nullptr, contents); + contents = new char[filesize](); memmove(contents, CONTENTS0, strlen(CONTENTS0)); expect_lookup(RELPATH, ino, filesize); @@ -1235,7 +1234,7 @@ TEST_F(Read, cache_block) ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno); ASSERT_EQ(0, memcmp(buf, contents1, bufsize)); leak(fd); - free(contents); + delete[] contents; } /* Reading with sendfile should work (though it obviously won't be 0-copy) */ @@ -1332,10 +1331,9 @@ TEST_P(ReadAhead, readahead) { char *rbuf, *contents; off_t offs; - contents = (char*)malloc(filesize); - ASSERT_NE(nullptr, contents); + contents = new char[filesize]; memset(contents, 'X', filesize); - rbuf = (char*)calloc(1, bufsize); + rbuf = new char[bufsize](); expect_lookup(RELPATH, ino, filesize); expect_open(ino, 0, 1); @@ -1357,8 +1355,8 @@ TEST_P(ReadAhead, readahead) { ASSERT_EQ(0, memcmp(rbuf, contents, bufsize)); leak(fd); - free(rbuf); - free(contents); + delete[] rbuf; + delete[] contents; } INSTANTIATE_TEST_SUITE_P(RA, ReadAhead, diff --git a/tests/sys/fs/fusefs/setattr.cc b/tests/sys/fs/fusefs/setattr.cc index 2502286c3f03..79559db33b12 100644 --- a/tests/sys/fs/fusefs/setattr.cc +++ b/tests/sys/fs/fusefs/setattr.cc @@ -448,7 +448,7 @@ TEST_F(Setattr, truncate) { TEST_F(Setattr, truncate_discards_cached_data) { const char FULLPATH[] = "mountpoint/some_file.txt"; const char RELPATH[] = "some_file.txt"; - void *w0buf, *r0buf, *r1buf, *expected; + char *w0buf, *r0buf, *r1buf, *expected; off_t w0_offset = 0; size_t w0_size = 0x30000; off_t r0_offset = 0; @@ -463,18 +463,13 @@ TEST_F(Setattr, truncate_discards_cached_data) { int fd, r; bool should_have_data = false; - w0buf = malloc(w0_size); - ASSERT_NE(nullptr, w0buf) << strerror(errno); + w0buf = new char[w0_size]; memset(w0buf, 'X', w0_size); - r0buf = malloc(r0_size); - ASSERT_NE(nullptr, r0buf) << strerror(errno); - r1buf = malloc(r1_size); - ASSERT_NE(nullptr, r1buf) << strerror(errno); + r0buf = new char[r0_size]; + r1buf = new char[r1_size]; - expected = malloc(r1_size); - ASSERT_NE(nullptr, expected) << strerror(errno); - memset(expected, 0, r1_size); + expected = new char[r1_size](); expect_lookup(RELPATH, ino, mode, 0, 1); expect_open(ino, O_RDWR, 1); @@ -558,10 +553,10 @@ TEST_F(Setattr, truncate_discards_cached_data) { r = memcmp(expected, r1buf, r1_size); ASSERT_EQ(0, r); - free(expected); - free(r1buf); - free(r0buf); - free(w0buf); + delete[] expected; + delete[] r1buf; + delete[] r0buf; + delete[] w0buf; leak(fd); } diff --git a/tests/sys/fs/fusefs/write.cc b/tests/sys/fs/fusefs/write.cc index 1fb9de70ec6c..f931f350a7c3 100644 --- a/tests/sys/fs/fusefs/write.cc +++ b/tests/sys/fs/fusefs/write.cc @@ -311,10 +311,8 @@ TEST_F(Write, append_to_cached) uint64_t oldsize = m_maxbcachebuf / 2; int fd; - oldcontents = (char*)calloc(1, oldsize); - ASSERT_NE(nullptr, oldcontents) << strerror(errno); - oldbuf = (char*)malloc(oldsize); - ASSERT_NE(nullptr, oldbuf) << strerror(errno); + oldcontents = new char[oldsize](); + oldbuf = new char[oldsize]; expect_lookup(RELPATH, ino, oldsize); expect_open(ino, 0, 1); @@ -332,8 +330,8 @@ TEST_F(Write, append_to_cached) /* Write the new data. There should be no more read operations */ ASSERT_EQ(BUFSIZE, write(fd, CONTENTS, BUFSIZE)) << strerror(errno); leak(fd); - free(oldbuf); - free(oldcontents); + delete[] oldbuf; + delete[] oldcontents; } TEST_F(Write, append_direct_io) @@ -659,7 +657,7 @@ TEST_P(WriteEofDuringVnopStrategy, eof_during_vop_strategy) const char RELPATH[] = "some_file.txt"; Sequence seq; const off_t filesize = 2 * m_maxbcachebuf; - void *contents; + char *contents; uint64_t ino = 42; uint64_t attr_valid = 0; uint64_t attr_valid_nsec = 0; @@ -668,7 +666,7 @@ TEST_P(WriteEofDuringVnopStrategy, eof_during_vop_strategy) int ngetattrs; ngetattrs = GetParam(); - contents = calloc(1, filesize); + contents = new char[filesize](); EXPECT_LOOKUP(FUSE_ROOT_ID, RELPATH) .WillRepeatedly(Invoke( @@ -742,14 +740,12 @@ TEST_F(Write, mmap) void *p; uint64_t offset = 10; size_t len; - void *zeros, *expected; + char *zeros, *expected; len = getpagesize(); - zeros = calloc(1, len); - ASSERT_NE(nullptr, zeros); - expected = calloc(1, len); - ASSERT_NE(nullptr, expected); + zeros = new char[len](); + expected = new char[len](); memmove((uint8_t*)expected + offset, CONTENTS, bufsize); expect_lookup(RELPATH, ino, len); @@ -774,8 +770,8 @@ TEST_F(Write, mmap) ASSERT_EQ(0, munmap(p, len)) << strerror(errno); close(fd); // Write mmap'd data on close - free(expected); - free(zeros); + delete[] expected; + delete[] zeros; leak(fd); } @@ -867,8 +863,7 @@ TEST_F(WriteMaxWrite, write) if (halfbufsize >= m_maxbcachebuf || halfbufsize >= m_maxphys) GTEST_SKIP() << "Must lower m_maxwrite for this test"; bufsize = halfbufsize * 2; - contents = (int*)malloc(bufsize); - ASSERT_NE(nullptr, contents); + contents = new int[bufsize / sizeof(int)]; for (int i = 0; i < (int)bufsize / (int)sizeof(i); i++) { contents[i] = i; } @@ -885,7 +880,7 @@ TEST_F(WriteMaxWrite, write) ASSERT_EQ(bufsize, write(fd, contents, bufsize)) << strerror(errno); leak(fd); - free(contents); + delete[] contents; } TEST_F(Write, write_nothing) @@ -966,15 +961,13 @@ TEST_F(WriteCluster, clustering) const char RELPATH[] = "some_file.txt"; uint64_t ino = 42; int i, fd; - void *wbuf, *wbuf2x; + char *wbuf, *wbuf2x; ssize_t bufsize = m_maxbcachebuf; off_t filesize = 5 * bufsize; - wbuf = malloc(bufsize); - ASSERT_NE(nullptr, wbuf) << strerror(errno); + wbuf = new char[bufsize]; memset(wbuf, 'X', bufsize); - wbuf2x = malloc(2 * bufsize); - ASSERT_NE(nullptr, wbuf2x) << strerror(errno); + wbuf2x = new char[2 * bufsize]; memset(wbuf2x, 'X', 2 * bufsize); expect_lookup(RELPATH, ino, filesize); @@ -997,8 +990,8 @@ TEST_F(WriteCluster, clustering) << strerror(errno); } close(fd); - free(wbuf2x); - free(wbuf); + delete[] wbuf2x; + delete[] wbuf; } /* @@ -1015,12 +1008,11 @@ TEST_F(WriteCluster, cluster_write_err) const char RELPATH[] = "some_file.txt"; uint64_t ino = 42; int i, fd; - void *wbuf; + char *wbuf; ssize_t bufsize = m_maxbcachebuf; off_t filesize = 4 * bufsize; - wbuf = malloc(bufsize); - ASSERT_NE(nullptr, wbuf) << strerror(errno); + wbuf = new char[bufsize]; memset(wbuf, 'X', bufsize); expect_lookup(RELPATH, ino, filesize); @@ -1042,7 +1034,7 @@ TEST_F(WriteCluster, cluster_write_err) << strerror(errno); } close(fd); - free(wbuf); + delete[] wbuf; } /* @@ -1179,11 +1171,11 @@ TEST_F(WriteBack, mmap_direct_io) int fd; size_t len; ssize_t bufsize = strlen(CONTENTS); - void *p, *zeros; + char *zeros; + void *p; len = getpagesize(); - zeros = calloc(1, len); - ASSERT_NE(nullptr, zeros); + zeros = new char[len](); expect_lookup(RELPATH, ino, len); expect_open(ino, FOPEN_DIRECT_IO, 1); @@ -1203,7 +1195,7 @@ TEST_F(WriteBack, mmap_direct_io) ASSERT_EQ(0, munmap(p, len)) << strerror(errno); close(fd); // Write mmap'd data on close - free(zeros); + delete[] zeros; } /* @@ -1252,10 +1244,9 @@ TEST_F(WriteBackAsync, direct_io_ignores_unrelated_cached) ssize_t bufsize = strlen(CONTENTS0) + 1; ssize_t fsize = 2 * m_maxbcachebuf; char readbuf[bufsize]; - void *zeros; + char *zeros; - zeros = calloc(1, m_maxbcachebuf); - ASSERT_NE(nullptr, zeros); + zeros = new char[m_maxbcachebuf](); expect_lookup(RELPATH, ino, fsize); expect_open(ino, 0, 1); @@ -1282,7 +1273,7 @@ TEST_F(WriteBackAsync, direct_io_ignores_unrelated_cached) ASSERT_STREQ(readbuf, CONTENTS0); leak(fd); - free(zeros); + delete[] zeros; } /* @@ -1298,20 +1289,15 @@ TEST_F(WriteBackAsync, direct_io_partially_overlaps_cached_block) int fd; off_t bs = m_maxbcachebuf; ssize_t fsize = 3 * bs; - void *readbuf, *zeros, *ones, *zeroones, *onezeros; - - readbuf = malloc(bs); - ASSERT_NE(nullptr, readbuf) << strerror(errno); - zeros = calloc(1, 3 * bs); - ASSERT_NE(nullptr, zeros); - ones = calloc(1, 2 * bs); - ASSERT_NE(nullptr, ones); + char *readbuf, *zeros, *ones, *zeroones, *onezeros; + + readbuf = new char[bs]; + zeros = new char[3 * bs](); + ones = new char[2 * bs]; memset(ones, 1, 2 * bs); - zeroones = calloc(1, bs); - ASSERT_NE(nullptr, zeroones); + zeroones = new char[bs](); memset((uint8_t*)zeroones + bs / 2, 1, bs / 2); - onezeros = calloc(1, bs); - ASSERT_NE(nullptr, onezeros); + onezeros = new char[bs](); memset(onezeros, 1, bs / 2); expect_lookup(RELPATH, ino, fsize); @@ -1356,11 +1342,11 @@ TEST_F(WriteBackAsync, direct_io_partially_overlaps_cached_block) EXPECT_EQ(0, memcmp(ones, readbuf, bs / 2)); leak(fd); - free(zeroones); - free(onezeros); - free(ones); - free(zeros); - free(readbuf); + delete[] zeroones; + delete[] onezeros; + delete[] ones; + delete[] zeros; + delete[] readbuf; } /* From nobody Mon Feb 12 17:43: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 4TYWz913S7z5BD7N; Mon, 12 Feb 2024 17:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYWz85hl5z4Vdp; Mon, 12 Feb 2024 17:43:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1ocQawsIivLG88C0IUnJnK4NTq/X6PqEXiD+hmI4Ju0=; b=mw9ZCdkrWKk9X0QxdT4rdB7/GfhNciPJIBFE6gILxkBPVqjVMwOiF8bIs6zGBiBpvliTId 6TbwrgjpXoyvmASowgY9DZrvPupFrx7DUsQW3VyLZmoBz6xhnqmPY9rGngPY5EVYVOeqF4 HcJiMiAUOCHQy6Zfifpn2oXler3iXYf3GrLv0PjAZLxdV4rkP34rPpxsBPoBVf9X73Zrex nh6kiUOOz6+NyVQEcpHyPD6ujF91zuQepLXFTV6Imtb9t0pnTpP49azpM03bXceFZ403ac +BXLm5yaqbNZOMgvYN4kkLk56+ELuecHasqCUZmNN8LnbAvKVzPKb86fjh9Lrw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707759828; a=rsa-sha256; cv=none; b=LGyVpchep0ErJkIP6nhZBwM/w/UJAttp/J/TqVbCltIOacUjt5hhCuNTxNb93S/Jhz0a8e GTn56WZNpTfKHnQTYrcj2R63gxWYjlTbj9wg5vbdZT7IpxqiQ0Zkqo+o09go3cOMt1W7uZ IoMDCgAdk+YhsjFfLKtQqq52n0YbQbLqK6xNdtft8qsDdVCpAPNKNPeF89yLZMTcKGEb07 z5WNLs597vEhHCSAlyXYsfUJHgTQcg0PCk6ItIt90GhkoFm3LVbLz8HR4Df099NDPhMZpM chL8isRPbc7NYWeZrPBbYbd2M3kqGIwnVIuAkXGsXXfkaVHTC1FUyE5nDD7opQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1ocQawsIivLG88C0IUnJnK4NTq/X6PqEXiD+hmI4Ju0=; b=IBUAcWqRI+PrMikD5KfbCKVqcvm5WUPvPMPI1+If5aTxj9hGsYLk4hoek31hMmcvcj0on+ l5VhSKHqhbLZaiwR0JXyObTcJdz4h1p8EQuEtGHOJyQnIUlJE9E3hI9MXoCciLUSIqCx+k LsYTbmUfsUhpuD0wVjkhYiu6IAdHXZugALUIzqsVwsrF4XgQL+7UQ1yo9gxiF42YRey5C0 x5kOd8yC1c7xiFtEJziFfsjdPvCybMfGtqrigSiZleHB3y6E1Yc+W0qOvopQj498xz1Icj iXvSGODMmNZO1D9H5wUjo4HmSI5CHl6v4mt3281DYrqxE70QX0szLFh2giLCqw== 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 4TYWz84nzNzh9N; Mon, 12 Feb 2024 17:43:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CHhmiu012318; Mon, 12 Feb 2024 17:43:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CHhm3v012315; Mon, 12 Feb 2024 17:43:48 GMT (envelope-from git) Date: Mon, 12 Feb 2024 17:43:48 GMT Message-Id: <202402121743.41CHhm3v012315@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 314a881fce0c - stable/14 - fusefs: fix some memory leaks in the 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 314a881fce0cd48ee4f67fb924432f53d4de0ea0 Auto-Submitted: auto-generated The branch stable/14 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=314a881fce0cd48ee4f67fb924432f53d4de0ea0 commit 314a881fce0cd48ee4f67fb924432f53d4de0ea0 Author: Alan Somers AuthorDate: 2024-01-17 21:13:05 +0000 Commit: Alan Somers CommitDate: 2024-02-12 17:43:07 +0000 fusefs: fix some memory leaks in the tests (cherry picked from commit 39f5d8dd1b2fea7cff0770efb0bc3d6e33e24279) --- tests/sys/fs/fusefs/fallocate.cc | 2 ++ tests/sys/fs/fusefs/mockfs.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/sys/fs/fusefs/fallocate.cc b/tests/sys/fs/fusefs/fallocate.cc index 92e327be5ade..ff5e3eb4f4bb 100644 --- a/tests/sys/fs/fusefs/fallocate.cc +++ b/tests/sys/fs/fusefs/fallocate.cc @@ -302,6 +302,7 @@ TEST_F(Fspacectl, erofs) build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); ASSERT_EQ(0, nmount(iov, iovlen, newflags)) << strerror(errno); + free_iovec(&iov, &iovlen); EXPECT_EQ(-1, fspacectl(fd, SPACECTL_DEALLOC, &rqsr, 0, NULL)); EXPECT_EQ(EROFS, errno); @@ -633,6 +634,7 @@ TEST_F(PosixFallocate, erofs) build_iovec(&iov, &iovlen, "fspath", (void*)statbuf.f_mntonname, -1); build_iovec(&iov, &iovlen, "from", __DECONST(void *, "/dev/fuse"), -1); ASSERT_EQ(0, nmount(iov, iovlen, newflags)) << strerror(errno); + free_iovec(&iov, &iovlen); EXPECT_EQ(EROFS, posix_fallocate(fd, offset, length)); diff --git a/tests/sys/fs/fusefs/mockfs.cc b/tests/sys/fs/fusefs/mockfs.cc index 92fc0c0d97a1..bd7bd1b663f9 100644 --- a/tests/sys/fs/fusefs/mockfs.cc +++ b/tests/sys/fs/fusefs/mockfs.cc @@ -521,6 +521,7 @@ MockFS::MockFS(int max_readahead, bool allow_other, bool default_permissions, if (nmount(iov, iovlen, 0)) throw(std::system_error(errno, std::system_category(), "Couldn't mount filesystem")); + free_iovec(&iov, &iovlen); // Setup default handler ON_CALL(*this, process(_, _)) From nobody Mon Feb 12 17:43:49 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 4TYWzB0qmqz5BDFk; Mon, 12 Feb 2024 17:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYWz96nmJz4Vdx; Mon, 12 Feb 2024 17:43:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U2+n8BJjXbB0TjdH3nHpwHsSCyGn3lVxm5R+bTx3RpE=; b=qrYcSg4Rm/93cqT7rIkD/a3Ksp1KXy1DJI4z/c1x+NfTHV/fsp9l0xPm8cQAgEt38Jq2La tHxO8dtEaz6c1xNluGe6czoUcWULWTzccvUiOjt0ZIyehZQCBrQpU0iM7AqndBjUyGu35f zW6/Q8ZOqWE2h9P64w2MgrtE/DD5uLVU0N2BSNiuUaRY9vLz1oNR3rckCpK1N1NsKALd0W uAisWYVcimhKdk1/AKY/Wa6ohmF/6Ua6OKCyn0MQgNc3g5FyAqG2qQit1Qw1EBwoZXP4tA qlRm3y0eBYV3TcoR7wksawam/UHqbOVKEy3XH1b5yXM1acDnWlKu0Yo/PSWfUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707759830; a=rsa-sha256; cv=none; b=P2A2dmcFtuCzbbfxqr0snR6i0DekXU7vgjt8ed7mFks6GZ9aYxYAlNUadiWubMu06PXuc1 ZOa/lytTloY15eb1RaI7Gx4n2OUUG7QUSQMUqLKdMDsShkMjLe7gRhXAEJkeRLcqrklgOD 5cnlN3UHoLBoBoWI46X4CJ4weZePSdE+GYiPZADXxuj5XvDRxmB3eeZwa3cG+Mn0krzlx+ 1h65Jqd0B0K/GRxbCUxTtGspB6U9YFj8E/+/yNMJTWTObBfBWtF2u/tXRpMH4wpiGYmWhD fTSu269aJR0lt+9BMP1Egkh6pCXLSCWiG8u/+E0uJmN9KPeKrsaxxZxm2SqqyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707759830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U2+n8BJjXbB0TjdH3nHpwHsSCyGn3lVxm5R+bTx3RpE=; b=uoWSeLn1fwTFDmO56ZCFoUYAe7xeMKAP4fgeDsl9NoT33x0WIuTsiEA7DubHBUGN4HhhsT waVCh8DbfztVMFvveuHO/AmJF6jDBhvkMDgd4M7dbsr2K+HGg66bfIznxp/Z1lrXYJ+/Rt JNKbPekzwmFE46uKvMJhHFZK8epDa0nivUcFiKDAiuKPOlCe1et+zZWEHLo67gWOpq479s VyhkLyfqYf7Ch/TVQefg2sbxeJTGaz+kl9ZnTmsIqPQ0lyn42uXtdJ9GtfMrAaM8ZIUFKg fWpPyiqAH4UDOwr43b9QayDn46m4KLGPoLWVzJ0Je4H39F0S7EGIlRUEhPRa6Q== 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 4TYWz95qM4zh9P; Mon, 12 Feb 2024 17:43:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CHhnKi012363; Mon, 12 Feb 2024 17:43:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CHhn4t012360; Mon, 12 Feb 2024 17:43:49 GMT (envelope-from git) Date: Mon, 12 Feb 2024 17:43:49 GMT Message-Id: <202402121743.41CHhn4t012360@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 739488cc21b1 - stable/14 - fusefs: fix invalid value for st_birthtime.tv_nsec 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 739488cc21b1ad08994aa5c36d85b9c11866b29d Auto-Submitted: auto-generated The branch stable/14 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=739488cc21b1ad08994aa5c36d85b9c11866b29d commit 739488cc21b1ad08994aa5c36d85b9c11866b29d Author: Alan Somers AuthorDate: 2024-01-25 15:19:37 +0000 Commit: Alan Somers CommitDate: 2024-02-12 17:43:11 +0000 fusefs: fix invalid value for st_birthtime.tv_nsec If a file system's on-disk format does not support st_birthtime, it isn't clear what value it should return in stat(2). Neither our man page nor the OpenGroup specifies. But our convention for UFS and msdosfs is to return { .tv_sec = -1, .tv_nsec = 0 }. fusefs is different. It returns { .tv_sec = -1, .tv_nsec = -1 }. It's done that ever since the initial import in SVN r241519. Most software apparently handles this just fine. It must, because we've had no complaints. But the Rust standard library will panic when reading such a timestamp during std::fs::metadata, even if the caller doesn't care about that particular value. That's a separate bug, and should be fixed. Change our invalid value to match msdosfs and ufs, pacifying the Rust standard library. PR: 276602 Sponsored by: Axcient Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43590 (cherry picked from commit 55b80e2ca52c4b27c4920d372a6e71ac9ab7da9e) --- sys/fs/fuse/fuse_internal.c | 1 - sys/fs/fuse/fuse_node.c | 7 +++++++ tests/sys/fs/fusefs/getattr.cc | 15 +++++++++------ tests/sys/fs/fusefs/lookup.cc | 15 +++++++++------ 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/sys/fs/fuse/fuse_internal.c b/sys/fs/fuse/fuse_internal.c index e2351e4ac24a..2d1c729a395a 100644 --- a/sys/fs/fuse/fuse_internal.c +++ b/sys/fs/fuse/fuse_internal.c @@ -326,7 +326,6 @@ fuse_internal_cache_attrs(struct vnode *vp, struct fuse_attr *attr, else return; - vattr_null(vp_cache_at); vp_cache_at->va_fsid = mp->mnt_stat.f_fsid.val[0]; vp_cache_at->va_fileid = attr->ino; vp_cache_at->va_mode = attr->mode & ~S_IFMT; diff --git a/sys/fs/fuse/fuse_node.c b/sys/fs/fuse/fuse_node.c index 6a7f2e88831c..1ff67ecf74e4 100644 --- a/sys/fs/fuse/fuse_node.c +++ b/sys/fs/fuse/fuse_node.c @@ -156,7 +156,14 @@ fuse_vnode_init(struct vnode *vp, struct fuse_vnode_data *fvdat, { fvdat->nid = nodeid; LIST_INIT(&fvdat->handles); + vattr_null(&fvdat->cached_attrs); + fvdat->cached_attrs.va_birthtime.tv_sec = -1; + fvdat->cached_attrs.va_birthtime.tv_nsec = 0; + fvdat->cached_attrs.va_fsid = VNOVAL; + fvdat->cached_attrs.va_gen = 0; + fvdat->cached_attrs.va_rdev = NODEV; + if (nodeid == FUSE_ROOT_ID) { vp->v_vflag |= VV_ROOT; } diff --git a/tests/sys/fs/fusefs/getattr.cc b/tests/sys/fs/fusefs/getattr.cc index 1795f29a5d76..98a757fdff94 100644 --- a/tests/sys/fs/fusefs/getattr.cc +++ b/tests/sys/fs/fusefs/getattr.cc @@ -246,12 +246,15 @@ TEST_F(Getattr, ok) EXPECT_EQ(ino, sb.st_ino); EXPECT_EQ(S_IFREG | 0644, sb.st_mode); - //st_birthtim and st_flags are not supported by protocol 7.8. They're - //only supported as OS-specific extensions to OSX. - //EXPECT_EQ(, sb.st_birthtim); - //EXPECT_EQ(, sb.st_flags); - - //FUSE can't set st_blksize until protocol 7.9 + /* + * st_birthtim and st_flags are not supported by the fuse protocol. + * They're only supported as OS-specific extensions to OSX. For + * birthtime, the convention for "not supported" is "negative one + * second". + */ + EXPECT_EQ(-1, sb.st_birthtim.tv_sec); + EXPECT_EQ(0, sb.st_birthtim.tv_nsec); + EXPECT_EQ(0u, sb.st_flags); } /* diff --git a/tests/sys/fs/fusefs/lookup.cc b/tests/sys/fs/fusefs/lookup.cc index 549df0369fa7..6d506c1ab700 100644 --- a/tests/sys/fs/fusefs/lookup.cc +++ b/tests/sys/fs/fusefs/lookup.cc @@ -112,12 +112,15 @@ TEST_F(Lookup, attr_cache) // fuse(4) does not _yet_ support inode generations //EXPECT_EQ(generation, sb.st_gen); - //st_birthtim and st_flags are not supported by protocol 7.8. They're - //only supported as OS-specific extensions to OSX. - //EXPECT_EQ(, sb.st_birthtim); - //EXPECT_EQ(, sb.st_flags); - - //FUSE can't set st_blksize until protocol 7.9 + /* + * st_birthtim and st_flags are not supported by the fuse protocol. + * They're only supported as OS-specific extensions to OSX. For + * birthtime, the convention for "not supported" is "negative one + * second". + */ + EXPECT_EQ(-1, sb.st_birthtim.tv_sec); + EXPECT_EQ(0, sb.st_birthtim.tv_nsec); + EXPECT_EQ(0u, sb.st_flags); } /* From nobody Mon Feb 12 17:57: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 4TYXGb32Sfz5BG1X; Mon, 12 Feb 2024 17:57:11 +0000 (UTC) (envelope-from jhb@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYXGb2JQfz4YlK; Mon, 12 Feb 2024 17:57:11 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707760631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kgu6v6rrRQ4GRYPpo9Bb87xpl5NX2u/vdszDreL8q3o=; b=Is27GAQ1m2Z5quk2O/9av53a3acreJazvbll5TY14QEtMWiyu3zrdQiwA+YA4LqifthDGL gTEBPc8tv16hU6FcCiD9Ejxm1nR2VcKTgL4f9wEvv3W54V1S4hVvOcb0nlHWzLyJ0d8SuU dp+PziUoeaO5679owQrGTXVMVK0a3f24nCoCeHf/+Qeq5jE6616FV0RwUt4qimyoAyHYuj rIhARW50ZP6RTBaIcVnk7Wi6V/n2cOZ84CAH8k/l6PHzfjkXyC2MFNl0lYUKEK82ESYhHo bkczvo4pZ9YJUBy7j3wbVk8DolUisLc/tY+fbtSsMFdYavQsHiSo81o1SLtimQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707760631; a=rsa-sha256; cv=none; b=mZTbFCm/NCpAB4ChXhy+Y9JqgE6nW5jeAGjmFEkTP+Rlii+5d6y0vkQvx/hB+BUAuSYleR d4/e5Mg4FQ4SPIQ5WFxdzgekNwiY7m8g43l/QLiha1EvWq8ljEFqUAQvabDY7BGJcuoLAG mTLShQOwzW0KYCDUYPtFspX/bSV9rz39vRANFqctFIbFiE475a7GoF0VbdyCWZCsutRWG9 sx+tW9yXeVQ2nQczy+sIJkd1SruXn3eIp2cCxq5d3RRgE3opkvXNCUxgcateAwvx/hBrOI 0FB2Iwd0o1jSn4+uFZVB8JiYfRTigQypOkYUaqGfwl7PpRh5EDLtmVBjYk2CRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707760631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kgu6v6rrRQ4GRYPpo9Bb87xpl5NX2u/vdszDreL8q3o=; b=byz6vRg3F7c+zDIeH+1M7xLpqlbo6EseNIZOqoWesZ3I2AloF9UKkeyeDLcbhZewIGDQmq 0icimYCiwPAtEnc8k/+AZ8aCZ6Sdk0SHCJmmnQPktiMZoHp1nU2jQEfRB4nMT6346FlYNF WMde8I0NNWD/RO+A3ANlI1sZ1XeCMKUiD1O1vMLfjv1/ZoQdq/j6nn2I1OL6mVOog/DayX XGbPFmDVK1xbR5TNtHiAMWuV2wHRrtJUzaSKLak/7ZXVtKDPr1k9x4sw7/ORu8WOqrI/pU 03TuJ7N9HJhSCeUkenpQvWZTglXSinoetF0LFbFg3cOqnGRoDxiNep1kJ/9BMQ== Received: from [IPV6:2601:644:937c:5920:4c63:23c7:5c22:d7ba] (unknown [IPv6:2601:644:937c:5920:4c63:23c7:5c22:d7ba]) (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: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TYXGZ5NhTzTqn; Mon, 12 Feb 2024 17:57:10 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: Date: Mon, 12 Feb 2024 09:57:09 -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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: git: c0b8047bdc13 - main - LinuxKPI: Allow kmalloc to be called when FPU protection is enabled Content-Language: en-US To: Vladimir Kondratyev , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202402102203.41AM3NGb006023@gitrepo.freebsd.org> From: John Baldwin In-Reply-To: <202402102203.41AM3NGb006023@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/10/24 2:03 PM, Vladimir Kondratyev wrote: > The branch main has been updated by wulf: > > URL: https://cgit.FreeBSD.org/src/commit/?id=c0b8047bdc13040eafb162c4b7b5dba11034ff4b > > commit c0b8047bdc13040eafb162c4b7b5dba11034ff4b > Author: Vladimir Kondratyev > AuthorDate: 2024-02-10 22:01:50 +0000 > Commit: Vladimir Kondratyev > CommitDate: 2024-02-10 22:01:50 +0000 > > LinuxKPI: Allow kmalloc to be called when FPU protection is enabled > > Amdgpu driver does a lot of memory allocations in FPU-protected sections > of code for certain display cores, e.g. for DCN30. This does not work > on FreeBSD as its malloc function can not be run within a critical > section. Check this condition and temporally exit from FPU-protected > context to workaround issue and reduce source code patching. > > Sponsored by: Serenity Cyber Security, LLC > Reviewed by: manu (previous version) > MFC after: 1 week > Differential revision: https://reviews.freebsd.org/D42822 Thanks! -- John Baldwin From nobody Mon Feb 12 18:03: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 4TYXPM1cwHz5BGWN; Mon, 12 Feb 2024 18:03:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYXPM0K9Jz4Zfr; Mon, 12 Feb 2024 18:03:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707760983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IXzc0chdLiS7001dOBUAPO6QlmekHzN9rjqY3xT0smI=; b=FVONJEChF9DqkZUl8eAq+cifsrD6wq6zoj25aCkQBA34ngzTBH5e5aMJrnqQtbY860zn5q HX2rCG267359yVYsM+3zxAkVj7KcjEGTtlodNULrMhWiE849pqtIOViA53w0HysEYKY9bv /crr3rCrFy8CRaJ1R3YHn0dcaBxRqa4CSJfmMsjwj77PTNjU4bHiXGqIGexiPBFhyecszM K1JMdY8Oe6pNKuLbTU/12mudirok1gDJvLdH1dd2mvorJ9m6xcS1tRlvDvwh3r/wDxAXa/ xmOJ0z/su1hYn7wuLdJXqdJh5dE7tUdVANGLyHZOMx7/IMyXAdbP7wjqYEtnlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707760983; a=rsa-sha256; cv=none; b=cDQlJVxO6r4t72xYb+y5Q1a2BGykGK3ND6+S8Rmt8xx7tK5nDX+AQ6agX8TzaO7pIFpysW Na4CEvLra7gI2FPsvqPpV2pf9BgzpAcuu+Kpgv4632gCQRQw4kYfrraPlOOF80fKgCjWE6 Qx/2+CtwUjqHthP7zVFM/4CEPF7e/u0YsuDrt85TMYDeW6B2anABxcA4eItgZyKMd4Dz8L Rsb4mDEqE1hMwWFeR906oScvy2fRFFKx4UwNMSlSs3WfJapeenSlNj580RhOCxNRmAG4BE BAbk5/8J0+Eva/xImz9eYxEwhwEZX6j2tT4GV0kbqJbfxtJ27+ioglBllR9JIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707760983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IXzc0chdLiS7001dOBUAPO6QlmekHzN9rjqY3xT0smI=; b=dsCLaLDN2qU4wrbVbgjU5m99NdVQ9EBMM4dzO8U/waoanPOO5+zgJK0Lh6M5/6jvUoH2C7 zrYbUQTbVZkgo7H9s6Wo/yHMmpUNbUQbJuBhR0MfZaQjUIDKnsvV73jhTru72uJi69OS+i LNA0fPqNAdq+wiV1H29l3cWMAFW59kpzmr1k+Xzsk/H8oa+gJiavt8BaYX3LU7iU4HsL7r BUWZrZnWWVc+A0+DtGUQNZKeQ7zSwDoGuHV1e2oTLrT0lgtmlHACZ5oC3UgOx2E3NjVksb A4vabMvdBgSIQ3H7iOswBYI4kacHdWvoGP+3s6dQZ/hvTsrwcpPIedZJk09nJA== 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 4TYXPL6WTRzhg5; Mon, 12 Feb 2024 18:03:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CI32Pw046574; Mon, 12 Feb 2024 18:03:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CI32EC046571; Mon, 12 Feb 2024 18:03:02 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:03:02 GMT Message-Id: <202402121803.41CI32EC046571@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: f3d5f910d53d - stable/13 - fusefs: more consistent operand ordering in io.cc 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: f3d5f910d53df724e81421d3a8ac841c46bfdf81 Auto-Submitted: auto-generated The branch stable/13 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=f3d5f910d53df724e81421d3a8ac841c46bfdf81 commit f3d5f910d53df724e81421d3a8ac841c46bfdf81 Author: Alan Somers AuthorDate: 2024-01-15 23:16:40 +0000 Commit: Alan Somers CommitDate: 2024-02-12 18:02:44 +0000 fusefs: more consistent operand ordering in io.cc (cherry picked from commit daf26f9350cf8fb3ae60d4528b60ddf65a56f5cc) --- tests/sys/fs/fusefs/io.cc | 54 +++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/tests/sys/fs/fusefs/io.cc b/tests/sys/fs/fusefs/io.cc index fc648f44d755..77df0ceede64 100644 --- a/tests/sys/fs/fusefs/io.cc +++ b/tests/sys/fs/fusefs/io.cc @@ -281,7 +281,7 @@ void do_ftruncate(off_t offs) m_filesize = offs; } -void do_mapread(ssize_t size, off_t offs) +void do_mapread(off_t offs, ssize_t size) { void *control_buf, *p; off_t pg_offset, page_mask; @@ -307,7 +307,7 @@ void do_mapread(ssize_t size, off_t offs) free(control_buf); } -void do_read(ssize_t size, off_t offs) +void do_read(off_t offs, ssize_t size) { void *test_buf, *control_buf; ssize_t r; @@ -331,7 +331,7 @@ void do_read(ssize_t size, off_t offs) free(test_buf); } -void do_mapwrite(ssize_t size, off_t offs) +void do_mapwrite(off_t offs, ssize_t size) { char *buf; void *p; @@ -368,7 +368,7 @@ void do_mapwrite(ssize_t size, off_t offs) ASSERT_EQ(0, munmap(p, map_size)) << strerror(errno); } -void do_write(ssize_t size, off_t offs) +void do_write(off_t offs, ssize_t size) { char *buf; long i; @@ -416,9 +416,9 @@ TEST_P(Io, extend_from_dirty_page) ssize_t rsize = 0x9b22; off_t truncsize = 0x28702; - do_write(wsize, wofs); + do_write(wofs, wsize); do_ftruncate(truncsize); - do_read(rsize, rofs); + do_read(rofs, rsize); } /* @@ -428,9 +428,9 @@ TEST_P(Io, extend_from_dirty_page) */ TEST_P(IoCacheable, extend_by_mapwrite) { - do_mapwrite(0x849e, 0x29a3a); /* [0x29a3a, 0x31ed7] */ - do_mapwrite(0x3994, 0x3c7d8); /* [0x3c7d8, 0x4016b] */ - do_read(0xf556, 0x30c16); /* [0x30c16, 0x4016b] */ + do_mapwrite(0x29a3a, 0x849e); /* [0x29a3a, 0x31ed7] */ + do_mapwrite(0x3c7d8, 0x3994); /* [0x3c7d8, 0x4016b] */ + do_read(0x30c16, 0xf556); /* [0x30c16, 0x4016b] */ } /* @@ -442,9 +442,9 @@ TEST_P(IoCacheable, extend_by_mapwrite) */ TEST_P(Io, last_page) { - do_write(0xcc77, 0x1134f); /* [0x1134f, 0x1dfc5] */ - do_write(0xdfa7, 0x2096a); /* [0x2096a, 0x2e910] */ - do_read(0xb5b7, 0x1a3aa); /* [0x1a3aa, 0x25960] */ + do_write(0x1134f, 0xcc77); /* [0x1134f, 0x1dfc5] */ + do_write(0x2096a, 0xdfa7); /* [0x2096a, 0x2e910] */ + do_read(0x1a3aa, 0xb5b7); /* [0x1a3aa, 0x25960] */ } /* @@ -454,8 +454,8 @@ TEST_P(Io, last_page) */ TEST_P(IoCacheable, mapread_hole) { - do_write(0x123b7, 0xf205); /* [0xf205, 0x215bb] */ - do_mapread(0xeeea, 0x2f4c); /* [0x2f4c, 0x11e35] */ + do_write(0xf205, 0x123b7); /* [0xf205, 0x215bb] */ + do_mapread(0x2f4c, 0xeeea); /* [0x2f4c, 0x11e35] */ } /* @@ -470,8 +470,8 @@ TEST_P(Io, read_hole_from_cached_block) off_t rofs = 0x472e; ssize_t rsize = 0xd8d5; - do_write(wsize, wofs); - do_read(rsize, rofs); + do_write(wofs, wsize); + do_read(rofs, rsize); } /* @@ -491,10 +491,10 @@ TEST_P(Io, truncate_into_dirty_buffer) ssize_t rsize = 0x29ff; off_t truncsize1 = 0x152b4; - do_write(wsize0, wofs0); - do_write(wsize1, wofs1); + do_write(wofs0, wsize0); + do_write(wofs1, wsize1); do_ftruncate(truncsize0); - do_read(rsize, rofs); + do_read(rofs, rsize); do_ftruncate(truncsize1); close(m_test_fd); } @@ -523,11 +523,11 @@ TEST_P(Io, truncate_into_dirty_buffer2) * Creates a dirty buffer. The part in lbn 2 doesn't flush * synchronously. */ - do_write(wsize, wofs); + do_write(wofs, wsize); /* Truncates part of the dirty buffer created in step 2 */ do_ftruncate(truncsize1); /* XXX ?I don't know why this is necessary? */ - do_read(rsize2, rofs2); + do_read(rofs2, rsize2); /* Truncates the dirty buffer */ do_ftruncate(truncsize2); close(m_test_fd); @@ -558,10 +558,10 @@ TEST_P(Io, truncate_into_dirty_buffer2) */ TEST_P(Io, resize_a_valid_buffer_while_extending) { - do_write(0x14530, 0x36ee6); /* [0x36ee6, 0x4b415] */ - do_write(0x1507c, 0x33256); /* [0x33256, 0x482d1] */ - do_write(0x175c, 0x4c03d); /* [0x4c03d, 0x4d798] */ - do_read(0xe277, 0x3599c); /* [0x3599c, 0x43c12] */ + do_write(0x36ee6, 0x14530); /* [0x36ee6, 0x4b415] */ + do_write(0x33256, 0x1507c); /* [0x33256, 0x482d1] */ + do_write(0x4c03d, 0x175c); /* [0x4c03d, 0x4d798] */ + do_read(0x3599c, 0xe277); /* [0x3599c, 0x43c12] */ close(m_test_fd); } @@ -572,7 +572,7 @@ TEST_P(Io, resize_a_valid_buffer_while_extending) */ TEST_P(IoCacheable, vnode_pager_generic_putpage_clean_block_at_eof) { - do_mapwrite(0x1bbc3, 0x3b4e0); + do_mapwrite(0x3b4e0, 0x1bbc3); } /* @@ -581,7 +581,7 @@ TEST_P(IoCacheable, vnode_pager_generic_putpage_clean_block_at_eof) */ TEST_P(IoCopyFileRange, copy_file_range_from_mapped_write) { - do_mapwrite(0x1000, 0); + do_mapwrite(0, 0x1000); do_copy_file_range(0, 0x1000, 0x1000); do_read(0x1000, 0x1000); } From nobody Mon Feb 12 18:03: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 4TYXPN1m0Rz5BGMj; Mon, 12 Feb 2024 18:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYXPN1KgHz4ZlY; Mon, 12 Feb 2024 18:03:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707760984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=W5CcNBQQ4eWsDPk/6qQ7k+ilEdGZHhU+Wd6L0s0u+nw=; b=JKha0R4XSct8arkjNyKMe02klGixCYQGTgRjp70RUfzpYIDcx3ZipZ+ejUsgRnQgXeQR2r iYv2AvXy09PcYXdqJP7n10/H3ivMktr9WcPlgJ8fP2r48CrRdiXDzuS3NhsClDn5wQo+B4 BG72M9ljJgk8wqk9A+dWlwsUhdqEbq2eiFXhiomCNi2QE3JFWlDjujmzHHUXnbHdPiiZzl cCoWYO2cicw/Qf0Y/lz/G4rNJzag8rRpKI7nAtr3i9QGdnw17r7vp2/8iZFZ2awUrkusab ZB5x6zpPS3UbW6vLZC+i8kux8t79d6nE3hh7EmpbWbiVpOhqjO1ZIyYbjcV5lg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707760984; a=rsa-sha256; cv=none; b=D1sGJGHQtIRRLuoThU9iYz6EmViZWlrvCxO52j6FPrbjToJCvch1UZn4RGErJkIovP/q2H 6EP01r47STH5I2SdcHajZnA6SEanJQ4SvQwLSuLKOPhfU9/xQ/NDP28IpcN3+dcVA6Ec9G 20vnWKuo1ucAaQjCRP0ndda5I/2/5XJdzQSXHvwwrjBjvuxxmExpktHeAG/F7S1O9LhbmV MNvWWme29rfCVj7QVqKyZnWhp++1xeEYzonlXYIHxEnU1wrgBq9ec5PkcxX+qELyxRiz4H kUjS5roJXUQriJFI+4a+5fwJ99P7Z1r5GHliZsEyiXSWpcJOBL85mJfTgyrm3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707760984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=W5CcNBQQ4eWsDPk/6qQ7k+ilEdGZHhU+Wd6L0s0u+nw=; b=YEm+C787jWc18Ajl1tXjWoiPwUrPtpfc7NqgvUqt5uLeCGTJFw6giUPQQEKMApjc62Y51V qYzmfABbkULeTlls17TiBUx4R28zIfcToAyiogKn8wMIlbt3WNFh/22bfS18jYUAmtIOGp Hpv43jvhjz4meHNVCAKUQhRJ0d22CcZqvhDPOA4UCiPCTEkllmoS20cmhySd9QHeNzMMe6 m4e0OfGjBG0HW6RYenAeDa/GtPL8JxmyxJhU3x0Ij1Fr73djICtpsegs10YCm6Hw66sRQ4 +bvHWiSQSxx11H4eMy9XeTeJJjHj/hVBsVtJeA60OMU0af9axWen6+wwEtpy/A== 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 4TYXPN0PRBzhVq; Mon, 12 Feb 2024 18:03:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CI33AW046622; Mon, 12 Feb 2024 18:03:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CI338i046619; Mon, 12 Feb 2024 18:03:03 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:03:03 GMT Message-Id: <202402121803.41CI338i046619@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 65e25e4a614a - stable/13 - fusefs: fix invalid value for st_birthtime.tv_nsec 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 65e25e4a614a99243e7419279b294e399991dfff Auto-Submitted: auto-generated The branch stable/13 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=65e25e4a614a99243e7419279b294e399991dfff commit 65e25e4a614a99243e7419279b294e399991dfff Author: Alan Somers AuthorDate: 2024-01-25 15:19:37 +0000 Commit: Alan Somers CommitDate: 2024-02-12 18:02:50 +0000 fusefs: fix invalid value for st_birthtime.tv_nsec If a file system's on-disk format does not support st_birthtime, it isn't clear what value it should return in stat(2). Neither our man page nor the OpenGroup specifies. But our convention for UFS and msdosfs is to return { .tv_sec = -1, .tv_nsec = 0 }. fusefs is different. It returns { .tv_sec = -1, .tv_nsec = -1 }. It's done that ever since the initial import in SVN r241519. Most software apparently handles this just fine. It must, because we've had no complaints. But the Rust standard library will panic when reading such a timestamp during std::fs::metadata, even if the caller doesn't care about that particular value. That's a separate bug, and should be fixed. Change our invalid value to match msdosfs and ufs, pacifying the Rust standard library. PR: 276602 Sponsored by: Axcient Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43590 --- sys/fs/fuse/fuse_internal.c | 1 - sys/fs/fuse/fuse_node.c | 7 +++++++ tests/sys/fs/fusefs/getattr.cc | 15 +++++++++------ tests/sys/fs/fusefs/lookup.cc | 15 +++++++++------ 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/sys/fs/fuse/fuse_internal.c b/sys/fs/fuse/fuse_internal.c index 13d18127d2e6..c851cb2e34f4 100644 --- a/sys/fs/fuse/fuse_internal.c +++ b/sys/fs/fuse/fuse_internal.c @@ -326,7 +326,6 @@ fuse_internal_cache_attrs(struct vnode *vp, struct fuse_attr *attr, else return; - vattr_null(vp_cache_at); vp_cache_at->va_fsid = mp->mnt_stat.f_fsid.val[0]; vp_cache_at->va_fileid = attr->ino; vp_cache_at->va_mode = attr->mode & ~S_IFMT; diff --git a/sys/fs/fuse/fuse_node.c b/sys/fs/fuse/fuse_node.c index a02b41e24ad8..52bd2d92f4da 100644 --- a/sys/fs/fuse/fuse_node.c +++ b/sys/fs/fuse/fuse_node.c @@ -156,7 +156,14 @@ fuse_vnode_init(struct vnode *vp, struct fuse_vnode_data *fvdat, { fvdat->nid = nodeid; LIST_INIT(&fvdat->handles); + vattr_null(&fvdat->cached_attrs); + fvdat->cached_attrs.va_birthtime.tv_sec = -1; + fvdat->cached_attrs.va_birthtime.tv_nsec = 0; + fvdat->cached_attrs.va_fsid = VNOVAL; + fvdat->cached_attrs.va_gen = 0; + fvdat->cached_attrs.va_rdev = NODEV; + if (nodeid == FUSE_ROOT_ID) { vp->v_vflag |= VV_ROOT; } diff --git a/tests/sys/fs/fusefs/getattr.cc b/tests/sys/fs/fusefs/getattr.cc index 1795f29a5d76..98a757fdff94 100644 --- a/tests/sys/fs/fusefs/getattr.cc +++ b/tests/sys/fs/fusefs/getattr.cc @@ -246,12 +246,15 @@ TEST_F(Getattr, ok) EXPECT_EQ(ino, sb.st_ino); EXPECT_EQ(S_IFREG | 0644, sb.st_mode); - //st_birthtim and st_flags are not supported by protocol 7.8. They're - //only supported as OS-specific extensions to OSX. - //EXPECT_EQ(, sb.st_birthtim); - //EXPECT_EQ(, sb.st_flags); - - //FUSE can't set st_blksize until protocol 7.9 + /* + * st_birthtim and st_flags are not supported by the fuse protocol. + * They're only supported as OS-specific extensions to OSX. For + * birthtime, the convention for "not supported" is "negative one + * second". + */ + EXPECT_EQ(-1, sb.st_birthtim.tv_sec); + EXPECT_EQ(0, sb.st_birthtim.tv_nsec); + EXPECT_EQ(0u, sb.st_flags); } /* diff --git a/tests/sys/fs/fusefs/lookup.cc b/tests/sys/fs/fusefs/lookup.cc index 549df0369fa7..6d506c1ab700 100644 --- a/tests/sys/fs/fusefs/lookup.cc +++ b/tests/sys/fs/fusefs/lookup.cc @@ -112,12 +112,15 @@ TEST_F(Lookup, attr_cache) // fuse(4) does not _yet_ support inode generations //EXPECT_EQ(generation, sb.st_gen); - //st_birthtim and st_flags are not supported by protocol 7.8. They're - //only supported as OS-specific extensions to OSX. - //EXPECT_EQ(, sb.st_birthtim); - //EXPECT_EQ(, sb.st_flags); - - //FUSE can't set st_blksize until protocol 7.9 + /* + * st_birthtim and st_flags are not supported by the fuse protocol. + * They're only supported as OS-specific extensions to OSX. For + * birthtime, the convention for "not supported" is "negative one + * second". + */ + EXPECT_EQ(-1, sb.st_birthtim.tv_sec); + EXPECT_EQ(0, sb.st_birthtim.tv_nsec); + EXPECT_EQ(0u, sb.st_flags); } /* From nobody Mon Feb 12 18:26: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 4TYXwQ3Nbyz5BJVY; Mon, 12 Feb 2024 18:26: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYXwQ2tHnz4f6W; Mon, 12 Feb 2024 18:26:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707762390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ge1rP8SwCNIalu/PIVYdxVs9H358A8BdBYrOCZf3k78=; b=fs1WKaxBcFtCMU2Pl79BTcS4DLx3DlBMkhrnxWhOMc921dnTxo8xMuMJC11DBEu0rF8IGq 0GkrzVKZgC0F32xBz2z7aLZGCz7kYRZf8FP4/NDRv09HwcNVHiyx93MHTCIbMZaxFWzh8Y hx/5aCUshkfYLtcNhmPfLHz1LWg56Zb1WAFLyEZnYXXLP8n1tTrLGlVXvSz4l+Gy0BPjFJ OZKI9BFIaYgQ/am6OaSOHQTHBW2J+l3DGP4xlimoHbJUcEx+rwItu24Ao/Z+B/jGnNJnAA 7I4aIdu+nNnZ6IXXndS59HcaQYDe3xEIxocw+LeoFTVRNHqhEWATTwH46v8hsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707762390; a=rsa-sha256; cv=none; b=cEDSBsw0ywBThJQiwLwGpsr/ohX0hPFHneYABerg0pwWJy7QdQp3/3HtH+au4M5ilOlaBR IE8CUOPB2B2RbssTpI7ewLpqIRW239Ab10v5tSrTs0bn/2VNdbH/IgF3YUnX1gLSASXDaW FLzGr7xIuRHECVJKKONxz4bVRue6XtScsE52CK+M9oiCms35XgHVVP3haeY3I9mUhQGELu d4ZQWOGUHOUMn9F1OOXQinFxytZXfoBl7kLZh0V9RSxQyc5Pd386LmDLPz5BMfv8afb2yx YII6ZeL6E2gl5/FNOiXGIaarcy2/vzK1ndMuKBPwJZRwfDeH5MWXHJxrBXNsQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707762390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ge1rP8SwCNIalu/PIVYdxVs9H358A8BdBYrOCZf3k78=; b=R8SZ9Ca+shog1jePHVlhV5F747tS2PqFNCCefdZyGgeCMGOeoyp7W/RQA5sQEcxaYDiLLW /0XFuMZPo3/JlAYWUt7TeHHy0VlNdwztOOQJNSzeTIfGdjWo+O9T4tkKerTj/8jf/VGSP7 7JWM5x5IX4w/QJx0jl1rkESQv8AVDCBaZKhEsvNSFLpVRYIxz5iylarBUY9H0NztqS1wkd WTCTeFlNDxp2SWPehAZgnJxkLt3DyY+LfeQwiAZweWugjRthoD9OICcLTD0JBZBaNB+88S 77KZIAfkMluy3llbUzfRTxPDTU2kR0Q3wTaZNoTsJaMHROszxIjkL+DX6b6SxQ== 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 4TYXwQ1xfJzjHS; Mon, 12 Feb 2024 18:26:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIQUpd080393; Mon, 12 Feb 2024 18:26:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIQUk5080390; Mon, 12 Feb 2024 18:26:30 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:26:30 GMT Message-Id: <202402121826.41CIQUk5080390@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 851a9da38f07 - main - patch: Support long context lines. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 851a9da38f070675c42a6d69c41c47a5d29ee3d0 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=851a9da38f070675c42a6d69c41c47a5d29ee3d0 commit 851a9da38f070675c42a6d69c41c47a5d29ee3d0 Author: Dag-Erling Smørgrav AuthorDate: 2024-02-12 18:26:13 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-02-12 18:26:13 +0000 patch: Support long context lines. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D43850 --- usr.bin/patch/patch.c | 2 +- usr.bin/patch/pch.c | 10 +++++----- usr.bin/patch/pch.h | 2 +- usr.bin/patch/tests/unified_patch_test.sh | 19 +++++++++++++++++++ 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index 403189bc92b1..838c721841ea 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -1085,7 +1085,7 @@ patch_match(LINENUM base, LINENUM offset, LINENUM fuzz) LINENUM pat_lines = pch_ptrn_lines() - fuzz; const char *ilineptr; const char *plineptr; - unsigned short plinelen; + size_t plinelen; /* Patch does not match if we don't have any more context to use */ if (pline > pat_lines) diff --git a/usr.bin/patch/pch.c b/usr.bin/patch/pch.c index d528f06235bf..fb53ff86f9ef 100644 --- a/usr.bin/patch/pch.c +++ b/usr.bin/patch/pch.c @@ -55,7 +55,7 @@ static LINENUM p_max; /* max allowed value of p_end */ static LINENUM p_context = 3; /* # of context lines */ static LINENUM p_input_line = 0; /* current line # from patch file */ static char **p_line = NULL;/* the text of the hunk */ -static unsigned short *p_len = NULL; /* length of each line */ +static size_t *p_len = NULL; /* length of each line */ static char *p_char = NULL; /* +, -, and ! */ static int hunkmax = INITHUNKMAX; /* size of above arrays to begin with */ static int p_indent; /* indent to patch */ @@ -137,7 +137,7 @@ set_hunkmax(void) if (p_line == NULL) p_line = malloc(hunkmax * sizeof(char *)); if (p_len == NULL) - p_len = malloc(hunkmax * sizeof(unsigned short)); + p_len = malloc(hunkmax * sizeof(size_t)); if (p_char == NULL) p_char = malloc(hunkmax * sizeof(char)); } @@ -154,7 +154,7 @@ grow_hunkmax(void) fatal("Internal memory allocation error\n"); p_line = reallocf(p_line, new_hunkmax * sizeof(char *)); - p_len = reallocf(p_len, new_hunkmax * sizeof(unsigned short)); + p_len = reallocf(p_len, new_hunkmax * sizeof(size_t)); p_char = reallocf(p_char, new_hunkmax * sizeof(char)); if (p_line != NULL && p_len != NULL && p_char != NULL) { @@ -1251,7 +1251,7 @@ bool pch_swap(void) { char **tp_line; /* the text of the hunk */ - unsigned short *tp_len;/* length of each line */ + size_t *tp_len; /* length of each line */ char *tp_char; /* +, -, and ! */ LINENUM i; LINENUM n; @@ -1408,7 +1408,7 @@ pch_context(void) /* * Return the length of a particular patch line. */ -unsigned short +size_t pch_line_len(LINENUM line) { return p_len[line]; diff --git a/usr.bin/patch/pch.h b/usr.bin/patch/pch.h index 5ce4f72497c7..b6c6363155a5 100644 --- a/usr.bin/patch/pch.h +++ b/usr.bin/patch/pch.h @@ -45,7 +45,7 @@ bool there_is_another_patch(void); bool another_hunk(void); bool pch_swap(void); char *pfetch(LINENUM); -unsigned short pch_line_len(LINENUM); +size_t pch_line_len(LINENUM); LINENUM pch_first(void); LINENUM pch_ptrn_lines(void); LINENUM pch_newfirst(void); diff --git a/usr.bin/patch/tests/unified_patch_test.sh b/usr.bin/patch/tests/unified_patch_test.sh index 43b0d8373cfa..7d4b74182c41 100755 --- a/usr.bin/patch/tests/unified_patch_test.sh +++ b/usr.bin/patch/tests/unified_patch_test.sh @@ -141,6 +141,24 @@ file_removal_body() atf_check -o inline:"y\n" cat foo } +atf_test_case plinelen +plinelen_body() +{ + hello="$(jot -b hello -s, 20000 | tee foo.txt)" + cp foo.txt bar.txt + echo "world" >>bar.txt + cat >foo.diff < To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 9622dc05ae11 - main - zfsbootcfg: Remove bogus CFLAGS 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 9622dc05ae11b145f1602fd0bb1fd6509c074b00 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9622dc05ae11b145f1602fd0bb1fd6509c074b00 commit 9622dc05ae11b145f1602fd0bb1fd6509c074b00 Author: Warner Losh AuthorDate: 2024-02-12 18:44:22 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:44:22 +0000 zfsbootcfg: Remove bogus CFLAGS When using the zfsbootcfg library, we're talking only to it, not to the rest of ZFS, nor are we using anything that needs access to the ZFS compilation environment. Remove all the compiling OpenZFS itself flags. Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D43823 --- sbin/zfsbootcfg/Makefile | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/sbin/zfsbootcfg/Makefile b/sbin/zfsbootcfg/Makefile index 3d5589dcee48..1833fc542ce0 100644 --- a/sbin/zfsbootcfg/Makefile +++ b/sbin/zfsbootcfg/Makefile @@ -1,19 +1,6 @@ - PROG= zfsbootcfg MAN= zfsbootcfg.8 LIBADD+=zfsbootenv -CFLAGS+= -DIN_BASE -CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include -CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd -CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include -CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd -CFLAGS+= -I${SRCTOP}/sys -CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include -CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include -CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h -CFLAGS+= -DHAVE_ISSETUGID -CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h - .include From nobody Mon Feb 12 18:53: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 4TYYWg5h0nz5BMYy; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWg26zpz4mBH; Mon, 12 Feb 2024 18:53:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J5FFaT8uSjvSzH2i+YIkKqcMk0/T+uY4yv0IAI/zKH0=; b=RcHRhrNwxz3EvyA+mPprRJ9MRms5f93wds5HwN3ug90LRGqGdL6wmYY5C16aguDBuChZnu 9hDMZ7uTT7/mBINQaCPELDSEVErxkO1jqBOUg3ERw+hVaqFtdUmqKzUNfTEHDRDbZUwGyp XyvehKpLZgMMojti34fQUM+G7Kt1tdL1I82rabBSgz6STBS9fV+6Zw+UjnNsjj5UXRCEWj 8sREBDbmmozYKcixr5pOEWRwlHBJEwO3NYZtG6jUEIHwlsSOyoENVnJIoqTYpnA6pqvviO ghwQCXxvPVmFZPhH4PX5ejuBCo3q3MF4Fwht6wcvjtK6jjNJijv44XtFLgW3ig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764015; a=rsa-sha256; cv=none; b=JgK6iJoUGMkp9S6Z+MDrYHgGHH5H1b8WcJUiOMNt+RBaMkw2o0qqL8HwaOq1fobsbzaJ2v f3X5fe/EzDm1xQ+hzmf0Wu2W8NTRJONuc+PocRbBlIC0MH6FOZbNlVMg54KUb9EXKHS5dt OJ1bnNrFBhTRKDkbwdaX4yiT2HroSdtmk9aCbL8OstzRYnhDXBLG1V5nhNPmKXG8qqJF9+ cPNeILoqSGs3DMo+59JiMYmsIdLwRh2i4JeKuN/mWDJUKklMDg3uDdmyVIKV8uRuCnxuA4 s515MffBirqRdAgXzaKhV4Ug0bjqG9w5xdTunF7nbKaJtSl7YMFXWcS544+Wpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J5FFaT8uSjvSzH2i+YIkKqcMk0/T+uY4yv0IAI/zKH0=; b=SS045/UPPryXcXuujpd80bBF4bITej69ix7c5Jh+lLAZ/l9LTBQOFxDaztJo1ytRPsAtSX sODCbodxqs01Rgj2pe5kgIRfcrQ9a9hI5GL1nkZlE80QhFv+k16IgGZO1OnXz0uC7oYGAl 1GU2zBjNHhp/thljFzwU6C4WH/zChgWrhK1VbyviLeoiCKYTPfpf9OY467Tcrxi5XOMVlA tHvD6w0XsEUhqmUwOpPUeYpkRBz/1ww2Ee05x+ZBqtyKvzs6p2qA/P6tXi3oB88KOeAz1h t+EvHGAyI4SP+DgpjbRZvoNKS4tuI16dNx3wZ1wCZCF+wm3ZESlh+OazYEcLpw== 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 4TYYWg1BBLzjQX; Mon, 12 Feb 2024 18:53:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrZsU030308; Mon, 12 Feb 2024 18:53:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrZcr030305; Mon, 12 Feb 2024 18:53:35 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:35 GMT Message-Id: <202402121853.41CIrZcr030305@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: ac4847e6b0e9 - main - rescue: belatedly add zfsbootcfg 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: ac4847e6b0e9a4ab71c96826afadb06ae78e702a Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ac4847e6b0e9a4ab71c96826afadb06ae78e702a commit ac4847e6b0e9a4ab71c96826afadb06ae78e702a Author: Warner Losh AuthorDate: 2024-02-12 18:44:32 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:44:32 +0000 rescue: belatedly add zfsbootcfg nextboot.sh uses zfsbootcfg to enable nextboot functionality for ZFS, but zfsbootcfg was never added. Add it now since the nextboot binary that replaced the script also uses it via system. Sponsored by: Netflix Reviewed by: kevans, kib, emaste Differential Revision: https://reviews.freebsd.org/D43844 --- rescue/rescue/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index 0a8d142ef83a..de3dd8a64575 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -133,6 +133,7 @@ CRUNCH_PROGS_sbin+= routed rtquery .if ${MK_ZFS} != "no" CRUNCH_PROGS_sbin+= bectl CRUNCH_PROGS_sbin+= zfs +CRUNCH_PROGS_sbin+= zfsbootcfg CRUNCH_PROGS_sbin+= zpool CRUNCH_PROGS_usr.sbin+= zdb .endif @@ -154,6 +155,7 @@ CRUNCH_LIBS_zfs+= ${LIBBE} \ CRUNCH_LIBS_bectl+= ${CRUNCH_LIBS_zfs} CRUNCH_LIBS_zpool+= ${CRUNCH_LIBS_zfs} CRUNCH_LIBS_zdb+= ${CRUNCH_LIBS_zfs} ${LIBZDB} +CRUNCH_LIBS_zfsbootcfg+=${LIBZFSBOOTENV} .else # liblzma needs pthread CRUNCH_LIBS+= -lpthread From nobody Mon Feb 12 18:53: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 4TYYWh5KDkz5BM4X; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWh39qLz4m2y; Mon, 12 Feb 2024 18:53:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U+gfVE7STb4IDFBixMypTacmQVsHX6P1kugRK5fO0jQ=; b=nKJumsO7sJNleRPqRLx8PwYf0AabwzKP6g8BQrMX4z6kGvtR0/73+DNxiL5qpRSzYOcSUk tV+UkEPzODDxSsJTDWtOW8YDiWbccG6D+ZySrWNiVFdk21tXPiyAPQZNkKvkb7OEOhke7o OfUGL29nqis/6r23+zmoGtocA4Jtx5gLBO/xjUeAy5RPrhB1iXswBmhuJl6Tq6/X8Ckza1 Y3y2nCOAG49OFY9603Nt52yfBmMU+8sAVLTBlcHIFaWwQ8Ke264wuyrxRoFqo3+CtJI8L1 Q1gx/NCSvQk4Z4IquXDmJdCpuH4EcX3LKwxbxZYh8secssP9w3SoyWPMxzZ8vg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764016; a=rsa-sha256; cv=none; b=cSEG3C5ZvhzzxQsHtQEUSRB8S2gB8w3dGuwFvKNMq9mmV2eEMLPotmLTkJCUGugZ8kMadl hZc2uetcGzevNgJwI2/YmK5EnuF2vwgrFqdVwN+NfKijJrKI5H4q1agAH1izManb1bbhJ9 7bf4nEyN5SzLzO2evnjm1fuT7Tio6iixrzUxi55Nf6+85zLNdHWUFakayGvDh9o4R33Xce zKVrWU1S3vHB6/4D3yeEMRBlQYvMb8jVHEJA1lB2ZLtRZKe1XYfir4kwncB7H/4VQVgUEP srQEKSjqjzBM35qN49JRuUOG1PsBGldXkq7mAN9WLIAcW2hLHAoD3k+gJ62MAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U+gfVE7STb4IDFBixMypTacmQVsHX6P1kugRK5fO0jQ=; b=TXAkPGdz02DpYpPRTQYu8RH8WcAzt/4F3kMoMpFQFV0DyZygyq2MTuIhxBiFhQpJLjaLiC qYp+91dqHpEFvh0hvrXA+5uWp49eTYjpRYob5+EcbqOXHCBTeK7P0SzdkhtBSOko2N4Lrz 6L5Mr7YtSJ4Ka3jzLqFinikfO6xjQcI8rWvSzN+xW0Hs6Yg+mGmDrKEE+6r0b7HsPhXNp9 dqyLw2x3mlVSAJZNvffw5MgO5u+Yz+MpIoMfGDfKnlNKqiEtnyYZIMzaQAV896GGktd0Wo l3Xs5dz397cTcWEey/4ZE2lOYTjNxXgtmOxwtXTfxNC92R6l9SE0bsEZotoN0A== 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 4TYYWh2Fwpzjng; Mon, 12 Feb 2024 18:53:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIra5d030365; Mon, 12 Feb 2024 18:53:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIra1Q030362; Mon, 12 Feb 2024 18:53:36 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:36 GMT Message-Id: <202402121853.41CIra1Q030362@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: a78bc42bcc31 - main - reboot: Disallow -k and -r, it doesn't make sense. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: a78bc42bcc31f04fdb3319f7b11c6d8da5a30bee Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a78bc42bcc31f04fdb3319f7b11c6d8da5a30bee commit a78bc42bcc31f04fdb3319f7b11c6d8da5a30bee Author: Warner Losh AuthorDate: 2024-02-12 18:44:43 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:44:43 +0000 reboot: Disallow -k and -r, it doesn't make sense. When we're re-rooting to a new /, there is no next kernel. Error out rather than leaving a timebomb in /boot/nextboot.conf. Sponsored by: Netflix Reviewed by: kevans, kib, emaste Differential Revision: https://reviews.freebsd.org/D43800 --- sbin/reboot/reboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 7daf38b88a3e..90c67caf9d07 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -115,6 +115,8 @@ main(int argc, char *argv[]) errx(1, "-c and -p cannot be used together"); if ((howto & RB_REROOT) != 0 && howto != RB_REROOT) errx(1, "-r cannot be used with -c, -d, -n, or -p"); + if ((howto & RB_REROOT) != 0 && kernel != NULL) + errx(1, "-r and -k cannot be used together, there is no next kernel"); if (geteuid()) { errno = EPERM; err(1, NULL); From nobody Mon Feb 12 18:53: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 4TYYWj5Bt2z5BMZ1; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWj4Flyz4mTn; Mon, 12 Feb 2024 18:53:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yPtcyehJKKJIsc3vsv9MC0c62+SOSuRCRYUFv/T48qI=; b=X5hlxQwzW5y83IJlqIo5QJRrzskcVCYE+V0NKNScXUdzOVaMXJVUgxPiXs7bu58J+4O3WM ytgwCZdE6rJaPoXRYPHN0t9IObilgb1yVuyn3ur3hAE3B8Vd6g2AkBUm8ft50McD36ZAIr OABzLjRn1GeayEsI6pN3NFveFS3jZhPz14EJfBa2ZSUo1ZK4n+hMXLhZCL52yu4fkQGWjc DyxZdTTlGGOloiwYMwaVB9Z3ovv9MiahANLBV1/CwVCM9bTR5A24g8zm1hB26AUzwhPAY+ +12kBlpr0/1vr4JSo7hRxSW8ozc1fFrwcZux//YUdmI4C1FEbpAWlNCv6vixIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764017; a=rsa-sha256; cv=none; b=LlLv0/pvJnEeE0XfSBeuY4Iz/tQ8snCPzj2Y4rc5qBgAX00GPqiOm0OUAgxRNKARtmKOpl YI9R3+jvqPvNEXNfxVNnlrzliuVxsKm82qO2Y2sJh6kygvYyQzSKObHapAEXskaTFbtm8c UZ4TTYBEamjrwGYH2TbT6HQb6o+ELYpUAD7ZWFfBeTwQyHELIjOhaNzaRG2n6RTn8hP0Pl vpZB3Wpo8bDeLvzvrx7vrdyUlE7P4ap1yv14kNKjfhxBVU55OYmEuuJYN349Hg8YeBW1jQ IxWTTIj6Hb9gnkCpRncDcauzrpIvRyHtMHRmPR/mRj9yJcRbt2vjKtMaGjB0Hw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yPtcyehJKKJIsc3vsv9MC0c62+SOSuRCRYUFv/T48qI=; b=yxoYZhApczYByBbOohmLWaf7XQukscSEEFuHooL0pekHAktvK+0JaRMh+JSm0fvtPjf0ML +N4/uNPNhpFLIXO7KTbvZD5SfPa2p153fwXl7LloZ8581z67rfzN0MlbOExoOhyt0mma/f +Z7KqddoLGaBdg8Zbbvb7cGN8UBz4IJTDWiHiWYFmClQ5QD6EAsm2IBnN29d4fHR08O521 BtJWm/8xPan2fzXx/Yx7rXsn3DJ1xwz1akvC5SJOan9U33+Hh+LlOSKgn2X5J3rRUImeYY XTHscYDAFhpUkIkOC+JGrzP79rWhLn7E9dPGDRPqiTXGkIy8eKsRSe5SqaFPRA== 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 4TYYWj31k6zjKD; Mon, 12 Feb 2024 18:53:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrbLs030409; Mon, 12 Feb 2024 18:53:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrbWV030406; Mon, 12 Feb 2024 18:53:37 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:37 GMT Message-Id: <202402121853.41CIrbWV030406@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: 7a3210f2ac09 - main - reboot: convert flags to bools 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 7a3210f2ac09c36f46314a98942a29765e99d848 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7a3210f2ac09c36f46314a98942a29765e99d848 commit 7a3210f2ac09c36f46314a98942a29765e99d848 Author: Warner Losh AuthorDate: 2024-02-12 18:44:52 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:44:52 +0000 reboot: convert flags to bools Convert all the command line flags to bools, since that's how we use them. Sort the includes while adding stdbool.h. Sponsored by: Netflix Reviewed by: kevans, kib, emaste Differential Revision: https://reviews.freebsd.org/D43801 --- sbin/reboot/reboot.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 90c67caf9d07..7dcebef69b85 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -35,38 +35,40 @@ #include #include -#include #include #include #include #include -#include +#include +#include #include #include #include +#include #include #include static void usage(void) __dead2; static uint64_t get_pageins(void); -static int dohalt; +static bool dohalt; int main(int argc, char *argv[]) { struct utmpx utx; const struct passwd *pw; - int ch, howto, i, fd, lflag, nflag, qflag, sverrno, Nflag; + int ch, howto, i, fd, sverrno; + bool lflag, nflag, qflag, Nflag; uint64_t pageins; const char *user, *kernel = NULL; if (strstr(getprogname(), "halt") != NULL) { - dohalt = 1; + dohalt = true; howto = RB_HALT; } else howto = 0; - lflag = nflag = qflag = Nflag = 0; + lflag = nflag = qflag = Nflag = false; while ((ch = getopt(argc, argv, "cdk:lNnpqr")) != -1) switch(ch) { case 'c': @@ -79,21 +81,21 @@ main(int argc, char *argv[]) kernel = optarg; break; case 'l': - lflag = 1; + lflag = true; break; case 'n': - nflag = 1; + nflag = true; howto |= RB_NOSYNC; break; case 'N': - nflag = 1; - Nflag = 1; + nflag = true; + Nflag = true; break; case 'p': howto |= RB_POWEROFF; break; case 'q': - qflag = 1; + qflag = true; break; case 'r': howto |= RB_REROOT; From nobody Mon Feb 12 18:53: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 4TYYWl0vKVz5BMcP; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWk5DF8z4mF8; Mon, 12 Feb 2024 18:53:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9++syLeivXcZyoQ2rrn8xYNTk+vGI88aoJQ+R1tkrFw=; b=mRJI8AxvmFN5dl+TUi2A0tpVayhKQS0m38GK1LmCaK3mGVFvDhs3zXGDLiuQ6RDxr5O/nv Z0MJ3DACLi3l0iIupGaYk7H2KAnyERD1C4TtkgbwEmsSlUUGEaURgYsodOuuwNKi9oriFY 5FuYHGRFuq0zpdoMXId5fzKwG6vIrNKCQBJKkjdQSjw4QOp+V9GfO5phYMe5wDuVIlZ5rN bRGKlEjpfZqauMrHQ0uKGzE9UhfKdnz2IFPK88UR55LgLGceDrNyP/u5tAGSavzlf6cv9C qH0D4/LG+9Tdkk+HQEatE/VlPU8TPYb5GRxH3+CYOZbuLvxjIqtzw4VSnbuwbA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764018; a=rsa-sha256; cv=none; b=SI4GgIMzT4dS9CPArabSszFioSN5iQ+Gjtgt/o0MXuG6hMrJw3ibOj/a6oZb2mZ6yxkUK/ HyI3NNdqexFkIamSgRYCy0JPoV32TyyyTDrqJuian+sWk0zOhoQ4gHrn4CnwL0X2gTybL9 +CIJtTmiSPES5Pym7saO95bw6Qhz6oT6qSYPvze61wnfMuzvuzqCqye56d89DJmvbaXe/e qAjMaLlKugqfsbDEUUHRxbPEup9sCzCoqSJMdN4VDw5wcLiltjo7nrNYXzhwKr/4BtXQwl ivKZFdFvMtbCy8UqFELN/kkZVqyoATAewcQewhAaYJ6aHdywNu1FaYAQhVT4Vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9++syLeivXcZyoQ2rrn8xYNTk+vGI88aoJQ+R1tkrFw=; b=U0c/LV1wFKnZRoGMsXb7BXE0IFlMiW0G5ALjNp6lEVqxoG0AFsWR58XWbOK0A6Ven8+3Qc QOygXt60L1sVuWXROF/+84qIhEp42fCRuQ9Kdvh5J3ESGP/LlTe6vq5YwVKbafYb++9bzQ VLfVtjqfmoRHFYJY/PpiEWbhUaryt3wO8caikrq8HGFDbEPDA5LzSCeoacs5tJIhYQFwJg +K07c6Xa59112aA0TFPjXgVBRvl7pOOGUVf53Yw5Ni20NsCLAAW9UYlESYJ9qFbM51hV/M b8Kf5i7LdnT1YfzpFJx4yrq7dAkRNYg7TPkvMRVgVTGeU/ruNSsrvPzy558Dhw== 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 4TYYWk4KN8zjQY; Mon, 12 Feb 2024 18:53:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrcQu030465; Mon, 12 Feb 2024 18:53:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrcrj030462; Mon, 12 Feb 2024 18:53:38 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:38 GMT Message-Id: <202402121853.41CIrcrj030462@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: 7cb1a0e6e064 - main - reboot: Don't reboot if the next kernel isn't there 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 7cb1a0e6e0643cb80308f45e2cce2d127ada3c8f Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7cb1a0e6e0643cb80308f45e2cce2d127ada3c8f commit 7cb1a0e6e0643cb80308f45e2cce2d127ada3c8f Author: Warner Losh AuthorDate: 2024-02-12 18:45:01 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:45:01 +0000 reboot: Don't reboot if the next kernel isn't there reboot -k garbage won't boot garbage unless /boot/garbage/kernel is there. Refuse to reboot if it is missing, though allow -f to force it for special-use cases. This is in keeping with nextboot.sh. Sponsored by: Netflix Reviewed by: kevans, kib, markj, emaste Differential Revision: https://reviews.freebsd.org/D43802 --- sbin/reboot/reboot.8 | 33 +++++++++++++++++++-------------- sbin/reboot/reboot.c | 21 +++++++++++++++++++-- 2 files changed, 38 insertions(+), 16 deletions(-) diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8 index e9a23ef84d69..0a2fb91b6b0b 100644 --- a/sbin/reboot/reboot.8 +++ b/sbin/reboot/reboot.8 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 20, 2017 +.Dd February 8, 2024 .Dt REBOOT 8 .Os .Sh NAME @@ -36,16 +36,16 @@ .Nd stopping and restarting the system .Sh SYNOPSIS .Nm halt -.Op Fl lNnpq +.Op Fl flNnpq .Op Fl k Ar kernel .Nm -.Op Fl cdlNnpqr +.Op Fl cdflNnpqr .Op Fl k Ar kernel .Nm fasthalt -.Op Fl lNnpq +.Op Fl flNnpq .Op Fl k Ar kernel .Nm fastboot -.Op Fl dlNnpq +.Op Fl dflNnpq .Op Fl k Ar kernel .Sh DESCRIPTION The @@ -83,17 +83,22 @@ This option is supported only when rebooting, and it has no effect unless a dump device has previously been specified with .Xr dumpon 8 . -.It Fl k Ar kernel -Boot the specified -.Ar kernel +.It Fl k Ar kname +Boot the specified kernel +.Ar kname on the next system boot. -If the kernel boots successfully, the +This is a one-shot option, the .Em default -kernel will be booted on successive boots, this is a one-shot option. -If the boot fails, the system will continue attempting to boot -.Ar kernel -until the boot process is interrupted and a valid kernel booted. -This may change in the future. +kernel will be booted on successive boots. +No +.Nm reboot +or +.Nm halt +will be performed if +.Em /boot/kname/kernel +does not exist unless the +.Fl f +flag is specified. .It Fl l The halt or reboot is .Em not diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 7dcebef69b85..4eb5e8590589 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -59,7 +60,7 @@ main(int argc, char *argv[]) struct utmpx utx; const struct passwd *pw; int ch, howto, i, fd, sverrno; - bool lflag, nflag, qflag, Nflag; + bool fflag, lflag, nflag, qflag, Nflag; uint64_t pageins; const char *user, *kernel = NULL; @@ -68,7 +69,7 @@ main(int argc, char *argv[]) howto = RB_HALT; } else howto = 0; - lflag = nflag = qflag = Nflag = false; + fflag = lflag = nflag = qflag = Nflag = false; while ((ch = getopt(argc, argv, "cdk:lNnpqr")) != -1) switch(ch) { case 'c': @@ -77,6 +78,9 @@ main(int argc, char *argv[]) case 'd': howto |= RB_DUMP; break; + case 'f': + fflag = true; + break; case 'k': kernel = optarg; break; @@ -130,6 +134,19 @@ main(int argc, char *argv[]) } if (kernel != NULL) { + if (!fflag) { + char *k; + struct stat sb; + + asprintf(&k, "/boot/%s/kernel", kernel); + if (k == NULL) + errx(1, "No memory to check %s", kernel); + if (stat(k, &sb) != 0) + err(1, "stat %s", k); + if (!S_ISREG(sb.st_mode)) + errx(1, "%s is not a file", k); + free(k); + } fd = open("/boot/nextboot.conf", O_WRONLY | O_CREAT | O_TRUNC, 0444); if (fd > -1) { From nobody Mon Feb 12 18:53: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 4TYYWm06Wdz5BMWk; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWl6F6Qz4mFT; Mon, 12 Feb 2024 18:53:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uQ5eyEaHaAOnO9M3xALXtp5jLe9ARdaEMW3DBp/kkgw=; b=t6sZoPQ2qSx0tV2kqdawyN0DVq/bknEDFtE16VuXWmB7/Py+brrlD+w/DEZrddREfOmReG a1yUPHiTCkdLpLph5bY06g7/O9/6VOt1tMXiJpctWprIZziS+lEGYEV1Hp0pbna4KM3oO/ YZXkoPWLMG2N2YrtA42RYe4VCoxs4g47czvXZ4kfyd3r7VltnvhcQOBsknebSobRWNhwlM i7W+QdimA2mRES/3tylk7uEqUA8IskMMMeQBHVZ5hSD267AFqQSwn50r/ul+HCQjNzrb8d YeLPkJ8LjrBctsUem6Q2XSMGrpsim5+NqC6Ny5b1dZ/+Y5fZnNSwzSmnGpBshg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764019; a=rsa-sha256; cv=none; b=hneEEsSetP6yan8HmS6rrD8mPyP8fYcJtJn54c0eMy7+/ZoBKnoUT3kFdaNF7AMwa7Ddm7 0YDSmVlw4W51IA/ueJtgV0v7a+1slyF4D20QfARrSQUTlXlGt8/TtCvuFChAntFIQZ0F+T TTmKfPKjRILcK2vFCONSsHM+DSlyzJXPQvoT2pGkgK7FQ5MrMTntdXs+nhgfm7N65gpko8 7h1umqLa0RiSnskdWKa2OAhY1Agri16hpdkd6mt+POP6fJD+LIGsgrAaGrp0TMoGsDcc9L OaQqOOeD9J6VzUpXZaSqYCF5RlsL0DwRsWJZhZ1XufH5f1DfiYmz6XbbjDx/tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uQ5eyEaHaAOnO9M3xALXtp5jLe9ARdaEMW3DBp/kkgw=; b=Jqa8n7bftxnkn5NJlXNqFDCWICLhyS0G/9A5wAjkR6KqH+Na63kDjKwWaNCMl3+QI59/KU 0ktCUaZ2LoERX1xAZgmDCwR2wz0oeFhyDnfDlti9JBR8Lz/dXHPzKLiGCpz2dDQxZ6CUK1 2Nc2DWocbe1V+8fY4Fn3DyV7hJp6Bzc9yeFhGjB7BMEI9giMAiflU1/68gSRfnzYsxQNYo BELtqAcE6G3zsVjhusn6y10+7F2VMO4HUrOkL2vXNd3oRxP7x9ZroXvxcXIf6Y7mnZ5wxF ElbwclSlGtBEHM77KEQlAvYhsenMNiFQHvSOqvrkIBW6pcmKOoEZObno56St4Q== 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 4TYYWl5L27zjqh; Mon, 12 Feb 2024 18:53:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrd5a030525; Mon, 12 Feb 2024 18:53:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrdiP030522; Mon, 12 Feb 2024 18:53:39 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:39 GMT Message-Id: <202402121853.41CIrdiP030522@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: cfeedadfbde0 - main - reboot: Add sanity checking of write to nextboot.conf 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: cfeedadfbde084e25ace99a370f3f417b78f5df7 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=cfeedadfbde084e25ace99a370f3f417b78f5df7 commit cfeedadfbde084e25ace99a370f3f417b78f5df7 Author: Warner Losh AuthorDate: 2024-02-12 18:45:20 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:45:20 +0000 reboot: Add sanity checking of write to nextboot.conf Add sanity checking to the write to nextboot. Move to separate function and allow force to override all errors. If we can't write nextboot.conf, don't silently fail anymore. Sponsored by: Netflix Reviewed by: kevans, kib, markj, jhb Differential Revision: https://reviews.freebsd.org/D43803 --- sbin/reboot/reboot.c | 47 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 4eb5e8590589..74f8cf01b3b7 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -49,17 +49,52 @@ #include #include +#define PATH_NEXTBOOT "/boot/nextboot.conf" + static void usage(void) __dead2; static uint64_t get_pageins(void); static bool dohalt; +static void +write_nextboot(const char *fn, const char *kernel, bool force) +{ + FILE *fp; + +#define E(...) do { \ + if (force) { \ + warn( __VA_ARGS__ ); \ + return; \ + } \ + err(1, __VA_ARGS__); \ + } while (0) \ + + fp = fopen(fn, "w"); + if (fp == NULL) + E("Can't create %s to boot %s", fn, kernel); + + if (fprintf(fp, + "nextboot_enable=\"YES\"\n" + "kernel=\"%s\"\n", kernel) < 0) { + int e; + + e = errno; + fclose(fp); + if (unlink(fn)) + warn("unlink %s", fn); + errno = e; + E("Can't write %s", fn); + } + fclose(fp); +#undef E +} + int main(int argc, char *argv[]) { struct utmpx utx; const struct passwd *pw; - int ch, howto, i, fd, sverrno; + int ch, howto, i, sverrno; bool fflag, lflag, nflag, qflag, Nflag; uint64_t pageins; const char *user, *kernel = NULL; @@ -147,15 +182,7 @@ main(int argc, char *argv[]) errx(1, "%s is not a file", k); free(k); } - fd = open("/boot/nextboot.conf", O_WRONLY | O_CREAT | O_TRUNC, - 0444); - if (fd > -1) { - (void)write(fd, "nextboot_enable=\"YES\"\n", 22); - (void)write(fd, "kernel=\"", 8L); - (void)write(fd, kernel, strlen(kernel)); - (void)write(fd, "\"\n", 2); - close(fd); - } + write_nextboot(PATH_NEXTBOOT, kernel, fflag); } /* Log the reboot. */ From nobody Mon Feb 12 18:53: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 4TYYWn1ntpz5BMfr; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWn0B20z4m3g; Mon, 12 Feb 2024 18:53:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C6Df42PcBBD+Wh0mqmKRIPZuUTJERO8U5or1j2h+rQw=; b=qEL18ZdC1FaNF+YwKmMkBoj4TgKBpNR3eZbdje8L6zZcb3TexkGzz9bOMBSYZAl2/d6LFz LqbQBBAAvjB5ThQPhjDZsMvLONCQfPUKOTqfdQiydVLyyNPbHXQwMLxEkJSqkcpq5TB/dZ 7lApaXpLdSQc3KPltzxS3sOyBhS5BAaAkwvsbJswZfkg2rT0u82JE3442fLByn2urTbgN9 pX15Xidjlod6PP5zsFTkD7TmEX7hK4kZWUmfbPnkgQQ8hjWG0+68xBJxrp28rhJB865Yz4 WCaFrt/XCveqOyL6m0SyIJRoYgv+rRtua3EdjmJHcAUlkPw+q5K3UU/GFNg1Eg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764021; a=rsa-sha256; cv=none; b=YYcnpO4op2bkRa/1NWqhnidysX0zjzdMoR7sJdSdbUynz4x96O66ykfo8UslC6lXHTbpG6 KHklIDBdt+RsosOlFPXeL9U7qhhcazFrqa6U5ukbHC0DbuNfuuAsDlOrpGHWNsJliF1D9t 3bAUAgUI6N50aAsr0cd9l0ojN+y4cx8fNhGYUi6sCjsFCQRc9hC7KlE95wNipV6d3XUkjn LHxelxacFC1E9IuifDz+DVa7y+zJLNbDDLBnw6y22EG3jj7Y2HJoKSPndpHsPRQ9dpxWhR ALJ6UEFbX2tThjfWdxIOAGvGCFzVWoWdRViGI4y26CvOIeW4+MvAYyaIBc1Giw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C6Df42PcBBD+Wh0mqmKRIPZuUTJERO8U5or1j2h+rQw=; b=ZAt8aAecNdiVrzOtqfxu/SL5zJrCKuEOfshHavF5puaL8OfpRZAf19sDemaeOGteix+pKg xDf41V0JTlr3W70LyA3brU3FUdIEJK4gYhiTApQPY4IVRhTGIVkgh83uUjxx8uzlK/NJce nLINZNczU0i3LRFzjqDhesqFcArcu3Q5kID3Vm4DCZ9qypx2V/qOexv7zzjVKZnPWQ7Pvy eS92igb7nne0gdJP3mGzvE1LWfhg5mjedCmoC7HFGFPgdpeLwQTy/xbh1JiOBQ4ZW72N+1 I0znSlVbhuI+jlr/WbB6Kh53PH0N0PBoL35GyYUQfrG4b1g6gwvC033UH5Axxg== 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 4TYYWm666BzjcH; Mon, 12 Feb 2024 18:53:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIres7030568; Mon, 12 Feb 2024 18:53:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIreLA030565; Mon, 12 Feb 2024 18:53:40 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:40 GMT Message-Id: <202402121853.41CIreLA030565@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: 2c479548119a - main - reboot: Implement -D from nextboot 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 2c479548119a11058fe8947ba021fd49d4169920 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=2c479548119a11058fe8947ba021fd49d4169920 commit 2c479548119a11058fe8947ba021fd49d4169920 Author: Warner Losh AuthorDate: 2024-02-12 18:45:29 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:45:29 +0000 reboot: Implement -D from nextboot Implement -D from nextboot.sh which deletes the nextboot.conf file and exists. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43822 --- sbin/reboot/reboot.8 | 12 ++++++++---- sbin/reboot/reboot.c | 17 ++++++++++++++--- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8 index 0a2fb91b6b0b..e53de69e97ae 100644 --- a/sbin/reboot/reboot.8 +++ b/sbin/reboot/reboot.8 @@ -36,16 +36,16 @@ .Nd stopping and restarting the system .Sh SYNOPSIS .Nm halt -.Op Fl flNnpq +.Op Fl DflNnpq .Op Fl k Ar kernel .Nm -.Op Fl cdflNnpqr +.Op Fl cDdflNnpqr .Op Fl k Ar kernel .Nm fasthalt -.Op Fl flNnpq +.Op Fl DflNnpq .Op Fl k Ar kernel .Nm fastboot -.Op Fl dflNnpq +.Op Fl dDflNnpq .Op Fl k Ar kernel .Sh DESCRIPTION The @@ -77,6 +77,10 @@ driver implements the power cycle functionality and only on hardware with a BMC that supports power cycling. Unlike power off, the amount of hardware that supports power cycling is small. +.It Fl D +Delete existing +.Nm nextboot +configuration and exit. .It Fl d The system is requested to create a crash dump. This option is diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 74f8cf01b3b7..d91fc6c97b0f 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -95,7 +95,7 @@ main(int argc, char *argv[]) struct utmpx utx; const struct passwd *pw; int ch, howto, i, sverrno; - bool fflag, lflag, nflag, qflag, Nflag; + bool Dflag, fflag, lflag, Nflag, nflag, qflag; uint64_t pageins; const char *user, *kernel = NULL; @@ -104,12 +104,15 @@ main(int argc, char *argv[]) howto = RB_HALT; } else howto = 0; - fflag = lflag = nflag = qflag = Nflag = false; - while ((ch = getopt(argc, argv, "cdk:lNnpqr")) != -1) + Dflag = fflag = lflag = Nflag = nflag = qflag = false; + while ((ch = getopt(argc, argv, "cDdk:lNnpqr")) != -1) switch(ch) { case 'c': howto |= RB_POWERCYCLE; break; + case 'D': + Dflag = true; + break; case 'd': howto |= RB_DUMP; break; @@ -148,6 +151,8 @@ main(int argc, char *argv[]) if (argc != 0) usage(); + if (Dflag && ((howto & ~RB_HALT) != 0 || kernel != NULL)) + errx(1, "cannot delete existing nextboot config and do anything else"); if ((howto & (RB_DUMP | RB_HALT)) == (RB_DUMP | RB_HALT)) errx(1, "cannot dump (-d) when halting; must reboot instead"); if (Nflag && (howto & RB_NOSYNC) != 0) @@ -163,6 +168,12 @@ main(int argc, char *argv[]) err(1, NULL); } + if (Dflag) { + if (unlink(PATH_NEXTBOOT) != 0) + err(1, "unlink %s", PATH_NEXTBOOT); + exit(0); + } + if (qflag) { reboot(howto); err(1, NULL); From nobody Mon Feb 12 18:53: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 4TYYWp3RLBz5BMfs; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWp1LjZz4m25; Mon, 12 Feb 2024 18:53:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=v1HmO89g20G9+4/Vx5pTy1LnhgkF6U98iPdED5Zgqp8=; b=HaeveTalokkTBuayvKV1Xa+VcpTNjHnO4DlPuZuke8f36VrMWvjgxHVpZXDTKPcqW6LRR2 J2aENfk+nSE/aKxR6GgTQ3GI0dAY/2pA7wI8YU7Zsh3t454WpO6FFxu2ageag90Oa2Gn/f JNytgBLyWY5s0HiSpc6Ny53nmH2Ql/Cd9X4DV0xBgIlHJ05e3qfqYufpSiZ/QK9yyIx+rF j0TajXOM9mB67OT3NkKeo/V2tGH0GDZao2uLPSrIb+5UCTtNXpI+cZysdEi8dIz9bs6OSF aVB4FHnBvWuKYqYZPXD2cIXj7r9b0Q1Gx2zVLTpOLAlm0xhpSYyZdBhOVzzrHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764022; a=rsa-sha256; cv=none; b=FJ71tbYuUcRhXvabXBSHZNCn9DJyXz+Pp7rUYhoSmW0jAGb4W9mUB2hUTffZYg/BKG/+A9 3TmCK1LRV4bWoywWSOauyzqVLd45cSl6d1z7PSpiVbeWYMXBP6kKiRfyw8GV1wOET1AoEM 7FMsJD+2owo1ZG9kdWhX9M/JHgNu7yKRdf/6IpT4zxwR9W1P+cB9pLNgHQtb3NGETLlbO6 6A+bZ47W+eBgpcqEIq/sSrPtV46C/AmwgqhdWVkIJ+qNBAbLAHNJnIyLKzxF80+5o42yMH 6A/7CXA/qMBFzTapiYWi3NMy3Im4q91150mNn+AjeE8cqjxP4c4PwVhLQd0AfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=v1HmO89g20G9+4/Vx5pTy1LnhgkF6U98iPdED5Zgqp8=; b=AGUih8nIylP8gESuDY1zeb0Xirs2eUeugbwLt8pgRF9vk0ywvw4MrmXTAUXGNBoC3x4T9+ XOhxHCv8JVqBoPyI1W6p+2QFErweJU7LJHk3m9wXEXOVDeRbIjtOJMWEjWK9Ps0BQQYCgB H5aE/5Z1r6vzi54Gi2yJq5uw1xjVyQtLgMaUTDxf1DUBnS6L8S//sQWcpmuJU9ha7cWBv5 HqjBQEzCtScfNNhRQoho9qy9EQJxRqxEd8ghXl4IJUDYyH1aeXR/bXAWkhiaTRIrLv89nU ASf+8hLGM56m9mT+zgvFccX7CPq4fGWkMXhhIFk2hax0B8C/ZqO6+PhaZsQWMw== 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 4TYYWp0Blwzjqj; Mon, 12 Feb 2024 18:53:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrfZm030607; Mon, 12 Feb 2024 18:53:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrfdp030604; Mon, 12 Feb 2024 18:53:41 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:41 GMT Message-Id: <202402121853.41CIrfdp030604@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: 0df5f65908dd - main - reboot: Implement zfs 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 0df5f65908dd1913212535e6c4dd4c73ce19c305 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0df5f65908dd1913212535e6c4dd4c73ce19c305 commit 0df5f65908dd1913212535e6c4dd4c73ce19c305 Author: Warner Losh AuthorDate: 2024-02-12 18:45:37 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:45:37 +0000 reboot: Implement zfs support Implement full support for ZFS -k support. For ZFS, we have to set a property that gets cleared by the boot loaeder for whether or not to process nextboot.conf. Do this using system("zfsbootcfg..." rather than coding the small subset of that program inline to avoid CDDL contamination of reboot and the complications of disabling CDDL and/or ZFS. The few bytes needed to implement reboot for systems with zfs is not worth saving for systems w/o ZFS. Only set nextboot_enable=YES for UFS filesystems. They are the only one that need that as the first line. Its presence on ZFS can cause the kernel to not be oneshot. Sponsored by: Netflix Reviewed by: kevans, kib Differential Revision: https://reviews.freebsd.org/D43824 --- sbin/reboot/reboot.c | 58 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 49 insertions(+), 9 deletions(-) diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index d91fc6c97b0f..d598c857d255 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -31,6 +31,7 @@ #include #include +#include #include #include #include @@ -56,11 +57,6 @@ static uint64_t get_pageins(void); static bool dohalt; -static void -write_nextboot(const char *fn, const char *kernel, bool force) -{ - FILE *fp; - #define E(...) do { \ if (force) { \ warn( __VA_ARGS__ ); \ @@ -69,13 +65,58 @@ write_nextboot(const char *fn, const char *kernel, bool force) err(1, __VA_ARGS__); \ } while (0) \ +static void +zfsbootcfg(const char *pool, bool force) +{ + char *k; + int rv; + + asprintf(&k, + "zfsbootcfg -z %s -n freebsd:nvstore -k nextboot_enable -v YES", + pool); + if (k == NULL) + E("No memory for zfsbootcfg"); + + rv = system(k); + if (rv == 0) + return; + if (rv == -1) + E("system zfsbootcfg"); + if (rv == 127) + E("zfsbootcfg not found in path"); + E("zfsbootcfg returned %d", rv); +} + +static void +write_nextboot(const char *fn, const char *kernel, bool force) +{ + FILE *fp; + struct statfs sfs; + bool supported = false; + bool zfs = false; + + if (statfs("/boot", &sfs) != 0) + err(1, "statfs /boot"); + if (strcmp(sfs.f_fstypename, "ufs") == 0) { + /* + * Only UFS supports the full nextboot protocol. + */ + supported = true; + } else if (strcmp(sfs.f_fstypename, "zfs") == 0) { + zfs = true; + } + + if (zfs) { + zfsbootcfg(sfs.f_mntfromname, force); + } + fp = fopen(fn, "w"); if (fp == NULL) E("Can't create %s to boot %s", fn, kernel); - if (fprintf(fp, - "nextboot_enable=\"YES\"\n" - "kernel=\"%s\"\n", kernel) < 0) { + if (fprintf(fp,"%skernel=\"%s\"\n", + supported ? "nextboot_enable=\"YES\"\n" : "", + kernel) < 0) { int e; e = errno; @@ -86,7 +127,6 @@ write_nextboot(const char *fn, const char *kernel, bool force) E("Can't write %s", fn); } fclose(fp); -#undef E } int From nobody Mon Feb 12 18:53: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 4TYYWq30PQz5BM4f; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWq1nzcz4mG7; Mon, 12 Feb 2024 18:53:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0iI0NhWUtTByPPgG0VaSvmMDVMq1dFOh4B7d4YS7abY=; b=woG7qZYg4f7qkbQKeigFCOsyYFpA0dPjM1DhnAUKCelfL//LcoPUkC9sI9aPnOE6uj1LRy tV1K52tcpZmpzw+F7Qhj9Dw+EgtasVai7n66u8gS9lF868VnpHhKZTV+Ea1GM4hE+lTIkO JC+N2MwI3drt9xQf0ALJoWO7xeaPagh2YTT5CyrBI+4FWsLkJeujg/MRkwOpn/QLV38WLc 9KAaMfWi84SN2MkKmXsPjkRe8pm6OJJuhi+bSTJTaFmEwDQqikg7BPRVnn9wyP47XQNC5j P1EiZ98kDazc6yuDwqOTc6MXHiDVHH8Hyv/qJVuu3KPwjgHt4x3/NQfuXvDkuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764023; a=rsa-sha256; cv=none; b=UtjAnrnK3a9L0+eSgyi6dIEILDRoArkiFnu1iIQSGkVxT9NBv9L10WYJyaysMVhywBq9BK Qm2Ko5aR/2HkQtWVI3rAslp7oskYqi/nADQyGuLQQfd1RwedREm/f9+IATb+V8R/2M960q dHdWB6/tDupGvAv9vdb1pzIQdU2qlt4XI0yYS1OWsuvT4PLEmPztXANb2hNJR8zhfCXcNx IXCkwpxKd78soSLIKKuyKR2KQ7S+hSf2sJNaK6w/maQsHenVl9VzQhYAnUCrsZaKEYpj/O vAKMoHPCYhw1ADSYEywM7xLMeUqjxAktnnFkwPW5QAsMhqusAgkmheH4XNUcpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0iI0NhWUtTByPPgG0VaSvmMDVMq1dFOh4B7d4YS7abY=; b=BVY5+gQNmUnSAInjL+0n9pZjBI1FfWfkJ0MNj5rB0PpYG3LKmZvEHE/TH28T7TBJ9w7HRn AYgIgIo/lDpCNJpBhdRQae7mWftxycg68kapO6aEwLqnNNzpAVHFI02ZMzQxzrSyQcW6KS 7igYPhJW5sJ4fUD80LmOS1Ys4QJ0LPsI9HjSLkQ3CVfA6ILAi1ENcH9ljd3rJwR9pQnzDs SOXj6wRfezdtEsSer0L29gFs97nogkcNdH4THCfAhypKFADJWbcR4a78wpsbBEj8gQDQty J36XDwgV+LjP6keJBK1bF8D+txIa2/M46zulJfOqpm0LtTsl6HPRale/GI4PiA== 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 4TYYWq0vLhzjcJ; Mon, 12 Feb 2024 18:53:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrhV5030649; Mon, 12 Feb 2024 18:53:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrhvE030646; Mon, 12 Feb 2024 18:53:43 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:43 GMT Message-Id: <202402121853.41CIrhvE030646@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: ecc834241fc3 - main - reboot: Implement -e from nextboot 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: ecc834241fc3ab23990291e7e99fd05a34af05f1 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ecc834241fc3ab23990291e7e99fd05a34af05f1 commit ecc834241fc3ab23990291e7e99fd05a34af05f1 Author: Warner Losh AuthorDate: 2024-02-12 18:45:48 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:45:48 +0000 reboot: Implement -e from nextboot Implement -e foo=bar to add loader environment variables to nextboot.conf. bar is enclosed in quotes if it isn't already. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43827 --- sbin/reboot/reboot.8 | 19 +++++++++++++++++++ sbin/reboot/reboot.c | 49 +++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 64 insertions(+), 4 deletions(-) diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8 index e53de69e97ae..a60512fa0c59 100644 --- a/sbin/reboot/reboot.8 +++ b/sbin/reboot/reboot.8 @@ -37,15 +37,19 @@ .Sh SYNOPSIS .Nm halt .Op Fl DflNnpq +.Op Fl e Ar variable=value .Op Fl k Ar kernel .Nm .Op Fl cDdflNnpqr +.Op Fl e Ar variable=value .Op Fl k Ar kernel .Nm fasthalt .Op Fl DflNnpq +.Op Fl e Ar variable=value .Op Fl k Ar kernel .Nm fastboot .Op Fl dDflNnpq +.Op Fl e Ar variable=value .Op Fl k Ar kernel .Sh DESCRIPTION The @@ -87,6 +91,21 @@ This option is supported only when rebooting, and it has no effect unless a dump device has previously been specified with .Xr dumpon 8 . +.It Fl e Ar variable=value +Sets +.Va variable +to +.Va value +in the loader's and kernel's environment. +If +.Va value +is not already enclosed in double quotes, they will be added before writing to the +.Nm nextboot +configuration. +Care should be taken if +.Va value +contains any characters that are special to the shell or loader's configuration +parsing code. .It Fl k Ar kname Boot the specified kernel .Ar kname diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index d598c857d255..875f00c01ef9 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -88,7 +88,7 @@ zfsbootcfg(const char *pool, bool force) } static void -write_nextboot(const char *fn, const char *kernel, bool force) +write_nextboot(const char *fn, const char *env, const char *kernel, bool force) { FILE *fp; struct statfs sfs; @@ -114,8 +114,9 @@ write_nextboot(const char *fn, const char *kernel, bool force) if (fp == NULL) E("Can't create %s to boot %s", fn, kernel); - if (fprintf(fp,"%skernel=\"%s\"\n", + if (fprintf(fp,"%s%skernel=\"%s\"\n", supported ? "nextboot_enable=\"YES\"\n" : "", + env != NULL ? env : "", kernel) < 0) { int e; @@ -129,6 +130,40 @@ write_nextboot(const char *fn, const char *kernel, bool force) fclose(fp); } +static char * +split_kv(char *raw) +{ + char *eq; + int len; + + eq = strchr(raw, '='); + if (eq == NULL) + errx(1, "No = in environment string %s", raw); + *eq++ = '\0'; + len = strlen(eq); + if (len == 0) + errx(1, "Invalid null value %s=", raw); + if (eq[0] == '"') { + if (len < 2 || eq[len - 1] != '"') + errx(1, "Invalid string '%s'", eq); + eq[len - 1] = '\0'; + return (eq + 1); + } + return (eq); +} + +static void +add_env(char **env, const char *key, const char *value) +{ + char *oldenv; + + oldenv = *env; + asprintf(env, "%s%s=\"%s\"\n", oldenv != NULL ? oldenv : "", key, value); + if (env == NULL) + errx(1, "No memory to build env array"); + free(oldenv); +} + int main(int argc, char *argv[]) { @@ -138,6 +173,8 @@ main(int argc, char *argv[]) bool Dflag, fflag, lflag, Nflag, nflag, qflag; uint64_t pageins; const char *user, *kernel = NULL; + char *env = NULL, *v; + if (strstr(getprogname(), "halt") != NULL) { dohalt = true; @@ -145,7 +182,7 @@ main(int argc, char *argv[]) } else howto = 0; Dflag = fflag = lflag = Nflag = nflag = qflag = false; - while ((ch = getopt(argc, argv, "cDdk:lNnpqr")) != -1) + while ((ch = getopt(argc, argv, "cDde:k:lNnpqr")) != -1) switch(ch) { case 'c': howto |= RB_POWERCYCLE; @@ -156,6 +193,10 @@ main(int argc, char *argv[]) case 'd': howto |= RB_DUMP; break; + case 'e': + v = split_kv(optarg); + add_env(&env, optarg, v); + break; case 'f': fflag = true; break; @@ -233,7 +274,7 @@ main(int argc, char *argv[]) errx(1, "%s is not a file", k); free(k); } - write_nextboot(PATH_NEXTBOOT, kernel, fflag); + write_nextboot(PATH_NEXTBOOT, env, kernel, fflag); } /* Log the reboot. */ From nobody Mon Feb 12 18:53: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 4TYYWr3k1lz5BMcf; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWr2nNKz4mMD; Mon, 12 Feb 2024 18:53:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o3Hu14qSKKdc4wTuWbtigmcOLpdu1HtYF7fLO0sUPQw=; b=UdO58/PiPV83WXSzVCiaMyWNrkbuZhBukpKwbvbjNbUxgL6F/i8kfDlcjzSJ8k+Z0OuIc5 ii2yNlh+TtIA5yHaPdxtG6P2BQWOgkb73aT3bqVbjFH3wa74vYyiWaZ7uvNumulSoEylj/ WBN2eQ7hCbtLLMSK8rnRDf0TNrJ5kjjM+Bv+TDxarhs8U4TAE/vkadj7nKT4sIZjeAWgIU Ea/G9e8TJLnT4OEL1hZqGjn3GZN8S8+lgPB891OA52sig0qauYhSoe75NzA6T8Dm5HYRA7 bxSv2DTYyano/SsFlMERIdUBTKc5SpGgp6onY0YUo96XQ8Hegv1cdhDBkz9/Hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764024; a=rsa-sha256; cv=none; b=Qrdzv5XUEentADaDj6jcc5IvpvgiFlZx2xuIU3mRzc6v7940GHDYgWEliZA0ixwaFBeJrC 8NEcnsxlDmT1mJmcW1RH7/wnHC31rpuJ8U72SfKb3eDsrTBr7vKw7zVA8ImsqsxoKh1/s/ BIFbtdpz6AQgp0wshXpj2udWruevU49htMSvEY7aKTNUb9fLOzWr4UzF1Z6TPHgPguq9xO Q4u1tDPDmwmZuvX3DBqbt8rK3s4wsK9hpO0SL9EaSDCnjduE6vSuHVwTq2dGf3aBLjiX6D uxe/H43yQKR/ysfbFp22/uXxU9ucUV6dDpyt5IRC8/bprT8WIJYzAv52PvOhDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o3Hu14qSKKdc4wTuWbtigmcOLpdu1HtYF7fLO0sUPQw=; b=WMKWniUnH0SzcotgbPme5Z9Opy57L09/TpSUNBKxQQD7Dn2pRXO5aQLEO6wnTSHLouGdoQ rdKp/a6bRHrYQA3Kpu6/lWXHJvRC9NHkWkfkYZyRgvsF/enDusEySP8aR/M65SVRqxm8QS njPwddRoYp1kTvMdT62XXSLx9b6BHPE9/Cx8e/ta1br96pJR1IpT54lTjdovQIOYgotX0K qanZiq6ufNwPnwFudwg0YyZ3AvkFGTJDDTB2EFJW40Fk6HcYHSKxJgbZUXUhdVGGP1poQB K+K6A76PZR8ia2TS/F9pNfRjh9NMsYqVAJFE7/e2d8KltMBlb8ya+EemfMY8rQ== 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 4TYYWr1tXMzjKF; Mon, 12 Feb 2024 18:53:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIri4h030697; Mon, 12 Feb 2024 18:53:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrixK030694; Mon, 12 Feb 2024 18:53:44 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:44 GMT Message-Id: <202402121853.41CIrixK030694@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: 9dcf6cbd83fd - main - reboot: Implement -k in terms of env 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 9dcf6cbd83fdbf87feadd56b9e8f494e73fa5c39 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9dcf6cbd83fdbf87feadd56b9e8f494e73fa5c39 commit 9dcf6cbd83fdbf87feadd56b9e8f494e73fa5c39 Author: Warner Losh AuthorDate: 2024-02-12 18:45:54 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:45:54 +0000 reboot: Implement -k in terms of env kernel isn't special, beyond the sanity checks we do. Add it to the env rather than pass it into write_nextboot(). Sponsored by: Netflix Reviewed by: kevans, kib Differential Revision: https://reviews.freebsd.org/D43828 --- sbin/reboot/reboot.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 875f00c01ef9..a4be86a4983f 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -88,7 +88,7 @@ zfsbootcfg(const char *pool, bool force) } static void -write_nextboot(const char *fn, const char *env, const char *kernel, bool force) +write_nextboot(const char *fn, const char *env, bool force) { FILE *fp; struct statfs sfs; @@ -112,12 +112,11 @@ write_nextboot(const char *fn, const char *env, const char *kernel, bool force) fp = fopen(fn, "w"); if (fp == NULL) - E("Can't create %s to boot %s", fn, kernel); + E("Can't create %s", fn); - if (fprintf(fp,"%s%skernel=\"%s\"\n", + if (fprintf(fp,"%s%s", supported ? "nextboot_enable=\"YES\"\n" : "", - env != NULL ? env : "", - kernel) < 0) { + env != NULL ? env : "") < 0) { int e; e = errno; @@ -175,7 +174,6 @@ main(int argc, char *argv[]) const char *user, *kernel = NULL; char *env = NULL, *v; - if (strstr(getprogname(), "halt") != NULL) { dohalt = true; howto = RB_HALT; @@ -274,9 +272,10 @@ main(int argc, char *argv[]) errx(1, "%s is not a file", k); free(k); } - write_nextboot(PATH_NEXTBOOT, env, kernel, fflag); + add_env(&env, "kernel", kernel); } + write_nextboot(PATH_NEXTBOOT, env, fflag); /* Log the reboot. */ if (!lflag) { if ((user = getlogin()) == NULL) From nobody Mon Feb 12 18:53: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 4TYYWs6YYYz5BMg4; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWs45Tpz4mcL; Mon, 12 Feb 2024 18:53:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764025; h=from:from:reply-to:subject:subject: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/KwJ+QuV/k2fWc1WOaPcmsEs6V2poO8J4KQnp2Gipw=; b=v684MIP1IbQRSucoP3X/Kltao/PvOOw75V59oDM9Ucxh4RGo7Z62NZIumA4eHaIYpMykgy q61oLyTqp1Nb6jd7NZcIYPv2V0UbF/YhNMIKRKOt0xkq7iWWp8HZGYmyBEeM7+t5KSD5Sw KFpsx5b8l+5OVkHj7awiDOgkTNFgM+3G9jOcbOS1ZNKmorJOPj0+ziz6dVVNOlLqPNfZlj TD7teBzUpXuyytKgNoyi80bAu4ydKzHIqB8Bcn58hD1c1RysoNl0QFBUnlu/g4a+3q9Iyn 9H5Ek3ZJ9JFktPbtjPutNazw4ds3mzqGFRTXzai5hXLPGkOhgUi5P7WVOkiJ6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764025; a=rsa-sha256; cv=none; b=kn7gPS10B2KyLVtiEelxvjABlyIWIUEcp3GKWwCgsSVaMi0MjLo143Cd3LjExbGBzgtwuI 3i+HYLCrTBHO8c1u7PGJjH1vjLgI0rJScgdPAKkL2UjeX/ozW0zBDC1QkfFjYbF8A6BfbG SY8u0ayilbaM3/A3YmvvhS/b9ddiKlE/VeK9U6pqgRuIVoYFiynL66b/lpd1ARRgl2rkf/ nhQcOmtgyv+nPiRQ9VUU4YJMAp7BQ4osEt1QbgU12CgB+nQJGJGyjYTlvYVv8o+GvBB1Ro kiXiCizNU7JqWspm/QhVDnrToB5qW3m4mE6R+6SP3AnWiHRGefn5+i/SFxWQ7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764025; h=from:from:reply-to:subject:subject: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/KwJ+QuV/k2fWc1WOaPcmsEs6V2poO8J4KQnp2Gipw=; b=AXwAqBWh/X3ZLLeIPH4tkNNnZsXy6uElxVRjIl3t8UyKaYf/3pLbfLA34VFl+tS/rgiOCW wMtF1U32KCizUG4RDb4vbOdBZKrGOHYBVF8P+98182JFx8A5sQSpviYDtUaDjuwdUt1VM3 1Ym6LS17KewRGyV+SSkThv7VLk6Amrrixm1cz1cwHxbPk/ni0CzL2CjheCcN+V7V9jsmEP mYSlhnr7XhDOr70I3ATI9tMr0qTcEraxRd27TzUds1GjQnI0hrt+wXQNHvYbZymg5n+f46 P+QNu4ACapbefW7QoUmY37Qq7cp8HlCgdIU1I8glwcnCqMUA7cKsfJiZBfe6Jg== 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 4TYYWs2vsKzjY0; Mon, 12 Feb 2024 18:53:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrjhk030764; Mon, 12 Feb 2024 18:53:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrjDZ030761; Mon, 12 Feb 2024 18:53:45 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:45 GMT Message-Id: <202402121853.41CIrjDZ030761@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: 91d24077024f - main - reboot: Implement -o to set kernel options for next boot 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 91d24077024f5f36069e55b63d237f9034232455 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=91d24077024f5f36069e55b63d237f9034232455 commit 91d24077024f5f36069e55b63d237f9034232455 Author: Warner Losh AuthorDate: 2024-02-12 18:46:03 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:46:03 +0000 reboot: Implement -o to set kernel options for next boot Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D43829 --- sbin/reboot/reboot.8 | 7 +++++++ sbin/reboot/reboot.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8 index a60512fa0c59..ed055327b36a 100644 --- a/sbin/reboot/reboot.8 +++ b/sbin/reboot/reboot.8 @@ -39,18 +39,22 @@ .Op Fl DflNnpq .Op Fl e Ar variable=value .Op Fl k Ar kernel +.Op Fl o Ar options .Nm .Op Fl cDdflNnpqr .Op Fl e Ar variable=value .Op Fl k Ar kernel +.Op Fl o Ar options .Nm fasthalt .Op Fl DflNnpq .Op Fl e Ar variable=value .Op Fl k Ar kernel +.Op Fl o Ar options .Nm fastboot .Op Fl dDflNnpq .Op Fl e Ar variable=value .Op Fl k Ar kernel +.Op Fl o Ar options .Sh DESCRIPTION The .Nm halt @@ -146,6 +150,9 @@ This can happen when devices have been disconnected, such as with .It Fl n The file system cache is not flushed. This option should probably not be used. +.It Fl o Ar options +This option +allows the passing of kernel flags for the next boot. .It Fl p The system will turn off the power if it can. If the power down action fails, the system diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index a4be86a4983f..21acf7514388 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -180,7 +180,7 @@ main(int argc, char *argv[]) } else howto = 0; Dflag = fflag = lflag = Nflag = nflag = qflag = false; - while ((ch = getopt(argc, argv, "cDde:k:lNnpqr")) != -1) + while ((ch = getopt(argc, argv, "cDde:k:lNno:pqr")) != -1) switch(ch) { case 'c': howto |= RB_POWERCYCLE; @@ -212,6 +212,9 @@ main(int argc, char *argv[]) nflag = true; Nflag = true; break; + case 'o': + add_env(&env, "kernel_options", optarg); + break; case 'p': howto |= RB_POWEROFF; break; From nobody Mon Feb 12 18:53: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 4TYYWt6QB6z5BMg7; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWt4rCsz4mXF; Mon, 12 Feb 2024 18:53:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NlIj1shqCcq5V1/Llk2BCsFjf/+Fw7p6gFLe1OTPP1k=; b=i+4JoQ8M/gAjmEM1/ZnMU+gPFwcBTB41HwxK2sFZIhki+DnJSmVaJw6SvP3BRoTl/yzU5l cb/cv2ks134I5NEYeNdSCo3AeMHvczJSi9ThjPzlO/sJ2DnYVnmXg/vegN0/XWETVmG/BO ybRg/kxmKeBfPOTR0p03ca6PM62o7Lk/HqhJPgMMavCjTcDdZhuEGzDFh+V02vKXfwUsrj tCBPLY+WQC2pluxWO8y9EOk/hsbaCIz/1Zdoa/MMQU3VAIbiPuDkOVCUBFjsRos8m8qIGB YgkxMJj0J6Lw2ufRDFrNrQQUCKuxmgwNoIXoon/L7bIUbiMM238kQ+vacKFK6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764026; a=rsa-sha256; cv=none; b=d1zHUpdM9HW0LDceEyR9IA0MOBQ2Ry7cGivhWDwePzUD+RKOWxc1V4/SAIMMfuOdKI94Tt MzxW/ITUS3Iftj6Vxw/dkivHhTEgy0a+UvMggPf9dOzoAZa2q9LfOKdwxBjSJU82Di8ZjC qA/DTEiwVX832zoUS1QiybgT3YBgAH4kYjxZ26FS+aauO3StSbcSlMHaKPANZrudN7IZh4 QcGw52sO/JNp/zS65EDt1sOTEVwFsQ/L7W5Dw+HXJ4Dh0SCel3vi3uRhld4ovJyDqLWn+M +XdqYm2vcAoA9DaebqbuXILQACgmqA5gRJqd+NiEOjQJEWRLWekys1H2CPKVXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NlIj1shqCcq5V1/Llk2BCsFjf/+Fw7p6gFLe1OTPP1k=; b=BpeN6WfKgsjVJzs4yZlZX8A6UhdaNvRvxy37ORrnTAzdQfLXjsj96tG3QYuR0HQ5tt5URy mcVdQFSDfKM7a4ozt7swStGp44TXQ+uR7uHu6XS86w5WK89GHMbMU9A3PRB7RXIu0WUyTB jHZO25fZ6ALcZ/3C4OzZ9GQxRwDmKdTNsPl38yl8Due9TPbfZ2u9Otx1/Jp5PyQdHFEHEM mvExxGkaI1+cIK7Z+7x5ob+G9alD+8Hz+pJ8uHNZK1mXdd7USXj4yQwPI4qrjGgb8uAv39 Zxmio+9MvJ0IXZM7N2aZl0Zd6r9L4hMqVYKox6ZtMIJgmtHq9hkhrACetCSYTw== 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 4TYYWt3xhhzjnh; Mon, 12 Feb 2024 18:53:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrks4030815; Mon, 12 Feb 2024 18:53:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrkbw030812; Mon, 12 Feb 2024 18:53:46 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:46 GMT Message-Id: <202402121853.41CIrkbw030812@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: 994cc8392123 - main - reboot: Allow this to be installed as nextboot 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 994cc839212393cd2e591a6a9908ee9a94fdb18f Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=994cc839212393cd2e591a6a9908ee9a94fdb18f commit 994cc839212393cd2e591a6a9908ee9a94fdb18f Author: Warner Losh AuthorDate: 2024-02-12 18:46:11 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:46:11 +0000 reboot: Allow this to be installed as nextboot Allow nextboot to be a symlink link to reboot. It does everything reboot does, except doesn't actually setup the sytem to reboot and reboot. Also, don't accept the reboot args related to rebooting when in nextboot mode. Sponsored by: Netflix Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D43830 --- sbin/reboot/reboot.c | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 21acf7514388..a31c31892745 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -56,6 +56,7 @@ static void usage(void) __dead2; static uint64_t get_pageins(void); static bool dohalt; +static bool donextboot; #define E(...) do { \ if (force) { \ @@ -163,6 +164,12 @@ add_env(char **env, const char *key, const char *value) free(oldenv); } +/* + * Different options are valid for different programs. + */ +#define GETOPT_REBOOT "cDde:k:lNno:pqr" +#define GETOPT_NEXTBOOT "De:k:o:" + int main(int argc, char *argv[]) { @@ -171,16 +178,20 @@ main(int argc, char *argv[]) int ch, howto, i, sverrno; bool Dflag, fflag, lflag, Nflag, nflag, qflag; uint64_t pageins; - const char *user, *kernel = NULL; + const char *user, *kernel = NULL, *getopts = GETOPT_REBOOT; char *env = NULL, *v; if (strstr(getprogname(), "halt") != NULL) { dohalt = true; howto = RB_HALT; - } else + } else if (strcmp(getprogname(), "nextboot") == 0) { + donextboot = true; + getopts = GETOPT_NEXTBOOT; /* Note: reboot's extra opts return '?' */ + } else { howto = 0; + } Dflag = fflag = lflag = Nflag = nflag = qflag = false; - while ((ch = getopt(argc, argv, "cDde:k:lNno:pqr")) != -1) + while ((ch = getopt(argc, argv, getopts)) != -1) { switch(ch) { case 'c': howto |= RB_POWERCYCLE; @@ -228,6 +239,8 @@ main(int argc, char *argv[]) default: usage(); } + } + argc -= optind; argv += optind; if (argc != 0) @@ -245,10 +258,6 @@ main(int argc, char *argv[]) errx(1, "-r cannot be used with -c, -d, -n, or -p"); if ((howto & RB_REROOT) != 0 && kernel != NULL) errx(1, "-r and -k cannot be used together, there is no next kernel"); - if (geteuid()) { - errno = EPERM; - err(1, NULL); - } if (Dflag) { if (unlink(PATH_NEXTBOOT) != 0) @@ -256,6 +265,11 @@ main(int argc, char *argv[]) exit(0); } + if (!donextboot && geteuid() != 0) { + errno = EPERM; + err(1, NULL); + } + if (qflag) { reboot(howto); err(1, NULL); @@ -278,7 +292,11 @@ main(int argc, char *argv[]) add_env(&env, "kernel", kernel); } - write_nextboot(PATH_NEXTBOOT, env, fflag); + if (env != NULL) + write_nextboot(PATH_NEXTBOOT, env, fflag); + if (donextboot) + exit (0); + /* Log the reboot. */ if (!lflag) { if ((user = getlogin()) == NULL) From nobody Mon Feb 12 18:53: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 4TYYWv6RCtz5BMg9; Mon, 12 Feb 2024 18:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYYWv5lKTz4mm1; Mon, 12 Feb 2024 18:53:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=38F8gFgD23oDutwwlmI8hqYZyIpclI2DuaMtPFJ97yc=; b=ek+Oq01pCnbmRNNIcK4ytwcphjAtmwfCMvVzvTQfSxnWxol5WhGZgbjKEBh9zGHTNgP2Yj Xg9+6zLKFhNCer4Zpugh8jpRrfDTGE0L78nsz17Cd64JCUM5kwVbE/9fgoDYqvPq72Om33 EiDifCjzSUOtGrknfyoU58LgTe4GlLNqijSMexbm7qbRTGnWwisF//7k2ZUN0LNqu235Rg YyrMaJvDnugvLVvaxbuTfqxJlInNFYj83inPW2f3PjQNqTC9F2e5zChtHu8C/qwuHsNnXN BNjwPE3De/qMI33IfnRQDnkh8owxqJdlxv5cKXEE4GxmwerDQ1XG8qIxwbXewQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707764027; a=rsa-sha256; cv=none; b=yPdPFY1I/v2OrovdAPwhJohhx79XLBYAhVlJG3wSgsEyxNzmcwWtMkSA22veM4p3kpAFOX JnEsxeG8V+XzmP4dRf42hwydCbHEdKkL9K3lOHcLKien2rGRC9IcMXJjWcgbwSbNCKFL98 7CwhcY1hU+DJe7r2FxbyXY6jqd5bRNW62kcPs57POfJ83QT+xURTOLOUivl6AxalXE1Ql3 iHoC+GJbdxHG8koonZAYcjeO4+GyeEOv1P0M5/fFTe5Zgh0W94CcfAQCHvHNu+3z25SSxk l2/8ujz5v4kZ7J6H54Yz/ECJCRqrdMxYcVHN0Hkj3Xrl15py58o2iJ2Krxw3fA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707764027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=38F8gFgD23oDutwwlmI8hqYZyIpclI2DuaMtPFJ97yc=; b=VjjJcWHaJOAfJ75rKzEFA1Ef2AgJuRn7i0zDsMGSRxaf2gndlIDL4Gmn0DCcg3cz8yXx1x skHFYJ4jHZ+urk8fJZhWqS1epZ7qVpA/0nlidSqMOxOdqkAMfjndOZOf2ieCZQscGi3GvR t8OqvUV//nzSpFKpvGmdRLrrNnWF7IMR8+0kO8wSBUr1teYxquAh0C+webTpowciST4ddq sSO0AEbpLo+zvWDbJ/yL14vAj9wbWMCjjJ01Vw2vNtpCwYkaI9jNx6rrS4gmFJDMsMzTSM 8yYItl9LukVne9/0gZKCJFWcoRE30z7RIRZqFMz+/k+1/wVOfAz9MMZ5UUZ4lw== 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 4TYYWv4nyWzk2J; Mon, 12 Feb 2024 18:53:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CIrlZW030874; Mon, 12 Feb 2024 18:53:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CIrlYC030871; Mon, 12 Feb 2024 18:53:47 GMT (envelope-from git) Date: Mon, 12 Feb 2024 18:53:47 GMT Message-Id: <202402121853.41CIrlYC030871@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: fd6d47375a78 - main - rescue,nextboot: Install nextboot as a link to reboot, rm nextboot.sh 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: fd6d47375a78fbf0737012b7cc11180291781e8b Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=fd6d47375a78fbf0737012b7cc11180291781e8b commit fd6d47375a78fbf0737012b7cc11180291781e8b Author: Warner Losh AuthorDate: 2024-02-12 18:46:20 +0000 Commit: Warner Losh CommitDate: 2024-02-12 18:46:20 +0000 rescue,nextboot: Install nextboot as a link to reboot, rm nextboot.sh Reboot now emulates the nextboot shell script completely. Retire the nextboot.sh script and install the link. Retain the same manual page, since there's enough differences between nextboot and reboot that talking about nextboot would likely be confusing in nextboot.8 The nextboot.sh script no longer exists, so doesn't need to be fixed up to create rescue. However, now we need a link from nextboot to reboot. Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D43831 Differential Revision: https://reviews.freebsd.org/D43843 --- rescue/rescue/Makefile | 9 +--- sbin/reboot/Makefile | 8 +-- sbin/reboot/nextboot.sh | 132 ------------------------------------------------ 3 files changed, 5 insertions(+), 144 deletions(-) diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index de3dd8a64575..4c351e632638 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -21,13 +21,6 @@ LDFLAGS+= -Wl,--allow-multiple-definition PROG= rescue BINDIR?=/rescue -# Shell scripts need #! line to be edited from /bin/sh to /rescue/sh -SCRIPTS= nextboot_FIXED -SCRIPTSNAME_nextboot_FIXED= nextboot -nextboot_FIXED: ../../sbin/reboot/nextboot.sh - sed '1s/\/bin\//\/rescue\//' ${.ALLSRC} > ${.TARGET} -CLEANFILES+= nextboot_FIXED - SCRIPTS+= dhclient_FIXED SCRIPTSNAME_dhclient_FIXED= dhclient-script dhclient_FIXED: ../../sbin/dhclient/dhclient-script @@ -185,7 +178,7 @@ CRUNCH_SRCDIR_zfs= ${SRCTOP}/cddl/sbin/zfs CRUNCH_SRCDIR_zpool= ${SRCTOP}/cddl/sbin/zpool CRUNCH_SRCDIR_zdb= ${SRCTOP}/cddl/usr.sbin/zdb .endif -CRUNCH_ALIAS_reboot= fastboot halt fasthalt +CRUNCH_ALIAS_reboot= fastboot halt fasthalt nextboot CRUNCH_ALIAS_restore= rrestore CRUNCH_ALIAS_dump= rdump CRUNCH_ALIAS_fsck_ffs= fsck_4.2bsd fsck_ufs diff --git a/sbin/reboot/Makefile b/sbin/reboot/Makefile index 4db6d5589e97..5e7a2fea15bf 100644 --- a/sbin/reboot/Makefile +++ b/sbin/reboot/Makefile @@ -13,9 +13,9 @@ MAN+= boot_i386.8 MLINKS+= boot_i386.8 boot.8 .endif -LINKS= ${BINDIR}/reboot ${BINDIR}/halt ${BINDIR}/reboot ${BINDIR}/fastboot \ - ${BINDIR}/reboot ${BINDIR}/fasthalt - -SCRIPTS= nextboot.sh +LINKS= ${BINDIR}/reboot ${BINDIR}/halt \ + ${BINDIR}/reboot ${BINDIR}/fastboot \ + ${BINDIR}/reboot ${BINDIR}/fasthalt \ + ${BINDIR}/reboot ${BINDIR}/nextboot .include diff --git a/sbin/reboot/nextboot.sh b/sbin/reboot/nextboot.sh deleted file mode 100644 index 0c9cca51eb8d..000000000000 --- a/sbin/reboot/nextboot.sh +++ /dev/null @@ -1,132 +0,0 @@ -#! /bin/sh -# -# SPDX-License-Identifier: BSD-2-Clause -# -# Copyright (c) 2002 Gordon Tetlow. All rights reserved. -# Copyright (c) 2012 Sandvine Incorporated. All rights reserved. -# -# 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. -# - -append="NO" -delete="NO" -kenv= -force="NO" -nextboot_file="/boot/nextboot.conf" -zfs= - -add_kenv() -{ - local var value - - var=$1 - # strip literal quotes if passed in - value=${2%\"*} - value=${value#*\"} - - if [ -n "${kenv}" ]; then - kenv="${kenv} -" - fi - kenv="${kenv}${var}=\"${value}\"" -} - -display_usage() { - cat <<-EOF - Usage: nextboot [-af] [-e variable=value] [-k kernel] [-o options] - nextboot -D - EOF -} - -while getopts "aDe:fk:o:" argument ; do - case "${argument}" in - a) - append="YES" - ;; - D) - delete="YES" - ;; - e) - var=${OPTARG%%=*} - value=${OPTARG#*=} - if [ -z "$var" -o -z "$value" ]; then - display_usage - exit 1 - fi - add_kenv "$var" "$value" - ;; - f) - force="YES" - ;; - k) - kernel="${OPTARG}" - add_kenv kernel "$kernel" - ;; - o) - add_kenv kernel_options "${OPTARG}" - ;; - *) - display_usage - exit 1 - ;; - esac -done - -if [ ${delete} = "YES" ]; then - rm -f ${nextboot_file} - exit 0 -fi - -if [ -z "${kenv}" ]; then - display_usage - exit 1 -fi - -if [ -n "${kernel}" -a ${force} = "NO" -a ! -d /boot/${kernel} ]; then - echo "Error: /boot/${kernel} doesn't exist. Use -f to override." - exit 1 -fi - -zfs=$(df -Tn "/boot/" 2>/dev/null | while read _fs _type _other ; do - [ "zfs" = "${_type}" ] || continue - echo "${_fs%%/*}" -done) - -set -e - -nextboot_tmp=$(mktemp $(dirname ${nextboot_file})/nextboot.XXXXXX) - -if [ -n "${zfs}" ]; then - zfsbootcfg -z ${zfs} -n freebsd:nvstore -k nextboot_enable -v YES - cat >> ${nextboot_tmp} << EOF -$kenv -EOF -else -cat >> ${nextboot_tmp} << EOF -nextboot_enable="YES" -$kenv -EOF -fi - -fsync ${nextboot_tmp} - -mv ${nextboot_tmp} ${nextboot_file} From nobody Mon Feb 12 19:09: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 4TYYtY5mvNz5BNsj; Mon, 12 Feb 2024 19:09:57 +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 4TYYtX6GZCz4sMd; Mon, 12 Feb 2024 19:09:56 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 3.97.99.32) smtp.mailfrom=cy.schubert@cschubert.com Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTPS id ZUtarkWVKxDxGZbgirnQqM; Mon, 12 Feb 2024 19:09:56 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id Zbggrg8MWWhyfZbghrZ4Mr; Mon, 12 Feb 2024 19:09:55 +0000 X-Authority-Analysis: v=2.4 cv=MenPuI/f c=1 sm=1 tr=0 ts=65ca6d03 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=k7vzHIieQBIA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=EkcXrb_YAAAA:8 a=3J0l7d3P5gAvw77Of3YA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 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 43C6FB2; Mon, 12 Feb 2024 11:09:54 -0800 (PST) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 11A8BA8; Mon, 12 Feb 2024 11:09:54 -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: Richard Scheffenegger cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 62d47d73b7eb - main - tcp: stop timers and clean scoreboard in tcp_close() In-reply-to: <202402100934.41A9Y11l044213@gitrepo.freebsd.org> References: <202402100934.41A9Y11l044213@gitrepo.freebsd.org> Comments: In-reply-to Richard Scheffenegger message dated "Sat, 10 Feb 2024 09:34:01 +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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 12 Feb 2024 11:09:53 -0800 Message-Id: <20240212190954.11A8BA8@slippy.cwsent.com> X-CMAE-Envelope: MS4xfDdRBJVr9KOlsUocOUSUzMAu4ROGNC0axequei6b+/7V8Mzew2yPVD2JYWcYfGLsn+ZEALhgtCDI2gyqUrXUijADE0mXxIDmzxNTcth5FVRSSH2P2GM4 D26d/8qEMQkm6pF/P7xdBS9KFvfSjIeoUFbUa9gvPcc8DWSc2Lf3DpIfGcIi2RMJr/Iz2H63BDEQS5y1E/CuNSE5Xe0D6ts2sf8rFYYvL6lItuUYAJsNNQA/ FrfoCF5lnfwRaWEz8m2yd8+7IIs1R9i25QzPuuewOvHm4y1w05YTiz24TxAvrM0bVKmbwnQxbsfSrBUp0PSz+1m5EqG/mHWLnNwpPlEZpok= X-Spamd-Bar: - X-Spamd-Result: default: False [-1.78 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.88)[-0.882]; MV_CASE(0.50)[]; RWL_MAILSPIKE_VERYGOOD(-0.20)[3.97.99.32:from]; RCVD_IN_DNSWL_LOW(-0.10)[3.97.99.32:from]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[4]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[cschubert.com]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org,dev-commits-src-all@freebsd.org]; REPLYTO_EQ_FROM(0.00)[] X-Rspamd-Queue-Id: 4TYYtX6GZCz4sMd In message <202402100934.41A9Y11l044213@gitrepo.freebsd.org>, Richard Scheffene gger writes: > The branch main has been updated by rscheff: > > URL: https://cgit.FreeBSD.org/src/commit/?id=62d47d73b7eb01f3b0a37541df5e7aaa > 36f54335 > > commit 62d47d73b7eb01f3b0a37541df5e7aaa36f54335 > Author: Richard Scheffenegger > AuthorDate: 2024-02-10 09:28:42 +0000 > Commit: Richard Scheffenegger > CommitDate: 2024-02-10 09:30:00 +0000 > > tcp: stop timers and clean scoreboard in tcp_close() > > Stop timers when in tcp_close() instead of doing that in tcp_discardcb(). > A connection in CLOSED state shall not need any timers. Assert that no > timer is rescheduled after that in tcp_timer_activate() and verfiy that > this is also the expected state in tcp_discardcb(). > > PR: 276761 > Reviewed By: glebius, tuexen, #transport > Sponsored by: NetApp, Inc. > Differential Revision: https://reviews.freebsd.org/D43792 > --- > sys/netinet/tcp_subr.c | 4 ++-- > sys/netinet/tcp_timer.c | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c > index 6043a3d458e5..90e1496a822c 100644 > --- a/sys/netinet/tcp_subr.c > +++ b/sys/netinet/tcp_subr.c > @@ -2383,10 +2383,9 @@ tcp_discardcb(struct tcpcb *tp) > #endif > > INP_WLOCK_ASSERT(inp); > + MPASS(!callout_active(&tp->t_callout)); > MPASS(TAILQ_EMPTY(&tp->snd_holes)); > > - tcp_timer_stop(tp); > - > /* free the reassembly queue, if any */ > tcp_reass_flush(tp); > > @@ -2522,6 +2521,7 @@ tcp_close(struct tcpcb *tp) > tcp_fastopen_decrement_counter(tp->t_tfo_pending); > tp->t_tfo_pending = NULL; > } > + tcp_timer_stop(tp); > if (tp->t_fb->tfb_tcp_timer_stop_all != NULL) > tp->t_fb->tfb_tcp_timer_stop_all(tp); > in_pcbdrop(inp); > diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c > index f0eb3bad33cf..ed50659abf8e 100644 > --- a/sys/netinet/tcp_timer.c > +++ b/sys/netinet/tcp_timer.c > @@ -907,6 +907,7 @@ tcp_timer_activate(struct tcpcb *tp, tt_which which, u_in > t delta) > #endif > > INP_WLOCK_ASSERT(inp); > + MPASS(tp->t_state > TCPS_CLOSED); > > if (delta > 0) { > what = TT_STARTING; > Every machine in my farm is getting kernel page faults as of this revision. #0 __curthread () at /opt/src/git-src/sys/amd64/include/pcpu_aux.h:57 #1 doadump (textdump=textdump@entry=1) at /opt/src/git-src/sys/kern/kern_sh utdown.c:403 #2 0xffffffff806c68b9 in kern_reboot (howto=260) at /opt/src/git-src/sys/kern/kern_shutdown.c:521 #3 0xffffffff806c6dc2 in vpanic (fmt=0xffffffff80ae244b "%s", ap=ap@entry=0xfffffe008304abc0) at /opt/src/git-src/sys/kern/kern_shutdown.c :973 #4 0xffffffff806c6c13 in panic (fmt=) at /opt/src/git-src/sys/kern/kern_shutdown.c:889 #5 0xffffffff80a5b18f in trap_fatal (frame=0xfffffe008304acb0, eva=72) at /opt/src/git-src/sys/amd64/amd64/trap.c:950 #6 0xffffffff80a5b1df in trap_pfault (frame=0xfffffe008304acb0, usermode=false, signo=, ucode=) at /opt/src/git-src/sys/amd64/amd64/trap.c:758 #7 #8 0xffffffff8084dd72 in cc_cong_signal (tp=0xfffff8008d207540, th=0x0, type=2) at /opt/src/git-src/sys/netinet/tcp_input.c:465 #9 0xffffffff8086ba4f in tcp_timer_rexmt (tp=0xfffff8008d207540) at /opt/src/git-src/sys/netinet/tcp_timer.c:803 #10 0xffffffff8086b1fe in tcp_timer_enter (xtp=0xfffff8008d207540) at /opt/src/git-src/sys/netinet/tcp_timer.c:880 #11 0xffffffff806e603e in softclock_call_cc (c=0xfffff8008d2076d8, cc=cc@entry=0xffffffff820b10c0, direct=direct@entry=0) at /opt/src/git-src/sys/kern/kern_timeout.c:714 #12 0xffffffff806e77b8 in softclock_thread (arg=arg@entry=0xffffffff820b10c0 ) at /opt/src/git-src/sys/kern/kern_timeout.c:846 #13 0xffffffff8067f05f in fork_exit (callout=0xffffffff806e76c0 , arg=0xffffffff820b10c0, frame=0xfffffe008304af40) at /opt/src/git-src/sys/kern/kern_fork.c:1157 #14 #15 0x21ffa5a87b4e3f70 in ?? () When rebooting one of my machines, the others panic as above. This is 100% reproducible when one of the machines in my basement are rebooted. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0 From nobody Mon Feb 12 20:17: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 4TYbNw0b07z5BWYW; Mon, 12 Feb 2024 20:17: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYbNw03dZz45wQ; Mon, 12 Feb 2024 20:17:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707769072; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j8qcmRVsihBu3uQPRY9GyWjQssVnSBOsKrwlUsCE7ws=; b=ijmtKCR+RN2Pv6WjiCF/jmZIPboIk8OsOVUj15FBsvrVKHjcboeqd/ro3UqQHSOq0xvLeO uykoxndCxSRO57UyLYQs8SPJFlUcp9nxkireedY8DVdsuXDRA7zBk7i28tz7OTOr3ow84+ WHE4j2vGx9vkvTJ+5CmntaQ44Eqo4a83YiHknBI6lvAetcMy3hG9OoflDi+zODzzgsqSDc huTH1lXGn/dWVea/S5hwRtOvt3I+PMRYoOsszRDJI7HU2yrXeU8pyUnrRqEWez/tSv3q+C WnTgnNu2b/6IMnUHe8Oz98K7S9ObK2JUKX8DzpFxOLiez1kR3wjS0rVt+ZAKYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707769072; a=rsa-sha256; cv=none; b=GmiHUk7Xr5vwX5RJS1Vgo1xT3xMAj3Tc4RDzztku6SsWrlv8kQ7zqcswVDlOzTYVqZRfgN dYmRF2vQC/30sFTe24krBZJRMrI4x8YLkW7R8mAYFxERtB/A0EYRSctlohqjsWnlQmRg4u FqYvw6JBPi95x5cwL7sPWPncNEzz5R9gYim+AOFte24wbcG9rN+T6UY/NhjbdQzBoOvmSn lQjavpdnhOZ1742A9bS2mi4n/6yzzIp+lpU0NiWRxtVniK7WNd3E/MmyidiKqsFylRXv9J zOmPZFA3G3LperptWt1y6z2xYjgEedI+dwD/irih7rMT38BchoGNATGNsdCDAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707769072; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j8qcmRVsihBu3uQPRY9GyWjQssVnSBOsKrwlUsCE7ws=; b=ysZbuDDZQ9r9UFmlfozHZ4AxtUJ5jI5hyJ0tAuUSK0U18PpAh9QEcqtv1pbAxPWwo1vMDC PzNQt+oU+nqrLs2TF0/x8nprsYzdFNPBdEKC0MjlXJVpUIo8bWH1OeNo8zLqZPh3IrbSdN m4F/+7goctcTEtr9DmV3ueRx74ZkczdK2CpvfZpOhPMEI37IOJpSYCOEG3sa35Dj2bPsHz +xmRnpH4uyhderSqi8senq+mpZPDxlgv+KpvajzM/xj6f0xTqZfRXziZpJurenkE8iWp11 a16sQ4pgkylzfiaESPrZiHF16DxErCh0wmRmopFKoQ+1P2akFgYIB7HWPqVovA== 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 4TYbNv6Djlzlxq; Mon, 12 Feb 2024 20:17:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CKHpQo066340; Mon, 12 Feb 2024 20:17:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CKHp7K066337; Mon, 12 Feb 2024 20:17:51 GMT (envelope-from git) Date: Mon, 12 Feb 2024 20:17:51 GMT Message-Id: <202402122017.41CKHp7K066337@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: f2c72486da30 - releng/13.3 - fusefs: fix invalid value for st_birthtime.tv_nsec 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/releng/13.3 X-Git-Reftype: branch X-Git-Commit: f2c72486da30eda54f0db1a9b7ca822afc835ecf Auto-Submitted: auto-generated The branch releng/13.3 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=f2c72486da30eda54f0db1a9b7ca822afc835ecf commit f2c72486da30eda54f0db1a9b7ca822afc835ecf Author: Alan Somers AuthorDate: 2024-01-25 15:19:37 +0000 Commit: Alan Somers CommitDate: 2024-02-12 20:17:13 +0000 fusefs: fix invalid value for st_birthtime.tv_nsec If a file system's on-disk format does not support st_birthtime, it isn't clear what value it should return in stat(2). Neither our man page nor the OpenGroup specifies. But our convention for UFS and msdosfs is to return { .tv_sec = -1, .tv_nsec = 0 }. fusefs is different. It returns { .tv_sec = -1, .tv_nsec = -1 }. It's done that ever since the initial import in SVN r241519. Most software apparently handles this just fine. It must, because we've had no complaints. But the Rust standard library will panic when reading such a timestamp during std::fs::metadata, even if the caller doesn't care about that particular value. That's a separate bug, and should be fixed. Change our invalid value to match msdosfs and ufs, pacifying the Rust standard library. PR: 276602 Sponsored by: Axcient Reviewed by: emaste Approved by: re (cperciva) Differential Revision: https://reviews.freebsd.org/D43590 (cherry picked from commit 65e25e4a614a99243e7419279b294e399991dfff) --- sys/fs/fuse/fuse_internal.c | 1 - sys/fs/fuse/fuse_node.c | 7 +++++++ tests/sys/fs/fusefs/getattr.cc | 15 +++++++++------ tests/sys/fs/fusefs/lookup.cc | 15 +++++++++------ 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/sys/fs/fuse/fuse_internal.c b/sys/fs/fuse/fuse_internal.c index 13d18127d2e6..c851cb2e34f4 100644 --- a/sys/fs/fuse/fuse_internal.c +++ b/sys/fs/fuse/fuse_internal.c @@ -326,7 +326,6 @@ fuse_internal_cache_attrs(struct vnode *vp, struct fuse_attr *attr, else return; - vattr_null(vp_cache_at); vp_cache_at->va_fsid = mp->mnt_stat.f_fsid.val[0]; vp_cache_at->va_fileid = attr->ino; vp_cache_at->va_mode = attr->mode & ~S_IFMT; diff --git a/sys/fs/fuse/fuse_node.c b/sys/fs/fuse/fuse_node.c index a02b41e24ad8..52bd2d92f4da 100644 --- a/sys/fs/fuse/fuse_node.c +++ b/sys/fs/fuse/fuse_node.c @@ -156,7 +156,14 @@ fuse_vnode_init(struct vnode *vp, struct fuse_vnode_data *fvdat, { fvdat->nid = nodeid; LIST_INIT(&fvdat->handles); + vattr_null(&fvdat->cached_attrs); + fvdat->cached_attrs.va_birthtime.tv_sec = -1; + fvdat->cached_attrs.va_birthtime.tv_nsec = 0; + fvdat->cached_attrs.va_fsid = VNOVAL; + fvdat->cached_attrs.va_gen = 0; + fvdat->cached_attrs.va_rdev = NODEV; + if (nodeid == FUSE_ROOT_ID) { vp->v_vflag |= VV_ROOT; } diff --git a/tests/sys/fs/fusefs/getattr.cc b/tests/sys/fs/fusefs/getattr.cc index 1795f29a5d76..98a757fdff94 100644 --- a/tests/sys/fs/fusefs/getattr.cc +++ b/tests/sys/fs/fusefs/getattr.cc @@ -246,12 +246,15 @@ TEST_F(Getattr, ok) EXPECT_EQ(ino, sb.st_ino); EXPECT_EQ(S_IFREG | 0644, sb.st_mode); - //st_birthtim and st_flags are not supported by protocol 7.8. They're - //only supported as OS-specific extensions to OSX. - //EXPECT_EQ(, sb.st_birthtim); - //EXPECT_EQ(, sb.st_flags); - - //FUSE can't set st_blksize until protocol 7.9 + /* + * st_birthtim and st_flags are not supported by the fuse protocol. + * They're only supported as OS-specific extensions to OSX. For + * birthtime, the convention for "not supported" is "negative one + * second". + */ + EXPECT_EQ(-1, sb.st_birthtim.tv_sec); + EXPECT_EQ(0, sb.st_birthtim.tv_nsec); + EXPECT_EQ(0u, sb.st_flags); } /* diff --git a/tests/sys/fs/fusefs/lookup.cc b/tests/sys/fs/fusefs/lookup.cc index 549df0369fa7..6d506c1ab700 100644 --- a/tests/sys/fs/fusefs/lookup.cc +++ b/tests/sys/fs/fusefs/lookup.cc @@ -112,12 +112,15 @@ TEST_F(Lookup, attr_cache) // fuse(4) does not _yet_ support inode generations //EXPECT_EQ(generation, sb.st_gen); - //st_birthtim and st_flags are not supported by protocol 7.8. They're - //only supported as OS-specific extensions to OSX. - //EXPECT_EQ(, sb.st_birthtim); - //EXPECT_EQ(, sb.st_flags); - - //FUSE can't set st_blksize until protocol 7.9 + /* + * st_birthtim and st_flags are not supported by the fuse protocol. + * They're only supported as OS-specific extensions to OSX. For + * birthtime, the convention for "not supported" is "negative one + * second". + */ + EXPECT_EQ(-1, sb.st_birthtim.tv_sec); + EXPECT_EQ(0, sb.st_birthtim.tv_nsec); + EXPECT_EQ(0u, sb.st_flags); } /* From nobody Mon Feb 12 21:40: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 4TYdDh1dyTz58xqP; Mon, 12 Feb 2024 21: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYdDh0ScQz4J92; Mon, 12 Feb 2024 21: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=1707774052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J+qJp9dAuoAGeN5ti7A/lbCQaO/rHbZfadIPGS2udVs=; b=RPzmbdl2yFL0VQu09TnqIDSl7pOyZ2T1eWmeYv8juKua95O3pBtyHBCQweMBPfj6nofGTn LP9VQ4r1xfUNyV1Nk6hlpTpClReGBoHU9D3mWXwQ3wyIyX1xrpzFjRNZvswOlAM2P3UL+i DLwSaV05zqQkb368SG0alQh/tQ0ISVlDtW7PoOGjHKMsCzOOiROI1XEjJ95Hq05UPb/5Ig XsEHdXJhwu4dO9ZQPIUdQtccqSAJzKx+18V7PdppRE03hk62evwd6NbfyIwjKfEKHWenPr x2T6kUz9qKwwzb0MPrHjcraDDKvMorOobs3IOZjH3cQz+G6v25snNyTuH/Xw9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707774052; a=rsa-sha256; cv=none; b=Qg/SswYRF82EiFy0aMoGEnbeDFQNGu5qOCaRIDlhzOQODgdFeSo1MW6YadvZm6qeJox9M/ eTve6oWi9/8tleFOU3zCKEDvmau73CR94KJtRWOdFeX0JVpSCG87+sFwqTt/BCoBkjs5Vr uTYNivKjgvNeUcGzmVCgGftDfTaO7MhkdlDl3DL+N+fgjFDeg316qMHQNvJqsJVZCn/pFW Ve8YeZrSsy0eAWWu1LkMeFDWQdeyVfvdrlqXO73qxk2RkAKvtl+e99bDODs3wBuk9RXP6G 4QpEMkhTeV1xNtMUrmsUZ/udiuVUc4dOtzBvrYGJzfL92XvNvBzpFxuSm/QXFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707774052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J+qJp9dAuoAGeN5ti7A/lbCQaO/rHbZfadIPGS2udVs=; b=UlYLYM84IPzmYrkxi+N+fdWAW5BLhM14cNkPwmzGH4WSKXpXIyfLI0c3cSslpVkrqbEFiT j6ILlzgp18oZfkzo99nqr/fwsVJv6+E3hQiK0zHIovajVMXZ1kvuEIU71POzeiKPuel0uM pD8NgUXA+8RbEcED7i0iXjjk5igjfirREuKGmQ92j1gEl+EkrN2B7kuRodSH5aV70GkVtq E520jIywt+NVi81GdVBOrMymKqYfgQLDMNmbFZkXzqce73/V1qYM0G19miqnJxMYbpU2bq MEG7OC9ZEGp0F8je2b3Qv9D919kBts/3MSBv/Qq0jLL9GwIil5B1K4jkqrk3tw== 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 4TYdDg6g0czp6q; Mon, 12 Feb 2024 21:40:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CLepIR009844; Mon, 12 Feb 2024 21:40:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CLepnF009841; Mon, 12 Feb 2024 21:40:51 GMT (envelope-from git) Date: Mon, 12 Feb 2024 21:40:51 GMT Message-Id: <202402122140.41CLepnF009841@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Richard Scheffenegger Subject: git: 57e27ff07aff - main - tcp: partially undo D43792 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rscheff X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 57e27ff07aff35289892f79288bebf76a3c31fec Auto-Submitted: auto-generated The branch main has been updated by rscheff: URL: https://cgit.FreeBSD.org/src/commit/?id=57e27ff07aff35289892f79288bebf76a3c31fec commit 57e27ff07aff35289892f79288bebf76a3c31fec Author: Richard Scheffenegger AuthorDate: 2024-02-12 20:43:18 +0000 Commit: Richard Scheffenegger CommitDate: 2024-02-12 21:38:11 +0000 tcp: partially undo D43792 At the destruction of the tcpcb, no timers are supposed to be running. However, it turns out that stopping them in the close() / shutdown() call does not have the desired effect under all circumstances. This partially reverts 62d47d73b7eb to reduce the nuisance caused. PR: 277009 Reported-by: syzbot+9a9aa434a14a2b35c3ba@syzkaller.appspotmail.com Reported-by: syzbot+e82856782410e895bae7@syzkaller.appspotmail.com Reviewed By: glebius, tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D43855 --- sys/netinet/tcp_subr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 90e1496a822c..97d60ceba24d 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -2383,9 +2383,10 @@ tcp_discardcb(struct tcpcb *tp) #endif INP_WLOCK_ASSERT(inp); - MPASS(!callout_active(&tp->t_callout)); MPASS(TAILQ_EMPTY(&tp->snd_holes)); + tcp_timer_stop(tp); + /* free the reassembly queue, if any */ tcp_reass_flush(tp); From nobody Mon Feb 12 22:36: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 4TYfSq3Gysz595Hx; Mon, 12 Feb 2024 22:36: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYfSq32wCz4RPw; Mon, 12 Feb 2024 22:36:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707777387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=R8JjOHxSBqbnPfBuvjzcN7ppQa0vfvDXUOg93NKA/Gc=; b=SaGmfEaO6AvYJslmKnkc/XIX/qr0jO/AdkJqy6Thl9rJP/c3QQH0mMODz8k5dkWauglWOQ ifPwRHLB9E4aNn675s+oReM+BiaXqL2+TyC1YROqENUDinP3HdCjY8cxlCYR0/B7WYbPdQ l6vqPGBDbcUXuRcScNfhiAtwae0ppaZp/S7arCzcSjyt4swd6IiqUVNBAAnzwwNnqg9sQC qY/4q6RxUQlV3J1plbOneFUmIchZQWcajxD9DP4kHNMOo5yuxVQuDwLL1ltrX68bEi+QFJ 9ciu+vBvjl2woJErFHGTqxgtQNMG5xe1dQh40uwJwuFA8JRdbNp4VWWzzfX3AQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707777387; a=rsa-sha256; cv=none; b=sYsyeVdE4wmZDINQI+FrtaYMWT6p/9SdjGUrvi0Html110wtAcfRR1Tqp5TjVxCuEjM1Et hjVuZb9e1e0cPxtGoPRaNltRf+yRlvn5+PN2AOyrCl8okbzpzL3DOX0HTGPzZHBXMgekJp WxTtYEpe/jZVVmFiWpzZwU3PO7FMx2d5IkFQd3TBbpU0ZDhwSxdQGct21QeEZV3jg8J0dU rtl/HFSETZBAVeGspvL0rTtgUSMobLClp3U0sr2CxKvOIY3FrsTgjw4mP8IYZfYmzum64P CMQvHEfFdHadrYG++McFZ/R/rk/+JwTWKJlGyCfv8S/ojkjBcy/tft5edaXttg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707777387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=R8JjOHxSBqbnPfBuvjzcN7ppQa0vfvDXUOg93NKA/Gc=; b=pr0P75R2cQ073APjGMBa9LYdGf0tv5SesaAQD0Gi5SJ/YYh4gIPW3m5U7dfCKRNY6x+LHn fY6wn0LuWC6GbvK+LZo+UioSuDz9BeZFJqXSqsW6q4Fyr9K1EGDinqhIOqGeNu1/KiV6wt o9pxubvnOvZcjKXQ2+iPKOKtQfJMr61Qk3c6WiGVJ1UCEgdb3DprMo/wkD+Li1hybXWFX1 X/83zo+22kmg4Xz631lljHQF3YLaw4UeXw+/Kl87Vfj/iSErToP6S0usCruciTp5YRWwBS 0pYLZsBUisf56cfsrO1fX3SzNzqTtMOTWf3NJ/V9FENycqI0+Ix8HZuIX1fpDw== 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 4TYfSq26Rfzq6r; Mon, 12 Feb 2024 22:36:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CMaRJh001441; Mon, 12 Feb 2024 22:36:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CMaRCq001438; Mon, 12 Feb 2024 22:36:27 GMT (envelope-from git) Date: Mon, 12 Feb 2024 22:36:27 GMT Message-Id: <202402122236.41CMaRCq001438@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: f616d61ab6b0 - main - libsecureboot do not report expected unverified files 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: f616d61ab6b071e5fbfdbae7033a9ef04c1444ad Auto-Submitted: auto-generated The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f616d61ab6b071e5fbfdbae7033a9ef04c1444ad commit f616d61ab6b071e5fbfdbae7033a9ef04c1444ad Author: Simon J. Gerraty AuthorDate: 2024-02-12 22:35:01 +0000 Commit: Simon J. Gerraty CommitDate: 2024-02-12 22:35:01 +0000 libsecureboot do not report expected unverified files By default only report unverified files at severity VE_WANT and above. This inlcudes *.conf but not *.hints, *.cookie or *.tgz which get VE_TRY as their severity. If Verbose is set to 0, then VerifyFlags should default to 0 too. Thus the combination of module_verbose=0 VE_VEBOSE=0 is sufficient to make the loader almost totally silent. When verify_prep has to find_manifest and it is verified ok return VE_NOT_CHECKED to verify_file so that it can skip repeating verify_fd Also add better debugging output for is_verified and add_verify_status. vectx handle compressed modules When verifying a compressed module (.ko.gz or .ko.bz2) stat() reports the size as -1 (unknown). vectx_lseek needs to spot this during closing - and just read until EOF is hit. Note: because of the way libsa's open() works, verify_prep will see the path to be verified as module.ko not module.ko.bz2 etc. This is actually ok, because we need a separate module.ko.bz2 entry so that the package can be verified, and the hash for module.ko is of the uncompressed file which is what vectx will see. Re-work local.trust.mk so site.trust.mk need only set VE_SIGN_URL_LIST (if using the mentioned signing server) interp.c: restrict interactive input Apply the same restrictions to interactive input as for unverified conf and hints files. Use version.veriexec when LOADER_VERIEXEC is yes Reviewed by: kevans Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D43810 --- lib/libsecureboot/Makefile.inc | 8 +- lib/libsecureboot/Makefile.libsa.inc | 7 +- lib/libsecureboot/h/verify_file.h | 1 + lib/libsecureboot/local.trust.mk | 143 +++++++++++++++-------------------- lib/libsecureboot/vectx.c | 26 +++++-- lib/libsecureboot/verify_file.c | 35 +++++++-- stand/common/interp.c | 8 ++ stand/efi/loader/version.veriexec | 7 ++ stand/veriexec.mk | 3 + 9 files changed, 136 insertions(+), 102 deletions(-) diff --git a/lib/libsecureboot/Makefile.inc b/lib/libsecureboot/Makefile.inc index ff40b919bad3..b09e44edc1b0 100644 --- a/lib/libsecureboot/Makefile.inc +++ b/lib/libsecureboot/Makefile.inc @@ -58,6 +58,10 @@ _2ndLAST_PEM_USE: .USE sed -n "`grep -n .-BEGIN ${.ALLSRC:M*.pem} | tail -2 | \ sed 's,:.*,,' | xargs | (read a b; echo $$a,$$(($$b - 1)))`p" ${.ALLSRC:M*.pem} > ${.TARGET} +# rules to populate the [tv]*.pem files we use to generate ta.h +# and can add/alter VE_*_LIST as desired. +.-include "local.trust.mk" + # list of hashes we support VE_HASH_LIST?= SHA256 @@ -74,10 +78,6 @@ VE_SIGNATURE_EXT_LIST?= sig # needs to be yes for FIPS 140-2 compliance VE_SELF_TESTS?= no -# rules to populate the [tv]*.pem files we use to generate ta.h -# and can add/alter VE_*_LIST as desired. -.-include "local.trust.mk" - # this is what we use as our trust anchor CFLAGS+= -I. -DTRUST_ANCHOR_STR=ta_PEM diff --git a/lib/libsecureboot/Makefile.libsa.inc b/lib/libsecureboot/Makefile.libsa.inc index 76e0a91bc20a..907c8e8f7533 100644 --- a/lib/libsecureboot/Makefile.libsa.inc +++ b/lib/libsecureboot/Makefile.libsa.inc @@ -46,9 +46,12 @@ manifests.h: echo '${VE_MANIFEST_LIST:@m@"$m",${.newline}@}'; \ echo 'NULL };' ) > ${.TARGET} +# only add these if set XCFLAGS.verify_file+= \ - -DVE_DEBUG_LEVEL=${VE_DEBUG_LEVEL:U0} \ - -DVE_VERBOSE_DEFAULT=${VE_VERBOSE_DEFAULT:U0} \ + ${VE_DEBUG_LEVEL \ + VE_VERBOSE_DEFAULT \ + VE_VERIFY_FLAGS \ + :L:@v@${$v:S,^,-D$v=,}@} .if !empty(MANIFEST_SKIP_ALWAYS) XCFLAGS.verify_file+= -DMANIFEST_SKIP_ALWAYS=\"${MANIFEST_SKIP_ALWAYS}\" diff --git a/lib/libsecureboot/h/verify_file.h b/lib/libsecureboot/h/verify_file.h index 88d758b27af4..f918ed6d0e38 100644 --- a/lib/libsecureboot/h/verify_file.h +++ b/lib/libsecureboot/h/verify_file.h @@ -46,6 +46,7 @@ int verify_prep(int, const char *, off_t, struct stat *, const char *); void ve_debug_set(int); char *ve_error_get(void); void ve_efi_init(void); +void ve_status_set(int, int); int ve_status_get(int); int load_manifest(const char *, const char *, const char *, struct stat *); int pass_manifest(const char *, const char *); diff --git a/lib/libsecureboot/local.trust.mk b/lib/libsecureboot/local.trust.mk index 7b1e5f7ee97b..b009139a2f68 100644 --- a/lib/libsecureboot/local.trust.mk +++ b/lib/libsecureboot/local.trust.mk @@ -5,65 +5,69 @@ # the signing server (http://www.crufty.net/sjg/blog/signing-server.htm) # for each key will provide the appropriate certificate chain on request -# force these for Junos -#MANIFEST_SKIP_ALWAYS= boot -VE_HASH_LIST= \ - SHA1 \ - SHA256 \ - SHA384 \ - SHA512 - -VE_SIGNATURE_LIST= \ - ECDSA \ - RSA - -VE_SIGNATURE_EXT_LIST= \ - esig \ - rsig - -VE_SELF_TESTS= yes - -.if ${MACHINE} == "host" && ${.CURDIR:T} == "tests" - -VE_SIGNATURE_LIST+= \ - DEPRECATED_RSA_SHA1 +# allow site control +.-include "site.trust.mk" -VE_SIGNATURE_EXT_LIST+= \ - sig -.endif +#VE_DEBUG_LEVEL?=3 +#VE_VERBOSE_DEFAULT?=2 -# add OpenPGP support - possibly dormant -VE_SIGNATURE_LIST+= OPENPGP -VE_SIGNATURE_EXT_LIST+= asc +VE_HASH_LIST?= \ + SHA256 \ + SHA384 \ -# allow site override of all the above -.-include "site.trust.mk" +VE_SELF_TESTS?= yes -SIGNER ?= ${SB_TOOLS_PATH:U/volume/buildtools/bin}/sign.py +# client for the signing server above +SIGNER?= /opt/sigs/sign.py .if exists(${SIGNER}) -SIGN_HOST ?= ${SB_SITE:Usvl}-junos-signer.juniper.net -ECDSA_PORT:= ${133%y:L:gmtime} -SIGN_ECDSA= ${PYTHON} ${SIGNER} -u ${SIGN_HOST}:${ECDSA_PORT} -h sha256 -RSA2_PORT:= ${163%y:L:gmtime} -SIGN_RSA2= ${PYTHON} ${SIGNER} -u ${SIGN_HOST}:${RSA2_PORT} -h sha256 +OPENPGP_SIGNER?= ${SIGNER:H}/openpgp-sign.py +OPENPGP_SIGN_FLAGS= -a +OPENPGP_SIGN_HOST?= localhost +SIGN_HOST ?= localhost + +# A list of name/ext/url tuples. +# name should be one of ECDSA, OPENPGP or RSA, they can be repeated +# Order of ext list implies runtime preference so do not sort! +VE_SIGN_URL_LIST?= \ + ECDSA/esig/${SIGN_HOST}:${133%y:L:localtime} \ + RSA/rsig/${SIGN_HOST}:${163%y:L:localtime} \ + OPENPGP/asc/${OPENPGP_SIGN_HOST}:1234 \ + +.for sig ext url in ${VE_SIGN_URL_LIST:@x@${x:H:H} ${x:H:T} ${x:T}@} +SIGN_${sig}:= ${PYTHON} ${${sig}_SIGNER:U${SIGNER}} -u ${url} ${${sig}_SIGN_FLAGS:U-h sha256} + +VE_SIGNATURE_LIST+= ${sig} +VE_SIGNATURE_EXT_LIST+= ${ext} + +_SIGN_${sig}_USE: .USE + ${SIGN_${sig}} ${.ALLSRC} + +_TA_${sig}_USE: .USE + ${SIGN_${sig}} -C ${.TARGET} + +.if ${sig} == "OPENPGP" +ta_${sig:tl}.${ext}: _TA_${sig}_USE +ta_${ext}.h: ta_${sig:tl}.${ext} +.else +${ext:S/sig/certs/}.pem: _TA_${sig}_USE +# the last cert in the chain is the one we want +ta_${ext}.pem: ${ext:S/sig/certs/}.pem _LAST_PEM_USE +ta.h: ta_${ext}.pem +.if ${VE_SELF_TESTS} != "no" +# we use the 2nd last cert to test verification +vc_${ext}.pem: ${ext:S/sig/certs/}.pem _2ndLAST_PEM_USE +ta.h: vc_${ext}.pem +.endif +.endif +.endfor -# deal with quirk of our .esig format -XCFLAGS.vets+= -DVE_ECDSA_HASH_AGAIN +# cleanup duplicates +VE_SIGNATURE_LIST:= ${VE_SIGNATURE_LIST:O:u} -.if !empty(OPENPGP_SIGN_URL) +.if target(ta_asc.h) XCFLAGS.opgp_key+= -DHAVE_TA_ASC_H -VE_SIGNATURE_LIST+= OPENPGP -VE_SIGNATURE_EXT_LIST+= asc - -SIGN_OPENPGP= ${PYTHON} ${SIGNER:H}/openpgp-sign.py -a -u ${OPENPGP_SIGN_URL} - -ta_openpgp.asc: - ${SIGN_OPENPGP} -C ${.TARGET} - -ta_asc.h: ta_openpgp.asc - .if ${VE_SELF_TESTS} != "no" # for self test vc_openpgp.asc: ta_openpgp.asc @@ -74,48 +78,26 @@ ta_asc.h: vc_openpgp.asc .endif .endif -rcerts.pem: - ${SIGN_RSA2} -C ${.TARGET} - -ecerts.pem: - ${SIGN_ECDSA} -C ${.TARGET} - -.if ${VE_SIGNATURE_LIST:tu:MECDSA} != "" -# the last cert in the chain is the one we want -ta_ec.pem: ecerts.pem _LAST_PEM_USE -ta.h: ta_ec.pem -.if ${VE_SELF_TESTS} != "no" -# these are for verification self test -vc_ec.pem: ecerts.pem _2ndLAST_PEM_USE -ta.h: vc_ec.pem -.endif -.endif - -.if ${VE_SIGNATURE_LIST:tu:MRSA} != "" -ta_rsa.pem: rcerts.pem _LAST_PEM_USE -ta.h: ta_rsa.pem -.if ${VE_SELF_TESTS} != "no" -vc_rsa.pem: rcerts.pem _2ndLAST_PEM_USE -ta.h: vc_rsa.pem -.endif -.endif - -# we take the mtime of this as our baseline time -#BUILD_UTC_FILE= ecerts.pem -#VE_DEBUG_LEVEL=3 -#VE_VERBOSE_DEFAULT=1 - .else +VE_SIGNATURE_LIST?= RSA + # you need to provide t*.pem or t*.asc files for each trust anchor +# below assumes they are named ta_${ext}.pem eg ta_esig.pem for ECDSA .if empty(TRUST_ANCHORS) TRUST_ANCHORS!= cd ${.CURDIR} && 'ls' -1 *.pem t*.asc 2> /dev/null .endif .if empty(TRUST_ANCHORS) && ${MK_LOADER_EFI_SECUREBOOT} != "yes" .error Need TRUST_ANCHORS see ${.PARSEDIR}/README.rst .endif + .if ${TRUST_ANCHORS:T:Mt*.pem} != "" ta.h: ${TRUST_ANCHORS:M*.pem} +VE_SIGNATURE_EXT_LIST?= ${TRUST_ANCHORS:T:Mt*.pem:R:S/ta_//} +.if ${VE_SIGNATURE_EXT_LIST:Mesig} != "" +VE_SIGNATURE_LIST+= ECDSA +.endif .endif + .if ${TRUST_ANCHORS:T:Mt*.asc} != "" VE_SIGNATURE_LIST+= OPENPGP VE_SIGNATURE_EXT_LIST+= asc @@ -124,4 +106,3 @@ ta_asc.h: ${TRUST_ANCHORS:M*.asc} # we take the mtime of this as our baseline time BUILD_UTC_FILE?= ${TRUST_ANCHORS:[1]} .endif - diff --git a/lib/libsecureboot/vectx.c b/lib/libsecureboot/vectx.c index dba728421ce4..2d56830cd81d 100644 --- a/lib/libsecureboot/vectx.c +++ b/lib/libsecureboot/vectx.c @@ -306,19 +306,31 @@ vectx_lseek(struct vectx *ctx, off_t off, int whence) DEBUG_PRINTF(3, ("%s(%s, %ld, %d)\n", __func__, ctx->vec_path, (long)off, whence)); if (whence == SEEK_END && off <= 0) { - if (ctx->vec_closing && ctx->vec_hashed < ctx->vec_size) { - DEBUG_PRINTF(3, ("%s: SEEK_END %ld\n", - __func__, - (long)(ctx->vec_size - ctx->vec_hashed))); + if (ctx->vec_size < 0) { + if (ctx->vec_closing) { + /* size unknown - read until EOF */ + do { + n = vectx_read(ctx, buf, PAGE_SIZE); + if (n < 0) + return (n); + } while (n > 0); + return (ctx->vec_off); + } + } else { + if (ctx->vec_closing && ctx->vec_hashed < ctx->vec_size) { + DEBUG_PRINTF(3, ("%s: SEEK_END %ld\n", + __func__, + (long)(ctx->vec_size - ctx->vec_hashed))); + } + whence = SEEK_SET; + off += ctx->vec_size; } - whence = SEEK_SET; - off += ctx->vec_size; } else if (whence == SEEK_CUR) { whence = SEEK_SET; off += ctx->vec_off; } if (whence != SEEK_SET || - off > ctx->vec_size) { + (off > ctx->vec_size && ctx->vec_size > 0)) { printf("ERROR: %s: unsupported operation: whence=%d off=%ld -> %ld\n", __func__, whence, (long)ctx->vec_off, (long)off); return (-1); diff --git a/lib/libsecureboot/verify_file.c b/lib/libsecureboot/verify_file.c index c123ea9e1088..753204a33b6a 100644 --- a/lib/libsecureboot/verify_file.c +++ b/lib/libsecureboot/verify_file.c @@ -82,7 +82,7 @@ static int Verbose = VE_VERBOSE_DEFAULT; /** * @brief set ve status for fd */ -static void +void ve_status_set(int fd, int ves) { if (fd >= 0 && fd < SOPEN_MAX) { @@ -131,15 +131,21 @@ int is_verified(struct stat *stp) { struct verify_status *vsp; + int rc = VE_NOT_CHECKED; if (stp->st_ino > 0) { for (vsp = verified_files; vsp != NULL; vsp = vsp->vs_next) { if (stp->st_dev == vsp->vs_dev && - stp->st_ino == vsp->vs_ino) - return (vsp->vs_status); + stp->st_ino == vsp->vs_ino) { + rc = vsp->vs_status; + break; + } } } - return (VE_NOT_CHECKED); + DEBUG_PRINTF(4, ("%s: dev=%lld,ino=%llu,status=%d\n", + __func__, (long long)stp->st_dev, + (unsigned long long)stp->st_ino, rc)); + return (rc); } /* most recent first, since most likely to see repeated calls. */ @@ -156,6 +162,9 @@ add_verify_status(struct stat *stp, int status) vsp->vs_status = status; verified_files = vsp; } + DEBUG_PRINTF(4, ("%s: dev=%lld,ino=%llu,status=%d\n", + __func__, (long long)stp->st_dev, + (unsigned long long)stp->st_ino, status)); } @@ -270,11 +279,14 @@ severity_guess(const char *filename) /* * Some files like *.conf and *.hints may be unsigned, * a *.tgz is expected to have its own signed manifest. + * We allow *.conf to get VE_WANT, but files we expect + * to always be unverified get VE_TRY and we will not + * report them. */ if ((cp = strrchr(filename, '.'))) { - if (strcmp(cp, ".conf") == 0 || - strcmp(cp, ".cookie") == 0 || + if (strcmp(cp, ".cookie") == 0 || strcmp(cp, ".hints") == 0 || + strcmp(cp, ".order") == 0 || strcmp(cp, ".tgz") == 0) return (VE_TRY); if (strcmp(cp, ".4th") == 0 || @@ -398,6 +410,8 @@ void verify_report(const char *path, int severity, int status, struct stat *stp) { if (status < 0 || status == VE_FINGERPRINT_IGNORE) { + if (Verbose < VE_VERBOSE_ALL && severity < VE_WANT) + return; if (Verbose >= VE_VERBOSE_UNVERIFIED || severity > VE_TRY || status <= VE_FINGERPRINT_WRONG) { if (Verbose == VE_VERBOSE_DEBUG && stp != NULL) @@ -462,9 +476,10 @@ verify_prep(int fd, const char *filename, off_t off, struct stat *stp, caller, fd, filename, (long long)off, (long long)stp->st_dev, (unsigned long long)stp->st_ino)); rc = is_verified(stp); - DEBUG_PRINTF(4,("verify_prep: is_verified()->%d\n", rc)); if (rc == VE_NOT_CHECKED) { rc = find_manifest(filename); + if (rc == VE_VERIFIED) + rc = VE_NOT_CHECKED; } else { ve_status_set(fd, rc); } @@ -511,7 +526,8 @@ verify_file(int fd, const char *filename, off_t off, int severity, if (check_verbose) { check_verbose = 0; Verbose = getenv_int("VE_VERBOSE", VE_VERBOSE_DEFAULT); - VerifyFlags = getenv_int("VE_VERIFY_FLAGS", VEF_VERBOSE); + VerifyFlags = getenv_int("VE_VERIFY_FLAGS", + Verbose ? VEF_VERBOSE : 0); #ifndef UNIT_TEST ve_debug_set(getenv_int("VE_DEBUG_LEVEL", VE_DEBUG_LEVEL)); #endif @@ -523,6 +539,9 @@ verify_file(int fd, const char *filename, off_t off, int severity, return (0); if (rc != VE_FINGERPRINT_WRONG && loaded_manifests) { + if (rc != VE_NOT_CHECKED) + return (rc); + if (severity <= VE_GUESS) severity = severity_guess(filename); #ifdef VE_PCR_SUPPORT diff --git a/stand/common/interp.c b/stand/common/interp.c index b71e0858e702..0f142902b4ac 100644 --- a/stand/common/interp.c +++ b/stand/common/interp.c @@ -35,6 +35,10 @@ #include #include "bootstrap.h" +#ifdef LOADER_VERIEXEC +#include +#endif + #define MAXARGS 20 /* maximum number of arguments allowed */ const char * volatile interp_identifier; @@ -79,6 +83,10 @@ interact(void) input[0] = '\0'; interp_emit_prompt(); ngets(input, sizeof(input)); +#ifdef LOADER_VERIEXEC + /* some settings should be restritcted */ + ve_status_set(-1, VE_UNVERIFIED_OK); +#endif interp_run(input); } } diff --git a/stand/efi/loader/version.veriexec b/stand/efi/loader/version.veriexec new file mode 100644 index 000000000000..5c9292310c04 --- /dev/null +++ b/stand/efi/loader/version.veriexec @@ -0,0 +1,7 @@ +NOTE ANY CHANGES YOU MAKE TO THE BOOTBLOCKS HERE. The format of this +file is important. Make sure the current version number is on line 6. + +2.1: SMBIOS 3 support +2.0: Secure boot support +1.1: Keep in sync with i386 version. +0.1: Initial i386 version. Derived from ia64. diff --git a/stand/veriexec.mk b/stand/veriexec.mk index 930e933be0a9..a0ff7d1e8489 100644 --- a/stand/veriexec.mk +++ b/stand/veriexec.mk @@ -1,4 +1,7 @@ .if ${MK_LOADER_VERIEXEC} != "no" +.if exists(${VERSION_FILE}.veriexec) +VERSION_FILE:= ${VERSION_FILE}.veriexec +.endif CFLAGS+= -DLOADER_VERIEXEC -I${SRCTOP}/lib/libsecureboot/h .if ${MK_LOADER_VERIEXEC_VECTX} != "no" CFLAGS+= -DLOADER_VERIEXEC_VECTX From nobody Mon Feb 12 22:40: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 4TYfYV6H33z595fD; Mon, 12 Feb 2024 22:40: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYfYV5l2mz4RvD; Mon, 12 Feb 2024 22:40:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707777630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IiG6wK9OjDjlqT/y3eUG9yxPQUUeP4kxrZlMAExC0cg=; b=eWU5UlSqeLCoUco3DqlY8EbgjLopeCCieNWv+ios16G3dB7fGHvZEM9GhoDBcD/hF3XCH5 7qOwAIrEjX90679T3XqNIzQVk9VAdHY2MsuooeQ5nOPbxQpmOeB446sbCjNoj7Ha6RFiPk QR8+OG9KtlN5F61enifDpvy+CznoGsLjSlhW4qGORpvctZ0vg22KtyOO5E7Tp837rFBNie qxXGZm8OYvacxJPGPuaAYUqjsanGA874KCUM8rej4q+y6uiZFrPb1FPSWJ/oiny/I0O2ZR 2i92KF9drUBhNSbQo01oEyyGWgSKXnKZik7O5SduPs3UOKPd7g1XIBvy9gVUzg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707777630; a=rsa-sha256; cv=none; b=RJoQQN42JfOkT8kiwc/Yt/d2Kiud7H8uSa2FN86WLenY2lRzsmxbYSHeUqFyQsJDp5J9+X N3e9wTqrheHasvq9tvv9wcafHpAOr4/N0eytX8CZua5BCfi3qlv/9JXB5hTiYx+e9ofv8t UFgAnbYSZQReXRqesM6vAvpuOAAlYYkDHYopMELCErQQi14mLqzU9PPMOZ0fm8+MPR4nke JM+4M75UJ27XubbcOnTOypR/PjH/fIzAZHBmD6x8gT4aTPSftCFRsImVgohJUd3TStoLSb RAKk/yFAQxBKmo5aSUiSTR5fQptae0yOiMbQy4Ut1Mi27D5YIAb/JPFJGAgYzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707777630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IiG6wK9OjDjlqT/y3eUG9yxPQUUeP4kxrZlMAExC0cg=; b=OEHg7F4WlRjzkOi1trFAMrFBQ55xrjRBQTLrOjAjTli4jeYA/hQWDc67epvQI3MqwVIKHw k2Vf8F9fuB32gqwVPiz7gh8+8qWIpdui8P8PC3k4cjvJxqvEN9ZUNfABJIw21EA+7f7L2J sLq8O4UHc+a0OYI78oDAb2Qvr3YOTK86HNxDpJhMe4PXUQX0omY3b8iVBIKPt5v6QKYJi1 tK2DqFS6Q/sWbuJ9fcniwFLT6fTyKIaOTf5Ll2ajBhHTKt9qFEOLyOhxP3GkV5quxgmEci apKM6CD/v2RobXF8GRA0WiM+Gv32s9JBgw0qbqSsV8WZZS8r+LbhLpY295OiAg== 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 4TYfYV4NWnzqDv; Mon, 12 Feb 2024 22:40:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CMeUkx010659; Mon, 12 Feb 2024 22:40:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CMeUxj010656; Mon, 12 Feb 2024 22:40:30 GMT (envelope-from git) Date: Mon, 12 Feb 2024 22:40:30 GMT Message-Id: <202402122240.41CMeUxj010656@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: b75bb99621fb - main - rc.subr add Exists so we can find sed 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: b75bb99621fbebae3b7f56ea01e711333d0455d8 Auto-Submitted: auto-generated The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=b75bb99621fbebae3b7f56ea01e711333d0455d8 commit b75bb99621fbebae3b7f56ea01e711333d0455d8 Author: Simon J. Gerraty AuthorDate: 2024-02-12 22:39:20 +0000 Commit: Simon J. Gerraty CommitDate: 2024-02-12 22:39:20 +0000 rc.subr add Exists so we can find sed SED=`Exists -x /usr/bin/sed /rescue/sed` avoids adding /rescure to $PATH, and allows use of sed before /usr is mounted (if a separate filesystem). Reviewed by: jlduran_gmail.com Differential Revision: https://reviews.freebsd.org/D43826 --- libexec/rc/rc.subr | 40 +++++++++++++++++++++++++++++++++++----- libexec/rc/safe_eval.sh | 2 +- 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr index d76f0ba4f9a7..16b2c9fc5e88 100644 --- a/libexec/rc/rc.subr +++ b/libexec/rc/rc.subr @@ -156,6 +156,33 @@ vdot() return $rc } +# Exists [test] file ... +# report the first "file" that passes "test" (default -s). +Exists() +{ + local f _t=-s + + while :; do + : 1=$1 + case "$1" in + -?) + _t=$1 + shift + ;; + *) + break + ;; + esac + done + + for f in "$@"; do + [ $_t $f ] || continue + echo $f + return 0 + done + return 1 +} + # do we have $1 (could be a function) have() { @@ -179,8 +206,8 @@ rc_trace() [ -f $cf ] || return if [ -s $cf ]; then # don't try to set RC_LEVEL without sed - if [ -x /usr/bin/sed ]; then - RC_LEVEL=$(sed -n '/^RC_LEVEL=/ { s/.*=//p;q; }' $cf) + if [ -n "$SED" ]; then + RC_LEVEL=$($SED -n '/^RC_LEVEL=/ { s/.*=//p;q; }' $cf) RC_LEVEL=${RC_LEVEL:-0} fi else @@ -2498,6 +2525,8 @@ if [ -n "$boottrace_cmd" ] && [ "`${SYSCTL_N} -q kern.boottrace.enabled`" = "1" rc_boottrace=YES fi +SED=${SED:-$(Exists -x /usr/bin/sed /rescue/sed)} + # Allow for local additions and overrides. # Use vdot to ensure the file has not been tampered with. vdot /etc/local.rc.subr @@ -2514,10 +2543,11 @@ if ! have basename; then { return 0 } -else - # safe_eval.sh provides safe_dot - for untrusted files - $_SAFE_EVAL_SH vdot /libexec/safe_eval.sh + # we cannot use safe_dot without sed + [ -z "$SED" ] && _SAFE_EVAL_SH=: fi +# safe_eval.sh provides safe_dot - for untrusted files +$_SAFE_EVAL_SH vdot /libexec/safe_eval.sh $_DEBUG_SH vdot /libexec/debug.sh # Ensure we can still operate if debug.sh and diff --git a/libexec/rc/safe_eval.sh b/libexec/rc/safe_eval.sh index bd9bc9394814..10b6ed09c769 100644 --- a/libexec/rc/safe_eval.sh +++ b/libexec/rc/safe_eval.sh @@ -24,7 +24,7 @@ _SAFE_EVAL_SH=: # any non-alphanumeric chars are replaced with '_' # safe_set() { - sed 's/[ ]*#.*//;/^[A-Za-z_][A-Za-z0-9_]*=/!d;s;[^A-Za-z0-9_. "$,/=-];_;g' + ${SED:-sed} 's/[ ]*#.*//;/^[A-Za-z_][A-Za-z0-9_]*=/!d;s;[^A-Za-z0-9_. "$,/=-];_;g' } ## From nobody Mon Feb 12 22:59: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 4TYfzT0C2zz597YK; Mon, 12 Feb 2024 22:59: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYfzS2sSXz4Tvh; Mon, 12 Feb 2024 22:59:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707778772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vCf7TIal/iFsOLggd0SCknzTcwtjK9JFHv0s513Iwug=; b=vxb+Doa8+n1Wmf3+ZQxoP05W4o2fmM89Wuwk/dFPKcvqNREFqWRGPFCdLpYtXxoVdr40I/ lg2RKuA9hY7+qsP3NkzAsGlbZawEctQgRu7NilKJ63+LSUd4U3rFeBocx+fRbNw9btT31+ r7eVxnl7lXaTdYI2F216mmvLxI41YI/30jnspukKfzJBU7DnK2HjPUXa+1/XO2/CeCWCh3 nC5fjmfDzxubrkE1zzSJ7MAm6nMmfBEwy21L5SG0htQAgnLqF45ypjF6XNCy36wfPVPvCJ 75Ay8hANNNT2cRf2j4Zjn56wJGR3RRmk+AYKfk4eneNcXXkO+w1C+OKSvtAELg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707778772; a=rsa-sha256; cv=none; b=AgryVX7NZjnxZFZE9G9KqBfXExYhjxeAVmR1nLzouCjIWie68uPZJzGtoN9fNer8MH1qbH w4AKBOB5xvADe32oBYcoP1gIXwvrp4rdaII+ayRsM6/8yoxql3PNEn7q8c9xZN4/8C1Pfp eR2i1x4sSQxCDHkycpRR1oW9BzGQZH36crj/6OlX33YHGOrdhFCm97aekOEiuF9Tvo0JMm up9rjotNUoli3E152k68lZOnYo7MuQlzxwmdwYf1gNaWLVwZpuVWdBAPwRvulyWEw6rufn 6wtgLhPJVTnRIKZSfjIu7FbcL8Miv/ek8MVO7RgTNG59NZ8lnsUxSNMIR2B9/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707778772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vCf7TIal/iFsOLggd0SCknzTcwtjK9JFHv0s513Iwug=; b=OkHkwB59qJP3VB3RHalTxUSG/FwuXQlorte4nFhkuFvBOcYM+ld2h+gWQjUcYd3Cfv22ap XKdUA2uHGUs2DlP77HvTMA8G6C5XkSQqd8Vg38LN01T6BSr06yX3BNWTR+v8Ue23sVxBci kbaD7P987dDx5qritsa6bGTR823nyv2XBkWC+0Rxx4DeNWCK2Y2TNvPGWnvr5NSoUMB68+ si3xc0L7HsFT6g655mq/Icl48nhyOJC5TgV7MPBTlbCf+Mn7NcEYc6xM1RsujgrfrQTBBP WK5a/r5A966F/vsU2jmJvkWnfbat1rwUguZX5QVMnCs40kOo3VYS6yuYHHdUUQ== 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 4TYfzS1zRGzr5w; Mon, 12 Feb 2024 22:59:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41CMxWae035176; Mon, 12 Feb 2024 22:59:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41CMxWAJ035173; Mon, 12 Feb 2024 22:59:32 GMT (envelope-from git) Date: Mon, 12 Feb 2024 22:59:32 GMT Message-Id: <202402122259.41CMxWAJ035173@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: bd45bbe440f1 - main - rescue: Fix after zfsbootcfg addition 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: bd45bbe440f19eeb166a13798c8dcc4dfeb29e36 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=bd45bbe440f19eeb166a13798c8dcc4dfeb29e36 commit bd45bbe440f19eeb166a13798c8dcc4dfeb29e36 Author: Warner Losh AuthorDate: 2024-02-12 22:10:37 +0000 Commit: Warner Losh CommitDate: 2024-02-12 22:59:14 +0000 rescue: Fix after zfsbootcfg addition Get the library dependencies correct for zfsbootcfg. libzfsbootcfg depends on a all of these... Fixes: ac4847e6b0e9 Sponsored by: Netflix --- rescue/rescue/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index 4c351e632638..5d5c609eb218 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -148,7 +148,13 @@ CRUNCH_LIBS_zfs+= ${LIBBE} \ CRUNCH_LIBS_bectl+= ${CRUNCH_LIBS_zfs} CRUNCH_LIBS_zpool+= ${CRUNCH_LIBS_zfs} CRUNCH_LIBS_zdb+= ${CRUNCH_LIBS_zfs} ${LIBZDB} -CRUNCH_LIBS_zfsbootcfg+=${LIBZFSBOOTENV} +CRUNCH_LIBS_zfsbootcfg+=${LIBZFSBOOTENV} \ + ${LIBZPOOL} \ + ${LIBZFS} \ + ${LIBZUTIL} \ + ${LIBZFS_CORE} \ + ${LIBICP_RESCUE} \ + ${LIBNVPAIR} .else # liblzma needs pthread CRUNCH_LIBS+= -lpthread From nobody Tue Feb 13 01:10: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 4TYjv11pjyz59NpF for ; Tue, 13 Feb 2024 01:10:53 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYjv100BFz4lvn for ; Tue, 13 Feb 2024 01:10:52 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-33b1d7f736bso272855f8f.3 for ; Mon, 12 Feb 2024 17:10:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707786651; x=1708391451; 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=Fb/uUO8FPzpUrO0oHAni5GsafTpkd6TwxJBwIjwz1cw=; b=JX6xGPXrOq6Pv4qdpl3/Tmtdf/aVD134TucvYZPiJtFi0eWRHlrecuB4XUj8UsoEPJ murBG0I4eSJsfHEevUttiATRE7CpfS4BFpm6FEv8tHC/xRpzqf+BsBGEaGc6BxP3/2Rd EqthwQ1GdpIJJ7X8MLiLBwRXihtBJvGndjxN5nqae0Hh8V9TIYzyarE+sE6HF3ATNb5u NRwIB495+uCDhH1QnLbDuTH+a6po/psV+rSJxPJ2qS94IgNzOckta1Kk0RJmz1IyySD8 6JT32DtNSriXjtgBqZwTcFOg8oayWJyTmGH+Ts//ClCLdd/QdPfIU6HFNdCwV8iYgC// LeRg== X-Forwarded-Encrypted: i=1; AJvYcCWjPCnXytvOTcbGtnJhqrQK2JDRJI16KRHz1LFgo98BVVPx5h6S8w2gHC/ti0dhoy1pn6IZhFu0k5ItKlx9CXzXnJU//3CwD4Y5yY0pVrSX X-Gm-Message-State: AOJu0YxShxZiVHow+mKQk8SLTm39153JJxQf4ztJw/h5S/C+X+DFXRW9 RW5QHB9HCRTj9HOyfSl7m6AN33F9dc1XU657gTU9XQHupAlQ11+jmhfVIqaEJow= X-Google-Smtp-Source: AGHT+IHEi2mgGj1QdxgXLYI7U8QEpck9e0YBVJuxVy6TuOebfBE2ysu9u6qMLTUpcKg6w61ovmp23g== X-Received: by 2002:a05:6000:11ca:b0:33b:61b3:4bd8 with SMTP id i10-20020a05600011ca00b0033b61b34bd8mr6066994wrx.67.1707786650924; Mon, 12 Feb 2024 17:10:50 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUAigU5rGLsyaJnF/Fy6/1uSOxja02DmsTk7rMYgQcHYQgbjtdBDl66FL6Adh6YVhQbhutg6aMXWK0kaK/jsenteHHrbCH3FzgHU0ro/cEOdWtEY6NozUjXBckN3VepHCflxcl0QWky2aEeOdkEQ7E+wg== Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id m18-20020a5d56d2000000b0033b60bad2fcsm8016717wrw.113.2024.02.12.17.10.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2024 17:10:50 -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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: git: 0df5f65908dd - main - reboot: Implement zfs support From: Jessica Clarke In-Reply-To: <202402121853.41CIrfdp030604@gitrepo.freebsd.org> Date: Tue, 13 Feb 2024 01:10:39 +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: <202402121853.41CIrfdp030604@gitrepo.freebsd.org> To: Warner Losh X-Mailer: Apple Mail (2.3774.200.91.1.1) 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: 4TYjv100BFz4lvn X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On 12 Feb 2024, at 18:53, Warner Losh wrote: >=20 > The branch main has been updated by imp: >=20 > URL: = https://cgit.FreeBSD.org/src/commit/?id=3D0df5f65908dd1913212535e6c4dd4c73= ce19c305 >=20 > commit 0df5f65908dd1913212535e6c4dd4c73ce19c305 > Author: Warner Losh > AuthorDate: 2024-02-12 18:45:37 +0000 > Commit: Warner Losh > CommitDate: 2024-02-12 18:45:37 +0000 >=20 > reboot: Implement zfs support >=20 > Implement full support for ZFS -k support. For ZFS, we have to set = a > property that gets cleared by the boot loaeder for whether or not = to > process nextboot.conf. Do this using system("zfsbootcfg..." rather = than > coding the small subset of that program inline to avoid CDDL > contamination of reboot and the complications of disabling CDDL = and/or > ZFS. The few bytes needed to implement reboot for systems with zfs = is > not worth saving for systems w/o ZFS. Can we at least use posix_spawn rather than system? The asprintf+system combo may in practice be safe, especially given the nature of this tool, but I don=E2=80=99t think it=E2=80=99s a great idea to be writing = system-using code in 2024 when it=E2=80=99s easy to avoid. That way nobody needs to = stop and think carefully about whether the code is safe, because it is by construction. Jess From nobody Tue Feb 13 02: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 4TYlcT3f2Dz59YDy for ; Tue, 13 Feb 2024 02:28:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYlcS5vxMz3xdM for ; Tue, 13 Feb 2024 02:28:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5600c43caddso4641933a12.2 for ; Mon, 12 Feb 2024 18:28:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1707791302; x=1708396102; 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=r5uCYuv5vGFnLL1HPK9A9JUbEG8KLZ4hd3S8416+U/A=; b=MIGPhen3I7Vrtl/jbS3Ur0Oc+4W+yKFoYq4cDyGPsCXB6WGrQmy4aT2vRvcYmNwO76 y/0GA3ELzW9WhhCF0r0SZwtZamyUB6aNlzPTsIkv1QCQ1JUYltjajiFXYffb67BEYT9L MDdCusjcGRqAp9GvGxFAxzuf0nD1eFS/1h90HGqwJ5j15NNABOFf1J6WLE+pw/rZEjst 776LiM8dQrvEChXgqtW62G1f9nz4F74k+3phBXqq3qMlKdboFwF7KgwT2EVb9ME6ykiK KrDWrPVGnuu4dapQTKLQZ7nOzXeJRnKX7fHhCo64eslZGVUfL8Oxf/HFxJlWijU9jBqu qREA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707791302; x=1708396102; 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=r5uCYuv5vGFnLL1HPK9A9JUbEG8KLZ4hd3S8416+U/A=; b=ENIh2qNL9sjhlwIrb3ehoa7hf8YhZOZsYOzaKZa+EfGqsZhDY/3CtjLb1MmmIvtsGt 3TeoGruItiPdpC7uI5JjISort+1lKOlzmu4C5+SPMN3NModRtVQiS6+asSTiK4C13dZZ Lunra+NPfXjSXlU5ujj00OVEPbq8FDkIQtx3/3TBPoaQHg4IivEh9BOcOxAklC34WlFk bhzG9N0ElIvIk+g9bfKOGKqL217i71DJ1/8YRaXSrbwVPllpStqNfjY4hvyfwlc2sz7E XJE/RA/4JWEbL00jUQc5qqNBVSpsEyZyYhgclA+U4BXXSj5VIw00z3fFKNAHK4G16GMw YyVg== X-Forwarded-Encrypted: i=1; AJvYcCX8FjduVBJ478Pk3/rgjdeEQh9u8Fp2poUAw2yH1qezXey3UMjhC9ju3S+cqKInToV2xXJ2oC3cdTKmJUIv6lYd1Mva8ZL8J2kJ/FXS1QA3 X-Gm-Message-State: AOJu0Yw/yB6445JDlv2e5YdUVcZZp5VSJNogZASKEn0dyg1tt7wMkRLV nRKod2IDAtFmTJHE16ChBSzYoetqkjkB5aTRKs6yyfm8y5YouEzujYfXoG5gPbGcbkB3K0PDCRU wppq30T7JyG+Vr6KYXWDcbUaPVRyhthk8oclyzA== X-Google-Smtp-Source: AGHT+IEIRoz1ewqhQyBgUHmLDaJgAOhil9LJGcPdvFKvzE9tljiuB/6wPduJRbCnY6gbzMUcsclE12t2rtwm5MIdJ8Q= X-Received: by 2002:aa7:d40f:0:b0:561:3de1:ba36 with SMTP id z15-20020aa7d40f000000b005613de1ba36mr5517366edq.34.1707791301776; Mon, 12 Feb 2024 18:28:21 -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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 References: <202402121853.41CIrfdp030604@gitrepo.freebsd.org> In-Reply-To: From: Warner Losh Date: Mon, 12 Feb 2024 19:28:10 -0700 Message-ID: Subject: Re: git: 0df5f65908dd - main - reboot: Implement zfs support To: Jessica Clarke Cc: Warner Losh , src-committers , "" , "" Content-Type: multipart/alternative; boundary="000000000000e4a7c306113a2543" X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4TYlcS5vxMz3xdM X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --000000000000e4a7c306113a2543 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 12, 2024, 6:10=E2=80=AFPM Jessica Clarke w= rote: > On 12 Feb 2024, at 18:53, Warner Losh wrote: > > > > The branch main has been updated by imp: > > > > URL: > https://cgit.FreeBSD.org/src/commit/?id=3D0df5f65908dd1913212535e6c4dd4c7= 3ce19c305 > > > > commit 0df5f65908dd1913212535e6c4dd4c73ce19c305 > > Author: Warner Losh > > AuthorDate: 2024-02-12 18:45:37 +0000 > > Commit: Warner Losh > > CommitDate: 2024-02-12 18:45:37 +0000 > > > > reboot: Implement zfs support > > > > Implement full support for ZFS -k support. For ZFS, we have to set a > > property that gets cleared by the boot loaeder for whether or not to > > process nextboot.conf. Do this using system("zfsbootcfg..." rather > than > > coding the small subset of that program inline to avoid CDDL > > contamination of reboot and the complications of disabling CDDL and/= or > > ZFS. The few bytes needed to implement reboot for systems with zfs i= s > > not worth saving for systems w/o ZFS. > > Can we at least use posix_spawn rather than system? The asprintf+system > combo may in practice be safe, especially given the nature of this > tool, but I don=E2=80=99t think it=E2=80=99s a great idea to be writing s= ystem-using > code in 2024 when it=E2=80=99s easy to avoid. That way nobody needs to st= op and > think carefully about whether the code is safe, because it is by > construction. > News to me, but also the first time I've used system in 15 or 20 years... Sure, I'll rework and add you to the reviewers. So TIL... Warner > --000000000000e4a7c306113a2543 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Feb 12, 2024, 6:10=E2=80=AFPM Jessica Clarke &= lt;jrtc27@freebsd.org> wrote:<= br>
On 12 Feb 2024, at 18:53, Warner Lo= sh <imp@FreeBSD.org> wrote:
>
> The branch main has been updated by imp:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=3D0df5f65908dd1913212535e6c4dd4c= 73ce19c305
>
> commit 0df5f65908dd1913212535e6c4dd4c73ce19c305
> Author:=C2=A0 =C2=A0 =C2=A0Warner Losh <imp@FreeBSD.org>
> AuthorDate: 2024-02-12 18:45:37 +0000
> Commit:=C2=A0 =C2=A0 =C2=A0Warner Losh <imp@FreeBSD.org>
> CommitDate: 2024-02-12 18:45:37 +0000
>
>=C2=A0 =C2=A0 reboot: Implement zfs support
>
>=C2=A0 =C2=A0 Implement full support for ZFS -k support. For ZFS, we ha= ve to set a
>=C2=A0 =C2=A0 property that gets cleared by the boot loaeder for whethe= r or not to
>=C2=A0 =C2=A0 process nextboot.conf. Do this using system("zfsboot= cfg..." rather than
>=C2=A0 =C2=A0 coding the small subset of that program inline to avoid C= DDL
>=C2=A0 =C2=A0 contamination of reboot and the complications of disablin= g CDDL and/or
>=C2=A0 =C2=A0 ZFS. The few bytes needed to implement reboot for systems= with zfs is
>=C2=A0 =C2=A0 not worth saving for systems w/o ZFS.

Can we at least use posix_spawn rather than system? The asprintf+system
combo may in practice be safe, especially given the nature of this
tool, but I don=E2=80=99t think it=E2=80=99s a great idea to be writing sys= tem-using
code in 2024 when it=E2=80=99s easy to avoid. That way nobody needs to stop= and
think carefully about whether the code is safe, because it is by
construction.

News to me, but also the first time I've used system in 15= or 20 years...

Sure, I&= #39;ll rework and add you to the reviewers. So TIL...

Warner=C2=A0
--000000000000e4a7c306113a2543-- From nobody Tue Feb 13 03:23: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 4TYmqj1zZNz59f79; Tue, 13 Feb 2024 03:23:13 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYmqj1V06z45Dj; Tue, 13 Feb 2024 03:23:13 +0000 (UTC) (envelope-from danfe@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707794593; 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=1C5M6OqCiXnmuG8ylEDXjyshHB/EVwRnZ9m49tXWKIg=; b=OgQrYu/OHZ9kjQzZyAznt8U5FuMLUbKVR52zPWPmnDdCuWdMvX+yMEUgdIE6o89erxI4CR q85YnlokTT6F4kgN+b2cFQhIoISE91djhPdxazKT5wCSYEAW5IQBUnkMrfUHH1nO48smE9 YeZSBobiNIelMglEEhwdnhY/pI9jU3jRi5EkaHqhxpoTijLmQG+BDPEjCKJ9YmdI+SZn+o wLTdm/E5otwumj4xeh7NrczEs0tXdp+15FwmdPeGkrEgf5dDlC6NboptFhES8k4mO2y7ij O2FU1bi3BBJIqGw1bxig/G2yKLDNSZ11veKDHJXvS/DuL3c7s8jDnoBjyRKA5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707794593; a=rsa-sha256; cv=none; b=jtsxddTvWcbsXM7O8R3HOKmdr2xzFrUBscm5Gix1O224i8loR2xGmZTYmCyUzsr2Z7jJe2 yUBAFd6x5Vs4QLpyVMod4//EKV/OwL8Onh38r5UVVKqMXblgmPi7LYPu6bZNaZJomJIU5B jQpc8GQiMXKq5VUiC/U3wmfLr6jqjSEh1bRpmQhZjwnIeg2Uu3U9+y3KwPoiGWO6ZkEfMA isVdeQCLVC4yS2Av0GlK2FzaDcSEY0mX/NjlYilANC+ARfzKwxz5cQzuj6CjFLwyb/VIGw 5bv1W6N+90y9YIZcnlFbE5PWfGykW/nr2+Zmy6jm2zqV094l+TydtgLtXZuSAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707794593; 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=1C5M6OqCiXnmuG8ylEDXjyshHB/EVwRnZ9m49tXWKIg=; b=kej2eok4JkDWYJt55uE0gG7S2V9aHHX/Ms9tCqpDBOcQtSI3KtgMGnc4ouB7JRZFA7buJb mCMad2lrm2aBORHK10DQD5GQwHc7P2X2XLGGUFuAQYdmSM5WafZIKCJrJH4x17X/czYi39 L/VVNNEiP8Uv1cOFjPmVnBbn8yYCmccjTdrDuw06zDNE/Dw7m38K5JhKTjTfqp0YYumpSp d6+HSRdfaCiw5p496ADSJ/jYnHQj9Ozu84Pk+tI7F/eZHFRIJ/qFbEa4ZXhOjIOF+8GZvF iZ+H3Ku33X4XyE5qG5I+qeSLHhVigcjM/btZgYZtcoGHkqSuNwqoXtqKgd6T+Q== Received: by freefall.freebsd.org (Postfix, from userid 1033) id 1654F2298C; Tue, 13 Feb 2024 03:23:13 +0000 (UTC) Date: Tue, 13 Feb 2024 03:23:13 +0000 From: Alexey Dokuchaev To: Ed Maste Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: fd1066bed67f - main - .profile: Don't bother checking for /home symlink Message-ID: References: <202402121425.41CEPmxI075183@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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202402121425.41CEPmxI075183@gitrepo.freebsd.org> On Mon, Feb 12, 2024 at 02:25:48PM +0000, Ed Maste wrote: > commit fd1066bed67f642ed01f5dd62b7b6cfb0a45fd4c > > .profile: Don't bother checking for /home symlink > > Since FreeBSD 14.0, user directories are created directly under /home. > This check should no longer be needed. > > @@ -19,9 +19,6 @@ > # set ENV to a file invoked each time sh is started for interactive use. > ENV=$HOME/.shrc; export ENV > > -# Let sh(1) know it's at home, despite /home being a symlink. > -if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi > - The installer creates separate /home, individual hackers might want to partition their drives the old way as / (root) + /usr (everything else), so this check is probably still useful. ./danfe From nobody Tue Feb 13 04:47: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 4TYphR4Ps7z59nZD; Tue, 13 Feb 2024 04:47:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYphR377Bz4G7g; Tue, 13 Feb 2024 04:47:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q511MOcw6aP33cFLsd1XrSaLElelNB6Cv829K8RgAos=; b=VyfLwdgDWeYrvz5UL/ygZYKD0XvWc1orTAVvlyAMSsn5T9y7jgvK4n3sZkEn9xDw4vHQMa yOEbidaUCPTSUqGHs30+571QozwbXpqiSjyz5cxq/6uA/hcoouu21aus3dCCkHejwckIGf mWCFhDz8sr8yET0JHVO7LdYjXZ8A9MI2DvS+4h4yoPXnhPkoLchxobYLznSdB87hbw3FIr 4x3GdRlbEYHnpmoPNnZvuw6tpIQ1tTN5P/6cJm2/bWlfqDGjBCBvwTbKr8ep1QMQ7EKObP 2oW/OcZsrfzfAJvzW09YapDEo5UuOudaoRoBM5oj8VKQP40tIPcFQ6HyNirMQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707799623; a=rsa-sha256; cv=none; b=Ew1tCiRSFlHjbqy3Bq7rbyQN0IvKTL8Sy2OlbjkGkYiy1WVym/Qf9IP+FlgWG84pnssMOS 8AN8oHD0suWGYns4jMLYwsctHzz87t5A0fFsYk1YdWLa3E9Gaf0mnoM/URa6Le5LC8or1c At3f8iVWluS58pbZ6x0Uekd1hHGGVbA4zlGMh9y1NM8jBakZuvawDodnx/ffc1FDWqswjB wvrtHqqT1epHe6opnJdSo+anslaP1ctkjXZdHcXtBcg+cxRiISRS54EUl2Sc/idgMKM04c 3eep0DLeXCNObR9ulohIPKLAmCGAiSm9odQxcLhBZs6bQDykjfAcB7e8WR9yGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q511MOcw6aP33cFLsd1XrSaLElelNB6Cv829K8RgAos=; b=Pyw3pg9YpyiNOR4q7Cb9NSa30LUhS6J0DyJq7VJeQnGLbJ+fcN5MRBgKbXbgm6W0pq1eg1 ymcGVt4UTD0T/86Geth4WVaTiOPKUKwokgztTVeSNlUfa2fGSMWRLoXU2xCnhL6DnSaUNE qklj+9jPXoW5TVKhxTqjDr0hhSlcAiUE41AC+gbUgCmR8TSsawwZ1xP1lqzIXJrtN9ECnR F1ejc9DTnPonJVPJef95O/giPdOPj5oxQB+u5YCfnfRXzQq5SfDgTAqraf08RhwlI7+2ze 25F6wx4dAU+3zJ0qSw0EJZddPss6Tk09cSpswuYLCBqlbKSVm643VUoNffQi3A== 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 4TYphR0JBzz11hJ; Tue, 13 Feb 2024 04:47:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D4l2R0024112; Tue, 13 Feb 2024 04:47:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D4l2K6024109; Tue, 13 Feb 2024 04:47:02 GMT (envelope-from git) Date: Tue, 13 Feb 2024 04:47:02 GMT Message-Id: <202402130447.41D4l2K6024109@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 2e8ad2b69849 - main - sysctl(8): 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2e8ad2b698498a1c380d0d6fc5792b2c56926801 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=2e8ad2b698498a1c380d0d6fc5792b2c56926801 commit 2e8ad2b698498a1c380d0d6fc5792b2c56926801 Author: Hao-Yu Hou AuthorDate: 2023-12-30 09:36:11 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 04:28:55 +0000 sysctl(8): Fix typo in comment Line214: combind -> combine Reviewed by: zlai Event: Advanced UNIX Programming Course (Fall’23) at NTHU Request: https://github.com/freebsd/freebsd-src/pull/966 --- sbin/sysctl/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index c37c1f3f7400..9e81f4480e40 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -211,7 +211,7 @@ main(int argc, char **argv) argc -= optind; argv += optind; - /* Nflag is name only and doesn't make sense to combind with these */ + /* Nflag is name only and doesn't make sense to combine with these */ /* TODO: few other combinations do not make sense but come back later */ if (Nflag && (lflag || nflag)) usage(); From nobody Tue Feb 13 04:47:04 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 4TYphS4BD9z59p0N; Tue, 13 Feb 2024 04:47: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYphS1mhtz4GR5; Tue, 13 Feb 2024 04:47:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=v3Y0kTTfJD5bgFxX+mQgbojFRd5qZ/rZA4DHhfbHsj8=; b=DxCgOoAyGbFVtV8D/DhLHhZOP5ldM34FQu9bN8mLFr35cCmKZYGT22JIK7trz2eMB7/nf1 u/YgdhyFyA0/qfPv1M5C0/a3l7mVCpPq97+kqHGBceTMi4HPpo6gjG4LUgRsORf5UfjuW5 3Eo5HOuYv/LAPB7zeiUIwwqs45K5AqAC0Qh0ZYVu6D3VGuSdk59qmuOsDbO6m4M0TktGqK f2I7GDr5vP69BU+mYt38++QeuQMyWWEO3HpjmUG1j8OoJidjNiiaR8tqEo2RxEBiGKkanb PsSG+pYJfzf/CDV0Rx1ro2YcZEpvg6blCYBO57hmOqEXKmtU/w5nHWvcN156yA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707799624; a=rsa-sha256; cv=none; b=vRT6V1w4g8T+FCJS17Hy28Zf+fU8lzWEz0O3wfrppAphGkE3f0IXxlp3tuWacc8M0TPW5W O76TIX/Yw0OEXfM0Gbg0tWxXsNzDkNzRSkXN42LB0qLfc3O7rAw4KCqfTVMR0ZC1D6+FTt SUQPJed6Gxt3lfDL1yLM9xUAqd8xojQnZSBhW7d6ngq7BB6DZV6IqkSzBDMVnmL2dZYAgG 7n+ds0/R5u5vEVl+zBTPb4nNlqkBXsfCNqSzx6VX78b4fyXYL+cOpsQTDw/KMmYgxMO2AW QwkOgjuRcwk+Wub5ovE/Au+LUpfT1S+oBQsEVIs1ZO195QxbhETadGIetq2XeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=v3Y0kTTfJD5bgFxX+mQgbojFRd5qZ/rZA4DHhfbHsj8=; b=qn6WdSO70ZnKkhxXH0t5HQ1anvflSFZtGRxqMjdrY2rNkIlNg2dKAmC/WZBBUzW5YeMFzi rAzVjqwZJeUYg+vCLeETWMHdryVT9lFNAzTuxTsfw+FPXdvBWemx/555BLW0XVOw8aeDpp z13E3w49tTk619dOKxIzsHOw+BKv7FF5jkNtyOAG6NT2qQBUJzeb/cmWsS/KsvqAoE2sBE 6j0uk5RHod98TyL/n48k5FSLDHqLzj43hSqwu17jDMo7qacUtIcWhEqwJIBMRN0LEACBM2 50sguUSUoCH+K6TwPVdW5Lr9w9rChqLS5M9Mzl4pl/1vZ29b2jUuD6VXbYUiFQ== 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 4TYphS0rqgz11Jh; Tue, 13 Feb 2024 04:47:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D4l4K7024154; Tue, 13 Feb 2024 04:47:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D4l4xF024151; Tue, 13 Feb 2024 04:47:04 GMT (envelope-from git) Date: Tue, 13 Feb 2024 04:47:04 GMT Message-Id: <202402130447.41D4l4xF024151@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: e9866ce84f41 - main - ping(8): Fix typo in ping6.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e9866ce84f41bf8a5122713b027d1af05cbbb5b3 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=e9866ce84f41bf8a5122713b027d1af05cbbb5b3 commit e9866ce84f41bf8a5122713b027d1af05cbbb5b3 Author: Hao-Yu Hou AuthorDate: 2023-12-30 09:59:27 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 04:29:07 +0000 ping(8): Fix typo in ping6.c Line 703 & 863: kerel -> kernel Line 2110: resposne -> response Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/967 --- sbin/ping/ping6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/ping/ping6.c b/sbin/ping/ping6.c index 99de4f608d69..356f0f72a6f8 100644 --- a/sbin/ping/ping6.c +++ b/sbin/ping/ping6.c @@ -700,7 +700,7 @@ ping6(int argc, char *argv[]) } /* - * let the kerel pass extension headers of incoming packets, + * let the kernel pass extension headers of incoming packets, * for privileged socket options */ if ((options & F_VERBOSE) != 0) { @@ -860,7 +860,7 @@ ping6(int argc, char *argv[]) } #endif /*ICMP6_FILTER*/ - /* let the kerel pass extension headers of incoming packets */ + /* let the kernel pass extension headers of incoming packets */ if ((options & F_VERBOSE) != 0) { int opton = 1; @@ -2107,7 +2107,7 @@ pr_nodeaddr(struct icmp6_nodeinfo *ni, int nilen) /* * In icmp-name-lookups 05 and later, TTL of each returned address - * is contained in the resposne. We try to detect the version + * is contained in the response. We try to detect the version * by the length of the data, but note that the detection algorithm * is incomplete. We assume the latest draft by default. */ From nobody Tue Feb 13 04:47: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 4TYphT50Nhz59nv2; Tue, 13 Feb 2024 04:47: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYphT2nDKz4G2v; Tue, 13 Feb 2024 04:47:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lPwlb8WJTRroRJ+US0mk+VwEAIAISu3UjG4sx9Lc9Rc=; b=aMbtIxjvl0yxk3nW5KpJxH5437pWPuAkaqbluD+h2WJmsm0wp+ZUU9fPcnf6q36GanWgyp SoNINwlYTMy4rTgbIrZooEJmlJKCBo7XC0nF+WDk0FE1A9Qi7EO4NlrhQIhwBvKg3dYdAz SU7YP2Q+NWC3dfniFZ4l6+ZeKYpBl81/k6p8PnaJ0iCFVbop6su3Bofc1BkPWbj1Z4gI+6 lrPj8n8MwwStft2wKlRiv6YvxMb5MPIWCk92qGIIMVILfciSYHUAqTIB8EMzLlvPmzH8kV jupquUwdszPi0L9GRL/yyQOxe13rXtIPSewCNf4kGTOKIjNRwcHIi0hIWUn3zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707799625; a=rsa-sha256; cv=none; b=DdfF7BWR8+vCodJNZy8lRBRqxfM3HE3MLZaBqUTl2H03ig4bgi7d8N4Fql2s6t67YTqp/M n2Awikf/BN/A19DGLexW8MME8d34uUdSay19qqRA8JhGe69nCUwgOBzMLimYOMv3fCNnYn aNTz75DR2cpKRc59ZR76ajXvGRk45yfm45jW4imkDVsXO/O0zDR6D3UhkjNwnadhYB5GbG 2oSmjUzmoYe4ib5/epUEJrK+z5kMbBQA5S8jW/LGxl7rszCF1d1mbI36dEQraf4YQv8Uzv psgwjiAqHbISgIR1Prq0fv7OKStsCjUYtlUObuUyisYafhd4SuqVWDDctIeEZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lPwlb8WJTRroRJ+US0mk+VwEAIAISu3UjG4sx9Lc9Rc=; b=UUpuG+aMZftPNWNJcqWVglkbyWw6EJZb0w5A6t3hmqi4vNZx+j0FJfmW4qTmSTqL5WQcZc 0xDDPoOXMOCmcT81jVPWV9jkOHh+XSKNZTEbQdjuBbg+1E9AFeRnRxrrbP2tAfD6Ctkd2i o8LYnMuMGcSRNJbAHFub5ZWfT6PyHO6wbr4ol2fmeKYj0stvdAxRQ3cpP6wi62kfzN43xF OZasjpyEXwvQcqqpMwvBmd5aa1LqIO2m3K/FKGsTSo/wkL3G3c6Eq1xsLYsS+72wr8jyN6 Cqvjm8r1ah3sPQAIcE2nVbMBIkZzOgwSFiTBD8ZxHeraQ/MPFJETlCOdotLYBw== 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 4TYphT1tFFz11Mb; Tue, 13 Feb 2024 04:47:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D4l5mT024196; Tue, 13 Feb 2024 04:47:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D4l51d024193; Tue, 13 Feb 2024 04:47:05 GMT (envelope-from git) Date: Tue, 13 Feb 2024 04:47:05 GMT Message-Id: <202402130447.41D4l51d024193@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 26e69f9f98bf - main - dump(8): 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 26e69f9f98bf976b0f898f1fcb9ca572a0f22c54 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=26e69f9f98bf976b0f898f1fcb9ca572a0f22c54 commit 26e69f9f98bf976b0f898f1fcb9ca572a0f22c54 Author: yue0211 AuthorDate: 2023-12-30 13:17:09 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 04:30:30 +0000 dump(8): Fix typo in comment Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/968 --- sbin/dump/dump.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dump/dump.h b/sbin/dump/dump.h index 9429704a1800..a776c8209d0b 100644 --- a/sbin/dump/dump.h +++ b/sbin/dump/dump.h @@ -97,7 +97,7 @@ void quit(const char *fmt, ...) __printflike(1, 2); void timeest(void); time_t unctime(char *str); -/* mapping rouintes */ +/* mapping routines */ union dinode; int mapfiles(ino_t maxino, long *tapesize); int mapdirs(ino_t maxino, long *tapesize); From nobody Tue Feb 13 04:47: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 4TYphW0pdTz59nZH; Tue, 13 Feb 2024 04:47: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYphV41vvz4GX4; Tue, 13 Feb 2024 04:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lMvX1lHkX9PiA1HWkxeNRKFG2uADZ+2sPZnUcuR0A9w=; b=QesnK0xyXnZY1bq/ztH3zFKOty7xD9wZVZexJv9QsyGGPUjtyp1UXFW+dgHytZScJgp3hF DjW4J2wwALib7WT/qWiUAIRpHasiv3+DNEUpevb4pf15mURVuMjkJQjIfRwos6aQzKiqLb 2QEyWMnyIATneMgjMY+yCUm4rOy+RXDM9ZKYjAYjFQ3/zo+AoIE1hixhb9+hkn0qCsN16B SBjghfW4p9NMXKIuO19vK7s4n6r3eDL69UT3ljsTFkWMQauOtWduz073bSFGk4TxxTD7D+ ejqN8FNUr1Laf4O4iaCiCS3HZdrpqwE0SaLZGEtLDS90+/aGzhKcHiXMmDKumQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707799626; a=rsa-sha256; cv=none; b=yXXz0+u2XqhRo7dMwzlFV9ypn6x+qJuvrENENj7yOGskAFfMsCs5KYr2AxF/+ilScLpjyr y5gV1h1NYxox0C9d1UzZnex6gP7dfkxeE3IZZ1xToUWmheXZzklNbdhCgvfibGty/arzIL kcq2KHd7ubWfJVwQ8t7U2vpF5wE57LHWoEgLGx9U6Vz0Qb5JQwO0QzvGoJonzjP1pGKh6/ sGQfCtcmSlM7VjvbeI11aKTQxEUymeaJ9KCn21cIfhDSo6U1HZsmbjUGQKvAjZ3/YoeQYM DDwXml10tkdQrjSwtPBHHq9j+dzdDAukC4TsbqX9a/6B7NDr/NwYFeeAYFm0vA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lMvX1lHkX9PiA1HWkxeNRKFG2uADZ+2sPZnUcuR0A9w=; b=Z71j1TJ3BjVuuD7g4CQ19xB8BNC84GH2NdBaSDrbRva23kEoWv492MjeLr01sUa2A33Qv2 cBR7JSljzzQEYVibgoycNb+qna5dZg7pSMfH9ObZ8EihxIWKjF9zbZszZJuEY6rhxqHjhz wGncWJsdx4LMja/Fl3y9yRfWCXRSmxaO8C+uGbWkMZiBwW7IjiMB/Q+ztRsiCO810H3QD9 KbtaUo3W3uXENOUqBQXtX1kZkqTxrZ4QronZ+7WDZ6c10goBb7bt0pVJh+lLUcet6Rslwf sahjZ8bFn1QiWD1xnGH3wJDyZbjhSvZRX/OGnnA/XPGGnMk6TbG1w8gFohzXaA== 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 4TYphV37bSz11Z2; Tue, 13 Feb 2024 04:47:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D4l6Vh024247; Tue, 13 Feb 2024 04:47:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D4l6ER024244; Tue, 13 Feb 2024 04:47:06 GMT (envelope-from git) Date: Tue, 13 Feb 2024 04:47:06 GMT Message-Id: <202402130447.41D4l6ER024244@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 664812f73488 - main - Fix grammar error in test/sys/file/closefrom_test.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 664812f73488c4c0e16982c5c97d639deb9d2431 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=664812f73488c4c0e16982c5c97d639deb9d2431 commit 664812f73488c4c0e16982c5c97d639deb9d2431 Author: Yen-Cheng Chang AuthorDate: 2024-01-01 06:38:02 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 04:33:06 +0000 Fix grammar error in test/sys/file/closefrom_test.c Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/973 --- tests/sys/file/closefrom_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/file/closefrom_test.c b/tests/sys/file/closefrom_test.c index 7c6787bfd5f2..e30c5eb3d591 100644 --- a/tests/sys/file/closefrom_test.c +++ b/tests/sys/file/closefrom_test.c @@ -146,7 +146,7 @@ main(void) printf("1..21\n"); - /* We better start up with fd's 0, 1, and 2 open. */ + /* We'd better start up with fd's 0, 1, and 2 open. */ start = devnull(); if (start == -1) fail("open", "bad descriptor %d", start); From nobody Tue Feb 13 04:47: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 4TYphW6GrFz59nZL; Tue, 13 Feb 2024 04:47: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYphW522dz4GPj; Tue, 13 Feb 2024 04:47:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LjFkj4AeDmV9CKIdggQ0JGyRBoSgO0NaSoWkzzZ3QBs=; b=ox7dmS/wJKC15tQNL518H1zEL17EGubwrMybGNTHkD1a4cgwtEq72czzveKcqnIONA6fBv cXqYbhCJXz5S2NrL86hxCePIERsxJg/hyszJH46qbhedE6q9gRgD4cIXr2Frjhsv7uPx/2 RGm0XCXThrq8JVM5VaGoluupVowIEXWmJY53U7y/L6XnWtD+B+sPh7Bt8lkXDCFOLXEAyD 7/yYBwIzERw8ynyD0GpBKROggQ8l/cCKj2cCUmMCihYbAhw4yI4xCnwcyVChOn88tSOQu5 ljzSy2WJbe78w4IchzIh4+tsqRM4cMf0+8DFWUKqjlD2hW/V/f6YqydRgQUoJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707799627; a=rsa-sha256; cv=none; b=csO9kxePI+glr1EsY92EUsbYZIgJXlw49TbtKqHUNZB68eWrQwouufrgSYl9UnC9iY9tHp s4T4IhF97VzofW6vXHOUYiB0jfCphZZfaMUTVT63BUbvmA+djXWoBtFu2bam5k6071catg m83+HZULGFwxtqFY4eMveg7ULTvqCsdsAmDbX/FRfw8UNTsyDyBsjeGJ0uYvVghQ1lBkA0 ExRCOi5VE/SObF9XcgRNMRUQw04ivBfurD/JGhEIk5LxVZOgg4fA4rx4cHiPAfn0CsEDoc BI+hZcPZmBuOGvXe1+9T8yk/7AK85JBixzG3STllSMBMOhQaZRQIVviGr8/HZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LjFkj4AeDmV9CKIdggQ0JGyRBoSgO0NaSoWkzzZ3QBs=; b=mWJ/HD+LChu1AeFEg3Lxsakpnw+ZnPzDY/CKvMKloHe8LO5AKvJwPXPOpz2MTflL/6qQsg UIZSBpyy+9A3IpO0feZSh56IBrm876NSlvna6LpHkL0uvYcOS0pOExR5JEPqAqxp96iWMZ mWl7ce56+cpyDaM2Ja7TDPL3BVZEDGexpzJNtuxqlJXyTdp8v7JQceP4rHXULZe7h7N1Kx L+PEb5vYoMGz9MTgy4rUatj5SfX2pdC0MY/iIuDGl/07BnxNryqOm8g7jAAqzP9YninN3S dgqoSOdZW480A0LDz08gHE9xXYnP6D+4JS7+2WURm1rzrEBbA82yD9YIU8/+pw== 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 4TYphW47vvz11qk; Tue, 13 Feb 2024 04:47:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D4l71r024286; Tue, 13 Feb 2024 04:47:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D4l7wJ024283; Tue, 13 Feb 2024 04:47:07 GMT (envelope-from git) Date: Tue, 13 Feb 2024 04:47:07 GMT Message-Id: <202402130447.41D4l7wJ024283@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: ee40f9e860a1 - main - Fix typo in share/examples/sound/ossinit.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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee40f9e860a10649575a0c80eb92dcfec7e353db Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=ee40f9e860a10649575a0c80eb92dcfec7e353db commit ee40f9e860a10649575a0c80eb92dcfec7e353db Author: YuZhong-Chen AuthorDate: 2024-01-01 08:25:52 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 04:36:05 +0000 Fix typo in share/examples/sound/ossinit.h Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/974 --- share/examples/sound/ossinit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/examples/sound/ossinit.h b/share/examples/sound/ossinit.h index 5fd614ecb4fb..83920712286d 100644 --- a/share/examples/sound/ossinit.h +++ b/share/examples/sound/ossinit.h @@ -227,7 +227,7 @@ oss_init(config_t *config) * If desired frag is smaller than minimum, based on number of channels * and format (size in bits: 8, 16, 24, 32), set that as frag. Buffer size * is 2^frag, but the real size of the buffer will be read when the - * configuration of the device is successfull + * configuration of the device is successful */ int min_frag = size2frag(config->sample_size * config->channels); From nobody Tue Feb 13 04:47: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 4TYphY1Gs0z59p0Y; Tue, 13 Feb 2024 04:47: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYphX62HDz4GMq; Tue, 13 Feb 2024 04:47:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=539v88yHMrlz6keTYyekggwv7Zj41fpiQADQJ1McN2M=; b=iu+2wgkGNGOlmQ04uMAFHgJc+t8z5esgggnWACy5FdXzc9cDgQrQuoR3F70cFhzJ9GGM1p m1CjhDXo+9gLbVKZetHnDNMrYsbrnwbZaGLVWoAmHrQJpT++kK2hT78Z48V4FBNtAzc/Er 1dORKBxBYuIN9YewYHBdb+82Kb1U9JFTX69UsFQwfntKXXlTodY4PQKkKUnmasADnNRBTE F4ONQdcxmsems9K/KUzpXySOBWpIXyPFHKQBLRcS61mBjdjn/v42xoQy/q1LllKnJt1yit z0f1E2TOt/0Igrq9xH3KDfW0bdghk4TYUHbbv5uZRU6EuiPQrKutcDGNaN/DzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707799628; a=rsa-sha256; cv=none; b=iuAmgKNZFqdp6SnSWWPMKxq/qYCvu0IWEis09SKv3IliL5w3tDSlSnoGbQxZjGQ3iiBr1c sM1eatfdwPmPApf+WxKRy54hlU2nlnaMVf08rza31vXYthWFj/6wOZnNQfF8yH3aIVaPUU sftN7iAPBJc0/PUaswlZbXYeESIp7fZCQn+sIO4Ek7KVy6JKJVNGVAqBPiVJmyyT9mxRBc W7nADPq7wnSiuHZ3qu/Bn6hhUZtbruMs+/5q52WGRyuTN0jAmesLrSZ6dAqCn5+cnZGXOi dhflIFbizCXh+PrEHp0Uy0zheB3IBX8YTslAyJMDRtdz8uK+PRWjmQrd/S7njw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=539v88yHMrlz6keTYyekggwv7Zj41fpiQADQJ1McN2M=; b=R8uRQ8wnf6TpmOBmvgL4788iU3g/WWL6qovg3v1hxBQfX6UhJDsSwarmsBmgn37U9s+PS4 lJf4/Y+PDgxm6ILFZXQE/0ubXTCmK79BHScPzat3PYWeV7c2r5XURUe3r3BTLvSXb1xBPr KSSmnajqQQV9mzRruHG5ocKLnXpN5Qs+8ww8lGdVBPwhdVKhKJW3AnVCa5vnCrdKph7BY6 ziMlZXmoOiWVmEoiDCHqisJdwZGDp/6Y96Q/drl4v8Ii+SqAwUHfZEAk+xUD88WCv1kBVS Q6eYRjgqdUHCeRbtBmbtUslCtmMm6PIXg8vxmpEJXy2eD/Z4kDkQX/QZ/P6rRw== 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 4TYphX58Ghz11cR; Tue, 13 Feb 2024 04:47:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D4l8Xq024325; Tue, 13 Feb 2024 04:47:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D4l8Xu024322; Tue, 13 Feb 2024 04:47:08 GMT (envelope-from git) Date: Tue, 13 Feb 2024 04:47:08 GMT Message-Id: <202402130447.41D4l8Xu024322@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: edc7b46ebebb - main - Fix typo in share/examples/sunrpc/dir/rls.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: edc7b46ebebb064da44ca88c6afeeb9639b6fcd3 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=edc7b46ebebb064da44ca88c6afeeb9639b6fcd3 commit edc7b46ebebb064da44ca88c6afeeb9639b6fcd3 Author: YuZhong-Chen AuthorDate: 2024-01-01 09:20:01 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 04:36:58 +0000 Fix typo in share/examples/sunrpc/dir/rls.c Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/974 --- share/examples/sunrpc/dir/rls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/examples/sunrpc/dir/rls.c b/share/examples/sunrpc/dir/rls.c index c165bba08e04..5c39b7139e14 100644 --- a/share/examples/sunrpc/dir/rls.c +++ b/share/examples/sunrpc/dir/rls.c @@ -71,7 +71,7 @@ main(argc, argv) } /* - * Successfuly got a directory listing. + * Successfully got a directory listing. * Print it out. */ for (nl = result->readdir_res_u.list; nl != NULL; nl = nl->next) { From nobody Tue Feb 13 04:47: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 4TYphZ2CTCz59nrk; Tue, 13 Feb 2024 04:47: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYphZ03tmz4GXn; Tue, 13 Feb 2024 04:47:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WWsizgRn6j+xCIH0CWuuvFXWyp4/nDdeEqiGiNkQYQo=; b=KnRtPAh4q07Dq5ZTANJobPrTJ7Y8b9mYruUAL394FsdqXK8r0Rh01tvYqURQgPRt0jaM7A 1cwBf9UYhrImAs+EsXoKX3CmlTWlZzTk5sXZXiPwsBS0pDt2y9X7n/0rZrAynYjGVwce1u h9FMymlW30WYy/h0YLmr8CMmW/5Asynh6vAhm65nF8IXamE7dqsEdE/S4T/nqdpn/O2K6W XEDSOlco5IjYjzKlpDV5+nMPpkZtDdR6r17Y5drUMoVq57Zp4OAHfjHR/x6qljXHPUBQKS Ie+M0gbUhsvfh68ioNqrc8yQSzucssBBi1OVILpKWLEr/WpH8XEqUEb+7opzGw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707799630; a=rsa-sha256; cv=none; b=HBGk532gbbyWZZQFsPmNC0NiCKoM7NLOiE/aFWMRD7Z+163iseCr+j9PWLfazAdWXjpf8A puPL6LIm+vN8xg8a5IXMmgaVMHoA/tbuBSylsreW7JXLtRR0mYjrhTv+RBIN+FruZVPtGr BrNSOmBua+IhmMexuDV4gG9rSOfkvW9Z4jjYYRMzSDSRCL+bjVJMN7ePQJ7mki0k3UtBbV 3cZh93YLGcyzzZF2F9pg89fZcPEig4XElqE/z+t3wrEeQKdxtB++yhldc0/kK6xgMA/gN2 tyfYcS1mri2abZKAPZfEoIThgO5i+ENVStybM7KxH9D8rWqgZ0Y5pPG0abl8uA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WWsizgRn6j+xCIH0CWuuvFXWyp4/nDdeEqiGiNkQYQo=; b=s6FoL72E6906jbIbpLk4z/mKrJpk15K/KWBHzQe0q4/tIKkMpTO06qRzEnbBCRWXvxVQE2 HDcyJkgCmxELRXMV5hpVCCArcRAZzKgoQnoXzUpsj4pWiF4SH8Hdlj9azjbtzaU3GA+djZ DpBdOxnkuO8rhkd0h2yZ3e+W2lpg0cjcHZsOrY2ZNYzJ5hDLytUhRNawpMOeLlgV1eKJON 0nYfS8Wc87TyXxfG0ydXNFnP1as6KyLCC/KDOPIqUWkDFdYiq2xk01LdLrR08adHWoshHj rPjmL9JcRfX3vkJVvw4h6YWKVCvER3dAqOKfums+owGsu8u/7MLDU1W7G971sw== 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 4TYphY6Gljz11ql; Tue, 13 Feb 2024 04:47:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D4l9a8024378; Tue, 13 Feb 2024 04:47:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D4l97i024375; Tue, 13 Feb 2024 04:47:09 GMT (envelope-from git) Date: Tue, 13 Feb 2024 04:47:09 GMT Message-Id: <202402130447.41D4l97i024375@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 8b6876e13672 - main - chio(8): Fix typo in the copyright section 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b6876e13672e418a6a9f47d1e62378311bd8ef0 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=8b6876e13672e418a6a9f47d1e62378311bd8ef0 commit 8b6876e13672e418a6a9f47d1e62378311bd8ef0 Author: Wilbert Allen Koeswoyo Suwito AuthorDate: 2024-01-02 13:21:07 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 04:38:27 +0000 chio(8): Fix typo in the copyright section Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/978 --- bin/chio/chio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/chio/chio.c b/bin/chio/chio.c index 4feafe5ce720..07def55ee88f 100644 --- a/bin/chio/chio.c +++ b/bin/chio/chio.c @@ -32,7 +32,7 @@ */ /* * Additional Copyright (c) 1997, by Matthew Jacob, for NASA/Ames Research Ctr. - * Addidional Copyright (c) 2000, by C. Stephen Gunn, Waterspout Communications + * Additional Copyright (c) 2000, by C. Stephen Gunn, Waterspout Communications */ #include From nobody Tue Feb 13 04:47: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 4TYphb2M82z59nv9; Tue, 13 Feb 2024 04:47: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYphb18xyz4GVL; Tue, 13 Feb 2024 04:47:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2f36rL7t4x6hExaPEUKZqG/kTHH6QAKEvh93TGbvlCo=; b=Aell/llSCQslfvEkMNc/dibTJasfgoE9FDEJaH/6AfQVYgBKoCUXCI/S3uCfzm2RM8sf44 SNMppfBmY6ZqWeQ2OfgIqKnwtuTNtL2JAESktizkqjEpS9xLLWE+JxDVCFqhviUPDAIi5W wtpd+NzDtQq8NIxQ5pZRtkO/l9k7BIHnd3ZGKI4gOXEj11IVQ47Gvysl2TGtcoC045R6Dn U/R2vv2SKQx64mFIQ3x4THMVs51L7e8d/PsFXOwl4XE0CBQ6u12dGbY3xKaK5k2lUDSVVq xUTgZnxIhDcPb8YgoWra5zEox6fVhfwALCGNRiRivkst6ZbcfehfkRnrsQZzkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707799631; a=rsa-sha256; cv=none; b=q5nyJOn7NmlhJ+bNptqZCfR/CE7FU2AU6DwtZsKfggtWe7RMTBrSkkWIkaOA3umVy+wwe1 0NIiLqJLfnp5HT3o3Qz5gc3ZixESEa3ETa5KIDnC7w32wba2y+4lRzRalArcJG9LGtuKMf zfSi67ma3hGZt7Z2nyOvOv5DeBKyEk3QcSW2sLNpvnTScahwoONp9iNjSavb78xxOZ4K9D xdgUDBuCPJNBgfEiEUOQHzdtNPFRiO9yXDe3VcwQedEN/sMbdyEVrhuaD9c+8ZWgndqklv zOg5etfSH4VNZwXnNkqW5MXKhdfu7JfXqD2xMhV02fm2TaVdZPARt09+laEQ/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707799631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2f36rL7t4x6hExaPEUKZqG/kTHH6QAKEvh93TGbvlCo=; b=E/A8aGGE7R2Z9bMk1pF6kMIh27vxRHP/p/nNDN8b3OSmiPpp/2knM4ykJb46qDDmVCTXzJ zTrPeKeunDTmjTEAAqpFZuWz7jRlNwbvAx0pDPEaTnEqc3Y7uvsElLF65W1ogsQQq30cAI 5Gl8dZS6OGuSWANDFskX9YbMuOI9CxuQZMchN0qo0vTF/db4u4eiVlWAx/5pjvyxomeG4C igajcBduHG2k3CKxU/sYGl3S7hiRb6WeVnfhSLY5cOFkEFKRE9r/weFJOFJYCMU8gaKoVk yWq549UZghfhcuKbtUdT8ZCHU7NOXYhpHqGeydSipu/JlHcx0/FpKIbxQUj5Pg== 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 4TYphb09YKz11Z3; Tue, 13 Feb 2024 04:47:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D4lAXE024419; Tue, 13 Feb 2024 04:47:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D4lAVc024416; Tue, 13 Feb 2024 04:47:10 GMT (envelope-from git) Date: Tue, 13 Feb 2024 04:47:10 GMT Message-Id: <202402130447.41D4lAVc024416@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 84886bf93ae9 - main - ed(1): Grammar 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 84886bf93ae96ee4d19cd7f31696ba368cabddae Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=84886bf93ae96ee4d19cd7f31696ba368cabddae commit 84886bf93ae96ee4d19cd7f31696ba368cabddae Author: Wilbert Allen Koeswoyo Suwito AuthorDate: 2024-01-03 06:15:46 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 04:42:54 +0000 ed(1): Grammar fixes - Adding a missing verb "is" on line 723 - Changing is to are on line 835 Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/986 --- bin/ed/ed.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ed/ed.1 b/bin/ed/ed.1 index b680f69eb706..0db9f8d76bb8 100644 --- a/bin/ed/ed.1 +++ b/bin/ed/ed.1 @@ -720,7 +720,7 @@ with By default, only the first match in each line is replaced. If the .Em g -(global) suffix is given, then every match to be replaced. +(global) suffix is given, then every match is to be replaced. The .Em n suffix, where @@ -832,7 +832,7 @@ Write the addressed lines to .Ar file . Any previous contents of .Ar file -is lost without warning. +are lost without warning. If there is no default filename, then the default filename is set to .Ar file , otherwise it is unchanged. From nobody Tue Feb 13 06:22: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 4TYrpR5HLQz59yg4; Tue, 13 Feb 2024 06:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYrpR4X9Jz4RlY; Tue, 13 Feb 2024 06:22:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zM8vB/pmyuLoxijAUCr4A83zmBmbvJmZys56zvX+L7s=; b=VpU2UbkuGMnBLyAuZuHsIVKXjczuxGhpbkQPx+yy/B61yOaR6JhYDdpKxf8f6yNFqMca2a nY+BdDdWvtZ3KSAXfW5DkCWhZLuTTlk1TZJA0vbUu/kRS9UpKshnASpl/7GjoVktCBgJsS V2s88o+hIqnyYgLqcXhRCNtLpwnOfacY8jKKpC8sR1Vp0yVMmVpO3+jVnutDtGp0M+AQMv GUIQ9xyq4H+tb97VxldlZFGiuFnRxFvYBHC3QKpbP29OG1y0YyMbQE+8WMfvc06H5I4GPt zIU6GKWqGu/n7f/zJPIF1F8ZHQvuvAkiweho3eiybuU0SelQUvCljWMpEhun9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707805343; a=rsa-sha256; cv=none; b=Spe1lcTRTgqBGziPbQIalheFrCvv1sQUFD8S8rtM2rr/scAAFJPedf+Df4010uoDtIIMQY Xxv0qpZBwwCB81RSOvkBlWyy5NSYCbSsf1xZ6hDwo7dv2tdypvyUwKy4hCFjuSjPSCYEjR 4qLSxRav3tjVfgO1HwqHUYsVnjVQRRq246EqRaZ2IjYkJX6g30dMDBx14fKuTkceI1Z2nJ hU0wXE4bfq+eo/bh7priKjcgP/UxHyEqO8OpX2x7cPz6yXmBU01ySUjLEdin41rxuCr5eM vxl5yoS4gfztt3P6U8sHvguqStQQPYUfE78F5789CboAxbRildkTSTekcvdGwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zM8vB/pmyuLoxijAUCr4A83zmBmbvJmZys56zvX+L7s=; b=RF+4bdYLb1Pd677zbS1Ee3zqfRy5cSz2olSJ1zPsRavI++I6OT04WoHboAhBS5ckj99Iiu 20N7gIGqITQgmwPGX2Xgwbgo/tI+meK7mNEP59MDtRh427CcW7ijWUPzfbD0wD56a6Ttm9 kbz8MthWB0z060wcaY6fH6BV7ucI/0DRFB9Sv7+tCclLygFfnqnI4g9ypHaxRULOmyvIf9 S0k36wz5tn188Ug9qu7VJx24pCWFGrPlZJLSAPhA23EcBhmxpfZsH53sjacBDo9mtyhnE1 5qPZ4CM3Kcw7L0/A5A54U5KJaHa+1JaIxHgNPIshK4SK18zXUCJAvYJBUmTEkA== 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 4TYrpR3bnzz143r; Tue, 13 Feb 2024 06:22:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D6MNYu091163; Tue, 13 Feb 2024 06:22:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D6MNm9091160; Tue, 13 Feb 2024 06:22:23 GMT (envelope-from git) Date: Tue, 13 Feb 2024 06:22:23 GMT Message-Id: <202402130622.41D6MNm9091160@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: f4e0aec989f9 - main - ypldap(8): Fix grammar in ypldap.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f4e0aec989f990a2792c829966e4af07f7880d81 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=f4e0aec989f990a2792c829966e4af07f7880d81 commit f4e0aec989f990a2792c829966e4af07f7880d81 Author: Shi-Xin Huang AuthorDate: 2024-01-04 04:23:09 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 06:11:07 +0000 ypldap(8): Fix grammar in ypldap.c Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/991 --- usr.sbin/ypldap/ypldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ypldap/ypldap.c b/usr.sbin/ypldap/ypldap.c index ff1965dd6e2c..01b5955aa822 100644 --- a/usr.sbin/ypldap/ypldap.c +++ b/usr.sbin/ypldap/ypldap.c @@ -142,7 +142,7 @@ main_start_update(struct env *env) /* * XXX: Currently this function should only be called when updating is - * finished. A notification should be send to ldapclient that it should stop + * finished. A notification should be sent to ldapclient that it should stop * sending new pwd/grp entries before it can be called from different places. */ void From nobody Tue Feb 13 06:22: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 4TYrpS6YcFz59yL9; Tue, 13 Feb 2024 06:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYrpS5K4Mz4Rfh; Tue, 13 Feb 2024 06:22:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TWtQblLO94DrwECcqo0GN+k7urq0Je8zHvyrNWtnhIw=; b=j7ZmknpQNeRN40E7xPZ74PPhJDeXj43J0KsL0+geCqQN/D47/odGEw5cjqu8EMdPgs/h4l vqOB3IuheArpiwOOCTco1ncfvSEc1zX4XQ4OEW/cDKsTXek7/TRPMOsNrqv1IW6Ibfr1wO KuEzYPGnBITev7Ijm/45T3HqEEIe4Bycs/mw0CIdT+dAILWSABC6DQzWeWtlwfmxcQ2aPy hHNH2wUSnMMmrwT7fnMXs/4625ApPhYjURwM7oi7XVd1ptDzed2OV8GAinQHDDmdT1v1CJ VpSm2QHD05IWajB4V+IrNpT6QwX2cAbmshL4bdyDBcjbbRxEqwnGmomX0qjRtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707805344; a=rsa-sha256; cv=none; b=axKfVoyafVGiNUKSIxSZ8G11stxZQHyE6rdSdQcxsODOdxqRFm2MBWq4SukcFkvXsVwixo 0w9BwN7at/pPviXS7XV65HvBKWKUVU4oIo5pRIUMoQFEamsHBOnBUjt5swvYAy/PJd3N/E Inm+f+9NFt+JaIw+rFm36gblgdvTsJihZdGnZIWIqtkPOn8S50TzPC/y9QrDzyGVkr3JrC JuuXJftUGE8ZxbTlRCLqT8vNRXBDNwjA7+mT7VYOV0NA9YEwmY7c9cnP47AYPCLdUaXrG7 Zf16ErXYialull/BSTajpDpaAOsK626m5xA19NvqiyONE0giFdQnLCbIxsNZMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TWtQblLO94DrwECcqo0GN+k7urq0Je8zHvyrNWtnhIw=; b=jJb5hBMoES9wldfy/QlHSPe1uCXdtaUouJljDeocXU29TVq9riSppmUMozatmG7RybUe2+ hj6TGPvmP3+uM+4qMWWq/swEQDJSmIFJa98kXZpB0J0apeZMw+2I5TfvYa1bmISVhKfK4n Buoi6mGpFx7RGuBbLUsSrv1dEWlJZVix13hMGCv9hZPbG8l0zpJ+nsUkov6XU4EYNhV5p3 /80VKCyPX0KSXbP72mAH2QRRLTvxwcxmJDege0v4RffpC9ZDFk1ExMkLro5ssOtolTOjzK LVInYEMUafOsnYWCBJRtT1MJLxjBSI4LRxV7ca7mbtOD6Rzmu4aFQDqAI5hQ0w== 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 4TYrpS4PYhz142d; Tue, 13 Feb 2024 06:22:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D6MOOJ091206; Tue, 13 Feb 2024 06:22:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D6MOnd091203; Tue, 13 Feb 2024 06:22:24 GMT (envelope-from git) Date: Tue, 13 Feb 2024 06:22:24 GMT Message-Id: <202402130622.41D6MOnd091203@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 3cddabf0bd5f - main - sh(1): Grammar fix in jobs.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3cddabf0bd5fa9532fe2a1653b7b30f0ffe40401 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=3cddabf0bd5fa9532fe2a1653b7b30f0ffe40401 commit 3cddabf0bd5fa9532fe2a1653b7b30f0ffe40401 Author: Fu-Cheng Wang AuthorDate: 2024-01-04 06:15:09 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 06:13:08 +0000 sh(1): Grammar fix in jobs.c Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/992 --- bin/sh/jobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index 90b5892f72b7..1328ae50edef 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -93,7 +93,7 @@ struct job { short nprocs; /* number of processes */ pid_t pgrp; /* process group of this job */ char state; /* true if job is finished */ - char used; /* true if this entry is in used */ + char used; /* true if this entry is in use */ char changed; /* true if status has changed */ char foreground; /* true if running in the foreground */ char remembered; /* true if $! referenced */ From nobody Tue Feb 13 06:22: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 4TYrpV2QNvz59ygD; Tue, 13 Feb 2024 06:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYrpT6FtWz4RrR; Tue, 13 Feb 2024 06:22:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qA2M1p9SSNDzYLhXdvPemxKswIGX+lgKAQfLyXxCFo0=; b=ppL5sgUHqQGy4VuxWvZUFCXpg+B/+uts4YuueKIgwSYfDVw4t29EQcTNIxMkNVBk9Xwny8 wvtnQ2T3ipYqDxA8+lu+HDeGqLi0WNqsK0sv2lwB5t9o+cQsoZ4pDWZUzOFUbTyPBVqLD0 wob/8KrvJ3pr3JeAgwBlE/lmlUV5MmtlSI5L9OJb0PQCf9bjBtI7HgM30cH1pumGHDSRb0 dMBkCKv7hqhasDzFOhA6YlD/Rcr77+U1UuI5WhGhmNvLhJOzXnKoRFv21kOzeRPuF11ZE+ /ASdcJm8EgputQym5TzWy21kLBjd8sg9by1tpHkAEFAuODg4xpG7dhnzplAPdg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707805345; a=rsa-sha256; cv=none; b=t12tzppv1/l9GLYzTRGIYcYkiGrTfqD1WoCyU4SK/y5cYXAYN4IWdHbnrpxT8lPgslJRtF kwGvmSVy9QDj7s04kmHXEorhzRdFkZNFfK3OqD2UQqP3YiRP4VVhZ+DjGJuvvpw14uywCA lAp/xZHuJ0LX0B6pecSicB/diUbDnPYHlxSjAs0KiY54IVKGKsmkilsj/nA13QcHYqKolZ Uk/nuxdsPZCq1dJTtlgRotc2LrgaOHUQcW4d9flmX2/dJcgcSPQ6iF8si1lqB5bvYcULkK royjDMqTSXlP2QrtIQRDDyOyxlaVBqLbVacowB2qcDsuvHVIlFmEIWUeS2eeRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qA2M1p9SSNDzYLhXdvPemxKswIGX+lgKAQfLyXxCFo0=; b=v1OHXvO82QD4o0nE03ZgrsnsiqtLJxe9bzxrSmEZkp2pmUIpqSjJdx71wSloDNoBXtiYQt wJ/yk5wDcbJQ09wsdcyklVjusRP/xxOZwakW3ORBgYHcoH9BUK6cTrAmlWEvPH9dBCjKLZ rA1j1XjkwAbTYr4N1r80pG6AXft6YvMJVh9SvGLRr6czc7OwoMwXO5NMnSuWnS+FwadVY5 PQ4GciFDqvwjkcC4w0QmpbevbKy4EMpRz0vMbygrNZtg4EEhRdTahlRSathrBjT2cxFMFN mS3fy+rpSzFNStiIkX98nLzKF1yADAex5cy9gLj++qZ9+pu1iisQ1trq4Kt9Cg== 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 4TYrpT5Lj0z142f; Tue, 13 Feb 2024 06:22:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D6MPND091245; Tue, 13 Feb 2024 06:22:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D6MPui091242; Tue, 13 Feb 2024 06:22:25 GMT (envelope-from git) Date: Tue, 13 Feb 2024 06:22:25 GMT Message-Id: <202402130622.41D6MPui091242@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 0789c3bd2c45 - main - share/examples/sound: Fix spelling "controller" 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0789c3bd2c4597e40b1d2556d21bfd10ff628a0a Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=0789c3bd2c4597e40b1d2556d21bfd10ff628a0a commit 0789c3bd2c4597e40b1d2556d21bfd10ff628a0a Author: Assume-Zhan AuthorDate: 2024-01-05 04:13:58 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 06:18:04 +0000 share/examples/sound: Fix spelling "controller" Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/994 --- share/examples/sound/midi.c | 4 ++-- share/examples/sound/ossmidi.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/examples/sound/midi.c b/share/examples/sound/midi.c index 7149bcb31c82..6d6ac9aa0fcd 100644 --- a/share/examples/sound/midi.c +++ b/share/examples/sound/midi.c @@ -49,7 +49,7 @@ main() switch (event.type) { case NOTE_ON: case NOTE_OFF: - case CONTROLER_ON: + case CONTROLLER_ON: if ((l = read(midi_config.fd, &(event.note), sizeof(event.note))) == -1) { perror("Error reading MIDI note"); exit(1); @@ -65,7 +65,7 @@ main() case NOTE_OFF: printf("Channel %d, note %d, velocity %d\n", event.channel, event.note, event.velocity); break; - case CONTROLER_ON: + case CONTROLLER_ON: printf("Channel %d, controller %d, value %d\n", event.channel, event.controller, event.value); break; default: diff --git a/share/examples/sound/ossmidi.h b/share/examples/sound/ossmidi.h index 60bf5e41173e..99a6bacffe73 100644 --- a/share/examples/sound/ossmidi.h +++ b/share/examples/sound/ossmidi.h @@ -33,7 +33,7 @@ #define NOTE_ON 0x90 #define NOTE_OFF 0x80 #define CHANNEL_MASK 0xF -#define CONTROLER_ON 0xB0 +#define CONTROLLER_ON 0xB0 typedef struct midi_event { unsigned char type; From nobody Tue Feb 13 06:22: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 4TYrpW2Jdtz59yMX; Tue, 13 Feb 2024 06:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYrpW07WSz4Rvd; Tue, 13 Feb 2024 06:22:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jytTE2qAd5zLsmJ9+cer8A6IhpKfTPBps1I/a/uokMs=; b=G0C4h77KGB+JLl4qMxZprTEHiy0v32QjMbuthd0v9+kd+0t0n+xLFk1K88nZU45wy5NY88 Z6eTfIl8JVbO9ha7OHD+idhHZwPy/TNt/YMmejSiPHPGsLWFIQnCzFmoM51/I8Olqgt+/H U9AdqNjHtLhjpG4cNuLx5h2wx4Lx3q0coKKEd+eN0qyGsnSPk1eaJUQFkWwLJvYgfr7m/H yEnokptzgd7dKq34r0RDXBx48cPHL9N18xF2cQBsXH/E2mFqay5D3CexVQQ02e9oO3WmXw IGeHBsMqQ7JW2x0nwv7MgRyAZC0bUeioWsaDUiLGMkZMzxYrvt7x7j3TWkRUQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707805347; a=rsa-sha256; cv=none; b=GBmwUtMfIT0YNiWErdrbjUMZahDsd306NACv3A8V94TYRLlfxaHyIVNNgT3gjQTAH4yR7c 2K/zxMULH+kXIFf927pWtuU+0hgFngpW8pCFmX5Ahmev5PUSvNJCMxEhGah3w/8ulD9qMM OpKq1iLfZgEWdMFCDu/1ZA/Arzck9P6lh96YvcYJmxWMwcBV/4evSQ5j1dbwPnx0F0QTuS VWkPUBiGa0qriFit+sf9QWMYIbuRWUDp7qa7Ix2T0ff+HoCWcF+ckNOoqp5aFQ/fcJvGUi VJ6HbbhbJeCUOFtd5VE0tvAOW80ba4IvlIf1HNnbXOoF8NkbuWD4K1XpCp4Xow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707805347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jytTE2qAd5zLsmJ9+cer8A6IhpKfTPBps1I/a/uokMs=; b=wqHJ8SrfS70YijtZ5ZN+60ZJIi9ohQoOrykvWrTajnT99/LGoju70CeyomLOCwpquhqRSZ yvrHxg4Iko/TJpXRLzJJko0Cv1FUsDUIhPxT8objutnC/P+5ehnA6tAOD3LdNajTvsJTGs n1IIUWe8J+1pmbSps7NxDWKcZWKKjwG9MQu1UTNGVjPb40b6KHU0lHZyy2d3dsD0PIoWpH FcEkoGVWwuqhVoHUlWYTNWgnTEZsoupz0E+6wnzB0swc9zU6TYCVaihnymOfUotWQhZBbc LXCiJb1dGCVyGke+rtHPTJXMSHKlJWNkkJPhU+q7GixoNHPHl+GcOwoHnH6GCw== 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 4TYrpV6LZ8z14J6; Tue, 13 Feb 2024 06:22:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D6MQQI091287; Tue, 13 Feb 2024 06:22:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D6MQLI091284; Tue, 13 Feb 2024 06:22:26 GMT (envelope-from git) Date: Tue, 13 Feb 2024 06:22:26 GMT Message-Id: <202402130622.41D6MQLI091284@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: eb8ba6fb74f2 - main - rpc: 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eb8ba6fb74f2d957bd5df357ae73f66a6002014a Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=eb8ba6fb74f2d957bd5df357ae73f66a6002014a commit eb8ba6fb74f2d957bd5df357ae73f66a6002014a Author: Assume-Zhan AuthorDate: 2024-01-05 04:51:50 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 06:20:45 +0000 rpc: Fix typo in comment Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/995 --- lib/libc/rpc/svc_vc.c | 2 +- sys/rpc/svc_vc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/rpc/svc_vc.c b/lib/libc/rpc/svc_vc.c index a4f45ba4aca9..e5826fdb6543 100644 --- a/lib/libc/rpc/svc_vc.c +++ b/lib/libc/rpc/svc_vc.c @@ -34,7 +34,7 @@ * svc_vc.c, Server side for Connection Oriented based RPC. * * Actually implements two flavors of transporter - - * a tcp rendezvouser (a listner and connection establisher) + * a tcp rendezvouser (a listener and connection establisher) * and a record/tcp stream. */ diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c index 531bedb6b65a..8e7ff888eaa2 100644 --- a/sys/rpc/svc_vc.c +++ b/sys/rpc/svc_vc.c @@ -35,7 +35,7 @@ * svc_vc.c, Server side for Connection Oriented based RPC. * * Actually implements two flavors of transporter - - * a tcp rendezvouser (a listner and connection establisher) + * a tcp rendezvouser (a listener and connection establisher) * and a record/tcp stream. */ From nobody Tue Feb 13 07:24: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 4TYt9j6qb9z59b9h; Tue, 13 Feb 2024 07:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYt9j6K6cz4c54; Tue, 13 Feb 2024 07:24:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t2kbk+tok9xYDNCKb+5DFZgy510sGcHMtmEjIZJBpTs=; b=HXqamvpAi5qa4lrpKhPfNfscKNavRkPHXk+nA/6zd3GDecNQVsdpi8CJ79REnpQR3FNeFy uwCCuKb/nwNligey/zN9lISCLoF3XrOWqsmgEMNaBmERx4N+EFO8f6u69bNfjSpc7frTTD yMCvseE6+45icub+WH+bD1OqC0JwXcj359mfGr0a+940dcnWJq4HRTkEGqTr/fcShZlDRl BQ0D3RMendk/tfCoo4sF5XIFy6ugKpJ/H2U/SqP2jOZVRZ35dXVinZbLmnNuPplc1FDbkR rdL2Z2YsA7yv1svsuvOkrrThCNh+bjYsoFvhebeYsKRtDl7fNoUdVCt1wevB5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707809049; a=rsa-sha256; cv=none; b=VezYaXN8gqi4eLZVhp9nMCE1RSTQCrjshYvk2kicn6X19EyFG54ikui3POLcBt5PIBBttV 6OZ5qPG/5TX5wT12PtUX7hZalY7X1VtmhOVcN0HiJtlelkjyE6Rusx0IdNB29luurNcKm8 FeEyfT81m4INhh8AN8X3SD5lKh2I+Qk8P3kGSRujSdnC+d/nIcCVeUXvtOjhsUzBmOz2Mv YveTSjf2Y5EG6P0OBMZf/J1RCLsjkhsotR+Gqxj7go5zv+4jsYY0fLfNMvmkXbylBvFiyF DFqd9oPMDntVnqSKSfTxLD1Viz4rduAzV6aSTomzcRf8EGiUiQzna+DYJ1r7Rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t2kbk+tok9xYDNCKb+5DFZgy510sGcHMtmEjIZJBpTs=; b=c3XIzDFcSX/OTuxh0bq7gpvWVmyZVBfqphpXIxSjXDJtLCLiLR2nkcQPC/wY1Ox3HozNib JJ6cr8ftJTQSbgzdrpyrlbFmlDNBfoxePlLDLNLH8/Fu96Ws7DYzw9Hvt610NEU6uvN0sK FYS3G7w/EasboH9bk0qGOfP4mWHrZwFRVSY0AANXeOTpvXrqyEQmIJzS7O8oSSGGk8jE0d TLwAdfQLjnQtBIixI9hJyszKKxNi684F4zdHEyTX+l2pbBF1KqfBvdaGU/o7YszOUPmpXW okf8Vb5rhM+JoStBvRVNLA1+xZAd9w26oTtnb095yeShWvcHocMvWpPXnaz3/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 4TYt9j5PNbz15XL; Tue, 13 Feb 2024 07:24:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D7O9o7092516; Tue, 13 Feb 2024 07:24:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D7O9mv092513; Tue, 13 Feb 2024 07:24:09 GMT (envelope-from git) Date: Tue, 13 Feb 2024 07:24:09 GMT Message-Id: <202402130724.41D7O9mv092513@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 69f9c5a51346 - main - nvmecontrol(8): Fix typo in ns.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 69f9c5a51346b1ada4854cb4131e8a63b7dd8b46 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=69f9c5a51346b1ada4854cb4131e8a63b7dd8b46 commit 69f9c5a51346b1ada4854cb4131e8a63b7dd8b46 Author: Yu-Sheng Ma AuthorDate: 2024-01-05 08:11:48 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:06:22 +0000 nvmecontrol(8): Fix typo in ns.c `Insufficient` was spelled wrongly on line 537. Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/997 --- sbin/nvmecontrol/ns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/nvmecontrol/ns.c b/sbin/nvmecontrol/ns.c index 62923056bd4e..1f1cd6101e35 100644 --- a/sbin/nvmecontrol/ns.c +++ b/sbin/nvmecontrol/ns.c @@ -531,7 +531,7 @@ nscontrollers(const struct cmd *f, int argc, char *argv[]) /* * NS MGMT Command specific status values: * 0xa = Invalid Format - * 0x15 = Namespace Insuffience capacity + * 0x15 = Namespace Insufficient capacity * 0x16 = Namespace ID unavailable (number namespaces exceeded) * 0xb = Thin Provisioning Not supported */ From nobody Tue Feb 13 07:24: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 4TYt9l2DhVz59ZqD; Tue, 13 Feb 2024 07:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYt9l0DdFz4cJn; Tue, 13 Feb 2024 07:24:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LznoiPGKVMGSveL2Hs/gOWSEuLdMOSMnizOnGzatOF8=; b=QSCMV/lW/j3mXL4ifngW5W4u01gTsDgiPZ5YhC79nmG15Vr/iZLIJ4YDMJ+Uf3+/6j3Smf lxaGLiK3z/iXuuEfYO9gPeos47r6Y0oJ/7xHPkSs0FX1b5IBv84xGuhXfG6AVH8guz+os5 8NClZzZltwHGccceJCYoEfGOBKf4VCQTuF1kNRvAcyQ4YvYYiI6zjYQvf7ZLkf9nOXcVy+ 2B0oSh7nRNPpoKY5p13Y89BKKaEHeLz5MJh++HZa4FQu/F/g0CltH2U+sxEK7F6RCxL+Km /59XxJLf7hGsD2fZ/DRP4PWVFe7/0qZYVbWYFjfiXQ1ixXPkeDi1NyiPAE1LeQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707809051; a=rsa-sha256; cv=none; b=cd2gR3wBwibEXYI9pViAGZXqz/tMM6rvjOzNF3tJI08UaM5IiYFkBgddbTjnbPthocU+6L h+oeM/Cysr1nzCe78L+iznk4/V7NzDh4TB3EdjP/6tGzVaHx3zF5rJuAwcFR5G3kFpM9z+ pL13dCHFgHrZmz1AwfBs6A67SNfye/9s5Cqh3bc7yuC/oT3R7FCA5fZu7qDICzfBh390Lg nfaKMoGiCJCEFPerh93B19fE5Iak4f28iEPsUfNIype/PzbAt6hAgovjdLXoCrTiNQI1/6 yWkrcwjk3+WnjTrg+NXDkQFfX2dSF83CXvvYuhzop1TtEAkXWGbA4oe95BD03w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LznoiPGKVMGSveL2Hs/gOWSEuLdMOSMnizOnGzatOF8=; b=a4Wt4PSqusqx2uvkMcUhZtL0Mpy5EvyqmlzYGi4KWj3Mr649AUoMh/c8+iXlg6mSgRSsII dG6/mZAXfSGljDuNHFNn6cFJHYcsn/8HbAtS02zxNagYY6owFDmx9qGoqsxCrhjEfnE2rO c6b3d+kUwXkH6Hyc0TONXMQDo9bLZyGzkgGbAVFMMQh2opETIDpMuJK4CoxCeodsbjl1c6 AA1BTzhtBueS8+O22YcZc11OFW3lQJX+tbk5rWpXScTZibqSXsVjrVch8qwe/sOR1lNVpj GCwbZg3L4yxGPJGj6OiNTRlADhtm1m42BVZtMnMzj2T8sKN4Vp+yJY5C+vf6Kg== 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 4TYt9k6QYLz15k3; Tue, 13 Feb 2024 07:24:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D7OAqD092558; Tue, 13 Feb 2024 07:24:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D7OAt6092555; Tue, 13 Feb 2024 07:24:10 GMT (envelope-from git) Date: Tue, 13 Feb 2024 07:24:10 GMT Message-Id: <202402130724.41D7OAt6092555@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: c9213e4bb924 - main - restore(8): Fix typo in restore.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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9213e4bb924cf3e664e8b624c1affc137114ebf Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=c9213e4bb924cf3e664e8b624c1affc137114ebf commit c9213e4bb924cf3e664e8b624c1affc137114ebf Author: Yu-Sheng Ma AuthorDate: 2024-01-05 08:42:50 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:07:35 +0000 restore(8): Fix typo in restore.h `operation` was spelled wrongly on line 60. `dumped` was spelled wrongly on line 74. Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/998 --- sbin/restore/restore.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/restore/restore.h b/sbin/restore/restore.h index e54555f39dd8..407816993196 100644 --- a/sbin/restore/restore.h +++ b/sbin/restore/restore.h @@ -57,7 +57,7 @@ extern long volno; /* current volume being read */ extern long ntrec; /* number of TP_BSIZE records per tape block */ extern time_t dumptime; /* time that this dump begins */ extern time_t dumpdate; /* time that this dump was made */ -extern char command; /* opration being performed */ +extern char command; /* operation being performed */ extern FILE *terminal; /* file descriptor for the terminal input */ extern int Bcvt; /* need byte swapping on inodes and dirs */ extern int oldinofmt; /* reading tape with FreeBSD 1 format inodes */ @@ -71,7 +71,7 @@ struct entry { char e_type; /* type of this entry, see below */ short e_flags; /* status flags, see below */ ino_t e_ino; /* inode number in previous file sys */ - long e_index; /* unique index (for dumpped table) */ + long e_index; /* unique index (for dumped table) */ struct entry *e_parent; /* pointer to parent directory (..) */ struct entry *e_sibling; /* next element in this directory (.) */ struct entry *e_links; /* hard links to this inode */ From nobody Tue Feb 13 07:24: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 4TYt9n3bLZz59bS0; Tue, 13 Feb 2024 07:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYt9n2BdTz4cQ5; Tue, 13 Feb 2024 07:24:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DYPA9rNpEsCn16+00XLD5RWbUyjj0mJEwv0U2txK+E8=; b=Gv8mKRSJhp5YgkIWNo1ph2wmdNSUXfadp+L7TLa6UvfZgAFNtN7RzT5QmJ7nYkUBRf0IuK zGBDoMSwhDoA32aw48DVrcY7PZ8wt/onikbsXr/1IlP/U1MHxegdc169aLmy09ek6qfjO3 BlYRT44Z3HKdPb8+cytehigccyMdZ7Afg2dnZCq3xlFVgrRr2DwNWRKfmweDlUG8+GZRfT LQfg8r8CGCdS3pK8iTXnB1i3J6Fu691Wy7oeAtlqs/rg/lsPnQoMFpkEjvBP/m57tZ9xnq PRptNP9ShWSBwbzLR3JfG/z8MRR1hwAWnruQx6MossEe/542DX2cAIdQXCbQfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707809053; a=rsa-sha256; cv=none; b=T4ehU66WXwhnaEkzo+AbYpabdKWXixWC1hbPEfMZSOQSKwLS/kVsEYBCBaTcdzAc726u8A JjYCXZYkpHfYPBxW0d5A4sHX+nkdC3opKZOMqNXOq6yjgwg1HkWaDYdPGlPkPnjOrlhFOX jKXEOWe3IJZlOwaIf8/bSeEEWVhzTK7rljV+C+SbfJ5O0zNrvGQnkx85sqcKg82Ko8PQcq CeVN59eZcVPpktw6ArZ5jgvZj0MU9uqBaW3E+Fx0T9oHQYc84YjG7TIwCA7QOWiqcIOWQV 0P4SX38utU9fLHz2QZmwbnNgnQcko0g/ZQPMjEcKyTTU9rYnvIKbrLAndd0YEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DYPA9rNpEsCn16+00XLD5RWbUyjj0mJEwv0U2txK+E8=; b=ZRPtRN3Bzlltn40pbw6ikWUHWHk1/qyCmG+dMPcl3D7YifYYwA54lJDpknc6nOyBbcM3j7 TF1f/i3yRm8mhtoEJdmCAECmsnbud3qWRoMNYFf7zcuJi6hEBTqcaZX505DmKl3pbNb+QC wBmkx1xW8N5/ZZuUu6ilo+fuc+bCdL9+tuToG+G1/m3mvvHFvkC5YimvzpVB0levD1HvpX LryXRol8HGqFwHOCxD2lrYvsDxlqY/WoC2ZYXX7EJL+Pez+WlbIRrwOPk4j/PZ5cvXgbMf e1FupcmpII0tmWKjIv2hot5sBzPRG04BM8pAk4wD5YYDqn8LUXNkXnA4zhrGuQ== 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 4TYt9n1H4hz15Rh; Tue, 13 Feb 2024 07:24:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D7OD3S092642; Tue, 13 Feb 2024 07:24:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D7ODhs092639; Tue, 13 Feb 2024 07:24:13 GMT (envelope-from git) Date: Tue, 13 Feb 2024 07:24:13 GMT Message-Id: <202402130724.41D7ODhs092639@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 94d9c5f3bebc - main - ipf(8): 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 94d9c5f3bebc1104325a1181f4231ccfef87adf0 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=94d9c5f3bebc1104325a1181f4231ccfef87adf0 commit 94d9c5f3bebc1104325a1181f4231ccfef87adf0 Author: Shin-Yi Zheng AuthorDate: 2024-01-05 14:02:31 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:14:27 +0000 ipf(8): Fix typo Event: Advanced UNIX Programming Course (Fall’23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1002 --- sbin/ipf/ipf/ipf.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ipf/ipf/ipf.8 b/sbin/ipf/ipf/ipf.8 index b999f04e5d03..1c45b017e117 100644 --- a/sbin/ipf/ipf/ipf.8 +++ b/sbin/ipf/ipf/ipf.8 @@ -48,7 +48,7 @@ supports \fBlanguage\fI. At present, the only target language supported is \fBC\fB (-cc) for which two files - \fBip_rules.c\fP and \fBip_rules.h\fP are generated in the \fBCURRENT DIRECTORY\fP when \fBipf\fP is being run. These files can be used with the -\fBIPFILTER_COMPILED\fP kernel option to build filter rules staticlly into +\fBIPFILTER_COMPILED\fP kernel option to build filter rules statically into the kernel. .TP .B \-d From nobody Tue Feb 13 07:24: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 4TYt9m2sv5z59bCZ; Tue, 13 Feb 2024 07:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYt9m1FZNz4cGk; Tue, 13 Feb 2024 07:24:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zuCu4j0hsgxXEKzgsDbpPGckRZDABY5aevmVMoUnKg0=; b=g8iBhnUzE+hw6dS5zEjxxKw7qzeo/uioM0dQEfpuZOqsuAn9OPQ9tztIVZNkIjamNHIBCS CPEpot6eINNqH39OMwRuCN+MMdI5zeiG4dAnSzx4XPnGSW5GmGmmZu8CLNa7xT7YzHAZfR nEC0I3D6HXNFOAzPJqGXkQvVfjqDq6fCeOYp0ASLgDY31chZ+ALqWWy6Er6whg+FAxFLvx NxHO7O96uq+pPN9uAmJdqZ+1xWTe3Pxsd7IHYMYE8Lpqp3jdw+V8els5LTpPmiLHU9D6an n/zma0rY72hewWmWrYTPuCx6gMe+oE9gld0f3AqaNJxaCgBqr5dRmXoFhlRsog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707809052; a=rsa-sha256; cv=none; b=yiDpty9AW2FqvjYhc1OzyhpLdrn9LXTSKqbWtIGZ6jLkyOkf2lNRKYM9oIbBIxzspiYID8 D9ytqEc+nXl8r+13oKVztGqKrQfQXKvQYAVOh8nO2xrpEzPEeiGnfwQxiEasKHek3SzzHL pGf7PTpzvGgzhD8T6wZxW4UXhlRvkOG5rww6EDlKM7f9lx/+Qzas+1+PMQai6W/vEfPgc0 BeO7mfbAHnBiaxBTbfJ+rn7GLohZCnm3e2GQWtiwdg87S3d0D0GPCkdhOBK1xzy56nsrpt oFrKNe6WOTK3id5/kaFeiyJyzMmtA4BhmimUISqzQSjR/0vIn7IbTScMjoPlug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zuCu4j0hsgxXEKzgsDbpPGckRZDABY5aevmVMoUnKg0=; b=RBFdTVWaKFRKvBEjJHe4SCA1Mjo9gCPKJjmiDrjd67DFkBZpMEKQHms88s3kulq6Gf8H7M BwqVGfJI2vsUbjH5TPl3bvoBdirWbnACrxA2OxxZL5hdTH5hwc6sguPcLNv4I/o1vBJGfg h9qbGwimybR502KDl7Ul2kp7ifvJrv81u36Kd21WoCgvUL/FD3DaFqYJqxa49S5+qdx8M9 M2gZ0bsdiLM759bCkdD2Say0EeWN6CQSt9xVZVHeMPWqHN0D9f1xOP5pxL2totCaqvvITF nTLfxgj8+hs7HKV8mjgi5tfYTJ1w7x+XDv9+KPgZD1gPAyVwLhJmy9DUJRFH0Q== 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 4TYt9m0HvGz15jJ; Tue, 13 Feb 2024 07:24:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D7OB8d092606; Tue, 13 Feb 2024 07:24:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D7OBsS092603; Tue, 13 Feb 2024 07:24:11 GMT (envelope-from git) Date: Tue, 13 Feb 2024 07:24:11 GMT Message-Id: <202402130724.41D7OBsS092603@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 711a74e19ffd - main - pax(1): Grammar fix in file_subs.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 711a74e19ffd7bcd116744a333c5c22835c17307 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=711a74e19ffd7bcd116744a333c5c22835c17307 commit 711a74e19ffd7bcd116744a333c5c22835c17307 Author: HUNG-CHI CHANG AuthorDate: 2024-01-07 07:50:25 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:09:32 +0000 pax(1): Grammar fix in file_subs.c Event: Advanced UNIX Programming Course (Fall’23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/999 --- bin/pax/file_subs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c index 7c68e643f04c..7214de337ec4 100644 --- a/bin/pax/file_subs.c +++ b/bin/pax/file_subs.c @@ -716,7 +716,7 @@ set_pmode(char *fnm, mode_t mode) * block boundaries significantly reduces the overhead when copying files * that are NOT very sparse. This overhead (when compared to a write) is * almost below the measurement resolution on many systems. Without it, - * files with holes cannot be safely copied. It does has a side effect as + * files with holes cannot be safely copied. It does have a side effect as * it can put holes into files that did not have them before, but that is * not a problem since the file contents are unchanged (in fact it saves * file space). (Except on paging files for diskless clients. But since we From nobody Tue Feb 13 07:24: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 4TYt9q1v4rz59ZqQ; Tue, 13 Feb 2024 07:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYt9p3FNgz4cQL; Tue, 13 Feb 2024 07:24:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1TIfCrP4nasiEAH9GlgqJ4mcwo/uSvSsUMq+27WsmAE=; b=wf/b0dWlytFvePJZY3uAIXKDO+6Wz9ibg5ZHaGvlYVyGJzxQI1S8UpbIfX1by2puozZDx5 THV0nu6lpkE+D86ww1S1250YyydXn85AWfYukC5q/MmbXJRJD/JSqjZWXkd554LEqekvKB hHVocVgm6UPCMnc3PNsajU8mJV2W4IyVO0/KyZrLz9MQy2G/1JYGL+HVQ5/BUg0akaYm/T Kir/clKk/Mnvf8Cb51NOyvbCGt205C7KEQR0H7fbVHaTw9NLuq+gSDpXAJQzMZSlHSaEhW +f/fa9wpWOtD8SYwUMqqAW6uPrd3Raw0qQoTgopDr4KXUnglbS8LFIQZ90m1hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707809054; a=rsa-sha256; cv=none; b=RbXG+mF6l5l2SnyVvlEEHKGSOu+g0uaq4fTXWO/n9DzYACeQ7qZCiSH/WMAWiD3j7r2QZu DBEpwb8tFqyWS8wRWtSDPsdCRX4haMzNzHBlypJky41JODNbd+nUIyZzPm9zM48/8xbtgt oM2keF1csHNAc/S12Y1p0eTFvDt897jMfzoHZxSKN9XpWqIr56rXkc4DN6lLqskNl9z7nY xUaZdcUbGpRZkZsO0DvVtuhdP+mptFxPCQfK4QHQeh2ad769t0nyZSrN1oL4FTtkYc+WSm 4PBMgzHezFoJ7E/4wVWaCGSCfl0uJKkk2634gkjpeZmS8nr8DwY7xwktAWiDCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1TIfCrP4nasiEAH9GlgqJ4mcwo/uSvSsUMq+27WsmAE=; b=jg1uNusOHN7s7RiIS3gA+8Yk66Y0smdqOLZVpwzVEWoh+GUWRANoSNWRa+ubUgb6D2WA/P wIr8yQ/PrTTkbNQaiQhFGbJwXLWWejFw0wy8avl+rXWGKhLW4VzwWli49V4MJmr9D4IIV8 6c8PaX7fNSVdHIV1Bt/l5W4+md1ikqznR/aCAUpEVhWBnJZ/+9uzvlT6I8JZQNesG0BAGK u50WZeIMTn5r9B9I6MaaCQTfakN28fgI3+8cpEoeA4FIxasz8sGsM4o7fHYYETNdutJTSP D+bpm5mzl/nZvFA8eyAW80RPk43wpKI6mi0HezFaP3tYMc9mEun9KabuZGcGAw== 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 4TYt9p2Jbsz15jK; Tue, 13 Feb 2024 07:24:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D7OEC3092682; Tue, 13 Feb 2024 07:24:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D7OEOB092679; Tue, 13 Feb 2024 07:24:14 GMT (envelope-from git) Date: Tue, 13 Feb 2024 07:24:14 GMT Message-Id: <202402130724.41D7OEOB092679@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: dcde2454bc52 - main - Grammar fix in share/doc/IPv6/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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dcde2454bc52f5d959a4e65692350773044d88c6 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=dcde2454bc52f5d959a4e65692350773044d88c6 commit dcde2454bc52f5d959a4e65692350773044d88c6 Author: Ho-Kun Lin AuthorDate: 2024-01-05 17:56:26 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:16:01 +0000 Grammar fix in share/doc/IPv6/IMPLEMENTATION Event: Advanced UNIX Programming Course (Fall’23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1003 --- share/doc/IPv6/IMPLEMENTATION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/doc/IPv6/IMPLEMENTATION b/share/doc/IPv6/IMPLEMENTATION index 179073383886..ffeb63223561 100644 --- a/share/doc/IPv6/IMPLEMENTATION +++ b/share/doc/IPv6/IMPLEMENTATION @@ -707,7 +707,7 @@ node-local multicast group ff01::1. 1.4.2 Stateless address autoconfiguration on hosts In IPv6 specification, nodes are separated into two categories: -routers and hosts. Routers forward packets addressed to others, hosts does +routers and hosts. Routers forward packets addressed to others, hosts do not forward the packets. net.inet6.ip6.forwarding defines whether this node is a router or a host (router if it is 1, host if it is 0). @@ -1481,7 +1481,7 @@ Users can join groups by using appropriate system calls like setsockopt(2). 1.15.2 Router case -In addition to the above, routers needs to handle the following items. +In addition to the above, routers need to handle the following items. The following items need to be configured manually by using ifconfig(8). o The subnet-router anycast addresses for the interfaces it is configured From nobody Tue Feb 13 07:24: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 4TYt9q5Mc8z59bR4; Tue, 13 Feb 2024 07:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYt9q3XT6z4cHT; Tue, 13 Feb 2024 07:24:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809055; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a4b+Z9U3FE721ueGon7OSBa8FoGI5bUJXQUuqWWDP9g=; b=GSxz55hBGr9VFdmzKakwO6iU5YTk95cpMrLBTqSdrP7ieFxJBFQQP0922ufZN+5GLDOJsx oJ9UySXy4rpg7QhrBrtV1vnMxU4lGG2iLBKSeodyRiMahHYzkrYWFUg2MRzB2n4Pr0kaOK WoqX02h8q2kcqco4Ptm6e1bYC2+Gw0qE4qaUWQSZiAEExCmYzFYoVAzQwJ24sgmwFOqa7l 42DGGCGFHFGP0ZR3wbPRVEX8OR7kBkS04MRGiW/jCfnwWWBBhOYumHddHWc17lSPae3qIt 0scM/hOxBDIrDZA6tyPmyLUTFqmauxYHOhk0e0Gg8oWjM3jKWrGnvlH/lY/NQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707809055; a=rsa-sha256; cv=none; b=FZPezTO1pQayti7DvtLHsBP/6EKJaueDoACNZDepGj6TLvd/jVZWC28YnZCeZyM0EJnJ0N PTTUiAo9JYrWqdOQAARCPg3l8JSXisyzOO95rJ+f8NKc4a0ozDj/nWEntgX/ruKeLd37xJ G+57azi/ILfKwp/KLFfmJab8W4AH+QOQgSdV+49/8ttqch3nrIGZkX7Jb6yb98RcDwEiiD BJCyYc6iuc28RfcOC0YJw6wlAvexZyD44+CEGKJk9ZHi4E2OuKF/juVnKtvebnsPhX02kl 5WiTsTg9FHzI+eQPvy3snPE8WzwEApJ5fl/rhVb5Latm4405G0hmBNSGdjHA0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809055; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a4b+Z9U3FE721ueGon7OSBa8FoGI5bUJXQUuqWWDP9g=; b=DcAeZWVHlr9I4vHvzpnssTFvtAsMlL5XheG/z5A4yHN7PrIGNyGqNZ4sC8YxBr23ObSYOW W/CuKcCjW27C6OLETs5F6gOOgej8LASIsy68AAnoqXX3J4kaIXL6NYMnkXxg5tkrPsZFhy YblnamtZkE7Wl7UKH+6njhjwmE93QMR+5vw+uzZDiByPhI+9rhvhu3mJn/ax0UPTKqUQ38 7n+nT06V+pH8ReaVP2IiS3t4xZsngzlc4gmSgTuAqPAZHnAIA58Gr1A3yIfRvCldZ5Sg50 mGajXksfVRYFJg+Qpv6zSvV9b/pigxsjEWxyjw5wdf9RzTsIusSY8gx7o3Bw9w== 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 4TYt9q2fjcz15mW; Tue, 13 Feb 2024 07:24:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D7OF2w092727; Tue, 13 Feb 2024 07:24:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D7OFjO092724; Tue, 13 Feb 2024 07:24:15 GMT (envelope-from git) Date: Tue, 13 Feb 2024 07:24:15 GMT Message-Id: <202402130724.41D7OFjO092724@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 0a68b0066f5e - main - fdisk(8): Fix typo forth -> fourth 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0a68b0066f5efab8b751384a434912b4282f5310 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=0a68b0066f5efab8b751384a434912b4282f5310 commit 0a68b0066f5efab8b751384a434912b4282f5310 Author: Chih-Chun Wu AuthorDate: 2024-01-07 09:00:36 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:17:48 +0000 fdisk(8): Fix typo forth -> fourth Event: Advanced UNIX Programming Course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1010 --- sbin/fdisk/fdisk.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8 index 3c6a73318271..981233f6998d 100644 --- a/sbin/fdisk/fdisk.8 +++ b/sbin/fdisk/fdisk.8 @@ -456,7 +456,7 @@ downwards to correspond to head and cylinder boundaries): Example: to set slices 1, 2 and 4 to .Fx slices, the first being 2 Gigabytes, the second being 10 Gigabytes and the -forth being the remainder of the disk (again, numbers will be rounded +fourth being the remainder of the disk (again, numbers will be rounded appropriately): .Pp .Dl "p 1 165 63 2G" From nobody Tue Feb 13 07:24: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 4TYt9r6YR3z59bR5; Tue, 13 Feb 2024 07:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYt9r4dVvz4cXp; Tue, 13 Feb 2024 07:24:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/JJ0bHJF4UWJE4hr11/zXwWogBqMfYT3VU0Wly2IYK8=; b=w/N7jw+68GxZbwGo+5FE+/g1acj3Z/nG8fW44qAOx1HaPR0NEWFTJf9nnib2C5s1e/C8xp dTof/4SRAX3jJegKABUsf9BBojxZ3cVfEE2WWAsjtzjF7sGwrAjRtQSPhxVUEJL8OrpOv0 69m7dPSzgqUZICTRIfhRxhKtK/lFa1MxJIcE1TZmP1hDblPE8wNwbmTaiRnJ+Nk+u9DEJv 1xMOTY/+XCNR0ITXYOqoeuZwIe0MtpwzLsuUONgjInkwmM9uRKNSuD4LbBqLCfJZ2DKlKr uLQ8s00Zx2dxe4D0yc9IAd5tkO40POgDWHtagMhC8f5/U6fsAlIODmmL5Jvmyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707809056; a=rsa-sha256; cv=none; b=R2/hfpjizV9mw9hT6A2CffKxEtdgIIKiBnzTQ2CN0czCB5ZMWeOaDwZAmcAG5Z54I3Fwxd OUnIF2pAsQ3KjUPmtUcxDz/Q8FqMtAUq4gbipUOmqAoXQ6VltN2QPLY+NjNeQe71FYlxdL ocmGU66wOKthWtP7p9AaOpkDRYaGa1nRy0f+kKn5RB+ejWSYgWlmLVx7RnkPh/p0UXEJ9d vxagDFAbfsHFmkv+Z+XirecqhWddhw07nJQZtyu63JJknERHqGrmmKt9fGiCUe7iiUWt07 ICFF4kBAt4LfpUqc3eRmwR2o8Z+RCh2KuIRvRW8RV0dOUuytLwZElYOlD4jX/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/JJ0bHJF4UWJE4hr11/zXwWogBqMfYT3VU0Wly2IYK8=; b=ZHCj4aCLQYw5GLZ8KVwLXrDn3yFdtk9BGNIeLs6+sPw6BFvfQChHyd6dIqLFjvANMEUQYt Kb6RHyR2NqZ4JDpijm1GPfSyWSu0TnxbDZ/5CIsp64FnZY4z6nryJaGWBKzfwkWsf541xn RtR0JW5+LgJTh34eDUD9YubNYbIrK+VmwIz6iFTJcYjnjNXoF5rcJxWxqMzHUfNDdXGbqw RzsYe0EqxZpu0qn5wOYLzbq4lxACpfQVXzZLuWroMPvruy5lYnDW7iOkv9mKBYG7fVXOlV 42FN388frWoB00fkAEJCMqzTUP6ggt5L85VPO8hnfuSd5S6VVumNavWbDJ+1Yg== 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 4TYt9r3lptz15QJ; Tue, 13 Feb 2024 07:24:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D7OGwX092763; Tue, 13 Feb 2024 07:24:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D7OGmT092760; Tue, 13 Feb 2024 07:24:16 GMT (envelope-from git) Date: Tue, 13 Feb 2024 07:24:16 GMT Message-Id: <202402130724.41D7OGmT092760@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 01d463b6f21d - main - arm64/cmn600: Grammar fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 01d463b6f21d027ba16cb4f1040c00b295b1df17 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=01d463b6f21d027ba16cb4f1040c00b295b1df17 commit 01d463b6f21d027ba16cb4f1040c00b295b1df17 Author: LO WEN-CHIEN AuthorDate: 2024-01-07 12:32:48 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:19:22 +0000 arm64/cmn600: Grammar fix Event: Advanced UNIX Programming Course (Fall’23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1011 --- sys/arm64/arm64/cmn600.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm64/arm64/cmn600.c b/sys/arm64/arm64/cmn600.c index 7079907e63ce..4e3be8fee40e 100644 --- a/sys/arm64/arm64/cmn600.c +++ b/sys/arm64/arm64/cmn600.c @@ -353,7 +353,7 @@ cmn600_create_node(struct cmn600_softc *sc, off_t node_offset, child_offset = FLD(val, POR_CFGM_CHILD_INFO_CHILD_PTR_OFFSET); if (parent == NULL) { - /* Find XP node with Id 8. It have to be last in a row. */ + /* Find XP node with Id 8. It has to be last in a row. */ for (i = 0; i < node->nd_child_count; i++) { val = node->nd_read8(node, child_offset + (i * 8)); val &= POR_CFGM_CHILD_POINTER_BASE_MASK; From nobody Tue Feb 13 07:24: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 4TYt9t0w0Nz59b4s; Tue, 13 Feb 2024 07:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYt9s5P0gz4cTN; Tue, 13 Feb 2024 07:24:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=csUDxoDmrIHACjA53523otDYtV2xBDcbA4AXs78JshM=; b=gDEwDZDQG08Q62mhoW8Qpl4Bc643obL8RmZ7gbkTuSGh+Wh1Um5Ge2x3ZtvXK2sRKeZlwD FeUYAazmtVxRKSU72DSO1opKIWCtGPZ9STSu5DiqrNDCV8Jpin5N3bODJwmph8s4cmLrM7 +fZrEEdhhvz2fbJ9WPEYbSbdHKoM6YPvRZtos605Rvem0rgE7p8U6RNHYFsMOp0EBo9Wi5 33R22qkYk9KRG8bvw/FuzE60BdlxJ6FfHi38PVb7SVwm1C4PYWyHoMTZ6Jzx967yEGffWy DhDXCf6CV0XyozJfGS1XT86blj2ahkVC3ZCQ5hLzAenEkxTtBsqTL/agavvXkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707809057; a=rsa-sha256; cv=none; b=ig8tMoDQUIPAErztQIyaLRlYiIgcNNGFUMaOrb2Q0E0gwqOT7B9kPybTMV1aeW3I8WKMbg auzy6djuihlI8d7QZDe253mJWP4e+Z65z1wk4Y4OwaAzn5eQee1m/vOvVZlJiqy4wDTBOG +K/pXrL+QWHX9lPzZWXn+uOlGu60lLLcXgP8befHnjYNRNAbpCWUgHmhT4w7GmHldQ4k+i YZHMQ9kgOl8JNzRS+PQknsiKfpODzwHGrGn7+mmc6vphdaP4ifx0WTQ1i7QDbptGzs+sd0 aPN0/BKttzz8nTedCC+54n9ak9RK2JcfPQRQGn7bMb2KvOH//MoKhj0Tipjf4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707809057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=csUDxoDmrIHACjA53523otDYtV2xBDcbA4AXs78JshM=; b=nID0i99jU35+N2pThUwdms4BJOMWK+CbLnV0ZutNZdrFZQBlBXH774iaYmskStJV8/E18D S/M7lfqa1Pef4HgUwv20ZZF+4+dysTaSv9pcC9ioWdzlRWjVLsXGwXM8wx/6FIOu4WzDI4 t6rwKq0WcyA4lfEwWW4NGFiFY4h9ouDTYSpQIkZ1RnUZBFo6qHS+Figto+MacZBvvMxXZR 1QRuVNbRraSQdI1yr2P+AszGGnnM9BcEgVlw6hVfUUz8bEFHZH14P7MjahklClYUtd48jD Xbemvrf8mhWPFk7HoJA3eQpCWC0ZJIV9mQ6HyR1k7mWMqOmwJofVTNeVavMEaw== 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 4TYt9s4WFlz15XM; Tue, 13 Feb 2024 07:24:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D7OHOo092805; Tue, 13 Feb 2024 07:24:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D7OHO5092802; Tue, 13 Feb 2024 07:24:17 GMT (envelope-from git) Date: Tue, 13 Feb 2024 07:24:17 GMT Message-Id: <202402130724.41D7OHO5092802@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 1d83ae9d3d66 - main - install(1): Fix typo in usr.bin/xinstall/xinstall.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1d83ae9d3d66e3af9ad192b19578493f6554dd21 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=1d83ae9d3d66e3af9ad192b19578493f6554dd21 commit 1d83ae9d3d66e3af9ad192b19578493f6554dd21 Author: LO WEN-CHIEN AuthorDate: 2024-01-07 12:53:10 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:21:45 +0000 install(1): Fix typo in usr.bin/xinstall/xinstall.c Event: Advanced UNIX Programming Course (Fall’23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1012 --- usr.bin/xinstall/xinstall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index 66f2c165c683..1e5adadd8f49 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -65,7 +65,7 @@ #include "mtree.h" /* - * Memory strategy threshold, in pages: if physmem is larger then this, use a + * Memory strategy threshold, in pages: if physmem is larger than this, use a * large buffer. */ #define PHYSPAGES_THRESHOLD (32*1024) From nobody Tue Feb 13 08:25: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 4TYvXS52Xyz59hcT; Tue, 13 Feb 2024 08:25:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvXS4VXfz4mbs; Tue, 13 Feb 2024 08:25:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3ULzbCVDqY3Z/Xbiy1dwljJgoxuWCdWOcdo6NHteHVg=; b=sT9Xri/4ipdQIWVfus+BOvijttoF2nMj3v4zi+zsuASghy4O187DYoj7v80uM9bcCahEUy uuG6GxgTggEqZbnApcz+Vui949T4BmsxbbouSzvtuMhfKZ4EKsHA+ADIHzfxduOzNRmBPr nW4NJRCJcVeJMz6maqxj534o1PdnTz5h8Opvipz8Gwjzdh+our41YIuOEUHHck2K9ALxuA iMMR/TaCOKoGSi8GngHL6hI6ndsKky66TuCBhzdcwNFm8DWA1iYn9HRr/e4jpWJhobEH3M cWBdLks5/m/mpwYLclHtuiMTL8fOWnI94bV9u6BrlIDyqDEdQDnHoh4df1RWnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707812728; a=rsa-sha256; cv=none; b=xjzWX40+Xn9KGKmZGHAN6/ZOrYvXDgb9SF1ggKtQJgAIWkQsRc7/spPy/Lmbycug3Mr2vV 40zGtP3sSk4tbHuQ/gfWYvjNhEl5r9Gh0AWRRryK2yBLK4iE52FFsPyp3LSit/Zi9rSM3Y F4iq+PkgHnXsA/kB5JM2NK/eDok4NrH2N+M6QgGRhZUc96vieQug1jlOmW1tvnaN1LUI09 Iclkgv8iAZdfpiNkkrf/t+hF+bJJDm7cJczfPHditfkaFp//JRwR9tbLJZjXU1qQaAfpPa AOGU9MF7ZreHoa96P2/NmjxcTxqMr83K1FBhqTCrLOlpcRZiMXDPYa4e22FsXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812728; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3ULzbCVDqY3Z/Xbiy1dwljJgoxuWCdWOcdo6NHteHVg=; b=R/dDbEfyZOygfDXjlFtCiNpMTAR2ezZ5bopfq0Lg001N94XDbfD22ZSLQIP4qaJvX9vS+p MnR3qeRYa31N7uTPi9DUgpXmzY91BLO2gxvUAT1afv7sglq0lYaPO85PfUsmbymEEKqswz EheStXoYUBAZ0PCIKJyawvX+VpA4XNTGuJM9aa0nUWG9pLhdlALSMUZW1MNWy7w1zbE3MU cwuLaAPyDpoyiyVlcKTuKtTJlTWVNvN8arGGCil3K2p/pfFa3htZJClDffvQBrSeBMpToB fambsWq03WZUSDrJiqvtUQhBOfdHHpST8Cb3YQizMs1deSRJ6UHqpdKiB9jQMQ== 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 4TYvXS3X3Gz172J; Tue, 13 Feb 2024 08:25:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8PSfQ095034; Tue, 13 Feb 2024 08:25:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8PSUC095031; Tue, 13 Feb 2024 08:25:28 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:25:28 GMT Message-Id: <202402130825.41D8PSUC095031@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: b1d0cf28ff5b - main - ar(1): Fix grammar error in write.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b1d0cf28ff5b925eb65d6363e32da9cd0d3c3857 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=b1d0cf28ff5b925eb65d6363e32da9cd0d3c3857 commit b1d0cf28ff5b925eb65d6363e32da9cd0d3c3857 Author: LO WEN-CHIEN AuthorDate: 2024-01-07 13:01:56 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:31:59 +0000 ar(1): Fix grammar error in write.c Event: Advanced UNIX Programming Course (Fall’23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1013 --- usr.bin/ar/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/ar/write.c b/usr.bin/ar/write.c index 1279a1ca7cb8..a630e81480ee 100644 --- a/usr.bin/ar/write.c +++ b/usr.bin/ar/write.c @@ -121,7 +121,7 @@ create_obj_from_file(struct bsdar *bsdar, const char *name, time_t mtime) /* * When option '-u' is specified and member is not newer than the - * existing one, the replace will not happen. While if mtime == 0, + * existing one, the replacement will not happen. While if mtime == 0, * which indicates that this is to "replace a none exist member", * the replace will proceed regardless of '-u'. */ From nobody Tue Feb 13 08:25: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 4TYvXT5sWCz59jJ2; Tue, 13 Feb 2024 08:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvXT5RBLz4ms4; Tue, 13 Feb 2024 08:25:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812729; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jykXPRXtwG8VhcCYs8jlSyW0qwgDJ1kFVvwRLIvJiRY=; b=c+r0m7fdhjstf4lKR6IdvpUaysgAOHnzYuy/FyJlJvRAKaMK4aqenYi5S62AkdDb0o04ZR fXL+PY1OVZBCc4KhS/McbxEhTSw3RYTVwZi0/xlNbhKXJuuFsFhMJTdx6mAzjIpnN8j7Wf WdppSkTcmFkmnEeG340GvwDQ4IK4bJDbs6ZCtcW+hpxVk6VWNcNxigDWJIMk+vroQTCTLv xq1dn6/OyjPU6yl/5P3DI6sQaP+NnQqmpPBM+S3p1DmyKdk4fPdwA2dr3xSCY0h/FAbr6L E4NJyF7ufx2v5ia622K0C9Ur6w72eeGm/HttFGfjltj6x15ifbmS2G5zIkWjXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707812729; a=rsa-sha256; cv=none; b=T3SW/CiK5cs0QV1nwSUcNSz6fM3JuBiJ4SATf4AgsQofTs4U2EkxIoQ+N7dKOWSt48iHqN /1HcLUYtwVQNVxEM7SxXRasZU8uoLnLOJK2syfSobA/MPMW7tjiIozSWi5LEATvfKx95Ul cDj+XjtbTV8RmofD63+ZAvfAABxXPcxgDxhrDnPkvqKXj0PtqLw46N4Cwkl0kSYfEujTXG 4b4NKycljXlRYnS9UI2ypAJ/VIoktkRzjt+orpm88FGx6McnTaHf846yXwlvK1hFzvZPIC SFDg4e6u7uNfjexzdUuU+EcKURsxmd609VOMCFMyZ+MEEBdmNnCoNY2vd143xA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812729; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jykXPRXtwG8VhcCYs8jlSyW0qwgDJ1kFVvwRLIvJiRY=; b=ZdnWV7YbPpNGibnQB0Bp0QjnZXIOjCHb1JL3GBQ7jvXxXWRxBjUV/npehRVJi7/OAOFy4c ZMBTFWwpjBHJPDkFwT9XHc60SNTpYFXoXBYTUSDl/SMR+b3tJNTaZJI6fZVi43wDATYJnW YLrIin/ifgr9mb+YGgW48AT3iKjEEM3IikpOZXR2DwQ7nfA73pP3/Tmt6vkGroFwtIVC1A GaVk+1AF+dpyQDHxE0H9Lo8wld5si9Cbyw93INIxkOgWIXxcm2uSnNL1sj555rnz1QItSd NYLMAiJHwP/OHnBQV9N4z44t98wC6M0TKRw7UgrLLlDu/rl418RjWZ0jy3df8w== 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 4TYvXT4Xljz173v; Tue, 13 Feb 2024 08:25:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8PTVS095083; Tue, 13 Feb 2024 08:25:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8PTIo095080; Tue, 13 Feb 2024 08:25:29 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:25:29 GMT Message-Id: <202402130825.41D8PTIo095080@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 49eeca743b70 - main - stat(1): Fix grammar error in stat.c 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 49eeca743b70d13883ed1db73b6e04fbab791681 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=49eeca743b70d13883ed1db73b6e04fbab791681 commit 49eeca743b70d13883ed1db73b6e04fbab791681 Author: LO WEN-CHIEN AuthorDate: 2024-01-07 13:14:12 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 07:33:16 +0000 stat(1): Fix grammar error in stat.c Event: Advanced UNIX Programming Course (Fall’23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1014 --- usr.bin/stat/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c index 720069db3195..1fd8288728c1 100644 --- a/usr.bin/stat/stat.c +++ b/usr.bin/stat/stat.c @@ -1022,7 +1022,7 @@ format1(const struct stat *st, (void)strcat(lfmt, tmp); /* - * For precision of less that nine digits, trim off the + * For precision of less than nine digits, trim off the * less significant figures. */ for (; prec < 9; prec++) From nobody Tue Feb 13 08:25: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 4TYvXW1dtjz59hcW; Tue, 13 Feb 2024 08:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvXV6W5tz4mY6; Tue, 13 Feb 2024 08:25:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tz+cq2Vq6WiA6hT5HslCHkxfj9ib+fgHO5gWRQuzFSE=; b=gG2eyqDSkx/vi4L85Yb11VYxY7fbFUI8/UqtjyYgimuYH4avZLfeQqbCB7rVraNs280R1Y W4XQEqKXh8vHxpODRhhENjD8Nq2Bp7eKDXxFX77azmGEkERG/584oUDTBoPDEBDmWs3YWA NKZc7+CHmZFKGdwfkBiekxZIqMqRDNYHvAoTtAZf589ZRlIXr8mLD3aMVzWTZWYKoVw22V TVAFyKwWMmfbXhIn9LV/UgF4NrK9F6MnOujCK7DjC197wfyb9VGAOdlyffDcRMn85SEQbG Y12cwYHgyqEVSjZBXD6VoIh6S14NeOuH1g4lctg+9imdyj8QL/Ai4it5jjSkeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707812730; a=rsa-sha256; cv=none; b=XJauyJcb1CaTTXyamyuxv/PlL9yxwwgWyuohzRdwLMfRnow0ri3hFcx0N/VUpmJo3W2kQy C9mJsCQtywY63TAfUZQUaB4ROjKLpvazuQ3vTuvy7wR/b7W3WCplEhjnsO8HuCPlCwk1n3 qVzPIRf/P1FHSepQgB5+hGabcw8Dnqg40W0/+c0lPaEYawUb1Fgg9DqTS05OT84JH/XXNT +HCpPR5xBSZac2TgNMdeppXZNumST1Cg/DJyQ6yWKRLqUmyAk7/MLEg2pO1i7wHh4buguP MUdPtW+cOaYma2IjiG6LMcZxqq7Cz5esZtcbf5tN2KQ0l4lZTYmk7lcYoD/7zQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tz+cq2Vq6WiA6hT5HslCHkxfj9ib+fgHO5gWRQuzFSE=; b=P91bk/uUvuf/vpO9K90qkSu8lrJX+VjSlT9pmFDtVYhLKzGxHvxhWdZCDD/smHAnCbBCsO Zukay0w0BzlBZmAiLI+SIJYqZZ5XUJ/eZoi5qQsen1azG93QENYr9CQAFhznhcpsOHRRsu JXVKTKuRWq2q+Tck2/MMxLgBim5pP7i+WpM69NOnFVR+yiMgZEGBzL9NePiNs7KIUpeAaI JBNL1IqyIXgSbVAWymtMVHxTeE7fIpY6LvL+ZpK0h/CQJsPeufvp2hK+0h4z+IHaqnSVVx j0wLo4ISNaRdZ7TXS3t37AdtpP+OxHq2mPnCvag+AGCqno09GeRUNRI3Vcf7hA== 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 4TYvXV5ZnTz1712; Tue, 13 Feb 2024 08:25:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8PUFW095126; Tue, 13 Feb 2024 08:25:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8PU4d095123; Tue, 13 Feb 2024 08:25:30 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:25:30 GMT Message-Id: <202402130825.41D8PU4d095123@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 1d479bf6b474 - main - gjournal(8): standardize capitalization for consistency 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1d479bf6b4741fdc24490ad7179bbef0a78af288 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=1d479bf6b4741fdc24490ad7179bbef0a78af288 commit 1d479bf6b4741fdc24490ad7179bbef0a78af288 Author: Cheng-Hsun Lin AuthorDate: 2024-01-08 09:37:47 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:09:35 +0000 gjournal(8): standardize capitalization for consistency Event: Advanced UNIX Programming Course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1017 --- lib/geom/journal/gjournal.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/geom/journal/gjournal.8 b/lib/geom/journal/gjournal.8 index 80f987679b10..f9959ffa0f3f 100644 --- a/lib/geom/journal/gjournal.8 +++ b/lib/geom/journal/gjournal.8 @@ -61,7 +61,7 @@ The .Nm utility is used for journal configuration on the given GEOM provider. -The Journal and data may be stored on the same provider or on two separate +The journal and data may be stored on the same provider or on two separate providers. This is block level journaling, not file system level journaling, which means everything gets logged, e.g.\& for file systems, it journals both data and From nobody Tue Feb 13 08:25: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 4TYvXX2KFTz59jNZ; Tue, 13 Feb 2024 08:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvXX08mCz4mqB; Tue, 13 Feb 2024 08:25:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=W/vZ+uclo+8k7nPoHlXQ/a70H3e7kesvrK9O6U+MYaw=; b=HgZQOnxQDDsSIfdHfy7czdJ0g4w2h1mhLUctXX4MoyewNjErPVgRtbGDNd5szLIWoNGP+6 vANpkwNzSeS+STrx4zaGgnlyxNNwuRl2jzIMd0doysA86R52xzfQiA65czB0mvmwZ00SD+ Xw6aVxZ90jLqmBR4M7pgk0DWkm38XqbGkBHk+eGhOViQ7zpsCNkjc78lJOqCAbvk9nFvS+ 57nJHmulfhf2/uy6A/NuaKbSZLfc4bQMTvaRUJzgxOqLkwTkknQpqzXte1L+M3KanPFlLh vefO4xLKWF6F+YaCSdjSaRSav5cvD5foZwftkuqPzNMM6kuIbhLRoA3M9Nth0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707812732; a=rsa-sha256; cv=none; b=Gz/gZLxAuOy1Qz51rejj3TdXNs71KV9Y0x4uY9cBtFNX94z12roUAsfuApegLqpVFJFkbb dqVEcIfMrCQT9W3MqoO7CFYWKRx2RyTY7o/cbCeoC2lAj4H6Af22B44CqoRt9fc3Ge3tE9 Jq4bRWROr0sBDcXZMrN3C/Ba6NlgDmjU4D+hlDsgbW3WP4cb+Fa86zCQDA+YcFzRWXT4No V7TQ+if3cfToQGpy6uY4ObtR9mgWUIZiTM+lGurmh+P3skQfKJlxsjF5ZZdN4zZcTgt6ag apPSFkvka/wOVsCkaLp0ZO6fNcMfkp6RYiS+e9TkKEO3fxw5BzKLo36Wfz0kDg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=W/vZ+uclo+8k7nPoHlXQ/a70H3e7kesvrK9O6U+MYaw=; b=fEosv88EH/TBca0m88a0Nn/HoqQi9+BZW9vWOe7lZhcA65Qj9yEI37h6/Cg2CroXjiJc9I 3nwqyFhqHGV5cWjyzWDqCIO4UNbtLY8d4eXZ+gtTNbg9AA1WK30q3AmPS7bwQUEttO7lda x7CcyWGzg75xT4MeonEM51t80lFFyIUFmSQWbzkciSLeOnisnGXrpvJJsWjD478IA2SSRk AXlkIG44AadK+iXoLSX76ttlQWZJSXjwSo1dygUhcR50Q5od0CSIyY8xBRDHgaOC+lys27 QFXaG4ITzsrKjXtO6126Er/X5SuPwa/+dhYno6beRNwETGeAnbG60nR7GuZTqg== 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 4TYvXW6Ktjz17J6; Tue, 13 Feb 2024 08:25:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8PV9P095168; Tue, 13 Feb 2024 08:25:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8PVb4095165; Tue, 13 Feb 2024 08:25:31 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:25:31 GMT Message-Id: <202402130825.41D8PVb4095165@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: c8e7649b9909 - main - veriexec(8): 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c8e7649b9909edc41bdff6c9f0b720d9e116dcc0 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=c8e7649b9909edc41bdff6c9f0b720d9e116dcc0 commit c8e7649b9909edc41bdff6c9f0b720d9e116dcc0 Author: Jui-Hsuan Chang AuthorDate: 2024-01-09 16:36:18 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:11:30 +0000 veriexec(8): Fix typo Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1018 --- sbin/veriexec/veriexec.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/veriexec/veriexec.8 b/sbin/veriexec/veriexec.8 index 734b1cda40f6..2e476f327b14 100644 --- a/sbin/veriexec/veriexec.8 +++ b/sbin/veriexec/veriexec.8 @@ -171,6 +171,6 @@ modules. .Sh HISTORY The Verified Exec system first appeared in .Nx . -This utility derrives from the one found in Junos. +This utility derives from the one found in Junos. The key difference is the requirement that manifest files be digitally signed. From nobody Tue Feb 13 08:25: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 4TYvXY2GMLz59jKw; Tue, 13 Feb 2024 08:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvXY1P9jz4mvd; Tue, 13 Feb 2024 08:25:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xH55T3xnPQNzFFD4JRxPGDy3c56Y98JT3FPan7kLMy4=; b=UGC0n3fQDcAORpiZvJEwrwS7W6TnpRXxR3+6L5fERfWpS/dhf+4FlEB2ioTT04R2jM4meM w4rEu8NNqaeYSqWdyX2XBHYdr4U5iCjr2SBZfD0T9BNx7Rq8k3+6vZaIu4ewZFXBlzsgaE AGN24xn3D+uZG7j2mIzjnQGk93gXFMhDw8FFPk8UkYJD0xbBL/yXo+4n9iUQESvfyMX/Z3 biP/+cZHGKxt+kc2VMsPsTY9oWH5x8GnrQze5TfkP7s5nuuzA9puob/cuIVz0R7EzpBZAA X03hLe4aySgJuePsIPXVG0TE3SKyXUBAlCx21fAn2CWtijbL+OsTYFg7j9idtA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707812733; a=rsa-sha256; cv=none; b=PLXH6WjRYMacWiF6+sMEBMMNMi8kyyM5U2908+1AV468ohA7DJ7R3hupl87JtJsUVvsr/V 6/Fuk/GU21Y9kSRAhshobIWLlSfMQVhxOtqGM1ttET33aQuE8LwfBDvsubmIL3/uw8vIgs lD3iKCofymktk/7/7uKNPpYHPNPYshmqK+a9K5IGAu3Qyty5sXJLTzgs9Xsyl3IFQAof7k JMQqnvldJgwMvahZ7gOc0CXUOPAQwC5cYvyiyv5YlWzV0rOnG3dVZN+E2SsM/VswzUlCRz 2R0yHfH6EntgZQCtDwzQDf+djO+gpsfKdMw1kn/rKT7PxEFjYPJGZbZQoWgcbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707812733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xH55T3xnPQNzFFD4JRxPGDy3c56Y98JT3FPan7kLMy4=; b=QiA44jXsA+deOxt6ZXMeMvAXtBXW3C2kVskLaY/vzu6OyrI+WbGPyPad48/paUp0e2pr9T 80yWcLIGYiPvt0v2XhrZhcrDdD/HhkLWT4PeZSUHXmR11GNxnBo7vzpqYTEQjZirJUniUl z2Sfmo6IC4Mq6yfvv+OBkEfqDY8HJN4c79Axi31QKfu3eKHaW3dgDqO+xKTqleBB9KZKSv G9TkVNpEqr/bxv4A0ZwN3IRsFHtRs6wi+W+OeIFU8wcRHipq0skuo6ElawybMsQ+IfhjHW je4J3zHDkbjuAw8T+QlSfUtPTFPk5J0ZB8zw2QrNwbEifp0T0Rf5WItGpUdVXA== 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 4TYvXY0TzPz173w; Tue, 13 Feb 2024 08:25:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8PWfp095220; Tue, 13 Feb 2024 08:25:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8PWS6095217; Tue, 13 Feb 2024 08:25:32 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:25:32 GMT Message-Id: <202402130825.41D8PWS6095217@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: b287f26c3fc3 - main - setkey(8): Grammar fix: a FQDN -> an FQDN 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b287f26c3fc3d701ef17fa00cceac6272d353816 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=b287f26c3fc3d701ef17fa00cceac6272d353816 commit b287f26c3fc3d701ef17fa00cceac6272d353816 Author: Yi-Chen Li AuthorDate: 2024-01-11 06:31:13 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:12:39 +0000 setkey(8): Grammar fix: a FQDN -> an FQDN Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1024 --- sbin/setkey/setkey.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/setkey/setkey.8 b/sbin/setkey/setkey.8 index 8eece16030e5..88b4dc6fc91f 100644 --- a/sbin/setkey/setkey.8 +++ b/sbin/setkey/setkey.8 @@ -230,7 +230,7 @@ IPv4/v6 address. The .Nm utility -can resolve a FQDN into numeric addresses. +can resolve an FQDN into numeric addresses. If the FQDN resolves into multiple addresses, .Nm will install multiple SAD/SPD entries into the kernel From nobody Tue Feb 13 08:43: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 4TYvxk2wpQz59lMv; Tue, 13 Feb 2024 08:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvxk2GKWz4qYj; Tue, 13 Feb 2024 08:43:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vV5t9bm2j65ya5/jldTuC6Mdog3FryyearYcioDqzHk=; b=LBYzVV3VDJh/4wp2nZz15b6hQYrx9I5N9s2rUNzSjFxgOajsTBWiFsk5wsorIqavC3BvaE BYYHy0NLGSM2/ZgWpIYZum6lAJaF+YR8YVEcmC5YONeYqLsRWL3KDucOiqOWgLDk2W6hzS 924EFO1h2q4D6SYAZVkctRGaH7hMci/3NQJX3aDH1vexAJIrlatrUhGIHWRrJN7ieQxaHz jW+Yqi5OwoEJWulq+VFc1gynj5b1ei/a/uY0pZ8K6h7zaqxu90F0Ew0fLsRvXDVCp3R7Wy U8Okguc/o5T+Az93fTiu3sQTJr+0sJSG2R7p6KsuOdh+fLPa3CPn2+86CZV5Ww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707813834; a=rsa-sha256; cv=none; b=OnyXhKvTC+yCx6H1ATtUVMJlIF62YMS/Qf2kkS8nWE1UFe91VRqkLc4DXSCNMvTD3+SvGO 7T9HFJ+CQSKhMRMWvTHIWWk7rAPPzt88C6fTcxCUjf3H7NH6JlGfo8GLRGYscKHIM9fRmn QvAouR1FY2Cu06uKgd2Swthbd6HF2aEJFW+yMfvA7pL4B6RBcMF1MqmY4PGQNNrRnr5czm 4oKw7kwVu9/1lOUSQ0uadBiLO2gPXs+6oHnNMe784eeU039qBoRZrKbbWU/yKL51tCB19n ScTgkV7a8mXQkus5PkvQ4Q7+C1l5t0xEjMJCVbAoj7QJEfUq/TNdRVmQDSqHwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vV5t9bm2j65ya5/jldTuC6Mdog3FryyearYcioDqzHk=; b=oIl7+syyAaBmMbDUVcDOAeWCgbAsqqKttAAOEmt0PpByjlXzdfZFPZETWO0zEwNbD+h+zG cFbeo2AHYekN2D0nxtx9L8UWlycJ/srlUAy0gTDt6f91s5HIgyy3Zvz0XCR7e7bN2V6QHk KBUELAoxc5gRXYvSzTr2Lo8/8qJqpWsTIkQD5cM/8jbYKR79YKd7oozzCeQU9O+uWcy0kD HEiEQqJX25FkLy+0wTlZp8HG6Ye6RqqqT3Dyp482uyw+NoOIVDLGvOLb+kYpaWGT2R3++q S/6h2j6vG1ErWS5ExMbD1K4uqGSoafkYJKv7x0UYLOIBFq9VSns7xGHNb1if6w== 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 4TYvxk1KdJz17FN; Tue, 13 Feb 2024 08:43:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8hsoa028659; Tue, 13 Feb 2024 08:43:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8hsqD028656; Tue, 13 Feb 2024 08:43:54 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:43:54 GMT Message-Id: <202402130843.41D8hsqD028656@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 31f6889564a4 - main - rcorder(8): Fix grammar 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 31f6889564a45a6793d0e26f3da3d3009648dd39 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=31f6889564a45a6793d0e26f3da3d3009648dd39 commit 31f6889564a45a6793d0e26f3da3d3009648dd39 Author: Yi-Chen Li AuthorDate: 2024-01-12 05:27:08 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:36:05 +0000 rcorder(8): Fix grammar Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1029 --- sbin/rcorder/rcorder.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/rcorder/rcorder.8 b/sbin/rcorder/rcorder.8 index 5481f821e853..cc94ca6992d5 100644 --- a/sbin/rcorder/rcorder.8 +++ b/sbin/rcorder/rcorder.8 @@ -224,7 +224,7 @@ If a file has an item in or in .Ql BEFORE that could not be provided, -this missing provider and the requirement will be drawn bold red as well. +this missing provider and the requirement will be drawn in bold red as well. .Sh SEE ALSO .Xr acpiconf 8 , .Xr rc 8 , From nobody Tue Feb 13 08:43: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 4TYvxl3slJz59lKh; Tue, 13 Feb 2024 08:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvxl3Hs3z4qdw; Tue, 13 Feb 2024 08:43:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DEA91J7+k76sYA8Tkgs2ctv0GHrO86GtCG4nmMb02z8=; b=BNt9UVenT1nKLtB5Pt/9YEiH/z/11aRAbtEkcnYMJ1S7x5shaMM8RRRJcz/8Pb46GAdS6z CBoo0kOE05Zk4RmHlWuIdkfA3u7fLQc95/83BElQyB8+2Fyc5cTwvmjF+MJNFgHDk77Lt1 /Xrp8piAn7NUcerhvWXlCXMSft6tZDhcdsgyT8jNVroTVnipdluibDgbUk9vBiqBxCKOMj DooD/YyN3/Me8Udnwlwz37Jrh7VOECsFLat6FG3t45c5ZMaFCsJaPvtqmRDObx6LNyQr9i kx1Nzw0+NjjRHOXea8DJ7QexqlSvMyZVF2owvmYXuj9TnOgM1sjgu7e3LYWZ4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707813835; a=rsa-sha256; cv=none; b=HjYlcjQyElnG9MP/YG9ASXTK1Xa9wy9i642g9Uz3ob+zsoCK5jR9ygh7Ep0KVt7kHArOAC T+A8t8qakqQTS3JpCsMSLP7l6ZCEyH64qQKoKu6O4DWYF6uJCCY5OOgYGMQm4D2HwodyVu lUXGgdiC9GEOGvkvDzbnaZGkkWDnoIQh1mV1QDBJH/pUWVSS4PMbtvXlsY/sehxIZgK8FM H0UKErCmcygU/7OVbQ9stFW/uPrMFKKVuGfgRAsBbwu5s9WB6+4U3S/gLwl+AFvrR11ab0 SGITCNBIW4i9v7Ol6hqMt4SvEiY/asXTOe7UNZDd1IG4YiGS0n+1k4CyM4Qe2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DEA91J7+k76sYA8Tkgs2ctv0GHrO86GtCG4nmMb02z8=; b=SnPM8lEKhNdpWN2Y1sIORRfPpLP+2rHKOkvYZOTspw4jbYqFPeQ4w4trieyHvVRglTTS1Z /DvZC3Xcj3j0hUd5hWYWGZu6jXkvE60yLwl7X7neqzTbp1ysyNIoXzgLV8w/9EiNtipwwO zcmYSthWIQhYBxtYpbsICrkSXeUCkzZJTXDp/OQybFOJGOdhX45mlYbAuABS4HdZwhIN6K 1Dt2EIEfhE054NscDLHOd9cGvTuqbwFRpnwzujj/UloGSNeiU3OC+QhsN+eNbr8u/TSv6m 2E0tcKZaE0n7q+dtR3ElBDqoikuVQ9P74quLHDsKQ1X3lYkAmCJIZLnjOQ9OOA== 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 4TYvxl2NRfz17HN; Tue, 13 Feb 2024 08:43:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8htFd028715; Tue, 13 Feb 2024 08:43:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8htXx028712; Tue, 13 Feb 2024 08:43:55 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:43:55 GMT Message-Id: <202402130843.41D8htXx028712@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 9977fb8042a4 - main - camcontrol(8): Fix grammar: a ATA -> an ATA 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9977fb8042a4b2f2b3386684e137dfb42bf1707f Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=9977fb8042a4b2f2b3386684e137dfb42bf1707f commit 9977fb8042a4b2f2b3386684e137dfb42bf1707f Author: Yi-Chen Li AuthorDate: 2024-01-12 06:37:41 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:37:21 +0000 camcontrol(8): Fix grammar: a ATA -> an ATA Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1030 --- sbin/camcontrol/camcontrol.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/camcontrol/camcontrol.8 b/sbin/camcontrol/camcontrol.8 index ae6d896752fc..bb206bf6ad85 100644 --- a/sbin/camcontrol/camcontrol.8 +++ b/sbin/camcontrol/camcontrol.8 @@ -524,7 +524,7 @@ This is to aid in script writing. Print out transfer rate information. .El .It Ic identify -Send a ATA identify command (0xec) to a device. +Send an ATA identify command (0xec) to a device. .It Ic reportluns Send the SCSI REPORT LUNS (0xA0) command to the given device. By default, From nobody Tue Feb 13 08:43: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 4TYvxm75Srz59lKl; Tue, 13 Feb 2024 08:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvxm4HY6z4qh4; Tue, 13 Feb 2024 08:43:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OUXAtEydzoAs8qeHTwAOJNjeE8VP3appcBe9VxryuN0=; b=ja/O0W2OCPYY9SriKVGyt9KYpYnT4/Ypkg2LD8CArtUU8oTdmoz6aBTm7Yf7GVulHeWe3X eCBl0tqaZW1neEpLQwupxy/STNu5golGOhDorekUmNYjhW3CK/IIszZa/pZI3lh18FH+m9 jKEO9j09aNimTikZGDdliaCh6NMshX37O+rGAjXir1qEz0KS5pFrf4/hQ8KP+wxljvQMDZ mvIP3ZrLey2hrfDRbgdTKPoYFB5kaO075RWBTiMiX/YNpWCJe32ov39TKJT2daS1bUMnhg n88/slRRLAg/znVj37p3QyYyiUyrfAgtYY74dRDtYs/gwpmS1rh/9J0l08e5uQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707813836; a=rsa-sha256; cv=none; b=sXzVdVkTZSZ0/sBc3LUGeqjuSdSYv5sBUAXolmTlGdwtO5iL0VzwHJI3/KClTy79U423zL LD1VltfraGzT8HPz/yXxibBCp7ECLYIbTsgffdV/kUjBUu01p0RxTZZLg7ZpccqKp9kUPC 8Pb4eumU/p74TDGupRugQl8BQ/QLXNX8TCcE7mID0LLn2Db78iEnC/YVdKrK/jsBiEmFl9 EZs82WHa/rIPw5OUnElFReCiop/w3hvqteCq9Ey7kQ6gZ/Vm7vdPQtxs5QjmzIpEy1Qs6t tYn0ImgP4tBM25X3Jr/o5Kcdecy10mrPK3E3CKCdcSAr8Zx1TSK1Ee4wr2UQOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OUXAtEydzoAs8qeHTwAOJNjeE8VP3appcBe9VxryuN0=; b=uavxlchfBHsu+vqjcQcYyoBw/a2B3g9s4Q8lY7ktt1oSeut5wFEm7bLqmsxLbC6u2zqnkF s0PKum86PsUA/YGl97UitvoQAdaRJ1DCk0oQBTDg9H9tly+LQPd3UgDhp9D94NDTswHBM0 zNtUS63rGGRbi6xz+Yzd9XcdsBuztS68m1fnF4uZH/qChklgboDbor7H4FjGl+5lezwNBR i3184PMz2p0W6bKS3+kSfB+l8ksHkqgCTmwN11KR6cnLE+Hh0bVgC998uljaDya+PS4GMI P323o2Tlh3QnbHevuhj+DX7OjRNuSdWPqjplaJ3e3LRHO63UBdZItZlpICDu5A== 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 4TYvxm3NHDz17Kh; Tue, 13 Feb 2024 08:43:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8hu7G028756; Tue, 13 Feb 2024 08:43:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8hu5g028753; Tue, 13 Feb 2024 08:43:56 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:43:56 GMT Message-Id: <202402130843.41D8hu5g028753@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: c407d351df08 - main - ccdconfig(8): Minor grammar fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c407d351df08a226f81f5de4406f7371aa6ed270 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=c407d351df08a226f81f5de4406f7371aa6ed270 commit c407d351df08a226f81f5de4406f7371aa6ed270 Author: Yi-Chen Li AuthorDate: 2024-01-12 06:49:14 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:38:57 +0000 ccdconfig(8): Minor grammar fix Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1031 --- sbin/ccdconfig/ccdconfig.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ccdconfig/ccdconfig.8 b/sbin/ccdconfig/ccdconfig.8 index 4014a36b0771..ec9bbd6d0ff4 100644 --- a/sbin/ccdconfig/ccdconfig.8 +++ b/sbin/ccdconfig/ccdconfig.8 @@ -145,7 +145,7 @@ are exactly the same as you might place in the configuration file. The first example creates a 4-disk stripe out of four scsi disk partitions. -The stripe uses a 64 sector interleave. +The stripe uses a 64-sector interleave. The second example is an example of a complex stripe/mirror combination. It reads as a two disk stripe of da4 and da5 which is mirrored to a two disk stripe of da6 and da7. From nobody Tue Feb 13 08:43: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 4TYvxp0QnSz59lQM; Tue, 13 Feb 2024 08:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvxn5F4zz4qwj; Tue, 13 Feb 2024 08:43:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YQ+CM8jVd2xonVYGx5HLu9aVJFEtkZcvBXMN7U8DxHg=; b=Jx4bV4eCnqoDmyuGU3+Al7At3QSY5KZNiQIqOuesqXXLYfnRsb9nRr7vGH9xvXBpC6fxe5 G1ut12TIepSJfNw7ahcaf7LdvhelzF2L4imP7co5hz/lh8Lcu1Bi09eHlCfOwisOdpfKDT VtZZJjPPc1rd+dgxPnBapUZj9fASpgJGQkWhUZP4718C0cvLobRTEAE+2NP3VlIsTQS0As PdFvJ/ESTZlH0NeWVyIncevutk+Jj2UEVjrouHq0OeCXo0bvwQhh9/IP6jd9QV5qg04xyw qt3xu/H1eXYPxcIR+CllDq8eR4ZZPRjDlk67Hum+2wn5j2WKNiyy9nIKpvIdgg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707813837; a=rsa-sha256; cv=none; b=MZHSwFwhL2oDHe2UUh32kU55lP9LVGXkk56tpSdEAdxgNHyYgjcAyWT2R7yUH1yr38wKAg sV5zBSz5zi9/17PJ/AK8vsGMKYNlIB76wJ5AAaqSrcbj+f4QaO1h6MNPbQcs+9vyxEDjGE IL2NMJRUGbdpMMl3VYa63QcolJhtH8eJF+V53xtc9XKYCxI4WDRo0+BG14Z9AqVIZb6My9 lHwLvJY430IHcu1ibl07h1VnQbJPv1n4pHSuCuYIjZJgx2xpqBFdoWUKtccTwgEAxzPbfz pJ66Y0RpKlvw8uQAM4g5n3Jl/EKQB6akCcEDfOmKnT9NExc52d1RvmYJp4KClA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YQ+CM8jVd2xonVYGx5HLu9aVJFEtkZcvBXMN7U8DxHg=; b=cDUNIsVARGE03yIXF+7LLJb9kKP7xidW+iPQFYb5WZyWPC/WZdSY4g5e5slRLYqOxtaz0I YM1RJajHpK0goFI/UilaCr61pcHbRbTZy7qAW+GPuFl7rhA+pnx8fKu1/K166xynV8qFBY hFgy/7+VhsKw5ZOl1EbhS2nniTr63yDewL38/HOMP1zrYRIa3pmluvLlTCsgUXYEhr0Khl AtYMe7Rtr//58w2msWs+gHACQUsjqvJVzcGnZh51AyGJWg7tiSaaWlabRa24b8HcEkPN8F vce1V9O0thwDfrW8R+BcpDSzmcRLQb72DvXzh5Wtih+bCSOUHohxKHZ4vKi+Jg== 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 4TYvxn4MGnz16nr; Tue, 13 Feb 2024 08:43:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8hvGS028799; Tue, 13 Feb 2024 08:43:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8hvlL028796; Tue, 13 Feb 2024 08:43:57 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:43:57 GMT Message-Id: <202402130843.41D8hvlL028796@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: e8289f82c005 - main - comcontrol(8): Grammar fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e8289f82c00523a961692362a888d2262f8314d0 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=e8289f82c00523a961692362a888d2262f8314d0 commit e8289f82c00523a961692362a888d2262f8314d0 Author: Yi-Chen Li AuthorDate: 2024-01-12 07:10:53 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:40:09 +0000 comcontrol(8): Grammar fix Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1032 --- sbin/comcontrol/comcontrol.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/comcontrol/comcontrol.8 b/sbin/comcontrol/comcontrol.8 index 46c7f987d774..c5fdb52992dc 100644 --- a/sbin/comcontrol/comcontrol.8 +++ b/sbin/comcontrol/comcontrol.8 @@ -35,7 +35,7 @@ to the given number. The units are seconds. The default is 5 minutes, 0 means waiting forever. -This option needed mainly to specify upper limit of minutes +This option is needed mainly to specify an upper limit of minutes to prevent modem hanging. .El .Pp From nobody Tue Feb 13 08:43: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 4TYvxq1FXGz59lN5; Tue, 13 Feb 2024 08:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvxp5yyYz4r2F; Tue, 13 Feb 2024 08:43:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=69fm006F9tIRWwg6CY6oxMV1iiY8g/KWPyBMTvVpKdQ=; b=BSnDeHVyR31xaRXTlSx7ZBa1jTtl5OABRlgxUe2MiUywKHJSWFInucYMjYYI40WuY3NDh4 SkXdGdNpiFiEB82IiJxzFJc2t/MUULMDDEyt8MG1tR7q7VnB627lGif/aH2IxEkABt3t+1 kJs2RiDyNSwenXqqBJo9lcs37cj6qzcjB2SFQBPIN1hKs+VxLdLyn6EAfI/ltuzJ8/+pvT uyfGDxQ8vABHvI4QMFHDgn5hhz/6D6S43WTwWMuyv0qGwRrr+oGe12nfRaVxTxiwfOOEmG KAQL9R6arockZWxNJPuZVoCWikEVHHp+1B0pQn5YdFEk6GM2Zm//nkLcRLimWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707813838; a=rsa-sha256; cv=none; b=t7OgbpEa/8+UHqANWaNEL8IkkX2tqO6HmIngD15dLjKHkdH3DFnU5+lyX7quSFZzuAP6Pd 6T0cLGp56jSd9GEQUV5138SDSbmTo5Fay0MOH8IThppqdOSsZ/msYTR0qq4Rvi3jp9oFRw R5ancfi9irXer6eYUE0DExwt/4hFNUeNfRX5EmBiEHQbOBaM6abjwv4HIA0m3iyOtrrfCt D4Q++s+VJZYMAVo8ckaSN0sbHldKWRCakJh2Zm3XvqyxcRQ0iCqeIF7tgsDNqedEJMwKgc cu/798vv6zjk7hFX1XI9GROol06NQgs87dZrKcQFASDXnxsK8PdYBO2qJSj5lg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=69fm006F9tIRWwg6CY6oxMV1iiY8g/KWPyBMTvVpKdQ=; b=clF4BhmAVDlMsta8EkoMaq0x467PjmuiokfjSB/5XXt2cyvQctwrlMa/fCuEhyTREi0Sn8 KS1lmW4KDmKVLCPF1mJZOQojAnF+OI3DUl10qG7fMVGkm8yeXIgfPmmZtqUylp0/4v6U1R ONgQGTNzPnqwd9ZrgFj4IBdUbBDT7EGF4hB/SVHlTxBhDiAY18vc/Nb9y4Zv32L4QcwNHz gusXHyHrB4aLu4Lp+kJ4R91TVCMkfSO5fSO4x6AZyAOFmt3pS7iZV42rUwNJAkRPojzW++ 6D5HwZFRsZe71Bxld8UAyUzG/7ojjXDt+El85S8AGuRbUyFg2JMKHp/PHXjQ/A== 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 4TYvxp54PTz17HR; Tue, 13 Feb 2024 08:43:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8hwAj028836; Tue, 13 Feb 2024 08:43:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8hwEJ028833; Tue, 13 Feb 2024 08:43:58 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:43:58 GMT Message-Id: <202402130843.41D8hwEJ028833@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 7a71b350237e - main - devmatch(8): Grammar fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a71b350237e0b1804abc160b804a204dc409cf2 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=7a71b350237e0b1804abc160b804a204dc409cf2 commit 7a71b350237e0b1804abc160b804a204dc409cf2 Author: Yi-Chen Li AuthorDate: 2024-01-12 07:50:01 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:41:32 +0000 devmatch(8): Grammar fix Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1034 --- sbin/devmatch/devmatch.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/devmatch/devmatch.8 b/sbin/devmatch/devmatch.8 index f5e3a5154a32..71bd7365d645 100644 --- a/sbin/devmatch/devmatch.8 +++ b/sbin/devmatch/devmatch.8 @@ -97,7 +97,7 @@ The term PNP is overloaded in .Fx . It means, generically, the identifying data the bus provides about a device. -While this include old ISA PNP identifiers, it also includes the +While this includes old ISA PNP identifiers, it also includes the logical equivalent in USB, PCI, and others. .Pp Many drivers currently lack proper PNP table decorations and need to From nobody Tue Feb 13 08:43: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 4TYvxr1qNhz59lNH; Tue, 13 Feb 2024 08:44: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYvxq74ztz4qhm; Tue, 13 Feb 2024 08:43:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XgQQmtwTkgf/BHcru8ljjbqHChLIqPdF+kkGIVZNLRU=; b=TeiATIcHJgaHgAEXzJyS2ff2oXdyl/zdXCg8RWIeHN1AJL20GJWYqNOQHWeQiBYPj7Pt/H 7pbqRP+UjQWvx4bbTeNtegTTPLajU2X8y2n3AR1DAS+h3zWIY2p2HirIiDfN7AhPAtJ5mQ dKrXWQAUEf00FYALO2PTywSMSd2GUyB4cNq9cGl0/N3vrNAhQeiCu3T5nF9cACLZU9DrLZ g77GsCv558mXDzJxNTvykQLkUfXeqoEPZ6x7jVOVF0u1xcW0h7dFCW7TseopxkLnjHampq uGesRdUUDaNDspBv7I3uuq7W6QPDfaZhSwe4biM5Z0zyZmbTZEPLBs4F0H3W3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707813840; a=rsa-sha256; cv=none; b=U220PuNn3VcRSGBxCg/c1ZwUAdZw0C5DQXMhtKnrAac8VF7tht+YKgGWUmpwiJ0s1yp5us Sma6wNWuQKUgKnZaOQmSk0mVEFMY4V773NO53RpxlIaj2Zx8m9EaMrxRPjHQdMp2k4Hqk1 Jb56+SaAzYCXjlVa+PYrv7Vmu5k8aLj65fMavHwYtairl1ZfoRjxUT7h3MfUfsycm+O/k1 OV8qACBV3kNzNoqx1oe7xKP6/phGheycWGHkNqoB7Hz4FZLyWnVa/+uqbtNVj9xVYfBID6 iOQwA87SirjPxEjz+yirj5YaDwkMIirMD8TY0URR0MOAdt+xIuVy4jET3/oLgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707813840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XgQQmtwTkgf/BHcru8ljjbqHChLIqPdF+kkGIVZNLRU=; b=godgkhMJtfTjdVlwSAzZxjMGPDN75t3DQTJzlpTMx1QeA17UiKtNojwEYbjXCdHjnxy8I1 0Jbe4MJ0S5Xj363YPwKGnttJaUMxEWheYn1J8M4oC1s+vmemDeYbziXdn/cPjxWD7La2bC Sy2abLrjaGOG2Z6sOqoJRZP5oRfJGUzt8QunmBtpHxPZlghEeIMT2JwCY/K3Vm+QP1PV/d 9VPmpuFDNqOdbAKoofemiN6UuNCl1jumFqa+xHJY5ZR/fufQ3ulmqeNHgT1aEnD2IodIRC EZsoQXcj8icor7ztaqQvFwSDM69tqEAd9Q/sS5ezMLPEbxnD9zLvz8Kl3UwkVw== 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 4TYvxq682hz16r0; Tue, 13 Feb 2024 08:43:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D8hxwL028884; Tue, 13 Feb 2024 08:43:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D8hx6j028881; Tue, 13 Feb 2024 08:43:59 GMT (envelope-from git) Date: Tue, 13 Feb 2024 08:43:59 GMT Message-Id: <202402130843.41D8hx6j028881@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: d3905a3b07b8 - main - dmesg(8): Fix typo timetamps -> timestamps 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d3905a3b07b8f784f9c1e8022d0e99ae3832c93e Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=d3905a3b07b8f784f9c1e8022d0e99ae3832c93e commit d3905a3b07b8f784f9c1e8022d0e99ae3832c93e Author: Yi-Chen Li AuthorDate: 2024-01-12 07:56:41 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:42:49 +0000 dmesg(8): Fix typo timetamps -> timestamps Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1036 --- sbin/dmesg/dmesg.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dmesg/dmesg.8 b/sbin/dmesg/dmesg.8 index 2ef3be8b6610..0dca0ff5da89 100644 --- a/sbin/dmesg/dmesg.8 +++ b/sbin/dmesg/dmesg.8 @@ -74,7 +74,7 @@ variables control how the kernel timestamps entries in the message buffer: The default value is shown next to each variable. .Bl -tag -width indent .It kern.msgbuf_show_timestamp : No 0 -If set to 0, no timetamps are added. +If set to 0, no timestamps are added. If set to 1, then a 1-second granularity timestamp will be added to most lines in the message buffer. If set to 2, then a microsecond granularity timestamp will be added. From nobody Tue Feb 13 09:07: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 4TYwSd3JrVz59nXK; Tue, 13 Feb 2024 09:07: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYwSd2pSmz4vj2; Tue, 13 Feb 2024 09:07:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BKeDGGYP6+bfRQFbkjgTybJCIIOewsKMGc1lPNJhAZc=; b=U9Cj3J617cAab//LSPJyoqxCcArbS6eiM0cFaXCqCKKV7T5eEQM96BSNiqk4hz2RvRFDbk aCTyLmVXpH86fF3R9JtUFCGUD48keY/flmXKewlhStj/EbdAfcHEba42Ke1bLoSS7tX9or WF75Ujv7E1OpJvKDFpx+qdVvJKMz4FMdmsIISsJeBah1Mqj0c6qgx+CEwDlP9HgeNkCw6u VjnIvMDXK//1+DAzp4HTQ0wm/gQLPChjf89MfejT6G2WXlgDWWOyAzTrMU+uleM88YCoDx zJQf6Oj5dVqyEmPn9hmuTINUhCsvpzssXbf7RMcywoIThVDnDGouhq3bQwYLDw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707815233; a=rsa-sha256; cv=none; b=JwswiNenQLljtNfO3fc2sI2KEvgNqLKKU15loHhIcRXSq6yIaynBPj7JPefCBWE1bVFqDX S+f6K/9T4ZxvYgTB4m2+p4EcfqlT1udmGkaprGC+EA6fa3gIPtJBi24A4cALUmSBdbZvIT TZpXrcGVs9k+Ta10DZaQvAHVnbtNGSYhXKAqg5QGQaefjfK6MifkG7gqN0cR+zZWPrJ8/v zVDDHleVtnf42A30kX2AQJERJMJfMUsvobHSU3+RMByxVO4FUKX6xmCnJc9GP0hFGBT/1S ZI/LikS3D3vXG3iPqQPFyY31qtkggVSpCAEf10m8rdJ84vWBgJPS5eNzIWtj+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BKeDGGYP6+bfRQFbkjgTybJCIIOewsKMGc1lPNJhAZc=; b=a/kdd9zrFnS+2XvPijZBD9mBoLgdYxOgi7v8sTylX2URELAW2u0xCIvJLX3/0XSs+BcppQ 6LBJNjVw9V+8pzVpNhBgzCQWlQYW1wngfN/T8RE8sS2neY9CmxRJWT4LgyvmSx+4wgU7g9 V4U7WH9+8PawXewrrfRBd4m2QtViHgFoiueKRWAPbUWoi7bPJ4mCw1+SrSwM6gR/gw19Ws UKFFX+d1W8WBhyEdfe1LIkFaESw9bXLAvwedZYllarIBrzscFNFM/n6mTdVw3OxOSmNzyT hzbI2nTRjqEPlMkmE2RHdG5dATcmNYGKMZoUPZ2ezBEjMdgPYl/Ib6xLvDYOUA== 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 4TYwSd1rrdz17xn; Tue, 13 Feb 2024 09:07:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D97Dnm063219; Tue, 13 Feb 2024 09:07:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D97DGn063214; Tue, 13 Feb 2024 09:07:13 GMT (envelope-from git) Date: Tue, 13 Feb 2024 09:07:13 GMT Message-Id: <202402130907.41D97DGn063214@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: f446c9482cbc - main - libbe(3): Fix typo and grammar 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f446c9482cbcd1235ed05597e7c8a0bb320d71fe Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=f446c9482cbcd1235ed05597e7c8a0bb320d71fe commit f446c9482cbcd1235ed05597e7c8a0bb320d71fe Author: Cheng-Yuan Wu AuthorDate: 2024-01-12 09:11:30 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:52:35 +0000 libbe(3): Fix typo and grammar Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1039 --- lib/libbe/libbe.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libbe/libbe.3 b/lib/libbe/libbe.3 index de2c29c65268..0ba5d484bdfc 100644 --- a/lib/libbe/libbe.3 +++ b/lib/libbe/libbe.3 @@ -147,8 +147,8 @@ .Sh DESCRIPTION .Nm interfaces with libzfs to provide a set of functions for various operations -regarding ZFS boot environments including "deep" boot environments in which -a boot environments has child datasets. +regarding ZFS boot environments, including "deep" boot environments in which +a boot environment has child datasets. .Pp A context structure is passed to each function, allowing for a small amount of state to be retained, such as errors from previous operations. From nobody Tue Feb 13 09:07: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 4TYwSf4GVyz59n2t; Tue, 13 Feb 2024 09:07: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYwSf3QV4z4vLs; Tue, 13 Feb 2024 09:07:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qL0AMKM8qM4fOPc3ec7V1QTlKsXEJ7qMKY/rgJv8puY=; b=YbWtRkkzu0NwXQ47E0tLeorJOxwI1R75yD8UWEeK8/wTw3MZnI+CFyVyRHYiAa18SICzHi C+woV3U5jCbXC3AS6VPwBUErjxtdvuMCEzFEzfLPuMZ7bKIlSOhC0T8D4LzLLL1QuX73gZ gQxkdfgGbeSnTIIoIQceYZbxBUL5QY2O6SIN5bfIOYWylWuy1wlYTH87Jc9Op9elNuv4ZL GUb2oucuGX2kPBG5L0qD1FLW10taoUBKOC+eTcnC1pN/G1g/payKqNAVqYTIw75kPQ0i7x 7zmJ7CtPu0Qm2kSGoCAokBBjlrLggSqLv4mYjtM52vPvBL/wgVrpZvKrzgd+pg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707815234; a=rsa-sha256; cv=none; b=KIK+n7KY8Y5U2nH25Flc3vz9TxW2Lvehkr+msm1ezX4yUwiQrYU0R/LZzEJ8P8afQ5wXSN YP1DwdT4gIYBRBI6OksFjlA/M8B+am2TKLnHot2Lnr0sDYWdMxid/Wn+X5jgYLyvc76XeX rhm+irp2EFTAMvbfP578fKX6JaGnbhCoFapykxlya0FE181ZbKM0w/VyuvKo6q1+ugxQZq /CUTePvGQ7sDIWhORS/beMav7mWMk1uqyHZMOQP7/DmaKaYtW6cAyrnsuoPg0oOUu+SbaH tqFRYyJngtzzx3bygg1zO2oKqwTOjg190XaIPUkwBi8Swh4oFSPWadIc3xqFPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qL0AMKM8qM4fOPc3ec7V1QTlKsXEJ7qMKY/rgJv8puY=; b=SuvKEyhgVz/3sI7I0rD3VFa7mXHHDCE2+Yll9PYleez2mRBF+2IOWmGMFQ/5WrGz+9++wi fzujOOku0G1pNo8Y9FgBFePAds0SjORjt+mKPkocKlrD0yP0vRCYHagJnT0XY50ezn4bMZ naSyfxGqbuaqj3jCDHPxWaShmWeKV+fYfYkAt2PpZIC4yw+qVhVg+5VZeTGsm34mEILFyC VoNh4sYpa12r5iLRla9k3zxY0O6Kk0NujuFCJru/RltWI0P11SM2V+gyWPgZivhsb9+ebT eWPt/nhemUO+spfexo93uGNeauB2B7zM6xcTAcdn5dqMmhvHiysVz0YFp5/ADg== 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 4TYwSf2WGwz17xp; Tue, 13 Feb 2024 09:07:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D97EPO063264; Tue, 13 Feb 2024 09:07:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D97EVh063261; Tue, 13 Feb 2024 09:07:14 GMT (envelope-from git) Date: Tue, 13 Feb 2024 09:07:14 GMT Message-Id: <202402130907.41D97EVh063261@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 38b7eebc4a52 - main - libbsdstat: Fix typo in bsdstat.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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 38b7eebc4a523983ae9146cc88dc55ba9ade0abc Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=38b7eebc4a523983ae9146cc88dc55ba9ade0abc commit 38b7eebc4a523983ae9146cc88dc55ba9ade0abc Author: Cheng-Yuan Wu AuthorDate: 2024-01-12 08:51:17 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:53:35 +0000 libbsdstat: Fix typo in bsdstat.h Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1040 --- lib/libbsdstat/bsdstat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libbsdstat/bsdstat.h b/lib/libbsdstat/bsdstat.h index 9dd9eb2cd00b..1b0d1f24e93f 100644 --- a/lib/libbsdstat/bsdstat.h +++ b/lib/libbsdstat/bsdstat.h @@ -36,7 +36,7 @@ */ /* - * Statistic definition/description. The are defined + * Statistic definition/description. These are defined * for stats that correspond 1-1 w/ a collected stat * and for stats that are calculated indirectly. */ From nobody Tue Feb 13 09:07: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 4TYwSh2CjGz59nXQ; Tue, 13 Feb 2024 09:07: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYwSg4Xtjz4vP1; Tue, 13 Feb 2024 09:07:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rtSkzejyQL3wdd78xUPnKrrZKG5UFJtHXiHoijqJAJk=; b=g9EXsorOBkK8TXnHqyB6amSOtza/ivuLpsSSEz1PYFfu0c5NBH7AT7kGt5pcFXVb/l8/Q5 HxXozv27zSoEhGi+Dw+60GUkHnZal20YMorYi9IxM/AAMvaAzIxz3YOioxISBgG9cz/aSm vMrzW2WjhUNLFQrIrXx6ARyXeimvOhNGigZXiplj4pZQQqRuEyfOR2Q707kfSzJzJ9I4Dl eR97Mg3QNOdd0iA+J2yMPqIc2ZRhyLlb4fd2n2beDldocD279rsngMvE0dxNJbzQ0e2jBL K4oZb8ggA51T17RfF6k3tuCq2GcRN1XXDE0G1OoGD/UEK6RRYBpeSsGCIhSWUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707815235; a=rsa-sha256; cv=none; b=UqL9TkzVh0Eb5ekLHtkBJIEs5QsYETiY85mWFb2ZOCkjMD3EFiQc8W8fUfzo+o33KROBhC SfGAAREaSLRSAO8Ft6ixd9zJ+EM5Fn45h72R/DJhG9xBiqo4WOdJ+gVBRjXsu3iA6/qllM Gelax1qE6vjkEprZ7PUhM9tljyFMRESB6qr9Sg6cVHNg7i4n/cDl2kfWlrDCD0pLXRXqNM ChNTRQRaO2DGedjCT4S0lJ2RiX0lpcyuw/WyODKgmlkNVuF/cFAR/Uro2Qd/isQjO1i8a0 d7wM3nSQ6WxLkedmXlTKKjncuhXy5i6dB4csbHIUOK+//HmigZIoTky4tWmN7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rtSkzejyQL3wdd78xUPnKrrZKG5UFJtHXiHoijqJAJk=; b=gxEC3pQIJHZGOJ8nVAivICrDlJFCYeHyC+cXj4bgIECUDG4LD0MVdaciKdKxb439YxXY9l rdnsQg20ZY+cPQAliM7fvOhdU33BF1Soo13adDayuyvHe1N8Rd7TOuYo14yO+fHNo4y28E OtNQ3uQUanr9nfwrgC3v0JwTRVZFoVdUZhL/lYU9AzotAqRtXamdbuRZ7PafsB9044Vv7g gzSJRDmGeLS+x9AWmEKjXXA3vZRYmJA/Z3G3m19hRV/NL9oteKw69THlEyIMt125Rcn9Tf IxXZPVBMQUuUj6qj6KBV9wi5BQWIwnVJFRfMl/l3efcs64NjQFs4r9WT2mCsgA== 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 4TYwSg3RFMz17xq; Tue, 13 Feb 2024 09:07:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D97FwP063306; Tue, 13 Feb 2024 09:07:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D97FTO063303; Tue, 13 Feb 2024 09:07:15 GMT (envelope-from git) Date: Tue, 13 Feb 2024 09:07:15 GMT Message-Id: <202402130907.41D97FTO063303@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 2a3a8eb9fac6 - main - libusb(3): Fix link 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2a3a8eb9fac66183e5af4852bbcb40824629f182 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=2a3a8eb9fac66183e5af4852bbcb40824629f182 commit 2a3a8eb9fac66183e5af4852bbcb40824629f182 Author: Ting-Hsuan Huang AuthorDate: 2024-01-12 11:55:00 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 08:55:54 +0000 libusb(3): Fix link in comment Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1042 --- lib/libusb/libusb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libusb/libusb.h b/lib/libusb/libusb.h index 022b5562a819..732fc9dca1e0 100644 --- a/lib/libusb/libusb.h +++ b/lib/libusb/libusb.h @@ -245,7 +245,7 @@ enum libusb_log_level { /* XXX */ /* libusb_set_debug should take parameters from libusb_log_level * above according to - * http://libusb.sourceforge.net/api-1.0/group__lib.html + * https://libusb.sourceforge.io/api-1.0/group__libusb__lib.html */ enum libusb_debug_level { LIBUSB_DEBUG_NO=0, From nobody Tue Feb 13 09: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 4TYwSj0r7Zz59nSv; Tue, 13 Feb 2024 09:07: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYwSh50bNz4vgB; Tue, 13 Feb 2024 09:07:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mnMiZsUiTMu1YNxglonsg0YXsyxHSoRG8ZYYCM/OQEA=; b=a9h26y3kEW+mZTBv8UeDidJLpnDFnb9hDYa0fBSOQVIGR5nj2z47eMv57jG2Jy/6pJLB4h oKQ7h8L7+aQ0w3cIq2GVlejMsV9V/0UccH8J8DafNAHEYXFOp8ifZT3IEduZdYdI77iKJL 28eqRUU9bOQLgzN2y+zHtEFeWASxQRe/IXOmrYpSFywpxIIoSxpzZLQHKaU1A11iQLY3aR KCaxfF8PdcdvVM9c/ycv8worUoRhrQrvP2oC9D9gk0URnhk2yc4CHjpYPaphLWH+8wOy9W f8ln6NBJLRKeRDGeMX7uSdgnDwZGRRtnUOyLvLVOIhjErtTsCA8VEJ+UoxoiSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707815236; a=rsa-sha256; cv=none; b=iFVi4wrDeEWvL3W7kxQgQt0xOKEMERMFMBMX72VNfUCjquRcjFQEgmQYm+iA0aFYnSEOb7 QPxw8yRbv7ZFO8KGG5aRO/7o8GNzmJMo5g5H2+1FJSkfMxK7FYyfpr/ezckXFEfQMKkvpT /26s/SIXBEHFR+Lwq1NUEyQV6UyRk9cfSzIGShjdFHvAH+u9ZWQt6pi+5zA36DbmcvD2mn qi7xGdykzRsZt8bKjufCO+pnDRUoQQLLVqQPuMTvJfywV7tT9jaVlYd2+v0sDHrt5ELKBs xmE21FT4lJCXK0lzSfJWVyhdOqbvm9ImRUjUKP5qMJ0m1Ffd3W84vHmTNnhDVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mnMiZsUiTMu1YNxglonsg0YXsyxHSoRG8ZYYCM/OQEA=; b=bxp1mSco85axtNfD4Q0yJHMrgDnR6S/Lng1RiaCVxWPX4YSVzoAE3HpHLmX0Bvkvz3/JnZ sNi1+p3CzVSyBm683mjSaux/lzJbh5pqktt6S4nyWTwL1jM5NXsmu8oKmTuZEX+itc6YPI 7jL1boyN040ERS2ZEy53MdfPZlD9Q0BsGACjs7DJ/dOHOuvTvtmlEsqtJJxhSeJN1NDOpH 7KuUXI4bQvxwnSwk1EyOArUtwlHZxPTXH37jhfMYZ7jBUN84AjDKGvfqWEJoomuNmwvK8S ZH8Lt+DZG0clFvNOqL65P0CVv9/oekGqXkdZy6xNqPq4CbUJrYCHnhaUt8XRAA== 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 4TYwSh45jWz183V; Tue, 13 Feb 2024 09:07:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D97GR1063342; Tue, 13 Feb 2024 09:07:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D97G8N063339; Tue, 13 Feb 2024 09:07:16 GMT (envelope-from git) Date: Tue, 13 Feb 2024 09:07:16 GMT Message-Id: <202402130907.41D97G8N063339@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 26c3d72eca93 - main - growfs(8): Fix spelling 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 26c3d72eca935191baa4c09563c18b075a4f07a6 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=26c3d72eca935191baa4c09563c18b075a4f07a6 commit 26c3d72eca935191baa4c09563c18b075a4f07a6 Author: HUANG,YU-JIA AuthorDate: 2024-01-13 13:46:28 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 09:03:40 +0000 growfs(8): Fix spelling Event: Advanced UNIX Programming Course (Fall’23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1055 --- sbin/growfs/growfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c index daa3931df300..9a48287107e7 100644 --- a/sbin/growfs/growfs.c +++ b/sbin/growfs/growfs.c @@ -232,7 +232,7 @@ growfs(int fsi, int fso, unsigned int Nflag) * * We probably should rather change the summary for the cylinder group * statistics here to the value of what would be in there, if the file - * system were created initially with the new size. Therefor we still + * system were created initially with the new size. Therefore we still * need to find an easy way of calculating that. * Possibly we can try to read the first superblock copy and apply the * "diffed" stats between the old and new superblock by still copying @@ -679,7 +679,7 @@ updjcg(int cylno, time_t modtime, int fsi, int fso, unsigned int Nflag) sblock.fs_frag); } else { /* - * Lets rejoin a possible partially growed + * Lets rejoin a possible partially grown * fragment. */ k = 0; @@ -705,7 +705,7 @@ updjcg(int cylno, time_t modtime, int fsi, int fso, unsigned int Nflag) j++; } /* - * Lets rejoin a possible partially growed fragment. + * Lets rejoin a possible partially grown fragment. */ k = 0; while (isset(cg_blksfree(&acg), i) && @@ -733,7 +733,7 @@ updjcg(int cylno, time_t modtime, int fsi, int fso, unsigned int Nflag) } /* - * Handle the last new block if there are stll some new fragments left. + * Handle the last new block if there are still some new fragments left. * Here we don't have to bother about the cluster summary or the even * the rotational layout table. */ From nobody Tue Feb 13 09:07: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 4TYwSj72n8z59nQg; Tue, 13 Feb 2024 09:07: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYwSj5h2Bz4vZl; Tue, 13 Feb 2024 09:07:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4GaUzB8zLeBklCGIu7LlKysIwvse48Gmk8f/v6iHI1w=; b=cIimW8K/kLNgTp51KVCAHO4FQMtbTOjQjbNvbqL/gZJom7emS8/FOZ6oPvT8Vqh7oAn1cD fAryoQr4aRX3hzmsQ3M1HUdJrmxUiXFM+RmaL8HpkKhGkB421rcIwHeuttZcbINLp14g8y LBnsGzY36BFoH2IXFN2ccKhOXP4A1zfRWPsZQj9NWkHakxRNLbN/Y1/yLgueUUOxM/X6p6 cmYiGp845ymSmnGn0HCCSe6qmum2qMAfbIKfyvtJxmvWNfCB3vSaXSX19rYMPX+S2ruZmM /8g0O/7gUPceo5gnbzVT/IGCEvd/8gdBve+l3RwcM5HzXMff9VKb7newb8J7IA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707815237; a=rsa-sha256; cv=none; b=QK41cLgMFScCA2L+TenyhYSqtkfUYby/6cjMJuJq7gfHT/pyvg/mFL4Z5E4NEUtyp9LlPg E4oZjoYB/9ORmUJlfDXxAqhmI3p57tbDPQteJYEKDzUrCNB5d5a4g7O1x/H3eVrWGGYANb 059/YB4OBNyvCV76u8Ib/yw1ZIr21ByauN18yPdIW/11Pj6tD50mqRmtwoBilWeqh8Q2Px CD13DoZ5a60imUgioXxyis6FXApG6wCgyvA2AwguTsPf8TtTZqX+fYpgYzt1ezFF07pVMD 3dNLn6qD5dKsfYLVLCVfE3dPA8U88uidn3j6RZM7cBHoVkxzImEj3+KLAkY3Wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707815237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4GaUzB8zLeBklCGIu7LlKysIwvse48Gmk8f/v6iHI1w=; b=cJv8mCCpWc2tohpTM6XCYddPz8G9WwsblNZfWEtkns63MNNj3tKeE9jqhdDIQiFVQ59mZt v4CVjQ5wQmjhqxFKFG4R71ysLoZiWLt00d9gU5b4p+03qICMLCVDhe3RYVpwvObg2paGdP hzOQjz/45SdNIL/DdatLORwm2myLKzD6sOGOUAsU83oqiofkamqYbKY2xuQcAjMhI91Q1a sNUyWokvbyRxp52wBiiCKXnGi1os1jXb/p05LKlZM4wNvpSb9x5vO2jS15cWxnRcAsF6Hj R9uBnaj+ZxvFL7R3p5Cn1MYghZZXVT1wUR6B6XxTxM+KfTRJueiVLii9pZ6uew== 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 4TYwSj4YDrz17v7; Tue, 13 Feb 2024 09:07:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D97HO1063378; Tue, 13 Feb 2024 09:07:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D97HUP063375; Tue, 13 Feb 2024 09:07:17 GMT (envelope-from git) Date: Tue, 13 Feb 2024 09:07:17 GMT Message-Id: <202402130907.41D97HUP063375@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: b00271ceea27 - main - growfs(8): Grammar fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b00271ceea273a229354820a893bcf727d0e6f18 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=b00271ceea273a229354820a893bcf727d0e6f18 commit b00271ceea273a229354820a893bcf727d0e6f18 Author: HUANG,YU-JIA AuthorDate: 2024-01-13 14:07:33 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 09:05:18 +0000 growfs(8): Grammar fix Event: Advanced UNIX Programming Course (Fall'23) at NTHU. Pull Request: https://github.com/freebsd/freebsd-src/pull/1056 --- sbin/growfs/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/growfs/debug.c b/sbin/growfs/debug.c index 456e67dbc5c2..bfff2acad2b5 100644 --- a/sbin/growfs/debug.c +++ b/sbin/growfs/debug.c @@ -57,7 +57,7 @@ static FILE *dbg_log = NULL; static unsigned int indent = 0; /* - * prototypes not done here, as they come with debug.h + * prototypes are not done here, as they come with debug.h */ /* From nobody Tue Feb 13 09:39: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 4TYxB365rTz59rd0; Tue, 13 Feb 2024 09:39: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYxB35c3Kz50X0; Tue, 13 Feb 2024 09:39:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707817179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zVevPtLENGvuBdToAGN0QRxGLSk8OP6oh4xNWtmNecs=; b=V+7SJoyn6zHBByY0b1P+1H3c0u+7VPKb0yCtCPOYzHG5pj7v/45yp9ayEw+wykGSpBM3VS qqT280eShmdKbClZxyKA5y/h/F438ck2weVoEEq8FETNCN7ArWMiW+IE4n76wTEp/XrwlH qJv05r6TGju5dbZH6u+RPbULvTNpQ7HObK0f5c0FnoNAyDudEXQVzfFGI4nzcC178nP1iU Nsq9rWQ1rFbYTTlpsnQox2MFvfaK0xu745LWqzmEoyN1/9ywB7kUvkc9ri7zGglzZzUO8q 4o42PjgLVq9oEYQgABGed2OR1UnjJgbO48tYK5ZI9g03QeGre7hvWlZzR4CAXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707817179; a=rsa-sha256; cv=none; b=imyN6/3/931WG4mhYVgXofUDczzBNZ1z5c00diz7Lpl5rnzxHcyn6w41y/EsY1dJ6TYqm2 EGh7lzcuqEnDMmeG8xq4ACLsAAeERGQL/y37Z31dpZgtlnR/rMsbeZTGwBlhnEHwgTcHFM 75X/C8P1mNcJ7e9p5QBaFAl/6nC2L8b18Cv6mCf38Nw+w7eAIf7JK38fP3aeIM5nme4xCe Rco1MpijcsoQpgTM/d28ccPuF6ORV0N3lhVDvoHvWXYghSsXafFz/wVu3CzpIbqiuTcazQ gCUXElDiodbjulhY3WxfdE+q/Xk0OxyTJCEng4tNcfl140EAjL+YxXSjgsymtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707817179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zVevPtLENGvuBdToAGN0QRxGLSk8OP6oh4xNWtmNecs=; b=fjTF5+OFGGDelCURB24C0Xwxqp/K3XsvdWj38gNatCZRt4ar+ugufbZIM+BlVp8QBZbQs/ xBp4AfghFMp9bcRcwjbAvqhTYreSJQw7C18vZSXs8dvTWrVxYsogK4d3bcEuFb/DmwWCXZ /xauuQVgD18+HLKD+TzqX5LdEa/nxkJkwcWsbiC6cHU1BU/YVNM6KvOlFtVzkeGy8VM/JV ZvALVLMrhjxAiKoDK+g3AOWIIlFgC0QjpS7zDwbr+izZIncDY3mckKvCPhvQD6ZMc/xrwG B4mwGTLOy5RaqWBpyp4wBEoDMqLKAFsXVpCHSAP/cYO3S7Fwt2/q6ZCVsjZCRQ== 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 4TYxB34ZFdz18fr; Tue, 13 Feb 2024 09:39:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41D9dd68014388; Tue, 13 Feb 2024 09:39:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41D9ddTr014385; Tue, 13 Feb 2024 09:39:39 GMT (envelope-from git) Date: Tue, 13 Feb 2024 09:39:39 GMT Message-Id: <202402130939.41D9ddTr014385@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wei Hu Subject: git: 47e99e5bc5bc - main - mana: fix leaking pci resource problem detaching mana deivces 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: whu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 47e99e5bc5bcfa621fe6a3e62386f227c47e8cff Auto-Submitted: auto-generated The branch main has been updated by whu: URL: https://cgit.FreeBSD.org/src/commit/?id=47e99e5bc5bcfa621fe6a3e62386f227c47e8cff commit 47e99e5bc5bcfa621fe6a3e62386f227c47e8cff Author: Wei Hu AuthorDate: 2024-02-13 09:21:14 +0000 Commit: Wei Hu CommitDate: 2024-02-13 09:38:31 +0000 mana: fix leaking pci resource problem detaching mana deivces Fixing the error messages when detaching the mana gdma devices showed in dmesg: "Device leaked memory resources". Reported by: NetApp MFC after: 3 days Sponsored by: Microsoft --- sys/dev/mana/gdma_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mana/gdma_main.c b/sys/dev/mana/gdma_main.c index e955d9e1d304..13f8a30762b1 100644 --- a/sys/dev/mana/gdma_main.c +++ b/sys/dev/mana/gdma_main.c @@ -1562,7 +1562,7 @@ alloc_bar_out: static void mana_gd_free_pci_res(struct gdma_context *gc) { - if (!gc || gc->dev) + if (!gc || !gc->dev) return; if (gc->bar0 != NULL) { From nobody Tue Feb 13 11:03: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 4TYz3G2kZNz5B1yj; Tue, 13 Feb 2024 11:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYz3G28lcz59Ks; Tue, 13 Feb 2024 11:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kUXESCh+KkBUXn44MegofduhC370fQBwQzxOxoXB5+M=; b=jYEgA4UwhWVd0Ns2jwJkiHN0K0fieFqz03W/HNRPrf8we4Gt1TRkTB1F3E8qzDTbGikhl2 G+J6ACkzJN558HMcyYPzbOY2KPsC6B6NkkB4KMC6H8iwzS3tZq/tEwAbaWG8GRgbYpnVG5 v5K6La0NYiOi0RN/eqy0cKSB3Md0KgW1oFKlqcZfr42BaJlN/qwUQYim/FAPQKUnh+EmgT e/RzF6zwmUDlnJDNirvzjcE3B4Zq9qIUDjOG5e2ui0c3AKOWRWaVeGuoqNVFlIwUKQ5DOh mu1D6mj6Jnzmiaqc/8P1I/X8gHmF7tOGHCCBTgTzlvPOeMbEgYwgWErVdbDp2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707822234; a=rsa-sha256; cv=none; b=gcy7EfwjoMPZ3fj2c5lx3u388giS8cDhTPtXRR61MigsgCjprDARmtZZ0u4u0TXLmT8bAg uCpjhaLqu5rOs3UycUglYGMB46BiimWke6XJPmw8cipIGjZ4u+k0D0Q1LchbbpXAtlFBi6 YXS8BNDSPPh7bsQdLUAC1jIqprt53+zU0cmqm7cUnUIQOejSjhIfWxzI6bvPxhAo3eCJ31 XGaqM5nK4FVKtSAHKjOpjkQWvdoxbOkslMp71H7RgAppKuqRrNKH24xNviSeVv0GVDfkKp wpa6TDK2IVp2169vDMh6JCyVHsOhSM1zJjlgGMzqsBHMU5oweUYdeqwwlem4PA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kUXESCh+KkBUXn44MegofduhC370fQBwQzxOxoXB5+M=; b=qT0KLxxia5mbvhTmfXDhMmucdN0DG8fjgcPrpoiVtHZ/E14WIH+gM8RMBw/BIbdA0aGqUk HJql6KH3CBQtXpnZPGnA9BqfQH0UDf8H1q9xWaGQuzXvJgY8136cwrvxM7JrPvDDsBET5p 22qoC6h+T00Iq1ltJ4ik6tYAGKdTyYeMBzgSOEdXwRZiJVJrLEddDairtAH0Ct7djg/FIe aH9/x+DkpLoasjt4ZrLYxkLQ/8WaKBMOBKrK3CYfuWRxebk5D+r472o/aHFWuDx9FOc+54 60oLjG8/iF+tqu2OgOjfY5sqhBgQKzkZRZDTnnLW5zUrmr/GaqFP5WgCODZECw== 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 4TYz3G19n2z1Bm0; Tue, 13 Feb 2024 11:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DB3snq064870; Tue, 13 Feb 2024 11:03:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DB3s8I064867; Tue, 13 Feb 2024 11:03:54 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:03:54 GMT Message-Id: <202402131103.41DB3s8I064867@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: a400e2590416 - main - ed(1): Fix grammar 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a400e2590416949987dab710930ffd94539a545a Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=a400e2590416949987dab710930ffd94539a545a commit a400e2590416949987dab710930ffd94539a545a Author: Chia-Jung Chang AuthorDate: 2024-01-11 22:22:32 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 09:55:54 +0000 ed(1): Fix grammar in comment Event: Advanced UNIX programming course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1025 --- bin/ed/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ed/main.c b/bin/ed/main.c index fefb83b7bc71..57f1faba29c4 100644 --- a/bin/ed/main.c +++ b/bin/ed/main.c @@ -1289,7 +1289,7 @@ has_trailing_escape(char *s, char *t) } -/* strip_escapes: return copy of escaped string of at most length PATH_MAX */ +/* strip_escapes: return a copy of escaped string of at most length PATH_MAX */ char * strip_escapes(char *s) { From nobody Tue Feb 13 11:03: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 4TYz3H42BHz5B2PG; Tue, 13 Feb 2024 11:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYz3H35Gyz598s; Tue, 13 Feb 2024 11:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xF8Wpd7iXvDSer7Hw9Zxym0wAUIOMfkD06TOAV5V2iY=; b=HKhvpVyTgEPtB6fAN3j23BRTbPbBq04a8YakJGPb3ikKs+g4mOOKwn6sFprpQtBfykD8Ki S16t++AfGxb+rwJDsbK2qTXLpj7tVcd7+Tl/xzJVSTW4d6jqT/PJnmF5Abf3yWCWkGQqlT wcZtgVgQC3uOCMvvpSzovyBzWxZ25gzmL0MH2mIlmOXGWx1QnW79jadC66HXFqaGJn9ZGO dLXJTlouaNFGhJO3D4Vf7v12qzJA11o75XIlRpNYdpkcoEoVqK3Nuh84uB7sdnUDPuyQpK qC5+2Vvb0wHzbAlDeTRKckMMbWQaHNzOip9cQmPXlFDvj97VYhDOmyr3O8FKAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707822235; a=rsa-sha256; cv=none; b=yUlpcFKed6uDJ47lThTVSGp/gAPEoxzesOmaAT78/7t3vEStTBQTtreWc6L+4JtYFsSLSh Eu+3yL/lv7RtVZqWbICmBkNalvxEG0PP/4un+zF97kHDcrABt2xv7f0Qu2vsgJvjJYkZ9L xY45Dio+RqRVJegv4Qame4B1Wu7a26sc0xPxoVtxcWKCbgBCGvmBrqOxkjU+pcijtRuqXy jYmiOTYcuBNnROuIk+zxRyL4eJYRQ/V+wBhTkIiHHo0Yq1Q3EOpcGH30vZ1V478vkk0vvc nXVNPmRTa3uxD70cSOyXc9I7EqxDXeKpttXJuzR7cCm49vF90E22WJTnuyi0Fw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822235; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xF8Wpd7iXvDSer7Hw9Zxym0wAUIOMfkD06TOAV5V2iY=; b=lya/eCabzwssFmu52iu5jRULVNjlWIstUcrCyFcQDJkDoqy4SA4JeDhaUmfVMB7ln+iVWT Es/ugqY/yJHB8d/DcB1CWNMpDRPN6I8iiLp4+Mi+hnXijAYJsOvsHbyY7aQ+ltFGdnW7aB OjXBJe18FzrO314VIZrwdNJ+Ta9ynrYH7Vg68Mfh6ceo1qL2nmJux99VpCcn9sCO3lVOtR yP94wAWeIAZRhp13X5JdXbhL70kiHebkdSSCumTKMjP0LyFGwkgrE5GKqnJBZ7bgSNWBfm L2fhrlBe8sxI/YcUcgfk8biRvu5ScUQCN01pH+4Wqf+MicsekbYFGckwl94aDg== 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 4TYz3H291lz1Bhy; Tue, 13 Feb 2024 11:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DB3tdn064906; Tue, 13 Feb 2024 11:03:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DB3taW064903; Tue, 13 Feb 2024 11:03:55 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:03:55 GMT Message-Id: <202402131103.41DB3taW064903@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 304f52ad1ba5 - main - df(1): Fix grammar 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 304f52ad1ba5a9783b2eb547fed33c541e1af901 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=304f52ad1ba5a9783b2eb547fed33c541e1af901 commit 304f52ad1ba5a9783b2eb547fed33c541e1af901 Author: Chia-Jung Chang AuthorDate: 2024-01-11 22:49:37 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 10:31:05 +0000 df(1): Fix grammar Event: Advance UNIX programming course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1027 --- bin/df/df.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/df/df.1 b/bin/df/df.1 index d3b0b082250a..ceb1bb45babf 100644 --- a/bin/df/df.1 +++ b/bin/df/df.1 @@ -117,7 +117,7 @@ option and any .Ev BLOCKSIZE specification from the environment. .It Fl l -Select locally-mounted file system for display. +Select a locally-mounted file system for display. If used in combination with the .Fl t Ar type option, file system types will be added or excluded according to the From nobody Tue Feb 13 11:03: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 4TYz3K0b5gz5B1yq; Tue, 13 Feb 2024 11:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYz3J3ln6z59L9; Tue, 13 Feb 2024 11:03:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fTUPiViGytdYcMfdxgy2awJUmmVN/P5YGWdqvHFNS/I=; b=POLc7H6enTIgASAhi1CFs5rf9kvyeOMd7lLWUDrARP+twyWcNSAWgcetyBVUpMYnjxtnpK oHl3G7jBW5H6JpneNl06ZOGGxVySHXlgeRCdm23rwfLpQLDN5yR/4loEfbEwPoZy+43Tgt o0D+6cuwBFuYXIv1FQtZW2tABo+BO5ZRC/zdHhYs9QMGJfz3Jle4nQIPobdnTlfqkhpD9r p1nWDXLO0+Ou714bIgB1ZQ7gL3/chR5sIxjJWdXzOpBEBJIDLUvPzoCu/iKc5Z13YI7z8L 5qDcYOJKAyuVEhvpvo5xKgtMN/uMOuYj7ICrVjS/53ZVpWV/DU5dFnlujZBISA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707822236; a=rsa-sha256; cv=none; b=OwqUe8gvHLaANq4EX9iKdntUbdpjJgsVnFMIDk9e/pOl537JsF6Y21O0o35lwiQ7SAReGx CaqQWP5xJxRb8IMR9qS/mToaWjza72Mf8povp5/YM/JFflF9vgbHWvrGCat0BUfRfQHpl8 2QvQpsljhHw4W1l1Rbbv3oG5A/G0ADpSz781+wPwvWVmymCkKFetu7wTu4QinqcyTGgrhC jnw6hG5jcwYBUzQ+yvuTm3Pfxa695ZOwfDah1gjkr3udwHdEj1fDdpEMqVNaIdPe9Bo7MB PH6dKd5usAarsjV4FzqHkKNectrydEzxc5/Ai6s3bTcbrO6i5Kqdp7ShPT+TQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fTUPiViGytdYcMfdxgy2awJUmmVN/P5YGWdqvHFNS/I=; b=RdNwJXcwS5KI0BmI5LghyulqsG2H36z8B5V3RX09/j2Tnrx8flHRd305kLasslF4vQBnw8 9IWgFVm+2QZIFigfGkrbki24r7hf/ykn08v9nBO715JxGE8hPmHJICFySnqPc8QEemTY3N qIViToqfr16AyPryV/xA7FEt3Ep0kutP/gkvQ/qInnMTjbFCBTTBeze9zJalHiLoFIg4dc atnCtue6wlCmswWy06YmMQ05qsH5xyGlgZQ+0ktg/yPPYypM+hSyk5SmoZ+Y3lYf5kSVfJ H+cH2u5B7LWZ8gn6KQhbUagheWAqp7jRu2METDERpFqdFfLfPa8bUmZ2QbjF7A== 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 4TYz3J2lfLz1Bm1; Tue, 13 Feb 2024 11:03:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DB3uh0064952; Tue, 13 Feb 2024 11:03:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DB3u08064949; Tue, 13 Feb 2024 11:03:56 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:03:56 GMT Message-Id: <202402131103.41DB3u08064949@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 416fdc2d7165 - main - cp(1): Grammar fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 416fdc2d71656e2f0b4a16828fb0c736ae32b74a Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=416fdc2d71656e2f0b4a16828fb0c736ae32b74a commit 416fdc2d71656e2f0b4a16828fb0c736ae32b74a Author: Chia-Jung Chang AuthorDate: 2024-01-12 01:36:41 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 10:53:50 +0000 cp(1): Grammar fix in comment Event: Advanced UNIX programming course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1033 --- bin/cp/cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 14d1cc2a3f75..4d77dfe3feed 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -340,7 +340,7 @@ copy(char *argv[], enum op type, int fts_options, struct stat *root_stat) * noexist/dir/foo (where foo is a file in dir), which * is the case where the target exists. * - * Also, check for "..". This is for correct path + * Also, check for "..". This is for the correct path * concatenation for paths ending in "..", e.g. * cp -R .. /tmp * Paths ending in ".." are changed to ".". This is From nobody Tue Feb 13 11:03: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 4TYz3L0FYBz5B2LV; Tue, 13 Feb 2024 11:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYz3K4dt6z594k; Tue, 13 Feb 2024 11:03:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Uj0WuHkoxPJN6GsyTmm8z3q6hR/cbRYKvq4JpC7vQvI=; b=ImrpYTQWuDqWINLYdgEnE8/oaCoM1oMglEdQx3auPUny8qJLsHGHXHBlFkBkESLLhWwuWT 2Cmsk1tOaN3XQP7kR+vmzYF567bnhAeRhPzNPse/YV4HVj2L3aRDP25GMpz+eKsk48pHxh tF4Fb/km285wXNc4i01UpnCcxrhew8HrqGyN8la9P25L7SsuLi4djc2rWdmb+laikTBwRF 1Q45AqENLZ+HAuhCkFdlCGhf44ues7e7mDX6pBVDhUYWV8UVEhoSE1MviTedOZNkA+XUXZ ZGlAjXVohL7uBp/5dEKWM0yPC6DqUuxMmgmgGjBBCQHzpvnuBemZPqV4Qp6SRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707822237; a=rsa-sha256; cv=none; b=eKjkgyNtklgaTjuetlmUrj+uEi5UJf/KA7rbMMKqAta3qIg4W69ksiPTxzcBTyJhwrwKdL w+kGTy/i8L0p8DXrYB1ympEeNK2dmbb2XOqiydmxZBTPAMTYA6tLlB2iRz16Wp9G2zWIZ2 F3X/hMwZ7mBd0tCmSnpxwDIWho5SUQlXT2CXeC0et+AY3AsjaEMLXeVEY8ZWGXjSaAlngs A+gLU5ChqeI/1kzg2CmnmunsokwVxRH2ZeTS11W/19YKfWg6HTJH9NdpblVzHb7nl7T0mm lLtH9RBv5sp+6uP6t1EWzDMOE7ftEe4W8gmHLq0wAbpPQ6ppiGjdFyZRPoTYug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Uj0WuHkoxPJN6GsyTmm8z3q6hR/cbRYKvq4JpC7vQvI=; b=qugasHAwylTbFOxy7qESkrUh1ZXMYFuJ+di+k6AyVyNuXPZtxHHoVMaBfjAiSSVjKn2qOX PyCE+KMdm9y8JqQTr7Kc3iUqRi8OpukOKf33H+XapcUuiJruOJ/VlrL5998qVSWw5uJep1 7dz8Khv0Tq/hIYHlIrgwpGz5KintDiIXUmH+WyE5vOngdZoTk6KQAW9E8cwQg7TlmZa2Rq zU1YmUXiQtSmBotK/8HX4Wkym1yU1qF5/dDF3IeMAZaCeUatpex8HuT5t2lp4mODqgS14W uFj5ZSfiL6u3n8XpGWHsVWZns8IXvfFOgCPWFt8O0ja1XxbldEfvS6CPK5Ihpw== 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 4TYz3K3lksz1Bm2; Tue, 13 Feb 2024 11:03:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DB3v2j064988; Tue, 13 Feb 2024 11:03:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DB3vdT064985; Tue, 13 Feb 2024 11:03:57 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:03:57 GMT Message-Id: <202402131103.41DB3vdT064985@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 8e9fc2d9f657 - main - date(1): Grammar 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8e9fc2d9f657f99ae368524868dd04080bc390bf Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=8e9fc2d9f657f99ae368524868dd04080bc390bf commit 8e9fc2d9f657f99ae368524868dd04080bc390bf Author: Chia-Jung Chang AuthorDate: 2024-01-12 01:58:35 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 11:00:59 +0000 date(1): Grammar fixes Event: Advanced UNIX programming course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1035 --- bin/date/date.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/date/date.1 b/bin/date/date.1 index 194635e923b3..286b1f45414a 100644 --- a/bin/date/date.1 +++ b/bin/date/date.1 @@ -223,8 +223,8 @@ day, week day, month or year according to .Ar val . If .Ar val -is preceded with a plus or minus sign, -the date is adjusted forwards or backwards according to the remaining string, +is preceded by a plus or minus sign, +the date is adjusted forward or backward according to the remaining string, otherwise the relevant part of the date is set. The date can be adjusted as many times as required using these flags. Flags are processed in the order given. @@ -284,7 +284,7 @@ will be necessary to reach October 29, 2:30. .Pp When the date is adjusted to a specific value that does not actually exist (for example March 26, 1:30 BST 2000 in the Europe/London timezone), -the date will be silently adjusted forwards in units of one hour until it +the date will be silently adjusted forward in units of one hour until it reaches a valid time. When the date is adjusted to a specific value that occurs twice (for example October 29, 1:30 2000), From nobody Tue Feb 13 11:03: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 4TYz3L6MZwz5B2Hk; Tue, 13 Feb 2024 11:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYz3L55BNz59VC; Tue, 13 Feb 2024 11:03:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I2GHBAivawA4rcaLvyrHquGV8BRUTbUJYb/6gH9AqhE=; b=PyYbMTJ6zhIYQ1MeTBkFdahhpadS0o4hI9BrRa4JdRNZ91alZedMSEev4apR5ssksYqRUB SBuVxiPx9mFd+NjNc44eQzwHiUHkU/zxE12wr6JZC81W9CQXUwPr76BLOZ85pP/1PP3pzE OUcKvj9q/+nl7MEtzhULFsP/qm5WoGWRv8gbQdIMr0/17yJrUGua/CwNnLRK7KOd7X7CUV JKogRtvjnRpDmvKHIDp4y4dwFohje/5tAci7MZlq444XROXpaW3/4mChv/xyJbgjH3U/hT IPDLGbZQziePlpJ6nRu5pTgnEJaqlujmnqJ6iOjkBR5J6kQamCcDTXxkPHZ4gg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707822238; a=rsa-sha256; cv=none; b=d1DaJSpIOlMJXyT7Cm/Oxje24LmNvpSRnFs2sqAm8oVWZoPmk298r5+Nu692BlFpWqD7fu mSAnqX+jnBv5eJfNx9P7g4efLm3KO/xfHyzu2e8XXp4LDJP5mvT0RqvVMqtp93aY9aNhXS EP+CP+qRL7VRXR+CbhOJBYyKfIPGX0Mz7n8hd8YfydjDK1RZ2uGArpF8if8oeffun3fSUY EFAmEZO/JBgG5cicAk+GsMmxythaDSSXbsNKUah3eJMevXvhSvucM5QBJ4P/MTY4pe+5gX djTTTI0oEMz0lsUUbSmjRiWuxu/GutuPj7ZeKRVR1z2cZchaE94ZU2ch2rmMxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822238; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I2GHBAivawA4rcaLvyrHquGV8BRUTbUJYb/6gH9AqhE=; b=Rzc8TTWB5lT45sUErvu20hKGux0uxYabEdtSs98LaOHBJx66rV/DDCi65TCNzQ8lH8si4O UHBtRV1z8T1pgO+A4KGgpeCZp9IW6X3DS6Xi4A3+hyh105DRw7OdkasAdGHxWqJ3BewB78 My/JRh1USEk4/JZB+CG34J94rAUeTWpR5cLx+70h40nfl86R2vdV+3ygSRlO8cwT3rn96e 885nrPr9KYiw2VyXM1jQp3Rh+REomEf8ghLk69s15UMy70/tbC9G7LhYiTCtdZ7Nx82jSK k4NdxLlWZKZs/SuU/S18kGXWE1gMGubUXK7jMKqt1UJO1sHX/3LoC8w0NnWpcg== 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 4TYz3L46s1z1Bm3; Tue, 13 Feb 2024 11:03:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DB3wng065033; Tue, 13 Feb 2024 11:03:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DB3wli065030; Tue, 13 Feb 2024 11:03:58 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:03:58 GMT Message-Id: <202402131103.41DB3wli065030@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 26cf4a61f693 - main - hostname(1): Grammar fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 26cf4a61f693339ca261d3acaf4d01290acc525e Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=26cf4a61f693339ca261d3acaf4d01290acc525e commit 26cf4a61f693339ca261d3acaf4d01290acc525e Author: Chia-Jung Chang AuthorDate: 2024-01-12 02:15:01 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 11:02:17 +0000 hostname(1): Grammar fix Event: Advanced UNIX programming course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1037 --- bin/hostname/hostname.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hostname/hostname.1 b/bin/hostname/hostname.1 index da9c12d0278a..16f3dd468300 100644 --- a/bin/hostname/hostname.1 +++ b/bin/hostname/hostname.1 @@ -31,7 +31,7 @@ .Os .Sh NAME .Nm hostname -.Nd set or print name of current host system +.Nd set or print the name of current host system .Sh SYNOPSIS .Nm .Op Fl f From nobody Tue Feb 13 11:14: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 4TYzHX71TPz5B3V1; Tue, 13 Feb 2024 11:14: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYzHX6HJQz3yhq; Tue, 13 Feb 2024 11:14:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cwQqttFEgfT8+p8p+ONOBRfDHvxm0wp+4vz/f2McyUM=; b=EeNBIxxezfY3Fkmb5HuzYbtAKCaHKC3+fMTPwUsZ2p4wrzdJC4pSnpIBBwrZ8uaprs7/fM sLdOb65Ijq7rBVnSa8MhSoaWeUBsz4aQnElkFPQWlYqIFWEhsMTSE3PwD9iK7dVLSdYP8S hyEePsbdWgC7vmmI6a9zSHkTI0sGJQC06Dcc97wyVLz9PlDYL1nmnCmkGIjZsgbf7wDgML olc3GEDcIiZZdQGBznAbn8liVzX5bKpiRs8FiYtQPuAD7N+yyMVTJA7fwRkFk9qk6SARUt uOv7VCr2UEYTlarH79qWki+ugHPPjzkxBz+Lxcl8iYwrhjSNBj9qG8K//w7L4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707822872; a=rsa-sha256; cv=none; b=qyCIvp+NMf495oUpnxKAUjOKC9jiIX+dURBznBPykzi4wkZaa+rtgPhGG5zpc3AqKfektH NKm5PXMuZUrfCGind/5oqykoXdeuBk+zLiIaYvVgeTyLtflQyDX7d7YB32FiiS4ZQv1tex K19Ijg3lEHGS0KozT6dgs1zL8NBYiSRWkby9zpSFUmeSSTR7//TK65D1Jc/oZ12zquyI2U 5BHmooUXd9qI4inZ71o6Ez/nkgajAkn4otqjOqHeH2feaPZ1qICy0gUBHNgQWlXa7f24F/ TVGRrv3KfKaJafNNgKpOV4zysXxctNTGOWrIowtAc/tzPQb/4TRaYAbBKCVNQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707822872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cwQqttFEgfT8+p8p+ONOBRfDHvxm0wp+4vz/f2McyUM=; b=kW3L5XUWg+SsNYSfoTvtdNYEhuuU+o10m2MCBXRjvHDCgcPQjR4Ub/8WdOf99kkXBLPhfH IgYWdXCtCDOoyBX7UEO+uqatXmm3RTeISCW4uFfor9cVeT9FSAaoqC+DpUWtYDqWeuTbtp /6zdGnsROp2BvpSgwHoEL6f1JL1iGJf0gKibOXQw5WhZSrvx7kRVXyKu/3LkneV20axn19 L/pZThTJW33mprNo5c3Encq51vpCxamtr10KMIItbPwLUEsOK0eWSUbuXeATyhYJu7joXB aMLiC0Ltv0G2TU0ckSZP3xQ8IxwyeN4TFssbw/qLqjlIecmkt4+3F3DOmPai9A== 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 4TYzHX5Hd2z1BpR; Tue, 13 Feb 2024 11:14:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBEWND081939; Tue, 13 Feb 2024 11:14:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBEWCb081936; Tue, 13 Feb 2024 11:14:32 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:14:32 GMT Message-Id: <202402131114.41DBEWCb081936@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 90405e1d63ff - main - domainname(1): Grammar fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 90405e1d63ff919705422745f19a8b56a37f5ac0 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=90405e1d63ff919705422745f19a8b56a37f5ac0 commit 90405e1d63ff919705422745f19a8b56a37f5ac0 Author: Chia-Jung Chang AuthorDate: 2024-01-12 02:30:46 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-13 11:13:33 +0000 domainname(1): Grammar fix Event: Advanced UNIX programming course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1038 --- bin/domainname/domainname.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/domainname/domainname.1 b/bin/domainname/domainname.1 index d83169788f2a..bdadef416ce8 100644 --- a/bin/domainname/domainname.1 +++ b/bin/domainname/domainname.1 @@ -44,7 +44,7 @@ set the domain name by supplying an argument; this is usually done with the .Va nisdomainname variable in the .Pa /etc/rc.conf -file, normally run at boot +file, normally runs at boot time. .Sh NOTES The YP/NIS (formerly ``Yellow Pages'' but renamed for legal reasons) From nobody Tue Feb 13 11:51: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 4TZ06X0X0mz5B7F6; Tue, 13 Feb 2024 11:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06W6zFXz44VY; Tue, 13 Feb 2024 11:51:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1eyl+0TqIHNIYEiesJz8fh/H3FDsdmPB+o/VafX5Src=; b=pAA7wIBl2tneDT0AA5y2PnMrY8dM06hDzpw37Kaf51n9qQDGIJN9E2QwmFlRWIPbL/1uWl HpkndQqoWIuY1GMljXJ3DPDvySVsqHZlqcFkSX9h8WQPufYQD9ZlMpbVfUP23BeVTAdCiz 5pWY8Cu7ox+953r+CIH+D5cje23QeGtHcV69TSgnQWLp1gFql6CU4k2w5YmYw+Q9mG9rTy TMAjmR3FGULdHo6cGdgjfv5ODyKd5HA/Ad8mJDNBq4etVrjUHCRkACIvy9ZDEOj6XF3sGl QM0iHYM4A0m0UuA8zepoUh74V5XtDkQ8j7YsjuR2QYFodpzmKq+Q2EF74vdz3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825108; a=rsa-sha256; cv=none; b=lOM38W/s1H9AfYZMuZlKBkefmizFVfj6ugnwx6MdwgRFgICVaBW7UZp5r7KLzUSrQDmhwd Lgz1x9dzDuCP2aEu+QPKJkoLRbVZuHDoRXofwMBqSRmQl0O6L0JRbYQS6b/d353yINeHkJ +cj8GDWzzqE9KZmGOnhLjfoQJvJvRCxLCFNAFNu1gaMQaeYIzTKc6x0XbraX/AD4LiQcVJ C4Psh1nwKAaAbKY3h7MdBKwBf/jjQxX7Ev+QRYzzoAafDZRgBIaoPRfcmvzN8NkxWdNfkJ /AaJj6c3ipd9gVlR5v5x63/wyBqNlW/MY3FRf26jV1qtfI21aCBM//yR9yLQTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1eyl+0TqIHNIYEiesJz8fh/H3FDsdmPB+o/VafX5Src=; b=QGNWPf4J4ytRKJ2tW5DjttuaZNzKZ1sktX42Qi920OJflo6G2b06VhPHDR8EA0hD9wLOUJ Yoy7cUnzKWMMHC4oIh27RbdQlZ5+i48T4zg+BVMnbGE+inXDoLrPJ+ZKet11//XrJHUPzW hYpr9l5sCmHDxdoPasFOq2+QqoLhYlPd3f+i/hjqIOXhhaahqrko3mVPzJr/SYQwQVQ8a0 PVJPgvRWcXA1WUgJjR6L4yXK5TVthijk19BRQUtOIh6XqeBcc/cosIOXofm+o835tTdSRU 3veoCo1MsAvVEODmf3+uq30NbZYfSUCyVSrSLSZmoWMGXdLXJt3Yhc80fmM6IQ== 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 4TZ06W62D7z1Chj; Tue, 13 Feb 2024 11:51:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBplAS045757; Tue, 13 Feb 2024 11:51:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBplR0045754; Tue, 13 Feb 2024 11:51:47 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:47 GMT Message-Id: <202402131151.41DBplR0045754@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 639a626b4050 - main - arm: Clean up socdev_va 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 639a626b40503f81a184ccd93fb9bc023f86a3fd Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=639a626b40503f81a184ccd93fb9bc023f86a3fd commit 639a626b40503f81a184ccd93fb9bc023f86a3fd Author: Andrew Turner AuthorDate: 2024-01-08 14:43:32 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:52 +0000 arm: Clean up socdev_va Support socdev_va on arm and ensure the variable is available on arm64. Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43359 --- sys/arm/arm/machdep.c | 8 ++++++++ sys/arm/include/machdep.h | 7 +++++++ sys/arm64/arm64/machdep.c | 9 +++++++++ 3 files changed, 24 insertions(+) diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c index 999e47fd381a..c36953c513be 100644 --- a/sys/arm/arm/machdep.c +++ b/sys/arm/arm/machdep.c @@ -134,6 +134,14 @@ static delay_func *delay_impl; static void *delay_arg; #endif +#if defined(SOCDEV_PA) +#if !defined(SOCDEV_VA) +#error SOCDEV_PA defined, but not SOCDEV_VA +#endif +uintptr_t socdev_va = SOCDEV_VA; +#endif + + struct kva_md_info kmi; /* * arm32_vector_init: diff --git a/sys/arm/include/machdep.h b/sys/arm/include/machdep.h index f999cce12b47..45e44a65368b 100644 --- a/sys/arm/include/machdep.h +++ b/sys/arm/include/machdep.h @@ -51,6 +51,13 @@ void arm_add_efi_map_entries(struct efi_map_header *efihdr, struct mem_region *mr, int *mrcnt); #endif +#ifdef SOCDEV_PA +/* + * The virtual address SOCDEV_PA is mapped at. + */ +extern uintptr_t socdev_va; +#endif + /* * Symbols created by ldscript.arm which are accessible in the kernel as global * symbols. They have uint8 type because they mark the byte location where the diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index 92f9e5692be4..9ce1c40b674c 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -138,6 +138,15 @@ struct kva_md_info kmi; int64_t dczva_line_size; /* The size of cache line the dc zva zeroes */ int has_pan; +#if defined(SOCDEV_PA) +/* + * This is the virtual address used to access SOCDEV_PA. As it's set before + * .bss is cleared we need to ensure it's preserved. To do this use + * __read_mostly as it's only ever set once but read in the putc functions. + */ +uintptr_t socdev_va __read_mostly; +#endif + /* * Physical address of the EFI System Table. Stashed from the metadata hints * passed into the kernel and used by the EFI code to call runtime services. From nobody Tue Feb 13 11:51: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 4TZ06Y3GRTz5B7Gh; Tue, 13 Feb 2024 11:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06Y0sByz44kt; Tue, 13 Feb 2024 11:51:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C4F2Df/4L2J9qjVekzHYdHM9nrOPhC9kqI86fE4hKCQ=; b=qw2Czc/fkntXvSeOkQOxj0sOqmEGvGcFGpm9VWM0ooKpHG9t8XUaqFXSn5jCCTUnWY04m8 v2I3ceh78nzBpAC8y6S2y8xjV9/4eSSHRMrATR8wms4qvmX0/FfwAxZHGteSmFxQDlz+AI 0BehD/iH2YVKTodedvCFwJLgWpfnde+1x8ZviEy15EZGfodAYrmzhvmrIPClQVs1QcTjUk fGlFz5bLk/pEPUbxpVKMwQOAufZjsTJY97RGLPbP7s7F7WGAs61X41RMgHh4fgZxydGRew kFbPazfz5nM2UexS3uRiiujvds6+6T3BFe4I5blh1sUh2eP4mmqZJ9ISWpXUaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825109; a=rsa-sha256; cv=none; b=KG1/8nHIoPXcZVEIulZj799PpLIH+z+h4s/Se/MRaUk2zzWqR2VOapyai+Vb8fssL0jxw9 t5SinJfvGiUtm5R76OgVzXFcgTE/FU8CgLDlJW0L8+pwDXDirBXonTmRygbN9N25Nansom v8mGOuD3nFa+5iVeMxJ1yWJIL07pbn2rAH09CCUWIVE/kLr9i6tym+wESDfn9cci45SoD2 r3iWXr16xA+qWoRuI04zl1TpJZj7fAa36VDzKUdThWJgPWSteCRHYzZggEZ7MIcBal4WUW CWbyk5nTwol5ZNWaxg8lSHgh13yOMxid3IlXjUF65N3DJ7+DWLI/Gkatt3UPTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C4F2Df/4L2J9qjVekzHYdHM9nrOPhC9kqI86fE4hKCQ=; b=GXhG4YIFGjASLBbMkzIT1cBN0uWyR/tgsvxcyjD9pwllj0L4gL4K20gsfbB1oWchyO4F1l FD5RaeA+j00IwQ8c2bOqCeGGW7oJHMkWUGNRvCvdGJxaVTwVUL3fdnE4rSg2WfTJ9ihhi+ uqhvHeoxmbhlxqUgfiOrMzgG/B9uP4kSIpJGI8YG0y5VSkN41gAJ6b2Sa/Tjg9WC3F1Wie YGiyeT6wlfJrEZoGwJ6RwPzm4TN761XK7mItWfzLKvtD+Vust9qKilaI/hqY76ZJbFFqSI qSBcUpPZpNDLLF3z6kudxI1g4MIqr1V/SCGOwaUD3m80bfkRQyjN5xfWt4irpg== 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 4TZ06X70MpzDbK; Tue, 13 Feb 2024 11:51:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBpmiO045813; Tue, 13 Feb 2024 11:51:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBpmtb045810; Tue, 13 Feb 2024 11:51:48 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:48 GMT Message-Id: <202402131151.41DBpmtb045810@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 202890922e31 - main - sys: Simplify enabling EARLY_PRINTF uarts 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 202890922e31382f9b11bf5f78d3dd0350d69dc1 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=202890922e31382f9b11bf5f78d3dd0350d69dc1 commit 202890922e31382f9b11bf5f78d3dd0350d69dc1 Author: Andrew Turner AuthorDate: 2024-01-08 14:45:51 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:52 +0000 sys: Simplify enabling EARLY_PRINTF uarts Support selecting the early uart with "options EARLY_PRINTF=foo" in the kernel configuration file. This allows us to not have to change source files when enabling EARLY_PRINTF, simplifying enabling it. New uart drivers can be enabled by defining a new early_printf_foo value to be unique, then using "#if CHECK_EARLY_PRINTF(foo)" to decide when to enable the uart. While here add pl011 early printf support. Reviewed by: imp (earlier version) Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43360 --- sys/dev/uart/uart_dev_mvebu.c | 11 +++-------- sys/dev/uart/uart_dev_ns8250.c | 7 +++++-- sys/dev/uart/uart_dev_pl011.c | 14 ++++++++++++++ sys/dev/uart/uart_dev_snps.c | 19 ++++++++----------- sys/kern/kern_cons.c | 12 ++++++++++++ sys/sys/systm.h | 9 +++++++++ 6 files changed, 51 insertions(+), 21 deletions(-) diff --git a/sys/dev/uart/uart_dev_mvebu.c b/sys/dev/uart/uart_dev_mvebu.c index 921298ffb6c7..8f989aa0ca14 100644 --- a/sys/dev/uart/uart_dev_mvebu.c +++ b/sys/dev/uart/uart_dev_mvebu.c @@ -104,18 +104,15 @@ /* * For debugging purposes */ -#if 0 -#ifdef EARLY_PRINTF -#if defined(SOCDEV_PA) && defined(SOCDEV_VA) -#define UART_REG_OFFSET 0x12000 +#if CHECK_EARLY_PRINTF(mvebu) static void uart_mvebu_early_putc(int c) { volatile uint32_t *tsh; volatile uint32_t *stat; - tsh = (uint32_t *)(SOCDEV_VA + UART_REG_OFFSET + UART_TSH); - stat = (uint32_t *)(SOCDEV_VA + UART_REG_OFFSET + UART_STAT); + tsh = (uint32_t *)(socdev_va + UART_REG_OFFSET + UART_TSH); + stat = (uint32_t *)(socdev_va + UART_REG_OFFSET + UART_STAT); while(!(*stat & STAT_TX_RDY)) ; @@ -125,8 +122,6 @@ uart_mvebu_early_putc(int c) early_putc_t *early_putc = uart_mvebu_early_putc; #endif -#endif -#endif /* * Low-level UART interface. diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c index f211084cb013..090909fdf8d2 100644 --- a/sys/dev/uart/uart_dev_ns8250.c +++ b/sys/dev/uart/uart_dev_ns8250.c @@ -81,9 +81,12 @@ SYSCTL_INT(_hw, OID_AUTO, broken_txfifo, CTLFLAG_RWTUN, * To use early printf on x86, add the following to your kernel config: * * options UART_NS8250_EARLY_PORT=0x3f8 - * options EARLY_PRINTF + * options EARLY_PRINTF=ns8250 */ -#if defined(EARLY_PRINTF) && (defined(__amd64__) || defined(__i386__)) +#if CHECK_EARLY_PRINTF(ns8250) +#if !(defined(__amd64__) || defined(__i386__)) +#error ns8250 early putc is x86 specific as it uses inb/outb +#endif static void uart_ns8250_early_putc(int c) { diff --git a/sys/dev/uart/uart_dev_pl011.c b/sys/dev/uart/uart_dev_pl011.c index 4fd53ab67bf3..bfcf8cf1584e 100644 --- a/sys/dev/uart/uart_dev_pl011.c +++ b/sys/dev/uart/uart_dev_pl011.c @@ -249,6 +249,20 @@ uart_pl011_term(struct uart_bas *bas) { } +#if CHECK_EARLY_PRINTF(pl011) +static void +uart_pl011_early_putc(int c) +{ + volatile uint32_t *fr = (uint32_t *)(socdev_va + UART_FR * 4); + volatile uint32_t *dr = (uint32_t *)(socdev_va + UART_DR * 4); + + while ((*fr & FR_TXFF) != 0) + ; + *dr = c & 0xff; +} +early_putc_t *early_putc = uart_pl011_early_putc; +#endif /* CHECK_EARLY_PRINTF */ + static void uart_pl011_putc(struct uart_bas *bas, int c) { diff --git a/sys/dev/uart/uart_dev_snps.c b/sys/dev/uart/uart_dev_snps.c index b8b1f1f78142..b6efd1948b3e 100644 --- a/sys/dev/uart/uart_dev_snps.c +++ b/sys/dev/uart/uart_dev_snps.c @@ -54,18 +54,16 @@ struct snps_softc { /* * To use early printf on 64 bits Allwinner SoC, add to kernel config * options SOCDEV_PA=0x0 - * options SOCDEV_VA=0x40000000 - * options EARLY_PRINTF + * options EARLY_PRINTF=snps * * To use early printf on 32 bits Allwinner SoC, add to kernel config * options SOCDEV_PA=0x01C00000 * options SOCDEV_VA=0x10000000 - * options EARLY_PRINTF + * options EARLY_PRINTF=snps * * remove the if 0 */ -#if 0 -#ifdef EARLY_PRINTF +#if CHECK_EARLY_PRINTF(snps) static void uart_snps_early_putc(int c) { @@ -73,12 +71,12 @@ uart_snps_early_putc(int c) volatile uint32_t *tx; #ifdef ALLWINNER_64 - stat = (uint32_t *) (SOCDEV_VA + 0x1C2807C); - tx = (uint32_t *) (SOCDEV_VA + 0x1C28000); + stat = (uint32_t *) (socdev_va + 0x1C2807C); + tx = (uint32_t *) (socdev_va + 0x1C28000); #endif #ifdef ALLWINNER_32 - stat = (uint32_t *) (SOCDEV_VA + 0x2807C); - tx = (uint32_t *) (SOCDEV_VA + 0x28000); + stat = (uint32_t *) (socdev_va + 0x2807C); + tx = (uint32_t *) (socdev_va + 0x28000); #endif while ((*stat & (1 << 2)) == 0) @@ -86,8 +84,7 @@ uart_snps_early_putc(int c) *tx = c; } early_putc_t *early_putc = uart_snps_early_putc; -#endif /* EARLY_PRINTF */ -#endif +#endif /* CHECK_EARLY_PRINTF */ static kobj_method_t snps_methods[] = { KOBJMETHOD(uart_probe, ns8250_bus_probe), diff --git a/sys/kern/kern_cons.c b/sys/kern/kern_cons.c index 462cd0c45758..a99699ed5bce 100644 --- a/sys/kern/kern_cons.c +++ b/sys/kern/kern_cons.c @@ -72,6 +72,18 @@ #include #include +/* + * Check for 'options EARLY_PRINTF' that may have been used in old kernel + * config files. If you are hitting this error you should update your + * config to use 'options EARLY_PRINTF=', e.g. with the + * Arm pl011 use: + * + * options EARLY_PRINTF=pl011 + */ +#if CHECK_EARLY_PRINTF(1) +#error Update your config to use 'options EARLY_PRINTF=' +#endif + static MALLOC_DEFINE(M_TTYCONS, "tty console", "tty console handling"); struct cn_device { diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 376a35e7e8e2..f72f82c100dc 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -208,6 +208,15 @@ critical_exit(void) #ifdef EARLY_PRINTF typedef void early_putc_t(int ch); extern early_putc_t *early_putc; +#define CHECK_EARLY_PRINTF(x) \ + __CONCAT(early_printf_, EARLY_PRINTF) == __CONCAT(early_printf_, x) +#define early_printf_1 1 +#define early_printf_mvebu 2 +#define early_printf_ns8250 3 +#define early_printf_pl011 4 +#define early_printf_snps 5 +#else +#define CHECK_EARLY_PRINTF(x) 0 #endif int kvprintf(char const *, void (*)(int, void*), void *, int, __va_list) __printflike(1, 0); From nobody Tue Feb 13 11:51: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 4TZ06Z5Tj1z5B70p; Tue, 13 Feb 2024 11:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06Z21lcz44hX; Tue, 13 Feb 2024 11:51:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XdrCrUWD5GIZZL+clp/mRPm32l2OwpXDcrbzMtTd/8c=; b=dQTHrvIotW6bG6+xZIHSVitfsfbl2PBuRCoebAkxB+AsvF17QILvVrCdZTg16gBgc108C0 z0nPaubBrEHACNGCb8g73BJYKniF+xCxaQMVnEUb/8UztaznJpr5Je4gUAlXZnBcYWub5b njkYfI8ruBPrmuWsIH3fONWNAfJ99a4ba7eiCAngav5IMuEgYhqiY5b8I6hCFT3t81hcC8 ZCP5uJXcGJ7u+vK4AUs+U+LQouSMBGqVVpZikPBJr47uCqKN4zf66UGPJyVuHFkyOIohJy G0rDX32nNsCEkZ1YepamLHxEGF/ffnIYVvio7RyN94/4QX625g4KPDA460av+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825110; a=rsa-sha256; cv=none; b=OG2Cnb9slplMseVQmTkA6Vk533EtDDGGlqvpoQ4OAB0xj3KX+Tq62EMEOcN6vSd0GiAFBK StiOcU7230YkKrL1QlqAGlZ1IGGFB8P1kNJa736ArgJ7bLtVv7DRaM9KbccxVRA2VQXd1z 5g6Lq1StRdMJz54QFl71ApsowoD2MSCQz33JqERvXzSzDfpQBzpsbfjS76fFM7zKDd55LJ vz9MT3oPdnhUDP5Rxvl5jF+re2APnrTQKCu/mJaiTuFy/3z+Wx+0XZCuE51ddSd723D4Xk /zyKUjb+DAN7mU+qxEJFzdWLTJeNPC2bRgn8ndaHri/qIOowmmb4wDbMNooOxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XdrCrUWD5GIZZL+clp/mRPm32l2OwpXDcrbzMtTd/8c=; b=j7B/byT8XBTaWuiVo6IOWuPNMIHyPEZA6VuMgkNF0wz5zNT16tKD80ETlOK+NVfCFlqVJp itl4JwWtRDJvizNoG8I1Oo4hdaubfo4+BjhOmJ6ehRjUQYeKRqQT8k53OW966LT3aK/nrm miR9gmQyB2A6bUpd8IIbxYM8rN1IBuiQw1m0iMfH8wBhRfkQtAFk8ZYMc4rkK8w6TVYrWb OYhtzgt304Fn5bW5qYqppFYql0lHh+BkIOFbQ+ComF6vmDxA1QAWVwKZEUghvv8vPp60Xi 5LKFr7wjM+iGNmfgCI1x24GroJXbGUKYBKeEv1R/VS37eM0Ic/lLINuhLiHcsA== 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 4TZ06Z14hpzDbL; Tue, 13 Feb 2024 11:51:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBpoOM045867; Tue, 13 Feb 2024 11:51:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBpoao045864; Tue, 13 Feb 2024 11:51:50 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:50 GMT Message-Id: <202402131151.41DBpoao045864@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 949670f8f466 - main - dev/uart: Use a linker set to find uart classes 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 949670f8f46656a30ffbd22c9ae2cc645bda8533 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=949670f8f46656a30ffbd22c9ae2cc645bda8533 commit 949670f8f46656a30ffbd22c9ae2cc645bda8533 Author: Andrew Turner AuthorDate: 2024-01-08 15:02:29 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:52 +0000 dev/uart: Use a linker set to find uart classes When the uart is configured via the environment we need to find the uart class with a specified name. Currently to do this with an incomplete list of uarts. As we may not have included all uarts in the kernel each class is defined as weak. Switch to a linker set so the list is always up to date based on what is included in the kernel, and the class can be static. Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43361 --- sys/dev/uart/uart.h | 4 ++++ sys/dev/uart/uart_dev_ns8250.c | 1 + sys/dev/uart/uart_dev_z8530.c | 1 + sys/dev/uart/uart_subr.c | 12 +++--------- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/dev/uart/uart.h b/sys/dev/uart/uart.h index 5eae06ceba6f..987152283c81 100644 --- a/sys/dev/uart/uart.h +++ b/sys/dev/uart/uart.h @@ -29,6 +29,8 @@ #ifndef _DEV_UART_H_ #define _DEV_UART_H_ +#include + /* * Bus access structure. This structure holds the minimum information needed * to access the UART. The rclk field, although not important to actually @@ -99,6 +101,8 @@ uart_setreg(struct uart_bas *bas, int reg, int value) */ struct uart_class; +SET_DECLARE(uart_class_set, struct uart_class); + extern struct uart_class uart_ns8250_class __attribute__((weak)); extern struct uart_class uart_quicc_class __attribute__((weak)); extern struct uart_class uart_z8530_class __attribute__((weak)); diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c index 090909fdf8d2..f660639862ff 100644 --- a/sys/dev/uart/uart_dev_ns8250.c +++ b/sys/dev/uart/uart_dev_ns8250.c @@ -451,6 +451,7 @@ struct uart_class uart_ns8250_class = { .uc_rclk = DEFAULT_RCLK, .uc_rshift = 0 }; +DATA_SET(uart_class_set, uart_ns8250_class); /* * XXX -- refactor out ACPI and FDT ifdefs diff --git a/sys/dev/uart/uart_dev_z8530.c b/sys/dev/uart/uart_dev_z8530.c index 8e1adac0aec2..107fcb1eb4ba 100644 --- a/sys/dev/uart/uart_dev_z8530.c +++ b/sys/dev/uart/uart_dev_z8530.c @@ -309,6 +309,7 @@ struct uart_class uart_z8530_class = { .uc_rclk = DEFAULT_RCLK, .uc_rshift = 0 }; +DATA_SET(uart_class_set, uart_z8530_class); #define SIGCHG(c, i, s, d) \ if (c) { \ diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c index d10084cfa6d8..e7570e173358 100644 --- a/sys/dev/uart/uart_subr.c +++ b/sys/dev/uart/uart_subr.c @@ -48,11 +48,6 @@ #define UART_TAG_XO 9 #define UART_TAG_BD 10 -static struct uart_class *uart_classes[] = { - &uart_ns8250_class, - &uart_z8530_class, -}; - static bus_addr_t uart_parse_addr(const char **p) { @@ -62,13 +57,12 @@ uart_parse_addr(const char **p) static struct uart_class * uart_parse_class(struct uart_class *class, const char **p) { - struct uart_class *uc; + struct uart_class **puc, *uc; const char *nm; size_t len; - u_int i; - for (i = 0; i < nitems(uart_classes); i++) { - uc = uart_classes[i]; + SET_FOREACH(puc, uart_class_set) { + uc = *puc; nm = uart_getname(uc); if (nm == NULL || *nm == '\0') continue; From nobody Tue Feb 13 11:51: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 4TZ06b5Sxcz5B7RB; Tue, 13 Feb 2024 11:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06b2vX5z44hk; Tue, 13 Feb 2024 11:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=crnkgNeEsxJJ9glejUF3KJsns/W7I7wQrZpTX/j6rq0=; b=U+p2Wuhvu21M7qDbAo8xH26jRTKAK1E8TZEE2YYZoyn03n2PFmeXsM1mwTIIE1VvydAr0N dOg1pIFPfnxQU0ETR4r2I4EaaEvBAS4nX0zsqgDjh8/p5wHNwuTRZO6jZ11BnBTEfykj8+ 4R51NESROlY73/2ef/+kt/m11yYJ0VO1ZY5OI+XFNwrjBpl7gFfMOuDZGsrZ4+/e2qcUnY jxBPl219LRuiSZwxLjDo3JvHtbG4t+Twh4WBZoyC67Cnwwsb8knNAt2FKrKQJDbXt5Y0wf mkfBoKfOZ2Dzsasl5VQlzvpPd3B1ajug0/QWg20s9m14xxa5pstI1Uoc/b29bQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825111; a=rsa-sha256; cv=none; b=Tgo/AuQzSbTmzxBsViz0iHsO4rxCKn8e07H72/uUSuEKp/0E1w5ijdmetz2QUScovyXl4w fNx3rwEjgKSOF/DUEdf8y/+7N0dC3wNF2y2kD+9I34TYVMUknACrt+JfIxZe52MPw/hEd7 CznwmU6j0WGEGmCufcpN+r/jblM7qy7+3+Njf9CslB3EhIt/psscxQwKaeKqYCpb2BvqAe 10evMXmF6MDkzfr3I3RLeqCTCQ8LFrexFahK0va0IrrBlYXuN6Y8UbBLg2ZeB6F7kSEWH3 MUihF9iCQXmGGh8BllOKOjw7mTDI2xCSCdpfJgnoa7iOBi2pQW5xYVolnVMmKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=crnkgNeEsxJJ9glejUF3KJsns/W7I7wQrZpTX/j6rq0=; b=LZditPGhJB3/JK0yv2MI/EqEHwkvSzwILU8CDXMVe8RMB9fKpvo6b3+9u2y/UlBFDHdtPe F5Q6KQpwFG2pMGfrlWyvI1w+XC+Jh7xWf0k6JNufGcWdi+wi13dqTOIAgflJca6w+ACvwT ebGGAaBt/RHYjMdrG8otEyRLA9+FlMbOArYSHljChS8UscgSoruBehBYUDF6BTJASwSNZb W7pwZGL68zYpOYtHPIwoLTXNRgw+8+CKvRJXfGpEhXIjE9F9b/1dwE/Jp8UKN0oAVspWNG rnu5kS36rwhFZntEwnsHn6aTQ/5yJBvBo/zutHBnUXZE554mgbi+n+MJ0C1jJQ== 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 4TZ06b20r4z1Crl; Tue, 13 Feb 2024 11:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBpp2S045915; Tue, 13 Feb 2024 11:51:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBpppD045912; Tue, 13 Feb 2024 11:51:51 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:51 GMT Message-Id: <202402131151.41DBpppD045912@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: eae36de826cc - main - dev/uart: Support setting the register io 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eae36de826cc6fde3a78b1febad824dad20e004d Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=eae36de826cc6fde3a78b1febad824dad20e004d commit eae36de826cc6fde3a78b1febad824dad20e004d Author: Andrew Turner AuthorDate: 2024-01-08 15:22:58 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:52 +0000 dev/uart: Support setting the register io width Some uarts require a specific register width. Support setting this in the kernel environment. Reviewed by: imp (earlier version) Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43362 --- sys/dev/uart/uart_subr.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/dev/uart/uart_subr.c b/sys/dev/uart/uart_subr.c index e7570e173358..03c7fd8caea9 100644 --- a/sys/dev/uart/uart_subr.c +++ b/sys/dev/uart/uart_subr.c @@ -47,6 +47,7 @@ #define UART_TAG_SB 8 #define UART_TAG_XO 9 #define UART_TAG_BD 10 +#define UART_TAG_RW 11 static bus_addr_t uart_parse_addr(const char **p) @@ -148,6 +149,10 @@ uart_parse_tag(const char **p) tag = UART_TAG_RS; goto out; } + if ((*p)[0] == 'r' && (*p)[1] == 'w') { + tag = UART_TAG_RW; + goto out; + } if ((*p)[0] == 's' && (*p)[1] == 'b') { tag = UART_TAG_SB; goto out; @@ -225,6 +230,7 @@ uart_getenv(int devtype, struct uart_devinfo *di, struct uart_class *class) /* Set defaults. */ di->bas.chan = 0; di->bas.regshft = 0; + di->bas.regiowidth = 1; di->bas.rclk = 0; di->baudrate = 0; di->databits = 8; @@ -264,6 +270,9 @@ uart_getenv(int devtype, struct uart_devinfo *di, struct uart_class *class) case UART_TAG_RS: di->bas.regshft = uart_parse_long(&spec); break; + case UART_TAG_RW: + di->bas.regiowidth = uart_parse_long(&spec); + break; case UART_TAG_SB: di->stopbits = uart_parse_long(&spec); break; From nobody Tue Feb 13 11:51: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 4TZ06c673Cz5B7RF; Tue, 13 Feb 2024 11:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06c3Njnz44fg; Tue, 13 Feb 2024 11:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1gg33kFb9Gt0zNGNI6wQ1gEnY9T3uxO3nZp04nK+eJo=; b=MhigO8JiEoNftp7kGV+G9ie6dY6sR1oSXKZaa6kRY+bsK9+4tZSeoGHxbiXew8byAHfEp1 rhpPRs/Q5Y+0el5+Xp2MHblKPCIn/BPBcVMj1yi8dqKqR1Ngqhv8wdHNw/c+YM0vG/whz0 Mk8utSgzdvrU6FqtljQLJt4n97mo2t/dRB6nNHEXIjkhqjLkeV6QnMrFTaUCqA+4BSQ/Ac 3L37avtqmQRciVbtvL4MutLcGbGZcSR64XGYGASlodW3QO3eCwWY3RaYrP0ZFj7vumC33G GOGSGLBjwtnEgPhRO1mwsdkHMinw614gGTarpKW1uODBFFmLoJxosB/BxYHssQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825112; a=rsa-sha256; cv=none; b=K5FB+g/npOc8xBcTXJhRoi1Pr4dhd6Or6Ok3W+paq8himQ4O+5fgx6HSN6C73ASG3+oBHI g6TEdYVUiJ1Ru0LvfOxhb1ZWpNyERTMBrneNPLSRLAs2J0dMA1S+7XYdFefBVgOlnHrp1a LX2umfMArRZ9siM4nGF3iCxfcgPjGQka3WwRCL6WDBEre7pV0RfMKKFXAKqzgz4RmVOiuu vN3wyyq2gHtx17SQURYtjYj686KCCnmosSaJdrTQ9/0XY5bORYDr/AynOfdRTndd8qDABN 3OehwJriE/6ldGPZBykONtW6MqleXB3LdGui69GtzSlpjFSvPDQtkSF+sdssOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1gg33kFb9Gt0zNGNI6wQ1gEnY9T3uxO3nZp04nK+eJo=; b=v0omh1fSMKUzVe2gd7D7ptjoT2QrrFwf5Mlzd898agM31LDtza9QpkZtN137gZEQXy/nQL nTgZ/REzo6MMTmxmqfktLkPGolJ0MoifH8fIklPOcJ19ucKMMsCieRKzHfY/oST1bpjKk7 tiXlpxSW5WBQ8JaABqYbDHy+XD7kWIjCvKkDky4MeHazriik+wuS6b+6+6Ewm3EDesQQS+ afBDXEUIGsidRdtqv97IjBhJotwXAbJ0yve+y1RbWdt7vTAZdpHFG/G3VxwLgsNJzBQv2E eKCp+dfIOXbi9j+agSPznLMFZy/cOHDBUo0+JfT7mRp7ICUcYqkDKu4+A6tPRQ== 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 4TZ06c2TPWzDyk; Tue, 13 Feb 2024 11:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBpqKX045968; Tue, 13 Feb 2024 11:51:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBpqvl045965; Tue, 13 Feb 2024 11:51:52 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:52 GMT Message-Id: <202402131151.41DBpqvl045965@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 53391af1518e - main - dev/uart: Support the pl011 uart in hw.uart.console 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 53391af1518e6e72545d720c8069b24aa253edad Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=53391af1518e6e72545d720c8069b24aa253edad commit 53391af1518e6e72545d720c8069b24aa253edad Author: Andrew Turner AuthorDate: 2024-01-08 15:24:33 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:52 +0000 dev/uart: Support the pl011 uart in hw.uart.console Add the pl011 uart to the list of supported uarts for use by hw.uart.console. This is commonly found in Arm based devices, and a variant is standardised in the Arm SBSA. Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43363 --- sys/dev/uart/uart_dev_pl011.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/uart/uart_dev_pl011.c b/sys/dev/uart/uart_dev_pl011.c index bfcf8cf1584e..d91ae256f2a3 100644 --- a/sys/dev/uart/uart_dev_pl011.c +++ b/sys/dev/uart/uart_dev_pl011.c @@ -332,7 +332,7 @@ static kobj_method_t uart_pl011_methods[] = { }; static struct uart_class uart_pl011_class = { - "uart_pl011", + "pl011", uart_pl011_methods, sizeof(struct uart_pl011_softc), .uc_ops = &uart_pl011_ops, @@ -340,6 +340,7 @@ static struct uart_class uart_pl011_class = { .uc_rclk = 0, .uc_rshift = 2 }; +DATA_SET(uart_class_set, uart_pl011_class); #ifdef FDT static struct ofw_compat_data fdt_compat_data[] = { From nobody Tue Feb 13 11:51: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 4TZ06d6VkJz5B7FD; Tue, 13 Feb 2024 11:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06d4Mp7z44dR; Tue, 13 Feb 2024 11:51:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xyaQ5V0lzVOBiomMuseJByeZFkZgrQsMuHrePLuff9o=; b=rfn9EzCIRAwMcOt0SqoKr2rb58q1xT+m8c8d7mnJKY4lTwXF9QIshsz304f9EtmbIn8i5w ZTP97SoQEf/nUrIdpeiq60kDTEPw03j31prPNDtuBreUbS5Kz5QcrHxou/iS8yNT/K0fho fK6+AsK1sn1I58IjOo+8BEblgbKkExvGZsU1C+C/c7NmWuGDEGduD6awjWW0f7T0LeXmLZ EKP6ITZBi/1rq1KF0sxL9Zbzep5+HkfggJzsr9SnutnPaXLIoLhKq0qmD9GTNNQX4I4l9O X8O4uW2Ark0+9WeOja9N+P0VCMSzwwcjWjLGWEJgB9PULbxk4tLS46B3D4fmig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825113; a=rsa-sha256; cv=none; b=biX8HqxJuEMmwJZiQ0KAMREN51WKNErHiCkKk8hrOSG5SIT7hPgTGjee5RJvSDTChQxSvw eNpsaBZDOmDtUg3ybycej6HwirMXNQwDFJfZv1LE9y65SpQlli/a8aTNAz4D2MsozwL823 OhdjV6JRKimCFUM6VLyP+tSqH99bF8BDCTyBgE8WPpjy3DNVq2pJloiADQz/nOPScOG07l JgaS5lXtj6NxEglxItpKVuZMo+Dhz2edCdzv/dN73lgz+Ithobs0qS9Zjsa/HzsSxbPQoX qNE6182whnXOFllgL7KYCbEXAg2BRNtPssZO+/54p4m8LnkMnkFbQ/7nXfnjOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xyaQ5V0lzVOBiomMuseJByeZFkZgrQsMuHrePLuff9o=; b=areZL4OI3j9Iw75OzWafAiAxgMBzNrZFtsYlN9cfTNkD8a7Ge0SKAL5vtrrpLzqGrUiZ8V dzvo9UNb/mt9Gwd/LMBZlc42ZXmaEoQMyqKJiESv5TUfrXRd7wwwxjtwzlvztR9E1fokut c1N6aR6cBOSNF8MzDJPnHw56lSKY841RK/v4WB+T95j4iPOH42EpMYifivrBLNBhl25/Rx AB33b0bl+K/U6YNPtNc9IHGkj6tyYPPOboc8O474gWjOp5I60sfw4c8LEOMQGhTwOvDwtv g/xuHsTfpYMtDwPt5XGUz3tWuh1omuocJzwXpVJGJ3+Z0AQDOhwen/1pV3EsYw== 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 4TZ06d3JVwz1Chl; Tue, 13 Feb 2024 11:51:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBprp7046025; Tue, 13 Feb 2024 11:51:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBprMO046022; Tue, 13 Feb 2024 11:51:53 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:53 GMT Message-Id: <202402131151.41DBprMO046022@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: b889b90adb1c - main - arm64: Add EARLY_PRINTF and SOCDEV_PA to NOTES 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b889b90adb1cb3ba36a769576ee595e6e86dd84b Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=b889b90adb1cb3ba36a769576ee595e6e86dd84b commit b889b90adb1cb3ba36a769576ee595e6e86dd84b Author: Andrew Turner AuthorDate: 2024-01-08 17:25:02 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:53 +0000 arm64: Add EARLY_PRINTF and SOCDEV_PA to NOTES This ensures they are build tested. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43364 --- sys/arm64/conf/NOTES | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/arm64/conf/NOTES b/sys/arm64/conf/NOTES index 031b5f9567b5..48cd2647df70 100644 --- a/sys/arm64/conf/NOTES +++ b/sys/arm64/conf/NOTES @@ -121,6 +121,10 @@ device uart_ns8250 # ns8250-type UART driver device uart_snps device pl011 +# Early printf using the pl011 uart under the Arm FVP +options SOCDEV_PA=0x1c090000 +options EARLY_PRINTF=pl011 + # USB support device aw_usbphy # Allwinner USB PHY device dwcotg # DWC OTG controller From nobody Tue Feb 13 11:51: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 4TZ06g0wzpz5B7FF; Tue, 13 Feb 2024 11:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06f4rtgz44nD; Tue, 13 Feb 2024 11:51:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z2RQkk6uvEE0dmZzUHUdqNgKzKnAaShPe9eMR31OamU=; b=i6EK7o6aw0ZZL9a9zZf4fhtK07mUk8JVUfmdjhzGUHLAueBTXe3k7Vr7hXModYu15JEg9Z dlHn5mBn3Spcm3HzkymguPF35XQwd8LL5SNVYhRTJsO389K4QXgdE4FYc8s8zapWH9clin cOmURMxXjk8VFYj8HKX6EBgNP9+jBHBNa8BhWQnb4HlKtkIcXM1gu8Busc01HKcuCVwe0x UbQCo8Dko+3wU1jdx5TKrCylWlaNLcm/FGMpFWpqKA7VWeMAEaNT3+SMR+bgygAv1HleaK ZLRbvwoLv2V6nq/SlfFfwqUjP9nvP9gcmpwCLlFqAs5l419nJ5u/NhS9WSFVKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825114; a=rsa-sha256; cv=none; b=SD6lfrAwaNpqXlx1mkxoZheMKWKpZsG1aUHotQUJ1hWIU5SOJNpvg3zp/KCTEXTlRQTfKW IRdSO+bijOKU1Ypy9Up/G86ALCuhGAms2RGElSHUS9qMXJWyDwC7t8MDmpXrqINYg0uXW4 VOkSuyWOnWcw70Pmr7OQhE61YMjcvXtquZ9SIvuddJI0CMg+PrPsGGwnIIkD1QUIe93VKs hl38E15l3Zg0XlUlHhOj5hIibSGMr6qmQU5XinCNib2N/ftyTkMyO4d3s7N/5f69KCDmOX Uxty8m4twnaiiP76EmvfP7NM5DujEUTdkImxqr8+AAdvi+4lg1EOb1hUHTGSAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z2RQkk6uvEE0dmZzUHUdqNgKzKnAaShPe9eMR31OamU=; b=V/JM7iKcvbJSTVFfT+qz70j/eB/NZUHL2ltK8ooosTriwI361KHR46DhsReq9ZDSjMeXyN XrWlbBA78RywoldK81lbRemGZGs0tRKcbw6aCFXuZuWD0++YfO2ROb5apTVVcdPEDUYoxK Bp48a5sPdDQH45j03e6AILZErGv8ltdCeA+2DNS4/t+v12+Esob93XxRrfRDQrfY75OY3W TWugQCnT5NRYRzlNySVMslyk7Y/8rN3UXuAks7sX0MUbUYEXruoApVvsSCIIta7plSAGWl VKFMJjbPMxQPYEez34ak3PhORsNJnt1KlA7fwza1tNopzlDLkVEihKXrW5q4Xg== 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 4TZ06f3wY2zDbQ; Tue, 13 Feb 2024 11:51:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBpsPC046171; Tue, 13 Feb 2024 11:51:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBps7v046156; Tue, 13 Feb 2024 11:51:54 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:54 GMT Message-Id: <202402131151.41DBps7v046156@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: a9fc9d6d15f0 - main - dev/uart: Support 8-byte register access 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a9fc9d6d15f006feb6d7ddb036e020d5f9d19fce Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=a9fc9d6d15f006feb6d7ddb036e020d5f9d19fce commit a9fc9d6d15f006feb6d7ddb036e020d5f9d19fce Author: Andrew Turner AuthorDate: 2024-01-09 13:29:47 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:53 +0000 dev/uart: Support 8-byte register access While we only support 4-byte registers in the uart code the physical access may be to an 8-byte register. Support this as an option on non-i386. On i386 we lack the needed 8-byte bus_space functions. ACPI has an option for 8-byte register io width, and FDT can be given any size. Support these sizes, even if we don't expect to see hardware with an 8-byte io width. Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43374 --- sys/dev/uart/uart.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/dev/uart/uart.h b/sys/dev/uart/uart.h index 987152283c81..4cdec00c9829 100644 --- a/sys/dev/uart/uart.h +++ b/sys/dev/uart/uart.h @@ -56,6 +56,11 @@ uart_getreg(struct uart_bas *bas, int reg) uint32_t ret; switch (uart_regiowidth(bas)) { +#if !defined(__i386__) + case 8: + ret = bus_space_read_8(bas->bst, bas->bsh, uart_regofs(bas, reg)); + break; +#endif case 4: ret = bus_space_read_4(bas->bst, bas->bsh, uart_regofs(bas, reg)); break; @@ -71,10 +76,15 @@ uart_getreg(struct uart_bas *bas, int reg) } static inline void -uart_setreg(struct uart_bas *bas, int reg, int value) +uart_setreg(struct uart_bas *bas, int reg, uint32_t value) { switch (uart_regiowidth(bas)) { +#if !defined(__i386__) + case 8: + bus_space_write_8(bas->bst, bas->bsh, uart_regofs(bas, reg), value); + break; +#endif case 4: bus_space_write_4(bas->bst, bas->bsh, uart_regofs(bas, reg), value); break; From nobody Tue Feb 13 11:51: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 4TZ06h0S2cz5B75s; Tue, 13 Feb 2024 11:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06g5l8rz44qq; Tue, 13 Feb 2024 11:51:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825115; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M5btQu7jlOihjDuBGwJil1S8uesRu9C/CQKGJTAdWFc=; b=Osxf58aHfbi3dglkXNSsT/+6pcnQVQC61gMeSgsAkONFIO6KYUT6sUXM5ch2uZqtNHlDuP dcJjeasqR7uhP0MxjlKjCB7MY48RBOB8xL9MjHZ2rQftU+tqnUnP9Fa1NsvMs6R1Jxykoh HA+zYmPO1KW+7EPk5APob562x2zsH5GME96DqUF9VoIH5vGO0FeGcyqVBgQbEmDBrUZi+7 vf+gPpjtoMSfQA4LNUSBON3CkMzwDlDFJn5bmpFR/k2SG5ywGq3D4K6Kg20qr2dbtLpXTq Fg2ausJmRZOXwMiqbrD+1tgGL02ZnUXobsl0BlkTFYvlTeJg2278cmR9TRjGgA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825115; a=rsa-sha256; cv=none; b=j3cXE0LR0N/O4S37TGA2/6fSgqM4Be2lDPxsOvhqFJmqCfDKm16gJcGtKYkDWBvv/+TfQ6 xRRAqlo7SmPUE3962zQuD2J92irsHYRDxzx8L0EC/vDUEeVKNSNPyHnGcSwLmBBNXVpwCF dCdXwftehkJath04XvA3bgYhdHGPUQ5aOLqqiVooKPisMImFL+KknqlxScDe/cESDDjnxq yLlXVKpajRC1AzXvI8Z8AhbZi/K4f/74bv6QKaweXUGp+mhpwhjB4o2kj4iNKwxGx1XcRz UwivRYQ2decNtd6Iva3KSId0OHER9yYGejHaaT0HJbfmDTusHIPi4yIdf9w8vQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825115; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M5btQu7jlOihjDuBGwJil1S8uesRu9C/CQKGJTAdWFc=; b=ciCFBh5VTb35jm8ziLtJmnrLnwZlLqIzuYokAa6JLGZlxm0ZJYt3n6lpGjSanyDbQmTKm1 n96GoU/iIfMmLGkRXU98d2bjVi2nm0IocVwt+B95ZOa27QPwAYufJJFP0Ri4qzciWsA2pL XlVS1RjhHZN+58qC3o5bbs3Qu0xHyQtdhK+H4Q1ysxgkq6CmetATijRcuI/O6Kw39VdCy4 wxZryYta+w+2MjY0MJX5tqUCzEVy40c125QZ5yooflEHxB20ozwjT7OytYT/FAiTi4eNz3 IUaSn4iOhSY8bLxfV10ixbtwgGXk6Q5AsrfSLpxpO9k1MD01KUDRO7SXxGS/RA== 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 4TZ06g4kmrzF29; Tue, 13 Feb 2024 11:51:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBptLw047348; Tue, 13 Feb 2024 11:51:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBptlO047332; Tue, 13 Feb 2024 11:51:55 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:55 GMT Message-Id: <202402131151.41DBptlO047332@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 69e4b35eb35d - main - arm: Add EARLY_PRINTF and SOCDEV_PA/VA to NOTES 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 69e4b35eb35d159e0472acf72661b491d730e7fc Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=69e4b35eb35d159e0472acf72661b491d730e7fc commit 69e4b35eb35d159e0472acf72661b491d730e7fc Author: Andrew Turner AuthorDate: 2024-02-13 10:08:11 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:53 +0000 arm: Add EARLY_PRINTF and SOCDEV_PA/VA to NOTES This ensures they are build tested. Sponsored by: Arm Ltd --- sys/arm/conf/NOTES | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/arm/conf/NOTES b/sys/arm/conf/NOTES index 74ee03dd4764..994cf9a59b5e 100644 --- a/sys/arm/conf/NOTES +++ b/sys/arm/conf/NOTES @@ -56,6 +56,14 @@ device syscon # Backlight subsystem device backlight +# Serial (COM) ports +device pl011 + +# Early printf using the pl011 uart under the Arm FVP +options SOCDEV_PA=0x1c090000 +options SOCDEV_VA=0x1c090000 +options EARLY_PRINTF=pl011 + # Undo options from sys/conf/NOTES that we do not want... nooptions COMPAT_FREEBSD4 From nobody Tue Feb 13 14:24: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 4TZ3Vv2XWLz5BQ3T; Tue, 13 Feb 2024 14:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ3Vv1bTRz4Qpf; Tue, 13 Feb 2024 14:24:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707834279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m0M1bMWyS9rRuA44hijx95NWv8zh5ggBR86Qfa2fMYM=; b=b4eTmfmMo/ht5kGsld1sx1LlQEb+AyyTPVEa7soyEn0vfvVGZtblRPLpdyNi7DXJ/pFU+S nAF2/zOIt2jMbagKw8ABGTImcL3jfHU3S89gSliT7yiVMq5FfUluP+6dU0ls6KwogFx4If mz0NtxwEj5mN0tFHOMFG4OzXVYOrdXAm/e+oHqC258+GMWipk87mhmxgvSwRF9lS8+8rtx 2QKRfY4kOPCVLBDCwsKADtXBxcaVA/UW2VEoFSzTtr1jqDt9iKDxZ0ZFhSSo2u754Djzl7 //2F/lAJWJPPZpCgddq+diaStr5yuRj3D+bzHLBamVjxwjKsNK+tQApBsBTVIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707834279; a=rsa-sha256; cv=none; b=cQq8kyb+pqAbRmAzxbEiwAnJcAvUoXtZ9mvM6ZBfOHqvfJNFmXezZmzGjVhwDcGsbHYXGh WEKD0wTFfw3l4kN1DfV1rloj0uQ/GqYSr00QZ9SBKWxi9HhF7GqzXw/AbhgKoWsIxXPQpP nO+0HUWwW/JgslwS9V/Ryn9HsE9PkCxO5OpZGm03qvkVHNYsH2NnDN4Jl4emZqpeIvpYiI 33w+jEwrKTxuybk79zPx1aNFWktpr1255Uu7B9rZtsg/Jld2oqD/ZDHVokXH244OiAgmJz GuDFCfiUwhs8xkTxDPMVCIQZhx19MxoDPgWdR8sTO36FgqyAN/hPBcuH8gGNqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707834279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m0M1bMWyS9rRuA44hijx95NWv8zh5ggBR86Qfa2fMYM=; b=Bep3rieDMue1jp2mMv6KzkzxJzc/bK1F7Xu/MANS34S+buyZsOdktGE5qxLp1yoX+i7v9m 5A1/dOrCJpna1XSOQfEzDURCCARYR1EsnuRgsDrTH37iRNsSuNLQESUwxFGuYI1AlpSfGk gs0l4y7QfdSDFlqoGSns1aTfaWzQQrC8zxcQtLbuhHXQ2SDbYMWduVtm6bdW6V0iStQFqx hpILPEydWm23StHB+ITr0BKpmc4NbjsYP/X20GYPmnPFNb5//0+jnk5e1gknkIb0Oqofgz H902pJfpiCOZfwJrPFfl8x5HZyrmcBvBQkAohcqqUc+cHfzgbX1cuCWZZce34Q== 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 4TZ3Vt64jgzJfn; Tue, 13 Feb 2024 14:24:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DEOctd001279; Tue, 13 Feb 2024 14:24:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DEOcXH001275; Tue, 13 Feb 2024 14:24:38 GMT (envelope-from git) Date: Tue, 13 Feb 2024 14:24:38 GMT Message-Id: <202402131424.41DEOcXH001275@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: 9ea864b54b57 - main - rtld symlook_obj: move common code to check filtees into helper 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 9ea864b54b57f2d0125860fb923f8db52b20eac2 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9ea864b54b57f2d0125860fb923f8db52b20eac2 commit 9ea864b54b57f2d0125860fb923f8db52b20eac2 Author: Konstantin Belousov AuthorDate: 2024-02-13 00:48:42 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-13 14:23:41 +0000 rtld symlook_obj: move common code to check filtees into helper Revieved by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D43858 --- libexec/rtld-elf/rtld.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 24abc4580f53..31560b79f19e 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -4690,6 +4690,20 @@ symlook_needed(SymLook *req, const Needed_Entry *needed, DoneList *dlp) return (ESRCH); } +static int +symlook_obj_load_filtees(SymLook *req, SymLook *req1, const Obj_Entry *obj, + Needed_Entry *needed) +{ + DoneList donelist; + int flags; + + flags = (req->flags & SYMLOOK_EARLY) != 0 ? RTLD_LO_EARLY : 0; + load_filtees(__DECONST(Obj_Entry *, obj), flags, req->lockstate); + donelist_init(&donelist); + symlook_init_from_req(req1, req); + return (symlook_needed(req1, needed, &donelist)); +} + /* * Search the symbol table of a single shared object for a symbol of * the given name and version, if requested. Returns a pointer to the @@ -4702,9 +4716,8 @@ symlook_needed(SymLook *req, const Needed_Entry *needed, DoneList *dlp) int symlook_obj(SymLook *req, const Obj_Entry *obj) { - DoneList donelist; SymLook req1; - int flags, res, mres; + int res, mres; /* * If there is at least one valid hash at this point, we prefer to @@ -4719,11 +4732,8 @@ symlook_obj(SymLook *req, const Obj_Entry *obj) if (mres == 0) { if (obj->needed_filtees != NULL) { - flags = (req->flags & SYMLOOK_EARLY) ? RTLD_LO_EARLY : 0; - load_filtees(__DECONST(Obj_Entry *, obj), flags, req->lockstate); - donelist_init(&donelist); - symlook_init_from_req(&req1, req); - res = symlook_needed(&req1, obj->needed_filtees, &donelist); + res = symlook_obj_load_filtees(req, &req1, obj, + obj->needed_filtees); if (res == 0) { req->sym_out = req1.sym_out; req->defobj_out = req1.defobj_out; @@ -4731,11 +4741,8 @@ symlook_obj(SymLook *req, const Obj_Entry *obj) return (res); } if (obj->needed_aux_filtees != NULL) { - flags = (req->flags & SYMLOOK_EARLY) ? RTLD_LO_EARLY : 0; - load_filtees(__DECONST(Obj_Entry *, obj), flags, req->lockstate); - donelist_init(&donelist); - symlook_init_from_req(&req1, req); - res = symlook_needed(&req1, obj->needed_aux_filtees, &donelist); + res = symlook_obj_load_filtees(req, &req1, obj, + obj->needed_aux_filtees); if (res == 0) { req->sym_out = req1.sym_out; req->defobj_out = req1.defobj_out; From nobody Tue Feb 13 14:24: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 4TZ3Vw2KGsz5BQ3Y; Tue, 13 Feb 2024 14:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ3Vw1RXzz4R0n; Tue, 13 Feb 2024 14:24:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707834280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0idwtNl1gktbVPcjepGxmRR6NqImV3HOWep/8wwRrOM=; b=YrlJX6c1VIPv3PGfmAjzdt3QxEyfhNu5A/LxbU4HOsE13JChlih7hbGgFzamsMigvYYMYz MWZVsC/oj1DDNhlZfQ1ToHsv8XR9Toafxt/UhF8wpA850yOgrkHkNw8tVmeRzwZ+bft5xL TqlOm4SyGXLWwYj0xSeCqBIHJGc6/Fhww/6dyf4FPqkDKjcAFuQkcMV+s9G/8d3FY2T5d5 dICrDyYNc+TKcyaLAlobBp/B50rveJx7fVKAQ6DetcjmJXfWrz7lS9yBjudaLl+xMp6TQD SuPuGWO6AT+OXT8gcx5lWpho/lI4/gRT7DjrqW1H1G8jxtwAo8kRtG3zpb8xsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707834280; a=rsa-sha256; cv=none; b=hFTz88OFAHNiW1LPAi5WyH91JtTLEW95erkIqYv0XMMt6P1GyNSjh8zGfXs9dV9XYhB3KJ i0HErN9fhLjg5zlncY56T+zCFhNic6AC4EU/I+KX1ew1dqYGKQgkfiXL9HzNemyCIt4rQL YQLQ2chXF71Ohfu1WVTBWZvKYyqcYgdEd2PgOR4JNV3uDLSgAMV8WxDw348LGfwR+lRBgE SVe932eva34tQmdqzsEInWaNRf3d0EUTkArcwo1+OgqGIBT23ALB8uebZYIDElLa0+NRCr 6sGj2ohmm9kRWPcSl8kr07sGrryEGq8x2QALq2+3SOJqwrjZQuYynfyCFsCLaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707834280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0idwtNl1gktbVPcjepGxmRR6NqImV3HOWep/8wwRrOM=; b=lu6n5hqhDbXNyJmuLU5YLBDfcWwSTWquSVs8XQ+rCZKQrrsvzkjcP58o2DNEc0vUIw1AAL S6ogy7dlrh6jpz6RtGmcCZIkFtdyf4FKd37Vy6Cb6wgGEIDpZ+Efnm99efq1f7opOmce7v wiYM8tfOu1Uxb3w66L2hiQPx6+aPUk2ZvEHlGLdHCMRzQzT1CpIvHPZMpa23p8+vGPOI92 DSLpJEAoeYLuGwevKCPa1rPP8Zzb63DZ1rlGl1ZYaJ5e0TZLNEC5WdQwwnzNq8XmW6xufI KgGSlek36kA0Vu+4abzV1EjboCZeT656OTHiiykfL0YsnvCZjgR5FX/iNrfJQg== 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 4TZ3Vw0H9GzJX8; Tue, 13 Feb 2024 14:24:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DEOdtj001328; Tue, 13 Feb 2024 14:24:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DEOdjb001325; Tue, 13 Feb 2024 14:24:39 GMT (envelope-from git) Date: Tue, 13 Feb 2024 14:24:39 GMT Message-Id: <202402131424.41DEOdjb001325@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: 30b5f6b33b35 - main - rtld load_filtees(): reindent and reduce block nesting 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 30b5f6b33b35623e6b6aa1d27a78311e199fa602 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=30b5f6b33b35623e6b6aa1d27a78311e199fa602 commit 30b5f6b33b35623e6b6aa1d27a78311e199fa602 Author: Konstantin Belousov AuthorDate: 2024-02-13 01:19:43 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-13 14:23:55 +0000 rtld load_filtees(): reindent and reduce block nesting Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D43858 --- libexec/rtld-elf/rtld.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 31560b79f19e..dfd9e74407ed 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -2582,13 +2582,12 @@ load_filtee1(Obj_Entry *obj, Needed_Entry *needed, int flags, static void load_filtees(Obj_Entry *obj, int flags, RtldLockState *lockstate) { - - if (!obj->filtees_loaded) { + if (obj->filtees_loaded) + return; lock_restart_for_upgrade(lockstate); load_filtee1(obj, obj->needed_filtees, flags, lockstate); load_filtee1(obj, obj->needed_aux_filtees, flags, lockstate); obj->filtees_loaded = true; - } } static int From nobody Tue Feb 13 14:24: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 4TZ3Vx4gMRz5BPvl; Tue, 13 Feb 2024 14:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ3Vx2ZtYz4QbD; Tue, 13 Feb 2024 14:24:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707834281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kjy/7WesmPH2LLgkmYgeq3pJJWbm6gmrLTrKzYD9Wjw=; b=iUGzDxyidAoi152KGAUHQIdqoPOElzpOVpcB0SWc5YcEzv5ZgqX8VQotNUtIW2CEjdGn2e zdfsYFGPKr6BADKPvHhW7hdeIjMoRQcNfhzqy6UgyXUzmUilU2fnP6IKpb8O4XY6JrZySp kchJ2gFmkjuHehDhGSGj2ZLXfb+TaO8tZyV+3Th0yp0XsRCPuUM1zzoPKe6ERvDJuk3oyZ qUOnAoH1P72IsNW0rnB1V38Htx3l9DwKKW430uMfyAiYnk+mWU8TrqEdAqH4Tn4D++bPu1 SQvTP3q/E1IpRmZI6YYP2PFw/JvwrSplfzRmSyhrf8mjkbCpTbsUlqhIGobFCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707834281; a=rsa-sha256; cv=none; b=eMkV+v2fZuPzL14u0tE4/XrWcXx55jHytG/f3J5x0dnTayFF4THVjKZjBGTcqx0j/3Ftuw rE6WmTyvWeX5eJ9OOCW3bXgkwQpSVbaTMOhxD9TYENQQtTkLNXIZesFEM/E6YRt66AmusV C1MhteYMmrf0vTpZA1/BZAv6IRCGVx34L9+6qVUDgveDhlx6N67EFsIuUPcreEJ+QLzTQY zeuq6CRcVvKMFcJlfU+uUqO2uHaUqB1Ykis5HqTGMFwHpQH7KxreortbQDuagJWprRs5WP X3VlRepPJFBDlqJH7jSEGaUFT58VlC+Sy4sKLwOIRIGyca7O7KDmyCSRFqIoEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707834281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kjy/7WesmPH2LLgkmYgeq3pJJWbm6gmrLTrKzYD9Wjw=; b=ncO/y1/6h/kYdEHQdCNlLy+cjCK8QLUEPuIyd9kgwe3dRJNgGAQ9K3dphnanRoFI22b4+t ZZ+bx1RImOtHfMgugWiVWBlaqZ//kwHcOTQiCaEEykP/tZ4V6tN9tb4Ompko08CEc0+uVD g9weAoUeHZO0S0vnF3PGoaXbfnfYwzVU2F05hhHgJG0D2C47xVOyTpqNHShL7hMGN6TLFU cllJhnglylxbytLfUxoKzFo5ed6D5z1rxEWl/TIkbwXdqGgHwHxs0gnuz9Qe880iv0I1u4 G3bk1txyiK+Mi3D3sC98uP6L9KdBOpF6mbNX+KWiZaPN6R9Rq3GoYHZeozUKlw== 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 4TZ3Vx1PCRzJX9; Tue, 13 Feb 2024 14:24:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DEOfuS001391; Tue, 13 Feb 2024 14:24:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DEOfTj001389; Tue, 13 Feb 2024 14:24:41 GMT (envelope-from git) Date: Tue, 13 Feb 2024 14:24:41 GMT Message-Id: <202402131424.41DEOfTj001389@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: 968a18975adc - main - rtld: ignore load_filtees() calls if we already loading filtees for the obj 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 968a18975adc9c2a619bb52aa2f009de99fc9e24 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=968a18975adc9c2a619bb52aa2f009de99fc9e24 commit 968a18975adc9c2a619bb52aa2f009de99fc9e24 Author: Konstantin Belousov AuthorDate: 2024-02-13 01:09:03 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-13 14:24:01 +0000 rtld: ignore load_filtees() calls if we already loading filtees for the obj in addition to avoiding it for already loaded filtees. Issue is that during load, rtld needs to resolve some special ABI symbols, like executable stack fixer and static TLS initializer, which might trigger recursion. Example is libthr which is filter for libsys, and which exports __pthread_distribute_static_tls. Tested by: kevans, krion Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D43858 --- libexec/rtld-elf/rtld.c | 4 +++- libexec/rtld-elf/rtld.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index dfd9e74407ed..7d6b8ae52703 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -2582,12 +2582,14 @@ load_filtee1(Obj_Entry *obj, Needed_Entry *needed, int flags, static void load_filtees(Obj_Entry *obj, int flags, RtldLockState *lockstate) { - if (obj->filtees_loaded) + if (obj->filtees_loaded || obj->filtees_loading) return; lock_restart_for_upgrade(lockstate); + obj->filtees_loading = true; load_filtee1(obj, obj->needed_filtees, flags, lockstate); load_filtee1(obj, obj->needed_aux_filtees, flags, lockstate); obj->filtees_loaded = true; + obj->filtees_loading = false; } static int diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h index e8b15095812b..6311b3e6cc7f 100644 --- a/libexec/rtld-elf/rtld.h +++ b/libexec/rtld-elf/rtld.h @@ -263,6 +263,7 @@ typedef struct Struct_Obj_Entry { bool on_fini_list: 1; /* Object is already on fini list. */ bool dag_inited : 1; /* Object has its DAG initialized. */ bool filtees_loaded : 1; /* Filtees loaded */ + bool filtees_loading : 1; /* In process of filtees loading */ bool irelative : 1; /* Object has R_MACHDEP_IRELATIVE relocs */ bool irelative_nonplt : 1; /* Object has R_MACHDEP_IRELATIVE non-plt relocs */ bool gnu_ifunc : 1; /* Object has references to STT_GNU_IFUNC */ From nobody Tue Feb 13 15: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 4TZ4cv6xxDz5BVwm for ; Tue, 13 Feb 2024 15:14:55 +0000 (UTC) (envelope-from pfg@freebsd.org) Received: from sonic301-31.consmr.mail.ne1.yahoo.com (sonic301-31.consmr.mail.ne1.yahoo.com [66.163.184.200]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ4cv4wXfz4ZB4 for ; Tue, 13 Feb 2024 15:14:55 +0000 (UTC) (envelope-from pfg@freebsd.org) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1707837293; bh=b15CkXVXUQhJf3tFELai4RLB69958/safd2j3Z1PRJ0=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=Ab9Rnnodz2rel9JwCSnmw2gp7lsxcy3A8ubwdNXJSj2Tei8YrqxhaIUfAsTEoLQSVoftjystgDAVohQr5bgftfDw2xCvt4EJlVXA/qaWifKSepO9xOUjnhrVfvDiBnMubV1kSufLdLf2ObaeUE7cduOpfLu5qlT3M+gGm+GcJFFn5RyB/q7LBtmFNc67z1oOHI+fIo71brtbW6zMFbLLZinTNPbELGhEKrmZhZHccvyRJn8Us5FSo1EWaI4QECLG4U6NVSlPHAzeo99UMMMeEz0GVXErQfZITqAwkWR+9h0A/LBdp8z+G6kxgzIdKvSbZOL0tgD+OEEo9MZAV4EbUw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1707837293; bh=gotXTHp1QKLC1cn8JpTvKeAopo4W+wbGga1e7E6G0Xw=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Qa3LzR4LEn01+00bQ7Q6lLBDOoFH6g/N+1xPtHU9K8p2SQBDImgYbASBNslPGy6ipLs8zsGy6owzYQW/EDlMmzwCo6IcAeOlpx0rbtABNP9SaOttf0Xg9cFnEsW6qzbsmsCESKuE8ftBI7llmTpWpVdO5FvhcpAh7o0igF5PAgZKphKsbOoW+jDGWiQCeZGK+XVGDobxx7I8HBMt0iwciR9dwbki4jnNfM4besNaZBATHLZNCnqokGb4nFBbOLiPJmGNU7jaKnNJohqLQBjFv/eQhz1+gDa4xhKEV3XTqcGgcR47hfmvIaHiQsZjLjuzI4RNKajCgdNnMPigCIlKxQ== X-YMail-OSG: _mk93aYVM1lXBd_0.9b0SdnGiIF8S82Q77mhtVM3kc0b3inuBZwcqce8rtpK4SE 76_eyaSaIkgY4._A4wSkWCJA76h69uZRGJpiwsU3pUUrQJY3zPU4vNeYoaf0qIqfPYfG29mfVYG0 joBWAW4w6PGtOjnvqlpym87GR7ON6Vg7qpQUGBg5Ip5AsY6QrEAy0RYs5dslKx7zxZn3WKDhJ4Rb pWL3xBTfMN41GZ.ZAlT4.ZhnVVJkSmr6E8oSWr.C8_BP._aT_pp55gE1lk9imqQyUvwxtF7B9ZVB EvOAUewRM7jCbJrR6U0AemBGAtY6uoILDhQpxdoBjnpl7Jr4sveOeSk3VUCbE_0yhzJ9za2xBSnx q7Zcf19oiKRXzdo_DcedQNZKXR9VvLsmhP4lZ35u5x1cYcB6jeYhvO_X3ckPQFM_vY5cKJ_k16Xk KZ5_i7MhBsLGSbe_rXLSl.71dTV9_ksoEXiy17AoK2JaY59_RV5XY9we2gfO1Od0vhJl8dARhHio eCX1ex2L4fYSIu36obxho..gTFQbbBn5qrPVA1Dja8XWYIiSc9.xn7YfIaUjJ.9.mMqbTnlb3sPM 5FFKk3ExW_BvNEYBxW.4yP5UBpvzlZxM6Q6gZ0bQb7TScSLnjuCcqCtIbVIETktt3goXOVwT32M8 13n_B1X2NYSSjDn3HVhS0KD6tU3TX3m240jZ5dYVeQxg6TDht16jTdASBkk.iCd6npGp4DKCdo6w UuopFPcarsmUTtOfSdjLgXNKd15BTFW0bA1Mc0H6gOOMq6b1TJ6Y.piM6Pc8LjNsBy2lFQ6mTA.I E09a1nOKF682z..xwgG4a13ZMAT8w2SCSdLoODXZsaygcWFHhESazSD0S7GUS6AwbBx53q93oxkk 6yn0pDFWLOYYVBurBeVAJK7f1Z0Bc7dqE87YpfRQ72tEHvbF1gRf9V.UHp_zm4dvRrDrRNSLJv_s yugwB5AJmiTPGuBKu4AEDDrY3BURChUwi5TynTkzuHeowOnBR1rJE9wjEytZkf8SvKBfJw_AwFii 4k25imLRh2CkVOqYun9ZkiCYro0RSGp41StD8ZcvaxwZvIhADSk3qaBzHseam0rD2D2wBzdIRcVP ku4YfLXjOnHGoeknLC2rpqUTQAWyg5UmEBVqv8oxHJZVSoqta5C8TaJAsEsNtdF5rf0kC7Y0N05k amupFLTk4dlWlc.ayLKRZb70mJ0I._OtQvt6CuC7QhfibpVmrjyNBFsxRBpF9PW2r10Soxhp4UJo 5VVwKnAq4hjkof0ZD8_fqaNwNH84LtWtwe97TQDdggk7_BY1H_oAejZC8gX8FfyKqyMv64gqw9PD 8xU.YnIo.VhgeebaypPr3004JiFUv3micuzJlZ.7hxpAO57SYkIzj4Yq9wgPv4b.YxE7Dps6Xb8A Ly5GDzJpkQ3dzKOkCXBLlwqD_X_BKBf9DYmU2flHxLCgRPSyURXjiGp5htdMQR4LQA6Aio3NhLZs H6nNq0D.nKSvY2x3C5h_Xt.HIhkWc7E5lvV160LJeKk.UyxvJ7EuLIO9IiywPUmlMwmd_adeu14Z NJCXzcTWpMLIvQe_nGIbP1ZqehkCVwhoE79Tmd6xSilewlHTvfjnMWl_VN4zUdGjzch_PLPapDGP uHtdYGbLJnwMb3by2SwgwXvwjP2TSrLX8KxL2A0i347Pg_Mvtb.OGmSxIn8mfcqeUjnbgasqipOs q9IkRWN.ODtIfCJ_SOqXxl1g2V67KSztVyK6Iz3A9el3IhDljxsezuabV5KkL_hP4EBVbnFGl91e SryMkPWploO2afxe4vfYHDX7RUhTNSHEggWs2QpWe6GwCKyoPJpkyOB13Gd58SL8yC7dmJqLxXvV Dq4ZW4qfD6uO_xEIZarPq9rqyMXdaY4_uLNT.bLE5a3W7nFVi4AvwzZpt4vWHKJh1xHYK4K2fYJC fgLAZ.nZT8FGq6t1GAqpZOul7TnTvk4lSeU9os81sT4LoCfwXi5kvs37sZ2tVjH1gbUvRvkAxwW. LtX2VL675xJMR5vzv5IWrLG9VLRnCE6FgT1S7RYYwMmDHbPqkJQSwCpzs9HagZmnKxXfM5owXgoO zceMxrjNrdi62kCxQXjwMit15bE3qKUepkUvYFj.bYSVrbekFUpXc1qD0joH9DUQwA6Kh1tM7xjJ LiTddUk4chK1vsbjM9jh4d8Fu38Lmnw-- X-Sonic-MF: X-Sonic-ID: 9ea47e50-25f3-4504-9d7d-8ad52725b0fd Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Tue, 13 Feb 2024 15:14:53 +0000 Date: Tue, 13 Feb 2024 15:14:48 +0000 (UTC) From: Pedro Giffuni To: "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= Message-ID: <1620767053.1846857.1707837288566@mail.yahoo.com> In-Reply-To: <202402121826.41CIQUk5080390@gitrepo.freebsd.org> References: <202402121826.41CIQUk5080390@gitrepo.freebsd.org> Subject: Re: git: 851a9da38f07 - main - patch: Support long context lines. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1846856_2104703329.1707837288562" X-Mailer: WebService/1.1.22077 YMailNorrin X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US] X-Rspamd-Queue-Id: 4TZ4cv4wXfz4ZB4 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated ------=_Part_1846856_2104703329.1707837288562 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable FWIW ... We were already supporting very long lines. There was a thread like ages ag= o about not making them unnecessarily longer. But I doubt anyone cares about that anymore ;). Pedro. On Monday, February 12, 2024 at 01:26:38 PM GMT-5, Dag-Erling Sm=C3=B8r= grav wrote: =20 =20 The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=3D851a9da38f070675c42a6d69c41c= 47a5d29ee3d0 commit 851a9da38f070675c42a6d69c41c47a5d29ee3d0 Author:=C2=A0 =C2=A0 Dag-Erling Sm=C3=B8rgrav AuthorDate: 2024-02-12 18:26:13 +0000 Commit:=C2=A0 =C2=A0 Dag-Erling Sm=C3=B8rgrav CommitDate: 2024-02-12 18:26:13 +0000 =C2=A0 =C2=A0 patch: Support long context lines. =C2=A0 =C2=A0=20 =C2=A0 =C2=A0 MFC after:=C2=A0 =C2=A0 =C2=A0 1 week =C2=A0 =C2=A0 Sponsored by:=C2=A0 Klara, Inc. =C2=A0 =C2=A0 Reviewed by:=C2=A0 =C2=A0 allanjude =C2=A0 =C2=A0 Differential Revision:=C2=A0 https://reviews.freebsd.org/D438= 50 --- usr.bin/patch/patch.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 |=C2=A0 2 +- usr.bin/patch/pch.c=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 | 10 +++++----- usr.bin/patch/pch.h=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 |=C2=A0 2 +- usr.bin/patch/tests/unified_patch_test.sh | 19 +++++++++++++++++++ 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index 403189bc92b1..838c721841ea 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -1085,7 +1085,7 @@ patch_match(LINENUM base, LINENUM offset, LINENUM fuz= z) =C2=A0=C2=A0=C2=A0 LINENUM=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pat_lines = =3D pch_ptrn_lines() - fuzz; =C2=A0=C2=A0=C2=A0 const char=C2=A0=C2=A0=C2=A0 *ilineptr; =C2=A0=C2=A0=C2=A0 const char=C2=A0=C2=A0=C2=A0 *plineptr; -=C2=A0=C2=A0=C2=A0 unsigned short=C2=A0=C2=A0=C2=A0 plinelen; +=C2=A0=C2=A0=C2=A0 size_t=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 plinelen; =20 =C2=A0=C2=A0=C2=A0 /* Patch does not match if we don't have any more conte= xt to use */ =C2=A0=C2=A0=C2=A0 if (pline > pat_lines) diff --git a/usr.bin/patch/pch.c b/usr.bin/patch/pch.c index d528f06235bf..fb53ff86f9ef 100644 --- a/usr.bin/patch/pch.c +++ b/usr.bin/patch/pch.c @@ -55,7 +55,7 @@ static LINENUM=C2=A0=C2=A0=C2=A0 p_max;=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 /* max allowed value of p_end */ static LINENUM=C2=A0=C2=A0=C2=A0 p_context =3D 3;=C2=A0=C2=A0=C2=A0 /* # o= f context lines */ static LINENUM=C2=A0=C2=A0=C2=A0 p_input_line =3D 0;=C2=A0=C2=A0=C2=A0 /* = current line # from patch file */ static char=C2=A0=C2=A0=C2=A0 **p_line =3D NULL;/* the text of the hunk */ -static unsigned short=C2=A0=C2=A0=C2=A0 *p_len =3D NULL; /* length of each= line */ +static size_t=C2=A0=C2=A0=C2=A0 *p_len =3D NULL;=C2=A0=C2=A0=C2=A0 /* leng= th of each line */ static char=C2=A0=C2=A0=C2=A0 *p_char =3D NULL;=C2=A0=C2=A0=C2=A0 /* +, -,= and ! */ static int=C2=A0=C2=A0=C2=A0 hunkmax =3D INITHUNKMAX;=C2=A0=C2=A0=C2=A0 /*= size of above arrays to begin with */ static int=C2=A0=C2=A0=C2=A0 p_indent;=C2=A0=C2=A0=C2=A0 /* indent to patc= h */ @@ -137,7 +137,7 @@ set_hunkmax(void) =C2=A0=C2=A0=C2=A0 if (p_line =3D=3D NULL) =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 p_line =3D malloc(hunkmax * sizeof(c= har *)); =C2=A0=C2=A0=C2=A0 if (p_len =3D=3D NULL) -=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 p_len =3D malloc(hunkmax * sizeof(un= signed short)); +=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 p_len =3D malloc(hunkmax * sizeof(si= ze_t)); =C2=A0=C2=A0=C2=A0 if (p_char =3D=3D NULL) =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 p_char =3D malloc(hunkmax * sizeof(c= har)); } @@ -154,7 +154,7 @@ grow_hunkmax(void) =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 fatal("Internal memory allocation er= ror\n"); =20 =C2=A0=C2=A0=C2=A0 p_line =3D reallocf(p_line, new_hunkmax * sizeof(char *= )); -=C2=A0=C2=A0=C2=A0 p_len =3D reallocf(p_len, new_hunkmax * sizeof(unsigned= short)); +=C2=A0=C2=A0=C2=A0 p_len =3D reallocf(p_len, new_hunkmax * sizeof(size_t))= ; =C2=A0=C2=A0=C2=A0 p_char =3D reallocf(p_char, new_hunkmax * sizeof(char))= ; =20 =C2=A0=C2=A0=C2=A0 if (p_line !=3D NULL && p_len !=3D NULL && p_char !=3D = NULL) { @@ -1251,7 +1251,7 @@ bool pch_swap(void) { =C2=A0=C2=A0=C2=A0 char=C2=A0=C2=A0=C2=A0 **tp_line;=C2=A0=C2=A0=C2=A0 /* = the text of the hunk */ -=C2=A0=C2=A0=C2=A0 unsigned short=C2=A0=C2=A0=C2=A0 *tp_len;/* length of e= ach line */ +=C2=A0=C2=A0=C2=A0 size_t=C2=A0=C2=A0=C2=A0 *tp_len;=C2=A0=C2=A0=C2=A0 /* = length of each line */ =C2=A0=C2=A0=C2=A0 char=C2=A0=C2=A0=C2=A0 *tp_char;=C2=A0=C2=A0=C2=A0 /* += , -, and ! */ =C2=A0=C2=A0=C2=A0 LINENUM=C2=A0=C2=A0=C2=A0 i; =C2=A0=C2=A0=C2=A0 LINENUM=C2=A0=C2=A0=C2=A0 n; @@ -1408,7 +1408,7 @@ pch_context(void) /* =C2=A0 * Return the length of a particular patch line. =C2=A0 */ -unsigned short +size_t pch_line_len(LINENUM line) { =C2=A0=C2=A0=C2=A0 return p_len[line]; diff --git a/usr.bin/patch/pch.h b/usr.bin/patch/pch.h index 5ce4f72497c7..b6c6363155a5 100644 --- a/usr.bin/patch/pch.h +++ b/usr.bin/patch/pch.h @@ -45,7 +45,7 @@ bool=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 there_is_anothe= r_patch(void); bool=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 another_hunk(void); bool=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pch_swap(void); char=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 *pfetch(LINENUM); -unsigned short=C2=A0=C2=A0=C2=A0 pch_line_len(LINENUM); +size_t=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pch_line_len(LINENUM); LINENUM=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pch_first(void); LINENUM=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pch_ptrn_lines(void); LINENUM=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pch_newfirst(void); diff --git a/usr.bin/patch/tests/unified_patch_test.sh b/usr.bin/patch/test= s/unified_patch_test.sh index 43b0d8373cfa..7d4b74182c41 100755 --- a/usr.bin/patch/tests/unified_patch_test.sh +++ b/usr.bin/patch/tests/unified_patch_test.sh @@ -141,6 +141,24 @@ file_removal_body() =C2=A0=C2=A0=C2=A0 atf_check -o inline:"y\n" cat foo } =20 +atf_test_case plinelen +plinelen_body() +{ +=C2=A0=C2=A0=C2=A0 hello=3D"$(jot -b hello -s, 20000 | tee foo.txt)" +=C2=A0=C2=A0=C2=A0 cp foo.txt bar.txt +=C2=A0=C2=A0=C2=A0 echo "world" >>bar.txt +=C2=A0=C2=A0=C2=A0 cat >foo.diff <
FWIW ...

We were alr= eady supporting very long lines. There was a thread like ages ago about not= making them unnecessarily longer.

But I doubt anyone cares about t= hat anymore ;).

Pedro.


=20
=20
On Monday, February 12, 2024 at 01:26:38 PM GMT-5, Dag-= Erling Sm=C3=B8rgrav <des@freebsd.org> wrote:


The branch main has been updated by d= es:


commit 851a9da38f070675c42a6d69c41c47a5d29e= e3d0
Author:    Dag-Erling Sm=C3=B8rgr= av <des@FreeBSD.org>
AuthorDate: 2024-02-12 = 18:26:13 +0000
Commit:    Dag-Erling S= m=C3=B8rgrav <des@FreeBSD.org>
CommitDate: 2= 024-02-12 18:26:13 +0000

    patch: Support long context lines.
   
    MFC after:  =     1 week
    Sponsored by:&= nbsp; Klara, Inc.
    Reviewed by:&nbs= p;   allanjude
    Differential Re= vision:  https://reviews.freebsd.org/D43850
---
usr.bin/patch/patch.c   = ;                 |  2 +-
=
usr.bin/patch/pch.c        &nbs= p;             | 10 +++++-----
usr.bin/patch/pch.h            =           |  2 +-
= usr.bin/patch/tests/unified_patch_test.sh | 19 +++++++++++++++++++
4 files changed, 26 insertions(+), 7 deletions(-)

diff --git a/usr.bin/patch/= patch.c b/usr.bin/patch/patch.c
index 403189bc92b= 1..838c721841ea 100644
--- a/usr.bin/patch/patch.= c
+++ b/usr.bin/patch/patch.c
@@ -1085,7 +1085,7 @@ patch_match(LINENUM base, LINENUM offset, LI= NENUM fuzz)
    LINENUM &nbs= p;      pat_lines =3D pch_ptrn_lines() - fuzz;
    const char    *ilinept= r;
    const char  &nbs= p; *plineptr;
-    unsigned short&= nbsp;   plinelen;
+    s= ize_t        plinelen;

    /* Patch does not match= if we don't have any more context to use */
&nb= sp;   if (pline > pat_lines)
diff --= git a/usr.bin/patch/pch.c b/usr.bin/patch/pch.c
i= ndex d528f06235bf..fb53ff86f9ef 100644
--- a/usr.= bin/patch/pch.c
+++ b/usr.bin/patch/pch.c
@@ -55,7 +55,7 @@ static LINENUM    p_max= ;        /* max allowed value of p_end */
=
static LINENUM    p_context =3D 3;&n= bsp;   /* # of context lines */
static= LINENUM    p_input_line =3D 0;    /* current= line # from patch file */
static char &nbs= p;  **p_line =3D NULL;/* the text of the hunk */
-static unsigned short    *p_len =3D NULL; /* length of= each line */
+static size_t    *p= _len =3D NULL;    /* length of each line */
static char    *p_char =3D NULL;   = ; /* +, -, and ! */
static int   = hunkmax =3D INITHUNKMAX;    /* size of above arrays to begi= n with */
static int    p_indent;=     /* indent to patch */
@@ -137,= 7 +137,7 @@ set_hunkmax(void)
   = if (p_line =3D=3D NULL)
    &nbs= p;   p_line =3D malloc(hunkmax * sizeof(char *));
    if (p_len =3D=3D NULL)
-        p_len =3D malloc(hunkmax * size= of(unsigned short));
+     &n= bsp;  p_len =3D malloc(hunkmax * sizeof(size_t));
    if (p_char =3D=3D NULL)
        p_char =3D malloc(hunkmax * sizeof(= char));
}
@@ -154,7 +1= 54,7 @@ grow_hunkmax(void)
    &n= bsp;   fatal("Internal memory allocation error\n");

    p_line =3D rea= llocf(p_line, new_hunkmax * sizeof(char *));
-&nb= sp;   p_len =3D reallocf(p_len, new_hunkmax * sizeof(unsigned sho= rt));
+    p_len =3D reallocf(p_le= n, new_hunkmax * sizeof(size_t));
  &n= bsp; p_char =3D reallocf(p_char, new_hunkmax * sizeof(char));

    if (p_line != =3D NULL && p_len !=3D NULL && p_char !=3D NULL) {
@@ -1251,7 +1251,7 @@ bool
pch= _swap(void)
{
 &= nbsp;  char    **tp_line;    /* the text= of the hunk */
-    unsigned shor= t    *tp_len;/* length of each line */
+    size_t    *tp_len;   = ; /* length of each line */
    c= har    *tp_char;    /* +, -, and ! */
    LINENUM    i;
    LINENUM    n;
@@ -1408,7 +1408,7 @@ pch_context(void)
/*
  * Return the length of a par= ticular patch line.
  */
-unsigned short
+size_t
pch_line_len(LINENUM line)
{
    return p_len[line];
diff --git a/usr.bin/patch/pch.h b/usr.bin/patch/pch.h
index 5ce4f72497c7..b6c6363155a5 100644
--- a/usr.bin/patch/pch.h
+++ b/usr.bin/pat= ch/pch.h
@@ -45,7 +45,7 @@ bool   =     there_is_another_patch(void);
bool        another_hunk(void);
bool        pch_swap(void);
char        *pfetch= (LINENUM);
-unsigned short    pch_= line_len(LINENUM);
+size_t    &nbs= p;   pch_line_len(LINENUM);
LINENUM&nb= sp;       pch_first(void);
LINENUM        pch_ptrn_lines(void);
<= /div>
LINENUM        pch_new= first(void);
diff --git a/usr.bin/patch/tests/uni= fied_patch_test.sh b/usr.bin/patch/tests/unified_patch_test.sh
index 43b0d8373cfa..7d4b74182c41 100755
--- a/usr.bin/patch/tests/unified_patch_test.sh
+++ b/usr.bin/patch/tests/unified_patch_test.sh
@@ -141,6 +141,24 @@ file_removal_body()
&nbs= p;   atf_check -o inline:"y\n" cat foo
= }

+atf_test_case pli= nelen
+plinelen_body()
= +{
+    hello=3D"$(jot -b hello -s= , 20000 | tee foo.txt)"
+    cp fo= o.txt bar.txt
+    echo "world" &g= t;>bar.txt
+    cat >foo.dif= f <<EOF
+--- foo.txt.orig
++++ foo.txt
+@@ -1,1 +1,2 @@
<= div dir=3D"ltr">+ $hello
++world
+EOF
+    atf_check -o m= atch:"Hunk #1 succeeded" \
+    &n= bsp;     patch <foo.diff
+ = ;   atf_check -o file:bar.txt cat foo.txt
+}
+
atf_init_test_= cases()
{
  = ;  atf_add_test_case basic
@@ -148,4 +166,5 = @@ atf_init_test_cases()
    atf_= add_test_case file_creation
    a= tf_add_test_case file_nodupe
    = atf_add_test_case file_removal
+   = ; atf_add_test_case plinelen
}
------=_Part_1846856_2104703329.1707837288562-- From nobody Tue Feb 13 15:38: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 4TZ58D1s37z594bJ; Tue, 13 Feb 2024 15:38: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ58D1BF7z4fjb; Tue, 13 Feb 2024 15:38:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707838716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o2GIeu+3Vnd9i0fOh8h60YSGrXjOgUl2+wXkcatWTXs=; b=InWij+rGbAXtYnBImlH1uZjmn+JzkyzzTTHsI94f6Ighe6FreMFpINdUth8iGFbatkvLHe C/KwYCN9ptE4c4rDxeukgNIDuq4sb9aObqh70JZF/jtlnHx6FQo9ByfYaNeiBGESC7Ldxt Irp0VvXi4XypTeg9RBjjzV1f1jABgjL1VgBvHtGd6AtShXhQV6ZngFzhct7y/cArwXYSQb +WyehEWGHHYoc8+r9SxUD4G8H+6wfP307i6xC1zMSAPXaJauopDXS3vd5pJglgbvOPC0j6 kpczoauZ57G42ponQq6irqUtl96PpFlv5yT/TEJVFkz8HMPTTnsm5z7xN38WKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707838716; a=rsa-sha256; cv=none; b=lnIMPvHNnzBM8j9P1YPNPGNuygr5PbyLKEZkj/ffkrPfiUzNHk5t/X3oib5WNlBFdk7Pfb xGt78yM19PVs2qgPdS36xntF51ZlDPkaDZMkzAU7vv+d7tZmKn4kp49no0AKn7s12o3YiK 54kTG349GpjNYMOEzIKdy2piQhXl4v7PFV4SwYJkhGzwLvCDm4yPHkFKDHDxVtnET7f1wh 4Sp53NxKsIedE95qvM2760LAUmMiU3hyDD7QsooC1ZDQbTKupdHmBPm4ICz8yu6hWDcHmV uIcu+zXefMpB//UgBslusLrime0l2VS/EBx8M3js22fHP9ScuVwyJLuH/Nx5dg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707838716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o2GIeu+3Vnd9i0fOh8h60YSGrXjOgUl2+wXkcatWTXs=; b=yB6YEBk/2gCegb3UlYgdWFZtY0s3D5gVePrasjiTL/bXUT6ssq4pkXb9eVImqwNAH2lVbg Y8UMxnSenHe6TEINhUpnlVfhbhruhomMHKpHCyZqkWxtO4Up5F332/3F3ZiEo51/pCq4MQ QaOcuJNpHkcIasfjczkukZirlKoOTys2ThS6DOkeAheBSYdkceL79TtmJxSdCGzN6oTsNw vK3GWrg9SYzC7wvd5Ln5xQnJnkqnidezf3hp0eb3eSHfDYEA1WOb6asXT3dvUm0BQs5xPo 8iELBkEmX5ej1j4udYF/oXrMpV2aPF2+Xy01OxCSkQR0iYBv5wSFuwk9GDTG/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 4TZ58D04BgzLFk; Tue, 13 Feb 2024 15:38:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DFcZAB018984; Tue, 13 Feb 2024 15:38:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DFcZcR018981; Tue, 13 Feb 2024 15:38:35 GMT (envelope-from git) Date: Tue, 13 Feb 2024 15:38:35 GMT Message-Id: <202402131538.41DFcZcR018981@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: c5796f1572c8 - main - rtld: add some dlopen 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: c5796f1572c82b88e8b6a2810c92f30e5ac3e118 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=c5796f1572c82b88e8b6a2810c92f30e5ac3e118 commit c5796f1572c82b88e8b6a2810c92f30e5ac3e118 Author: Kyle Evans AuthorDate: 2024-02-13 15:38:02 +0000 Commit: Kyle Evans CommitDate: 2024-02-13 15:38:02 +0000 rtld: add some dlopen tests dlopen_basic just tests that libthr.so can be dlopen()ed, which will just serve as a sanity check that "libthr.so" is a thing that can be dlopened in case we get a weird failure in dlopen_recursing. dlopen_recursing tests a regression reported after the libsys split, where some dlopen() may cause infinite recursion and a resulting crash. This case is inspired by bdrewery's description of what seemed to be causing his issue. The corresponding fix landed in commit 968a18975ad ("rtld: ignore load_filtees() calls if we already [...]") Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D43859 --- libexec/rtld-elf/tests/Makefile | 2 ++ libexec/rtld-elf/tests/dlopen_test.c | 52 ++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/libexec/rtld-elf/tests/Makefile b/libexec/rtld-elf/tests/Makefile index 06e143a441a1..e380e9850fc1 100644 --- a/libexec/rtld-elf/tests/Makefile +++ b/libexec/rtld-elf/tests/Makefile @@ -13,6 +13,8 @@ ATF_TESTS_C+= ld_preload_fds SRCS.$t= $t.c common.c .endfor +ATF_TESTS_C+= dlopen_test + WARNS?= 3 .include diff --git a/libexec/rtld-elf/tests/dlopen_test.c b/libexec/rtld-elf/tests/dlopen_test.c new file mode 100644 index 000000000000..ab1e8da1cb41 --- /dev/null +++ b/libexec/rtld-elf/tests/dlopen_test.c @@ -0,0 +1,52 @@ +/*- + * + * Copyright (C) 2024 Kyle Evans + * + * SPDX-License-Identifier: BSD-2-Clause + * + */ + +#include + +#include + +ATF_TC_WITHOUT_HEAD(dlopen_basic); +ATF_TC_BODY(dlopen_basic, tc) +{ + void *hdl, *sym; + + hdl = dlopen("libthr.so", RTLD_NOW); + ATF_REQUIRE(hdl != NULL); + + sym = dlsym(hdl, "pthread_create"); + ATF_REQUIRE(sym != NULL); + + dlclose(hdl); + + sym = dlsym(hdl, "pthread_create"); + ATF_REQUIRE(sym == NULL); +} + +ATF_TC_WITHOUT_HEAD(dlopen_recursing); +ATF_TC_BODY(dlopen_recursing, tc) +{ + void *hdl; + + /* + * If this doesn't crash, we're OK; a regression at one point caused + * some infinite recursion here. + */ + hdl = dlopen("libthr.so", RTLD_NOW | RTLD_GLOBAL); + ATF_REQUIRE(hdl != NULL); + + dlclose(hdl); +} + +ATF_TP_ADD_TCS(tp) +{ + + ATF_TP_ADD_TC(tp, dlopen_basic); + ATF_TP_ADD_TC(tp, dlopen_recursing); + + return atf_no_error(); +} From nobody Tue Feb 13 16:18: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 4TZ62G70rFz599Rt; Tue, 13 Feb 2024 16:18: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ62G6WVfz4l1m; Tue, 13 Feb 2024 16:18:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707841110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d4MTj1xLAHiHjrMhDnO9aR12PwIwd++rMcvv06PF59c=; b=JOfNw/oa6zRjSLSlpKTwiLtprhIyUyf4ov082V4nfDH+y9h7gsX8JFiYFQuW6BIc4BxJJN 5JA1UmirBH81gD9abCHnLhcQoMBXJ3uy/WftuX7EIwiL2KgzbAuXmJFvgQ8PmSvM0klLeP u7yVNxprl083QY2ClDgOGf3Hy9m/4RBzO7TtBN5fmxlIz2D9Uh3t2lHTvkZ8nLBKACNmX2 m+9P5hIHxWASnjTKophGElMA2XxuhJ41U26Mm3+y0R+fOdGDLslA5RlBgNv7biKOsYHZfM MGGHB+jC9La8zJma/xivMZcFFPzodetkQMMvOR0MIbplNsfkxdDRQfxzyPAmKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707841110; a=rsa-sha256; cv=none; b=SOJhHzqnH8MDUrHNFtO/Njfj8D/oDhuizcFRVoLbPQWgf9zEykRLgCloZQohsx3q78IylO wrF6SXAxBYUzJq7uXTKX2PZHwsPB9BlFk6YALodZd3NK6JOXCbVu+WDcxIww2fwHKaRiqe 2SplHojP5AKDy7Oe6C6HSwxcijPpNpg7Hq05uuTKHu7vek4O37PUeN6ULX0YKop7a1Yc2m j5/YqGVUvEchqpNssI2RC8z4lF2mIaliLgmonBE+Z+QY9gOWzpL6GaBjCIchD4bpcXsZfB gFpwmz/rAKSLOiAzFXAv5bXsjEGl7uflSIXpng4pCRmVaQfN44dtbEZ4bKOyxw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707841110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d4MTj1xLAHiHjrMhDnO9aR12PwIwd++rMcvv06PF59c=; b=VlRZ6/5MTYBtsssqQWt6cE8xcHEzJ0fgKELb/GjUHbVi3DKgg3CnkhZ+n5YD7xHncLyL0g GMwnV10cybYRQY8LQn64ZqUnaIAMEfGAYmxM4LmhCcMOa6vb6f71ly+RZEkQVf3dII+MJl udw1HNYaLHDf6Sm6GsttcNFxY9IwlC1UsPXmu5VNnZn9noiITItZWuX9JBWEEnkrVU1ZWe P6q+oMVipxlLsYI+tk89lAXrEiVwKB7cVE7zqlBxm3ot6T1bFOUct/1qXAfeUcWQMIqvo/ 0mm1A1maElrusLWPKkzc/zQCpU25VNgP788DuSBgA6e/9QTR9IIfYlzgvTODHQ== 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 4TZ62G5ZxmzMT1; Tue, 13 Feb 2024 16:18:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DGIUSC087643; Tue, 13 Feb 2024 16:18:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DGIUgX087640; Tue, 13 Feb 2024 16:18:30 GMT (envelope-from git) Date: Tue, 13 Feb 2024 16:18:30 GMT Message-Id: <202402131618.41DGIUgX087640@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Chuck Silvers Subject: git: fd24a63a38d0 - main - x86/ucode: add const where appropriate 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: chs X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fd24a63a38d0d4cb4f5041ef232036abe09d9d4f Auto-Submitted: auto-generated The branch main has been updated by chs: URL: https://cgit.FreeBSD.org/src/commit/?id=fd24a63a38d0d4cb4f5041ef232036abe09d9d4f commit fd24a63a38d0d4cb4f5041ef232036abe09d9d4f Author: Chuck Silvers AuthorDate: 2024-02-13 16:15:25 +0000 Commit: Chuck Silvers CommitDate: 2024-02-13 16:18:06 +0000 x86/ucode: add const where appropriate Sponsored by: Netflix Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D43865 --- sys/x86/include/ucode.h | 2 +- sys/x86/x86/ucode.c | 40 +++++++++++++++++++++------------------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/sys/x86/include/ucode.h b/sys/x86/include/ucode.h index cf9c756fc8f3..e97d41c89ed0 100644 --- a/sys/x86/include/ucode.h +++ b/sys/x86/include/ucode.h @@ -56,7 +56,7 @@ struct ucode_intel_extsig_table { } entries[0]; }; -int ucode_intel_load(void *data, bool unsafe, +int ucode_intel_load(const void *data, bool unsafe, uint64_t *nrevp, uint64_t *orevp); size_t ucode_load_bsp(uintptr_t free); void ucode_load_ap(int cpu); diff --git a/sys/x86/x86/ucode.c b/sys/x86/x86/ucode.c index 1366c50f9ae5..8e9f8e113c40 100644 --- a/sys/x86/x86/ucode.c +++ b/sys/x86/x86/ucode.c @@ -50,14 +50,14 @@ #include #include -static void *ucode_intel_match(uint8_t *data, size_t *len); -static int ucode_intel_verify(struct ucode_intel_header *hdr, +static const void *ucode_intel_match(const uint8_t *data, size_t *len); +static int ucode_intel_verify(const struct ucode_intel_header *hdr, size_t resid); static struct ucode_ops { const char *vendor; - int (*load)(void *, bool, uint64_t *, uint64_t *); - void *(*match)(uint8_t *, size_t *); + int (*load)(const void *, bool, uint64_t *, uint64_t *); + const void *(*match)(const uint8_t *, size_t *); } loaders[] = { { .vendor = INTEL_VENDOR_ID, @@ -67,8 +67,8 @@ static struct ucode_ops { }; /* Selected microcode update data. */ -static void *early_ucode_data; -static void *ucode_data; +static const void *early_ucode_data; +static const void *ucode_data; static struct ucode_ops *ucode_loader; /* Variables used for reporting success or failure. */ @@ -103,7 +103,7 @@ log_msg(void *arg __unused) SYSINIT(ucode_log, SI_SUB_CPU, SI_ORDER_FIRST, log_msg, NULL); int -ucode_intel_load(void *data, bool unsafe, uint64_t *nrevp, uint64_t *orevp) +ucode_intel_load(const void *data, bool unsafe, uint64_t *nrevp, uint64_t *orevp) { uint64_t nrev, orev; uint32_t cpuid[4]; @@ -140,9 +140,10 @@ ucode_intel_load(void *data, bool unsafe, uint64_t *nrevp, uint64_t *orevp) } static int -ucode_intel_verify(struct ucode_intel_header *hdr, size_t resid) +ucode_intel_verify(const struct ucode_intel_header *hdr, size_t resid) { - uint32_t cksum, *data, size; + const uint32_t *data; + uint32_t cksum, size; int i; if (resid < sizeof(struct ucode_intel_header)) @@ -160,7 +161,7 @@ ucode_intel_verify(struct ucode_intel_header *hdr, size_t resid) return (1); cksum = 0; - data = (uint32_t *)hdr; + data = (const uint32_t *)hdr; for (i = 0; i < size / sizeof(uint32_t); i++) cksum += data[i]; if (cksum != 0) @@ -168,12 +169,12 @@ ucode_intel_verify(struct ucode_intel_header *hdr, size_t resid) return (0); } -static void * -ucode_intel_match(uint8_t *data, size_t *len) +static const void * +ucode_intel_match(const uint8_t *data, size_t *len) { - struct ucode_intel_header *hdr; - struct ucode_intel_extsig_table *table; - struct ucode_intel_extsig *entry; + const struct ucode_intel_header *hdr; + const struct ucode_intel_extsig_table *table; + const struct ucode_intel_extsig *entry; uint64_t platformid; size_t resid; uint32_t data_size, flags, regs[4], sig, total_size; @@ -186,7 +187,7 @@ ucode_intel_match(uint8_t *data, size_t *len) flags = 1 << ((platformid >> 50) & 0x7); for (resid = *len; resid > 0; data += total_size, resid -= total_size) { - hdr = (struct ucode_intel_header *)data; + hdr = (const struct ucode_intel_header *)data; if (ucode_intel_verify(hdr, resid) != 0) { ucode_error = VERIFICATION_FAILED; break; @@ -200,8 +201,8 @@ ucode_intel_match(uint8_t *data, size_t *len) total_size = UCODE_INTEL_DEFAULT_DATA_SIZE + sizeof(struct ucode_intel_header); if (data_size > total_size + sizeof(struct ucode_intel_header)) - table = (struct ucode_intel_extsig_table *) - ((uint8_t *)(hdr + 1) + data_size); + table = (const struct ucode_intel_extsig_table *) + ((const uint8_t *)(hdr + 1) + data_size); else table = NULL; @@ -317,7 +318,8 @@ ucode_load_bsp(uintptr_t free) uint32_t regs[4]; char vendor[13]; } cpuid; - uint8_t *addr, *fileaddr, *match; + const uint8_t *fileaddr, *match; + uint8_t *addr; char *type; uint64_t nrev, orev; caddr_t file; From nobody Tue Feb 13 16:39: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 4TZ6VS0WRcz59Cch; Tue, 13 Feb 2024 16:39:28 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ6VR5ngHz4nwn; Tue, 13 Feb 2024 16:39:27 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Authentication-Results: mx1.freebsd.org; none Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id C33193C019A; Tue, 13 Feb 2024 16:39:21 +0000 (UTC) Date: Tue, 13 Feb 2024 16:39:21 +0000 From: Brooks Davis To: Alexey Dokuchaev Cc: Ed Maste , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: fd1066bed67f - main - .profile: Don't bother checking for /home symlink Message-ID: References: <202402121425.41CEPmxI075183@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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US] X-Rspamd-Queue-Id: 4TZ6VR5ngHz4nwn X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Tue, Feb 13, 2024 at 03:23:13AM +0000, Alexey Dokuchaev wrote: > On Mon, Feb 12, 2024 at 02:25:48PM +0000, Ed Maste wrote: > > commit fd1066bed67f642ed01f5dd62b7b6cfb0a45fd4c > > > > .profile: Don't bother checking for /home symlink > > > > Since FreeBSD 14.0, user directories are created directly under /home. > > This check should no longer be needed. > > > > @@ -19,9 +19,6 @@ > > # set ENV to a file invoked each time sh is started for interactive use. > > ENV=$HOME/.shrc; export ENV > > > > -# Let sh(1) know it's at home, despite /home being a symlink. > > -if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi > > - > > The installer creates separate /home, individual hackers might want to > partition their drives the old way as / (root) + /usr (everything else), > so this check is probably still useful. Perhaps more likely to be an issue: not all FreeBSD 14 systems started as fresh installs. -- Brooks From nobody Tue Feb 13 17:47: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 4TZ81P6G1Sz59MQy; Tue, 13 Feb 2024 17:47: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ81P5mQrz4203; Tue, 13 Feb 2024 17:47:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NX4gqCutnabSKrHxYzd2Fg3LLBPkkGJq3/Zn2u40AvU=; b=bKFa4KwHSF1lkxKQV5E8nHR6P8tVuXAwSZ73JXPEnaAnrSUiWm5rKdGaskzR3S7AVt7XPM f3iR4hMc1ENbv4gJ0V6SbZvAYfmndVnbxhRSs2K7v78mRDLDgBnAs8IVo2nMZ8wFacJI7W I1F9Bf1coOsa27vvWPIdn/ic7Xszo3S88VTB8YEuBSBeBTDHfFU75WfTSt/b7r0dWmBy8o Iqlb0CeyqX3QwSwIRyQEtwNI8yO/xyTwrm3R+YQkfi1qoeG67dpVtYhJpCGSRoYhFu9/of wuUaDmnCLlB5t2cQuobf/manNUW0xcDFKqQHL9hJP7usylvxKg+QMwULfDv76A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707846473; a=rsa-sha256; cv=none; b=evqvjB3pS37itB2gZewTumD+0tfsKETdrpv2S28JGMmzEsByXo2BSWXCGza0gTQ8uB29gq 5FIXhz/ZVN0RwDL8jkGgWSDhDfED6kRsICwMIw9M+RUyd8Oni14sq7PI5stbUZycyjm8K0 cKt3e6O7LOT7OLhCIGpfTs/RlWz8fUji21So0H1tp51X/a3EN0GTm9lrSLS7ulJdi1PMNi 9tdhajJYKoMi5kqJT2TtmiqwlwoiDiWNo+vCiQoTBhzdJaxOAxHXz6a7aKhkSy5Z+x/BQZ xeq/YQLkbP9eM/eTdbEB7eVoNk8qFtZKr9jWcmNwNvLqABGIK59KVNP4p6wgJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NX4gqCutnabSKrHxYzd2Fg3LLBPkkGJq3/Zn2u40AvU=; b=WNV+JgpPKtOdTp8QmmOdipwBBWf4v38Hr2rMyhRhI5v1WwU8AmTpu2LLZ4O1xXrRR7TV9m y1CQKNGmt/5Gytk90OxXAWIGszEADjvuWQT2PeBzpQA3b0pFsyMBwCtP2R6eoKewB9dEzl q4RPS+rStWkAgmfNxwWE7Z+/29sIvJim5sr2+K1d3oe/aStxZi9IyaLrLbGbfdmq9hhOaE eQQiqwE5t4YVjFavKTaEk8ax2o52p6O6mYWCRGIeGNejEgZv0LJSECe/zAf30hlmSdK4KV 7gN3kiU1h43aRvr26X/yq7TFmz2BXyKkJk5kCkLg9gUhCOlkexHLoOJPn3CCBQ== 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 4TZ81P4pqbzPk2; Tue, 13 Feb 2024 17:47:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DHlr3J038088; Tue, 13 Feb 2024 17:47:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DHlrbO038085; Tue, 13 Feb 2024 17:47:53 GMT (envelope-from git) Date: Tue, 13 Feb 2024 17:47:53 GMT Message-Id: <202402131747.41DHlrbO038085@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: 9cc816c255df - main - Fix typo in da flags reporting 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 9cc816c255df15ebd43e6ab3c29e0af59b741e85 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9cc816c255df15ebd43e6ab3c29e0af59b741e85 commit 9cc816c255df15ebd43e6ab3c29e0af59b741e85 Author: Dan Kotowski AuthorDate: 2024-02-13 17:42:13 +0000 Commit: Warner Losh CommitDate: 2024-02-13 17:44:59 +0000 Fix typo in da flags reporting ANNOUCNED -> ANNOUNCED Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D41948 --- sys/cam/scsi/scsi_da.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 35bfd096f3e1..d578e4ccb712 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -137,7 +137,7 @@ typedef enum { "\013CAN_RC16" \ "\014PROBED" \ "\015DIRTY" \ - "\016ANNOUCNED" \ + "\016ANNOUNCED" \ "\017CAN_ATA_DMA" \ "\020CAN_ATA_LOG" \ "\021CAN_ATA_IDLOG" \ From nobody Tue Feb 13 17:52: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 4TZ86h4Vzhz59NFb; Tue, 13 Feb 2024 17:52:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ86h46SDz42Gp; Tue, 13 Feb 2024 17:52:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3Y7tPVPwcrH3kDd3/TAnQw5QjI1g5t/n0fuuj3hLPaA=; b=Y1Hnz2UyNoNj8G0x3lgKa0kmmxlaZ3H6Hleei/JSTgryfWaYwMnWD2hI3Jxp2EDLksxq6j DSdayQeXlhZsP9Jyobnsbfr5xbHbjepNAQK1rIT97S+u8egF26Xk6y5b4XYh4z78Uj/Rkw nBfl1aa1ehSMRf8KB6v2ssetGbEjOYThGKbs9jKsmbR5Rsf/heIVY5Zzz/M2/IqkM80gwn UDUlRuK955DBYv75s/Z/+vOzzL1nHKBIhsytg2jO1iOvwlpZe4AapVQS/ziBTCQueAD4B9 OHPC7tDbYgnvLa4uY10XnHJ4Tr1EjDKB+kyqi/ooGGKt/YYD0gwgv2LRkVLCAQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707846748; a=rsa-sha256; cv=none; b=Mfr68CuKOh0PsYX8pXAGY6fWCMdyBXG4CXia57MCS2Ee+5A7neTGM8odjCfhO3WhYQDo2O mRweKK9ZBbQi81NTLasgxqXRrr6rLSx3nPQFXc/q5Wqo1JeNLgF9Zq8M970D3HDYjekaL7 QvMtSRgJKFJ9f3e4Ryg+G1nsN6zXWe/eowAY9M0e88kxsEgIoMNlRMHCabIrUTsw5fRwWf QQJn1F+K3SEjwg4vyVEWpCs5V14m0FoHL9BBlH+mwzX0Fq+8jUytonvTlNK5WQnfJwa/Qg 9FCUxyHmACfElA0sAHOWZWvwNq97T1T+yQC7AXLyGhG4LQDMN+QIBiZXcrdJNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3Y7tPVPwcrH3kDd3/TAnQw5QjI1g5t/n0fuuj3hLPaA=; b=yB62xzVLiL6yzpkhCrsJ2hvjgj/VPnwnL7zIiE1KssGaE5TUgZVip40B1G84BQyZ4W2sc9 1Z/Zy1CZrtqdwSfDtdGUEr607080zRTZi26w5c0x0KlZulaI79w9W5qSSo0Yk/TdqbUfPl +CjHR9uxajyyGGo5c5d11iv+9pk6fGIncGK3vN4r+WiNJesGe+12JaqfHPvXUhwreBxo+a jawueQAe5hCeWQ1cc4AFBNvVX60ml8Zyospxeph2FBJgUYn+m5iyFoSbHCCplcaDyc3xnJ 6RU+HY30XBVozMmp8VFE21kpBSzIP4eMYwmqvT6AGiRGaUVwiT2fF/Ewt5urNA== 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 4TZ86h38tczPqr; Tue, 13 Feb 2024 17:52:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DHqSGK052852; Tue, 13 Feb 2024 17:52:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DHqSZi052849; Tue, 13 Feb 2024 17:52:28 GMT (envelope-from git) Date: Tue, 13 Feb 2024 17:52:28 GMT Message-Id: <202402131752.41DHqSZi052849@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: 24b0131793cc - stable/14 - Merge commit f577bfb99528 from llvm-project (by Alexander Potapenko): 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 24b0131793ccf493d6beb4c43b23076a6bcddac5 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=24b0131793ccf493d6beb4c43b23076a6bcddac5 commit 24b0131793ccf493d6beb4c43b23076a6bcddac5 Author: Dimitry Andric AuthorDate: 2024-02-08 19:19:27 +0000 Commit: Dimitry Andric CommitDate: 2024-02-13 17:51:25 +0000 Merge commit f577bfb99528 from llvm-project (by Alexander Potapenko): [sanitizer][msan] fix AArch64 vararg support for KMSAN (#70660) Cast StackSaveAreaPtr, GrRegSaveAreaPtr, VrRegSaveAreaPtr to pointers to fix assertions in getShadowOriginPtrKernel(). Fixes: https://github.com/llvm/llvm-project/issues/69738 Patch by Mark Johnston. Requested by: markj MFC after: 3 days (cherry picked from commit cf675768528f22b4a9d8c70897b9ebf51da8061e) --- .../lib/Transforms/Instrumentation/MemorySanitizer.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 83d90049abc3..de266590ad92 100644 --- a/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -1718,6 +1718,12 @@ struct MemorySanitizerVisitor : public InstVisitor { std::pair getShadowOriginPtrUserspace(Value *Addr, IRBuilder<> &IRB, Type *ShadowTy, MaybeAlign Alignment) { + VectorType *VectTy = dyn_cast(Addr->getType()); + if (!VectTy) { + assert(Addr->getType()->isPointerTy()); + } else { + assert(VectTy->getElementType()->isPointerTy()); + } Type *IntptrTy = ptrToIntPtrType(Addr->getType()); Value *ShadowOffset = getShadowPtrOffset(Addr, IRB); Value *ShadowLong = ShadowOffset; @@ -5262,21 +5268,25 @@ struct VarArgAArch64Helper : public VarArgHelper { // we need to adjust the offset for both GR and VR fields based on // the __{gr,vr}_offs value (since they are stores based on incoming // named arguments). + Type *RegSaveAreaPtrTy = IRB.getInt8PtrTy(); // Read the stack pointer from the va_list. - Value *StackSaveAreaPtr = getVAField64(IRB, VAListTag, 0); + Value *StackSaveAreaPtr = + IRB.CreateIntToPtr(getVAField64(IRB, VAListTag, 0), RegSaveAreaPtrTy); // Read both the __gr_top and __gr_off and add them up. Value *GrTopSaveAreaPtr = getVAField64(IRB, VAListTag, 8); Value *GrOffSaveArea = getVAField32(IRB, VAListTag, 24); - Value *GrRegSaveAreaPtr = IRB.CreateAdd(GrTopSaveAreaPtr, GrOffSaveArea); + Value *GrRegSaveAreaPtr = IRB.CreateIntToPtr( + IRB.CreateAdd(GrTopSaveAreaPtr, GrOffSaveArea), RegSaveAreaPtrTy); // Read both the __vr_top and __vr_off and add them up. Value *VrTopSaveAreaPtr = getVAField64(IRB, VAListTag, 16); Value *VrOffSaveArea = getVAField32(IRB, VAListTag, 28); - Value *VrRegSaveAreaPtr = IRB.CreateAdd(VrTopSaveAreaPtr, VrOffSaveArea); + Value *VrRegSaveAreaPtr = IRB.CreateIntToPtr( + IRB.CreateAdd(VrTopSaveAreaPtr, VrOffSaveArea), RegSaveAreaPtrTy); // It does not know how many named arguments is being used and, on the // callsite all the arguments were saved. Since __gr_off is defined as From nobody Tue Feb 13 17:52: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 4TZ86j6M6cz59NN7; Tue, 13 Feb 2024 17:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ86j50JLz42KL; Tue, 13 Feb 2024 17:52:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B6Axnl6K1oFGQrKCad9JiD5CaQpJa61FNsl62h/kSv4=; b=t//lA5xj03vp8i9QllQSHqNcU0s4YpN5FKXIZMTt+cpYMIeILjQA5ewHNkc++qDltzTuaC hX6UGEcE30e+jbVjM0EhfYy80+Q0cqnBbDN3ovjE2h1CjoyS0abL/Pj4IR+jXLGGJpL2te 6hRB+SLZrsg5zGM0NNdFHsUc8rF4Os54iO/5QVHicUqJzAqfTTN3W295SvJn88JCzeluX0 CcAodvN4qoFn4d+euhp1FgcukVEE8pQy5mbMKGU4ysZAc9EoFpOM2K+GhC9vAV1L+zsUzZ +WUFyTFjEykSZ7elAobC+qYwqEchTdI1BpklC9gd/oDswEwQGnR6w5l//vL/rw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707846749; a=rsa-sha256; cv=none; b=Vt7JmRztXgmdMkgarff4zT02h4OQMvvoeQhPn2/kXSGHSbWi4cS3EIRsg57mit4x1kg1fK cM0dX8kLMlYHrPwrMzJtM+DphUuJIGUECKgfRbCC1D4bFvbpnjSn6L/ddnz9foBDULHGSu 4jUy9gC8lUADBprLJPcVi6avFjiJe88Z4PBNMygGA3KNyj3jjmyCRsqCNP9RfT0D1XR8tp hiXGsNveoG9+Srz2ekrx7xn8n10h14mORyxJ6TdK3zyMkisdetQcdyzOSIn4F411iNv46q eUesG50Oh2UkHGXe/kgVEh/pYbdI39njwL7czEMpvoJV53b8Q7lXdJhV0ji8uQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B6Axnl6K1oFGQrKCad9JiD5CaQpJa61FNsl62h/kSv4=; b=bqXALBVoSv+U27s82SS+0h6twpV06DdXEWryqyC8IHzzBaqigukxX1x/NLjfxQZHWdtXFL 1WNOlL1S9nBLFbG8vO8RG71FmpsbohVh77pjah8aItZY45oRg93zw7FVOplIk6iV6Ncq6O SjeOihl1aOG+CiNCPW4KeZDV+L+hPlrLEjBqXkzbXk/somSp8thLcodzi+wLBN6dAE0Y6d CReHvSitmbvPqxqXCvkrXDWWkLBVqqoQL6pMpwRE3j+5/5LLEu46C609T+E/S2YKb4e2A8 mDUg29CHli5qi2x8ctcCQwVNEn3YvsjcWNbXW9ENl4T0D3yogWCdLS5twLPjPA== 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 4TZ86j44thzQ4d; Tue, 13 Feb 2024 17:52:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DHqTkv052889; Tue, 13 Feb 2024 17:52:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DHqT60052886; Tue, 13 Feb 2024 17:52:29 GMT (envelope-from git) Date: Tue, 13 Feb 2024 17:52:29 GMT Message-Id: <202402131752.41DHqT60052886@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: 5fe7f76dd681 - stable/14 - Remove usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp file 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 5fe7f76dd681bc3008464c83324d8eb927c6d599 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5fe7f76dd681bc3008464c83324d8eb927c6d599 commit 5fe7f76dd681bc3008464c83324d8eb927c6d599 Author: Dimitry Andric AuthorDate: 2024-02-10 21:00:05 +0000 Commit: Dimitry Andric CommitDate: 2024-02-13 17:51:33 +0000 Remove usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp file I accidentally copied this to the wrong place, or by accident to two places, during the merge of llvmorg-17-init-19304-gd0b54bb50e51. Fixes: 06c3fb2749bd MFC after: 3 days (cherry picked from commit 4015c064200e643ab110cdf831064c3c73f31b73) --- usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp b/usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp deleted file mode 100644 index 3ed6f501327f..000000000000 --- a/usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp +++ /dev/null @@ -1,16 +0,0 @@ -//===-- driver-template.cpp -----------------------------------------------===// -// -// 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 -// -//===----------------------------------------------------------------------===// - -#include "llvm/Support/LLVMDriver.h" -#include "llvm/ADT/ArrayRef.h" - -int llvm_cxxfilt_main(int argc, char **, const llvm::ToolContext &); - -int main(int argc, char **argv) { - return llvm_cxxfilt_main(argc, argv, {argv[0], nullptr, false}); -} From nobody Tue Feb 13 17:52: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 4TZ87044qVz59NCb; Tue, 13 Feb 2024 17:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ8702F3gz4365; Tue, 13 Feb 2024 17:52:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EyDoax6b0GjrD7hausg4bv3VOAkEJB9pmkeRAW0+LCU=; b=bdxn0vHS5fPPVDMfV4cVJbtSzcfrYEALQEFnyuU638JlylpXIKPMig/M9FtPRx8W5YQRQE khx8awoc2ZJMUHR51CNYbIhHkjCaqUevI3tyxvK95QEK6fUDOtiW+ZY/S6pCNgrkb2xgmj 0/KBgD6AJWQJyIYxq3xP6hvvbl388pSn1DgZBpr/is0xADOaORBlwQoMaYzI7pr2M5Ri12 8QH3+d0ZSIzS8BAjxkU8nARW9UcS1b7eZ/iWrS2ILBqdVoXIUA7d3Pbbc+tR/a4GT6d+uI fcz8z3My3VjD0AVwXNX2glN7bTD9wXgiXKG1emWN2KwSKLsJz//NydIq9Asptg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707846764; a=rsa-sha256; cv=none; b=bB0ek1gI+pMklXwaGAVJGV1VLcO/tzCNHhPNkprvJjcCz7Ol9nANYMInY7q7ftJm1qvNGs X4XlDxloZ2QtDyTYdHi8rBck53VTrjalR1DCYDkgfH93ytTAzGeWVK8nGbnRtDnOj0bdXa gyTVIPCtWgVDwlQmCl6wNIE4E0NiEwG1pgf5tFHcSN7KbZWjiXelyKX2s03d7WQX5nkx85 2PPn4eIxHxESnOHa86OWHi7YbgBrzLHrRfLAagUj+8ZXvdzNil9OgRyEwkCLV0LxCjEBdU fsnLbALfiVKTizYTqD/A34xO7DOjYUedjb2gm8Ao1K49vbjG5RvKQ4MZBEF7Nw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EyDoax6b0GjrD7hausg4bv3VOAkEJB9pmkeRAW0+LCU=; b=uFHY4Fw//NlgV6A/hCXAVqt0AK7KVW5X3kyur0t2TanEvgGgGoCdOw2kv02NsXPQ+DZKPp MJdonCTDXxOv5SaBZq28ExxkEb7okGtXqzCerDO4zJ59EJv1iNcbKAaWHDI1Qh5FNZkchc vlycyyoM8/n3a7Z20ZYyTQ8i/NHSVTozsHODSAnj+aOdwMahlv3kjcyvYgWRGLLL6S7/6w NTd1dkninyNFOwYoo1x8xzH3bbCBKqjkHv0F969ASvgO9d+dUY8mNwg8PztMR9ty9biZfK OxnlrHYYIQO0B/WshPeiLKbvn2enEqCBp2ZCFHyx1OHLYaM4MZQDLhJgHTN/mg== 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 4TZ8701KwyzPX8; Tue, 13 Feb 2024 17:52:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DHqiba054301; Tue, 13 Feb 2024 17:52:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DHqi8k054297; Tue, 13 Feb 2024 17:52:44 GMT (envelope-from git) Date: Tue, 13 Feb 2024 17:52:44 GMT Message-Id: <202402131752.41DHqi8k054297@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: 2292dffacfc5 - stable/13 - Merge commit f577bfb99528 from llvm-project (by Alexander Potapenko): 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 2292dffacfc56af7515830171a84f8651cc34a72 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=2292dffacfc56af7515830171a84f8651cc34a72 commit 2292dffacfc56af7515830171a84f8651cc34a72 Author: Dimitry Andric AuthorDate: 2024-02-08 19:19:27 +0000 Commit: Dimitry Andric CommitDate: 2024-02-13 17:51:47 +0000 Merge commit f577bfb99528 from llvm-project (by Alexander Potapenko): [sanitizer][msan] fix AArch64 vararg support for KMSAN (#70660) Cast StackSaveAreaPtr, GrRegSaveAreaPtr, VrRegSaveAreaPtr to pointers to fix assertions in getShadowOriginPtrKernel(). Fixes: https://github.com/llvm/llvm-project/issues/69738 Patch by Mark Johnston. Requested by: markj MFC after: 3 days (cherry picked from commit cf675768528f22b4a9d8c70897b9ebf51da8061e) --- .../lib/Transforms/Instrumentation/MemorySanitizer.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 83d90049abc3..de266590ad92 100644 --- a/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -1718,6 +1718,12 @@ struct MemorySanitizerVisitor : public InstVisitor { std::pair getShadowOriginPtrUserspace(Value *Addr, IRBuilder<> &IRB, Type *ShadowTy, MaybeAlign Alignment) { + VectorType *VectTy = dyn_cast(Addr->getType()); + if (!VectTy) { + assert(Addr->getType()->isPointerTy()); + } else { + assert(VectTy->getElementType()->isPointerTy()); + } Type *IntptrTy = ptrToIntPtrType(Addr->getType()); Value *ShadowOffset = getShadowPtrOffset(Addr, IRB); Value *ShadowLong = ShadowOffset; @@ -5262,21 +5268,25 @@ struct VarArgAArch64Helper : public VarArgHelper { // we need to adjust the offset for both GR and VR fields based on // the __{gr,vr}_offs value (since they are stores based on incoming // named arguments). + Type *RegSaveAreaPtrTy = IRB.getInt8PtrTy(); // Read the stack pointer from the va_list. - Value *StackSaveAreaPtr = getVAField64(IRB, VAListTag, 0); + Value *StackSaveAreaPtr = + IRB.CreateIntToPtr(getVAField64(IRB, VAListTag, 0), RegSaveAreaPtrTy); // Read both the __gr_top and __gr_off and add them up. Value *GrTopSaveAreaPtr = getVAField64(IRB, VAListTag, 8); Value *GrOffSaveArea = getVAField32(IRB, VAListTag, 24); - Value *GrRegSaveAreaPtr = IRB.CreateAdd(GrTopSaveAreaPtr, GrOffSaveArea); + Value *GrRegSaveAreaPtr = IRB.CreateIntToPtr( + IRB.CreateAdd(GrTopSaveAreaPtr, GrOffSaveArea), RegSaveAreaPtrTy); // Read both the __vr_top and __vr_off and add them up. Value *VrTopSaveAreaPtr = getVAField64(IRB, VAListTag, 16); Value *VrOffSaveArea = getVAField32(IRB, VAListTag, 28); - Value *VrRegSaveAreaPtr = IRB.CreateAdd(VrTopSaveAreaPtr, VrOffSaveArea); + Value *VrRegSaveAreaPtr = IRB.CreateIntToPtr( + IRB.CreateAdd(VrTopSaveAreaPtr, VrOffSaveArea), RegSaveAreaPtrTy); // It does not know how many named arguments is being used and, on the // callsite all the arguments were saved. Since __gr_off is defined as From nobody Tue Feb 13 17:52: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 4TZ8713zt9z59NCc; Tue, 13 Feb 2024 17:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ871384Yz42y9; Tue, 13 Feb 2024 17:52:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dgtdOtUwhYsHSDGfSDiIMY+/F96XQBr6yEGijteX0Bk=; b=oixy1iZk2gCWbznZWQR7Ekkd9OKu3oWh1ECZ7wvmJch8xIagl/VCR1KQFB3WXnZ12JA5E3 ksQtvks2a2FlKBgrMfQiZtwjB04aV20smgLzuiuJQnELXIJkdYAp7xekMq5IwLpe6/e4of LxvYHbnGcqxwm9MOyFEce10/0ObZWdZCqe0mq91AOxK9RbegQ6XCrKXLHPVDo57WKMeaO5 7v9TjUsFxF9hmKFWoX8WjLG8yhEkFoe88eN11K05B5BVEg45tni+k4ZDI3BPTgdmvxL7Wc y6RVFDArJFv2cUFFfxNiLGZJty6aE4eCD2xqWYuyb7P5gb7A/M6C13ScViyGhw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707846765; a=rsa-sha256; cv=none; b=Pkl8p+S/GMpdiuzGaF3MGrTDphWWpPyZmge1wNo8DUk6AiXKjYFuwkE6JkMZlnAQ8ZrNQr shqcevw1lAptCMXQ3+RQVIJTNW49gwhq/Wl5FiymOvTDTTcB2ky14p37oGFI0N0vL80bAl 3VsgPEitlRdlb2dHx5kBxtDQCxdrP2NjC7X0eoD0qYpjelEUIbnObvdj3fqhN7hlBAqlg0 GuA/wM+jQMjZiL+f/17f7R5+pZ9II9hyeBXjQcwPmMTjaNLeZKFeDe/nuHyJsnxmIZn7dz NT19+G3xUvMWZZbCwt1eXqcHgwHSUP9k3z9ZKejaERQ0cIMVl2cPH4nJwV3uMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707846765; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dgtdOtUwhYsHSDGfSDiIMY+/F96XQBr6yEGijteX0Bk=; b=Xnpka+GLUyugRjgY7VC0MSy7AWjKZtnHwh2Lpap1CvcziBBVzzTKOo0n189ekIcRfHOEcb 2jZLdQXwAHgMhIxpFjsT3aP0AzPHnSGfP7dr68nen6yUmBl8RxNr5DCakLL1kMOBLsna6p 5sL9sOJDDx7q1ImAsH0e36RZg23uYECreCiLHpbZRbWj4nMfVk6kScNLVaVEHieAx+TgZp 3/NN0h0tXEBMLFCKEaH0ok5VR1PxORI73phcqPBBpJ2cd05Q7VsS9f0w5CZ8pNjLHJyeum aoBboxZNODQey9BMS59PLf6qAOMnRObAWD5a/Q5qn1OPDTBbXz3TogCpb1MyFg== 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 4TZ8712Br3zPYg; Tue, 13 Feb 2024 17:52:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DHqjQV054341; Tue, 13 Feb 2024 17:52:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DHqjxK054338; Tue, 13 Feb 2024 17:52:45 GMT (envelope-from git) Date: Tue, 13 Feb 2024 17:52:45 GMT Message-Id: <202402131752.41DHqjxK054338@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: e9c00a656573 - stable/13 - Remove usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp file 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e9c00a6565735d5580f3f191fc964efb1361a4e2 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e9c00a6565735d5580f3f191fc964efb1361a4e2 commit e9c00a6565735d5580f3f191fc964efb1361a4e2 Author: Dimitry Andric AuthorDate: 2024-02-10 21:00:05 +0000 Commit: Dimitry Andric CommitDate: 2024-02-13 17:51:53 +0000 Remove usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp file I accidentally copied this to the wrong place, or by accident to two places, during the merge of llvmorg-17-init-19304-gd0b54bb50e51. Fixes: 06c3fb2749bd MFC after: 3 days (cherry picked from commit 4015c064200e643ab110cdf831064c3c73f31b73) --- usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp b/usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp deleted file mode 100644 index 3ed6f501327f..000000000000 --- a/usr.bin/clang/llvm-ar/llvm-cxxfilt-driver.cpp +++ /dev/null @@ -1,16 +0,0 @@ -//===-- driver-template.cpp -----------------------------------------------===// -// -// 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 -// -//===----------------------------------------------------------------------===// - -#include "llvm/Support/LLVMDriver.h" -#include "llvm/ADT/ArrayRef.h" - -int llvm_cxxfilt_main(int argc, char **, const llvm::ToolContext &); - -int main(int argc, char **argv) { - return llvm_cxxfilt_main(argc, argv, {argv[0], nullptr, false}); -} From nobody Tue Feb 13 18:19: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 4TZ8jk5qX3z59RKp; Tue, 13 Feb 2024 18:19:22 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ8jk0qwqz46Dp; Tue, 13 Feb 2024 18:19:22 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51182ece518so3678256e87.3; Tue, 13 Feb 2024 10:19:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707848359; x=1708453159; 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=uW9wlsVDbmvIqQKc0XClCoQN4K98QVSHw8koVv5pSiw=; b=KAdZpj4F9pcRhSG7t/h2kMSHsgQgVOxN9ENDgZZTYYEx5aOpVw2sxJc2CQ0ADDp2Nh S2jEk0Cb+GZH2PdWNPrKpLz/3oi7fL43+iMqW5P3ksbStPJlChgIyRy5GIBbLae9U5hc k09F9y6U8LbeYZ+LvdD5oy8JM0w9gD4E781hj2Y1ztvv/S9+6j0Qqvwuro+fF75/ZjeS T9soTuH1y4iLh1c6dK8bzeg76czh4mM12Dtu81MKRnTSLnkiztm02MfRa+gInu2yuxoS UIoR6CpHsfvdA5mV4ilxz4E/S9kdLg1/FSavqhivbGP3cilKrToi14DRO6Y67G8nn/vH zkSg== X-Forwarded-Encrypted: i=1; AJvYcCXhCO6gJr34BRysJcbgprP57RlC8noXr+Kpt+oejs124uD5MqqGrvBPnHCYYJRkBDEn7l81d8KZ55PI3p3XM/6OYq4ut9CxdeklEKAu3EjAao3VzL3UGKQ58PBqT4ARuPlkLyPrpzlfA6Pf0u6MIsnb+Cn8XsWJ+U9cROLGrLZzjvVJ/KXTxOKvtutvZjQ= X-Gm-Message-State: AOJu0Yx7AjKD3fCD+alYXJtv+z7Qd/mcKUGIXJrJGOp3++ywtuWgLiSQ JPNxlS8I9U5pYilhvslVkPDSLzEtlRyH40YRhqeynp5n508Pb0xmsG5PnkKBQtVmngShsWLYEsO qiloEkrfT8cjmbd3ZHKvbJ+uUlVpOD7Rw X-Google-Smtp-Source: AGHT+IEF2+wagBZevw2zsbrlhb4yB04hUXCTiYrq88RP0pHwlWAOoBooP3n/5/szrXgBWdghm0A/s6ZxZYkshkL1wHU= X-Received: by 2002:ac2:592e:0:b0:511:534c:e714 with SMTP id v14-20020ac2592e000000b00511534ce714mr203457lfi.65.1707848358777; Tue, 13 Feb 2024 10:19:18 -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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 References: <202402121425.41CEPmxI075183@gitrepo.freebsd.org> In-Reply-To: From: Ed Maste Date: Tue, 13 Feb 2024 13:19:06 -0500 Message-ID: Subject: Re: git: fd1066bed67f - main - .profile: Don't bother checking for /home symlink To: Brooks Davis Cc: Alexey Dokuchaev , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: 4TZ8jk0qwqz46Dp X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Tue, 13 Feb 2024 at 11:39, Brooks Davis wrote: > > > The installer creates separate /home, individual hackers might want to > > partition their drives the old way as / (root) + /usr (everything else), > > so this check is probably still useful. > > Perhaps more likely to be an issue: not all FreeBSD 14 systems started > as fresh installs. Ok, I can put it back. From nobody Tue Feb 13 18:25: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 4TZ8rv2xwBz59Rnv; Tue, 13 Feb 2024 18:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ8rv2MYMz470G; Tue, 13 Feb 2024 18:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707848735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4Abp5BWfi+o/K0940rGmgkc16vc2gRiSuojAgi+c9vA=; b=cHCCiy6gWAd1N6mwQLCXzi2k/KSJlfJnbCDoYCGdLNU2SDynIZYd9K7PWUmiqxVQoQ2AQg RAyKpy8e1jM3hMkWYUroeJr6BwuoMY4K5E9SKGdOa6cjHyrABuZc8y3C1YxpKbXwO6H7u0 xsNRqAhFa/SRxYtLSUbnz91nZfbeRoeuG/0uC4y7+p5KllQ8GbbJ1eJdRSLp6JQ6tC5FDN +fYAYRzodvwbVpCfVFx7qTupqV1o77bAEA+zpNpi0jfNyUk/qWb7pNuEVxgN8/ZGfFZxvI 07W+sx6w4i8pY59IvPVop0HC2OJAdKuYnlsLosf9u+WqtZkEVhcHpYigS8ofIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707848735; a=rsa-sha256; cv=none; b=fL8AWMSsSubwIsp+fRaJfUL6rB8ffbzQf3/9pb7zXKpCN3+BwfQqLUdeajpYiR/oQ7MPiP MPqs3P8ENlsJGYzU5mOXKOolDLzoGoDkb5HL/9jdzk2Ng4G1QMos0eWKbi29YjH8K813p3 hEVeGWFQgN9AcVoLOCzvfy6FexaNCR+imt+c7absrVePwLkxjuQ9uAhTGJFDbeKiQ6NW7D qHZXfin6/i7SLk73K5pp7jM01KnBn4L1JkDin8Rxm5skj/UiqRxK3vWlFpU3WHwYe1QLZA qVTzjj2/7cxu7Nwx3QRkscwgHxCgZJ5PLLYJ9avZjIOpgxg7yPEK0fwEfDIHaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707848735; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4Abp5BWfi+o/K0940rGmgkc16vc2gRiSuojAgi+c9vA=; b=cOcnfttcovM15yGRIcr+2Wjz/0bfVuaE3C1wmbuuGiungJaMtKkDlkQ8RpU3WrJeK3tlaF FZtwvsznzEIU5xDnI621+bIr1n5C1ZeGwD3DxvhX6X5e7+RX3+/nuC8Mi1N7YZQtWp8QAH 1Tm2EOJz9Hy8PIZge+PwyAV6hUpV8Qqw43r8rSIkekmbdJCxwKz7uYIyM0RMXZgK+6eyZJ iTQNEQh4/S74GQN6Cyn3GSYunks718RdBTKgefz7xiKEpYwesbjAqPUGYJMdJ6iOVmBVIR 6q041Atq53ninztrAgysS775amvJexvQyTPPxjWUjmywR12SN073EqwiH0J0/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 4TZ8rv1Nk6zQ92; Tue, 13 Feb 2024 18:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DIPZHF005978; Tue, 13 Feb 2024 18:25:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DIPZM0005975; Tue, 13 Feb 2024 18:25:35 GMT (envelope-from git) Date: Tue, 13 Feb 2024 18:25:35 GMT Message-Id: <202402131825.41DIPZM0005975@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: b4b61ead7eab - main - dot.profile: handle symlinked $HOME 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: b4b61ead7eabb7b6f3a6de67f7594b17c3a20660 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=b4b61ead7eabb7b6f3a6de67f7594b17c3a20660 commit b4b61ead7eabb7b6f3a6de67f7594b17c3a20660 Author: Edward Tomasz Napierala AuthorDate: 2019-01-09 11:04:27 +0000 Commit: Ed Maste CommitDate: 2024-02-13 18:24:22 +0000 dot.profile: handle symlinked $HOME Reapply 4cea05a273c875b5d5d4c41bfa6f2f0a60fa4a66: Make sh(1) recognize the default $HOME. By default /home is a symlink; without this change, when you log in, sh(1) won't realize the current directory (eg '/usr/home/test') is the same as $HOME ('/home/test'). /home is no longer a symlink by default, but new users may be added on systems that started out with an earlier version of FreeBSD (and still have /home as a symlink) or admins may do so. This test is not particularly expensive, so just restore it. Suggested by: danfe, brooks --- share/skel/dot.profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/skel/dot.profile b/share/skel/dot.profile index 7b9aa96c834a..40dfa58f4e84 100644 --- a/share/skel/dot.profile +++ b/share/skel/dot.profile @@ -19,6 +19,9 @@ PAGER=less; export PAGER # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV +# Let sh(1) know it's at home, despite /home being a symlink. +if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi + # Query terminal size; useful for serial lines. if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi From nobody Tue Feb 13 18: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 4TZ92J1QVxz59T1k for ; Tue, 13 Feb 2024 18: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ92J0J07z47q1; Tue, 13 Feb 2024 18:33:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707849224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yDN3bsp+Th7mqkEDOemQ0oNirt1TSPJ9ZUFQKRS5U5Y=; b=uJzgiR0sUX60Rl/r3ot4vEoUqPJNDS/y6zcOCwLOFS3kszDBzxGXpcJX8vlNcquEZMEZbo dczUShMW4cZv3PPhU4Y6DUFLzaLtuGMZPLI8dAkKwXPffXFyqpu3KQ3uJ9IsimWv8WCpFU UqOUNdbxBvWumzNTWsTdZs1nDIJZ4F+HdgxCQl0mkOAhqXFDAWG2us63G8lFDJwjRBNiuY 3kPl+HMpc9Gliqil2QEtEwCkRpKf7VATLYmrmjJTgGtEK7XsjxY8tny0uqLI5UHrSoiN+X 4iVdS7rDyeTnFgmA8zRW3/tZ2WUgDnK5Dof2pj/eWbOsOIOONXmV5gvv+LCo5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707849224; a=rsa-sha256; cv=none; b=IkkCsJ+y45Ksan0UcALtdzUcT0chA+Mu61hmXcEEzI1+dTd9+kZZJ2Ap3nhMym66Mmk7oB HxCT6hk7RnG7iu9eluYUcoMMTTX47/XyLJk5tEc6HDHIqF72IkQSkmnOXJxHRWSCDAEzJc a/xibDMdzDypouUjE0EHpn51OVXC03KqZKeIIFOMRQbNTUS5nPot+XSnqESqnhSdGwiKGB fnzQUsMj0P1W99fazVtoLAL1SzbYhdY/36df96sstKA2zTTbTdWH2wfpmEGhESkA4nxQ5U SeUyjAaWfu8ODX5krPJOBYfIjWRWVlY8Ng/k80LlSW13b4oGr2kMJae6Q5kHKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707849224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yDN3bsp+Th7mqkEDOemQ0oNirt1TSPJ9ZUFQKRS5U5Y=; b=WUVhsln6ol5cmD/wS6a06rEWj81v8fJ/A/YJDUwvefpBUIAtLCrodXq97ZJc3tgsm38J7K r/Udvg02IHB6BH0vB3K2BnY9FDuaWeHHzmqgOz8B8NLDFinA4D5lNw8mpqCOJoBldSHaMD Fp1AbPkgXUJ+6THpygZ88iJAMyHET2S+JivoSWZXob3PUdinZZcbncz/KjCWScsSlBfv26 ic3Hdq6FPKmBmKuhFjUga8Du9gVd523ATHs2BlCihc1Sg7QuWjfM8hJ8U6hgvZyGTKj/K7 xqjyfiH5uAfeD6dn6J2pXrEisjDYjmX5o4FgpYYN2XYrRdYB5CDS7dwpwcJs3g== 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 4TZ92H67XkzQss; Tue, 13 Feb 2024 18:33:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DIXh9G022470; Tue, 13 Feb 2024 18:33:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DIXhXv022469; Tue, 13 Feb 2024 18:33:43 GMT (envelope-from git) Date: Tue, 13 Feb 2024 18:33:43 GMT Message-Id: <202402131833.41DIXhXv022469@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: d5228e8957c2..378c74faf328 - vendor/tzcode - 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/vendor/tzcode X-Git-Reftype: branch X-Git-Commit: 378c74faf328dd07970e24ddaa2858531ff6cd08 X-Git-Oldrev: d5228e8957c2b6a9cbb2a73947640ce3c70097e8 X-Git-Newrev: 378c74faf328dd07970e24ddaa2858531ff6cd08 Auto-Submitted: auto-generated The branch vendor/tzcode has been updated by des: URL: https://cgit.FreeBSD.org/src/log/?id=d5228e8957c2..378c74faf328 378c74faf328 Import tzcode 2024a From nobody Tue Feb 13 18:33: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 4TZ92V3Zmnz59T1n for ; Tue, 13 Feb 2024 18:33: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ92V2rrCz489G; Tue, 13 Feb 2024 18:33:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707849234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vturrngQhu3I2LX3AHx+7ykDS3ZDoBmPr8cmIr5OJRg=; b=xET5xom2/KRPAmaJxoXAuOKgVXCkixw/la3yPv8ipYVav7+9LCBJ9KuwWt2DNzTzWGJ1f8 tzV12t3fuXjxmTn63FsL+YsGS06saqSRmE2TInj+K4NzHZFXzYE5thE2DrpsBzO22L1uBE 1Nd+fz60zvzmI6bdtk3m24tVOpsidwoU9RugIUc+go9KiPcBg7O8S3nl0+WS0rPWKkJl+Q SLcWK0TZG1Wjo8xbcQVVWL/bWk1cNQqKtmccjXyQ2kmHLi7J8inV2qobW2/6kVuo76WGDE RNNn52fGqlOVcZQXEowLsNZ0BaMkdWu+mvQV35gFimC7r/pfOxvr3NLWz9S76w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707849234; a=rsa-sha256; cv=none; b=mZ5q97BfYjspb0fM1qUnJj/5k5861YdZkXaV2HFKRfW3g4BrnDlVflTrJmlm4zBim1CndI 8zdCFem28JDMZmq8p2K7Vv3MdRsVvVah53Ui9q22F8yrIigKp3RcQvCuEol+ea1CNd92tp lxI12d7I5USukKpPg4B01a5oKw1yMZ/B/wHBht/dIwFp51Shj3y5ivWlewC6LR9rs29o2c qEdFA+YnOTu4v3wqxRk2ih90tfxGXafhSMIYOxS7TJo8EMPD1AckVU7Gjav3kuEnG+sKdN 8t4c8P2lDryOQELHW5QV7hObvGm2jtXfB5YaeIZgfzVQgLgOGUNHryZq/TfERg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707849234; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vturrngQhu3I2LX3AHx+7ykDS3ZDoBmPr8cmIr5OJRg=; b=XAJSiNwpTMI+uBQXMkFLGg+q0UVWbm6m2MOvqmWivOy+DsVqHzxrz8vauaTGpVzV6qZALn N5OMq2Zp30srjQvJ676hTFlAj0PibJEJAHiJ58otHECUlLtSpXwa6OD4MhzqSS8DFVz6c+ ow0MQw8gt/9LH6Bm/rN/EwkI/pxGSOcXMD/qzuGcD8Ww5HGZjqOFAAAoEg1/OzkylZPq8p u6SZbhhUxW8F6iF3+NMs/Ewzd6NktDgAiZ7Xs9bG91JrWLFIPuRn+XNbt8leDjB3Y8Cko8 VdUfKCl/9yZt3VHA/n64ZAGZ9Pv0jJONlmC7DYSDS7d8uR4w769Wcg3PRpTYZA== 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 4TZ92V1vWlzQdv; Tue, 13 Feb 2024 18:33:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DIXsAU022616; Tue, 13 Feb 2024 18:33:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DIXs5k022615; Tue, 13 Feb 2024 18:33:54 GMT (envelope-from git) Date: Tue, 13 Feb 2024 18:33:54 GMT Message-Id: <202402131833.41DIXs5k022615@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: bf780ae01ca2 - Create tag vendor/tzcode/tzcode2024a 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/tags/vendor/tzcode/tzcode2024a X-Git-Reftype: annotated tag X-Git-Commit: bf780ae01ca26e898ffd60c10b6caf4c55b27f4b Auto-Submitted: auto-generated The annotated tag vendor/tzcode/tzcode2024a has been created by des: URL: https://cgit.FreeBSD.org/src/tag/?h=vendor/tzcode/tzcode2024a tag vendor/tzcode/tzcode2024a Tagger: Dag-Erling Smørgrav TaggerDate: 2024-02-13 18:32:04 +0000 Release 2024a - 2024-02-01 09:28:56 -0800 commit 378c74faf328dd07970e24ddaa2858531ff6cd08 Author: Dag-Erling Smørgrav AuthorDate: 2024-02-13 18:30:52 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-02-13 18:30:52 +0000 Import tzcode 2024a From nobody Tue Feb 13 19:15: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 4TZ9yK2GgFz59YH8; Tue, 13 Feb 2024 19:15: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ9yK1zmPz4Flc; Tue, 13 Feb 2024 19:15:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707851721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x/sbLhALpM9ICCFJrKm81kRjMIh5T1MDBP+oWQJK2Ao=; b=KQoSAkIqsdNNp6fGqfYoDHLAHee8p070ih29/UEt/UUvixo9KhAlno0tQbpMqtMDOwGkw6 6/A3Sppy5Dh2CN1B6KGEvYdvZpWBx29pFIvQO0oSM84MaP2iunZQF+IqbY9mdbKDREFobn flIgmFt071sFKelKmMkXaZ/PhRp4FMtSeMeeQJZLZA/zRTwXvx+WzqvLZXyhpVWciIyqj6 s3sHhGMC/AUKs7zCJCSZ2hL0QNck03qyExS654qu2ebGVGLam1LC4jF7OuFGROxm8WKmBy gCYje+ku7fwVuBoHRhfNLBwMnBY47EkT+uJrisxA35S+JJXEbSW1rDYAfzWoIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707851721; a=rsa-sha256; cv=none; b=FjoKyrqaw+ToCvYSg3sIbFNNLXIklU601y+pD/1txlDW0wi9DkdHyuwkFGpTFydOpdBN/0 mcC+pQUVhwZKTHJyvqDxPbSnmETpdtGS1o0G3MwZuAnVsMFYZAd9O5E/IntD+/k4OwmQcM AtVcYF32Bks+RylVe53PjKuFTo59PRRB4bCPXgdo+15G0mNvas1/Lj6KSk7Z89DojDouk7 6w3qvLDds5wqcdYf5dn4sDTpeRAbfVtAOHntu7knDqkldrfkf0anSKat3tOB+lCX4jxLDC lgffw7u8aaDwTXEQmI8HSJJUQGOKhZFiPMU7b7/h8xdbLEGlXInb6tZojIW1IA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707851721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x/sbLhALpM9ICCFJrKm81kRjMIh5T1MDBP+oWQJK2Ao=; b=sCOtmIIaclZtF5ownEQTAfatuPykLem4umfV3EXE2RGXSwaU0UaD065sH0ADKO6QGgaDUd +cundz6pXJCbh0Ghu3juogm/0YmCbMVwYZw/3luaB2jNy8HsR3wLU+sjpI7XcBdPzl1ECM +hm//NOP114/ERiLVxeUR3mxdikhDutwJqGy4m6Ux4ebKKrnfqePUsrswm0phcQ08IM3lS apK3zUmo1oWj7UHKyo6oDWFqJA8kyuNcFQKl/egONk1USL2mTnNOZ+ltcqbfLdDzkGOoMi hMpTw8OgxNSRygBxqi6p1qjv1tSpFdLemhgwGeF/zjwCwohbX3M4r5mCoq1lVw== 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 4TZ9yK12WdzRmC; Tue, 13 Feb 2024 19:15:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DJFLu9090284; Tue, 13 Feb 2024 19:15:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DJFLcH090281; Tue, 13 Feb 2024 19:15:21 GMT (envelope-from git) Date: Tue, 13 Feb 2024 19:15:21 GMT Message-Id: <202402131915.41DJFLcH090281@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 9fc1d78e39d5 - stable/14 - caroot: routine 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 9fc1d78e39d5a56e3041e11898b14cfb9a3e8a47 Auto-Submitted: auto-generated The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=9fc1d78e39d5a56e3041e11898b14cfb9a3e8a47 commit 9fc1d78e39d5a56e3041e11898b14cfb9a3e8a47 Author: Kyle Evans AuthorDate: 2024-02-11 06:33:12 +0000 Commit: Kyle Evans CommitDate: 2024-02-13 19:14:51 +0000 caroot: routine update Changes: - One (1) modified - Eight (8) added - One (1) expired, now untrusted MFC after: 3 days (cherry picked from commit 0d3b2bdbf719ac6b5719a47387558ca9c34a4b2c) --- ObsoleteFiles.inc | 3 + ...ertificacion_Firmaprofesional_CIF_A62634068.pem | 118 +++++++++--------- .../trusted/CommScope_Public_Trust_ECC_Root-01.pem | 67 ++++++++++ .../trusted/CommScope_Public_Trust_ECC_Root-02.pem | 67 ++++++++++ .../trusted/CommScope_Public_Trust_RSA_Root-01.pem | 134 ++++++++++++++++++++ .../trusted/CommScope_Public_Trust_RSA_Root-02.pem | 134 ++++++++++++++++++++ .../trusted/Telekom_Security_TLS_ECC_Root_2020.pem | 68 ++++++++++ .../trusted/Telekom_Security_TLS_RSA_Root_2023.pem | 138 +++++++++++++++++++++ .../caroot/trusted/TrustAsia_Global_Root_CA_G3.pem | 138 +++++++++++++++++++++ .../caroot/trusted/TrustAsia_Global_Root_CA_G4.pem | 70 +++++++++++ .../Security_Communication_Root_CA.pem | 0 11 files changed, 878 insertions(+), 59 deletions(-) diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index cace8b72a03e..5b8d36122a5c 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -51,6 +51,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20240213: caroot bundle updated +OLD_FILES+=usr/share/certs/trusted/Security_Communication_Root_CA.pem + # 20240117: replaced NetBSD tests for uniq with our own OLD_FILES+=usr/tests/usr.bin/uniq/d_basic.in OLD_FILES+=usr/tests/usr.bin/uniq/d_basic.out diff --git a/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem b/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem index 7eeb715ac674..ceae80a3e6d8 100644 --- a/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem +++ b/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem @@ -14,12 +14,12 @@ Certificate: Data: Version: 3 (0x2) - Serial Number: 6047274297262753887 (0x53ec3beefbb2485f) - Signature Algorithm: sha1WithRSAEncryption + Serial Number: 1977337328857672817 (0x1b70e9d2ffae6c71) + Signature Algorithm: sha256WithRSAEncryption Issuer: C = ES, CN = Autoridad de Certificacion Firmaprofesional CIF A62634068 Validity - Not Before: May 20 08:38:15 2009 GMT - Not After : Dec 31 08:38:15 2030 GMT + Not Before: Sep 23 15:22:07 2014 GMT + Not After : May 5 15:22:07 2036 GMT Subject: C = ES, CN = Autoridad de Certificacion Firmaprofesional CIF A62634068 Subject Public Key Info: Public Key Algorithm: rsaEncryption @@ -62,54 +62,54 @@ Certificate: 92:30:bb Exponent: 65537 (0x10001) X509v3 extensions: - X509v3 Basic Constraints: critical - CA:TRUE, pathlen:1 - X509v3 Key Usage: critical - Certificate Sign, CRL Sign X509v3 Subject Key Identifier: 65:CD:EB:AB:35:1E:00:3E:7E:D5:74:C0:1C:B4:73:47:0E:1A:64:2F + X509v3 Basic Constraints: critical + CA:TRUE, pathlen:1 X509v3 Certificate Policies: Policy: X509v3 Any Policy CPS: http://www.firmaprofesional.com/cps User Notice: Explicit Text: - Signature Algorithm: sha1WithRSAEncryption + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: sha256WithRSAEncryption Signature Value: - 17:7d:a0:f9:b4:dd:c5:c5:eb:ad:4b:24:b5:a1:02:ab:dd:a5: - 88:4a:b2:0f:55:4b:2b:57:8c:3b:e5:31:dd:fe:c4:32:f1:e7: - 5b:64:96:36:32:18:ec:a5:32:77:d7:e3:44:b6:c0:11:2a:80: - b9:3d:6a:6e:7c:9b:d3:ad:fc:c3:d6:a3:e6:64:29:7c:d1:e1: - 38:1e:82:2b:ff:27:65:af:fb:16:15:c4:2e:71:84:e5:b5:ff: - fa:a4:47:bd:64:32:bb:f6:25:84:a2:27:42:f5:20:b0:c2:13: - 10:11:cd:10:15:ba:42:90:2a:d2:44:e1:96:26:eb:31:48:12: - fd:2a:da:c9:06:cf:74:1e:a9:4b:d5:87:28:f9:79:34:92:3e: - 2e:44:e8:f6:8f:4f:8f:35:3f:25:b3:39:dc:63:2a:90:6b:20: - 5f:c4:52:12:4e:97:2c:2a:ac:9d:97:de:48:f2:a3:66:db:c2: - d2:83:95:a6:66:a7:9e:25:0f:e9:0b:33:91:65:0a:5a:c3:d9: - 54:12:dd:af:c3:4e:0e:1f:26:5e:0d:dc:b3:8d:ec:d5:81:70: - de:d2:4f:24:05:f3:6c:4e:f5:4c:49:66:8d:d1:ff:d2:0b:25: - 41:48:fe:51:84:c6:42:af:80:04:cf:d0:7e:64:49:e4:f2:df: - a2:ec:b1:4c:c0:2a:1d:e7:b4:b1:65:a2:c4:bc:f1:98:f4:aa: - 70:07:63:b4:b8:da:3b:4c:fa:40:22:30:5b:11:a6:f0:05:0e: - c6:02:03:48:ab:86:9b:85:dd:db:dd:ea:a2:76:80:73:7d:f5: - 9c:04:c4:45:8d:e7:b9:1c:8b:9e:ea:d7:75:d1:72:b1:de:75: - 44:e7:42:7d:e2:57:6b:7d:dc:99:bc:3d:83:28:ea:80:93:8d: - c5:4c:65:c1:70:81:b8:38:fc:43:31:b2:f6:03:34:47:b2:ac: - fb:22:06:cb:1e:dd:17:47:1c:5f:66:b9:d3:1a:a2:da:11:b1: - a4:bc:23:c9:e4:be:87:ff:b9:94:b6:f8:5d:20:4a:d4:5f:e7: - bd:68:7b:65:f2:15:1e:d2:3a:a9:2d:e9:d8:6b:24:ac:97:58: - 44:47:ad:59:18:f1:21:65:70:de:ce:34:60:a8:40:f1:f3:3c: - a4:c3:28:23:8c:fe:27:33:43:40:a0:17:3c:eb:ea:3b:b0:72: - a6:a3:b9:4a:4b:5e:16:48:f4:b2:bc:c8:8c:92:c5:9d:9f:ac: - 72:36:bc:34:80:34:6b:a9:8b:92:c0:b8:17:ed:ec:76:53:f5: - 24:01:8c:b3:22:e8:4b:7c:55:c6:9d:fa:a3:14:bb:65:85:6e: - 6e:4f:12:7e:0a:3c:9d:95 -SHA1 Fingerprint=AE:C5:FB:3F:C8:E1:BF:C4:E5:4F:03:07:5A:9A:E8:00:B7:F7:B6:FA + 74:87:28:02:2b:77:1f:66:89:64:ed:8f:74:2e:46:1c:bb:a8: + f8:f8:0b:1d:83:b6:3a:a7:e8:45:8a:07:b7:e0:3e:20:cb:e1: + 08:db:13:08:f8:28:a1:35:b2:80:b3:0b:51:c0:d3:56:9a:8d: + 33:45:49:af:49:f0:e0:3d:07:7a:45:13:5a:ff:c8:97:d8:d3: + 18:2c:7d:96:f8:dd:a2:65:43:70:93:90:15:ba:90:df:e8:19: + b0:db:2c:8a:60:0f:b7:6f:94:07:1e:1d:a6:c9:85:f6:bd:34: + f8:40:78:62:10:70:3a:be:7d:4b:39:81:a9:10:d4:96:41:bb: + f8:5f:1c:0b:1d:08:f2:b1:b0:89:7a:f2:f7:a0:e0:c4:8f:8b: + 78:b5:3b:58:a5:23:8e:4f:55:fe:36:3b:e0:0c:b7:ca:2a:30: + 41:20:b4:80:cd:ae:fc:76:66:73:a8:ae:6e:e1:7c:da:03:e8: + 94:20:e6:22:a3:d0:1f:90:5d:20:53:14:26:57:da:54:97:df: + 16:44:10:01:1e:88:66:8f:72:38:93:dd:20:b7:34:be:d7:f1: + ee:63:8e:47:79:28:06:fc:f3:59:45:25:60:22:33:1b:a3:5f: + a8:ba:2a:da:1a:3d:cd:40:ea:8c:ee:05:15:95:d5:a5:2c:20: + 2f:a7:98:28:ee:45:fc:f1:b8:88:00:2c:8f:42:da:51:d5:9c: + e5:13:68:71:45:43:8b:9e:0b:21:3c:4b:5c:05:dc:1a:9f:98: + 8e:da:bd:22:9e:72:cd:ad:0a:cb:cc:a3:67:9b:28:74:c4:9b: + d7:1a:3c:04:58:a6:82:9d:ad:c7:7b:6f:ff:80:96:e9:f8:8d: + 6a:bd:18:90:1d:ff:49:1a:90:52:37:93:2f:3c:02:5d:82:76: + 0b:51:e7:16:c7:57:f8:38:f9:a7:cd:9b:22:54:ef:63:b0:15: + 6d:53:65:03:4a:5e:4a:a0:b2:a7:8e:49:00:59:38:d5:c7:f4: + 80:64:f5:6e:95:50:b8:11:7e:15:70:38:4a:b0:7f:d0:c4:32: + 70:c0:19:ff:c9:38:2d:14:2c:66:f4:42:44:e6:55:76:1b:80: + 15:57:ff:c0:a7:a7:aa:39:aa:d8:d3:70:d0:2e:ba:eb:94:6a: + fa:5f:34:86:e7:62:b5:fd:8a:f0:30:85:94:c9:af:24:02:2f: + 6f:d6:dd:67:fe:e3:b0:55:4f:04:98:4f:a4:41:56:e2:93:d0: + 6a:e8:d6:f3:fb:65:e0:ce:75:c4:31:59:0c:ee:82:c8:0c:60: + 33:4a:19:ba:84:67:27:0f:bc:42:5d:bd:24:54:0d:ec:1d:70: + 06:5f:a4:bc:fa:20:7c:55 +SHA1 Fingerprint=0B:BE:C2:27:22:49:CB:39:AA:DB:35:5C:53:E3:8C:AE:78:FF:B6:FE -----BEGIN CERTIFICATE----- -MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UE +MIIGFDCCA/ygAwIBAgIIG3Dp0v+ubHEwDQYJKoZIhvcNAQELBQAwUTELMAkGA1UE BhMCRVMxQjBABgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1h -cHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEy -MzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIwQAYDVQQDDDlBdXRvcmlkYWQgZGUg +cHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODAeFw0xNDA5MjMxNTIyMDdaFw0zNjA1 +MDUxNTIyMDdaMFExCzAJBgNVBAYTAkVTMUIwQAYDVQQDDDlBdXRvcmlkYWQgZGUg Q2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBBNjI2MzQwNjgwggIi MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDDUtd9 thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQM @@ -122,21 +122,21 @@ Z/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirja EbsXLZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/T KI8xWVvTyQKmtFLKbpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF 6NkBiDkal4ZkQdU7hwxu+g/GvUgUvzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVh -OSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD -VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRlzeurNR4APn7VdMActHNHDhpkLzCBpgYD -VR0gBIGeMIGbMIGYBgRVHSAAMIGPMC8GCCsGAQUFBwIBFiNodHRwOi8vd3d3LmZp -cm1hcHJvZmVzaW9uYWwuY29tL2NwczBcBggrBgEFBQcCAjBQHk4AUABhAHMAZQBv -ACAAZABlACAAbABhACAAQgBvAG4AYQBuAG8AdgBhACAANAA3ACAAQgBhAHIAYwBl -AGwAbwBuAGEAIAAwADgAMAAxADcwDQYJKoZIhvcNAQEFBQADggIBABd9oPm03cXF -661LJLWhAqvdpYhKsg9VSytXjDvlMd3+xDLx51tkljYyGOylMnfX40S2wBEqgLk9 -am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qkR71kMrv2JYSiJ0L1 -ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaPT481 -PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS -3a/DTg4fJl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5k -SeTy36LssUzAKh3ntLFlosS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF -3dvd6qJ2gHN99ZwExEWN57kci57q13XRcrHedUTnQn3iV2t93Jm8PYMo6oCTjcVM -ZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoRsaS8I8nkvof/uZS2+F0g -StRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTDKCOM/icz -Q0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQB -jLMi6Et8Vcad+qMUu2WFbm5PEn4KPJ2V +OSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMB0GA1UdDgQWBBRlzeurNR4APn7VdMAc +tHNHDhpkLzASBgNVHRMBAf8ECDAGAQH/AgEBMIGmBgNVHSAEgZ4wgZswgZgGBFUd +IAAwgY8wLwYIKwYBBQUHAgEWI2h0dHA6Ly93d3cuZmlybWFwcm9mZXNpb25hbC5j +b20vY3BzMFwGCCsGAQUFBwICMFAeTgBQAGEAcwBlAG8AIABkAGUAIABsAGEAIABC +AG8AbgBhAG4AbwB2AGEAIAA0ADcAIABCAGEAcgBjAGUAbABvAG4AYQAgADAAOAAw +ADEANzAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggIBAHSHKAIrdx9m +iWTtj3QuRhy7qPj4Cx2Dtjqn6EWKB7fgPiDL4QjbEwj4KKE1soCzC1HA01aajTNF +Sa9J8OA9B3pFE1r/yJfY0xgsfZb43aJlQ3CTkBW6kN/oGbDbLIpgD7dvlAceHabJ +hfa9NPhAeGIQcDq+fUs5gakQ1JZBu/hfHAsdCPKxsIl68veg4MSPi3i1O1ilI45P +Vf42O+AMt8oqMEEgtIDNrvx2ZnOorm7hfNoD6JQg5iKj0B+QXSBTFCZX2lSX3xZE +EAEeiGaPcjiT3SC3NL7X8e5jjkd5KAb881lFJWAiMxujX6i6KtoaPc1A6ozuBRWV +1aUsIC+nmCjuRfzxuIgALI9C2lHVnOUTaHFFQ4ueCyE8S1wF3BqfmI7avSKecs2t +CsvMo2ebKHTEm9caPARYpoKdrcd7b/+Alun4jWq9GJAd/0kakFI3ky88Al2CdgtR +5xbHV/g4+afNmyJU72OwFW1TZQNKXkqgsqeOSQBZONXH9IBk9W6VULgRfhVwOEqw +f9DEMnDAGf/JOC0ULGb0QkTmVXYbgBVX/8Cnp6o5qtjTcNAuuuuUavpfNIbnYrX9 +ivAwhZTJryQCL2/W3Wf+47BVTwSYT6RBVuKT0Gro1vP7ZeDOdcQxWQzugsgMYDNK +GbqEZycPvEJdvSRUDewdcAZfpLz6IHxV -----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem new file mode 100644 index 000000000000..41e8a409ac3c --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem @@ -0,0 +1,67 @@ +## +## CommScope Public Trust ECC Root-01 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 43:70:82:77:cf:4d:5d:34:f1:ca:ae:32:2f:37:f7:f4:7f:75:a0:9e + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-01 + Validity + Not Before: Apr 28 17:35:43 2021 GMT + Not After : Apr 28 17:35:42 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-01 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:4b:36:e9:ae:57:5e:a8:70:d7:d0:8f:74:62:77: + c3:5e:7a:aa:e5:b6:a2:f1:78:fd:02:7e:57:dd:91: + 79:9c:6c:b9:52:88:54:bc:2f:04:be:b8:cd:f6:10: + d1:29:ec:b5:d0:a0:c3:f0:89:70:19:bb:51:65:c5: + 43:9c:c3:9b:63:9d:20:83:3e:06:0b:a6:42:44:85: + 11:a7:4a:3a:2d:e9:d6:68:2f:48:4e:53:2b:07:3f: + 4d:bd:b9:ac:77:39:57 + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 8E:07:62:C0:50:DD:C6:19:06:00:46:74:04:F7:F3:AE:7D:75:4D:30 + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:65:02:31:00:9c:33:df:41:e3:23:a8:42:36:26:97:35:5c: + 7b:eb:db:4b:f8:aa:8b:73:55:15:5c:ac:78:29:0f:ba:21:d8: + c4:a0:d8:d1:03:dd:6d:d1:39:3d:c4:93:60:d2:e3:72:b2:02: + 30:7c:c5:7e:88:d3:50:f5:1e:25:e8:fa:4e:75:e6:58:96:a4: + 35:5f:1b:65:ea:61:9a:70:23:b5:0d:a3:9b:92:52:6f:69:a0: + 8c:8d:4a:d0:ee:8b:0e:cb:47:8e:d0:8d:11 +SHA1 Fingerprint=07:86:C0:D8:DD:8E:C0:80:98:06:98:D0:58:7A:EF:DE:A6:CC:A2:5D +-----BEGIN CERTIFICATE----- +MIICHTCCAaOgAwIBAgIUQ3CCd89NXTTxyq4yLzf39H91oJ4wCgYIKoZIzj0EAwMw +TjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwiQ29t +bVNjb3BlIFB1YmxpYyBUcnVzdCBFQ0MgUm9vdC0wMTAeFw0yMTA0MjgxNzM1NDNa +Fw00NjA0MjgxNzM1NDJaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21tU2Nv +cGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgRUNDIFJvb3QtMDEw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAARLNumuV16ocNfQj3Rid8NeeqrltqLxeP0C +flfdkXmcbLlSiFS8LwS+uM32ENEp7LXQoMPwiXAZu1FlxUOcw5tjnSCDPgYLpkJE +hRGnSjot6dZoL0hOUysHP029uax3OVejQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSOB2LAUN3GGQYARnQE9/OufXVNMDAKBggq +hkjOPQQDAwNoADBlAjEAnDPfQeMjqEI2Jpc1XHvr20v4qotzVRVcrHgpD7oh2MSg +2NED3W3ROT3Ek2DS43KyAjB8xX6I01D1HiXo+k515liWpDVfG2XqYZpwI7UNo5uS +Um9poIyNStDuiw7LR47QjRE= +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem new file mode 100644 index 000000000000..f547954704be --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem @@ -0,0 +1,67 @@ +## +## CommScope Public Trust ECC Root-02 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 28:fd:99:60:41:47:a6:01:3a:ca:14:7b:1f:ef:f9:68:08:83:5d:7d + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-02 + Validity + Not Before: Apr 28 17:44:54 2021 GMT + Not After : Apr 28 17:44:53 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-02 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:78:30:81:e8:63:1e:e5:eb:71:51:0f:f7:07:07: + ca:39:99:7c:4e:d5:0f:cc:30:30:0b:8f:66:93:3e: + cf:bd:c5:86:bd:f9:b1:b7:b4:3e:b4:07:c8:f3:96: + 31:f3:ed:a4:4f:f8:a3:4e:8d:29:15:58:b8:d5:6f: + 7f:ee:6c:22:b5:b0:af:48:45:0a:bd:a8:49:94:bf: + 84:43:b0:db:84:4a:03:23:19:67:6a:6f:c1:6e:bc: + 06:39:37:d1:88:22:f7 + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + E6:18:75:FF:EF:60:DE:84:A4:F5:46:C7:DE:4A:55:E3:32:36:79:F5 + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:64:02:30:26:73:49:7a:b6:ab:e6:49:f4:7d:52:3f:d4:41: + 04:ae:80:43:83:65:75:b9:85:80:38:3b:d6:6f:e4:93:86:ab: + 8f:e7:89:c8:7f:9b:7e:6b:0a:12:55:61:aa:11:e0:79:02:30: + 77:e8:31:71:ac:3c:71:03:d6:84:26:1e:14:b8:f3:3b:3b:de: + ed:59:fc:6b:4c:30:7f:59:ce:45:e9:73:60:15:9a:4c:f0:e6: + 5e:25:22:15:6d:c2:87:59:d0:b2:8e:6a +SHA1 Fingerprint=3C:3F:EF:57:0F:FE:65:93:86:9E:A0:FE:B0:F6:ED:8E:D1:13:C7:E5 +-----BEGIN CERTIFICATE----- +MIICHDCCAaOgAwIBAgIUKP2ZYEFHpgE6yhR7H+/5aAiDXX0wCgYIKoZIzj0EAwMw +TjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwiQ29t +bVNjb3BlIFB1YmxpYyBUcnVzdCBFQ0MgUm9vdC0wMjAeFw0yMTA0MjgxNzQ0NTRa +Fw00NjA0MjgxNzQ0NTNaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21tU2Nv +cGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgRUNDIFJvb3QtMDIw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAAR4MIHoYx7l63FRD/cHB8o5mXxO1Q/MMDAL +j2aTPs+9xYa9+bG3tD60B8jzljHz7aRP+KNOjSkVWLjVb3/ubCK1sK9IRQq9qEmU +v4RDsNuESgMjGWdqb8FuvAY5N9GIIvejQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTmGHX/72DehKT1RsfeSlXjMjZ59TAKBggq +hkjOPQQDAwNnADBkAjAmc0l6tqvmSfR9Uj/UQQSugEODZXW5hYA4O9Zv5JOGq4/n +ich/m35rChJVYaoR4HkCMHfoMXGsPHED1oQmHhS48zs73u1Z/GtMMH9ZzkXpc2AV +mkzw5l4lIhVtwodZ0LKOag== +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem new file mode 100644 index 000000000000..2f144760f93c --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem @@ -0,0 +1,134 @@ +## +## CommScope Public Trust RSA Root-01 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 3e:03:49:81:75:16:74:31:8e:4c:ab:d5:c5:90:29:96:c5:39:10:dd + Signature Algorithm: sha256WithRSAEncryption + Issuer: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-01 + Validity + Not Before: Apr 28 16:45:54 2021 GMT + Not After : Apr 28 16:45:53 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-01 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:b0:48:65:a3:0d:1d:42:e3:91:6d:9d:84:a4:61: + 96:12:c2:ed:c3:da:23:34:19:76:f6:ea:fd:55:5a: + f6:55:01:53:0f:f2:cc:8c:97:4f:b9:50:cb:b3:01: + 44:56:96:fd:9b:28:ec:7b:74:0b:e7:42:6b:55:ce: + c9:61:b2:e8:ad:40:3c:ba:b9:41:0a:05:4f:1b:26: + 85:8f:43:b5:40:b5:85:d1:d4:71:dc:83:41:f3:f6: + 45:c7:80:a2:84:50:97:46:ce:a0:0c:c4:60:56:04: + 1d:07:5b:46:a5:0e:b2:4b:a4:0e:a5:7c:ee:f8:d4: + 62:03:b9:93:6a:8a:14:b8:70:f8:2e:82:46:38:23: + 0e:74:c7:6b:41:b7:d0:29:a3:9d:80:b0:7e:77:93: + 63:42:fb:34:83:3b:73:a3:5a:21:36:eb:47:fa:18: + 17:d9:ba:66:c2:93:a4:8f:fc:5d:a4:ad:fc:50:6a: + 95:ac:bc:24:33:d1:bd:88:7f:86:f5:f5:b2:73:2a: + 8f:7c:af:08:f2:1a:98:3f:a9:81:65:3f:c1:8c:89: + c5:96:30:9a:0a:cf:f4:d4:c8:34:ed:9d:2f:bc:8d: + 38:86:53:ee:97:9f:a9:b2:63:94:17:8d:0f:dc:66: + 2a:7c:52:51:75:cb:99:8e:e8:3d:5c:bf:9e:3b:28: + 8d:83:02:0f:a9:9f:72:e2:2c:2b:b3:dc:66:97:00: + 40:d0:a4:54:8e:9b:5d:7b:45:36:26:d6:72:43:eb: + cf:c0:ea:0d:dc:ce:12:e6:7d:38:9f:05:27:a8:97: + 3e:e9:51:c6:6c:05:28:c1:02:0f:e9:18:6d:ec:bd: + 9c:06:d4:a7:49:f4:54:05:6b:6c:30:f1:eb:03:d5: + ea:3d:6a:76:c2:cb:1a:28:49:4d:7f:64:e0:fa:2b: + da:73:83:81:ff:91:03:bd:94:bb:e4:b8:8e:9c:32: + 63:cd:9f:bb:68:81:b1:84:5b:af:36:bf:77:ee:1d: + 7f:f7:49:9b:52:ec:d2:77:5a:7d:91:9d:4d:c2:39: + 2d:e4:ba:82:f8:6f:f2:4e:1e:0f:4e:e6:3f:59:a5: + 23:dc:3d:87:a8:28:58:28:d1:f1:1b:36:db:4f:c4: + ff:e1:8c:5b:72:8c:c7:26:03:27:a3:39:0a:01:aa: + c0:b2:31:60:83:22:a1:4f:12:09:01:11:af:34:d4: + cf:d7:ae:62:d3:05:07:b4:31:75:e0:0d:6d:57:4f: + 69:87:f9:57:a9:ba:15:f6:c8:52:6d:a1:cb:9c:1f: + e5:fc:78:a8:35:9a:9f:41:14:ce:a5:b4:ce:94:08: + 1c:09:ad:56:e5:da:b6:49:9a:4a:ea:63:18:53:9c: + 2c:2e:c3 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 37:5D:A6:9A:74:32:C2:C2:F9:C7:A6:15:10:59:B8:E4:FD:E5:B8:6D + Signature Algorithm: sha256WithRSAEncryption + Signature Value: + af:a7:cf:de:ff:e0:bd:42:8d:4d:e5:22:96:df:68:ea:7d:4d: + 2a:7d:d0:ad:3d:16:5c:43:e7:7d:c0:86:e8:7a:35:63:f1:cc: + 81:c8:c6:0b:e8:2e:52:35:a4:a6:49:90:63:51:ac:34:ac:05: + 3b:57:00:e9:d3:62:d3:d9:29:d5:54:be:1c:10:91:9c:b2:6d: + fe:59:fd:79:f7:ea:56:d0:9e:68:54:42:8f:26:52:e2:4c:df: + 2f:97:a6:2f:d2:07:98:a8:f3:60:5d:4b:9a:58:57:88:ef:82: + e5:fa:af:6c:81:4b:92:8f:40:9a:93:46:59:cb:5f:78:16:b1: + 67:3e:42:0b:df:28:d9:b0:ad:98:20:be:43:7c:d1:5e:1a:09: + 17:24:8d:7b:5d:95:e9:ab:c1:60:ab:5b:18:64:80:fb:ad:e0: + 06:7d:1d:ca:59:b8:f3:78:29:67:c6:56:1d:af:b6:b5:74:2a: + 76:a1:3f:fb:75:30:9f:94:5e:3b:a5:60:f3:cb:5c:0c:e2:0e: + c9:60:f8:c9:1f:16:8a:26:dd:e7:27:7f:eb:25:a6:8a:bd:b8: + 2d:36:10:9a:b1:58:4d:9a:68:4f:60:54:e5:f6:46:13:8e:88: + ac:bc:21:42:12:ad:c6:4a:89:7d:9b:c1:d8:2d:e9:96:03:f4: + a2:74:0c:bc:00:1d:bf:d6:37:25:67:b4:72:8b:af:85:bd:ea: + 2a:03:8f:cc:fb:3c:44:24:82:e2:01:a5:0b:59:b6:34:8d:32: + 0b:12:0d:eb:27:c2:fd:41:d7:40:3c:72:46:29:c0:8c:ea:ba: + 0f:f1:06:93:2e:f7:9c:a8:f4:60:3e:a3:f1:38:5e:8e:13:c1: + b3:3a:97:87:3f:92:ca:78:a9:1c:af:d0:b0:1b:26:1e:be:70: + ec:7a:f5:33:98:ea:5c:ff:2b:0b:04:4e:43:dd:63:7e:0e:a7: + 4e:78:03:95:3e:d4:2d:30:95:11:10:28:2e:bf:a0:02:3e:ff: + 5e:59:d3:05:0e:95:5f:53:45:ef:6b:87:d5:48:cd:16:a6:96: + 83:e1:df:b3:06:f3:c1:14:db:a7:ec:1c:8b:5d:90:90:0d:72: + 51:e7:61:f9:14:ca:af:83:8f:bf:af:b1:0a:59:5d:dc:5c:d7: + e4:96:ad:5b:60:1d:da:ae:97:b2:39:d9:06:f5:76:00:13:f8: + 68:4c:21:b0:35:c4:dc:55:b2:c9:c1:41:5a:1c:89:c0:8c:6f: + 74:a0:6b:33:4d:b5:01:28:fd:ad:ad:89:17:3b:a6:9a:84:bc: + eb:8c:ea:c4:71:24:a8:ba:29:f9:08:b2:27:56:35:32:5f:ea: + 39:fb:31:9a:d5:19:cc:f0 +SHA1 Fingerprint=6D:0A:5F:F7:B4:23:06:B4:85:B3:B7:97:64:FC:AC:75:F5:33:F2:93 +-----BEGIN CERTIFICATE----- +MIIFbDCCA1SgAwIBAgIUPgNJgXUWdDGOTKvVxZAplsU5EN0wDQYJKoZIhvcNAQEL +BQAwTjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwi +Q29tbVNjb3BlIFB1YmxpYyBUcnVzdCBSU0EgUm9vdC0wMTAeFw0yMTA0MjgxNjQ1 +NTRaFw00NjA0MjgxNjQ1NTNaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21t +U2NvcGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgUlNBIFJvb3Qt +MDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwSGWjDR1C45FtnYSk +YZYSwu3D2iM0GXb26v1VWvZVAVMP8syMl0+5UMuzAURWlv2bKOx7dAvnQmtVzslh +suitQDy6uUEKBU8bJoWPQ7VAtYXR1HHcg0Hz9kXHgKKEUJdGzqAMxGBWBB0HW0al +DrJLpA6lfO741GIDuZNqihS4cPgugkY4Iw50x2tBt9Apo52AsH53k2NC+zSDO3Oj +WiE260f6GBfZumbCk6SP/F2krfxQapWsvCQz0b2If4b19bJzKo98rwjyGpg/qYFl +P8GMicWWMJoKz/TUyDTtnS+8jTiGU+6Xn6myY5QXjQ/cZip8UlF1y5mO6D1cv547 +KI2DAg+pn3LiLCuz3GaXAEDQpFSOm117RTYm1nJD68/A6g3czhLmfTifBSeolz7p +UcZsBSjBAg/pGG3svZwG1KdJ9FQFa2ww8esD1eo9anbCyxooSU1/ZOD6K9pzg4H/ +kQO9lLvkuI6cMmPNn7togbGEW682v3fuHX/3SZtS7NJ3Wn2RnU3COS3kuoL4b/JO +Hg9O5j9ZpSPcPYeoKFgo0fEbNttPxP/hjFtyjMcmAyejOQoBqsCyMWCDIqFPEgkB +Ea801M/XrmLTBQe0MXXgDW1XT2mH+VepuhX2yFJtocucH+X8eKg1mp9BFM6ltM6U +CBwJrVbl2rZJmkrqYxhTnCwuwwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUN12mmnQywsL5x6YVEFm45P3luG0wDQYJ +KoZIhvcNAQELBQADggIBAK+nz97/4L1CjU3lIpbfaOp9TSp90K09FlxD533Ahuh6 +NWPxzIHIxgvoLlI1pKZJkGNRrDSsBTtXAOnTYtPZKdVUvhwQkZyybf5Z/Xn36lbQ +nmhUQo8mUuJM3y+Xpi/SB5io82BdS5pYV4jvguX6r2yBS5KPQJqTRlnLX3gWsWc+ +QgvfKNmwrZggvkN80V4aCRckjXtdlemrwWCrWxhkgPut4AZ9HcpZuPN4KWfGVh2v +trV0KnahP/t1MJ+UXjulYPPLXAziDslg+MkfFoom3ecnf+slpoq9uC02EJqxWE2a +aE9gVOX2RhOOiKy8IUISrcZKiX2bwdgt6ZYD9KJ0DLwAHb/WNyVntHKLr4W96ioD +j8z7PEQkguIBpQtZtjSNMgsSDesnwv1B10A8ckYpwIzqug/xBpMu95yo9GA+o/E4 +Xo4TwbM6l4c/ksp4qRyv0LAbJh6+cOx69TOY6lz/KwsETkPdY34Op054A5U+1C0w +lREQKC6/oAI+/15Z0wUOlV9TRe9rh9VIzRamloPh37MG88EU26fsHItdkJANclHn +YfkUyq+Dj7+vsQpZXdxc1+SWrVtgHdqul7I52Qb1dgAT+GhMIbA1xNxVssnBQVoc +icCMb3SgazNNtQEo/a2tiRc7ppqEvOuM6sRxJKi6KfkIsidWNTJf6jn7MZrVGczw +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem new file mode 100644 index 000000000000..b343c7765878 --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem @@ -0,0 +1,134 @@ +## +## CommScope Public Trust RSA Root-02 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 54:16:bf:3b:7e:39:95:71:8d:d1:aa:00:a5:86:0d:2b:8f:7a:05:4e + Signature Algorithm: sha256WithRSAEncryption + Issuer: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-02 + Validity + Not Before: Apr 28 17:16:43 2021 GMT + Not After : Apr 28 17:16:42 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-02 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:e1:fa:0e:fb:68:00:12:c8:4d:d5:ac:22:c4:35: + 01:3b:c5:54:e5:59:76:63:a5:7f:eb:c1:c4:6a:98: + bd:32:8d:17:80:eb:5d:ba:d1:62:3d:25:23:19:35: + 14:e9:7f:89:a7:1b:62:3c:d6:50:e7:34:95:03:32: + b1:b4:93:22:3d:a7:e2:b1:ed:e6:7b:4e:2e:87:9b: + 0d:33:75:0a:de:aa:35:e7:7e:e5:36:98:a2:ae:25: + 9e:95:b3:32:96:a4:2b:58:1e:ef:3f:fe:62:34:48: + 51:d1:b4:8d:42:ad:60:da:49:6a:95:70:dd:d2:00: + e2:cc:57:63:02:7b:96:dd:49:97:5b:92:4e:95:d3: + f9:cb:29:1f:18:4a:f8:01:2a:d2:63:09:6e:24:e9: + 89:d2:e5:c7:22:4c:dc:73:86:47:00:aa:0d:88:8e: + ae:85:7d:4a:e9:bb:33:4f:0e:52:70:9d:95:e3:7c: + 6d:96:5b:2d:3d:5f:a1:83:46:5d:b6:e3:25:b8:7c: + a7:19:80:1c:ea:65:43:dc:91:79:36:2c:74:7c:f2: + 67:06:c9:89:c9:db:bf:da:68:bf:23:ed:dc:6b:ad: + 28:83:79:2f:ec:38:a5:0d:37:01:67:27:9a:e9:33: + d9:33:5f:37:a1:c5:f0:ab:3d:fa:78:b0:e7:2c:9f: + f6:3e:9f:60:e0:ef:48:e9:90:45:1e:05:51:78:1a: + 2c:12:2c:5c:28:ac:0d:a2:23:9e:34:8f:05:e6:a2: + 33:ce:11:77:13:d4:0e:a4:1e:42:1f:86:cd:70:fe: + d9:2e:15:3d:1d:bb:b8:f2:53:57:db:cc:c6:74:29: + 9c:18:b3:36:75:38:2e:0f:54:a1:f8:92:1f:89:96: + 4f:bb:d4:ee:9d:e9:3b:36:42:b5:0a:3b:2a:d4:64: + 79:36:10:e1:f9:91:03:2b:7b:20:54:cd:0d:19:1a: + c8:41:32:34:d1:b0:99:e1:90:1e:01:40:36:b5:b7: + fa:a9:e5:77:75:a4:22:81:5d:b0:8b:e4:27:12:0f: + 54:88:c6:db:85:74:e6:b7:c0:d7:a6:29:fa:db:de: + f3:93:97:27:04:55:2f:0a:6f:37:c5:3d:13:af:0a: + 00:a9:2c:8b:1c:81:28:d7:ef:86:31:a9:ae:f2:6e: + b8:ca:6a:2c:54:47:d8:2a:88:2e:af:c1:07:10:78: + ac:11:a2:2f:42:f0:37:c5:f2:b8:56:dd:0e:62:2d: + ce:2d:56:7e:55:f2:a7:44:f6:2b:32:f4:23:a8:47: + e8:d4:2a:01:78:cf:6a:c3:37:a8:9e:65:d2:2c:e5: + fa:ba:33:c1:06:44:f6:e6:cf:a5:0d:a7:66:08:34: + 8a:2c:f3 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 47:D0:E7:B1:22:FF:9D:2C:F5:D9:57:60:B3:B1:B1:70:95:EF:61:7A + Signature Algorithm: sha256WithRSAEncryption + Signature Value: + 86:69:b1:4d:2f:e9:9f:4f:22:93:68:8e:e4:21:99:a3:ce:45: + 53:1b:73:44:53:00:81:61:cd:31:e3:08:ba:81:28:28:7a:92: + b9:b6:a8:c8:43:9e:c7:13:26:4d:c2:d8:e5:55:9c:92:5d:50: + d8:c2:2b:db:fe:e6:a8:97:cf:52:3a:24:c3:65:64:5c:47:31: + a3:65:35:13:c3:93:b9:f7:f9:51:97:bb:a4:f0:62:87:c5:d6: + 06:d3:97:83:20:a9:7e:bb:b6:21:c2:a5:0d:84:00:e1:f2:27: + 10:83:ba:dd:03:81:d5:dd:68:c3:66:10:c8:d1:76:b4:b3:6f: + 29:9e:00:f9:c2:29:f5:b1:93:19:52:69:1a:2c:4c:a0:8b:e0: + 15:9a:31:2f:d3:88:95:59:6e:e5:c4:b3:50:c8:14:08:4a:9b: + 8b:13:83:b1:a4:72:b2:3b:76:33:41:dc:dc:aa:a6:07:6f:1d: + 24:12:9f:c8:76:bd:2f:d9:8e:f4:2c:ee:b7:d2:38:10:24:36: + 51:2f:e3:5c:5d:81:21:a7:da:bb:4e:ff:e6:07:a8:fe:b9:0d: + 27:6c:bb:70:5a:55:7a:13:e9:f1:2a:49:69:c7:5f:87:57:4c: + 43:79:6d:3a:65:e9:30:5c:41:ee:eb:77:a5:73:12:88:e8:bf: + 7d:ae:e5:c4:a8:1f:0d:8e:1c:6d:50:02:4f:26:18:43:de:8f: + 55:85:b1:0b:37:05:60:c9:55:39:12:04:a1:2a:cf:71:16:9f: + 36:51:49:bf:70:3b:9e:67:9c:fb:7b:79:c9:39:1c:78:ac:77: + 91:54:9a:b8:75:0a:81:52:97:e3:66:61:6b:ed:3e:38:1e:96: + 61:55:e1:91:54:8c:ed:8c:24:1f:81:c9:10:9a:73:99:2b:16: + 4e:72:00:3f:54:1b:f8:8d:ba:8b:e7:14:d6:b6:45:4f:60:ec: + 96:ae:c3:2f:02:4e:5d:9d:96:49:72:00:b2:ab:75:5c:0f:68: + 5b:1d:65:c2:5f:33:0f:1e:0f:f0:3b:86:f5:b0:4e:bb:9c:f7: + ea:25:05:dc:ad:a2:9b:4b:17:01:be:42:df:35:21:1d:ad:ab: + ae:f4:bf:ae:1f:1b:d3:e2:3b:fc:b3:72:73:1c:9b:28:90:89: + 13:3d:1d:c1:00:47:09:96:9a:38:1b:dd:b1:cf:0d:c2:b4:44: + f3:96:95:ce:32:3a:8f:34:9c:e0:17:c7:5e:ce:ae:0d:db:87: + 38:e5:3f:5b:fd:9b:19:e1:31:41:7a:70:aa:23:6b:01:e1:45: + 4c:cd:94:ce:3b:9e:2d:e7:88:02:22:f4:6e:e8:c8:ec:d6:3c: + f3:b9:b2:d7:77:7a:ac:7b +SHA1 Fingerprint=EA:B0:E2:52:1B:89:93:4C:11:68:F2:D8:9A:AC:22:4C:A3:8A:57:AE +-----BEGIN CERTIFICATE----- +MIIFbDCCA1SgAwIBAgIUVBa/O345lXGN0aoApYYNK496BU4wDQYJKoZIhvcNAQEL +BQAwTjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwi +Q29tbVNjb3BlIFB1YmxpYyBUcnVzdCBSU0EgUm9vdC0wMjAeFw0yMTA0MjgxNzE2 +NDNaFw00NjA0MjgxNzE2NDJaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21t +U2NvcGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgUlNBIFJvb3Qt +MDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDh+g77aAASyE3VrCLE +NQE7xVTlWXZjpX/rwcRqmL0yjReA61260WI9JSMZNRTpf4mnG2I81lDnNJUDMrG0 +kyI9p+Kx7eZ7Ti6Hmw0zdQreqjXnfuU2mKKuJZ6VszKWpCtYHu8//mI0SFHRtI1C +rWDaSWqVcN3SAOLMV2MCe5bdSZdbkk6V0/nLKR8YSvgBKtJjCW4k6YnS5cciTNxz +hkcAqg2Ijq6FfUrpuzNPDlJwnZXjfG2WWy09X6GDRl224yW4fKcZgBzqZUPckXk2 +LHR88mcGyYnJ27/aaL8j7dxrrSiDeS/sOKUNNwFnJ5rpM9kzXzehxfCrPfp4sOcs +n/Y+n2Dg70jpkEUeBVF4GiwSLFworA2iI540jwXmojPOEXcT1A6kHkIfhs1w/tku +FT0du7jyU1fbzMZ0KZwYszZ1OC4PVKH4kh+Jlk+71O6d6Ts2QrUKOyrUZHk2EOH5 +kQMreyBUzQ0ZGshBMjTRsJnhkB4BQDa1t/qp5Xd1pCKBXbCL5CcSD1SIxtuFdOa3 +wNemKfrb3vOTlycEVS8KbzfFPROvCgCpLIscgSjX74Yxqa7ybrjKaixUR9gqiC6v +wQcQeKwRoi9C8DfF8rhW3Q5iLc4tVn5V8qdE9isy9COoR+jUKgF4z2rDN6ieZdIs +5fq6M8EGRPbmz6UNp2YINIos8wIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUR9DnsSL/nSz12Vdgs7GxcJXvYXowDQYJ +KoZIhvcNAQELBQADggIBAIZpsU0v6Z9PIpNojuQhmaPORVMbc0RTAIFhzTHjCLqB +KCh6krm2qMhDnscTJk3C2OVVnJJdUNjCK9v+5qiXz1I6JMNlZFxHMaNlNRPDk7n3 ++VGXu6TwYofF1gbTl4MgqX67tiHCpQ2EAOHyJxCDut0DgdXdaMNmEMjRdrSzbyme +APnCKfWxkxlSaRosTKCL4BWaMS/TiJVZbuXEs1DIFAhKm4sTg7GkcrI7djNB3Nyq +pgdvHSQSn8h2vS/ZjvQs7rfSOBAkNlEv41xdgSGn2rtO/+YHqP65DSdsu3BaVXoT +6fEqSWnHX4dXTEN5bTpl6TBcQe7rd6VzEojov32u5cSoHw2OHG1QAk8mGEPej1WF +sQs3BWDJVTkSBKEqz3EWnzZRSb9wO55nnPt7eck5HHisd5FUmrh1CoFSl+NmYWvt +PjgelmFV4ZFUjO2MJB+ByRCac5krFk5yAD9UG/iNuovnFNa2RU9g7Jauwy8CTl2d +lklyALKrdVwPaFsdZcJfMw8eD/A7hvWwTruc9+olBdytoptLFwG+Qt81IR2tq670 +v64fG9PiO/yzcnMcmyiQiRM9HcEARwmWmjgb3bHPDcK0RPOWlc4yOo80nOAXx17O +rg3bhzjlP1v9mxnhMUF6cKojawHhRUzNlM47ni3niAIi9G7oyOzWPPO5std3eqx7 +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem b/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem new file mode 100644 index 000000000000..da5285d26633 --- /dev/null +++ b/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem @@ -0,0 +1,68 @@ +## +## Telekom Security TLS ECC Root 2020 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 36:3a:96:8c:c9:5c:b2:58:cd:d0:01:5d:c5:e5:57:00 + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS ECC Root 2020 + Validity + Not Before: Aug 25 07:48:20 2020 GMT + Not After : Aug 25 23:59:59 2045 GMT + Subject: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS ECC Root 2020 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:ce:bf:fe:57:a8:bf:d5:aa:f7:10:9a:cd:bc:d1: + 11:a2:bd:67:42:cc:90:eb:15:18:90:d9:a2:cd:0c: + 2a:25:eb:3e:4f:ce:b5:d2:8f:0f:f3:35:da:43:8b: + 02:80:be:6f:51:24:1d:0f:6b:2b:ca:9f:c2:6f:50: + 32:e5:37:20:b6:20:ff:88:0d:0f:6d:49:bb:db:06: + a4:87:90:92:94:f4:09:d0:cf:7f:c8:80:0b:c1:97: + b3:bb:35:27:c9:c2:1b + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Subject Key Identifier: + E3:72:CC:6E:95:99:47:B1:E6:B3:61:4C:D1:CB:AB:E3:BA:CD:DE:9F + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:64:02:30:75:52:8b:b7:a4:10:4f:ae:4a:10:8b:b2:84:5b: + 42:e1:e6:2a:36:02:da:a0:6e:19:3f:25:bf:da:59:32:8e:e4: + fb:90:dc:93:64:ce:ad:b4:41:47:60:e2:cf:a7:cb:1e:02:30: + 37:41:8c:66:df:41:6b:d6:83:00:41:fd:2f:5a:f7:50:b4:67: + d1:2c:a8:71:d7:43:ca:9c:27:24:91:83:48:0d:cf:cd:f7:54: + 81:af:ec:7f:e4:67:db:b8:90:ee:dd:25 +SHA1 Fingerprint=C0:F8:96:C5:A9:3B:01:06:21:07:DA:18:42:48:BC:E9:9D:88:D5:EC +-----BEGIN CERTIFICATE----- +MIICQjCCAcmgAwIBAgIQNjqWjMlcsljN0AFdxeVXADAKBggqhkjOPQQDAzBjMQsw +CQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBH +bWJIMSswKQYDVQQDDCJUZWxla29tIFNlY3VyaXR5IFRMUyBFQ0MgUm9vdCAyMDIw +MB4XDTIwMDgyNTA3NDgyMFoXDTQ1MDgyNTIzNTk1OVowYzELMAkGA1UEBhMCREUx +JzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkgR21iSDErMCkGA1UE +AwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgRUNDIFJvb3QgMjAyMDB2MBAGByqGSM49 +AgEGBSuBBAAiA2IABM6//leov9Wq9xCazbzREaK9Z0LMkOsVGJDZos0MKiXrPk/O +tdKPD/M12kOLAoC+b1EkHQ9rK8qfwm9QMuU3ILYg/4gND21Ju9sGpIeQkpT0CdDP +f8iAC8GXs7s1J8nCG6NCMEAwHQYDVR0OBBYEFONyzG6VmUex5rNhTNHLq+O6zd6f +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2cA +MGQCMHVSi7ekEE+uShCLsoRbQuHmKjYC2qBuGT8lv9pZMo7k+5Dck2TOrbRBR2Di +z6fLHgIwN0GMZt9Ba9aDAEH9L1r3ULRn0SyocddDypwnJJGDSA3PzfdUga/sf+Rn +27iQ7t0l +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem b/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem new file mode 100644 index 000000000000..69bbcdd0e322 --- /dev/null +++ b/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem @@ -0,0 +1,138 @@ +## +## Telekom Security TLS RSA Root 2023 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 21:9c:54:2d:e8:f6:ec:71:77:fa:4e:e8:c3:70:57:97 + Signature Algorithm: sha384WithRSAEncryption + Issuer: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS RSA Root 2023 + Validity + Not Before: Mar 28 12:16:45 2023 GMT + Not After : Mar 27 23:59:59 2048 GMT + Subject: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS RSA Root 2023 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:ed:35:a1:81:80:f3:cb:4a:69:5b:c2:fb:51:83: + ae:26:fd:e1:6e:f3:81:12:7d:71:40:ff:87:75:42: + 29:21:ed:81:52:2c:df:12:c1:19:84:89:c1:bd:c5: + 28:d5:d5:4b:6c:44:d6:4c:db:07:96:4a:55:7a:ca: + 36:82:04:36:a8:a5:fc:27:f6:49:f1:d5:72:9e:91: + f9:23:d6:70:7b:bb:f5:9b:c1:ec:93:cf:19:ea:65: + 7e:88:70:a0:73:fc:f6:ff:b5:56:62:e1:73:6a:34: + 98:3e:82:b8:ac:95:53:f4:01:a0:27:07:72:a3:00: + 53:a0:e4:b2:ab:83:38:57:33:25:94:9f:be:48:1d: + 98:e1:a3:ba:9e:5c:cd:04:71:51:7d:75:78:ab:f3: + 59:aa:c4:e0:60:be:8f:83:52:b8:75:1a:41:35:ed: + bc:f3:3a:63:e9:a9:14:45:d7:e6:52:d1:6e:d2:de: + bc:e3:f5:0b:3b:e6:e0:c4:bd:43:64:13:a6:ce:f4: + 98:37:6c:8a:95:a8:97:c8:47:0f:f0:5e:10:8b:e7: + 1d:1c:fe:b1:3b:a0:05:33:68:05:41:82:c1:03:2b: + 01:c8:e7:8f:4d:ab:e8:b5:f6:cd:6b:44:b5:e7:dd: + 8b:ec:ea:25:b4:00:22:57:4d:b0:b1:b2:31:c1:16: + ce:ff:fd:14:84:b7:47:fa:b2:f1:70:de:db:8b:6c: + 36:58:a4:7c:b3:11:d1:c3:77:7f:5f:b6:25:e0:0d: + c5:d2:b3:f9:b8:b8:77:db:37:71:71:47:e3:60:18: + 4f:24:b6:75:37:78:b9:a3:62:af:bd:c9:72:8e:2f: + cc:bb:ae:db:e4:15:52:19:07:33:fb:6a:b7:2d:4b: + 90:28:82:73:fe:18:8b:35:8d:db:a7:04:6a:be:ea: + c1:4d:36:3b:16:36:91:32:ef:b6:40:89:91:43:e0: + f2:a2:ab:04:2e:e6:f2:4c:0e:16:34:20:ac:87:c1: + 2d:7e:c9:66:47:17:14:11:a4:f3:f7:a1:24:89:ab: + d8:1a:c8:a1:5c:b1:a3:f7:8c:6d:c8:01:c9:4f:c9: + ec:c4:fc:ac:51:33:d1:c8:83:d1:c9:9f:1d:d4:47: + 34:29:3e:cb:b0:0e:fa:83:0b:28:58:e5:29:dc:3f: + 7c:a8:9f:c9:b6:0a:bb:a6:e8:46:16:0f:96:e5:7b: + e4:6a:7a:48:6d:76:98:05:a5:dc:6d:1e:42:1e:42: + da:1a:e0:52:f7:b5:83:c0:1a:7b:78:35:2c:38:f5: + 1f:fd:49:a3:2e:d2:59:63:bf:80:b0:8c:93:73:cb: + 35:a6:99:95:22:61:65:03:60:fb:2f:93:4b:fa:9a: + 9c:80:3b + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + B6:A7:97:82:3D:74:85:9B:F7:3C:9F:93:9A:95:79:75:52:8C:6D:47 + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Authority Key Identifier: + B6:A7:97:82:3D:74:85:9B:F7:3C:9F:93:9A:95:79:75:52:8C:6D:47 + Signature Algorithm: sha384WithRSAEncryption + Signature Value: + a8:cc:61:a6:be:75:9e:15:50:a4:6b:fb:a8:70:45:7c:ba:7e: + b1:5a:fc:5b:23:fa:0a:77:f8:98:71:82:0c:6d:e0:5e:46:aa: + 93:f4:1e:a0:c3:e1:93:db:4b:ad:b2:a6:5d:ab:b0:d4:62:cb: + 5e:bb:66:f5:2d:ee:97:40:3c:62:eb:5e:d6:14:d6:8c:e2:96: + 8b:41:69:93:35:e6:b9:99:6b:62:b4:a1:17:66:34:a6:6b:63: + c6:b9:4e:f2:22:e9:58:0d:56:41:d1:fa:0c:4a:f0:33:cd:3b: + bb:6d:21:3a:ae:8e:72:b5:c3:4a:fb:e9:7d:e5:b1:9b:86:ee: + e2:e0:7d:b4:f7:32:fd:22:84:f1:85:c9:37:79:e9:b5:3f:bf: + 5c:e4:74:b2:8f:11:62:00:dd:18:66:a1:d9:7b:23:5f:f1:8e: + d5:67:e8:54:da:5b:3a:6b:36:6f:f9:81:b1:33:47:33:77:40: + f9:52:aa:dd:d4:83:cf:85:78:99:9a:93:b9:73:67:42:46:11: + 21:ea:fe:0a:a9:1b:1a:65:69:b3:8f:ae:16:b6:f6:4b:56:b2: + 2d:f9:a5:c8:ec:3b:62:a3:ed:6b:d0:4e:d5:40:09:a4:1f:98: + d7:3a:a5:92:59:20:e4:b0:7d:cd:5b:73:68:bd:6d:c4:a2:13: + 0e:67:19:b8:8d:42:7e:6c:0c:9a:6e:a0:24:2d:d5:45:1b:dc: + c4:02:14:fe:85:5b:65:97:ca:4e:90:50:08:7a:42:35:f9:ea: + c2:66:d4:f8:01:ae:1e:b4:be:c3:a8:ef:fe:76:9a:a2:a6:1f: + 46:f6:84:ed:fc:db:ce:c4:02:ce:77:48:2c:8c:b2:ec:c3:00: + a3:ec:2c:55:18:c1:7e:19:ee:e1:2f:f2:ad:83:9b:9e:ab:19: + df:c6:8a:2f:8c:77:e5:b7:05:ec:3b:c1:ec:be:86:b3:86:bc: + c0:f7:dc:e7:ea:5b:ae:b2:cc:b5:35:86:4b:d0:e2:3f:b6:d8: + f8:0e:00:ee:5d:e3:f7:8d:58:ff:cf:8b:37:e9:63:5f:6e:f7: + 09:71:36:c2:12:5d:57:f2:c8:b4:cd:f3:ee:02:df:11:dc:6a: + b9:57:84:1d:59:4d:8c:ce:c8:0e:23:c2:b7:26:9a:10:14:71: + fe:93:b2:8a:b8:80:f0:0e:10:9e:d3:a8:50:0c:37:82:2f:ea: + e0:8a:9d:e1:2c:39:ff:b5:b4:73:00:e4:f7:48:a6:73:ac:bf: + b2:de:77:04:87:b4:a3:cd:9b:35:24:37:fa:90:93:13:81:42: + c6:98:26:75:37:66:41:10:ac:bb:f5:94:e3:c2:31:2b:ad:e7: + 23:56:cc:35:25:92:b3:50 +SHA1 Fingerprint=54:D3:AC:B3:BD:57:56:F6:85:9D:CE:E5:C3:21:E2:D4:AD:83:D0:93 +-----BEGIN CERTIFICATE----- +MIIFszCCA5ugAwIBAgIQIZxULej27HF3+k7ow3BXlzANBgkqhkiG9w0BAQwFADBj +MQswCQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0 +eSBHbWJIMSswKQYDVQQDDCJUZWxla29tIFNlY3VyaXR5IFRMUyBSU0EgUm9vdCAy +MDIzMB4XDTIzMDMyODEyMTY0NVoXDTQ4MDMyNzIzNTk1OVowYzELMAkGA1UEBhMC +REUxJzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkgR21iSDErMCkG +A1UEAwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgUlNBIFJvb3QgMjAyMzCCAiIwDQYJ +KoZIhvcNAQEBBQADggIPADCCAgoCggIBAO01oYGA88tKaVvC+1GDrib94W7zgRJ9 +cUD/h3VCKSHtgVIs3xLBGYSJwb3FKNXVS2xE1kzbB5ZKVXrKNoIENqil/Cf2SfHV +cp6R+SPWcHu79ZvB7JPPGeplfohwoHP89v+1VmLhc2o0mD6CuKyVU/QBoCcHcqMA +U6DksquDOFczJZSfvkgdmOGjup5czQRxUX11eKvzWarE4GC+j4NSuHUaQTXtvPM6 +Y+mpFEXX5lLRbtLevOP1Czvm4MS9Q2QTps70mDdsipWol8hHD/BeEIvnHRz+sTug +BTNoBUGCwQMrAcjnj02r6LX2zWtEtefdi+zqJbQAIldNsLGyMcEWzv/9FIS3R/qy +8XDe24tsNlikfLMR0cN3f1+2JeANxdKz+bi4d9s3cXFH42AYTyS2dTd4uaNir73J +co4vzLuu2+QVUhkHM/tqty1LkCiCc/4YizWN26cEar7qwU02OxY2kTLvtkCJkUPg +8qKrBC7m8kwOFjQgrIfBLX7JZkcXFBGk8/ehJImr2BrIoVyxo/eMbcgByU/J7MT8 +rFEz0ciD0cmfHdRHNCk+y7AO+oMLKFjlKdw/fKifybYKu6boRhYPluV75Gp6SG12 +mAWl3G0eQh5C2hrgUve1g8Aae3g1LDj1H/1Joy7SWWO/gLCMk3PLNaaZlSJhZQNg ++y+TS/qanIA7AgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtqeX +gj10hZv3PJ+TmpV5dVKMbUcwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBS2 +p5eCPXSFm/c8n5OalXl1UoxtRzANBgkqhkiG9w0BAQwFAAOCAgEAqMxhpr51nhVQ +pGv7qHBFfLp+sVr8WyP6Cnf4mHGCDG3gXkaqk/QeoMPhk9tLrbKmXauw1GLLXrtm +9S3ul0A8Yute1hTWjOKWi0FpkzXmuZlrYrShF2Y0pmtjxrlO8iLpWA1WQdH6DErw +M807u20hOq6OcrXDSvvpfeWxm4bu4uB9tPcy/SKE8YXJN3nptT+/XOR0so8RYgDd +GGah2XsjX/GO1WfoVNpbOms2b/mBsTNHM3dA+VKq3dSDz4V4mZqTuXNnQkYRIer+ +CqkbGmVps4+uFrb2S1ayLfmlyOw7YqPta9BO1UAJpB+Y1zqlklkg5LB9zVtzaL1t +xKITDmcZuI1CfmwMmm6gJC3VRRvcxAIU/oVbZZfKTpBQCHpCNfnqwmbU+AGuHrS+ +w6jv/naaoqYfRvaE7fzbzsQCzndILIyy7MMAo+wsVRjBfhnu4S/yrYObnqsZ38aK +L4x35bcF7DvB7L6Gs4a8wPfc5+pbrrLMtTWGS9DiP7bY+A4A7l3j941Y/8+LN+lj +X273CXE2whJdV/LItM3z7gLfEdxquVeEHVlNjM7IDiPCtyaaEBRx/pOyiriA8A4Q +ntOoUAw3gi/q4Iqd4Sw5/7W0cwDk90imc6y/st53BIe0o82bNSQ3+pCTE4FCxpgm +dTdmQRCsu/WU48IxK63nI1bMNSWSs1A= +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem b/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem new file mode 100644 index 000000000000..72e8d614f96a --- /dev/null +++ b/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem @@ -0,0 +1,138 @@ +## +## TrustAsia Global Root CA G3 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 64:f6:0e:65:77:61:6a:ab:3b:b4:ea:85:84:bb:b1:89:b8:71:93:0f + Signature Algorithm: sha384WithRSAEncryption + Issuer: C = CN, O = "TrustAsia Technologies, Inc.", CN = TrustAsia Global Root CA G3 + Validity + Not Before: May 20 02:10:19 2021 GMT + Not After : May 19 02:10:19 2046 GMT + Subject: C = CN, O = "TrustAsia Technologies, Inc.", CN = TrustAsia Global Root CA G3 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:c0:31:82:61:92:e4:94:1b:0a:2a:65:d0:be:06: + a9:87:3b:51:12:ea:70:41:ae:e2:fb:74:ea:0a:8d: + b9:b3:4c:dc:8f:b7:13:52:4f:54:18:e1:2c:73:95: + 91:c5:66:3b:6a:cf:ac:63:6d:87:53:f0:f7:f1:39: + b7:a0:43:63:b0:c4:03:5d:57:a9:e7:44:ce:c4:a1: + 83:65:f6:50:3e:b1:7e:16:b8:3a:8a:02:d0:96:1f: + 00:cd:05:21:ef:06:6d:dd:21:9c:19:43:45:a1:c5: + e8:80:ca:c2:ad:40:62:17:06:c6:aa:bc:f3:d6:e6: + fc:50:7e:66:42:1f:3c:8b:a6:79:79:86:40:35:9f: + 20:ef:3f:eb:8b:47:1f:8f:8e:c5:d4:8e:b6:2c:c9: + 44:04:e3:d4:43:75:3f:d5:3f:af:1c:cc:7e:46:5f: + ac:df:64:10:8a:ef:46:f0:90:f0:0f:2d:f4:88:0b: + b1:29:aa:af:85:aa:49:58:a8:bf:63:a0:38:91:e6: + b3:e6:77:68:c4:f9:2a:19:84:bb:0e:e1:f5:af:89: + ec:a5:2f:50:20:74:1e:12:41:73:1e:24:d9:ca:ce: + 2c:a1:59:35:c0:c8:1d:46:27:61:5a:8f:f9:4d:d3: + 72:79:66:1e:9f:15:90:21:2d:fd:ed:8b:56:70:03: + 4a:49:3e:7f:69:31:12:69:c7:1e:5c:ca:7a:13:8b: + e8:e6:f5:60:0f:cc:93:2c:84:7f:f1:fc:6a:fc:9b: + 47:9d:db:ad:88:3d:f3:76:75:33:d7:4b:a4:c8:8b: + f9:f5:43:58:4f:cb:c8:03:54:8f:a5:85:78:04:1a: + f3:73:f2:d7:87:1d:41:9f:e7:d8:17:ce:1a:9c:0f: + 4a:fc:dc:44:68:54:68:e2:41:3c:fe:2c:84:86:37: + 3c:cd:3f:2f:a2:db:e7:f7:54:03:5f:59:d3:f7:91: + 78:c7:8b:77:6a:16:e5:49:85:90:45:72:70:2f:91: + 5d:f8:3e:65:40:0b:19:99:c9:26:20:5a:68:c1:35: + bf:4f:a7:51:f1:d8:11:2b:5b:e0:9a:9e:28:3b:0a: + 3a:0a:1f:c1:81:e5:2e:f0:a6:b9:69:a5:88:94:e6: + 6b:13:7f:d1:64:3f:3d:9c:70:46:e5:a2:85:7b:58: + 84:27:dc:c4:80:3e:67:9a:9a:c7:9a:31:0e:30:ec: + e6:17:40:95:d9:45:ed:01:96:aa:bf:0c:f3:4b:d1: + 63:f7:13:58:c0:b8:f3:fa:67:dd:9b:7d:6d:4a:ff: + 32:4c:b5:25:3b:ff:1c:67:0f:85:22:59:05:91:91: + 41:77:81:d0:85:4c:87:10:71:ff:9e:43:1b:ae:95: + 75:2d:81 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Authority Key Identifier: + 40:E4:E4:F2:23:EF:38:CA:B0:AE:57:7F:F2:21:30:16:34:DB:BC:92 + X509v3 Subject Key Identifier: + 40:E4:E4:F2:23:EF:38:CA:B0:AE:57:7F:F2:21:30:16:34:DB:BC:92 + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: sha384WithRSAEncryption + Signature Value: + 26:3b:51:e1:4d:38:f3:32:18:b4:b4:5e:e1:65:5e:c4:94:4f: + d4:a7:61:a3:f8:c0:cf:33:01:02:e9:c3:aa:35:0f:f1:94:13: + 77:77:35:9e:2d:56:51:44:6e:e1:c6:2e:28:1e:ff:da:ec:47: + cd:97:44:17:f7:e0:4c:c2:e1:7c:7c:32:7a:66:c8:5a:b6:5c: + 53:45:57:5a:45:d4:05:99:2f:2e:23:55:ee:63:68:df:d3:1b: + 78:a7:12:94:06:00:75:0d:72:84:e9:2e:bc:5a:6a:d5:de:2f: + 59:c7:a3:ec:d2:87:66:db:b7:54:b5:24:ab:f4:43:78:db:4b: + 04:c4:6f:dd:e6:3e:66:3e:29:f2:4b:68:71:22:87:a0:f8:b1: + 33:63:76:e3:0d:85:72:44:22:55:3f:1c:7c:e9:fc:b8:15:e8: + 52:fa:aa:3e:a3:21:39:35:74:89:a6:6a:c2:39:fa:78:cf:b6: + ac:e7:e7:d6:56:ff:23:92:2e:50:0b:a9:b5:07:33:f4:38:5f: + a4:49:a6:cb:65:70:76:e8:0a:85:80:4b:36:3d:33:f7:95:54: + 75:25:da:ac:c4:73:82:65:e9:52:f5:5c:fd:38:95:02:6a:69: + 30:c5:1c:0a:57:07:ae:22:a4:2c:f9:c5:41:b7:b8:ec:9f:4f: + 48:00:f9:01:04:55:cc:ac:f9:32:31:c4:75:95:06:a0:7f:d1: + 8d:27:dd:b3:a9:a4:72:87:fe:59:8b:9a:7a:74:16:dd:16:a5: + 62:29:eb:3a:96:dc:8b:a7:68:59:d3:eb:77:91:39:f8:d7:cb: + d9:8f:5f:5a:27:01:7d:5d:68:19:62:d8:c8:cd:f4:b7:72:47: + be:5b:97:ce:f2:ad:a2:99:93:ad:94:cb:93:f6:12:09:95:b6: + ab:d7:3b:d0:3f:11:cb:30:16:2e:79:80:e4:67:81:2d:5d:ed: + 70:78:b6:60:59:ac:e1:5d:45:63:8f:c8:df:72:68:5b:ea:1d: + b8:01:f1:7e:fb:e7:8a:b3:e3:54:a0:38:09:e0:3c:de:42:f2: + c2:ed:2e:9b:f3:1f:35:b6:36:d8:e3:80:a1:8b:cd:99:64:0f: + c2:aa:ab:b1:ca:f5:6f:9e:43:8d:84:54:99:b3:6e:c0:12:66: + d8:70:10:f1:06:35:33:43:a8:9c:2e:ba:14:31:ce:10:7f:1c: + 86:e3:8f:d2:d5:f8:77:ec:9b:ab:f1:2f:63:d9:42:5f:e0:67: + 81:64:91:f1:97:2f:fc:6e:26:f6:33:f8:d3:b5:f8:c4:62:ab: + 31:51:25:02:7a:f8:dd:6b:65:d5:6d:4d:30:c8:65:ba:68:14: + 65:ac:27:0b:74:8a:f2:87 +SHA1 Fingerprint=63:CF:B6:C1:27:2B:56:E4:88:8E:1C:23:9A:B6:2E:81:47:24:C3:C7 +-----BEGIN CERTIFICATE----- +MIIFpTCCA42gAwIBAgIUZPYOZXdhaqs7tOqFhLuxibhxkw8wDQYJKoZIhvcNAQEM +BQAwWjELMAkGA1UEBhMCQ04xJTAjBgNVBAoMHFRydXN0QXNpYSBUZWNobm9sb2dp +ZXMsIEluYy4xJDAiBgNVBAMMG1RydXN0QXNpYSBHbG9iYWwgUm9vdCBDQSBHMzAe +Fw0yMTA1MjAwMjEwMTlaFw00NjA1MTkwMjEwMTlaMFoxCzAJBgNVBAYTAkNOMSUw +IwYDVQQKDBxUcnVzdEFzaWEgVGVjaG5vbG9naWVzLCBJbmMuMSQwIgYDVQQDDBtU +cnVzdEFzaWEgR2xvYmFsIFJvb3QgQ0EgRzMwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQDAMYJhkuSUGwoqZdC+BqmHO1ES6nBBruL7dOoKjbmzTNyPtxNS +T1QY4SxzlZHFZjtqz6xjbYdT8PfxObegQ2OwxANdV6nnRM7EoYNl9lA+sX4WuDqK +AtCWHwDNBSHvBm3dIZwZQ0WhxeiAysKtQGIXBsaqvPPW5vxQfmZCHzyLpnl5hkA1 +nyDvP+uLRx+PjsXUjrYsyUQE49RDdT/VP68czH5GX6zfZBCK70bwkPAPLfSIC7Ep +qq+FqklYqL9joDiR5rPmd2jE+SoZhLsO4fWvieylL1AgdB4SQXMeJNnKziyhWTXA +yB1GJ2Faj/lN03J5Zh6fFZAhLf3ti1ZwA0pJPn9pMRJpxx5cynoTi+jm9WAPzJMs +hH/x/Gr8m0ed262IPfN2dTPXS6TIi/n1Q1hPy8gDVI+lhXgEGvNz8teHHUGf59gX +zhqcD0r83ERoVGjiQTz+LISGNzzNPy+i2+f3VANfWdP3kXjHi3dqFuVJhZBFcnAv +kV34PmVACxmZySYgWmjBNb9Pp1Hx2BErW+Canig7CjoKH8GB5S7wprlppYiU5msT +f9FkPz2ccEblooV7WIQn3MSAPmeamseaMQ4w7OYXQJXZRe0Blqq/DPNL0WP3E1jA +uPP6Z92bfW1K/zJMtSU7/xxnD4UiWQWRkUF3gdCFTIcQcf+eQxuulXUtgQIDAQAB +o2MwYTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFEDk5PIj7zjKsK5Xf/Ih +MBY027ySMB0GA1UdDgQWBBRA5OTyI+84yrCuV3/yITAWNNu8kjAOBgNVHQ8BAf8E +BAMCAQYwDQYJKoZIhvcNAQEMBQADggIBACY7UeFNOPMyGLS0XuFlXsSUT9SnYaP4 +wM8zAQLpw6o1D/GUE3d3NZ4tVlFEbuHGLige/9rsR82XRBf34EzC4Xx8MnpmyFq2 +XFNFV1pF1AWZLy4jVe5jaN/TG3inEpQGAHUNcoTpLrxaatXeL1nHo+zSh2bbt1S1 +JKv0Q3jbSwTEb93mPmY+KfJLaHEih6D4sTNjduMNhXJEIlU/HHzp/LgV6FL6qj6j +ITk1dImmasI5+njPtqzn59ZW/yOSLlALqbUHM/Q4X6RJpstlcHboCoWASzY9M/eV +VHUl2qzEc4Jl6VL1XP04lQJqaTDFHApXB64ipCz5xUG3uOyfT0gA+QEEVcys+TIx +xHWVBqB/0Y0n3bOppHKH/lmLmnp0Ft0WpWIp6zqW3IunaFnT63eROfjXy9mPX1on +AX1daBli2MjN9LdyR75bl87yraKZk62Uy5P2EgmVtqvXO9A/EcswFi55gORngS1d +7XB4tmBZrOFdRWOPyN9yaFvqHbgB8X7754qz41SgOAngPN5C8sLtLpvzHzW2Ntjj +gKGLzZlkD8Kqq7HK9W+eQ42EVJmzbsASZthwEPEGNTNDqJwuuhQxzhB/HIbjj9LV ++Hfsm6vxL2PZQl/gZ4FkkfGXL/xuJvYz+NO1+MRiqzFRJQJ6+N1rZdVtTTDIZbpo *** 82 LINES SKIPPED *** From nobody Tue Feb 13 19:15: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 4TZ9yR529Mz59Y2L; Tue, 13 Feb 2024 19:15: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ9yR1vZFz4Fdj; Tue, 13 Feb 2024 19:15:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707851727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G9GOff3dP3ZpDgzx3uoAXaS8oTQeVqT2UkhsceNCSsw=; b=fig8sKWSmAx3ARof5sADeDwBrilEKHJoFYv2Dwdiu7KklgCVOWTWVIWfOURbRI1Fw4yRg+ arzNyAx1TZmJKurn3s+y+C+Ytcr7Pm4zMLjVO3HeTwSPhGvXabdNBhzzwsYf2Uq9hbTH0i VjmSyc1cusFLqv5vQqofx69r3EDeE0jjQy0wyXPKMUefDWU9rULys2FIMynjcslmMQjBIY IT5vzaOS5qjCx6U1+k9mttFd3Pf901/hKlpbklp7bRx5RO8z11MfEbA7hW0v3yQANRU4nV hQEEE6hok4Eb1VHf/7ov4fDb3UemE6wFgtnwCSI1fL1gOqdXlPd13eitJ/ZWqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707851727; a=rsa-sha256; cv=none; b=BnQAVrwkZDwF1XT3BiyYuqvk8MeCGBvT1Uvk+fkwsudqTeVMzCHtyPA5tAY+qW7SH3vSNb zEZkIq7RdCOIyfJ1x7RrKqqTyHEeFiLR+LjlzTaeWIk1fBhId9H7P+6J6Dbc4PfwzRltA1 tHpgiK0Zy6kD85rPab77Dbdibw+COA+UIFknh+K1LxXk+0w83DKEVa2HMGovYXBfLzvmO8 /CiXuQJ0m0UVm7yRLJEGOQ2bGyrZTCnXUzyfy0M3zk8Ev0cmpyifHzlBmJslEj8PpPVAxO Vr/07/Tbf/vjJrID6u7v6L8cMZd+7RBqnbPH0TWReOjmY/YbVyUwHuGgBepJWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707851727; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G9GOff3dP3ZpDgzx3uoAXaS8oTQeVqT2UkhsceNCSsw=; b=C7X/IoI6nF/5IQZMioXn/UuH96jVRL+77RTds6aQwbqBDXKfypwPoXGxFoCEpUA5J7iTZ2 Fyt8Bl53dupwZqeBbFjcTSwkJAjCx6qVbs3A9THX6r8HmZfOOkVjSwBNpzwj2rUq1gcCZK ADcBUAEaZI/PQdGjYMW4BXZHD24atNIpXdngI4AQbKOhU5FrR7MPeRsfiXvTzW1Zek3bGu aMfRBTr95MbeLog1N8BWxjallOq+bdPDCJM7TEN9Uf7LTS2iL9E54XlgvY27HBRXQ+SB5G xOD/4aJuQOeatv+Lv/Ugv07BuPnK+CKAlk2b2EMJ7RAIHVAkqRN8bxCJVfXFZw== 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 4TZ9yR10GwzRmD; Tue, 13 Feb 2024 19:15:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DJFRDP090422; Tue, 13 Feb 2024 19:15:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DJFReb090419; Tue, 13 Feb 2024 19:15:27 GMT (envelope-from git) Date: Tue, 13 Feb 2024 19:15:27 GMT Message-Id: <202402131915.41DJFReb090419@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 9b7611d9c7b4 - stable/13 - caroot: routine 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 9b7611d9c7b48e68f017c43ec67d4182a4bc11c4 Auto-Submitted: auto-generated The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=9b7611d9c7b48e68f017c43ec67d4182a4bc11c4 commit 9b7611d9c7b48e68f017c43ec67d4182a4bc11c4 Author: Kyle Evans AuthorDate: 2024-02-11 06:33:12 +0000 Commit: Kyle Evans CommitDate: 2024-02-13 19:15:13 +0000 caroot: routine update Changes: - One (1) modified - Eight (8) added - One (1) expired, now untrusted MFC after: 3 days (cherry picked from commit 0d3b2bdbf719ac6b5719a47387558ca9c34a4b2c) --- ObsoleteFiles.inc | 3 + .../Security_Communication_Root_CA.pem | 0 ...ertificacion_Firmaprofesional_CIF_A62634068.pem | 118 +++++++++--------- .../trusted/CommScope_Public_Trust_ECC_Root-01.pem | 67 ++++++++++ .../trusted/CommScope_Public_Trust_ECC_Root-02.pem | 67 ++++++++++ .../trusted/CommScope_Public_Trust_RSA_Root-01.pem | 134 ++++++++++++++++++++ .../trusted/CommScope_Public_Trust_RSA_Root-02.pem | 134 ++++++++++++++++++++ .../trusted/Telekom_Security_TLS_ECC_Root_2020.pem | 68 ++++++++++ .../trusted/Telekom_Security_TLS_RSA_Root_2023.pem | 138 +++++++++++++++++++++ .../caroot/trusted/TrustAsia_Global_Root_CA_G3.pem | 138 +++++++++++++++++++++ .../caroot/trusted/TrustAsia_Global_Root_CA_G4.pem | 70 +++++++++++ 11 files changed, 878 insertions(+), 59 deletions(-) diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index 73435961164c..9e1006e21e51 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -51,6 +51,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20240213: caroot bundle updated +OLD_FILES+=usr/share/certs/trusted/Security_Communication_Root_CA.pem + # 20240112: replaced NetBSD tests for uniq with our own OLD_FILES+=usr/tests/usr.bin/uniq/d_basic.in OLD_FILES+=usr/tests/usr.bin/uniq/d_basic.out diff --git a/secure/caroot/trusted/Security_Communication_Root_CA.pem b/secure/caroot/blacklisted/Security_Communication_Root_CA.pem similarity index 100% rename from secure/caroot/trusted/Security_Communication_Root_CA.pem rename to secure/caroot/blacklisted/Security_Communication_Root_CA.pem diff --git a/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem b/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem index 7eeb715ac674..ceae80a3e6d8 100644 --- a/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem +++ b/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem @@ -14,12 +14,12 @@ Certificate: Data: Version: 3 (0x2) - Serial Number: 6047274297262753887 (0x53ec3beefbb2485f) - Signature Algorithm: sha1WithRSAEncryption + Serial Number: 1977337328857672817 (0x1b70e9d2ffae6c71) + Signature Algorithm: sha256WithRSAEncryption Issuer: C = ES, CN = Autoridad de Certificacion Firmaprofesional CIF A62634068 Validity - Not Before: May 20 08:38:15 2009 GMT - Not After : Dec 31 08:38:15 2030 GMT + Not Before: Sep 23 15:22:07 2014 GMT + Not After : May 5 15:22:07 2036 GMT Subject: C = ES, CN = Autoridad de Certificacion Firmaprofesional CIF A62634068 Subject Public Key Info: Public Key Algorithm: rsaEncryption @@ -62,54 +62,54 @@ Certificate: 92:30:bb Exponent: 65537 (0x10001) X509v3 extensions: - X509v3 Basic Constraints: critical - CA:TRUE, pathlen:1 - X509v3 Key Usage: critical - Certificate Sign, CRL Sign X509v3 Subject Key Identifier: 65:CD:EB:AB:35:1E:00:3E:7E:D5:74:C0:1C:B4:73:47:0E:1A:64:2F + X509v3 Basic Constraints: critical + CA:TRUE, pathlen:1 X509v3 Certificate Policies: Policy: X509v3 Any Policy CPS: http://www.firmaprofesional.com/cps User Notice: Explicit Text: - Signature Algorithm: sha1WithRSAEncryption + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: sha256WithRSAEncryption Signature Value: - 17:7d:a0:f9:b4:dd:c5:c5:eb:ad:4b:24:b5:a1:02:ab:dd:a5: - 88:4a:b2:0f:55:4b:2b:57:8c:3b:e5:31:dd:fe:c4:32:f1:e7: - 5b:64:96:36:32:18:ec:a5:32:77:d7:e3:44:b6:c0:11:2a:80: - b9:3d:6a:6e:7c:9b:d3:ad:fc:c3:d6:a3:e6:64:29:7c:d1:e1: - 38:1e:82:2b:ff:27:65:af:fb:16:15:c4:2e:71:84:e5:b5:ff: - fa:a4:47:bd:64:32:bb:f6:25:84:a2:27:42:f5:20:b0:c2:13: - 10:11:cd:10:15:ba:42:90:2a:d2:44:e1:96:26:eb:31:48:12: - fd:2a:da:c9:06:cf:74:1e:a9:4b:d5:87:28:f9:79:34:92:3e: - 2e:44:e8:f6:8f:4f:8f:35:3f:25:b3:39:dc:63:2a:90:6b:20: - 5f:c4:52:12:4e:97:2c:2a:ac:9d:97:de:48:f2:a3:66:db:c2: - d2:83:95:a6:66:a7:9e:25:0f:e9:0b:33:91:65:0a:5a:c3:d9: - 54:12:dd:af:c3:4e:0e:1f:26:5e:0d:dc:b3:8d:ec:d5:81:70: - de:d2:4f:24:05:f3:6c:4e:f5:4c:49:66:8d:d1:ff:d2:0b:25: - 41:48:fe:51:84:c6:42:af:80:04:cf:d0:7e:64:49:e4:f2:df: - a2:ec:b1:4c:c0:2a:1d:e7:b4:b1:65:a2:c4:bc:f1:98:f4:aa: - 70:07:63:b4:b8:da:3b:4c:fa:40:22:30:5b:11:a6:f0:05:0e: - c6:02:03:48:ab:86:9b:85:dd:db:dd:ea:a2:76:80:73:7d:f5: - 9c:04:c4:45:8d:e7:b9:1c:8b:9e:ea:d7:75:d1:72:b1:de:75: - 44:e7:42:7d:e2:57:6b:7d:dc:99:bc:3d:83:28:ea:80:93:8d: - c5:4c:65:c1:70:81:b8:38:fc:43:31:b2:f6:03:34:47:b2:ac: - fb:22:06:cb:1e:dd:17:47:1c:5f:66:b9:d3:1a:a2:da:11:b1: - a4:bc:23:c9:e4:be:87:ff:b9:94:b6:f8:5d:20:4a:d4:5f:e7: - bd:68:7b:65:f2:15:1e:d2:3a:a9:2d:e9:d8:6b:24:ac:97:58: - 44:47:ad:59:18:f1:21:65:70:de:ce:34:60:a8:40:f1:f3:3c: - a4:c3:28:23:8c:fe:27:33:43:40:a0:17:3c:eb:ea:3b:b0:72: - a6:a3:b9:4a:4b:5e:16:48:f4:b2:bc:c8:8c:92:c5:9d:9f:ac: - 72:36:bc:34:80:34:6b:a9:8b:92:c0:b8:17:ed:ec:76:53:f5: - 24:01:8c:b3:22:e8:4b:7c:55:c6:9d:fa:a3:14:bb:65:85:6e: - 6e:4f:12:7e:0a:3c:9d:95 -SHA1 Fingerprint=AE:C5:FB:3F:C8:E1:BF:C4:E5:4F:03:07:5A:9A:E8:00:B7:F7:B6:FA + 74:87:28:02:2b:77:1f:66:89:64:ed:8f:74:2e:46:1c:bb:a8: + f8:f8:0b:1d:83:b6:3a:a7:e8:45:8a:07:b7:e0:3e:20:cb:e1: + 08:db:13:08:f8:28:a1:35:b2:80:b3:0b:51:c0:d3:56:9a:8d: + 33:45:49:af:49:f0:e0:3d:07:7a:45:13:5a:ff:c8:97:d8:d3: + 18:2c:7d:96:f8:dd:a2:65:43:70:93:90:15:ba:90:df:e8:19: + b0:db:2c:8a:60:0f:b7:6f:94:07:1e:1d:a6:c9:85:f6:bd:34: + f8:40:78:62:10:70:3a:be:7d:4b:39:81:a9:10:d4:96:41:bb: + f8:5f:1c:0b:1d:08:f2:b1:b0:89:7a:f2:f7:a0:e0:c4:8f:8b: + 78:b5:3b:58:a5:23:8e:4f:55:fe:36:3b:e0:0c:b7:ca:2a:30: + 41:20:b4:80:cd:ae:fc:76:66:73:a8:ae:6e:e1:7c:da:03:e8: + 94:20:e6:22:a3:d0:1f:90:5d:20:53:14:26:57:da:54:97:df: + 16:44:10:01:1e:88:66:8f:72:38:93:dd:20:b7:34:be:d7:f1: + ee:63:8e:47:79:28:06:fc:f3:59:45:25:60:22:33:1b:a3:5f: + a8:ba:2a:da:1a:3d:cd:40:ea:8c:ee:05:15:95:d5:a5:2c:20: + 2f:a7:98:28:ee:45:fc:f1:b8:88:00:2c:8f:42:da:51:d5:9c: + e5:13:68:71:45:43:8b:9e:0b:21:3c:4b:5c:05:dc:1a:9f:98: + 8e:da:bd:22:9e:72:cd:ad:0a:cb:cc:a3:67:9b:28:74:c4:9b: + d7:1a:3c:04:58:a6:82:9d:ad:c7:7b:6f:ff:80:96:e9:f8:8d: + 6a:bd:18:90:1d:ff:49:1a:90:52:37:93:2f:3c:02:5d:82:76: + 0b:51:e7:16:c7:57:f8:38:f9:a7:cd:9b:22:54:ef:63:b0:15: + 6d:53:65:03:4a:5e:4a:a0:b2:a7:8e:49:00:59:38:d5:c7:f4: + 80:64:f5:6e:95:50:b8:11:7e:15:70:38:4a:b0:7f:d0:c4:32: + 70:c0:19:ff:c9:38:2d:14:2c:66:f4:42:44:e6:55:76:1b:80: + 15:57:ff:c0:a7:a7:aa:39:aa:d8:d3:70:d0:2e:ba:eb:94:6a: + fa:5f:34:86:e7:62:b5:fd:8a:f0:30:85:94:c9:af:24:02:2f: + 6f:d6:dd:67:fe:e3:b0:55:4f:04:98:4f:a4:41:56:e2:93:d0: + 6a:e8:d6:f3:fb:65:e0:ce:75:c4:31:59:0c:ee:82:c8:0c:60: + 33:4a:19:ba:84:67:27:0f:bc:42:5d:bd:24:54:0d:ec:1d:70: + 06:5f:a4:bc:fa:20:7c:55 +SHA1 Fingerprint=0B:BE:C2:27:22:49:CB:39:AA:DB:35:5C:53:E3:8C:AE:78:FF:B6:FE -----BEGIN CERTIFICATE----- -MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UE +MIIGFDCCA/ygAwIBAgIIG3Dp0v+ubHEwDQYJKoZIhvcNAQELBQAwUTELMAkGA1UE BhMCRVMxQjBABgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1h -cHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEy -MzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIwQAYDVQQDDDlBdXRvcmlkYWQgZGUg +cHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODAeFw0xNDA5MjMxNTIyMDdaFw0zNjA1 +MDUxNTIyMDdaMFExCzAJBgNVBAYTAkVTMUIwQAYDVQQDDDlBdXRvcmlkYWQgZGUg Q2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBBNjI2MzQwNjgwggIi MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDDUtd9 thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQM @@ -122,21 +122,21 @@ Z/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirja EbsXLZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/T KI8xWVvTyQKmtFLKbpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF 6NkBiDkal4ZkQdU7hwxu+g/GvUgUvzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVh -OSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD -VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRlzeurNR4APn7VdMActHNHDhpkLzCBpgYD -VR0gBIGeMIGbMIGYBgRVHSAAMIGPMC8GCCsGAQUFBwIBFiNodHRwOi8vd3d3LmZp -cm1hcHJvZmVzaW9uYWwuY29tL2NwczBcBggrBgEFBQcCAjBQHk4AUABhAHMAZQBv -ACAAZABlACAAbABhACAAQgBvAG4AYQBuAG8AdgBhACAANAA3ACAAQgBhAHIAYwBl -AGwAbwBuAGEAIAAwADgAMAAxADcwDQYJKoZIhvcNAQEFBQADggIBABd9oPm03cXF -661LJLWhAqvdpYhKsg9VSytXjDvlMd3+xDLx51tkljYyGOylMnfX40S2wBEqgLk9 -am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qkR71kMrv2JYSiJ0L1 -ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaPT481 -PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS -3a/DTg4fJl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5k -SeTy36LssUzAKh3ntLFlosS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF -3dvd6qJ2gHN99ZwExEWN57kci57q13XRcrHedUTnQn3iV2t93Jm8PYMo6oCTjcVM -ZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoRsaS8I8nkvof/uZS2+F0g -StRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTDKCOM/icz -Q0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQB -jLMi6Et8Vcad+qMUu2WFbm5PEn4KPJ2V +OSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMB0GA1UdDgQWBBRlzeurNR4APn7VdMAc +tHNHDhpkLzASBgNVHRMBAf8ECDAGAQH/AgEBMIGmBgNVHSAEgZ4wgZswgZgGBFUd +IAAwgY8wLwYIKwYBBQUHAgEWI2h0dHA6Ly93d3cuZmlybWFwcm9mZXNpb25hbC5j +b20vY3BzMFwGCCsGAQUFBwICMFAeTgBQAGEAcwBlAG8AIABkAGUAIABsAGEAIABC +AG8AbgBhAG4AbwB2AGEAIAA0ADcAIABCAGEAcgBjAGUAbABvAG4AYQAgADAAOAAw +ADEANzAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggIBAHSHKAIrdx9m +iWTtj3QuRhy7qPj4Cx2Dtjqn6EWKB7fgPiDL4QjbEwj4KKE1soCzC1HA01aajTNF +Sa9J8OA9B3pFE1r/yJfY0xgsfZb43aJlQ3CTkBW6kN/oGbDbLIpgD7dvlAceHabJ +hfa9NPhAeGIQcDq+fUs5gakQ1JZBu/hfHAsdCPKxsIl68veg4MSPi3i1O1ilI45P +Vf42O+AMt8oqMEEgtIDNrvx2ZnOorm7hfNoD6JQg5iKj0B+QXSBTFCZX2lSX3xZE +EAEeiGaPcjiT3SC3NL7X8e5jjkd5KAb881lFJWAiMxujX6i6KtoaPc1A6ozuBRWV +1aUsIC+nmCjuRfzxuIgALI9C2lHVnOUTaHFFQ4ueCyE8S1wF3BqfmI7avSKecs2t +CsvMo2ebKHTEm9caPARYpoKdrcd7b/+Alun4jWq9GJAd/0kakFI3ky88Al2CdgtR +5xbHV/g4+afNmyJU72OwFW1TZQNKXkqgsqeOSQBZONXH9IBk9W6VULgRfhVwOEqw +f9DEMnDAGf/JOC0ULGb0QkTmVXYbgBVX/8Cnp6o5qtjTcNAuuuuUavpfNIbnYrX9 +ivAwhZTJryQCL2/W3Wf+47BVTwSYT6RBVuKT0Gro1vP7ZeDOdcQxWQzugsgMYDNK +GbqEZycPvEJdvSRUDewdcAZfpLz6IHxV -----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem new file mode 100644 index 000000000000..41e8a409ac3c --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem @@ -0,0 +1,67 @@ +## +## CommScope Public Trust ECC Root-01 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 43:70:82:77:cf:4d:5d:34:f1:ca:ae:32:2f:37:f7:f4:7f:75:a0:9e + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-01 + Validity + Not Before: Apr 28 17:35:43 2021 GMT + Not After : Apr 28 17:35:42 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-01 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:4b:36:e9:ae:57:5e:a8:70:d7:d0:8f:74:62:77: + c3:5e:7a:aa:e5:b6:a2:f1:78:fd:02:7e:57:dd:91: + 79:9c:6c:b9:52:88:54:bc:2f:04:be:b8:cd:f6:10: + d1:29:ec:b5:d0:a0:c3:f0:89:70:19:bb:51:65:c5: + 43:9c:c3:9b:63:9d:20:83:3e:06:0b:a6:42:44:85: + 11:a7:4a:3a:2d:e9:d6:68:2f:48:4e:53:2b:07:3f: + 4d:bd:b9:ac:77:39:57 + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 8E:07:62:C0:50:DD:C6:19:06:00:46:74:04:F7:F3:AE:7D:75:4D:30 + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:65:02:31:00:9c:33:df:41:e3:23:a8:42:36:26:97:35:5c: + 7b:eb:db:4b:f8:aa:8b:73:55:15:5c:ac:78:29:0f:ba:21:d8: + c4:a0:d8:d1:03:dd:6d:d1:39:3d:c4:93:60:d2:e3:72:b2:02: + 30:7c:c5:7e:88:d3:50:f5:1e:25:e8:fa:4e:75:e6:58:96:a4: + 35:5f:1b:65:ea:61:9a:70:23:b5:0d:a3:9b:92:52:6f:69:a0: + 8c:8d:4a:d0:ee:8b:0e:cb:47:8e:d0:8d:11 +SHA1 Fingerprint=07:86:C0:D8:DD:8E:C0:80:98:06:98:D0:58:7A:EF:DE:A6:CC:A2:5D +-----BEGIN CERTIFICATE----- +MIICHTCCAaOgAwIBAgIUQ3CCd89NXTTxyq4yLzf39H91oJ4wCgYIKoZIzj0EAwMw +TjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwiQ29t +bVNjb3BlIFB1YmxpYyBUcnVzdCBFQ0MgUm9vdC0wMTAeFw0yMTA0MjgxNzM1NDNa +Fw00NjA0MjgxNzM1NDJaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21tU2Nv +cGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgRUNDIFJvb3QtMDEw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAARLNumuV16ocNfQj3Rid8NeeqrltqLxeP0C +flfdkXmcbLlSiFS8LwS+uM32ENEp7LXQoMPwiXAZu1FlxUOcw5tjnSCDPgYLpkJE +hRGnSjot6dZoL0hOUysHP029uax3OVejQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSOB2LAUN3GGQYARnQE9/OufXVNMDAKBggq +hkjOPQQDAwNoADBlAjEAnDPfQeMjqEI2Jpc1XHvr20v4qotzVRVcrHgpD7oh2MSg +2NED3W3ROT3Ek2DS43KyAjB8xX6I01D1HiXo+k515liWpDVfG2XqYZpwI7UNo5uS +Um9poIyNStDuiw7LR47QjRE= +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem new file mode 100644 index 000000000000..f547954704be --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem @@ -0,0 +1,67 @@ +## +## CommScope Public Trust ECC Root-02 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 28:fd:99:60:41:47:a6:01:3a:ca:14:7b:1f:ef:f9:68:08:83:5d:7d + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-02 + Validity + Not Before: Apr 28 17:44:54 2021 GMT + Not After : Apr 28 17:44:53 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-02 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:78:30:81:e8:63:1e:e5:eb:71:51:0f:f7:07:07: + ca:39:99:7c:4e:d5:0f:cc:30:30:0b:8f:66:93:3e: + cf:bd:c5:86:bd:f9:b1:b7:b4:3e:b4:07:c8:f3:96: + 31:f3:ed:a4:4f:f8:a3:4e:8d:29:15:58:b8:d5:6f: + 7f:ee:6c:22:b5:b0:af:48:45:0a:bd:a8:49:94:bf: + 84:43:b0:db:84:4a:03:23:19:67:6a:6f:c1:6e:bc: + 06:39:37:d1:88:22:f7 + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + E6:18:75:FF:EF:60:DE:84:A4:F5:46:C7:DE:4A:55:E3:32:36:79:F5 + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:64:02:30:26:73:49:7a:b6:ab:e6:49:f4:7d:52:3f:d4:41: + 04:ae:80:43:83:65:75:b9:85:80:38:3b:d6:6f:e4:93:86:ab: + 8f:e7:89:c8:7f:9b:7e:6b:0a:12:55:61:aa:11:e0:79:02:30: + 77:e8:31:71:ac:3c:71:03:d6:84:26:1e:14:b8:f3:3b:3b:de: + ed:59:fc:6b:4c:30:7f:59:ce:45:e9:73:60:15:9a:4c:f0:e6: + 5e:25:22:15:6d:c2:87:59:d0:b2:8e:6a +SHA1 Fingerprint=3C:3F:EF:57:0F:FE:65:93:86:9E:A0:FE:B0:F6:ED:8E:D1:13:C7:E5 +-----BEGIN CERTIFICATE----- +MIICHDCCAaOgAwIBAgIUKP2ZYEFHpgE6yhR7H+/5aAiDXX0wCgYIKoZIzj0EAwMw +TjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwiQ29t +bVNjb3BlIFB1YmxpYyBUcnVzdCBFQ0MgUm9vdC0wMjAeFw0yMTA0MjgxNzQ0NTRa +Fw00NjA0MjgxNzQ0NTNaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21tU2Nv +cGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgRUNDIFJvb3QtMDIw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAAR4MIHoYx7l63FRD/cHB8o5mXxO1Q/MMDAL +j2aTPs+9xYa9+bG3tD60B8jzljHz7aRP+KNOjSkVWLjVb3/ubCK1sK9IRQq9qEmU +v4RDsNuESgMjGWdqb8FuvAY5N9GIIvejQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTmGHX/72DehKT1RsfeSlXjMjZ59TAKBggq +hkjOPQQDAwNnADBkAjAmc0l6tqvmSfR9Uj/UQQSugEODZXW5hYA4O9Zv5JOGq4/n +ich/m35rChJVYaoR4HkCMHfoMXGsPHED1oQmHhS48zs73u1Z/GtMMH9ZzkXpc2AV +mkzw5l4lIhVtwodZ0LKOag== +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem new file mode 100644 index 000000000000..2f144760f93c --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem @@ -0,0 +1,134 @@ +## +## CommScope Public Trust RSA Root-01 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 3e:03:49:81:75:16:74:31:8e:4c:ab:d5:c5:90:29:96:c5:39:10:dd + Signature Algorithm: sha256WithRSAEncryption + Issuer: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-01 + Validity + Not Before: Apr 28 16:45:54 2021 GMT + Not After : Apr 28 16:45:53 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-01 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:b0:48:65:a3:0d:1d:42:e3:91:6d:9d:84:a4:61: + 96:12:c2:ed:c3:da:23:34:19:76:f6:ea:fd:55:5a: + f6:55:01:53:0f:f2:cc:8c:97:4f:b9:50:cb:b3:01: + 44:56:96:fd:9b:28:ec:7b:74:0b:e7:42:6b:55:ce: + c9:61:b2:e8:ad:40:3c:ba:b9:41:0a:05:4f:1b:26: + 85:8f:43:b5:40:b5:85:d1:d4:71:dc:83:41:f3:f6: + 45:c7:80:a2:84:50:97:46:ce:a0:0c:c4:60:56:04: + 1d:07:5b:46:a5:0e:b2:4b:a4:0e:a5:7c:ee:f8:d4: + 62:03:b9:93:6a:8a:14:b8:70:f8:2e:82:46:38:23: + 0e:74:c7:6b:41:b7:d0:29:a3:9d:80:b0:7e:77:93: + 63:42:fb:34:83:3b:73:a3:5a:21:36:eb:47:fa:18: + 17:d9:ba:66:c2:93:a4:8f:fc:5d:a4:ad:fc:50:6a: + 95:ac:bc:24:33:d1:bd:88:7f:86:f5:f5:b2:73:2a: + 8f:7c:af:08:f2:1a:98:3f:a9:81:65:3f:c1:8c:89: + c5:96:30:9a:0a:cf:f4:d4:c8:34:ed:9d:2f:bc:8d: + 38:86:53:ee:97:9f:a9:b2:63:94:17:8d:0f:dc:66: + 2a:7c:52:51:75:cb:99:8e:e8:3d:5c:bf:9e:3b:28: + 8d:83:02:0f:a9:9f:72:e2:2c:2b:b3:dc:66:97:00: + 40:d0:a4:54:8e:9b:5d:7b:45:36:26:d6:72:43:eb: + cf:c0:ea:0d:dc:ce:12:e6:7d:38:9f:05:27:a8:97: + 3e:e9:51:c6:6c:05:28:c1:02:0f:e9:18:6d:ec:bd: + 9c:06:d4:a7:49:f4:54:05:6b:6c:30:f1:eb:03:d5: + ea:3d:6a:76:c2:cb:1a:28:49:4d:7f:64:e0:fa:2b: + da:73:83:81:ff:91:03:bd:94:bb:e4:b8:8e:9c:32: + 63:cd:9f:bb:68:81:b1:84:5b:af:36:bf:77:ee:1d: + 7f:f7:49:9b:52:ec:d2:77:5a:7d:91:9d:4d:c2:39: + 2d:e4:ba:82:f8:6f:f2:4e:1e:0f:4e:e6:3f:59:a5: + 23:dc:3d:87:a8:28:58:28:d1:f1:1b:36:db:4f:c4: + ff:e1:8c:5b:72:8c:c7:26:03:27:a3:39:0a:01:aa: + c0:b2:31:60:83:22:a1:4f:12:09:01:11:af:34:d4: + cf:d7:ae:62:d3:05:07:b4:31:75:e0:0d:6d:57:4f: + 69:87:f9:57:a9:ba:15:f6:c8:52:6d:a1:cb:9c:1f: + e5:fc:78:a8:35:9a:9f:41:14:ce:a5:b4:ce:94:08: + 1c:09:ad:56:e5:da:b6:49:9a:4a:ea:63:18:53:9c: + 2c:2e:c3 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 37:5D:A6:9A:74:32:C2:C2:F9:C7:A6:15:10:59:B8:E4:FD:E5:B8:6D + Signature Algorithm: sha256WithRSAEncryption + Signature Value: + af:a7:cf:de:ff:e0:bd:42:8d:4d:e5:22:96:df:68:ea:7d:4d: + 2a:7d:d0:ad:3d:16:5c:43:e7:7d:c0:86:e8:7a:35:63:f1:cc: + 81:c8:c6:0b:e8:2e:52:35:a4:a6:49:90:63:51:ac:34:ac:05: + 3b:57:00:e9:d3:62:d3:d9:29:d5:54:be:1c:10:91:9c:b2:6d: + fe:59:fd:79:f7:ea:56:d0:9e:68:54:42:8f:26:52:e2:4c:df: + 2f:97:a6:2f:d2:07:98:a8:f3:60:5d:4b:9a:58:57:88:ef:82: + e5:fa:af:6c:81:4b:92:8f:40:9a:93:46:59:cb:5f:78:16:b1: + 67:3e:42:0b:df:28:d9:b0:ad:98:20:be:43:7c:d1:5e:1a:09: + 17:24:8d:7b:5d:95:e9:ab:c1:60:ab:5b:18:64:80:fb:ad:e0: + 06:7d:1d:ca:59:b8:f3:78:29:67:c6:56:1d:af:b6:b5:74:2a: + 76:a1:3f:fb:75:30:9f:94:5e:3b:a5:60:f3:cb:5c:0c:e2:0e: + c9:60:f8:c9:1f:16:8a:26:dd:e7:27:7f:eb:25:a6:8a:bd:b8: + 2d:36:10:9a:b1:58:4d:9a:68:4f:60:54:e5:f6:46:13:8e:88: + ac:bc:21:42:12:ad:c6:4a:89:7d:9b:c1:d8:2d:e9:96:03:f4: + a2:74:0c:bc:00:1d:bf:d6:37:25:67:b4:72:8b:af:85:bd:ea: + 2a:03:8f:cc:fb:3c:44:24:82:e2:01:a5:0b:59:b6:34:8d:32: + 0b:12:0d:eb:27:c2:fd:41:d7:40:3c:72:46:29:c0:8c:ea:ba: + 0f:f1:06:93:2e:f7:9c:a8:f4:60:3e:a3:f1:38:5e:8e:13:c1: + b3:3a:97:87:3f:92:ca:78:a9:1c:af:d0:b0:1b:26:1e:be:70: + ec:7a:f5:33:98:ea:5c:ff:2b:0b:04:4e:43:dd:63:7e:0e:a7: + 4e:78:03:95:3e:d4:2d:30:95:11:10:28:2e:bf:a0:02:3e:ff: + 5e:59:d3:05:0e:95:5f:53:45:ef:6b:87:d5:48:cd:16:a6:96: + 83:e1:df:b3:06:f3:c1:14:db:a7:ec:1c:8b:5d:90:90:0d:72: + 51:e7:61:f9:14:ca:af:83:8f:bf:af:b1:0a:59:5d:dc:5c:d7: + e4:96:ad:5b:60:1d:da:ae:97:b2:39:d9:06:f5:76:00:13:f8: + 68:4c:21:b0:35:c4:dc:55:b2:c9:c1:41:5a:1c:89:c0:8c:6f: + 74:a0:6b:33:4d:b5:01:28:fd:ad:ad:89:17:3b:a6:9a:84:bc: + eb:8c:ea:c4:71:24:a8:ba:29:f9:08:b2:27:56:35:32:5f:ea: + 39:fb:31:9a:d5:19:cc:f0 +SHA1 Fingerprint=6D:0A:5F:F7:B4:23:06:B4:85:B3:B7:97:64:FC:AC:75:F5:33:F2:93 +-----BEGIN CERTIFICATE----- +MIIFbDCCA1SgAwIBAgIUPgNJgXUWdDGOTKvVxZAplsU5EN0wDQYJKoZIhvcNAQEL +BQAwTjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwi +Q29tbVNjb3BlIFB1YmxpYyBUcnVzdCBSU0EgUm9vdC0wMTAeFw0yMTA0MjgxNjQ1 +NTRaFw00NjA0MjgxNjQ1NTNaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21t +U2NvcGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgUlNBIFJvb3Qt +MDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwSGWjDR1C45FtnYSk +YZYSwu3D2iM0GXb26v1VWvZVAVMP8syMl0+5UMuzAURWlv2bKOx7dAvnQmtVzslh +suitQDy6uUEKBU8bJoWPQ7VAtYXR1HHcg0Hz9kXHgKKEUJdGzqAMxGBWBB0HW0al +DrJLpA6lfO741GIDuZNqihS4cPgugkY4Iw50x2tBt9Apo52AsH53k2NC+zSDO3Oj +WiE260f6GBfZumbCk6SP/F2krfxQapWsvCQz0b2If4b19bJzKo98rwjyGpg/qYFl +P8GMicWWMJoKz/TUyDTtnS+8jTiGU+6Xn6myY5QXjQ/cZip8UlF1y5mO6D1cv547 +KI2DAg+pn3LiLCuz3GaXAEDQpFSOm117RTYm1nJD68/A6g3czhLmfTifBSeolz7p +UcZsBSjBAg/pGG3svZwG1KdJ9FQFa2ww8esD1eo9anbCyxooSU1/ZOD6K9pzg4H/ +kQO9lLvkuI6cMmPNn7togbGEW682v3fuHX/3SZtS7NJ3Wn2RnU3COS3kuoL4b/JO +Hg9O5j9ZpSPcPYeoKFgo0fEbNttPxP/hjFtyjMcmAyejOQoBqsCyMWCDIqFPEgkB +Ea801M/XrmLTBQe0MXXgDW1XT2mH+VepuhX2yFJtocucH+X8eKg1mp9BFM6ltM6U +CBwJrVbl2rZJmkrqYxhTnCwuwwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUN12mmnQywsL5x6YVEFm45P3luG0wDQYJ +KoZIhvcNAQELBQADggIBAK+nz97/4L1CjU3lIpbfaOp9TSp90K09FlxD533Ahuh6 +NWPxzIHIxgvoLlI1pKZJkGNRrDSsBTtXAOnTYtPZKdVUvhwQkZyybf5Z/Xn36lbQ +nmhUQo8mUuJM3y+Xpi/SB5io82BdS5pYV4jvguX6r2yBS5KPQJqTRlnLX3gWsWc+ +QgvfKNmwrZggvkN80V4aCRckjXtdlemrwWCrWxhkgPut4AZ9HcpZuPN4KWfGVh2v +trV0KnahP/t1MJ+UXjulYPPLXAziDslg+MkfFoom3ecnf+slpoq9uC02EJqxWE2a +aE9gVOX2RhOOiKy8IUISrcZKiX2bwdgt6ZYD9KJ0DLwAHb/WNyVntHKLr4W96ioD +j8z7PEQkguIBpQtZtjSNMgsSDesnwv1B10A8ckYpwIzqug/xBpMu95yo9GA+o/E4 +Xo4TwbM6l4c/ksp4qRyv0LAbJh6+cOx69TOY6lz/KwsETkPdY34Op054A5U+1C0w +lREQKC6/oAI+/15Z0wUOlV9TRe9rh9VIzRamloPh37MG88EU26fsHItdkJANclHn +YfkUyq+Dj7+vsQpZXdxc1+SWrVtgHdqul7I52Qb1dgAT+GhMIbA1xNxVssnBQVoc +icCMb3SgazNNtQEo/a2tiRc7ppqEvOuM6sRxJKi6KfkIsidWNTJf6jn7MZrVGczw +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem new file mode 100644 index 000000000000..b343c7765878 --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem @@ -0,0 +1,134 @@ +## +## CommScope Public Trust RSA Root-02 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 54:16:bf:3b:7e:39:95:71:8d:d1:aa:00:a5:86:0d:2b:8f:7a:05:4e + Signature Algorithm: sha256WithRSAEncryption + Issuer: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-02 + Validity + Not Before: Apr 28 17:16:43 2021 GMT + Not After : Apr 28 17:16:42 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-02 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:e1:fa:0e:fb:68:00:12:c8:4d:d5:ac:22:c4:35: + 01:3b:c5:54:e5:59:76:63:a5:7f:eb:c1:c4:6a:98: + bd:32:8d:17:80:eb:5d:ba:d1:62:3d:25:23:19:35: + 14:e9:7f:89:a7:1b:62:3c:d6:50:e7:34:95:03:32: + b1:b4:93:22:3d:a7:e2:b1:ed:e6:7b:4e:2e:87:9b: + 0d:33:75:0a:de:aa:35:e7:7e:e5:36:98:a2:ae:25: + 9e:95:b3:32:96:a4:2b:58:1e:ef:3f:fe:62:34:48: + 51:d1:b4:8d:42:ad:60:da:49:6a:95:70:dd:d2:00: + e2:cc:57:63:02:7b:96:dd:49:97:5b:92:4e:95:d3: + f9:cb:29:1f:18:4a:f8:01:2a:d2:63:09:6e:24:e9: + 89:d2:e5:c7:22:4c:dc:73:86:47:00:aa:0d:88:8e: + ae:85:7d:4a:e9:bb:33:4f:0e:52:70:9d:95:e3:7c: + 6d:96:5b:2d:3d:5f:a1:83:46:5d:b6:e3:25:b8:7c: + a7:19:80:1c:ea:65:43:dc:91:79:36:2c:74:7c:f2: + 67:06:c9:89:c9:db:bf:da:68:bf:23:ed:dc:6b:ad: + 28:83:79:2f:ec:38:a5:0d:37:01:67:27:9a:e9:33: + d9:33:5f:37:a1:c5:f0:ab:3d:fa:78:b0:e7:2c:9f: + f6:3e:9f:60:e0:ef:48:e9:90:45:1e:05:51:78:1a: + 2c:12:2c:5c:28:ac:0d:a2:23:9e:34:8f:05:e6:a2: + 33:ce:11:77:13:d4:0e:a4:1e:42:1f:86:cd:70:fe: + d9:2e:15:3d:1d:bb:b8:f2:53:57:db:cc:c6:74:29: + 9c:18:b3:36:75:38:2e:0f:54:a1:f8:92:1f:89:96: + 4f:bb:d4:ee:9d:e9:3b:36:42:b5:0a:3b:2a:d4:64: + 79:36:10:e1:f9:91:03:2b:7b:20:54:cd:0d:19:1a: + c8:41:32:34:d1:b0:99:e1:90:1e:01:40:36:b5:b7: + fa:a9:e5:77:75:a4:22:81:5d:b0:8b:e4:27:12:0f: + 54:88:c6:db:85:74:e6:b7:c0:d7:a6:29:fa:db:de: + f3:93:97:27:04:55:2f:0a:6f:37:c5:3d:13:af:0a: + 00:a9:2c:8b:1c:81:28:d7:ef:86:31:a9:ae:f2:6e: + b8:ca:6a:2c:54:47:d8:2a:88:2e:af:c1:07:10:78: + ac:11:a2:2f:42:f0:37:c5:f2:b8:56:dd:0e:62:2d: + ce:2d:56:7e:55:f2:a7:44:f6:2b:32:f4:23:a8:47: + e8:d4:2a:01:78:cf:6a:c3:37:a8:9e:65:d2:2c:e5: + fa:ba:33:c1:06:44:f6:e6:cf:a5:0d:a7:66:08:34: + 8a:2c:f3 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 47:D0:E7:B1:22:FF:9D:2C:F5:D9:57:60:B3:B1:B1:70:95:EF:61:7A + Signature Algorithm: sha256WithRSAEncryption + Signature Value: + 86:69:b1:4d:2f:e9:9f:4f:22:93:68:8e:e4:21:99:a3:ce:45: + 53:1b:73:44:53:00:81:61:cd:31:e3:08:ba:81:28:28:7a:92: + b9:b6:a8:c8:43:9e:c7:13:26:4d:c2:d8:e5:55:9c:92:5d:50: + d8:c2:2b:db:fe:e6:a8:97:cf:52:3a:24:c3:65:64:5c:47:31: + a3:65:35:13:c3:93:b9:f7:f9:51:97:bb:a4:f0:62:87:c5:d6: + 06:d3:97:83:20:a9:7e:bb:b6:21:c2:a5:0d:84:00:e1:f2:27: + 10:83:ba:dd:03:81:d5:dd:68:c3:66:10:c8:d1:76:b4:b3:6f: + 29:9e:00:f9:c2:29:f5:b1:93:19:52:69:1a:2c:4c:a0:8b:e0: + 15:9a:31:2f:d3:88:95:59:6e:e5:c4:b3:50:c8:14:08:4a:9b: + 8b:13:83:b1:a4:72:b2:3b:76:33:41:dc:dc:aa:a6:07:6f:1d: + 24:12:9f:c8:76:bd:2f:d9:8e:f4:2c:ee:b7:d2:38:10:24:36: + 51:2f:e3:5c:5d:81:21:a7:da:bb:4e:ff:e6:07:a8:fe:b9:0d: + 27:6c:bb:70:5a:55:7a:13:e9:f1:2a:49:69:c7:5f:87:57:4c: + 43:79:6d:3a:65:e9:30:5c:41:ee:eb:77:a5:73:12:88:e8:bf: + 7d:ae:e5:c4:a8:1f:0d:8e:1c:6d:50:02:4f:26:18:43:de:8f: + 55:85:b1:0b:37:05:60:c9:55:39:12:04:a1:2a:cf:71:16:9f: + 36:51:49:bf:70:3b:9e:67:9c:fb:7b:79:c9:39:1c:78:ac:77: + 91:54:9a:b8:75:0a:81:52:97:e3:66:61:6b:ed:3e:38:1e:96: + 61:55:e1:91:54:8c:ed:8c:24:1f:81:c9:10:9a:73:99:2b:16: + 4e:72:00:3f:54:1b:f8:8d:ba:8b:e7:14:d6:b6:45:4f:60:ec: + 96:ae:c3:2f:02:4e:5d:9d:96:49:72:00:b2:ab:75:5c:0f:68: + 5b:1d:65:c2:5f:33:0f:1e:0f:f0:3b:86:f5:b0:4e:bb:9c:f7: + ea:25:05:dc:ad:a2:9b:4b:17:01:be:42:df:35:21:1d:ad:ab: + ae:f4:bf:ae:1f:1b:d3:e2:3b:fc:b3:72:73:1c:9b:28:90:89: + 13:3d:1d:c1:00:47:09:96:9a:38:1b:dd:b1:cf:0d:c2:b4:44: + f3:96:95:ce:32:3a:8f:34:9c:e0:17:c7:5e:ce:ae:0d:db:87: + 38:e5:3f:5b:fd:9b:19:e1:31:41:7a:70:aa:23:6b:01:e1:45: + 4c:cd:94:ce:3b:9e:2d:e7:88:02:22:f4:6e:e8:c8:ec:d6:3c: + f3:b9:b2:d7:77:7a:ac:7b +SHA1 Fingerprint=EA:B0:E2:52:1B:89:93:4C:11:68:F2:D8:9A:AC:22:4C:A3:8A:57:AE +-----BEGIN CERTIFICATE----- +MIIFbDCCA1SgAwIBAgIUVBa/O345lXGN0aoApYYNK496BU4wDQYJKoZIhvcNAQEL +BQAwTjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwi +Q29tbVNjb3BlIFB1YmxpYyBUcnVzdCBSU0EgUm9vdC0wMjAeFw0yMTA0MjgxNzE2 +NDNaFw00NjA0MjgxNzE2NDJaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21t +U2NvcGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgUlNBIFJvb3Qt +MDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDh+g77aAASyE3VrCLE +NQE7xVTlWXZjpX/rwcRqmL0yjReA61260WI9JSMZNRTpf4mnG2I81lDnNJUDMrG0 +kyI9p+Kx7eZ7Ti6Hmw0zdQreqjXnfuU2mKKuJZ6VszKWpCtYHu8//mI0SFHRtI1C +rWDaSWqVcN3SAOLMV2MCe5bdSZdbkk6V0/nLKR8YSvgBKtJjCW4k6YnS5cciTNxz +hkcAqg2Ijq6FfUrpuzNPDlJwnZXjfG2WWy09X6GDRl224yW4fKcZgBzqZUPckXk2 +LHR88mcGyYnJ27/aaL8j7dxrrSiDeS/sOKUNNwFnJ5rpM9kzXzehxfCrPfp4sOcs +n/Y+n2Dg70jpkEUeBVF4GiwSLFworA2iI540jwXmojPOEXcT1A6kHkIfhs1w/tku +FT0du7jyU1fbzMZ0KZwYszZ1OC4PVKH4kh+Jlk+71O6d6Ts2QrUKOyrUZHk2EOH5 +kQMreyBUzQ0ZGshBMjTRsJnhkB4BQDa1t/qp5Xd1pCKBXbCL5CcSD1SIxtuFdOa3 +wNemKfrb3vOTlycEVS8KbzfFPROvCgCpLIscgSjX74Yxqa7ybrjKaixUR9gqiC6v +wQcQeKwRoi9C8DfF8rhW3Q5iLc4tVn5V8qdE9isy9COoR+jUKgF4z2rDN6ieZdIs +5fq6M8EGRPbmz6UNp2YINIos8wIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUR9DnsSL/nSz12Vdgs7GxcJXvYXowDQYJ +KoZIhvcNAQELBQADggIBAIZpsU0v6Z9PIpNojuQhmaPORVMbc0RTAIFhzTHjCLqB +KCh6krm2qMhDnscTJk3C2OVVnJJdUNjCK9v+5qiXz1I6JMNlZFxHMaNlNRPDk7n3 ++VGXu6TwYofF1gbTl4MgqX67tiHCpQ2EAOHyJxCDut0DgdXdaMNmEMjRdrSzbyme +APnCKfWxkxlSaRosTKCL4BWaMS/TiJVZbuXEs1DIFAhKm4sTg7GkcrI7djNB3Nyq +pgdvHSQSn8h2vS/ZjvQs7rfSOBAkNlEv41xdgSGn2rtO/+YHqP65DSdsu3BaVXoT +6fEqSWnHX4dXTEN5bTpl6TBcQe7rd6VzEojov32u5cSoHw2OHG1QAk8mGEPej1WF +sQs3BWDJVTkSBKEqz3EWnzZRSb9wO55nnPt7eck5HHisd5FUmrh1CoFSl+NmYWvt +PjgelmFV4ZFUjO2MJB+ByRCac5krFk5yAD9UG/iNuovnFNa2RU9g7Jauwy8CTl2d +lklyALKrdVwPaFsdZcJfMw8eD/A7hvWwTruc9+olBdytoptLFwG+Qt81IR2tq670 +v64fG9PiO/yzcnMcmyiQiRM9HcEARwmWmjgb3bHPDcK0RPOWlc4yOo80nOAXx17O +rg3bhzjlP1v9mxnhMUF6cKojawHhRUzNlM47ni3niAIi9G7oyOzWPPO5std3eqx7 +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem b/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem new file mode 100644 index 000000000000..da5285d26633 --- /dev/null +++ b/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem @@ -0,0 +1,68 @@ +## +## Telekom Security TLS ECC Root 2020 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 36:3a:96:8c:c9:5c:b2:58:cd:d0:01:5d:c5:e5:57:00 + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS ECC Root 2020 + Validity + Not Before: Aug 25 07:48:20 2020 GMT + Not After : Aug 25 23:59:59 2045 GMT + Subject: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS ECC Root 2020 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:ce:bf:fe:57:a8:bf:d5:aa:f7:10:9a:cd:bc:d1: + 11:a2:bd:67:42:cc:90:eb:15:18:90:d9:a2:cd:0c: + 2a:25:eb:3e:4f:ce:b5:d2:8f:0f:f3:35:da:43:8b: + 02:80:be:6f:51:24:1d:0f:6b:2b:ca:9f:c2:6f:50: + 32:e5:37:20:b6:20:ff:88:0d:0f:6d:49:bb:db:06: + a4:87:90:92:94:f4:09:d0:cf:7f:c8:80:0b:c1:97: + b3:bb:35:27:c9:c2:1b + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Subject Key Identifier: + E3:72:CC:6E:95:99:47:B1:E6:B3:61:4C:D1:CB:AB:E3:BA:CD:DE:9F + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:64:02:30:75:52:8b:b7:a4:10:4f:ae:4a:10:8b:b2:84:5b: + 42:e1:e6:2a:36:02:da:a0:6e:19:3f:25:bf:da:59:32:8e:e4: + fb:90:dc:93:64:ce:ad:b4:41:47:60:e2:cf:a7:cb:1e:02:30: + 37:41:8c:66:df:41:6b:d6:83:00:41:fd:2f:5a:f7:50:b4:67: + d1:2c:a8:71:d7:43:ca:9c:27:24:91:83:48:0d:cf:cd:f7:54: + 81:af:ec:7f:e4:67:db:b8:90:ee:dd:25 +SHA1 Fingerprint=C0:F8:96:C5:A9:3B:01:06:21:07:DA:18:42:48:BC:E9:9D:88:D5:EC +-----BEGIN CERTIFICATE----- +MIICQjCCAcmgAwIBAgIQNjqWjMlcsljN0AFdxeVXADAKBggqhkjOPQQDAzBjMQsw +CQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBH +bWJIMSswKQYDVQQDDCJUZWxla29tIFNlY3VyaXR5IFRMUyBFQ0MgUm9vdCAyMDIw +MB4XDTIwMDgyNTA3NDgyMFoXDTQ1MDgyNTIzNTk1OVowYzELMAkGA1UEBhMCREUx +JzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkgR21iSDErMCkGA1UE +AwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgRUNDIFJvb3QgMjAyMDB2MBAGByqGSM49 +AgEGBSuBBAAiA2IABM6//leov9Wq9xCazbzREaK9Z0LMkOsVGJDZos0MKiXrPk/O +tdKPD/M12kOLAoC+b1EkHQ9rK8qfwm9QMuU3ILYg/4gND21Ju9sGpIeQkpT0CdDP +f8iAC8GXs7s1J8nCG6NCMEAwHQYDVR0OBBYEFONyzG6VmUex5rNhTNHLq+O6zd6f +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2cA +MGQCMHVSi7ekEE+uShCLsoRbQuHmKjYC2qBuGT8lv9pZMo7k+5Dck2TOrbRBR2Di +z6fLHgIwN0GMZt9Ba9aDAEH9L1r3ULRn0SyocddDypwnJJGDSA3PzfdUga/sf+Rn +27iQ7t0l +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem b/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem new file mode 100644 index 000000000000..69bbcdd0e322 --- /dev/null +++ b/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem @@ -0,0 +1,138 @@ +## +## Telekom Security TLS RSA Root 2023 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 21:9c:54:2d:e8:f6:ec:71:77:fa:4e:e8:c3:70:57:97 + Signature Algorithm: sha384WithRSAEncryption + Issuer: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS RSA Root 2023 + Validity + Not Before: Mar 28 12:16:45 2023 GMT + Not After : Mar 27 23:59:59 2048 GMT + Subject: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS RSA Root 2023 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:ed:35:a1:81:80:f3:cb:4a:69:5b:c2:fb:51:83: + ae:26:fd:e1:6e:f3:81:12:7d:71:40:ff:87:75:42: + 29:21:ed:81:52:2c:df:12:c1:19:84:89:c1:bd:c5: + 28:d5:d5:4b:6c:44:d6:4c:db:07:96:4a:55:7a:ca: + 36:82:04:36:a8:a5:fc:27:f6:49:f1:d5:72:9e:91: + f9:23:d6:70:7b:bb:f5:9b:c1:ec:93:cf:19:ea:65: + 7e:88:70:a0:73:fc:f6:ff:b5:56:62:e1:73:6a:34: + 98:3e:82:b8:ac:95:53:f4:01:a0:27:07:72:a3:00: + 53:a0:e4:b2:ab:83:38:57:33:25:94:9f:be:48:1d: + 98:e1:a3:ba:9e:5c:cd:04:71:51:7d:75:78:ab:f3: + 59:aa:c4:e0:60:be:8f:83:52:b8:75:1a:41:35:ed: + bc:f3:3a:63:e9:a9:14:45:d7:e6:52:d1:6e:d2:de: + bc:e3:f5:0b:3b:e6:e0:c4:bd:43:64:13:a6:ce:f4: + 98:37:6c:8a:95:a8:97:c8:47:0f:f0:5e:10:8b:e7: + 1d:1c:fe:b1:3b:a0:05:33:68:05:41:82:c1:03:2b: + 01:c8:e7:8f:4d:ab:e8:b5:f6:cd:6b:44:b5:e7:dd: + 8b:ec:ea:25:b4:00:22:57:4d:b0:b1:b2:31:c1:16: + ce:ff:fd:14:84:b7:47:fa:b2:f1:70:de:db:8b:6c: + 36:58:a4:7c:b3:11:d1:c3:77:7f:5f:b6:25:e0:0d: + c5:d2:b3:f9:b8:b8:77:db:37:71:71:47:e3:60:18: + 4f:24:b6:75:37:78:b9:a3:62:af:bd:c9:72:8e:2f: + cc:bb:ae:db:e4:15:52:19:07:33:fb:6a:b7:2d:4b: + 90:28:82:73:fe:18:8b:35:8d:db:a7:04:6a:be:ea: + c1:4d:36:3b:16:36:91:32:ef:b6:40:89:91:43:e0: + f2:a2:ab:04:2e:e6:f2:4c:0e:16:34:20:ac:87:c1: + 2d:7e:c9:66:47:17:14:11:a4:f3:f7:a1:24:89:ab: + d8:1a:c8:a1:5c:b1:a3:f7:8c:6d:c8:01:c9:4f:c9: + ec:c4:fc:ac:51:33:d1:c8:83:d1:c9:9f:1d:d4:47: + 34:29:3e:cb:b0:0e:fa:83:0b:28:58:e5:29:dc:3f: + 7c:a8:9f:c9:b6:0a:bb:a6:e8:46:16:0f:96:e5:7b: + e4:6a:7a:48:6d:76:98:05:a5:dc:6d:1e:42:1e:42: + da:1a:e0:52:f7:b5:83:c0:1a:7b:78:35:2c:38:f5: + 1f:fd:49:a3:2e:d2:59:63:bf:80:b0:8c:93:73:cb: + 35:a6:99:95:22:61:65:03:60:fb:2f:93:4b:fa:9a: + 9c:80:3b + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + B6:A7:97:82:3D:74:85:9B:F7:3C:9F:93:9A:95:79:75:52:8C:6D:47 + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Authority Key Identifier: + B6:A7:97:82:3D:74:85:9B:F7:3C:9F:93:9A:95:79:75:52:8C:6D:47 + Signature Algorithm: sha384WithRSAEncryption + Signature Value: + a8:cc:61:a6:be:75:9e:15:50:a4:6b:fb:a8:70:45:7c:ba:7e: + b1:5a:fc:5b:23:fa:0a:77:f8:98:71:82:0c:6d:e0:5e:46:aa: + 93:f4:1e:a0:c3:e1:93:db:4b:ad:b2:a6:5d:ab:b0:d4:62:cb: + 5e:bb:66:f5:2d:ee:97:40:3c:62:eb:5e:d6:14:d6:8c:e2:96: + 8b:41:69:93:35:e6:b9:99:6b:62:b4:a1:17:66:34:a6:6b:63: + c6:b9:4e:f2:22:e9:58:0d:56:41:d1:fa:0c:4a:f0:33:cd:3b: + bb:6d:21:3a:ae:8e:72:b5:c3:4a:fb:e9:7d:e5:b1:9b:86:ee: + e2:e0:7d:b4:f7:32:fd:22:84:f1:85:c9:37:79:e9:b5:3f:bf: + 5c:e4:74:b2:8f:11:62:00:dd:18:66:a1:d9:7b:23:5f:f1:8e: + d5:67:e8:54:da:5b:3a:6b:36:6f:f9:81:b1:33:47:33:77:40: + f9:52:aa:dd:d4:83:cf:85:78:99:9a:93:b9:73:67:42:46:11: + 21:ea:fe:0a:a9:1b:1a:65:69:b3:8f:ae:16:b6:f6:4b:56:b2: + 2d:f9:a5:c8:ec:3b:62:a3:ed:6b:d0:4e:d5:40:09:a4:1f:98: + d7:3a:a5:92:59:20:e4:b0:7d:cd:5b:73:68:bd:6d:c4:a2:13: + 0e:67:19:b8:8d:42:7e:6c:0c:9a:6e:a0:24:2d:d5:45:1b:dc: + c4:02:14:fe:85:5b:65:97:ca:4e:90:50:08:7a:42:35:f9:ea: + c2:66:d4:f8:01:ae:1e:b4:be:c3:a8:ef:fe:76:9a:a2:a6:1f: + 46:f6:84:ed:fc:db:ce:c4:02:ce:77:48:2c:8c:b2:ec:c3:00: + a3:ec:2c:55:18:c1:7e:19:ee:e1:2f:f2:ad:83:9b:9e:ab:19: + df:c6:8a:2f:8c:77:e5:b7:05:ec:3b:c1:ec:be:86:b3:86:bc: + c0:f7:dc:e7:ea:5b:ae:b2:cc:b5:35:86:4b:d0:e2:3f:b6:d8: + f8:0e:00:ee:5d:e3:f7:8d:58:ff:cf:8b:37:e9:63:5f:6e:f7: + 09:71:36:c2:12:5d:57:f2:c8:b4:cd:f3:ee:02:df:11:dc:6a: + b9:57:84:1d:59:4d:8c:ce:c8:0e:23:c2:b7:26:9a:10:14:71: + fe:93:b2:8a:b8:80:f0:0e:10:9e:d3:a8:50:0c:37:82:2f:ea: + e0:8a:9d:e1:2c:39:ff:b5:b4:73:00:e4:f7:48:a6:73:ac:bf: + b2:de:77:04:87:b4:a3:cd:9b:35:24:37:fa:90:93:13:81:42: + c6:98:26:75:37:66:41:10:ac:bb:f5:94:e3:c2:31:2b:ad:e7: + 23:56:cc:35:25:92:b3:50 +SHA1 Fingerprint=54:D3:AC:B3:BD:57:56:F6:85:9D:CE:E5:C3:21:E2:D4:AD:83:D0:93 +-----BEGIN CERTIFICATE----- +MIIFszCCA5ugAwIBAgIQIZxULej27HF3+k7ow3BXlzANBgkqhkiG9w0BAQwFADBj +MQswCQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0 +eSBHbWJIMSswKQYDVQQDDCJUZWxla29tIFNlY3VyaXR5IFRMUyBSU0EgUm9vdCAy +MDIzMB4XDTIzMDMyODEyMTY0NVoXDTQ4MDMyNzIzNTk1OVowYzELMAkGA1UEBhMC +REUxJzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkgR21iSDErMCkG +A1UEAwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgUlNBIFJvb3QgMjAyMzCCAiIwDQYJ +KoZIhvcNAQEBBQADggIPADCCAgoCggIBAO01oYGA88tKaVvC+1GDrib94W7zgRJ9 +cUD/h3VCKSHtgVIs3xLBGYSJwb3FKNXVS2xE1kzbB5ZKVXrKNoIENqil/Cf2SfHV +cp6R+SPWcHu79ZvB7JPPGeplfohwoHP89v+1VmLhc2o0mD6CuKyVU/QBoCcHcqMA +U6DksquDOFczJZSfvkgdmOGjup5czQRxUX11eKvzWarE4GC+j4NSuHUaQTXtvPM6 +Y+mpFEXX5lLRbtLevOP1Czvm4MS9Q2QTps70mDdsipWol8hHD/BeEIvnHRz+sTug +BTNoBUGCwQMrAcjnj02r6LX2zWtEtefdi+zqJbQAIldNsLGyMcEWzv/9FIS3R/qy +8XDe24tsNlikfLMR0cN3f1+2JeANxdKz+bi4d9s3cXFH42AYTyS2dTd4uaNir73J +co4vzLuu2+QVUhkHM/tqty1LkCiCc/4YizWN26cEar7qwU02OxY2kTLvtkCJkUPg +8qKrBC7m8kwOFjQgrIfBLX7JZkcXFBGk8/ehJImr2BrIoVyxo/eMbcgByU/J7MT8 +rFEz0ciD0cmfHdRHNCk+y7AO+oMLKFjlKdw/fKifybYKu6boRhYPluV75Gp6SG12 +mAWl3G0eQh5C2hrgUve1g8Aae3g1LDj1H/1Joy7SWWO/gLCMk3PLNaaZlSJhZQNg ++y+TS/qanIA7AgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtqeX +gj10hZv3PJ+TmpV5dVKMbUcwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBS2 +p5eCPXSFm/c8n5OalXl1UoxtRzANBgkqhkiG9w0BAQwFAAOCAgEAqMxhpr51nhVQ +pGv7qHBFfLp+sVr8WyP6Cnf4mHGCDG3gXkaqk/QeoMPhk9tLrbKmXauw1GLLXrtm +9S3ul0A8Yute1hTWjOKWi0FpkzXmuZlrYrShF2Y0pmtjxrlO8iLpWA1WQdH6DErw +M807u20hOq6OcrXDSvvpfeWxm4bu4uB9tPcy/SKE8YXJN3nptT+/XOR0so8RYgDd +GGah2XsjX/GO1WfoVNpbOms2b/mBsTNHM3dA+VKq3dSDz4V4mZqTuXNnQkYRIer+ +CqkbGmVps4+uFrb2S1ayLfmlyOw7YqPta9BO1UAJpB+Y1zqlklkg5LB9zVtzaL1t +xKITDmcZuI1CfmwMmm6gJC3VRRvcxAIU/oVbZZfKTpBQCHpCNfnqwmbU+AGuHrS+ +w6jv/naaoqYfRvaE7fzbzsQCzndILIyy7MMAo+wsVRjBfhnu4S/yrYObnqsZ38aK +L4x35bcF7DvB7L6Gs4a8wPfc5+pbrrLMtTWGS9DiP7bY+A4A7l3j941Y/8+LN+lj +X273CXE2whJdV/LItM3z7gLfEdxquVeEHVlNjM7IDiPCtyaaEBRx/pOyiriA8A4Q +ntOoUAw3gi/q4Iqd4Sw5/7W0cwDk90imc6y/st53BIe0o82bNSQ3+pCTE4FCxpgm +dTdmQRCsu/WU48IxK63nI1bMNSWSs1A= +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem b/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem new file mode 100644 index 000000000000..72e8d614f96a --- /dev/null +++ b/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem @@ -0,0 +1,138 @@ +## +## TrustAsia Global Root CA G3 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 64:f6:0e:65:77:61:6a:ab:3b:b4:ea:85:84:bb:b1:89:b8:71:93:0f + Signature Algorithm: sha384WithRSAEncryption + Issuer: C = CN, O = "TrustAsia Technologies, Inc.", CN = TrustAsia Global Root CA G3 + Validity + Not Before: May 20 02:10:19 2021 GMT + Not After : May 19 02:10:19 2046 GMT + Subject: C = CN, O = "TrustAsia Technologies, Inc.", CN = TrustAsia Global Root CA G3 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:c0:31:82:61:92:e4:94:1b:0a:2a:65:d0:be:06: + a9:87:3b:51:12:ea:70:41:ae:e2:fb:74:ea:0a:8d: + b9:b3:4c:dc:8f:b7:13:52:4f:54:18:e1:2c:73:95: + 91:c5:66:3b:6a:cf:ac:63:6d:87:53:f0:f7:f1:39: + b7:a0:43:63:b0:c4:03:5d:57:a9:e7:44:ce:c4:a1: + 83:65:f6:50:3e:b1:7e:16:b8:3a:8a:02:d0:96:1f: + 00:cd:05:21:ef:06:6d:dd:21:9c:19:43:45:a1:c5: + e8:80:ca:c2:ad:40:62:17:06:c6:aa:bc:f3:d6:e6: + fc:50:7e:66:42:1f:3c:8b:a6:79:79:86:40:35:9f: + 20:ef:3f:eb:8b:47:1f:8f:8e:c5:d4:8e:b6:2c:c9: + 44:04:e3:d4:43:75:3f:d5:3f:af:1c:cc:7e:46:5f: + ac:df:64:10:8a:ef:46:f0:90:f0:0f:2d:f4:88:0b: + b1:29:aa:af:85:aa:49:58:a8:bf:63:a0:38:91:e6: + b3:e6:77:68:c4:f9:2a:19:84:bb:0e:e1:f5:af:89: + ec:a5:2f:50:20:74:1e:12:41:73:1e:24:d9:ca:ce: + 2c:a1:59:35:c0:c8:1d:46:27:61:5a:8f:f9:4d:d3: + 72:79:66:1e:9f:15:90:21:2d:fd:ed:8b:56:70:03: + 4a:49:3e:7f:69:31:12:69:c7:1e:5c:ca:7a:13:8b: + e8:e6:f5:60:0f:cc:93:2c:84:7f:f1:fc:6a:fc:9b: + 47:9d:db:ad:88:3d:f3:76:75:33:d7:4b:a4:c8:8b: + f9:f5:43:58:4f:cb:c8:03:54:8f:a5:85:78:04:1a: + f3:73:f2:d7:87:1d:41:9f:e7:d8:17:ce:1a:9c:0f: + 4a:fc:dc:44:68:54:68:e2:41:3c:fe:2c:84:86:37: + 3c:cd:3f:2f:a2:db:e7:f7:54:03:5f:59:d3:f7:91: + 78:c7:8b:77:6a:16:e5:49:85:90:45:72:70:2f:91: + 5d:f8:3e:65:40:0b:19:99:c9:26:20:5a:68:c1:35: + bf:4f:a7:51:f1:d8:11:2b:5b:e0:9a:9e:28:3b:0a: + 3a:0a:1f:c1:81:e5:2e:f0:a6:b9:69:a5:88:94:e6: + 6b:13:7f:d1:64:3f:3d:9c:70:46:e5:a2:85:7b:58: + 84:27:dc:c4:80:3e:67:9a:9a:c7:9a:31:0e:30:ec: + e6:17:40:95:d9:45:ed:01:96:aa:bf:0c:f3:4b:d1: + 63:f7:13:58:c0:b8:f3:fa:67:dd:9b:7d:6d:4a:ff: + 32:4c:b5:25:3b:ff:1c:67:0f:85:22:59:05:91:91: + 41:77:81:d0:85:4c:87:10:71:ff:9e:43:1b:ae:95: + 75:2d:81 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Authority Key Identifier: + 40:E4:E4:F2:23:EF:38:CA:B0:AE:57:7F:F2:21:30:16:34:DB:BC:92 + X509v3 Subject Key Identifier: + 40:E4:E4:F2:23:EF:38:CA:B0:AE:57:7F:F2:21:30:16:34:DB:BC:92 + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: sha384WithRSAEncryption + Signature Value: + 26:3b:51:e1:4d:38:f3:32:18:b4:b4:5e:e1:65:5e:c4:94:4f: + d4:a7:61:a3:f8:c0:cf:33:01:02:e9:c3:aa:35:0f:f1:94:13: + 77:77:35:9e:2d:56:51:44:6e:e1:c6:2e:28:1e:ff:da:ec:47: + cd:97:44:17:f7:e0:4c:c2:e1:7c:7c:32:7a:66:c8:5a:b6:5c: + 53:45:57:5a:45:d4:05:99:2f:2e:23:55:ee:63:68:df:d3:1b: + 78:a7:12:94:06:00:75:0d:72:84:e9:2e:bc:5a:6a:d5:de:2f: + 59:c7:a3:ec:d2:87:66:db:b7:54:b5:24:ab:f4:43:78:db:4b: + 04:c4:6f:dd:e6:3e:66:3e:29:f2:4b:68:71:22:87:a0:f8:b1: + 33:63:76:e3:0d:85:72:44:22:55:3f:1c:7c:e9:fc:b8:15:e8: + 52:fa:aa:3e:a3:21:39:35:74:89:a6:6a:c2:39:fa:78:cf:b6: + ac:e7:e7:d6:56:ff:23:92:2e:50:0b:a9:b5:07:33:f4:38:5f: + a4:49:a6:cb:65:70:76:e8:0a:85:80:4b:36:3d:33:f7:95:54: + 75:25:da:ac:c4:73:82:65:e9:52:f5:5c:fd:38:95:02:6a:69: + 30:c5:1c:0a:57:07:ae:22:a4:2c:f9:c5:41:b7:b8:ec:9f:4f: + 48:00:f9:01:04:55:cc:ac:f9:32:31:c4:75:95:06:a0:7f:d1: + 8d:27:dd:b3:a9:a4:72:87:fe:59:8b:9a:7a:74:16:dd:16:a5: + 62:29:eb:3a:96:dc:8b:a7:68:59:d3:eb:77:91:39:f8:d7:cb: + d9:8f:5f:5a:27:01:7d:5d:68:19:62:d8:c8:cd:f4:b7:72:47: + be:5b:97:ce:f2:ad:a2:99:93:ad:94:cb:93:f6:12:09:95:b6: + ab:d7:3b:d0:3f:11:cb:30:16:2e:79:80:e4:67:81:2d:5d:ed: + 70:78:b6:60:59:ac:e1:5d:45:63:8f:c8:df:72:68:5b:ea:1d: + b8:01:f1:7e:fb:e7:8a:b3:e3:54:a0:38:09:e0:3c:de:42:f2: + c2:ed:2e:9b:f3:1f:35:b6:36:d8:e3:80:a1:8b:cd:99:64:0f: + c2:aa:ab:b1:ca:f5:6f:9e:43:8d:84:54:99:b3:6e:c0:12:66: + d8:70:10:f1:06:35:33:43:a8:9c:2e:ba:14:31:ce:10:7f:1c: + 86:e3:8f:d2:d5:f8:77:ec:9b:ab:f1:2f:63:d9:42:5f:e0:67: + 81:64:91:f1:97:2f:fc:6e:26:f6:33:f8:d3:b5:f8:c4:62:ab: + 31:51:25:02:7a:f8:dd:6b:65:d5:6d:4d:30:c8:65:ba:68:14: + 65:ac:27:0b:74:8a:f2:87 +SHA1 Fingerprint=63:CF:B6:C1:27:2B:56:E4:88:8E:1C:23:9A:B6:2E:81:47:24:C3:C7 +-----BEGIN CERTIFICATE----- +MIIFpTCCA42gAwIBAgIUZPYOZXdhaqs7tOqFhLuxibhxkw8wDQYJKoZIhvcNAQEM +BQAwWjELMAkGA1UEBhMCQ04xJTAjBgNVBAoMHFRydXN0QXNpYSBUZWNobm9sb2dp +ZXMsIEluYy4xJDAiBgNVBAMMG1RydXN0QXNpYSBHbG9iYWwgUm9vdCBDQSBHMzAe +Fw0yMTA1MjAwMjEwMTlaFw00NjA1MTkwMjEwMTlaMFoxCzAJBgNVBAYTAkNOMSUw +IwYDVQQKDBxUcnVzdEFzaWEgVGVjaG5vbG9naWVzLCBJbmMuMSQwIgYDVQQDDBtU +cnVzdEFzaWEgR2xvYmFsIFJvb3QgQ0EgRzMwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQDAMYJhkuSUGwoqZdC+BqmHO1ES6nBBruL7dOoKjbmzTNyPtxNS +T1QY4SxzlZHFZjtqz6xjbYdT8PfxObegQ2OwxANdV6nnRM7EoYNl9lA+sX4WuDqK +AtCWHwDNBSHvBm3dIZwZQ0WhxeiAysKtQGIXBsaqvPPW5vxQfmZCHzyLpnl5hkA1 +nyDvP+uLRx+PjsXUjrYsyUQE49RDdT/VP68czH5GX6zfZBCK70bwkPAPLfSIC7Ep +qq+FqklYqL9joDiR5rPmd2jE+SoZhLsO4fWvieylL1AgdB4SQXMeJNnKziyhWTXA +yB1GJ2Faj/lN03J5Zh6fFZAhLf3ti1ZwA0pJPn9pMRJpxx5cynoTi+jm9WAPzJMs +hH/x/Gr8m0ed262IPfN2dTPXS6TIi/n1Q1hPy8gDVI+lhXgEGvNz8teHHUGf59gX +zhqcD0r83ERoVGjiQTz+LISGNzzNPy+i2+f3VANfWdP3kXjHi3dqFuVJhZBFcnAv +kV34PmVACxmZySYgWmjBNb9Pp1Hx2BErW+Canig7CjoKH8GB5S7wprlppYiU5msT +f9FkPz2ccEblooV7WIQn3MSAPmeamseaMQ4w7OYXQJXZRe0Blqq/DPNL0WP3E1jA +uPP6Z92bfW1K/zJMtSU7/xxnD4UiWQWRkUF3gdCFTIcQcf+eQxuulXUtgQIDAQAB +o2MwYTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFEDk5PIj7zjKsK5Xf/Ih +MBY027ySMB0GA1UdDgQWBBRA5OTyI+84yrCuV3/yITAWNNu8kjAOBgNVHQ8BAf8E +BAMCAQYwDQYJKoZIhvcNAQEMBQADggIBACY7UeFNOPMyGLS0XuFlXsSUT9SnYaP4 +wM8zAQLpw6o1D/GUE3d3NZ4tVlFEbuHGLige/9rsR82XRBf34EzC4Xx8MnpmyFq2 +XFNFV1pF1AWZLy4jVe5jaN/TG3inEpQGAHUNcoTpLrxaatXeL1nHo+zSh2bbt1S1 +JKv0Q3jbSwTEb93mPmY+KfJLaHEih6D4sTNjduMNhXJEIlU/HHzp/LgV6FL6qj6j +ITk1dImmasI5+njPtqzn59ZW/yOSLlALqbUHM/Q4X6RJpstlcHboCoWASzY9M/eV +VHUl2qzEc4Jl6VL1XP04lQJqaTDFHApXB64ipCz5xUG3uOyfT0gA+QEEVcys+TIx +xHWVBqB/0Y0n3bOppHKH/lmLmnp0Ft0WpWIp6zqW3IunaFnT63eROfjXy9mPX1on *** 82 LINES SKIPPED *** From nobody Tue Feb 13 20:34: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 4TZCjN1GmZz59j13; Tue, 13 Feb 2024 20:34: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZCjN10tYz4PRt; Tue, 13 Feb 2024 20:34:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707856456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rqJfPiUj5Ip37E7f40J4vF0Bv5dKnDOD1bUJ/sFJ7Fs=; b=XIeCjiWRnfy16Cq/M+Hd4qjZm1sbuGm7aEqW9PWGZKhc0jUgr+RhKX9Q+jpMsyEJe3pyJ8 ORC5JGmrvpcNSfWq2uaHJfy+od1Af0ggZZzfrDgNwjfl7h72l/yYXQhw/BzNtPvp+7edj8 SWrHLofiIursC2ottmJBdgRKgF+9860qbZ1gsTheosB68rjTQA77f+bHw7WGUhVwMqgr8V tqaLoA25drJqlMeBGbXC/AARmhQJ/UIsZS9hVEdFkEeZ0nBF8E9V37v7Rdcr3U7ZNqUGxV DywUKIlykGxHG/SUciPTo+yJLxfDETw0api9JDENQ20h1xbHWZHkOWLCqxetZg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707856456; a=rsa-sha256; cv=none; b=MqnFRPkIPN8vFdgCEnLKI1znYyfwdVg0USNTmPtmMLjbhaX1BIAI/Op90OPqvBdEo75AAJ wxTzkUC0lG+0tSaZZefubegxW5h9WS5ypRs7322s9XRvUlw6X5LsHULSkMzcHsEHk3wKRf dTcbg2+vxbWgMGNanaWrLFD5WHVzbpaPV6yOsqhf6WpbRivfK5Z+wyEdtAcpZhnwKDFef9 ezAMCLQlrK/iTNc7ML7ccs8TnPe+kBPtQNNxYbidCeFwB+OnzsII6de5mRFByWNPGK5B/d iLqDNmfgnq4TdxBeQQnmG0jeH81EkLj+0yT8/zId5+W8jUuXc+kp2zVmcowklA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707856456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rqJfPiUj5Ip37E7f40J4vF0Bv5dKnDOD1bUJ/sFJ7Fs=; b=gMqm5SqEEXsNhW4+/+VL++CWbL6Y73L56JLzL8lYGx8mWHbv8YDXFvhn7sBwBjnDecqPsn i7u40ru8fP5LMyChGUsPub4jeibRjFwVfiiARXlUMWmgAbQoofYHy2nYM0Xcp4I65GopjP IyI1iwIeVPTHLm9Lx75EE57fO2Wrpd74asV+062J+Kr84Pm15Ox4HbPoqwFJLxn4h8uIJR +JVkaNa2ds8vGlmdkLk5A4vCDlyA+Wqh9QKlZNeoEL6SavNg3JnD8b8FeOwu0HIi5A93QR W2orTB9ZqJqYGUzsUbLtH5I6pPYbVV1g5R+MAYBZ5CDkp6xSF+0jHeMIaZrJhg== 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 4TZCjN037ZzVSm; Tue, 13 Feb 2024 20:34:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DKYFCP025043; Tue, 13 Feb 2024 20:34:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DKYFVf025040; Tue, 13 Feb 2024 20:34:15 GMT (envelope-from git) Date: Tue, 13 Feb 2024 20:34:15 GMT Message-Id: <202402132034.41DKYFVf025040@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 16eebc4e19de - releng/13.3 - caroot: routine 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/releng/13.3 X-Git-Reftype: branch X-Git-Commit: 16eebc4e19de99bdc0457f483c97d749a27e7603 Auto-Submitted: auto-generated The branch releng/13.3 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=16eebc4e19de99bdc0457f483c97d749a27e7603 commit 16eebc4e19de99bdc0457f483c97d749a27e7603 Author: Kyle Evans AuthorDate: 2024-02-11 06:33:12 +0000 Commit: Kyle Evans CommitDate: 2024-02-13 20:34:00 +0000 caroot: routine update Changes: - One (1) modified - Eight (8) added - One (1) expired, now untrusted Approved by: re (cperciva) MFC after: 3 days (cherry picked from commit 0d3b2bdbf719ac6b5719a47387558ca9c34a4b2c) (cherry picked from commit 9b7611d9c7b48e68f017c43ec67d4182a4bc11c4) --- ObsoleteFiles.inc | 3 + .../Security_Communication_Root_CA.pem | 0 ...ertificacion_Firmaprofesional_CIF_A62634068.pem | 118 +++++++++--------- .../trusted/CommScope_Public_Trust_ECC_Root-01.pem | 67 ++++++++++ .../trusted/CommScope_Public_Trust_ECC_Root-02.pem | 67 ++++++++++ .../trusted/CommScope_Public_Trust_RSA_Root-01.pem | 134 ++++++++++++++++++++ .../trusted/CommScope_Public_Trust_RSA_Root-02.pem | 134 ++++++++++++++++++++ .../trusted/Telekom_Security_TLS_ECC_Root_2020.pem | 68 ++++++++++ .../trusted/Telekom_Security_TLS_RSA_Root_2023.pem | 138 +++++++++++++++++++++ .../caroot/trusted/TrustAsia_Global_Root_CA_G3.pem | 138 +++++++++++++++++++++ .../caroot/trusted/TrustAsia_Global_Root_CA_G4.pem | 70 +++++++++++ 11 files changed, 878 insertions(+), 59 deletions(-) diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index 73435961164c..9e1006e21e51 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -51,6 +51,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20240213: caroot bundle updated +OLD_FILES+=usr/share/certs/trusted/Security_Communication_Root_CA.pem + # 20240112: replaced NetBSD tests for uniq with our own OLD_FILES+=usr/tests/usr.bin/uniq/d_basic.in OLD_FILES+=usr/tests/usr.bin/uniq/d_basic.out diff --git a/secure/caroot/trusted/Security_Communication_Root_CA.pem b/secure/caroot/blacklisted/Security_Communication_Root_CA.pem similarity index 100% rename from secure/caroot/trusted/Security_Communication_Root_CA.pem rename to secure/caroot/blacklisted/Security_Communication_Root_CA.pem diff --git a/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem b/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem index 7eeb715ac674..ceae80a3e6d8 100644 --- a/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem +++ b/secure/caroot/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem @@ -14,12 +14,12 @@ Certificate: Data: Version: 3 (0x2) - Serial Number: 6047274297262753887 (0x53ec3beefbb2485f) - Signature Algorithm: sha1WithRSAEncryption + Serial Number: 1977337328857672817 (0x1b70e9d2ffae6c71) + Signature Algorithm: sha256WithRSAEncryption Issuer: C = ES, CN = Autoridad de Certificacion Firmaprofesional CIF A62634068 Validity - Not Before: May 20 08:38:15 2009 GMT - Not After : Dec 31 08:38:15 2030 GMT + Not Before: Sep 23 15:22:07 2014 GMT + Not After : May 5 15:22:07 2036 GMT Subject: C = ES, CN = Autoridad de Certificacion Firmaprofesional CIF A62634068 Subject Public Key Info: Public Key Algorithm: rsaEncryption @@ -62,54 +62,54 @@ Certificate: 92:30:bb Exponent: 65537 (0x10001) X509v3 extensions: - X509v3 Basic Constraints: critical - CA:TRUE, pathlen:1 - X509v3 Key Usage: critical - Certificate Sign, CRL Sign X509v3 Subject Key Identifier: 65:CD:EB:AB:35:1E:00:3E:7E:D5:74:C0:1C:B4:73:47:0E:1A:64:2F + X509v3 Basic Constraints: critical + CA:TRUE, pathlen:1 X509v3 Certificate Policies: Policy: X509v3 Any Policy CPS: http://www.firmaprofesional.com/cps User Notice: Explicit Text: - Signature Algorithm: sha1WithRSAEncryption + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: sha256WithRSAEncryption Signature Value: - 17:7d:a0:f9:b4:dd:c5:c5:eb:ad:4b:24:b5:a1:02:ab:dd:a5: - 88:4a:b2:0f:55:4b:2b:57:8c:3b:e5:31:dd:fe:c4:32:f1:e7: - 5b:64:96:36:32:18:ec:a5:32:77:d7:e3:44:b6:c0:11:2a:80: - b9:3d:6a:6e:7c:9b:d3:ad:fc:c3:d6:a3:e6:64:29:7c:d1:e1: - 38:1e:82:2b:ff:27:65:af:fb:16:15:c4:2e:71:84:e5:b5:ff: - fa:a4:47:bd:64:32:bb:f6:25:84:a2:27:42:f5:20:b0:c2:13: - 10:11:cd:10:15:ba:42:90:2a:d2:44:e1:96:26:eb:31:48:12: - fd:2a:da:c9:06:cf:74:1e:a9:4b:d5:87:28:f9:79:34:92:3e: - 2e:44:e8:f6:8f:4f:8f:35:3f:25:b3:39:dc:63:2a:90:6b:20: - 5f:c4:52:12:4e:97:2c:2a:ac:9d:97:de:48:f2:a3:66:db:c2: - d2:83:95:a6:66:a7:9e:25:0f:e9:0b:33:91:65:0a:5a:c3:d9: - 54:12:dd:af:c3:4e:0e:1f:26:5e:0d:dc:b3:8d:ec:d5:81:70: - de:d2:4f:24:05:f3:6c:4e:f5:4c:49:66:8d:d1:ff:d2:0b:25: - 41:48:fe:51:84:c6:42:af:80:04:cf:d0:7e:64:49:e4:f2:df: - a2:ec:b1:4c:c0:2a:1d:e7:b4:b1:65:a2:c4:bc:f1:98:f4:aa: - 70:07:63:b4:b8:da:3b:4c:fa:40:22:30:5b:11:a6:f0:05:0e: - c6:02:03:48:ab:86:9b:85:dd:db:dd:ea:a2:76:80:73:7d:f5: - 9c:04:c4:45:8d:e7:b9:1c:8b:9e:ea:d7:75:d1:72:b1:de:75: - 44:e7:42:7d:e2:57:6b:7d:dc:99:bc:3d:83:28:ea:80:93:8d: - c5:4c:65:c1:70:81:b8:38:fc:43:31:b2:f6:03:34:47:b2:ac: - fb:22:06:cb:1e:dd:17:47:1c:5f:66:b9:d3:1a:a2:da:11:b1: - a4:bc:23:c9:e4:be:87:ff:b9:94:b6:f8:5d:20:4a:d4:5f:e7: - bd:68:7b:65:f2:15:1e:d2:3a:a9:2d:e9:d8:6b:24:ac:97:58: - 44:47:ad:59:18:f1:21:65:70:de:ce:34:60:a8:40:f1:f3:3c: - a4:c3:28:23:8c:fe:27:33:43:40:a0:17:3c:eb:ea:3b:b0:72: - a6:a3:b9:4a:4b:5e:16:48:f4:b2:bc:c8:8c:92:c5:9d:9f:ac: - 72:36:bc:34:80:34:6b:a9:8b:92:c0:b8:17:ed:ec:76:53:f5: - 24:01:8c:b3:22:e8:4b:7c:55:c6:9d:fa:a3:14:bb:65:85:6e: - 6e:4f:12:7e:0a:3c:9d:95 -SHA1 Fingerprint=AE:C5:FB:3F:C8:E1:BF:C4:E5:4F:03:07:5A:9A:E8:00:B7:F7:B6:FA + 74:87:28:02:2b:77:1f:66:89:64:ed:8f:74:2e:46:1c:bb:a8: + f8:f8:0b:1d:83:b6:3a:a7:e8:45:8a:07:b7:e0:3e:20:cb:e1: + 08:db:13:08:f8:28:a1:35:b2:80:b3:0b:51:c0:d3:56:9a:8d: + 33:45:49:af:49:f0:e0:3d:07:7a:45:13:5a:ff:c8:97:d8:d3: + 18:2c:7d:96:f8:dd:a2:65:43:70:93:90:15:ba:90:df:e8:19: + b0:db:2c:8a:60:0f:b7:6f:94:07:1e:1d:a6:c9:85:f6:bd:34: + f8:40:78:62:10:70:3a:be:7d:4b:39:81:a9:10:d4:96:41:bb: + f8:5f:1c:0b:1d:08:f2:b1:b0:89:7a:f2:f7:a0:e0:c4:8f:8b: + 78:b5:3b:58:a5:23:8e:4f:55:fe:36:3b:e0:0c:b7:ca:2a:30: + 41:20:b4:80:cd:ae:fc:76:66:73:a8:ae:6e:e1:7c:da:03:e8: + 94:20:e6:22:a3:d0:1f:90:5d:20:53:14:26:57:da:54:97:df: + 16:44:10:01:1e:88:66:8f:72:38:93:dd:20:b7:34:be:d7:f1: + ee:63:8e:47:79:28:06:fc:f3:59:45:25:60:22:33:1b:a3:5f: + a8:ba:2a:da:1a:3d:cd:40:ea:8c:ee:05:15:95:d5:a5:2c:20: + 2f:a7:98:28:ee:45:fc:f1:b8:88:00:2c:8f:42:da:51:d5:9c: + e5:13:68:71:45:43:8b:9e:0b:21:3c:4b:5c:05:dc:1a:9f:98: + 8e:da:bd:22:9e:72:cd:ad:0a:cb:cc:a3:67:9b:28:74:c4:9b: + d7:1a:3c:04:58:a6:82:9d:ad:c7:7b:6f:ff:80:96:e9:f8:8d: + 6a:bd:18:90:1d:ff:49:1a:90:52:37:93:2f:3c:02:5d:82:76: + 0b:51:e7:16:c7:57:f8:38:f9:a7:cd:9b:22:54:ef:63:b0:15: + 6d:53:65:03:4a:5e:4a:a0:b2:a7:8e:49:00:59:38:d5:c7:f4: + 80:64:f5:6e:95:50:b8:11:7e:15:70:38:4a:b0:7f:d0:c4:32: + 70:c0:19:ff:c9:38:2d:14:2c:66:f4:42:44:e6:55:76:1b:80: + 15:57:ff:c0:a7:a7:aa:39:aa:d8:d3:70:d0:2e:ba:eb:94:6a: + fa:5f:34:86:e7:62:b5:fd:8a:f0:30:85:94:c9:af:24:02:2f: + 6f:d6:dd:67:fe:e3:b0:55:4f:04:98:4f:a4:41:56:e2:93:d0: + 6a:e8:d6:f3:fb:65:e0:ce:75:c4:31:59:0c:ee:82:c8:0c:60: + 33:4a:19:ba:84:67:27:0f:bc:42:5d:bd:24:54:0d:ec:1d:70: + 06:5f:a4:bc:fa:20:7c:55 +SHA1 Fingerprint=0B:BE:C2:27:22:49:CB:39:AA:DB:35:5C:53:E3:8C:AE:78:FF:B6:FE -----BEGIN CERTIFICATE----- -MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UE +MIIGFDCCA/ygAwIBAgIIG3Dp0v+ubHEwDQYJKoZIhvcNAQELBQAwUTELMAkGA1UE BhMCRVMxQjBABgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1h -cHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEy -MzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIwQAYDVQQDDDlBdXRvcmlkYWQgZGUg +cHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODAeFw0xNDA5MjMxNTIyMDdaFw0zNjA1 +MDUxNTIyMDdaMFExCzAJBgNVBAYTAkVTMUIwQAYDVQQDDDlBdXRvcmlkYWQgZGUg Q2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBBNjI2MzQwNjgwggIi MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDDUtd9 thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQM @@ -122,21 +122,21 @@ Z/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirja EbsXLZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/T KI8xWVvTyQKmtFLKbpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF 6NkBiDkal4ZkQdU7hwxu+g/GvUgUvzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVh -OSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD -VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRlzeurNR4APn7VdMActHNHDhpkLzCBpgYD -VR0gBIGeMIGbMIGYBgRVHSAAMIGPMC8GCCsGAQUFBwIBFiNodHRwOi8vd3d3LmZp -cm1hcHJvZmVzaW9uYWwuY29tL2NwczBcBggrBgEFBQcCAjBQHk4AUABhAHMAZQBv -ACAAZABlACAAbABhACAAQgBvAG4AYQBuAG8AdgBhACAANAA3ACAAQgBhAHIAYwBl -AGwAbwBuAGEAIAAwADgAMAAxADcwDQYJKoZIhvcNAQEFBQADggIBABd9oPm03cXF -661LJLWhAqvdpYhKsg9VSytXjDvlMd3+xDLx51tkljYyGOylMnfX40S2wBEqgLk9 -am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qkR71kMrv2JYSiJ0L1 -ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaPT481 -PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS -3a/DTg4fJl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5k -SeTy36LssUzAKh3ntLFlosS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF -3dvd6qJ2gHN99ZwExEWN57kci57q13XRcrHedUTnQn3iV2t93Jm8PYMo6oCTjcVM -ZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoRsaS8I8nkvof/uZS2+F0g -StRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTDKCOM/icz -Q0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQB -jLMi6Et8Vcad+qMUu2WFbm5PEn4KPJ2V +OSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMB0GA1UdDgQWBBRlzeurNR4APn7VdMAc +tHNHDhpkLzASBgNVHRMBAf8ECDAGAQH/AgEBMIGmBgNVHSAEgZ4wgZswgZgGBFUd +IAAwgY8wLwYIKwYBBQUHAgEWI2h0dHA6Ly93d3cuZmlybWFwcm9mZXNpb25hbC5j +b20vY3BzMFwGCCsGAQUFBwICMFAeTgBQAGEAcwBlAG8AIABkAGUAIABsAGEAIABC +AG8AbgBhAG4AbwB2AGEAIAA0ADcAIABCAGEAcgBjAGUAbABvAG4AYQAgADAAOAAw +ADEANzAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggIBAHSHKAIrdx9m +iWTtj3QuRhy7qPj4Cx2Dtjqn6EWKB7fgPiDL4QjbEwj4KKE1soCzC1HA01aajTNF +Sa9J8OA9B3pFE1r/yJfY0xgsfZb43aJlQ3CTkBW6kN/oGbDbLIpgD7dvlAceHabJ +hfa9NPhAeGIQcDq+fUs5gakQ1JZBu/hfHAsdCPKxsIl68veg4MSPi3i1O1ilI45P +Vf42O+AMt8oqMEEgtIDNrvx2ZnOorm7hfNoD6JQg5iKj0B+QXSBTFCZX2lSX3xZE +EAEeiGaPcjiT3SC3NL7X8e5jjkd5KAb881lFJWAiMxujX6i6KtoaPc1A6ozuBRWV +1aUsIC+nmCjuRfzxuIgALI9C2lHVnOUTaHFFQ4ueCyE8S1wF3BqfmI7avSKecs2t +CsvMo2ebKHTEm9caPARYpoKdrcd7b/+Alun4jWq9GJAd/0kakFI3ky88Al2CdgtR +5xbHV/g4+afNmyJU72OwFW1TZQNKXkqgsqeOSQBZONXH9IBk9W6VULgRfhVwOEqw +f9DEMnDAGf/JOC0ULGb0QkTmVXYbgBVX/8Cnp6o5qtjTcNAuuuuUavpfNIbnYrX9 +ivAwhZTJryQCL2/W3Wf+47BVTwSYT6RBVuKT0Gro1vP7ZeDOdcQxWQzugsgMYDNK +GbqEZycPvEJdvSRUDewdcAZfpLz6IHxV -----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem new file mode 100644 index 000000000000..41e8a409ac3c --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-01.pem @@ -0,0 +1,67 @@ +## +## CommScope Public Trust ECC Root-01 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 43:70:82:77:cf:4d:5d:34:f1:ca:ae:32:2f:37:f7:f4:7f:75:a0:9e + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-01 + Validity + Not Before: Apr 28 17:35:43 2021 GMT + Not After : Apr 28 17:35:42 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-01 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:4b:36:e9:ae:57:5e:a8:70:d7:d0:8f:74:62:77: + c3:5e:7a:aa:e5:b6:a2:f1:78:fd:02:7e:57:dd:91: + 79:9c:6c:b9:52:88:54:bc:2f:04:be:b8:cd:f6:10: + d1:29:ec:b5:d0:a0:c3:f0:89:70:19:bb:51:65:c5: + 43:9c:c3:9b:63:9d:20:83:3e:06:0b:a6:42:44:85: + 11:a7:4a:3a:2d:e9:d6:68:2f:48:4e:53:2b:07:3f: + 4d:bd:b9:ac:77:39:57 + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 8E:07:62:C0:50:DD:C6:19:06:00:46:74:04:F7:F3:AE:7D:75:4D:30 + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:65:02:31:00:9c:33:df:41:e3:23:a8:42:36:26:97:35:5c: + 7b:eb:db:4b:f8:aa:8b:73:55:15:5c:ac:78:29:0f:ba:21:d8: + c4:a0:d8:d1:03:dd:6d:d1:39:3d:c4:93:60:d2:e3:72:b2:02: + 30:7c:c5:7e:88:d3:50:f5:1e:25:e8:fa:4e:75:e6:58:96:a4: + 35:5f:1b:65:ea:61:9a:70:23:b5:0d:a3:9b:92:52:6f:69:a0: + 8c:8d:4a:d0:ee:8b:0e:cb:47:8e:d0:8d:11 +SHA1 Fingerprint=07:86:C0:D8:DD:8E:C0:80:98:06:98:D0:58:7A:EF:DE:A6:CC:A2:5D +-----BEGIN CERTIFICATE----- +MIICHTCCAaOgAwIBAgIUQ3CCd89NXTTxyq4yLzf39H91oJ4wCgYIKoZIzj0EAwMw +TjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwiQ29t +bVNjb3BlIFB1YmxpYyBUcnVzdCBFQ0MgUm9vdC0wMTAeFw0yMTA0MjgxNzM1NDNa +Fw00NjA0MjgxNzM1NDJaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21tU2Nv +cGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgRUNDIFJvb3QtMDEw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAARLNumuV16ocNfQj3Rid8NeeqrltqLxeP0C +flfdkXmcbLlSiFS8LwS+uM32ENEp7LXQoMPwiXAZu1FlxUOcw5tjnSCDPgYLpkJE +hRGnSjot6dZoL0hOUysHP029uax3OVejQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSOB2LAUN3GGQYARnQE9/OufXVNMDAKBggq +hkjOPQQDAwNoADBlAjEAnDPfQeMjqEI2Jpc1XHvr20v4qotzVRVcrHgpD7oh2MSg +2NED3W3ROT3Ek2DS43KyAjB8xX6I01D1HiXo+k515liWpDVfG2XqYZpwI7UNo5uS +Um9poIyNStDuiw7LR47QjRE= +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem new file mode 100644 index 000000000000..f547954704be --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_ECC_Root-02.pem @@ -0,0 +1,67 @@ +## +## CommScope Public Trust ECC Root-02 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 28:fd:99:60:41:47:a6:01:3a:ca:14:7b:1f:ef:f9:68:08:83:5d:7d + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-02 + Validity + Not Before: Apr 28 17:44:54 2021 GMT + Not After : Apr 28 17:44:53 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust ECC Root-02 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:78:30:81:e8:63:1e:e5:eb:71:51:0f:f7:07:07: + ca:39:99:7c:4e:d5:0f:cc:30:30:0b:8f:66:93:3e: + cf:bd:c5:86:bd:f9:b1:b7:b4:3e:b4:07:c8:f3:96: + 31:f3:ed:a4:4f:f8:a3:4e:8d:29:15:58:b8:d5:6f: + 7f:ee:6c:22:b5:b0:af:48:45:0a:bd:a8:49:94:bf: + 84:43:b0:db:84:4a:03:23:19:67:6a:6f:c1:6e:bc: + 06:39:37:d1:88:22:f7 + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + E6:18:75:FF:EF:60:DE:84:A4:F5:46:C7:DE:4A:55:E3:32:36:79:F5 + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:64:02:30:26:73:49:7a:b6:ab:e6:49:f4:7d:52:3f:d4:41: + 04:ae:80:43:83:65:75:b9:85:80:38:3b:d6:6f:e4:93:86:ab: + 8f:e7:89:c8:7f:9b:7e:6b:0a:12:55:61:aa:11:e0:79:02:30: + 77:e8:31:71:ac:3c:71:03:d6:84:26:1e:14:b8:f3:3b:3b:de: + ed:59:fc:6b:4c:30:7f:59:ce:45:e9:73:60:15:9a:4c:f0:e6: + 5e:25:22:15:6d:c2:87:59:d0:b2:8e:6a +SHA1 Fingerprint=3C:3F:EF:57:0F:FE:65:93:86:9E:A0:FE:B0:F6:ED:8E:D1:13:C7:E5 +-----BEGIN CERTIFICATE----- +MIICHDCCAaOgAwIBAgIUKP2ZYEFHpgE6yhR7H+/5aAiDXX0wCgYIKoZIzj0EAwMw +TjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwiQ29t +bVNjb3BlIFB1YmxpYyBUcnVzdCBFQ0MgUm9vdC0wMjAeFw0yMTA0MjgxNzQ0NTRa +Fw00NjA0MjgxNzQ0NTNaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21tU2Nv +cGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgRUNDIFJvb3QtMDIw +djAQBgcqhkjOPQIBBgUrgQQAIgNiAAR4MIHoYx7l63FRD/cHB8o5mXxO1Q/MMDAL +j2aTPs+9xYa9+bG3tD60B8jzljHz7aRP+KNOjSkVWLjVb3/ubCK1sK9IRQq9qEmU +v4RDsNuESgMjGWdqb8FuvAY5N9GIIvejQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD +VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTmGHX/72DehKT1RsfeSlXjMjZ59TAKBggq +hkjOPQQDAwNnADBkAjAmc0l6tqvmSfR9Uj/UQQSugEODZXW5hYA4O9Zv5JOGq4/n +ich/m35rChJVYaoR4HkCMHfoMXGsPHED1oQmHhS48zs73u1Z/GtMMH9ZzkXpc2AV +mkzw5l4lIhVtwodZ0LKOag== +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem new file mode 100644 index 000000000000..2f144760f93c --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-01.pem @@ -0,0 +1,134 @@ +## +## CommScope Public Trust RSA Root-01 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 3e:03:49:81:75:16:74:31:8e:4c:ab:d5:c5:90:29:96:c5:39:10:dd + Signature Algorithm: sha256WithRSAEncryption + Issuer: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-01 + Validity + Not Before: Apr 28 16:45:54 2021 GMT + Not After : Apr 28 16:45:53 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-01 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:b0:48:65:a3:0d:1d:42:e3:91:6d:9d:84:a4:61: + 96:12:c2:ed:c3:da:23:34:19:76:f6:ea:fd:55:5a: + f6:55:01:53:0f:f2:cc:8c:97:4f:b9:50:cb:b3:01: + 44:56:96:fd:9b:28:ec:7b:74:0b:e7:42:6b:55:ce: + c9:61:b2:e8:ad:40:3c:ba:b9:41:0a:05:4f:1b:26: + 85:8f:43:b5:40:b5:85:d1:d4:71:dc:83:41:f3:f6: + 45:c7:80:a2:84:50:97:46:ce:a0:0c:c4:60:56:04: + 1d:07:5b:46:a5:0e:b2:4b:a4:0e:a5:7c:ee:f8:d4: + 62:03:b9:93:6a:8a:14:b8:70:f8:2e:82:46:38:23: + 0e:74:c7:6b:41:b7:d0:29:a3:9d:80:b0:7e:77:93: + 63:42:fb:34:83:3b:73:a3:5a:21:36:eb:47:fa:18: + 17:d9:ba:66:c2:93:a4:8f:fc:5d:a4:ad:fc:50:6a: + 95:ac:bc:24:33:d1:bd:88:7f:86:f5:f5:b2:73:2a: + 8f:7c:af:08:f2:1a:98:3f:a9:81:65:3f:c1:8c:89: + c5:96:30:9a:0a:cf:f4:d4:c8:34:ed:9d:2f:bc:8d: + 38:86:53:ee:97:9f:a9:b2:63:94:17:8d:0f:dc:66: + 2a:7c:52:51:75:cb:99:8e:e8:3d:5c:bf:9e:3b:28: + 8d:83:02:0f:a9:9f:72:e2:2c:2b:b3:dc:66:97:00: + 40:d0:a4:54:8e:9b:5d:7b:45:36:26:d6:72:43:eb: + cf:c0:ea:0d:dc:ce:12:e6:7d:38:9f:05:27:a8:97: + 3e:e9:51:c6:6c:05:28:c1:02:0f:e9:18:6d:ec:bd: + 9c:06:d4:a7:49:f4:54:05:6b:6c:30:f1:eb:03:d5: + ea:3d:6a:76:c2:cb:1a:28:49:4d:7f:64:e0:fa:2b: + da:73:83:81:ff:91:03:bd:94:bb:e4:b8:8e:9c:32: + 63:cd:9f:bb:68:81:b1:84:5b:af:36:bf:77:ee:1d: + 7f:f7:49:9b:52:ec:d2:77:5a:7d:91:9d:4d:c2:39: + 2d:e4:ba:82:f8:6f:f2:4e:1e:0f:4e:e6:3f:59:a5: + 23:dc:3d:87:a8:28:58:28:d1:f1:1b:36:db:4f:c4: + ff:e1:8c:5b:72:8c:c7:26:03:27:a3:39:0a:01:aa: + c0:b2:31:60:83:22:a1:4f:12:09:01:11:af:34:d4: + cf:d7:ae:62:d3:05:07:b4:31:75:e0:0d:6d:57:4f: + 69:87:f9:57:a9:ba:15:f6:c8:52:6d:a1:cb:9c:1f: + e5:fc:78:a8:35:9a:9f:41:14:ce:a5:b4:ce:94:08: + 1c:09:ad:56:e5:da:b6:49:9a:4a:ea:63:18:53:9c: + 2c:2e:c3 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 37:5D:A6:9A:74:32:C2:C2:F9:C7:A6:15:10:59:B8:E4:FD:E5:B8:6D + Signature Algorithm: sha256WithRSAEncryption + Signature Value: + af:a7:cf:de:ff:e0:bd:42:8d:4d:e5:22:96:df:68:ea:7d:4d: + 2a:7d:d0:ad:3d:16:5c:43:e7:7d:c0:86:e8:7a:35:63:f1:cc: + 81:c8:c6:0b:e8:2e:52:35:a4:a6:49:90:63:51:ac:34:ac:05: + 3b:57:00:e9:d3:62:d3:d9:29:d5:54:be:1c:10:91:9c:b2:6d: + fe:59:fd:79:f7:ea:56:d0:9e:68:54:42:8f:26:52:e2:4c:df: + 2f:97:a6:2f:d2:07:98:a8:f3:60:5d:4b:9a:58:57:88:ef:82: + e5:fa:af:6c:81:4b:92:8f:40:9a:93:46:59:cb:5f:78:16:b1: + 67:3e:42:0b:df:28:d9:b0:ad:98:20:be:43:7c:d1:5e:1a:09: + 17:24:8d:7b:5d:95:e9:ab:c1:60:ab:5b:18:64:80:fb:ad:e0: + 06:7d:1d:ca:59:b8:f3:78:29:67:c6:56:1d:af:b6:b5:74:2a: + 76:a1:3f:fb:75:30:9f:94:5e:3b:a5:60:f3:cb:5c:0c:e2:0e: + c9:60:f8:c9:1f:16:8a:26:dd:e7:27:7f:eb:25:a6:8a:bd:b8: + 2d:36:10:9a:b1:58:4d:9a:68:4f:60:54:e5:f6:46:13:8e:88: + ac:bc:21:42:12:ad:c6:4a:89:7d:9b:c1:d8:2d:e9:96:03:f4: + a2:74:0c:bc:00:1d:bf:d6:37:25:67:b4:72:8b:af:85:bd:ea: + 2a:03:8f:cc:fb:3c:44:24:82:e2:01:a5:0b:59:b6:34:8d:32: + 0b:12:0d:eb:27:c2:fd:41:d7:40:3c:72:46:29:c0:8c:ea:ba: + 0f:f1:06:93:2e:f7:9c:a8:f4:60:3e:a3:f1:38:5e:8e:13:c1: + b3:3a:97:87:3f:92:ca:78:a9:1c:af:d0:b0:1b:26:1e:be:70: + ec:7a:f5:33:98:ea:5c:ff:2b:0b:04:4e:43:dd:63:7e:0e:a7: + 4e:78:03:95:3e:d4:2d:30:95:11:10:28:2e:bf:a0:02:3e:ff: + 5e:59:d3:05:0e:95:5f:53:45:ef:6b:87:d5:48:cd:16:a6:96: + 83:e1:df:b3:06:f3:c1:14:db:a7:ec:1c:8b:5d:90:90:0d:72: + 51:e7:61:f9:14:ca:af:83:8f:bf:af:b1:0a:59:5d:dc:5c:d7: + e4:96:ad:5b:60:1d:da:ae:97:b2:39:d9:06:f5:76:00:13:f8: + 68:4c:21:b0:35:c4:dc:55:b2:c9:c1:41:5a:1c:89:c0:8c:6f: + 74:a0:6b:33:4d:b5:01:28:fd:ad:ad:89:17:3b:a6:9a:84:bc: + eb:8c:ea:c4:71:24:a8:ba:29:f9:08:b2:27:56:35:32:5f:ea: + 39:fb:31:9a:d5:19:cc:f0 +SHA1 Fingerprint=6D:0A:5F:F7:B4:23:06:B4:85:B3:B7:97:64:FC:AC:75:F5:33:F2:93 +-----BEGIN CERTIFICATE----- +MIIFbDCCA1SgAwIBAgIUPgNJgXUWdDGOTKvVxZAplsU5EN0wDQYJKoZIhvcNAQEL +BQAwTjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwi +Q29tbVNjb3BlIFB1YmxpYyBUcnVzdCBSU0EgUm9vdC0wMTAeFw0yMTA0MjgxNjQ1 +NTRaFw00NjA0MjgxNjQ1NTNaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21t +U2NvcGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgUlNBIFJvb3Qt +MDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwSGWjDR1C45FtnYSk +YZYSwu3D2iM0GXb26v1VWvZVAVMP8syMl0+5UMuzAURWlv2bKOx7dAvnQmtVzslh +suitQDy6uUEKBU8bJoWPQ7VAtYXR1HHcg0Hz9kXHgKKEUJdGzqAMxGBWBB0HW0al +DrJLpA6lfO741GIDuZNqihS4cPgugkY4Iw50x2tBt9Apo52AsH53k2NC+zSDO3Oj +WiE260f6GBfZumbCk6SP/F2krfxQapWsvCQz0b2If4b19bJzKo98rwjyGpg/qYFl +P8GMicWWMJoKz/TUyDTtnS+8jTiGU+6Xn6myY5QXjQ/cZip8UlF1y5mO6D1cv547 +KI2DAg+pn3LiLCuz3GaXAEDQpFSOm117RTYm1nJD68/A6g3czhLmfTifBSeolz7p +UcZsBSjBAg/pGG3svZwG1KdJ9FQFa2ww8esD1eo9anbCyxooSU1/ZOD6K9pzg4H/ +kQO9lLvkuI6cMmPNn7togbGEW682v3fuHX/3SZtS7NJ3Wn2RnU3COS3kuoL4b/JO +Hg9O5j9ZpSPcPYeoKFgo0fEbNttPxP/hjFtyjMcmAyejOQoBqsCyMWCDIqFPEgkB +Ea801M/XrmLTBQe0MXXgDW1XT2mH+VepuhX2yFJtocucH+X8eKg1mp9BFM6ltM6U +CBwJrVbl2rZJmkrqYxhTnCwuwwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUN12mmnQywsL5x6YVEFm45P3luG0wDQYJ +KoZIhvcNAQELBQADggIBAK+nz97/4L1CjU3lIpbfaOp9TSp90K09FlxD533Ahuh6 +NWPxzIHIxgvoLlI1pKZJkGNRrDSsBTtXAOnTYtPZKdVUvhwQkZyybf5Z/Xn36lbQ +nmhUQo8mUuJM3y+Xpi/SB5io82BdS5pYV4jvguX6r2yBS5KPQJqTRlnLX3gWsWc+ +QgvfKNmwrZggvkN80V4aCRckjXtdlemrwWCrWxhkgPut4AZ9HcpZuPN4KWfGVh2v +trV0KnahP/t1MJ+UXjulYPPLXAziDslg+MkfFoom3ecnf+slpoq9uC02EJqxWE2a +aE9gVOX2RhOOiKy8IUISrcZKiX2bwdgt6ZYD9KJ0DLwAHb/WNyVntHKLr4W96ioD +j8z7PEQkguIBpQtZtjSNMgsSDesnwv1B10A8ckYpwIzqug/xBpMu95yo9GA+o/E4 +Xo4TwbM6l4c/ksp4qRyv0LAbJh6+cOx69TOY6lz/KwsETkPdY34Op054A5U+1C0w +lREQKC6/oAI+/15Z0wUOlV9TRe9rh9VIzRamloPh37MG88EU26fsHItdkJANclHn +YfkUyq+Dj7+vsQpZXdxc1+SWrVtgHdqul7I52Qb1dgAT+GhMIbA1xNxVssnBQVoc +icCMb3SgazNNtQEo/a2tiRc7ppqEvOuM6sRxJKi6KfkIsidWNTJf6jn7MZrVGczw +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem new file mode 100644 index 000000000000..b343c7765878 --- /dev/null +++ b/secure/caroot/trusted/CommScope_Public_Trust_RSA_Root-02.pem @@ -0,0 +1,134 @@ +## +## CommScope Public Trust RSA Root-02 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 54:16:bf:3b:7e:39:95:71:8d:d1:aa:00:a5:86:0d:2b:8f:7a:05:4e + Signature Algorithm: sha256WithRSAEncryption + Issuer: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-02 + Validity + Not Before: Apr 28 17:16:43 2021 GMT + Not After : Apr 28 17:16:42 2046 GMT + Subject: C = US, O = CommScope, CN = CommScope Public Trust RSA Root-02 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:e1:fa:0e:fb:68:00:12:c8:4d:d5:ac:22:c4:35: + 01:3b:c5:54:e5:59:76:63:a5:7f:eb:c1:c4:6a:98: + bd:32:8d:17:80:eb:5d:ba:d1:62:3d:25:23:19:35: + 14:e9:7f:89:a7:1b:62:3c:d6:50:e7:34:95:03:32: + b1:b4:93:22:3d:a7:e2:b1:ed:e6:7b:4e:2e:87:9b: + 0d:33:75:0a:de:aa:35:e7:7e:e5:36:98:a2:ae:25: + 9e:95:b3:32:96:a4:2b:58:1e:ef:3f:fe:62:34:48: + 51:d1:b4:8d:42:ad:60:da:49:6a:95:70:dd:d2:00: + e2:cc:57:63:02:7b:96:dd:49:97:5b:92:4e:95:d3: + f9:cb:29:1f:18:4a:f8:01:2a:d2:63:09:6e:24:e9: + 89:d2:e5:c7:22:4c:dc:73:86:47:00:aa:0d:88:8e: + ae:85:7d:4a:e9:bb:33:4f:0e:52:70:9d:95:e3:7c: + 6d:96:5b:2d:3d:5f:a1:83:46:5d:b6:e3:25:b8:7c: + a7:19:80:1c:ea:65:43:dc:91:79:36:2c:74:7c:f2: + 67:06:c9:89:c9:db:bf:da:68:bf:23:ed:dc:6b:ad: + 28:83:79:2f:ec:38:a5:0d:37:01:67:27:9a:e9:33: + d9:33:5f:37:a1:c5:f0:ab:3d:fa:78:b0:e7:2c:9f: + f6:3e:9f:60:e0:ef:48:e9:90:45:1e:05:51:78:1a: + 2c:12:2c:5c:28:ac:0d:a2:23:9e:34:8f:05:e6:a2: + 33:ce:11:77:13:d4:0e:a4:1e:42:1f:86:cd:70:fe: + d9:2e:15:3d:1d:bb:b8:f2:53:57:db:cc:c6:74:29: + 9c:18:b3:36:75:38:2e:0f:54:a1:f8:92:1f:89:96: + 4f:bb:d4:ee:9d:e9:3b:36:42:b5:0a:3b:2a:d4:64: + 79:36:10:e1:f9:91:03:2b:7b:20:54:cd:0d:19:1a: + c8:41:32:34:d1:b0:99:e1:90:1e:01:40:36:b5:b7: + fa:a9:e5:77:75:a4:22:81:5d:b0:8b:e4:27:12:0f: + 54:88:c6:db:85:74:e6:b7:c0:d7:a6:29:fa:db:de: + f3:93:97:27:04:55:2f:0a:6f:37:c5:3d:13:af:0a: + 00:a9:2c:8b:1c:81:28:d7:ef:86:31:a9:ae:f2:6e: + b8:ca:6a:2c:54:47:d8:2a:88:2e:af:c1:07:10:78: + ac:11:a2:2f:42:f0:37:c5:f2:b8:56:dd:0e:62:2d: + ce:2d:56:7e:55:f2:a7:44:f6:2b:32:f4:23:a8:47: + e8:d4:2a:01:78:cf:6a:c3:37:a8:9e:65:d2:2c:e5: + fa:ba:33:c1:06:44:f6:e6:cf:a5:0d:a7:66:08:34: + 8a:2c:f3 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + 47:D0:E7:B1:22:FF:9D:2C:F5:D9:57:60:B3:B1:B1:70:95:EF:61:7A + Signature Algorithm: sha256WithRSAEncryption + Signature Value: + 86:69:b1:4d:2f:e9:9f:4f:22:93:68:8e:e4:21:99:a3:ce:45: + 53:1b:73:44:53:00:81:61:cd:31:e3:08:ba:81:28:28:7a:92: + b9:b6:a8:c8:43:9e:c7:13:26:4d:c2:d8:e5:55:9c:92:5d:50: + d8:c2:2b:db:fe:e6:a8:97:cf:52:3a:24:c3:65:64:5c:47:31: + a3:65:35:13:c3:93:b9:f7:f9:51:97:bb:a4:f0:62:87:c5:d6: + 06:d3:97:83:20:a9:7e:bb:b6:21:c2:a5:0d:84:00:e1:f2:27: + 10:83:ba:dd:03:81:d5:dd:68:c3:66:10:c8:d1:76:b4:b3:6f: + 29:9e:00:f9:c2:29:f5:b1:93:19:52:69:1a:2c:4c:a0:8b:e0: + 15:9a:31:2f:d3:88:95:59:6e:e5:c4:b3:50:c8:14:08:4a:9b: + 8b:13:83:b1:a4:72:b2:3b:76:33:41:dc:dc:aa:a6:07:6f:1d: + 24:12:9f:c8:76:bd:2f:d9:8e:f4:2c:ee:b7:d2:38:10:24:36: + 51:2f:e3:5c:5d:81:21:a7:da:bb:4e:ff:e6:07:a8:fe:b9:0d: + 27:6c:bb:70:5a:55:7a:13:e9:f1:2a:49:69:c7:5f:87:57:4c: + 43:79:6d:3a:65:e9:30:5c:41:ee:eb:77:a5:73:12:88:e8:bf: + 7d:ae:e5:c4:a8:1f:0d:8e:1c:6d:50:02:4f:26:18:43:de:8f: + 55:85:b1:0b:37:05:60:c9:55:39:12:04:a1:2a:cf:71:16:9f: + 36:51:49:bf:70:3b:9e:67:9c:fb:7b:79:c9:39:1c:78:ac:77: + 91:54:9a:b8:75:0a:81:52:97:e3:66:61:6b:ed:3e:38:1e:96: + 61:55:e1:91:54:8c:ed:8c:24:1f:81:c9:10:9a:73:99:2b:16: + 4e:72:00:3f:54:1b:f8:8d:ba:8b:e7:14:d6:b6:45:4f:60:ec: + 96:ae:c3:2f:02:4e:5d:9d:96:49:72:00:b2:ab:75:5c:0f:68: + 5b:1d:65:c2:5f:33:0f:1e:0f:f0:3b:86:f5:b0:4e:bb:9c:f7: + ea:25:05:dc:ad:a2:9b:4b:17:01:be:42:df:35:21:1d:ad:ab: + ae:f4:bf:ae:1f:1b:d3:e2:3b:fc:b3:72:73:1c:9b:28:90:89: + 13:3d:1d:c1:00:47:09:96:9a:38:1b:dd:b1:cf:0d:c2:b4:44: + f3:96:95:ce:32:3a:8f:34:9c:e0:17:c7:5e:ce:ae:0d:db:87: + 38:e5:3f:5b:fd:9b:19:e1:31:41:7a:70:aa:23:6b:01:e1:45: + 4c:cd:94:ce:3b:9e:2d:e7:88:02:22:f4:6e:e8:c8:ec:d6:3c: + f3:b9:b2:d7:77:7a:ac:7b +SHA1 Fingerprint=EA:B0:E2:52:1B:89:93:4C:11:68:F2:D8:9A:AC:22:4C:A3:8A:57:AE +-----BEGIN CERTIFICATE----- +MIIFbDCCA1SgAwIBAgIUVBa/O345lXGN0aoApYYNK496BU4wDQYJKoZIhvcNAQEL +BQAwTjELMAkGA1UEBhMCVVMxEjAQBgNVBAoMCUNvbW1TY29wZTErMCkGA1UEAwwi +Q29tbVNjb3BlIFB1YmxpYyBUcnVzdCBSU0EgUm9vdC0wMjAeFw0yMTA0MjgxNzE2 +NDNaFw00NjA0MjgxNzE2NDJaME4xCzAJBgNVBAYTAlVTMRIwEAYDVQQKDAlDb21t +U2NvcGUxKzApBgNVBAMMIkNvbW1TY29wZSBQdWJsaWMgVHJ1c3QgUlNBIFJvb3Qt +MDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDh+g77aAASyE3VrCLE +NQE7xVTlWXZjpX/rwcRqmL0yjReA61260WI9JSMZNRTpf4mnG2I81lDnNJUDMrG0 +kyI9p+Kx7eZ7Ti6Hmw0zdQreqjXnfuU2mKKuJZ6VszKWpCtYHu8//mI0SFHRtI1C +rWDaSWqVcN3SAOLMV2MCe5bdSZdbkk6V0/nLKR8YSvgBKtJjCW4k6YnS5cciTNxz +hkcAqg2Ijq6FfUrpuzNPDlJwnZXjfG2WWy09X6GDRl224yW4fKcZgBzqZUPckXk2 +LHR88mcGyYnJ27/aaL8j7dxrrSiDeS/sOKUNNwFnJ5rpM9kzXzehxfCrPfp4sOcs +n/Y+n2Dg70jpkEUeBVF4GiwSLFworA2iI540jwXmojPOEXcT1A6kHkIfhs1w/tku +FT0du7jyU1fbzMZ0KZwYszZ1OC4PVKH4kh+Jlk+71O6d6Ts2QrUKOyrUZHk2EOH5 +kQMreyBUzQ0ZGshBMjTRsJnhkB4BQDa1t/qp5Xd1pCKBXbCL5CcSD1SIxtuFdOa3 +wNemKfrb3vOTlycEVS8KbzfFPROvCgCpLIscgSjX74Yxqa7ybrjKaixUR9gqiC6v +wQcQeKwRoi9C8DfF8rhW3Q5iLc4tVn5V8qdE9isy9COoR+jUKgF4z2rDN6ieZdIs +5fq6M8EGRPbmz6UNp2YINIos8wIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G +A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUR9DnsSL/nSz12Vdgs7GxcJXvYXowDQYJ +KoZIhvcNAQELBQADggIBAIZpsU0v6Z9PIpNojuQhmaPORVMbc0RTAIFhzTHjCLqB +KCh6krm2qMhDnscTJk3C2OVVnJJdUNjCK9v+5qiXz1I6JMNlZFxHMaNlNRPDk7n3 ++VGXu6TwYofF1gbTl4MgqX67tiHCpQ2EAOHyJxCDut0DgdXdaMNmEMjRdrSzbyme +APnCKfWxkxlSaRosTKCL4BWaMS/TiJVZbuXEs1DIFAhKm4sTg7GkcrI7djNB3Nyq +pgdvHSQSn8h2vS/ZjvQs7rfSOBAkNlEv41xdgSGn2rtO/+YHqP65DSdsu3BaVXoT +6fEqSWnHX4dXTEN5bTpl6TBcQe7rd6VzEojov32u5cSoHw2OHG1QAk8mGEPej1WF +sQs3BWDJVTkSBKEqz3EWnzZRSb9wO55nnPt7eck5HHisd5FUmrh1CoFSl+NmYWvt +PjgelmFV4ZFUjO2MJB+ByRCac5krFk5yAD9UG/iNuovnFNa2RU9g7Jauwy8CTl2d +lklyALKrdVwPaFsdZcJfMw8eD/A7hvWwTruc9+olBdytoptLFwG+Qt81IR2tq670 +v64fG9PiO/yzcnMcmyiQiRM9HcEARwmWmjgb3bHPDcK0RPOWlc4yOo80nOAXx17O +rg3bhzjlP1v9mxnhMUF6cKojawHhRUzNlM47ni3niAIi9G7oyOzWPPO5std3eqx7 +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem b/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem new file mode 100644 index 000000000000..da5285d26633 --- /dev/null +++ b/secure/caroot/trusted/Telekom_Security_TLS_ECC_Root_2020.pem @@ -0,0 +1,68 @@ +## +## Telekom Security TLS ECC Root 2020 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 36:3a:96:8c:c9:5c:b2:58:cd:d0:01:5d:c5:e5:57:00 + Signature Algorithm: ecdsa-with-SHA384 + Issuer: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS ECC Root 2020 + Validity + Not Before: Aug 25 07:48:20 2020 GMT + Not After : Aug 25 23:59:59 2045 GMT + Subject: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS ECC Root 2020 + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (384 bit) + pub: + 04:ce:bf:fe:57:a8:bf:d5:aa:f7:10:9a:cd:bc:d1: + 11:a2:bd:67:42:cc:90:eb:15:18:90:d9:a2:cd:0c: + 2a:25:eb:3e:4f:ce:b5:d2:8f:0f:f3:35:da:43:8b: + 02:80:be:6f:51:24:1d:0f:6b:2b:ca:9f:c2:6f:50: + 32:e5:37:20:b6:20:ff:88:0d:0f:6d:49:bb:db:06: + a4:87:90:92:94:f4:09:d0:cf:7f:c8:80:0b:c1:97: + b3:bb:35:27:c9:c2:1b + ASN1 OID: secp384r1 + NIST CURVE: P-384 + X509v3 extensions: + X509v3 Subject Key Identifier: + E3:72:CC:6E:95:99:47:B1:E6:B3:61:4C:D1:CB:AB:E3:BA:CD:DE:9F + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: ecdsa-with-SHA384 + Signature Value: + 30:64:02:30:75:52:8b:b7:a4:10:4f:ae:4a:10:8b:b2:84:5b: + 42:e1:e6:2a:36:02:da:a0:6e:19:3f:25:bf:da:59:32:8e:e4: + fb:90:dc:93:64:ce:ad:b4:41:47:60:e2:cf:a7:cb:1e:02:30: + 37:41:8c:66:df:41:6b:d6:83:00:41:fd:2f:5a:f7:50:b4:67: + d1:2c:a8:71:d7:43:ca:9c:27:24:91:83:48:0d:cf:cd:f7:54: + 81:af:ec:7f:e4:67:db:b8:90:ee:dd:25 +SHA1 Fingerprint=C0:F8:96:C5:A9:3B:01:06:21:07:DA:18:42:48:BC:E9:9D:88:D5:EC +-----BEGIN CERTIFICATE----- +MIICQjCCAcmgAwIBAgIQNjqWjMlcsljN0AFdxeVXADAKBggqhkjOPQQDAzBjMQsw +CQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0eSBH +bWJIMSswKQYDVQQDDCJUZWxla29tIFNlY3VyaXR5IFRMUyBFQ0MgUm9vdCAyMDIw +MB4XDTIwMDgyNTA3NDgyMFoXDTQ1MDgyNTIzNTk1OVowYzELMAkGA1UEBhMCREUx +JzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkgR21iSDErMCkGA1UE +AwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgRUNDIFJvb3QgMjAyMDB2MBAGByqGSM49 +AgEGBSuBBAAiA2IABM6//leov9Wq9xCazbzREaK9Z0LMkOsVGJDZos0MKiXrPk/O +tdKPD/M12kOLAoC+b1EkHQ9rK8qfwm9QMuU3ILYg/4gND21Ju9sGpIeQkpT0CdDP +f8iAC8GXs7s1J8nCG6NCMEAwHQYDVR0OBBYEFONyzG6VmUex5rNhTNHLq+O6zd6f +MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2cA +MGQCMHVSi7ekEE+uShCLsoRbQuHmKjYC2qBuGT8lv9pZMo7k+5Dck2TOrbRBR2Di +z6fLHgIwN0GMZt9Ba9aDAEH9L1r3ULRn0SyocddDypwnJJGDSA3PzfdUga/sf+Rn +27iQ7t0l +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem b/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem new file mode 100644 index 000000000000..69bbcdd0e322 --- /dev/null +++ b/secure/caroot/trusted/Telekom_Security_TLS_RSA_Root_2023.pem @@ -0,0 +1,138 @@ +## +## Telekom Security TLS RSA Root 2023 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 21:9c:54:2d:e8:f6:ec:71:77:fa:4e:e8:c3:70:57:97 + Signature Algorithm: sha384WithRSAEncryption + Issuer: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS RSA Root 2023 + Validity + Not Before: Mar 28 12:16:45 2023 GMT + Not After : Mar 27 23:59:59 2048 GMT + Subject: C = DE, O = Deutsche Telekom Security GmbH, CN = Telekom Security TLS RSA Root 2023 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:ed:35:a1:81:80:f3:cb:4a:69:5b:c2:fb:51:83: + ae:26:fd:e1:6e:f3:81:12:7d:71:40:ff:87:75:42: + 29:21:ed:81:52:2c:df:12:c1:19:84:89:c1:bd:c5: + 28:d5:d5:4b:6c:44:d6:4c:db:07:96:4a:55:7a:ca: + 36:82:04:36:a8:a5:fc:27:f6:49:f1:d5:72:9e:91: + f9:23:d6:70:7b:bb:f5:9b:c1:ec:93:cf:19:ea:65: + 7e:88:70:a0:73:fc:f6:ff:b5:56:62:e1:73:6a:34: + 98:3e:82:b8:ac:95:53:f4:01:a0:27:07:72:a3:00: + 53:a0:e4:b2:ab:83:38:57:33:25:94:9f:be:48:1d: + 98:e1:a3:ba:9e:5c:cd:04:71:51:7d:75:78:ab:f3: + 59:aa:c4:e0:60:be:8f:83:52:b8:75:1a:41:35:ed: + bc:f3:3a:63:e9:a9:14:45:d7:e6:52:d1:6e:d2:de: + bc:e3:f5:0b:3b:e6:e0:c4:bd:43:64:13:a6:ce:f4: + 98:37:6c:8a:95:a8:97:c8:47:0f:f0:5e:10:8b:e7: + 1d:1c:fe:b1:3b:a0:05:33:68:05:41:82:c1:03:2b: + 01:c8:e7:8f:4d:ab:e8:b5:f6:cd:6b:44:b5:e7:dd: + 8b:ec:ea:25:b4:00:22:57:4d:b0:b1:b2:31:c1:16: + ce:ff:fd:14:84:b7:47:fa:b2:f1:70:de:db:8b:6c: + 36:58:a4:7c:b3:11:d1:c3:77:7f:5f:b6:25:e0:0d: + c5:d2:b3:f9:b8:b8:77:db:37:71:71:47:e3:60:18: + 4f:24:b6:75:37:78:b9:a3:62:af:bd:c9:72:8e:2f: + cc:bb:ae:db:e4:15:52:19:07:33:fb:6a:b7:2d:4b: + 90:28:82:73:fe:18:8b:35:8d:db:a7:04:6a:be:ea: + c1:4d:36:3b:16:36:91:32:ef:b6:40:89:91:43:e0: + f2:a2:ab:04:2e:e6:f2:4c:0e:16:34:20:ac:87:c1: + 2d:7e:c9:66:47:17:14:11:a4:f3:f7:a1:24:89:ab: + d8:1a:c8:a1:5c:b1:a3:f7:8c:6d:c8:01:c9:4f:c9: + ec:c4:fc:ac:51:33:d1:c8:83:d1:c9:9f:1d:d4:47: + 34:29:3e:cb:b0:0e:fa:83:0b:28:58:e5:29:dc:3f: + 7c:a8:9f:c9:b6:0a:bb:a6:e8:46:16:0f:96:e5:7b: + e4:6a:7a:48:6d:76:98:05:a5:dc:6d:1e:42:1e:42: + da:1a:e0:52:f7:b5:83:c0:1a:7b:78:35:2c:38:f5: + 1f:fd:49:a3:2e:d2:59:63:bf:80:b0:8c:93:73:cb: + 35:a6:99:95:22:61:65:03:60:fb:2f:93:4b:fa:9a: + 9c:80:3b + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + X509v3 Subject Key Identifier: + B6:A7:97:82:3D:74:85:9B:F7:3C:9F:93:9A:95:79:75:52:8C:6D:47 + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Authority Key Identifier: + B6:A7:97:82:3D:74:85:9B:F7:3C:9F:93:9A:95:79:75:52:8C:6D:47 + Signature Algorithm: sha384WithRSAEncryption + Signature Value: + a8:cc:61:a6:be:75:9e:15:50:a4:6b:fb:a8:70:45:7c:ba:7e: + b1:5a:fc:5b:23:fa:0a:77:f8:98:71:82:0c:6d:e0:5e:46:aa: + 93:f4:1e:a0:c3:e1:93:db:4b:ad:b2:a6:5d:ab:b0:d4:62:cb: + 5e:bb:66:f5:2d:ee:97:40:3c:62:eb:5e:d6:14:d6:8c:e2:96: + 8b:41:69:93:35:e6:b9:99:6b:62:b4:a1:17:66:34:a6:6b:63: + c6:b9:4e:f2:22:e9:58:0d:56:41:d1:fa:0c:4a:f0:33:cd:3b: + bb:6d:21:3a:ae:8e:72:b5:c3:4a:fb:e9:7d:e5:b1:9b:86:ee: + e2:e0:7d:b4:f7:32:fd:22:84:f1:85:c9:37:79:e9:b5:3f:bf: + 5c:e4:74:b2:8f:11:62:00:dd:18:66:a1:d9:7b:23:5f:f1:8e: + d5:67:e8:54:da:5b:3a:6b:36:6f:f9:81:b1:33:47:33:77:40: + f9:52:aa:dd:d4:83:cf:85:78:99:9a:93:b9:73:67:42:46:11: + 21:ea:fe:0a:a9:1b:1a:65:69:b3:8f:ae:16:b6:f6:4b:56:b2: + 2d:f9:a5:c8:ec:3b:62:a3:ed:6b:d0:4e:d5:40:09:a4:1f:98: + d7:3a:a5:92:59:20:e4:b0:7d:cd:5b:73:68:bd:6d:c4:a2:13: + 0e:67:19:b8:8d:42:7e:6c:0c:9a:6e:a0:24:2d:d5:45:1b:dc: + c4:02:14:fe:85:5b:65:97:ca:4e:90:50:08:7a:42:35:f9:ea: + c2:66:d4:f8:01:ae:1e:b4:be:c3:a8:ef:fe:76:9a:a2:a6:1f: + 46:f6:84:ed:fc:db:ce:c4:02:ce:77:48:2c:8c:b2:ec:c3:00: + a3:ec:2c:55:18:c1:7e:19:ee:e1:2f:f2:ad:83:9b:9e:ab:19: + df:c6:8a:2f:8c:77:e5:b7:05:ec:3b:c1:ec:be:86:b3:86:bc: + c0:f7:dc:e7:ea:5b:ae:b2:cc:b5:35:86:4b:d0:e2:3f:b6:d8: + f8:0e:00:ee:5d:e3:f7:8d:58:ff:cf:8b:37:e9:63:5f:6e:f7: + 09:71:36:c2:12:5d:57:f2:c8:b4:cd:f3:ee:02:df:11:dc:6a: + b9:57:84:1d:59:4d:8c:ce:c8:0e:23:c2:b7:26:9a:10:14:71: + fe:93:b2:8a:b8:80:f0:0e:10:9e:d3:a8:50:0c:37:82:2f:ea: + e0:8a:9d:e1:2c:39:ff:b5:b4:73:00:e4:f7:48:a6:73:ac:bf: + b2:de:77:04:87:b4:a3:cd:9b:35:24:37:fa:90:93:13:81:42: + c6:98:26:75:37:66:41:10:ac:bb:f5:94:e3:c2:31:2b:ad:e7: + 23:56:cc:35:25:92:b3:50 +SHA1 Fingerprint=54:D3:AC:B3:BD:57:56:F6:85:9D:CE:E5:C3:21:E2:D4:AD:83:D0:93 +-----BEGIN CERTIFICATE----- +MIIFszCCA5ugAwIBAgIQIZxULej27HF3+k7ow3BXlzANBgkqhkiG9w0BAQwFADBj +MQswCQYDVQQGEwJERTEnMCUGA1UECgweRGV1dHNjaGUgVGVsZWtvbSBTZWN1cml0 +eSBHbWJIMSswKQYDVQQDDCJUZWxla29tIFNlY3VyaXR5IFRMUyBSU0EgUm9vdCAy +MDIzMB4XDTIzMDMyODEyMTY0NVoXDTQ4MDMyNzIzNTk1OVowYzELMAkGA1UEBhMC +REUxJzAlBgNVBAoMHkRldXRzY2hlIFRlbGVrb20gU2VjdXJpdHkgR21iSDErMCkG +A1UEAwwiVGVsZWtvbSBTZWN1cml0eSBUTFMgUlNBIFJvb3QgMjAyMzCCAiIwDQYJ +KoZIhvcNAQEBBQADggIPADCCAgoCggIBAO01oYGA88tKaVvC+1GDrib94W7zgRJ9 +cUD/h3VCKSHtgVIs3xLBGYSJwb3FKNXVS2xE1kzbB5ZKVXrKNoIENqil/Cf2SfHV +cp6R+SPWcHu79ZvB7JPPGeplfohwoHP89v+1VmLhc2o0mD6CuKyVU/QBoCcHcqMA +U6DksquDOFczJZSfvkgdmOGjup5czQRxUX11eKvzWarE4GC+j4NSuHUaQTXtvPM6 +Y+mpFEXX5lLRbtLevOP1Czvm4MS9Q2QTps70mDdsipWol8hHD/BeEIvnHRz+sTug +BTNoBUGCwQMrAcjnj02r6LX2zWtEtefdi+zqJbQAIldNsLGyMcEWzv/9FIS3R/qy +8XDe24tsNlikfLMR0cN3f1+2JeANxdKz+bi4d9s3cXFH42AYTyS2dTd4uaNir73J +co4vzLuu2+QVUhkHM/tqty1LkCiCc/4YizWN26cEar7qwU02OxY2kTLvtkCJkUPg +8qKrBC7m8kwOFjQgrIfBLX7JZkcXFBGk8/ehJImr2BrIoVyxo/eMbcgByU/J7MT8 +rFEz0ciD0cmfHdRHNCk+y7AO+oMLKFjlKdw/fKifybYKu6boRhYPluV75Gp6SG12 +mAWl3G0eQh5C2hrgUve1g8Aae3g1LDj1H/1Joy7SWWO/gLCMk3PLNaaZlSJhZQNg ++y+TS/qanIA7AgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtqeX +gj10hZv3PJ+TmpV5dVKMbUcwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBS2 +p5eCPXSFm/c8n5OalXl1UoxtRzANBgkqhkiG9w0BAQwFAAOCAgEAqMxhpr51nhVQ +pGv7qHBFfLp+sVr8WyP6Cnf4mHGCDG3gXkaqk/QeoMPhk9tLrbKmXauw1GLLXrtm +9S3ul0A8Yute1hTWjOKWi0FpkzXmuZlrYrShF2Y0pmtjxrlO8iLpWA1WQdH6DErw +M807u20hOq6OcrXDSvvpfeWxm4bu4uB9tPcy/SKE8YXJN3nptT+/XOR0so8RYgDd +GGah2XsjX/GO1WfoVNpbOms2b/mBsTNHM3dA+VKq3dSDz4V4mZqTuXNnQkYRIer+ +CqkbGmVps4+uFrb2S1ayLfmlyOw7YqPta9BO1UAJpB+Y1zqlklkg5LB9zVtzaL1t +xKITDmcZuI1CfmwMmm6gJC3VRRvcxAIU/oVbZZfKTpBQCHpCNfnqwmbU+AGuHrS+ +w6jv/naaoqYfRvaE7fzbzsQCzndILIyy7MMAo+wsVRjBfhnu4S/yrYObnqsZ38aK +L4x35bcF7DvB7L6Gs4a8wPfc5+pbrrLMtTWGS9DiP7bY+A4A7l3j941Y/8+LN+lj +X273CXE2whJdV/LItM3z7gLfEdxquVeEHVlNjM7IDiPCtyaaEBRx/pOyiriA8A4Q +ntOoUAw3gi/q4Iqd4Sw5/7W0cwDk90imc6y/st53BIe0o82bNSQ3+pCTE4FCxpgm +dTdmQRCsu/WU48IxK63nI1bMNSWSs1A= +-----END CERTIFICATE----- diff --git a/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem b/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem new file mode 100644 index 000000000000..72e8d614f96a --- /dev/null +++ b/secure/caroot/trusted/TrustAsia_Global_Root_CA_G3.pem @@ -0,0 +1,138 @@ +## +## TrustAsia Global Root CA G3 +## +## This is a single X.509 certificate for a public Certificate +## Authority (CA). It was automatically extracted from Mozilla's +## root CA list (the file `certdata.txt' in security/nss). +## +## It contains a certificate trusted for server authentication. +## +## Extracted from nss +## +## @generated +## +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 64:f6:0e:65:77:61:6a:ab:3b:b4:ea:85:84:bb:b1:89:b8:71:93:0f + Signature Algorithm: sha384WithRSAEncryption + Issuer: C = CN, O = "TrustAsia Technologies, Inc.", CN = TrustAsia Global Root CA G3 + Validity + Not Before: May 20 02:10:19 2021 GMT + Not After : May 19 02:10:19 2046 GMT + Subject: C = CN, O = "TrustAsia Technologies, Inc.", CN = TrustAsia Global Root CA G3 + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (4096 bit) + Modulus: + 00:c0:31:82:61:92:e4:94:1b:0a:2a:65:d0:be:06: + a9:87:3b:51:12:ea:70:41:ae:e2:fb:74:ea:0a:8d: + b9:b3:4c:dc:8f:b7:13:52:4f:54:18:e1:2c:73:95: + 91:c5:66:3b:6a:cf:ac:63:6d:87:53:f0:f7:f1:39: + b7:a0:43:63:b0:c4:03:5d:57:a9:e7:44:ce:c4:a1: + 83:65:f6:50:3e:b1:7e:16:b8:3a:8a:02:d0:96:1f: + 00:cd:05:21:ef:06:6d:dd:21:9c:19:43:45:a1:c5: + e8:80:ca:c2:ad:40:62:17:06:c6:aa:bc:f3:d6:e6: + fc:50:7e:66:42:1f:3c:8b:a6:79:79:86:40:35:9f: + 20:ef:3f:eb:8b:47:1f:8f:8e:c5:d4:8e:b6:2c:c9: + 44:04:e3:d4:43:75:3f:d5:3f:af:1c:cc:7e:46:5f: + ac:df:64:10:8a:ef:46:f0:90:f0:0f:2d:f4:88:0b: + b1:29:aa:af:85:aa:49:58:a8:bf:63:a0:38:91:e6: + b3:e6:77:68:c4:f9:2a:19:84:bb:0e:e1:f5:af:89: + ec:a5:2f:50:20:74:1e:12:41:73:1e:24:d9:ca:ce: + 2c:a1:59:35:c0:c8:1d:46:27:61:5a:8f:f9:4d:d3: + 72:79:66:1e:9f:15:90:21:2d:fd:ed:8b:56:70:03: + 4a:49:3e:7f:69:31:12:69:c7:1e:5c:ca:7a:13:8b: + e8:e6:f5:60:0f:cc:93:2c:84:7f:f1:fc:6a:fc:9b: + 47:9d:db:ad:88:3d:f3:76:75:33:d7:4b:a4:c8:8b: + f9:f5:43:58:4f:cb:c8:03:54:8f:a5:85:78:04:1a: + f3:73:f2:d7:87:1d:41:9f:e7:d8:17:ce:1a:9c:0f: + 4a:fc:dc:44:68:54:68:e2:41:3c:fe:2c:84:86:37: + 3c:cd:3f:2f:a2:db:e7:f7:54:03:5f:59:d3:f7:91: + 78:c7:8b:77:6a:16:e5:49:85:90:45:72:70:2f:91: + 5d:f8:3e:65:40:0b:19:99:c9:26:20:5a:68:c1:35: + bf:4f:a7:51:f1:d8:11:2b:5b:e0:9a:9e:28:3b:0a: + 3a:0a:1f:c1:81:e5:2e:f0:a6:b9:69:a5:88:94:e6: + 6b:13:7f:d1:64:3f:3d:9c:70:46:e5:a2:85:7b:58: + 84:27:dc:c4:80:3e:67:9a:9a:c7:9a:31:0e:30:ec: + e6:17:40:95:d9:45:ed:01:96:aa:bf:0c:f3:4b:d1: + 63:f7:13:58:c0:b8:f3:fa:67:dd:9b:7d:6d:4a:ff: + 32:4c:b5:25:3b:ff:1c:67:0f:85:22:59:05:91:91: + 41:77:81:d0:85:4c:87:10:71:ff:9e:43:1b:ae:95: + 75:2d:81 + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: critical + CA:TRUE + X509v3 Authority Key Identifier: + 40:E4:E4:F2:23:EF:38:CA:B0:AE:57:7F:F2:21:30:16:34:DB:BC:92 + X509v3 Subject Key Identifier: + 40:E4:E4:F2:23:EF:38:CA:B0:AE:57:7F:F2:21:30:16:34:DB:BC:92 + X509v3 Key Usage: critical + Certificate Sign, CRL Sign + Signature Algorithm: sha384WithRSAEncryption + Signature Value: + 26:3b:51:e1:4d:38:f3:32:18:b4:b4:5e:e1:65:5e:c4:94:4f: + d4:a7:61:a3:f8:c0:cf:33:01:02:e9:c3:aa:35:0f:f1:94:13: + 77:77:35:9e:2d:56:51:44:6e:e1:c6:2e:28:1e:ff:da:ec:47: + cd:97:44:17:f7:e0:4c:c2:e1:7c:7c:32:7a:66:c8:5a:b6:5c: + 53:45:57:5a:45:d4:05:99:2f:2e:23:55:ee:63:68:df:d3:1b: + 78:a7:12:94:06:00:75:0d:72:84:e9:2e:bc:5a:6a:d5:de:2f: + 59:c7:a3:ec:d2:87:66:db:b7:54:b5:24:ab:f4:43:78:db:4b: + 04:c4:6f:dd:e6:3e:66:3e:29:f2:4b:68:71:22:87:a0:f8:b1: + 33:63:76:e3:0d:85:72:44:22:55:3f:1c:7c:e9:fc:b8:15:e8: + 52:fa:aa:3e:a3:21:39:35:74:89:a6:6a:c2:39:fa:78:cf:b6: + ac:e7:e7:d6:56:ff:23:92:2e:50:0b:a9:b5:07:33:f4:38:5f: + a4:49:a6:cb:65:70:76:e8:0a:85:80:4b:36:3d:33:f7:95:54: + 75:25:da:ac:c4:73:82:65:e9:52:f5:5c:fd:38:95:02:6a:69: + 30:c5:1c:0a:57:07:ae:22:a4:2c:f9:c5:41:b7:b8:ec:9f:4f: + 48:00:f9:01:04:55:cc:ac:f9:32:31:c4:75:95:06:a0:7f:d1: + 8d:27:dd:b3:a9:a4:72:87:fe:59:8b:9a:7a:74:16:dd:16:a5: + 62:29:eb:3a:96:dc:8b:a7:68:59:d3:eb:77:91:39:f8:d7:cb: + d9:8f:5f:5a:27:01:7d:5d:68:19:62:d8:c8:cd:f4:b7:72:47: + be:5b:97:ce:f2:ad:a2:99:93:ad:94:cb:93:f6:12:09:95:b6: + ab:d7:3b:d0:3f:11:cb:30:16:2e:79:80:e4:67:81:2d:5d:ed: + 70:78:b6:60:59:ac:e1:5d:45:63:8f:c8:df:72:68:5b:ea:1d: + b8:01:f1:7e:fb:e7:8a:b3:e3:54:a0:38:09:e0:3c:de:42:f2: + c2:ed:2e:9b:f3:1f:35:b6:36:d8:e3:80:a1:8b:cd:99:64:0f: + c2:aa:ab:b1:ca:f5:6f:9e:43:8d:84:54:99:b3:6e:c0:12:66: + d8:70:10:f1:06:35:33:43:a8:9c:2e:ba:14:31:ce:10:7f:1c: + 86:e3:8f:d2:d5:f8:77:ec:9b:ab:f1:2f:63:d9:42:5f:e0:67: + 81:64:91:f1:97:2f:fc:6e:26:f6:33:f8:d3:b5:f8:c4:62:ab: + 31:51:25:02:7a:f8:dd:6b:65:d5:6d:4d:30:c8:65:ba:68:14: + 65:ac:27:0b:74:8a:f2:87 +SHA1 Fingerprint=63:CF:B6:C1:27:2B:56:E4:88:8E:1C:23:9A:B6:2E:81:47:24:C3:C7 +-----BEGIN CERTIFICATE----- +MIIFpTCCA42gAwIBAgIUZPYOZXdhaqs7tOqFhLuxibhxkw8wDQYJKoZIhvcNAQEM +BQAwWjELMAkGA1UEBhMCQ04xJTAjBgNVBAoMHFRydXN0QXNpYSBUZWNobm9sb2dp +ZXMsIEluYy4xJDAiBgNVBAMMG1RydXN0QXNpYSBHbG9iYWwgUm9vdCBDQSBHMzAe +Fw0yMTA1MjAwMjEwMTlaFw00NjA1MTkwMjEwMTlaMFoxCzAJBgNVBAYTAkNOMSUw +IwYDVQQKDBxUcnVzdEFzaWEgVGVjaG5vbG9naWVzLCBJbmMuMSQwIgYDVQQDDBtU +cnVzdEFzaWEgR2xvYmFsIFJvb3QgQ0EgRzMwggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQDAMYJhkuSUGwoqZdC+BqmHO1ES6nBBruL7dOoKjbmzTNyPtxNS +T1QY4SxzlZHFZjtqz6xjbYdT8PfxObegQ2OwxANdV6nnRM7EoYNl9lA+sX4WuDqK +AtCWHwDNBSHvBm3dIZwZQ0WhxeiAysKtQGIXBsaqvPPW5vxQfmZCHzyLpnl5hkA1 +nyDvP+uLRx+PjsXUjrYsyUQE49RDdT/VP68czH5GX6zfZBCK70bwkPAPLfSIC7Ep +qq+FqklYqL9joDiR5rPmd2jE+SoZhLsO4fWvieylL1AgdB4SQXMeJNnKziyhWTXA +yB1GJ2Faj/lN03J5Zh6fFZAhLf3ti1ZwA0pJPn9pMRJpxx5cynoTi+jm9WAPzJMs +hH/x/Gr8m0ed262IPfN2dTPXS6TIi/n1Q1hPy8gDVI+lhXgEGvNz8teHHUGf59gX +zhqcD0r83ERoVGjiQTz+LISGNzzNPy+i2+f3VANfWdP3kXjHi3dqFuVJhZBFcnAv +kV34PmVACxmZySYgWmjBNb9Pp1Hx2BErW+Canig7CjoKH8GB5S7wprlppYiU5msT +f9FkPz2ccEblooV7WIQn3MSAPmeamseaMQ4w7OYXQJXZRe0Blqq/DPNL0WP3E1jA +uPP6Z92bfW1K/zJMtSU7/xxnD4UiWQWRkUF3gdCFTIcQcf+eQxuulXUtgQIDAQAB +o2MwYTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFEDk5PIj7zjKsK5Xf/Ih +MBY027ySMB0GA1UdDgQWBBRA5OTyI+84yrCuV3/yITAWNNu8kjAOBgNVHQ8BAf8E +BAMCAQYwDQYJKoZIhvcNAQEMBQADggIBACY7UeFNOPMyGLS0XuFlXsSUT9SnYaP4 +wM8zAQLpw6o1D/GUE3d3NZ4tVlFEbuHGLige/9rsR82XRBf34EzC4Xx8MnpmyFq2 +XFNFV1pF1AWZLy4jVe5jaN/TG3inEpQGAHUNcoTpLrxaatXeL1nHo+zSh2bbt1S1 +JKv0Q3jbSwTEb93mPmY+KfJLaHEih6D4sTNjduMNhXJEIlU/HHzp/LgV6FL6qj6j +ITk1dImmasI5+njPtqzn59ZW/yOSLlALqbUHM/Q4X6RJpstlcHboCoWASzY9M/eV *** 84 LINES SKIPPED *** From nobody Tue Feb 13 20:36: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 4TZClx5l1Bz59jm1; Tue, 13 Feb 2024 20:36: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZClx5Qbnz4Q73; Tue, 13 Feb 2024 20:36:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707856589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qEbNmYFKiI0qlHkPrQ8A8DGGvXhK4b3MxaYQy2R7wiU=; b=V6w3qV5cgVn4fwAPvvBYgNxILYxYR9Tn7QVz/C7bZTa2cM5dSHX7aj5Omqa6zpjdCNo9Kk cUTFg2YacbTmptcxMqOmqJgnIc7HkIYZrbOd9Qi7Qw0+efg9xwf0pi8rqoe0JM8oFViPBT qFNMNatIGmxKdXWggyxuZ0tR2JpnzDRQaAGCLpn+aDswlwuD4idx4KQDT3KHmyuUtPe49N 1n9naJz/39PTV83hlzsn7hoH7TL0bQ+vrp+G7F7CJT3tOEwP2rQz3yOEr/gkHsl8WnRVUb w6IjIaDGTDUKerDnW7WYinbIh3pRoW2DvvKFO70katHkIc+wggBAzU1KpHV+Xg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707856589; a=rsa-sha256; cv=none; b=mMO0R8KZ6MMhT0K/9+CCpRA5ZQw+xv/4ihTcaxxVbTvy0xoywMy9XzgVoYXjREMMm2b9Ov ER84j+9BJN7Ov/9fTBvesDzAHHSJrIBPJcTFGwGpVpSw+7bwxlVwsC/iEJLLUhozhoQx0G CvHWLEjYeYJj3YGvgxi+T8OqN6r23JoVGAPT55WwJWxNu/MUIAoC1ebLXil9S85sKPUUjI 9iSeirQTUYwKM80nge0VnzNn/RoaWVRZy3zU5Um64HKnkeXN3cR2f45/eySXW6BcbnVCkE Xi/MnMJzcrerMirbGxAuOsKF142UsAVtEJ6qZewM1Kgs7jeMK7KhmPkzeHrY0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707856589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qEbNmYFKiI0qlHkPrQ8A8DGGvXhK4b3MxaYQy2R7wiU=; b=ygVvHWp+/Z9exsao4eHp/cVCqscLYlCXtb9wVtxbR+DPc/jCT8wXaKdr5hN63Bj621pK05 r05O9srnndWk/WqAQpg4gudUUtbdDDarj2lyo4cWioH6oUY3JE/Ni/TmBOrGLNs3XuPQwg qNnX2fH0WxQvCfiYi4lGnmzv+QRs7172ur4XsXpj/U09H+QhfyBOKlHV9jgRf/LMwHmavs 5XK9XB6Wvlm+CWy5CAJCEv5Xves2yBQ3go6wpkWHmLFfFRCTLyBDU0M9k52onI2bAkc1rX Npx2kfk+An9B/gWVji7P8JTu4qPXjXH2l0gJO1ZrSZWPPKQtAHkHIcst+5/4MQ== 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 4TZClx4W49zV3c; Tue, 13 Feb 2024 20:36:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DKaTLC025468; Tue, 13 Feb 2024 20:36:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DKaTwh025465; Tue, 13 Feb 2024 20:36:29 GMT (envelope-from git) Date: Tue, 13 Feb 2024 20:36:29 GMT Message-Id: <202402132036.41DKaTwh025465@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 46c599340f18 - main - Update tzcode to 2024a. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 46c599340f187db577b9212ab18022f3c7380c68 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=46c599340f187db577b9212ab18022f3c7380c68 commit 46c599340f187db577b9212ab18022f3c7380c68 Merge: b4b61ead7eab 378c74faf328 Author: Dag-Erling Smørgrav AuthorDate: 2024-02-13 20:20:44 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-02-13 20:31:41 +0000 Update tzcode to 2024a. MFC after: 3 weeks Sponsored by: Klara, Inc. contrib/tzcode/Makefile | 261 +++++++---- contrib/tzcode/NEWS | 193 +++++++- contrib/tzcode/README | 19 +- contrib/tzcode/date.1 | 14 +- contrib/tzcode/localtime.c | 128 +++--- contrib/tzcode/newctime.3 | 16 +- contrib/tzcode/newstrftime.3 | 152 ++++++- contrib/tzcode/newtzset.3 | 206 +++++---- contrib/tzcode/private.h | 44 +- contrib/tzcode/strftime.c | 7 +- contrib/tzcode/theory.html | 37 +- contrib/tzcode/tz-art.html | 419 ++++++++---------- contrib/tzcode/tz-link.html | 118 +++-- contrib/tzcode/tzdir.h | 6 + contrib/tzcode/tzfile.5 | 32 +- contrib/tzcode/tzfile.h | 14 +- contrib/tzcode/tzselect.8 | 2 +- contrib/tzcode/tzselect.ksh | 1006 +++++++++++++++++++++++------------------- contrib/tzcode/version | 2 +- contrib/tzcode/zdump.c | 2 +- contrib/tzcode/zic.8 | 35 +- contrib/tzcode/zic.c | 239 +++++----- lib/libc/gen/sysconf.c | 2 +- lib/libc/stdtime/strftime.c | 2 +- 24 files changed, 1767 insertions(+), 1189 deletions(-) diff --cc contrib/tzcode/Makefile index 0e56af89e2a4,000000000000..d48354c72df4 mode 100644,000000..100644 --- a/contrib/tzcode/Makefile +++ b/contrib/tzcode/Makefile @@@ -1,1250 -1,0 +1,1361 @@@ +# Make and install tzdb code and data. - +# This file is in the public domain, so clarified as of +# 2009-05-17 by Arthur David Olson. ++# Request POSIX conformance; this must be the first non-comment line. ++.POSIX: ++# On older platforms you may need to scrounge for a POSIX-conforming 'make'. ++# For example, on Solaris 10 (2005), use /usr/sfw/bin/gmake or ++# /usr/xpg4/bin/make, not /usr/ccs/bin/make. ++ ++# To affect how this Makefile works, you can run a shell script like this: ++# ++# #!/bin/sh ++# make CC='gcc -std=gnu11' "$@" ++# ++# This example script is appropriate for a pre-2017 GNU/Linux system ++# where a non-default setting is needed to support this package's use of C99. ++# ++# Alternatively, you can simply edit this Makefile to tailor the following ++# macro definitions. ++ ++############################################################################### ++# Start of macros that one plausibly might want to tailor. + +# Package name for the code distribution. +PACKAGE= tzcode + +# Version number for the distribution, overridden in the 'tarballs' rule below. +VERSION= unknown + +# Email address for bug reports. +BUGEMAIL= tz@iana.org + +# DATAFORM selects the data format. +# Available formats represent essentially the same data, albeit +# possibly with minor discrepancies that users are not likely to notice. +# To get new features and the best data right away, use: +# DATAFORM= vanguard +# To wait a while before using new features, to give downstream users +# time to upgrade zic (the default), use: +# DATAFORM= main +# To wait even longer for new features, use: +# DATAFORM= rearguard +# Rearguard users might also want "ZFLAGS = -b fat"; see below. +DATAFORM= main + +# Change the line below for your timezone (after finding the one you want in +# one of the $(TDATA) source files, or adding it to a source file). +# Alternatively, if you discover you've got the wrong timezone, you can just +# 'zic -l -' to remove it, or 'zic -l rightzone' to change it. +# Use the command +# make zonenames +# to get a list of the values you can use for LOCALTIME. + +LOCALTIME= Factory + - # The POSIXRULES macro controls interpretation of POSIX-like TZ ++# The POSIXRULES macro controls interpretation of POSIX-2017.1-like TZ +# settings like TZ='EET-2EEST' that lack DST transition rules. +# If POSIXRULES is '-', no template is installed; this is the default. +# Any other value for POSIXRULES is obsolete and should not be relied on, as: +# * It does not work correctly in popular implementations such as GNU/Linux. +# * It does not work even in tzcode, except for historical timestamps +# that precede the last explicit transition in the POSIXRULES file. +# Hence it typically does not work for current and future timestamps. +# If, despite the above, you want a template for handling these settings, +# you can change the line below (after finding the timezone you want in the +# one of the $(TDATA) source files, or adding it to a source file). +# Alternatively, if you discover you've got the wrong timezone, you can just +# 'zic -p -' to remove it, or 'zic -p rightzone' to change it. +# Use the command +# make zonenames +# to get a list of the values you can use for POSIXRULES. + +POSIXRULES= - + +# Also see TZDEFRULESTRING below, which takes effect only +# if POSIXRULES is '-' or if the template file cannot be accessed. + + +# Installation locations. +# +# The defaults are suitable for Debian, except that if REDO is +# posix_right or right_posix then files that Debian puts under +# /usr/share/zoneinfo/posix and /usr/share/zoneinfo/right are instead +# put under /usr/share/zoneinfo-posix and /usr/share/zoneinfo-leaps, +# respectively. Problems with the Debian approach are discussed in +# the commentary for the right_posix rule (below). + +# Destination directory, which can be used for staging. +# 'make DESTDIR=/stage install' installs under /stage (e.g., to +# /stage/etc/localtime instead of to /etc/localtime). Files under +# /stage are not intended to work as-is, but can be copied by hand to +# the root directory later. If DESTDIR is empty, 'make install' does +# not stage, but installs directly into production locations. +DESTDIR = + +# Everything is installed into subdirectories of TOPDIR, and used there. +# TOPDIR should be empty (meaning the root directory), +# or a directory name that does not end in "/". +# TOPDIR should be empty or an absolute name unless you're just testing. +TOPDIR = + +# The default local timezone is taken from the file TZDEFAULT. +TZDEFAULT = $(TOPDIR)/etc/localtime + +# The subdirectory containing installed program and data files, and +# likewise for installed files that can be shared among architectures. +# These should be relative file names. +USRDIR = usr +USRSHAREDIR = $(USRDIR)/share + +# "Compiled" timezone information is placed in the "TZDIR" directory +# (and subdirectories). +# TZDIR_BASENAME should not contain "/" and should not be ".", ".." or empty. +TZDIR_BASENAME= zoneinfo +TZDIR = $(TOPDIR)/$(USRSHAREDIR)/$(TZDIR_BASENAME) + +# The "tzselect" and (if you do "make INSTALL") "date" commands go in: +BINDIR = $(TOPDIR)/$(USRDIR)/bin + +# The "zdump" command goes in: +ZDUMPDIR = $(BINDIR) + +# The "zic" command goes in: +ZICDIR = $(TOPDIR)/$(USRDIR)/sbin + +# Manual pages go in subdirectories of. . . +MANDIR = $(TOPDIR)/$(USRSHAREDIR)/man + +# Library functions are put in an archive in LIBDIR. +LIBDIR = $(TOPDIR)/$(USRDIR)/lib + + +# Types to try, as an alternative to time_t. +TIME_T_ALTERNATIVES = $(TIME_T_ALTERNATIVES_HEAD) $(TIME_T_ALTERNATIVES_TAIL) +TIME_T_ALTERNATIVES_HEAD = int_least64_t +TIME_T_ALTERNATIVES_TAIL = int_least32_t uint_least32_t uint_least64_t + +# What kind of TZif data files to generate. (TZif is the binary time +# zone data format that zic generates; see Internet RFC 8536.) +# If you want only POSIX time, with time values interpreted as +# seconds since the epoch (not counting leap seconds), use +# REDO= posix_only +# below. If you want only "right" time, with values interpreted +# as seconds since the epoch (counting leap seconds), use +# REDO= right_only +# below. If you want both sets of data available, with leap seconds not +# counted normally, use +# REDO= posix_right +# below. If you want both sets of data available, with leap seconds counted +# normally, use +# REDO= right_posix +# below. POSIX mandates that leap seconds not be counted; for compatibility +# with it, use "posix_only" or "posix_right". Use POSIX time on systems with +# leap smearing; this can work better than unsmeared "right" time with +# applications that are not leap second aware, and is closer to unsmeared +# "right" time than unsmeared POSIX time is (e.g., 0.5 vs 1.0 s max error). + +REDO= posix_right + +# Whether to put an "Expires" line in the leapseconds file. +# Use EXPIRES_LINE=1 to put the line in, 0 to omit it. +# The EXPIRES_LINE value matters only if REDO's value contains "right". +# If you change EXPIRES_LINE, remove the leapseconds file before running "make". +# zic's support for the Expires line was introduced in tzdb 2020a, +# and was modified in tzdb 2021b to generate version 4 TZif files. +# EXPIRES_LINE defaults to 0 for now so that the leapseconds file +# can be given to pre-2020a zic implementations and so that TZif files +# built by newer zic implementations can be read by pre-2021b libraries. +EXPIRES_LINE= 0 + +# To install data in text form that has all the information of the TZif data, +# (optionally incorporating leap second information), use +# TZDATA_TEXT= tzdata.zi leapseconds +# To install text data without leap second information (e.g., because +# REDO='posix_only'), use +# TZDATA_TEXT= tzdata.zi +# To avoid installing text data, use +# TZDATA_TEXT= + +TZDATA_TEXT= leapseconds tzdata.zi + +# For backward-compatibility links for old zone names, use +# BACKWARD= backward +# To omit these links, use +# BACKWARD= + +BACKWARD= backward + +# If you want out-of-scope and often-wrong data from the file 'backzone', +# but only for entries listed in the backward-compatibility file zone.tab, use +# PACKRATDATA= backzone +# PACKRATLIST= zone.tab +# If you want all the 'backzone' data, use +# PACKRATDATA= backzone +# PACKRATLIST= +# To omit this data, use +# PACKRATDATA= +# PACKRATLIST= + +PACKRATDATA= +PACKRATLIST= + +# The name of a locale using the UTF-8 encoding, used during self-tests. +# The tests are skipped if the name does not appear to work on this system. + +UTF8_LOCALE= en_US.utf8 + +# Non-default libraries needed to link. +# On some hosts, this should have -lintl unless CFLAGS has -DHAVE_GETTEXT=0. +LDLIBS= + - # Add the following to the end of the "CFLAGS=" line as needed to override - # defaults specified in the source code. "-DFOO" is equivalent to "-DFOO=1". ++# Add the following to an uncommented "CFLAGS=" line as needed ++# to override defaults specified in the source code or by the system. ++# "-DFOO" is equivalent to "-DFOO=1". +# -DDEPRECATE_TWO_DIGIT_YEARS for optional runtime warnings about strftime +# formats that generate only the last two digits of year numbers +# -DEPOCH_LOCAL if the 'time' function returns local time not UT +# -DEPOCH_OFFSET=N if the 'time' function returns a value N greater +# than what POSIX specifies, assuming local time is UT. +# For example, N is 252460800 on AmigaOS. +# -DHAVE_DECL_ASCTIME_R=0 if does not declare asctime_r +# -DHAVE_DECL_ENVIRON if declares 'environ' +# -DHAVE_DECL_TIMEGM=0 if does not declare timegm +# -DHAVE_DIRECT_H if mkdir needs (MS-Windows) +# -DHAVE__GENERIC=0 if _Generic does not work* +# -DHAVE_GETRANDOM if getrandom works (e.g., GNU/Linux), +# -DHAVE_GETRANDOM=0 to avoid using getrandom +# -DHAVE_GETTEXT if gettext works (e.g., GNU/Linux, FreeBSD, Solaris), +# where LDLIBS also needs to contain -lintl on some hosts; +# -DHAVE_GETTEXT=0 to avoid using gettext +# -DHAVE_INCOMPATIBLE_CTIME_R if your system's time.h declares +# ctime_r and asctime_r incompatibly with the POSIX standard +# (Solaris when _POSIX_PTHREAD_SEMANTICS is not defined). +# -DHAVE_INTTYPES_H=0 if does not work*+ +# -DHAVE_LINK=0 if your system lacks a link function +# -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function +# -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz +# localtime_rz can make zdump significantly faster, but is nonstandard. +# -DHAVE_MALLOC_ERRNO=0 if malloc etc. do not set errno on failure. +# -DHAVE_POSIX_DECLS=0 if your system's include files do not declare +# functions like 'link' or variables like 'tzname' required by POSIX +# -DHAVE_SETENV=0 if your system lacks the setenv function +# -DHAVE_SNPRINTF=0 if your system lacks the snprintf function+ +# -DHAVE_STDCKDINT_H=0 if neither nor substitutes like +# __builtin_add_overflow work* +# -DHAVE_STDINT_H=0 if does not work*+ +# -DHAVE_STRFTIME_L if declares locale_t and strftime_l +# -DHAVE_STRDUP=0 if your system lacks the strdup function +# -DHAVE_STRTOLL=0 if your system lacks the strtoll function+ +# -DHAVE_SYMLINK=0 if your system lacks the symlink function +# -DHAVE_SYS_STAT_H=0 if does not work* +# -DHAVE_TZSET=0 if your system lacks a tzset function +# -DHAVE_UNISTD_H=0 if does not work* +# -DHAVE_UTMPX_H=0 if does not work* +# -Dlocale_t=XXX if your system uses XXX instead of locale_t - # -DPORT_TO_C89 if tzcode should also run on C89 platforms+ ++# -DPORT_TO_C89 if tzcode should also run on mostly-C89 platforms+ ++# Typically it is better to use a later standard. For example, ++# with GCC 4.9.4 (2016), prefer '-std=gnu11' to '-DPORT_TO_C89'. ++# Even with -DPORT_TO_C89, the code needs at least one C99 ++# feature (integers at least 64 bits wide) and maybe more. +# -DRESERVE_STD_EXT_IDS if your platform reserves standard identifiers +# with external linkage, e.g., applications cannot define 'localtime'. +# -Dssize_t=long on hosts like MS-Windows that lack ssize_t +# -DSUPPORT_C89 if the tzcode library should support C89 callers+ ++# However, this might trigger latent bugs in C99-or-later callers. +# -DSUPPRESS_TZDIR to not prepend TZDIR to file names; this has +# security implications and is not recommended for general use +# -DTHREAD_SAFE to make localtime.c thread-safe, as POSIX requires; +# not needed by the main-program tz code, which is single-threaded. +# Append other compiler flags as needed, e.g., -pthread on GNU/Linux. +# -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t +# This is intended for internal use only; it mangles external names. +# -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz" +# -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory; +# the default is system-supplied, typically "/usr/lib/locale" +# -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified - # DST transitions for POSIX-style TZ strings lacking them, ++# DST transitions for POSIX.1-2017-style TZ strings lacking them, +# in the usual case where POSIXRULES is '-'. If not specified, +# TZDEFRULESTRING defaults to US rules for future DST transitions. +# This mishandles some past timestamps, as US DST rules have changed. +# It also mishandles settings like TZ='EET-2EEST' for eastern Europe, +# as Europe and US DST rules differ. +# -DTZNAME_MAXIMUM=N to limit time zone abbreviations to N bytes (default 255) +# -DUNINIT_TRAP if reading uninitialized storage can cause problems +# other than simply getting garbage data +# -DUSE_LTZ=0 to build zdump with the system time zone library +# Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below. +# -DZIC_BLOAT_DEFAULT=\"fat\" to default zic's -b option to "fat", and +# similarly for "slim". Fat TZif files work around incompatibilities +# and bugs in some TZif readers, notably older ones that +# ignore or otherwise mishandle 64-bit data in TZif files; +# however, fat TZif files may trigger bugs in newer TZif readers. +# Slim TZif files are more efficient, and are the default. +# -DZIC_MAX_ABBR_LEN_WO_WARN=3 +# (or some other number) to set the maximum time zone abbreviation length +# that zic will accept without a warning (the default is 6) ++# -g to generate symbolic debugging info ++# -Idir to include from directory 'dir' ++# -O0 to disable optimization; other -O options to enable more optimization ++# -Uname to remove any definition of the macro 'name' +# $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking +# +# * Options marked "*" can be omitted if your compiler is C23 compatible. +# * Options marked "+" are obsolescent and are planned to be removed - # once the code assumes C99 or later. ++# once the code assumes C99 or later, say in the year 2029. +# +# Select instrumentation via "make GCC_INSTRUMENT='whatever'". +GCC_INSTRUMENT = \ + -fsanitize=undefined -fsanitize-address-use-after-scope \ + -fsanitize-undefined-trap-on-error -fstack-protector +# Omit -fanalyzer from GCC_DEBUG_FLAGS, as it makes GCC too slow. +GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ + $(GCC_INSTRUMENT) \ + -Wall -Wextra \ + -Walloc-size-larger-than=100000 -Warray-bounds=2 \ + -Wbad-function-cast -Wbidi-chars=any,ucn -Wcast-align=strict -Wdate-time \ + -Wdeclaration-after-statement -Wdouble-promotion \ + -Wduplicated-branches -Wduplicated-cond \ + -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation \ + -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op \ + -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ + -Wnull-dereference \ + -Wold-style-definition -Woverlength-strings -Wpointer-arith \ + -Wshadow -Wshift-overflow=2 -Wstrict-overflow \ + -Wstrict-prototypes -Wstringop-overflow=4 \ + -Wstringop-truncation -Wsuggest-attribute=cold \ + -Wsuggest-attribute=const -Wsuggest-attribute=format \ + -Wsuggest-attribute=malloc \ + -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure \ + -Wtrampolines -Wundef -Wuninitialized -Wunused-macros -Wuse-after-free=3 \ + -Wvariadic-macros -Wvla -Wwrite-strings \ + -Wno-address -Wno-format-nonliteral -Wno-sign-compare \ + -Wno-type-limits +# +# If your system has a "GMT offset" field in its "struct tm"s +# (or if you decide to add such a field in your system's "time.h" file), +# add the name to a define such as +# -DTM_GMTOFF=tm_gmtoff +# to the end of the "CFLAGS=" line. If not defined, the code attempts to +# guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this. +# Similarly, if your system has a "zone abbreviation" field, define +# -DTM_ZONE=tm_zone - # and define NO_TM_ZONE to suppress any guessing. Although these two fields - # not required by POSIX, a future version of POSIX is planned to require them - # and they are widely available on GNU/Linux and BSD systems. ++# and define NO_TM_ZONE to suppress any guessing. ++# Although these two fields are not required by POSIX.1-2017, ++# POSIX 202x/D4 requires them and they are widely available ++# on GNU/Linux and BSD systems. +# +# The next batch of options control support for external variables +# exported by tzcode. In practice these variables are less useful +# than TM_GMTOFF and TM_ZONE. However, most of them are standardized. +# # +# # To omit or support the external variable "tzname", add one of: +# # -DHAVE_TZNAME=0 # do not support "tzname" +# # -DHAVE_TZNAME=1 # support "tzname", which is defined by system library +# # -DHAVE_TZNAME=2 # support and define "tzname" - # # to the "CFLAGS=" line. "tzname" is required by POSIX 1988 and later. ++# # to the "CFLAGS=" line. "tzname" is required by POSIX.1-1988 and later. +# # If not defined, the code attempts to guess HAVE_TZNAME from other macros. +# # Warning: unless time_tz is also defined, HAVE_TZNAME=1 can cause +# # crashes when combined with some platforms' standard libraries, +# # presumably due to memory allocation issues. +# # +# # To omit or support the external variables "timezone" and "daylight", add +# # -DUSG_COMPAT=0 # do not support +# # -DUSG_COMPAT=1 # support, and variables are defined by system library +# # -DUSG_COMPAT=2 # support and define variables - # # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by - # # Unix Systems Group code and are required by POSIX 2008 (with XSI) and later. ++# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by Unix ++# # Systems Group code and are required by POSIX.1-2008 and later (with XSI). +# # If not defined, the code attempts to guess USG_COMPAT from other macros. +# # +# # To support the external variable "altzone", add +# # -DALTZONE=0 # do not support +# # -DALTZONE=1 # support "altzone", which is defined by system library +# # -DALTZONE=2 # support and define "altzone" +# # to the end of the "CFLAGS=" line; although "altzone" appeared in +# # System V Release 3.1 it has not been standardized. +# # If not defined, the code attempts to guess ALTZONE from other macros. +# +# If you want functions that were inspired by early versions of X3J11's work, +# add +# -DSTD_INSPIRED +# to the end of the "CFLAGS=" line. This arranges for the following +# functions to be added to the time conversion library. +# "offtime" is like "gmtime" except that it accepts a second (long) argument +# that gives an offset to add to the time_t when converting it. - # "offtime_r" is to "offtime" what "gmtime_r" is to "gmtime". - # "timelocal" is equivalent to "mktime". ++# I.e., "offtime" is like calling "localtime_rz" with a fixed-offset zone. ++# "timelocal" is nearly equivalent to "mktime". +# "timeoff" is like "timegm" except that it accepts a second (long) argument +# that gives an offset to use when converting to a time_t. ++# I.e., "timeoff" is like calling "mktime_z" with a fixed-offset zone. +# "posix2time" and "time2posix" are described in an included manual page. +# X3J11's work does not describe any of these functions. +# These functions may well disappear in future releases of the time +# conversion package. +# +# If you don't want functions that were inspired by NetBSD, add +# -DNETBSD_INSPIRED=0 +# to the end of the "CFLAGS=" line. Otherwise, the functions +# "localtime_rz", "mktime_z", "tzalloc", and "tzfree" are added to the +# time library, and if STD_INSPIRED is also defined to nonzero the functions +# "posix2time_z" and "time2posix_z" are added as well. +# The functions ending in "_z" (or "_rz") are like their unsuffixed +# (or suffixed-by-"_r") counterparts, except with an extra first +# argument of opaque type timezone_t that specifies the timezone. +# "tzalloc" allocates a timezone_t value, and "tzfree" frees it. +# +# If you want to allocate state structures in localtime, add +# -DALL_STATE +# to the end of the "CFLAGS=" line. Storage is obtained by calling malloc. +# +# NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put +# out by the National Institute of Standards and Technology - # which claims to test C and Posix conformance. If you want to pass PCTS, add ++# which claims to test C and POSIX conformance. If you want to pass PCTS, add +# -DPCTS +# to the end of the "CFLAGS=" line. +# +# If you want strict compliance with XPG4 as of 1994-04-09, add +# -DXPG4_1994_04_09 +# to the end of the "CFLAGS=" line. This causes "strftime" to always return +# 53 as a week number (rather than 52 or 53) for January days before +# January's first Monday when a "%V" format is used and January 1 +# falls on a Friday, Saturday, or Sunday. ++# ++# POSIX says CFLAGS defaults to "-O 1". ++# Uncomment the following line and edit its contents as needed. + - CFLAGS= ++#CFLAGS= -O 1 + - # Linker flags. Default to $(LFLAGS) for backwards compatibility - # to release 2012h and earlier. + - LDFLAGS= $(LFLAGS) ++# The name of a POSIX-like library archiver, its flags, C compiler, ++# linker flags, and 'make' utility. Ordinarily the defaults suffice. ++# The commented-out values are the defaults specified by POSIX.1-202x/D4. ++#AR = ar ++#ARFLAGS = -rv ++#CC = c17 ++#LDFLAGS = ++#MAKE = make + +# For leap seconds, this Makefile uses LEAPSECONDS='-L leapseconds' in +# submake command lines. The default is no leap seconds. + +LEAPSECONDS= + ++# Where to fetch leap-seconds.list from. ++leaplist_URI = \ ++ https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list ++# The file is generated by the IERS Earth Orientation Centre, in Paris. ++leaplist_TZ = Europe/Paris ++ +# The zic command and its arguments. + +zic= ./zic +ZIC= $(zic) $(ZFLAGS) + +# To shrink the size of installed TZif files, +# append "-r @N" to omit data before N-seconds-after-the-Epoch. +# To grow the files and work around bugs in older applications, +# possibly at the expense of introducing bugs in newer ones, +# append "-b fat"; see ZIC_BLOAT_DEFAULT above. +# See the zic man page for more about -b and -r. +ZFLAGS= + +# How to use zic to install TZif files. + +ZIC_INSTALL= $(ZIC) -d '$(DESTDIR)$(TZDIR)' $(LEAPSECONDS) + - # The name of a Posix-compliant 'awk' on your system. ++# The name of a POSIX-compliant 'awk' on your system. +# mawk 1.3.3 and Solaris 10 /usr/bin/awk do not work. +# Also, it is better (though not essential) if 'awk' supports UTF-8, +# and unfortunately mawk and busybox awk do not support UTF-8. +# Try AWK=gawk or AWK=nawk if your awk has the abovementioned problems. +AWK= awk + - # The full path name of a Posix-compliant shell, preferably one that supports ++# The full path name of a POSIX-compliant shell, preferably one that supports +# the Korn shell's 'select' statement as an extension. +# These days, Bash is the most popular. +# It should be OK to set this to /bin/sh, on platforms where /bin/sh - # lacks 'select' or doesn't completely conform to Posix, but /bin/bash ++# lacks 'select' or doesn't completely conform to POSIX, but /bin/bash +# is typically nicer if it works. +KSHELL= /bin/bash + - # Name of curl , used for HTML validation. ++# Name of curl , used for HTML validation ++# and to fetch leap-seconds.list from upstream. +CURL= curl + +# Name of GNU Privacy Guard , used to sign distributions. +GPG= gpg + +# This expensive test requires USE_LTZ. +# To suppress it, define this macro to be empty. +CHECK_TIME_T_ALTERNATIVES = check_time_t_alternatives + +# SAFE_CHAR is a regular expression that matches a safe character. +# Some parts of this distribution are limited to safe characters; +# others can use any UTF-8 character. +# For now, the safe characters are a safe subset of ASCII. +# The caller must set the shell variable 'sharp' to the character '#', +# since Makefile macros cannot contain '#'. +# TAB_CHAR is a single tab character, in single quotes. +TAB_CHAR= ' ' +SAFE_CHARSET1= $(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@' +SAFE_CHARSET2= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`' +SAFE_CHARSET3= 'abcdefghijklmnopqrstuvwxyz{|}~' +SAFE_CHARSET= $(SAFE_CHARSET1)$(SAFE_CHARSET2)$(SAFE_CHARSET3) +SAFE_CHAR= '[]'$(SAFE_CHARSET)'-]' + +# These non-alphabetic, non-ASCII printable characters are Latin-1, +# and so are likely displayable even in editors like XEmacs 21 +# that have limited display capabilities. +UNUSUAL_OK_LATIN_1 = ¡¢£¤¥¦§¨©«¬®¯°±²³´¶·¸¹»¼½¾¿×÷ +# Non-ASCII non-letters that OK_CHAR allows, as these characters are +# useful in commentary. +UNUSUAL_OK_CHARSET= $(UNUSUAL_OK_LATIN_1) + +# Put this in a bracket expression to match spaces. +s = [:space:] + +# OK_CHAR matches any character allowed in the distributed files. +# This is the same as SAFE_CHAR, except that UNUSUAL_OK_CHARSET and +# multibyte letters are also allowed so that commentary can contain a +# few safe symbols and people's names and can quote non-English sources. +# Other non-letters are limited to ASCII renderings for the +# convenience of maintainers using XEmacs 21.5.34, which by default +# mishandles Unicode characters U+0100 and greater. +OK_CHAR= '[][:alpha:]$(UNUSUAL_OK_CHARSET)'$(SAFE_CHARSET)'-]' + +# SAFE_LINE matches a line of safe characters. +# SAFE_SHARP_LINE is similar, except any OK character can follow '#'; +# this is so that comments can contain non-ASCII characters. +# OK_LINE matches a line of OK characters. +SAFE_LINE= '^'$(SAFE_CHAR)'*$$' +SAFE_SHARP_LINE='^'$(SAFE_CHAR)'*('$$sharp$(OK_CHAR)'*)?$$' +OK_LINE= '^'$(OK_CHAR)'*$$' + +# Flags to give 'tar' when making a distribution. +# Try to use flags appropriate for GNU tar. +GNUTARFLAGS= --format=pax --pax-option='delete=atime,delete=ctime' \ + --numeric-owner --owner=0 --group=0 \ + --mode=go+u,go-w --sort=name +TARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \ + then echo $(GNUTARFLAGS); \ + else :; \ + fi` + +# Flags to give 'gzip' when making a distribution. +GZIPFLAGS= -9n + +# When comparing .tzs files, use GNU diff's -F'^TZ=' option if supported. +# This makes it easier to see which Zone has been affected. +DIFF_TZS= diff -u$$(! diff -u -F'^TZ=' - - <>/dev/null >&0 2>&1 \ + || echo ' -F^TZ=') + - ############################################################################### - - #MAKE= make ++# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib. ++RANLIB= : + - cc= cc - CC= $(cc) -DTZDIR='"$(TZDIR)"' ++# POSIX prohibits defining or using SHELL. However, csh users on systems ++# that use the user shell for Makefile commands may need to define SHELL. ++#SHELL= /bin/sh + - AR= ar ++# End of macros that one plausibly might want to tailor. ++############################################################################### + - # ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib. - RANLIB= : + +TZCOBJS= zic.o +TZDOBJS= zdump.o localtime.o asctime.o strftime.o +DATEOBJS= date.o localtime.o strftime.o asctime.o +LIBSRCS= localtime.c asctime.c difftime.c strftime.c +LIBOBJS= localtime.o asctime.o difftime.o strftime.o +HEADERS= tzfile.h private.h +NONLIBSRCS= zic.c zdump.c +NEWUCBSRCS= date.c +SOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \ + tzselect.ksh workman.sh +MANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \ + tzfile.5 tzselect.8 zic.8 zdump.8 +MANTXTS= newctime.3.txt newstrftime.3.txt newtzset.3.txt \ + time2posix.3.txt \ + tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \ + date.1.txt +COMMON= calendars CONTRIBUTING LICENSE Makefile \ + NEWS README SECURITY theory.html version +WEB_PAGES= tz-art.html tz-how-to.html tz-link.html +CHECK_WEB_PAGES=check_theory.html check_tz-art.html \ + check_tz-how-to.html check_tz-link.html +DOCS= $(MANS) date.1 $(MANTXTS) $(WEB_PAGES) +PRIMARY_YDATA= africa antarctica asia australasia \ + europe northamerica southamerica +YDATA= $(PRIMARY_YDATA) etcetera +NDATA= factory +TDATA_TO_CHECK= $(YDATA) $(NDATA) backward +TDATA= $(YDATA) $(NDATA) $(BACKWARD) - ZONETABLES= zone1970.tab zone.tab ++ZONETABLES= zone.tab zone1970.tab zonenow.tab +TABDATA= iso3166.tab $(TZDATA_TEXT) $(ZONETABLES) +LEAP_DEPS= leapseconds.awk leap-seconds.list +TZDATA_ZI_DEPS= ziguard.awk zishrink.awk version $(TDATA) \ + $(PACKRATDATA) $(PACKRATLIST) +DSTDATA_ZI_DEPS= ziguard.awk $(TDATA) $(PACKRATDATA) $(PACKRATLIST) +DATA= $(TDATA_TO_CHECK) backzone iso3166.tab leap-seconds.list \ + leapseconds $(ZONETABLES) - AWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk \ ++AWK_SCRIPTS= checklinks.awk checknow.awk checktab.awk leapseconds.awk \ + ziguard.awk zishrink.awk +MISC= $(AWK_SCRIPTS) +TZS_YEAR= 2050 +TZS_CUTOFF_FLAG= -c $(TZS_YEAR) +TZS= to$(TZS_YEAR).tzs +TZS_NEW= to$(TZS_YEAR)new.tzs +TZS_DEPS= $(YDATA) asctime.c localtime.c \ + private.h tzfile.h zdump.c zic.c +TZDATA_DIST = $(COMMON) $(DATA) $(MISC) +# EIGHT_YARDS is just a yard short of the whole ENCHILADA. +EIGHT_YARDS = $(TZDATA_DIST) $(DOCS) $(SOURCES) tzdata.zi +ENCHILADA = $(EIGHT_YARDS) $(TZS) + +# Consult these files when deciding whether to rebuild the 'version' file. +# This list is not the same as the output of 'git ls-files', since +# .gitignore is not distributed. +VERSION_DEPS= \ + calendars CONTRIBUTING LICENSE Makefile NEWS README SECURITY \ + africa antarctica asctime.c asia australasia \ + backward backzone \ - checklinks.awk checktab.awk \ ++ checklinks.awk checknow.awk checktab.awk \ + date.1 date.c difftime.c \ + etcetera europe factory iso3166.tab \ + leap-seconds.list leapseconds.awk localtime.c \ + newctime.3 newstrftime.3 newtzset.3 northamerica \ + private.h southamerica strftime.c theory.html \ + time2posix.3 tz-art.html tz-how-to.html tz-link.html \ + tzfile.5 tzfile.h tzselect.8 tzselect.ksh \ + workman.sh zdump.8 zdump.c zic.8 zic.c \ + ziguard.awk zishrink.awk \ - zone.tab zone1970.tab - - # And for the benefit of csh users on systems that assume the user - # shell should be used to handle commands in Makefiles. . . - - SHELL= /bin/sh ++ zone.tab zone1970.tab zonenow.tab + +all: tzselect zic zdump libtz.a $(TABDATA) \ + vanguard.zi main.zi rearguard.zi + +ALL: all date $(ENCHILADA) + +install: all $(DATA) $(REDO) $(MANS) + mkdir -p '$(DESTDIR)$(BINDIR)' \ + '$(DESTDIR)$(ZDUMPDIR)' '$(DESTDIR)$(ZICDIR)' \ + '$(DESTDIR)$(LIBDIR)' \ + '$(DESTDIR)$(MANDIR)/man3' '$(DESTDIR)$(MANDIR)/man5' \ + '$(DESTDIR)$(MANDIR)/man8' + $(ZIC_INSTALL) -l $(LOCALTIME) \ + `case '$(POSIXRULES)' in ?*) echo '-p';; esac \ + ` $(POSIXRULES) \ + -t '$(DESTDIR)$(TZDEFAULT)' + cp -f $(TABDATA) '$(DESTDIR)$(TZDIR)/.' + cp tzselect '$(DESTDIR)$(BINDIR)/.' + cp zdump '$(DESTDIR)$(ZDUMPDIR)/.' + cp zic '$(DESTDIR)$(ZICDIR)/.' + cp libtz.a '$(DESTDIR)$(LIBDIR)/.' + $(RANLIB) '$(DESTDIR)$(LIBDIR)/libtz.a' + cp -f newctime.3 newtzset.3 '$(DESTDIR)$(MANDIR)/man3/.' + cp -f tzfile.5 '$(DESTDIR)$(MANDIR)/man5/.' + cp -f tzselect.8 zdump.8 zic.8 '$(DESTDIR)$(MANDIR)/man8/.' + +INSTALL: ALL install date.1 + mkdir -p '$(DESTDIR)$(BINDIR)' '$(DESTDIR)$(MANDIR)/man1' + cp date '$(DESTDIR)$(BINDIR)/.' + cp -f date.1 '$(DESTDIR)$(MANDIR)/man1/.' + +# Calculate version number from git, if available. +# Otherwise, use $(VERSION) unless it is "unknown" and there is already +# a 'version' file, in which case reuse the existing 'version' contents +# and append "-dirty" if the contents do not already end in "-dirty". +version: $(VERSION_DEPS) + { (type git) >/dev/null 2>&1 && \ + V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \ + --abbrev=7 --dirty` || \ + if test '$(VERSION)' = unknown && V=`cat $@`; then \ + case $$V in *-dirty);; *) V=$$V-dirty;; esac; \ + else \ + V='$(VERSION)'; \ + fi; } && \ + printf '%s\n' "$$V" >$@.out + mv $@.out $@ + +# These files can be tailored by setting BACKWARD, PACKRATDATA, PACKRATLIST. +vanguard.zi main.zi rearguard.zi: $(DSTDATA_ZI_DEPS) + $(AWK) \ + -v DATAFORM=`expr $@ : '\(.*\).zi'` \ + -v PACKRATDATA='$(PACKRATDATA)' \ + -v PACKRATLIST='$(PACKRATLIST)' \ + -f ziguard.awk \ + $(TDATA) $(PACKRATDATA) >$@.out + mv $@.out $@ +# This file has a version comment that attempts to capture any tailoring +# via BACKWARD, DATAFORM, PACKRATDATA, PACKRATLIST, and REDO. +tzdata.zi: $(DATAFORM).zi version zishrink.awk + version=`sed 1q version` && \ + LC_ALL=C $(AWK) \ + -v dataform='$(DATAFORM)' \ + -v deps='$(DSTDATA_ZI_DEPS) zishrink.awk' \ + -v redo='$(REDO)' \ + -v version="$$version" \ + -f zishrink.awk \ + $(DATAFORM).zi >$@.out + mv $@.out $@ + ++tzdir.h: ++ printf '%s\n' >$@.out \ ++ '#ifndef TZDEFAULT' \ ++ '# define TZDEFAULT "$(TZDEFAULT)" /* default zone */' \ ++ '#endif' \ ++ '#ifndef TZDIR' \ ++ '# define TZDIR "$(TZDIR)" /* TZif directory */' \ ++ '#endif' ++ mv $@.out $@ ++ +version.h: version + VERSION=`cat version` && printf '%s\n' \ + 'static char const PKGVERSION[]="($(PACKAGE)) ";' \ + "static char const TZVERSION[]=\"$$VERSION\";" \ + 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";' \ + >$@.out + mv $@.out $@ + +zdump: $(TZDOBJS) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) + +zic: $(TZCOBJS) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) + +leapseconds: $(LEAP_DEPS) + $(AWK) -v EXPIRES_LINE=$(EXPIRES_LINE) \ + -f leapseconds.awk leap-seconds.list >$@.out + mv $@.out $@ + ++# Awk script to extract a Git-style author from leap-seconds.list comments. ++EXTRACT_AUTHOR = \ ++ author_line { sub(/^.[[:space:]]*/, ""); \ ++ sub(/:[[:space:]]*/, " <"); \ ++ printf "%s>\n", $$0; \ ++ success = 1; \ ++ exit \ ++ } \ ++ /Questions or comments to:/ { author_line = 1 } \ ++ END { exit !success } ++ ++# Fetch leap-seconds.list from upstream. ++fetch-leap-seconds.list: ++ $(CURL) -OR $(leaplist_URI) ++ ++# Fetch leap-seconds.list from upstream and commit it to the local repository. ++commit-leap-seconds.list: fetch-leap-seconds.list ++ author=$$($(AWK) '$(EXTRACT_AUTHOR)' leap-seconds.list) && \ ++ date=$$(TZ=$(leaplist_TZ) stat -c%y leap-seconds.list) && \ ++ git commit --author="$$author" --date="$$date" -m'make $@' \ ++ leap-seconds.list ++ +# Arguments to pass to submakes of install_data. +# They can be overridden by later submake arguments. +INSTALLARGS = \ + BACKWARD='$(BACKWARD)' \ + DESTDIR='$(DESTDIR)' \ + LEAPSECONDS='$(LEAPSECONDS)' \ + PACKRATDATA='$(PACKRATDATA)' \ + PACKRATLIST='$(PACKRATLIST)' \ + TZDEFAULT='$(TZDEFAULT)' \ + TZDIR='$(TZDIR)' \ + ZIC='$(ZIC)' + +INSTALL_DATA_DEPS = zic leapseconds tzdata.zi + +# 'make install_data' installs one set of TZif files. +install_data: $(INSTALL_DATA_DEPS) + $(ZIC_INSTALL) tzdata.zi + +posix_only: $(INSTALL_DATA_DEPS) + $(MAKE) $(INSTALLARGS) LEAPSECONDS= install_data + +right_only: $(INSTALL_DATA_DEPS) + $(MAKE) $(INSTALLARGS) LEAPSECONDS='-L leapseconds' \ + install_data + +# In earlier versions of this makefile, the other two directories were +# subdirectories of $(TZDIR). However, this led to configuration errors. +# For example, with posix_right under the earlier scheme, +# TZ='right/Australia/Adelaide' got you localtime with leap seconds, +# but gmtime without leap seconds, which led to problems with applications +# like sendmail that subtract gmtime from localtime. +# Therefore, the other two directories are now siblings of $(TZDIR). +# You must replace all of $(TZDIR) to switch from not using leap seconds +# to using them, or vice versa. +right_posix: right_only + rm -fr '$(DESTDIR)$(TZDIR)-leaps' + ln -s '$(TZDIR_BASENAME)' '$(DESTDIR)$(TZDIR)-leaps' || \ + $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-leaps' right_only + $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-posix' posix_only + +posix_right: posix_only + rm -fr '$(DESTDIR)$(TZDIR)-posix' + ln -s '$(TZDIR_BASENAME)' '$(DESTDIR)$(TZDIR)-posix' || \ + $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-posix' posix_only + $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-leaps' right_only + +zones: $(REDO) + +# dummy.zd is not a real file; it is mentioned here only so that the +# top-level 'make' does not have a syntax error. +ZDS = dummy.zd +# Rule used only by submakes invoked by the $(TZS_NEW) rule. +# It is separate so that GNU 'make -j' can run instances in parallel. +$(ZDS): zdump + ./zdump -i $(TZS_CUTOFF_FLAG) '$(wd)/'$$(expr $@ : '\(.*\).zd') \ + >$@ + +TZS_NEW_DEPS = tzdata.zi zdump zic +$(TZS_NEW): $(TZS_NEW_DEPS) + rm -fr tzs$(TZS_YEAR).dir + mkdir tzs$(TZS_YEAR).dir + $(zic) -d tzs$(TZS_YEAR).dir tzdata.zi + $(AWK) '/^L/{print "Link\t" $$2 "\t" $$3}' \ + tzdata.zi | LC_ALL=C sort >$@.out + wd=`pwd` && \ + x=`$(AWK) '/^Z/{print "tzs$(TZS_YEAR).dir/" $$2 ".zd"}' \ + tzdata.zi \ + | LC_ALL=C sort -t . -k 2,2` && \ + set x $$x && \ + shift && \ + ZDS=$$* && \ + $(MAKE) wd="$$wd" TZS_CUTOFF_FLAG="$(TZS_CUTOFF_FLAG)" \ + ZDS="$$ZDS" $$ZDS && \ + sed 's,^TZ=".*\.dir/,TZ=",' $$ZDS >>$@.out + rm -fr tzs$(TZS_YEAR).dir + mv $@.out $@ + +# If $(TZS) exists but 'make check_tzs' fails, a maintainer should inspect the +# failed output and fix the inconsistency, perhaps by running 'make force_tzs'. +$(TZS): + touch $@ + +force_tzs: $(TZS_NEW) + cp $(TZS_NEW) $(TZS) + +libtz.a: $(LIBOBJS) + rm -f $@ - $(AR) -rc $@ $(LIBOBJS) ++ $(AR) $(ARFLAGS) $@ $(LIBOBJS) + $(RANLIB) $@ + +date: $(DATEOBJS) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS) + +tzselect: tzselect.ksh version + VERSION=`cat version` && sed \ - -e 's|#!/bin/bash|#!$(KSHELL)|g' \ - -e 's|AWK=[^}]*|AWK='\''$(AWK)'\''|g' \ - -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \ - -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \ - -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \ - -e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \ - <$@.ksh >$@.out ++ -e "s'#!/bin/bash'#!"'$(KSHELL)'\' \ ++ -e s\''\(AWK\)=[^}]*'\''\1=\'\''$(AWK)\'\'\' \ ++ -e s\''\(PKGVERSION\)=.*'\''\1=\'\''($(PACKAGE)) \'\'\' \ ++ -e s\''\(REPORT_BUGS_TO\)=.*'\''\1=\'\''$(BUGEMAIL)\'\'\' \ ++ -e s\''\(TZDIR\)=[^}]*'\''\1=\'\''$(TZDIR)\'\'\' \ ++ -e s\''\(TZVERSION\)=.*'\''\1=\'"'$$VERSION\\''" \ ++ <$@.ksh >$@.out + chmod +x $@.out + mv $@.out $@ + +check: check_back check_mild +check_mild: check_character_set check_white_space check_links \ - check_name_lengths check_slashed_abbrs check_sorted \ ++ check_name_lengths check_now \ ++ check_slashed_abbrs check_sorted \ + check_tables check_web check_ziguard check_zishrink check_tzs + ++# True if UTF8_LOCALE does not work; ++# otherwise, false but with LC_ALL set to $(UTF8_LOCALE). ++UTF8_LOCALE_MISSING = \ ++ { test ! '$(UTF8_LOCALE)' \ ++ || ! printf 'A\304\200B\n' \ ++ | LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 \ ++ || { LC_ALL='$(UTF8_LOCALE)'; export LC_ALL; false; }; } ++ +check_character_set: $(ENCHILADA) - test ! '$(UTF8_LOCALE)' || \ - ! printf 'A\304\200B\n' | \ - LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 || { \ - LC_ALL='$(UTF8_LOCALE)' && export LC_ALL && \ ++ $(UTF8_LOCALE_MISSING) || { \ + sharp='#' && \ + ! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \ + $(MISC) $(SOURCES) $(WEB_PAGES) \ + CONTRIBUTING LICENSE README SECURITY \ + version tzdata.zi && \ + ! grep -Env $(SAFE_LINE)'|^UNUSUAL_OK_'$(OK_CHAR)'*$$' \ + Makefile && \ + ! grep -Env $(SAFE_SHARP_LINE) $(TDATA_TO_CHECK) backzone \ + leapseconds zone.tab && \ + ! grep -Env $(OK_LINE) $(ENCHILADA); \ + } + touch $@ + +check_white_space: $(ENCHILADA) *** 3935 LINES SKIPPED *** From nobody Tue Feb 13 21:34: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 4TZF2K5KMhz59qr7; Tue, 13 Feb 2024 21:34: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZF2K4ny5z4YdS; Tue, 13 Feb 2024 21:34:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707860041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I6GWdfcFij4TrVr8PbZ1ektqEIMIRRGcrG5ypO9lMEg=; b=jQYaxPdbKvtGZHFl69C/F+HoNl7H1vsKkxUdMKk9Fp0vRQM0BDGbyX0z4oOvw2Nglfl22N nSj0bjE/tjxd6Rl/Koo93eC60JxZSqfS0jlazE1pkcGCfXxMfc7YMsRgxyGisOwsHXrP5F zdR4bSx3ecZRDiE0Fy9zWItpkTsjTbZrxSecCsshLcOXjbbdQ1FAt1JqwsuQnbC3PUE9Dn btEKyfFrDCmPKZS4UEniVE9CSmVtQ3U84rrlq064Q4e7AZ3feJS7ZJA3V/n+jXOWYfy8Jh HqrbbMfF+aS8w+Q6gKV428LXchJd4PR3r38hX5rJ02k+iW63sx/LWN/vcI6iYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707860041; a=rsa-sha256; cv=none; b=XVHoj8+z+lOmRc6o/sRYMqoaMPaT47TxfdDGZ/73weGqAbE2NK4jD5jCjANIYJ7cUqytjV PHR6zRmBWQFDu7HL7aFED2EWOl1LVqtO1be7VmZI28EDSobmqWkeYDTca91HD6lVliJ1im nuoKzQ7YNIKNZ9WWQdlN/Y8U9xoLpgNWHhWVWh1q9kDkjP+EaYZAPsyBi0qPOVD0WjKFqh hkjBMhup0bKbIZ9r4MX0M2Pds0V3O6HUWEhczLBr6+1Ddt9PHFBHYySMgYHwtwnAADyttd vv8sdR/DQpICSAgZRDIwasJyhjTHS/FBvRRkdRdRV0DumM0BoOgNkAhdL25sEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707860041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I6GWdfcFij4TrVr8PbZ1ektqEIMIRRGcrG5ypO9lMEg=; b=lvYv4EXlpD3l0CQ0tb8d/DdVwL7nVnLfHVdGiTbEIoc0TO1R+br1aP8eNwUW8WgeTNI39D 9f+LlY8uzrfF/Sqat7zjbnKLX23BuTZmhcmte7pKvQsjq+ozTkz11fKzkPk52J6JgPa1pe LfVCjdYEz+WJ3fMYj78liyoZOu/yPjPG/LciImHznbGO6Fi7QIHoZx01T+ADDj710sHzS0 QTwzj0lG2+ZyyQXu0lN4WrXF2SesD6jJsSzy2dx+eiTyW2CM/+nOJb/6nMbH8lW+Jw2l7U wchIyROKX9He6xpQodv6fiKXI0/J9JPl3mn5BC3v1vVm9e+xvpN2QydF8guVDg== 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 4TZF2K3rPhzXMM; Tue, 13 Feb 2024 21:34:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DLY1AY025939; Tue, 13 Feb 2024 21:34:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DLY13a025936; Tue, 13 Feb 2024 21:34:01 GMT (envelope-from git) Date: Tue, 13 Feb 2024 21:34:01 GMT Message-Id: <202402132134.41DLY13a025936@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: d18b1958ade2 - stable/14 - pf: uncomment counter asserts after mem leak fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: d18b1958ade203f16f24276661e553c076d5d7a9 Auto-Submitted: auto-generated The branch stable/14 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=d18b1958ade203f16f24276661e553c076d5d7a9 commit d18b1958ade203f16f24276661e553c076d5d7a9 Author: Igor Ostapenko AuthorDate: 2024-01-30 21:04:57 +0000 Commit: Kristof Provost CommitDate: 2024-02-13 21:32:15 +0000 pf: uncomment counter asserts after mem leak fix Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D43657 (cherry picked from commit 9d784da3a7af9b9b04536c2e97459a7d9f92e364) --- sys/netpfil/pf/pf_ioctl.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c index a397b9e99261..1a383ae6fd09 100644 --- a/sys/netpfil/pf/pf_ioctl.c +++ b/sys/netpfil/pf/pf_ioctl.c @@ -6914,13 +6914,8 @@ pf_unload_vnet(void) V_pf_allrulecount--; LIST_REMOVE(V_pf_rulemarker, allrulelist); - /* - * There are known pf rule leaks when running the test suite. - */ -#ifdef notyet MPASS(LIST_EMPTY(&V_pf_allrulelist)); MPASS(V_pf_allrulecount == 0); -#endif PF_RULES_WUNLOCK(); From nobody Tue Feb 13 21:34: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 4TZF2L1fJrz59qQj; Tue, 13 Feb 2024 21:34: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZF2K71YRz4Yv0; Tue, 13 Feb 2024 21:34:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707860042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1FwnwKanWX0R1yxT7B1K/8icIRBlpbX7dBVIuxJbeps=; b=TyyWL3H2rihDDXFKVbAuk47W04Tl8QUnFJeuW69T4BHRcdBSpXPU7W/IdXnYqznJJjXA5d KaM6v/PCDpPztev2DBIpWty8vkLLcaJK1u7qJ1jIo2JKGlGwzj5jwyPO+54/iG/reHQZKa z3vZlTTTDO9X1qB5jIzA2rgQKHZwN70aM7qHrT0QwjzwJ7DmeML0rsCmVrOZRj4bLm3LVW KVgAGvlEpuwNAVzVKh30TqmauuuA3ZZ6nDkMOrMLHehbaT6rXCwV2Hlyp7FPmbovwddP0E BiH4ZYy2RXFjzG7bFzDggAcyQFCIsJm/992YJBHeKdZAcpZrnZnNQXH1wH87Xg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707860042; a=rsa-sha256; cv=none; b=IVE8dToVY+OSCxDjstAaDl+Fz3k5rgG4NxdjZNSgcy09MEtapgItGj7U3k5uMyGJ2JI0pC axSxAH1lBkWUpLts1WzH13Y4bCvv9gSlOOCMnmYDYC4+h7rxYNhadCy7iZzdDLPxQofKlf ERY6E/32jt/FBrPetpUTQVyYvsR7XZuIAO0UalIbdgqoOFKi/0aBkkQq7S/WK9+UU5Wa5E wFqDyPqAbjU8I01SAJh/ttOOp4mWb8kTinzo5C3rs7/MBpNTvoeSC/GVXzHg0pYQmvS519 H/Ly7QmqfMrlZqU2bthE8q1yJSzbyU6W/Q/a+DABTeKPTXGuLuWHRbYTzNrGWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707860042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1FwnwKanWX0R1yxT7B1K/8icIRBlpbX7dBVIuxJbeps=; b=guDF8f3BHyMBHor9/DwLA8AursJ3GOxFgfZrURQtz8iPDKaFk3XUZC5StR46qTXpu/myxb eIkGw5kwvY/YbdroCSA9FhA5DMeCCJFIgp5uLzIInt4mnEk8cJ3gwnpZZLakXBvvFtkowl HuhDTHA+ummuueHnsydFvWgkxxCwByE2n3jX7idne4fbRA9Qkf26llPBVgIlEYSnXC4em1 O6vWWS1cVbFCg1RvovwXjJAUn71WSYBgrAik3naIvqI3p6JmqRsLQ4DAVwH1XrUEz0EK6+ 9Kjt6v90TYtYFuwziqwnvIrmmuCjOILTeao0+511iezFBeYKUWjqtyKfuMUvJg== 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 4TZF2K6616zX9W; Tue, 13 Feb 2024 21:34:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DLY1xx026042; Tue, 13 Feb 2024 21:34:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DLY1cE026039; Tue, 13 Feb 2024 21:34:01 GMT (envelope-from git) Date: Tue, 13 Feb 2024 21:34:01 GMT Message-Id: <202402132134.41DLY1cE026039@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 17167f757e0a - stable/13 - pf: uncomment counter asserts after mem leak fix 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 17167f757e0a14ac487c608459aaba6d10f43f12 Auto-Submitted: auto-generated The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=17167f757e0a14ac487c608459aaba6d10f43f12 commit 17167f757e0a14ac487c608459aaba6d10f43f12 Author: Igor Ostapenko AuthorDate: 2024-01-30 21:04:57 +0000 Commit: Kristof Provost CommitDate: 2024-02-13 21:31:04 +0000 pf: uncomment counter asserts after mem leak fix Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D43657 (cherry picked from commit 9d784da3a7af9b9b04536c2e97459a7d9f92e364) --- sys/netpfil/pf/pf_ioctl.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c index 81b766cb7f6a..98b5ce318596 100644 --- a/sys/netpfil/pf/pf_ioctl.c +++ b/sys/netpfil/pf/pf_ioctl.c @@ -5863,13 +5863,8 @@ pf_unload_vnet(void) V_pf_allrulecount--; LIST_REMOVE(V_pf_rulemarker, allrulelist); - /* - * There are known pf rule leaks when running the test suite. - */ -#ifdef notyet MPASS(LIST_EMPTY(&V_pf_allrulelist)); MPASS(V_pf_allrulecount == 0); -#endif PF_RULES_WUNLOCK(); From nobody Tue Feb 13 21:48: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 4TZFLz550lz59s4b; Tue, 13 Feb 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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZFLz4q1dz4brr; Tue, 13 Feb 2024 21:48:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707860907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ENu7E6Gn1tnZIOPSgxrduS3xdOpddTLw6NER3A5K2U0=; b=Z9DVjbCWe3hmzrp+o2ZSUE1TSsQbgkDYuSajHXBrVRA+n20z31UjcL7KlED+23w5FZ18FM Vt3NHNtyECj8uP+xYcjug07fJGoY8WnP2F4QRlwY2dbax3Jw7ebmZazLg2JzoD7zZZ6it2 VV98WwK3XOE0jYV2JyFrAuM6HsEkb9e/5oVoAN0oIRW2kT8ypLOzG+J948bByE3/oGNrjL WMmV0+IkGZjn/pGoORs2i16IAQgHKBvZMCViuSehGsONtxi5LXpgE/OKo5zcM/jheP++5V lprAPz18vLthdzYpbDuAKTQfdcmq4oRB559VpLnUyvob/nGt+x1Y04rDcJDDgA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707860907; a=rsa-sha256; cv=none; b=AKLNp2Wg6hQzufaMcBYaASOqUDo/LamnPm3nv7ksWoLYgDkhBhIBe9zbEm4iOrE0fuDr8P atToE8iSF2jLN8JjIH2DVhVbi2hDMnxSrQWv1Cz5MxSH/UBn90tcDFpfmPp3m86Kxnnxwz 2iMfrBtJHuedXHEIugU40bc+asdFAcTyL5NVro8mOlEaPUW0bTunzR4ZniFl8/x13ZaBxb o8UtspkzyfA9r9N83naQzuxPvJDO5jWGNQBSb17r8XxV7ZFvZG6pERml5v62NOIWMiPP2d cV9ROfkbbh0LoksIr9Qu9oBzlDwXhhnhx3hXAvjmorWTeUk/DeZtWNnmygsMxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707860907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ENu7E6Gn1tnZIOPSgxrduS3xdOpddTLw6NER3A5K2U0=; b=WlgyFLi6plm2PuaFIKIgS57L5S8tgyVkR3ZC4NbgJ+ja7NB/xHl5h1ZyjEu8PBSgnxPaLK +3TQck8j/eV/RCskJS16ERgd2hMzI8o20z2+0niwjZ8Uk/p/dhpB+xKgPOjdpZnZAgi3HM xWJZ2esgtc/3cyG8lOLw3T2PP7OKxgM4z5b2+qey/xSfHrJJaV+TzcBDzMD/nDmbjFStqs eFcU78JsPtBtvYya2au1d5byeGFxwaahNh6p8Kmt5gfbRzpi7eZajyTbRulFPu7901N8Du VGrGl2ICXPaZgZjalaNGwc6qLyRWJ5FcVOstJCkmtiZJxxoCH1N3SC3ISP1rjw== 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 4TZFLz3mFczXJS; Tue, 13 Feb 2024 21:48:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DLmR8t043030; Tue, 13 Feb 2024 21:48:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DLmRm8043027; Tue, 13 Feb 2024 21:48:27 GMT (envelope-from git) Date: Tue, 13 Feb 2024 21:48:27 GMT Message-Id: <202402132148.41DLmRm8043027@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gregory Neil Shapiro Subject: git: b36ddb27b3b9 - releng/13.3 - Merge sendmail 8.18.1 from stable/13 to releng/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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gshapiro X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.3 X-Git-Reftype: branch X-Git-Commit: b36ddb27b3b96a3d42dba6b0cc5c103b70911ddb Auto-Submitted: auto-generated The branch releng/13.3 has been updated by gshapiro: URL: https://cgit.FreeBSD.org/src/commit/?id=b36ddb27b3b96a3d42dba6b0cc5c103b70911ddb commit b36ddb27b3b96a3d42dba6b0cc5c103b70911ddb Author: Gregory Neil Shapiro AuthorDate: 2024-01-31 23:53:48 +0000 Commit: Gregory Neil Shapiro CommitDate: 2024-02-13 21:47:33 +0000 Merge sendmail 8.18.1 from stable/13 to releng/13.3 Merge commit '850ef5ae11d69ea3381bd310f564f025fc8caea3' Merge vendor sendmail 8.18.1 into HEAD (cherry picked from commit d39bd2c1388b520fcba9abed1932acacead60fba) Add new source file for sendmail 8.18.1 (cherry picked from commit 19d4fb85bf17579780e8f0c3cbae8a5e92a6922e) New sendmail 8.18.1 cf file (cherry picked from commit 1b6a5580c1f999fb1ba5f9860cf63a8aefc55b3c) Minor change to update these files so new freebsd*.cf files are generated (cherry picked from commit 2c191ba6b0b5d1b3729a5ac428d51cfc5d5f3d2e) Belatedly update version and date for sendmail 8.18.1 upgrade (cherry picked from commit 31fbc98c949bfca30ab55afef04b4396a61b7e92) Add a note about sendmail 8.18.1's stricter SMTP protocol enforcement (akin to commit 21c1f1deb6a3ac6a60e4516261e5264a28e0b7a6 in main) Update import date for stable/14 Relnotes: Yes Security: CVE-2023-51765 Approved-by: re (cperciva) (cherry picked from commit a64caf2cb2dc3ddd6f325e323c281d1463a80ccf) --- UPDATING | 7 + contrib/sendmail/FREEBSD-upgrade | 4 +- contrib/sendmail/KNOWNBUGS | 17 +- contrib/sendmail/PGPKEYS | 625 +++++++- contrib/sendmail/README | 26 +- contrib/sendmail/RELEASE_NOTES | 215 ++- contrib/sendmail/cf/README | 29 +- contrib/sendmail/cf/cf/submit.cf | 15 +- contrib/sendmail/cf/feature/check_cert_altnames.m4 | 2 +- contrib/sendmail/cf/feature/enhdnsbl.m4 | 14 +- contrib/sendmail/cf/feature/fips3.m4 | 16 + contrib/sendmail/cf/feature/ldap_routing.m4 | 2 +- contrib/sendmail/cf/hack/xconnect.m4 | 4 +- contrib/sendmail/cf/m4/proto.m4 | 84 +- contrib/sendmail/cf/m4/version.m4 | 2 +- contrib/sendmail/cf/sh/makeinfo.sh | 2 +- contrib/sendmail/contrib/buildvirtuser | 2 +- contrib/sendmail/doc/op/Makefile | 6 +- contrib/sendmail/doc/op/op.me | 271 ++-- contrib/sendmail/include/libsmdb/smdb.h | 2 +- contrib/sendmail/include/sendmail/sendmail.h | 1 + contrib/sendmail/include/sm/conf.h | 8 +- contrib/sendmail/include/sm/fdset.h | 1 + contrib/sendmail/include/sm/gen.h | 4 + contrib/sendmail/include/sm/ixlen.h | 1 + contrib/sendmail/include/sm/notify.h | 7 +- contrib/sendmail/include/sm/os/sm_os_openbsd.h | 14 - contrib/sendmail/include/sm/rpool.h | 2 + contrib/sendmail/libmilter/README | 3 + contrib/sendmail/libmilter/docs/overview.html | 2 +- .../sendmail/libmilter/docs/smfi_getsymval.html | 17 +- .../sendmail/libmilter/docs/smfi_replacebody.html | 2 +- contrib/sendmail/libmilter/docs/xxfi_body.html | 2 +- contrib/sendmail/libmilter/docs/xxfi_header.html | 4 +- contrib/sendmail/libmilter/engine.c | 24 +- contrib/sendmail/libsm/Makefile.m4 | 1 - contrib/sendmail/libsm/README | 4 +- contrib/sendmail/libsm/b-strl.c | 2 +- contrib/sendmail/libsm/exc.html | 2 +- contrib/sendmail/libsm/heap.c | 2 +- contrib/sendmail/libsm/io.html | 14 +- contrib/sendmail/libsm/ldap.c | 110 +- contrib/sendmail/libsm/lowercase.c | 35 +- contrib/sendmail/libsm/mpeix.c | 2 +- contrib/sendmail/libsm/notify.c | 68 +- contrib/sendmail/libsm/notify.h | 111 ++ contrib/sendmail/libsm/rewind.c | 2 +- contrib/sendmail/libsm/setvbuf.c | 3 +- contrib/sendmail/libsm/stdio.c | 2 +- contrib/sendmail/libsm/strcaseeq.c | 12 +- contrib/sendmail/libsm/t-ixlen.c | 56 +- contrib/sendmail/libsm/t-notify.c | 141 +- contrib/sendmail/libsm/t-qic.c | 16 +- contrib/sendmail/libsm/t-streq.c | 42 +- contrib/sendmail/libsm/t-streq.sh | 19 + contrib/sendmail/libsm/test.c | 2 +- contrib/sendmail/libsm/util.c | 10 +- contrib/sendmail/libsm/vfprintf.c | 16 +- contrib/sendmail/libsm/vfscanf.c | 2 +- contrib/sendmail/libsmdb/smcdb.c | 2 +- contrib/sendmail/libsmdb/smdb.c | 7 +- contrib/sendmail/libsmdb/smdb1.c | 2 +- contrib/sendmail/libsmdb/smdb2.c | 2 +- contrib/sendmail/libsmdb/smndbm.c | 4 +- contrib/sendmail/libsmutil/t-lockfile.c | 104 +- contrib/sendmail/mail.local/mail.local.c | 2 +- contrib/sendmail/makemap/makemap.8 | 8 + contrib/sendmail/makemap/makemap.c | 187 ++- contrib/sendmail/smrsh/README | 2 +- contrib/sendmail/src/Makefile.m4 | 2 +- contrib/sendmail/src/README | 25 +- contrib/sendmail/src/SECURITY | 14 +- contrib/sendmail/src/TRACEFLAGS | 16 +- contrib/sendmail/src/alias.c | 209 ++- contrib/sendmail/src/bf.c | 2 +- contrib/sendmail/src/collect.c | 258 +++- contrib/sendmail/src/conf.c | 158 +- contrib/sendmail/src/conf.h | 8 +- contrib/sendmail/src/control.c | 2 - contrib/sendmail/src/daemon.c | 137 +- contrib/sendmail/src/daemon.h | 2 +- contrib/sendmail/src/deliver.c | 1603 +++++++++++++++----- contrib/sendmail/src/domain.c | 482 +++++- contrib/sendmail/src/err.c | 4 - contrib/sendmail/src/headers.c | 32 +- contrib/sendmail/src/helpfile | 6 +- contrib/sendmail/src/macro.c | 59 +- contrib/sendmail/src/main.c | 126 +- contrib/sendmail/src/map.c | 438 ++++-- contrib/sendmail/src/map.h | 8 + contrib/sendmail/src/mci.c | 13 +- contrib/sendmail/src/milter.c | 27 +- contrib/sendmail/src/mime.c | 8 +- contrib/sendmail/src/parseaddr.c | 44 +- contrib/sendmail/src/queue.c | 214 +-- contrib/sendmail/src/ratectrl.c | 3 +- contrib/sendmail/src/readcf.c | 238 ++- contrib/sendmail/src/recipient.c | 11 +- contrib/sendmail/src/savemail.c | 4 +- contrib/sendmail/src/sched.c | 172 +++ contrib/sendmail/src/sendmail.8 | 4 +- contrib/sendmail/src/sendmail.h | 179 ++- contrib/sendmail/src/sfsasl.c | 8 +- contrib/sendmail/src/sm_resolve.c | 206 +-- contrib/sendmail/src/sm_resolve.h | 28 +- contrib/sendmail/src/srvrsmtp.c | 465 ++++-- contrib/sendmail/src/stab.c | 6 + contrib/sendmail/src/tls.c | 599 ++++++-- contrib/sendmail/src/tls.h | 91 +- contrib/sendmail/src/tlsh.c | 37 +- contrib/sendmail/src/udb.c | 16 +- contrib/sendmail/src/usersmtp.c | 75 +- contrib/sendmail/src/util.c | 142 +- contrib/sendmail/src/version.c | 2 +- contrib/sendmail/test/README | 9 +- contrib/sendmail/vacation/vacation.1 | 25 +- contrib/sendmail/vacation/vacation.c | 232 ++- etc/sendmail/freebsd.mc | 1 + etc/sendmail/freebsd.submit.mc | 1 + tools/build/mk/OptionalObsoleteFiles.inc | 1 + usr.sbin/sendmail/Makefile | 2 +- 121 files changed, 6716 insertions(+), 2169 deletions(-) diff --git a/UPDATING b/UPDATING index 21873313b3be..8e7fa2999475 100644 --- a/UPDATING +++ b/UPDATING @@ -12,6 +12,13 @@ Items affecting the ports and packages system can be found in /usr/ports/UPDATING. Please read that file before updating system packages and/or ports. +20240207: + sendmail 8.18.1 has been imported and merged. This version enforces + stricter RFC compliance by default, especially with respect to line + endings. This may cause issues with receiving messages from + non-compliant MTAs; please see the first 8.18.1 release note in + contrib/sendmail/RELEASE_NOTES for mitigations. + 20230913: Improvements to libtacplus(8) mean that tacplus.conf(5) now follows POSIX shell syntax rules. This may cause TACACS+ diff --git a/contrib/sendmail/FREEBSD-upgrade b/contrib/sendmail/FREEBSD-upgrade index c8206c4bc351..03969cef2119 100644 --- a/contrib/sendmail/FREEBSD-upgrade +++ b/contrib/sendmail/FREEBSD-upgrade @@ -1,6 +1,6 @@ $FreeBSD$ -sendmail 8.17.1 +sendmail 8.18.1 originals can be found at: ftp://ftp.sendmail.org/pub/sendmail/ For the import of sendmail, the following directories were renamed: @@ -102,4 +102,4 @@ infrastructure in FreeBSD: usr.sbin/mailwrapper/Makefile gshapiro@FreeBSD.org -31-January-2022 +07-February-2024 diff --git a/contrib/sendmail/KNOWNBUGS b/contrib/sendmail/KNOWNBUGS index b44f931af585..7a75b4975c35 100644 --- a/contrib/sendmail/KNOWNBUGS +++ b/contrib/sendmail/KNOWNBUGS @@ -25,7 +25,7 @@ This list is not guaranteed to be complete. For Linux the default is to use fcntl() for file locking. However, this does not work with Berkeley DB 5.x and probably later. Switching to flock(), i.e., compile with -DHASFLOCK fixes this - (however, the have been problems with flock() on some Linux + (however, there have been problems with flock() on some Linux versions). Alternatively, use CDB or an earlier BDB version. * Delivery to programs that generate too much output may cause problems @@ -105,11 +105,6 @@ Kresolve sequence dnsmx canon DSN does not contain the illegal address, but only the valid address(es). -* \231 considered harmful. - - Header addresses that have the \231 character (and possibly others - in the range \201 - \237) behave in odd and usually unexpected ways. - * AuthRealm for Cyrus SASL may not work as expected. The man page and the actual usage for sasl_server_new() seem to differ. Feedback for the "correct" usage is welcome, a patch to match @@ -178,11 +173,11 @@ Kresolve sequence dnsmx canon * Client ignores SIZE parameter. - When sendmail acts as client and the server specifies a limit - for the mail size, sendmail will ignore this and try to send the - mail anyway. The server will usually reject the MAIL command - which specifies the size of the message and hence this problem - is not significant. + When sendmail acts as client and the server specifies a limit for + the mail size, sendmail will ignore this and try to send the mail + anyway (unless _FFR_CLIENT_SIZE is used). The server will usually + reject the MAIL command which specifies the size of the message + and hence this problem is not significant. * Paths to programs being executed and the mode of program files are not checked. Essentially, the RunProgramInUnsafeDirPath and diff --git a/contrib/sendmail/PGPKEYS b/contrib/sendmail/PGPKEYS index 0d0b0d5a766c..13ec5a6ee56a 100644 --- a/contrib/sendmail/PGPKEYS +++ b/contrib/sendmail/PGPKEYS @@ -187,6 +187,625 @@ mk6wxhyuojEHuR7it6IU5BP8vaAGrL1jb1c2EeAe+pdJwpAb1Aq6MU6uWqOGup8t =xY3m -----END PGP PUBLIC KEY BLOCK----- +pub rsa4096/0xC4065A87C71F6844 2024-01-02 [SC] + Key fingerprint = 8AB0 63D7 A4C5 939D A9C0 1E38 C406 5A87 C71F 6844 +uid [ultimate] Sendmail Signing Key/2024 +sub rsa4096/0x8DBCFBC42AF9E161 2024-01-02 [E] + Key fingerprint = 2B52 755B 17D4 44EB EC39 5497 8DBC FBC4 2AF9 E161 + +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBGWUXHABEADBppmmbLqp0im5U2X6qAhePk4nOkW52VTJV4LC67Po0R2jPMdv +yCqQfGeqO0RYPCDOF9budPKj5wWZQztBWUlAUOhtt0c20F1wjzvRC+cnlZLFIZp6 +rXlexZxW/2mXXX/8FED+KjLZXCkSV+W7TMIZQtvFGwP8bpqlf31vLOKjMri/QF1Z +UQwHkWirmabwWx12x2DsYtkoSsyJnMd8ZAjnOxOVpnwY0ZzmXMcRFkmnuBLaIFqz +h6fnLj65owkxnBKY/mEsuQJp+DZvjXNpPrTgyJ/77e5XKGuKr5fx7h+9BLpOODHb +Qts+c91eVOybLEyGM+F5mfYMvD54euG06XVy+5Yi2m9+Oxwvkz6cJCPf8/S7PFLa +WyTorU+qB22T1z43qfBrGivuOyAm8slurpRH1QikkTAI+hk21zwCGnM9Nvvh9zN+ +Kg+uUoiZkEtJ6+J+O5qK6vXV6QuP9D6KBjF0zv9pIgbrLRrT+xE07v9lrYuU7U8e +znl819atkpNlE9NBb/4sxRdpmrAjQDVHpy0e0GbIKYKfla3rdsvM/2rIdbVGTqST +gPddPExgPqyq1ssyy/7CdsNmk6qfJ9UJDKtKnTjuAMisfh8P4Uoiwvhqxbx5CW2H +FqH3Ka0J/fXJlYlt3JgJReV+SJViADUyQYqacIMo7JOQVfVrinaGbxD0kQARAQAB +tDFTZW5kbWFpbCBTaWduaW5nIEtleS8yMDI0IDxzZW5kbWFpbEBTZW5kbWFpbC5P +Ukc+iQJVBBMBCgA/FiEEirBj16TFk52pwB44xAZah8cfaEQFAmWUXHACGwMLCwkN +CAoMBwsEAwIGFQoJCAsDBRYCAwEAAh4FAheAAAoJEMQGWofHH2hEPNcQALOzEpQG +3RQ6UcvFeHzK1NCV/oyZKQgj3val/QU9VoHi4RhBgosTqVAciHcKuF2b/v47b6AA +3F3cuNn28LFFr2xC2e0+NaCT8oZGRcnWPi4NfslIQgUhTsVvnisVO2obcRYVjKBS +9EEoiLStMyhGXWFN34yUQZu5DVuQ3JhyR8dqu4f5wd/1TD9vY8x4b7jdtIUDQQEE +PvhzcWn60Rpqd59CJZJ1dk54ZzjzNqTPt4fu0EU2L5oKmMS18//9hh/oADfaLgax +0V1MC3sMzFuMCIoLvd/G2XzyIRNu06brf9XZVMOMA/N6bueY8gyf82eVxNmfvnhN +RcTINWeOmjG29UYstb3S72BSrBB5/oJDrOJnyeh4xvSjeShVFLyKRo6Bcvy5+w5i +MIFlkWOl5v6JKSMUMCIzZUp7kAeU5D2CzQbFhgnOY+YFrYGgHQa4I4QmX9LE2svg +SwFwFpDHC1T7fuO5kFRO8Xa2+YLhKWjEQsljQwyyOC8n/DhhatPC1/TzNNhx2meS +OIKLy32yeIcHODlKTWwZPGRMiZZ12Z62K/i8bu8NkifXwtLjfbqmxZbP7XSFKNBt +yDvYhHMQW1YiXbTREy1b2l2Z7m56H4VN67RFlnhb27EzeQ5fbBO2pXvQ5e+sD4Jp +FcfE0QZVOyVN59FlCdaGvk8MlvHrZhwVnlnoiQEzBBABCgAdFiEEsXWWRFMDXc7d +e+kZYE378oVBCr4FAmWUXbMACgkQYE378oVBCr781wgAj8iqPRzD6kvgmqOPRh+6 +YBuSZ3+QOZKhIf8HVsutfeB90YBRJbtCKucliRIVLj8qkqIKroWpKPAv1YlqKP2t +spxfZoz9DzxSnwbXV4hmb/JfT7VLD9TBih7kBMbBxkY3ECIuvZi1roETpK9cSP17 +tPD9eFpvcG1N5DzCZTsMNEap946xVrCrFXA+etDW0BAMXtqzMlFOZt85hw2B7Z3l +mB0ErTAjeb18QD07TbjMLl+wI5SPYddMBvYYUXic0CBliuF7m+MSWPbNewHcvYG+ +JGotuLZVp29ChKG2Id4qK5IkdYTC1rfwzuPDm5QpPc0ghD6vnNvmX3oiw9V7rQJB +h4kBMwQQAQoAHRYhBFhyYhipE0AN5mA2ATmkx32peISwBQJllF3JAAoJEDmkx32p +eISwcY0H/ivF8zsxMSMWxe45atG+4V1QsNW/gasu4MaTSTf8lw1WXEoZ7SA6HduH +p7gLmRsCspDW5F4ELgpQ5wHux7LlrCRBxGHuFBn+zAptF/Z6zxRhHjcEBRQW2tGR +BRYkfr8WxY3KvYbiKJBnn3GgmQoexg//oaiAu/BqBkEhKkgDsgp8B12rMUr7zpqe +9WEGbauvzwvOnbDbJ3AC9LRsQeq+/MbXZYzK096VH799IRe5JFaQndavEPpZnuE8 +naPxesr77rwnOcPeyTxgAfZPEZXl92vznKeEdKZzaWtfKkFgVvInreCOwebyeOsF +kEaAh71TgGGXgLRUz8LB88Wh4MaMdBiJATMEEAEKAB0WIQTKeo85okGf/7CpqyeO +Wun7zu70OwUCZZRd3AAKCRCOWun7zu70O8nXB/459fW10n9esxtuWadhwnRlxF2O +mdFnTLDj8RY1IC8zvi7cONQpPv9vPEMqWjgZf1D2hKYNnjy0Nylww4XV8XNJ3kWa +riDt3aQkIuXt5iuYdbPp+JQV9rW0Uu5Sw3x0Gy2dVXDYcmSdu/NRkY8R3Uf7DJPj +4F3zIvm6cLClC9SNXiz8yATnXN8wb4qVOih9JpXas9+OPkehcah1ZhfgYx8lj497 +/CWGx5+tdl2IBIUy19aQ4aCIcIgVX5xSss0x+7WhL6THKf3IPzDKMTfy6Wa1NhvX ++eq/HbU7yWftXiZgsGc1ls4P0NmEEZwPCvmq2mtIoa22DewB9tk0O5dUy8UziQEz +BBABCgAdFiEEuH1FaYbxlIQH5cy0PWiyXVIHytMFAmWUXeMACgkQPWiyXVIHytOO ++Qf/ZzXfRqub+/gFS3Fi9v1xIPKl9fab3mRQU3HzXmys5AlLQOdi19hzqmmjW9gY +edvy85I2Buf7K9/hVumvLp+7ZK4rY5PXz97GWC5Mn9mVEaTK2OgPN9KzfvtjxIPs +KjvyfB0U6YBshuj49arYkefm2QVKRSGfTWDMVDKMOSwXFalYUape2+Ckjyfg8wsB +V2hRjhMG0PRN5dAXZiPEbYztQanQWAq3DK1ohJLgFwattMpZrh8wUF9LlEtaSSIz +/A1jv/IqfAVOudLiPa272xQOcGcZrONGcPd3BhpJ4zQM/cd9gNQzXdUPgwuV/Toa +KFX8lNqY1JIjIIgqARw0c2qqT4kBMwQQAQoAHRYhBEn2qL6EczlJUZFvO2HeEezi +djpzBQJllF3qAAoJEGHeEezidjpz0p8H/iGf0G9+IBcRK8J6Mz1wA+hemdVdSsTF +6GYCKFFfq1b40T6Mc3Ao5Ea0P/AyTIFfVBoTvsXqNB1bj1MmOZETHcEbCrjyOKLz +yC8SSH8PRUDWpPFnbKYyOnEfViASqmxHIB8G6nZ5tfucgasCrOUbkd7/QsaAeiv1 +/VkyGDx8eUDu6+NUCd+K25so8LlEotDhysTI7H1VKLQukduyBs6ziyjfFcGg8r6l +8BcpMhRZ01eR6ZFQtYRcX0ZEOBHtp7nlx2gLEFrQ11D0+PJHMf5p0oQi+hHGkFJI +V3i8Uhg9KKH/Zz3VIYoIt5v/73HRExOXMib0YgazoPnF6Q1sCEUrF6mJATMEEAEK +AB0WIQQPXJauyOaenI5ULlxtTNGUKfsD3gUCZZRd8AAKCRBtTNGUKfsD3jjHB/4+ +up91LA7tS+1nUckjWyEyRNbUFaeZtd2mp7A1D4yIKk46JYS8LI4ION8R5HRgFNN9 +ut5lwsMN6KZJIiVcrM/D/W1NS8zWScw/K1dtzDerdNOU+bwU0aBHZB93SL7MwvTN +/D+31oxy6LoQnFjEGBbWCoFpdCQceHK3AclqCmHvlfZi3/31sM26daC6Ntgn4JZU +6BHP27cFdoHy0jUiQt/LXDDtsfXb0cS3us0+7wwSQ9h/H7E777MKsa8CMeVmSBbQ +lY17TwBMVkMKrKc65aJXKkoezepew+vSO3tk86EzbuMt7iK6LLXKGtLK0IRVY5dU +jLp8B1ir4qiXiAYWgVqJiQEzBBABCgAdFiEEMLynRwX6QVRVcx17qvW13gW9zFMF +AmWUXfYACgkQqvW13gW9zFPe5ggAwdDEpOiEtSiNqXmcBfFgarSxrL6yIDzmSqTK +Q6pkQa1xO2zb7yi0gVZkJQzSeMBi6IJtnPoKEviUdLbdy6mC1ya7u+OY8Ubic2F6 +4V6yaNuLL3T4cCK/7smiB3Fak36IidtOG6P4S45LuSlPu6ndXVSDU19me0hQEAmY +7BA7qSj1lbuhXPskl2iJOMaS5y239UDYtqLRnBF1OXe+p8O8IrWp7L7anZI6eYCC +ToVvfkPCvfFDsca0nwZLRdUk69b93JgE8gManrf/qNnv0vIhJX9q4K7sAA305Y6J +XJo/f/kH7dwZwV5HV33sLc/snvjiq9TKSrlTJ4xjL4/GPxhuK4kCMwQQAQoAHRYh +BDyKHo5/RMreEU/tRkvJvaZr9yatBQJllF39AAoJEEvJvaZr9yatPwAQALBWFBNG +QY+qUc2PIcV7KZ/OAdEx8QLFkOVXPiIn6hlp8FD9OzPV9/F0F+VumG2lLCIGFMLO +T1j1MsRA95tVFj4DgEH62QwhVV4JfxhBdKcK57g7IKEro1Ssc8xGP0FhDGIo96ag +kmnH6UFhIrXJiZj9rJs/9wIJYvO/VBCB/5Zwc1zqWjdn8PiQMYZm9m1+DZcDEx3e +8G6xPKjZVRzJMQ6c0tBRE9dZRSzwUaewl/nYwELMMOayZQndBPYlGb3PuYKQTksB +3g1J4vBKwUqFKxzBXgMjlSpnSa/RMCqfvl2s3PqGARh7DrkULHtPYAl+zHeyTXNh +Fq/RZ3/0GnuxXL9LHGxZug6LtiL3un8F71YYo9S0963PlxJ2i7b6U1Ul00d+ofmH +9StrtvqQW+semspBJ+1w+WBr8v0C+vZBcO314dUAFsibEpmwMoy7CQ3PPj6FphZi +Dmw4JXeqYyv1waS39FAE8kYC3z4yxo20aVlSmZIp79a8l2Ty/lpm40RBjAp9ulQg +7ANlLRLhdKUFsH8UoaZqlLmJh56oVhJp4aHH2SSijYH5rTSOkTj3b4vIFlDMw8sF +P88C7q80KaCrV0GIITL18JaI61/BL+96lsz+f91s7KxSR5keABAHmU6u+DNodi6A +SWuxyZc8G4zli9liAHleKaTxClzkcznp/EC5iQIzBBABCgAdFiEEpoc9JKTW1ihK +5Cp18GBZ/V3HzD8FAmWUXhYACgkQ8GBZ/V3HzD/c2A//ZQ3ZPUNBHuRHNBTFhEqT +TW2kZLYlRpElpNqT0CsfKwxb8q/abLfh6Nn6oEBuT4RYDszL9UiBR9UC8v+dzsYa +2Z+13XiO7n5eonH+oBHOBFDcqvp3jpm1mexhT4I7azyhFd/u7QQsN2R2b2AZQQxT +/PIlF2sYvaKq7tYd+j2Qgq9ISa/Jy7dZQnAhxPcWTSB2ilgcPu9LXfMobWe6kVLn +CCTTgpWDQ510u/BLQPShroVDCYi++pkHkcJw+9AAvblCtiYjjK5NDF4dhMu+nqZ2 +Qe57/Dt9VSEnNe7WXMvo25s9ON13ATXI8JijXaN0rJhk/uwuBdC6a/sl/ry4uum8 +PBG9aDvq44v3BOy78kEUAAySvUJ18naaydpSeSLRMDSCI+uzhZZbwRTTNbqN58uH +4DcSIQCjyJgIrga7x1nTb3MppER8gtlWiaMs5cEWKYPGizCv9bmQR6HD3QbRww/8 +o2XlHeZJg1T8Yv1SwOmz5hro/8RHHYKNwgWZukEJSNFlQgg4FaHICM4c6ODXrD5U +n4FYZqMgPPtu65i70lFBRL1XEABi8BQn8ZdX6xpRLG7Oi/97fXcSAcb1aQSVQKG1 +NYpFaY+eTkSsVoIIzOeDWxze4krxT/vd9J3HjXxLiqQhKh7iH6BJlNcCduMwTfvL +fQRFeBX0FAKAt8GgaD7o0kOJAjMEEAEKAB0WIQRQowMJjqLde8vuKtoJ4B+gPAxQ +TgUCZZReHQAKCRAJ4B+gPAxQThkFD/9nqrAxd121HLtLo81Y7RDgj2EOfRKTOE99 +8CRUGe9YJ1pu22g6leREISjO/641uB3qdosHYIQrX2sgfXX0p5mJCI0BZgTVMHHB +AMLvrPAua1/BQan/ZVFVaSkL8n552Q9gk7VkGzubfcYs1qT/NoDzFJ18bZ8k6X6t +EDYMYaQ15oluGb96D7H2BuzSrGugqsNXdVqNFI1uGpaDMbdtFV5ZSFU1vchlmBOx +uZQFZRA1n7H06FJ5E33bk6evqrYIbmq87OJRdyUr3nbmSTPWaHxH/Xpt9J+kViDv +78AbzV1y1j0ZTSoJ6pQOw/2oR9kqQrBvMEHr/tYMY0fZCnsGhD/Xcs3LscQdM5Ky +c3Agh8/VvKU45kIT814CyR1BiYKLwWSthE3Lf/VSoOAdwWyydVBRmzXyOd0bPrp/ +KEaB7AlBXmtgBTnd+44jHOyo0X+CZdscNbCevcwaYXY4aDW8I+NcmLm2+3lG9U4G +CITW+y7q7vMzisVLzd6JcvSOx1ixdlZDAfv5of4MqCS/pjaqdOuT2F6C8n187KID +zB07m+ix3D60IN0YlBh8EP9Ptm07y93/bpMf7HzgNPSUmsOnZcFeNiAEFUMfCM8q +t5ESZO43GMJ8a9Q3KhK/c2BeXiloYasyS5GdJ2meE205extfIyqkZrLQSBWgjzZz +luaoGI3QkokCMwQQAQoAHRYhBK39twn+HqaC5YVZcdWDIQ71FHGnBQJllF4jAAoJ +ENWDIQ71FHGndC0QAICBdrTlc3cPct+E3WfcOGSBrtfySXs048YM2gxYbkt6FtE0 +kY4dKK+dQApwpkxCWuAYMjO3hJJkhA8vmuD/RLhN786EgM0yCQoWJjrfZxhf4zLZ +xyOPX69bY3L5IKQDFhCiGuPK4O4+QOtD5KeNmKrMOtUWD9TWOOyrhgaIApFHxJ7w +qfWP9K/cYb4ifT3gmGM/RF+sCn9b5nUTf9bdpsnNE8c077V4+eciIfMyD2jEsxR5 +0T7RphhHE6EOfEcoS9hdXWXMD/xYKtZ4S6+iCD7hTfqHRpYfwkLZcY3XZ3BqUTFy +aIiLPXhlEnEbfYz2iUPXoJlJFFhgG+MjWi9PKq4nMzkMkezJlrhnk+vQjHaehXkM +ysCtisKFus+LBsf2gvxBXGYeIlDMc/qyPcT8uU7dEqeUZFJEx8QMCPpSvs3bz4Br +5LsKf4b+/cXOPTv+w/M/kuVRXDQBKi65axu3TZrFRwPoGo0Ye1N5FDVOauhW+KWB +itVekfqSQv8vXPMhWHyWUVXDyJ+L/gC24HV5BXbubZhjW38AOlc6spzYS8GTteHB +HYJ0ArVRkonvJ7eKMvhCXPytEpqiZl88gxdApwiEJM0LuFRkZPM1ukmznGOpe+h1 +igbKFI5IWBVW7cpVR8Ga5Got8NIgxW6la+TVRPByOGSDJm8V3Hrgqoq+9/zziQIz +BBABCgAdFiEEYyfdy15+gOSYfqO3/XncDIHZIQoFAmWUXikACgkQ/XncDIHZIQrc +wRAAo6y31xOW1Nr8ivnXNXyoUv/vjz0m3FnhoZ6L3Ee3jFgO/LRLAOXertUHd98J +hfeZs6UGxxMAt3PZsKi5t/DxEXsqtCY5Kh+97/zzoY3a4xOal/IF6yePfm1qs2QB +b3Cun94eBEceAR/hM8mLZ4hJQbViyNv9HZLMW99gJa9QHqWAHb1WKloJzgZa3ye0 +oSqCf2416V4s4jadMGswGBgz6d1z4muziw+lkq4Ggac38JPtRX0wuNwPCs57ZhPz +abo0yxFvbalznlRpMb1g1bRxCXkNQAUZ06N8lslO7i1Q6ef6lB6EsAHBD+DwH93c +Gwuj0/UQlpU5Jc617EgbFw3LAaMwBpapOOMlaAKtGxLL/TjGt/uQqwHl+phlr2K+ +8aJJkR2VxE+ZABQ/GYNsEMxcxGl4f7+z2Apey4xXQ0+6ftcyWuQ5Cz9dDaz2UERo +BBpzHYJZn0y7eOHt0sYDLSRjS86OIvqlZbSng+hEZRsPSJd0LVH13DfdnqVN8GmT +N4TYSx5yqwLGrv9f1j5ktb5XruN0bAbiMDswHax+CrOiIS3fLQgaXTSaVOVLAfz1 +TCK3iPD0cW3g9VS1pD+5V1QMtD/+z0a6sCE/2tGNOZTc3EX0BSfG6d1Ib+ns52ag +k88qQwwUPNVKP/K71VG1s/9pivIEqkybuN0wUQfDPd40/JOJAjMEEAEKAB0WIQT0 +ziJjIQJT1qn5ebBMZuqNS+4b7gUCZZReNQAKCRBMZuqNS+4b7iFnD/sH5tnd4N82 +AMShGyss5+dzuRuSOxow5rBiUxSCU8yM7hR7HS9OEdlUcWrB9JtNEClMfR1ecm3e +VxiBkwkTS8ufKSq9LCB+31Sl6alQt/cEXZhgIpzD1UtjHEG9W9geL0uDgnYtG4Kx +6UkbOy6rHjpM1U+bi0EtijbZ7MDCuqaB0G83JOgtJaqrSWn2Gdr95wJIOLe8X1n3 +MR/Th1csKLcDiA8sGmK3/DuuoRFtDSiT/z2RRvtx6pz8Swq6ftRoTdP/8oOncuWX +vQXuMe2i7YdN1xOv0hPK1tt5ZwOllqtgdG4yabsYif2I+9vnr7NSAthyJLS1sREf +IPDWRAa9roN1OFIJ4dl8e2SrGTOZUW04Lfi/bmakkzrXrNlv+I/ZJSHAHbhecPY7 ++hFhl7bf4WrHMmC3mL/t9/c0k5U/IlCYv+NaE9HJvvkLJO73Em/A58FZIu0WCI8g +MiJec8utHPSOYfXCuOx4lSfwNZT71Ct5EYwpPYwTEHyMz3gzwJ6Ews6/dcjbfllg +PFFOKlRQ+2NLPePJJTKao0+/aDde3A/MqemIksndt4l0O88gXATH2L2xQUW8nPRT +cVCpYYeGb7MMlRs1HrSfv+dqyN5Nru2EhK4+JYg6PDauxE7agBgmEfEFqgm/U0HZ +993ihlmoKXQ6uf8goQlcw/bNb51oJaGfO4kCMwQQAQoAHRYhBIGGSgN18ngQZP6O +Tc/5+WdA7ZVQBQJllF5FAAoJEM/5+WdA7ZVQRsQQAJtXGfu30oRqALvnZPOgr6LB +aJcDKxFreTnCILpKwic/Xtd2xtuUGDJFc9xILF01lo1LC+2HRuJl8/hMUF5l+9PH +C3sGfLFOHxzIuWxPvbf0rsMerGA2wwOsCyUzJpiMF0Hp4R18NymiIRKtcGrKc21p +Q+/qAb35DkqKT+C/vRL4b7EgBqjWiyoPIcQpYrl10FNMLBWbLFmAJ5YpK/CKIXnT +8vsh0V0uC2suDA3lMKqrKJ2SFQXutPoJ2LDa3xzRY8DS/qcGAhtBRSx33rUTgO9G +M6bAabVZ8u2mbqcYtsl65PmhdlacUdZJs/YcWzLFYz65oIEF+QJEKu27dSkozp9w +xjO83IVVzi8Z+gto0PpC1TTFqnGIR0GQ8Vxv65R8mmnOlBrylIztkEOSRszukeLD +gf6FkOoFibWZyKcfrHu7abTjyJQUi7m3kBj6msVXSan6Bkk5/uKCM5Gb5wqilpDl +B40RLFJ9w4/I15rqrX1b5FGuJuS27fp6EsDQ6Om1KyDOqGQyWqPa8fn++v32EFIH +DwdxrChDV9Rx4ao6h4hcOxDAkY8azlQQE6AK2PPAFJlBrGW6jP8gVcXWhb3OX1Vg +gfkOkXBPwNM3OaR8Bi5/OFDC7epKJf/VLDcie/sEWS1C/rYIIajOSOsUelYBw3xx ++H41dtDAUnD8abrpXRzjiQEzBBABCgAdFiEErSDhqotBNnCmQlLYvSdtLm/PqIUF +AmWUXpcACgkQvSdtLm/PqIV/pQf/RQHfchEDIM8K1T9UUMWB6/cPvTRtevmTS1Pp +4C3J8tJ5ZVpHws/FpbmEYjlh+qYjEf2+IDOxqQcuDBWYg5+uG3lR/in7tmlBUZL5 +r2o7kgJFlMnQ0xrNzDRtmIKss4b0ZchpFo1FVY9T9yFhf4Hda05mUvgQB9CO12U8 +s0/1Q8bb7ed+i8CBBkd4l31qi71bQRIorYiV/WDi7Rur4rmRifCAHU//LANRu4xs +zEESREZfdDlWRe/+nV+DfLEBOcEoFyyUKOTfgq3s4982oTc7FwoiF3Y/RnzSGnPT +81W9p3vYFtvBSKcXT8q9gdpuKVNuqckxSTQanjWoFC33VRxzM4kCMwQQAQoAHRYh +BClslNvQKAJFv9OR13tSlkjuhXJkBQJllF6oAAoJEHtSlkjuhXJk8r0P/RaCfspm ++dlk+X0CPwS5NB/5PXuUOKX+HkdyEnvw1BKOaLCtoDn6eKYOfxec9X63THmaDRxY +DS3NVvubJuNnj0jvc0wZC1S+JnljKH9//bBytOS5vaFG6sGlrXtsYmYDuePUV1+p +lPM56jELbhF43izUqUjiO0l32s7cZUONrXxBnZVVDU8bX6jADAYGDUTOG0/W9Pwu +rHmWLsjronVk73SQHy+fFnc3YWJLn3YhgQ03Wlhku/BWwIwKhbkd41LO6NKg5c6j +5PN9wsbnjwoj4//B1mUaGQrrs0A/aLlbnHXkwYnEGDkwtDDc/7aMQptf5ibw5Cuu +7+19orY6muxQcDoPrlNgOlZQpa4dYuaklqcroyyXtWpjsl7QjQq9Pjd0aQsamK0c +Rxc5BJAi708xTVdz5AFRqr3Kh5IVSA+vh/feWDPDiGaiZn+VBdpjQnNpQv9XfNOv +MGreRRWMnaEmSP4aoP+EQFAbJ6AMzMNanHwEqURL/sfyRInwQWU0Ib0slXYJ/1Pc +8B4Qx6zRfYD7sCN0ITrQosRkgHjAakWD6O4TKrWn4MvOgilpv8L0cvFTDtqoBadz +Wrg90EtnJNj9aVQldUEf25q3XFJQRBThgrj9nsfWAQrBnLVQYYRNEUYDXr/dUPz8 +jYEKAq/++V1QViOdRQVDVgvPLQkhOxlx4WogiQEzBBABCgAdFiEEsICXn00EPhnQ +WjacYp747gyLgzMFAmWUXvgACgkQYp747gyLgzOfCwgAw75THwrYnkaZgreXvJ0B +faaJqMwV9A6XTZqhQPfWOluS0uDf2qvb2xkifbYKYFS1+Zh9CoSS6PG6jeN2eiJ+ +pZGlwDnRPnWW6HmNCIVowHorN7/WikkW6VtgIkStyAWs6ZbDNDe6DCmdaUPl80nB +lz8odz2MrSWp8g8X4RwY9Gn9ZzjPMEg9vtsfmE3fqrxAFOFXUwnFelIh/gVSzLve +SFti8xUT1YVp1h6G+idxRtNAa3B4HJmt6J5maYxShGYazDNpECUKbWhhxLZs47dT +p5JSMK7+YEU4R8o3g5l2z67FiwhzyeeDIxiuLp6jHSLBZgLxCDa2BFnGH6Ih3EZU +dYkBHAQQAQoABgUCZaBFoQAKCRAQkK8gpapb5owRB/96vSa7bbmOqnw9qSI1APpS +oSBG55BWcVSYtKK3juAxpoMqECNUcOee6ZNug2UujY8a6e9wQN6XrLZcHC0GfgTW +EjTnOEYLa1DSOaHykeGsbsn7vSTP3yWnqRzVy82A7K48NSJ9WuEMg2L30bQlPzfD +YdxRom6lm9fNCGY+pnXNRbNPzaGXvffEpNO1hydOAXJcLcgjHQU4wARwivwJe3mo +yRroV8dxghzZPwv/Z/yQtv9qi/R8ePURy7TUmHQHFXdB6cGKiRzUqSqPIB4YBG0+ +doGUmM0rcaexLT3bxsATdjlp9BezBMjGfC0zya0qJzgECzQL6ZqP2ZuQcr9VnRHZ +iHUEEBYIAB0WIQRZXh5FmqkINaZCDETxSlpMnlsyegUCZaPsvAAKCRDxSlpMnlsy +eozSAQDvFfm/GTRBffAwz0vQz63G6OLvk8fEQRfRmCk7Oz7KVAEAy2xbAIR6be4s +K7269dx836xUGMhnlaHNEeJm5LWoeAOJARwEEAECAAYFAmWdqGoACgkQEJCvIKWq +W+bsIgf+MZMeWKF6trlGEMMA4AymDy1noGNh4RhCIMTIMNyNbwolafGgAqXm1SU5 +XWmy5DFX73shK8AUylHbsQgNWP1DvFrDuSJxvV65A7kAaxLZL6iUM86ROU0/JPj/ +sIAu1zXAS4dApZxfoalhtPO0khA3NwsLsRC5KoMhqnflAMqjCLJGU+hUeoRLaRl6 +Wbc+DJDK0Tku3bSe955jQwWSX4n4jvXEY8uWCz9O7Jpdbq3InopxipjaRAI2eZ1c +x8+giU+dqf+t4PYFWG2wEUj0nYhiJPelPlTZjeoj139wYa4LaQWQNsx/DuNaN/qh +eLAsSJjEBCLilcGeMjmwxTB1Ye12V4h1BBAWCAAdFiEEm8khXcnQ1jYW4dNowNJz +SkuCZC4FAmWyHOQACgkQwNJzSkuCZC4/NgEA1i1SxAKy0iuFJh+SEaRPamBm9wJR +6Fe8ag2puHcGjQgBAOse03HZ16J6dclkKiImzPOeh30OoO7f7XAlfsGCAoIPuQIN +BGWUXHABEAChE2XRFvR487S4XYimW6Srob3N+l1kNjRG7+mJa4z9bGSjP1krRDF7 +hAoNoMB3xvFePCiBQsoI0uh6I9N0SfCq8/bNbIJ4mKmbFfRQ/Ute+qVjqCsBjVIw +9BAzXriUzIenVcx/Vc3qGVxOIj0cFVVD2BRz4KCDk7bslcOFyXB0+4dwAP2DCLxY +Erv5+8woxgCc8bxT+lIumv8CyosLYSzEbJ0rsEowQzYwoFs20HrtKphz7Laxekav +e7cWySDRmnJ7Ka7QO6Cnno+Uq2MCEV+pyXCKUkhS+tdzTJtOK8wBh0dgJATkgLg8 +fv5prFr5hzZol/2/RNdupHjNbpYY0S+9TiVErbmPwcZ53P6GAVETL/RtEHSFl/D/ +ZSa6cjf3iMs1xKLc5PZOd+7F7VG5YULzJzWZjDNUV33cqdbAb6LtyHIMISkaq53p +AcUIG0z0OJ8rDxraxCfPB6i9PKLJd30Lor8MJrhZDig4NkY/8Ai260FWiEP5JFQF +P5gRXAVThSJh8sSmDz9rWP3Ojhr5twnUtQzoACAkMvW6+OW2gu1wZ/PiUkdOavG5 +mPmSqyiGcX2tUdawdXuWCfbdkcuW5lmeFF7SVd2QZBRh2DtvkLDf3v9BgsKhtLHD +iYxDwFiGTRiBC6m4foBm+r/LybbZTaD7VAvn7h+2g+NXrB4u7BDlOwARAQABiQI2 +BBgBCgAgFiEEirBj16TFk52pwB44xAZah8cfaEQFAmWUXHACGwwACgkQxAZah8cf +aESmrw/9HmEu0OVw5TSt+uG2nGixGa3RDUSvruJgRrXIkYh8u3ce0FqwCPcNrVMj +oMVlQbHR7B1TNxIc/HxN/QoObziDM7xCICRw90KgG9KBR5QkkplrVJhUWwIYmVOH +SI8GJ4cdKxcMqqBTsoXzgVIbY4DYRLgBTbTbw+udhfB6cRFnzwo708cgOgz6AFdW +X77KFUnkpKSnSIjuoKR6yHoxjoS84dY8Ob/tZ3XPtWGFJdsWjQTuCUh9yfzmgm1W +4YNsWe6B9JXtbGeV+L7TOmtEA6ZVPUXggWfcAtCpRvDDG7ZLEM8UE1WSqg/48XG6 +novP/rR3btWbg0esNpo+CN59gTjeBRVdar2zwUcefHDOejqvt71X6VPRHOmAlg1c +2SS38X0ws4+6icv1BIOQwfJue1XaQueREQP40kzyTHfTe37UEDfW2sGJlkq70wVv +qK/2Qf6f8FQ71agIT7NAGEA3v1fphAXNcjoNDZvDNYJjxYJePV96b3IjLZk/fxDR +esdocQEXxSQYXOFnKpFLfWInJ2FfbDeXHMCv4agPsr7/jeGP86rTDm4RnbONCueE +hdLxDtjGiyNBoGE0v8eYvxrvvxexnANI9Hjj8U25OY7xIw/J8b8+bFvZfnCNIZju +0kBpsSGZOYdsp/To02UB/B9IfnNxgwe7H4CAg49/YIDOFEmm2lI= +=2S83 +-----END PGP PUBLIC KEY BLOCK----- + +pub rsa4096/0xCFF9F96740ED9550 2023-01-12 [SC] + Key fingerprint = 8186 4A03 75F2 7810 64FE 8E4D CFF9 F967 40ED 9550 +uid [ full ] Sendmail Signing Key/2023 +sub rsa4096/0x592DCD45F765BAB2 2023-01-12 [E] + +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBGPAfZIBEADhYk0WirJ5B3qPnExFOs2UXD07+64hyIUT1UahQC4T0JIUQLyo +mVgKIcD9yWDdYEFlEIasifCGfE3QaNJCfxa7yQZK7bmXfKYEAhSxUk4RNcQ7e1lL +v1/Ngq7r3P/7aNp5YWZMobG4qeS8+6VneC/+f6SPajNEj97q8XuGpEw2oNivnb0e +hJcMDmwC3A2E7OT2drjdO9fTs9GnqX7HwoDO7dopZbU+ggVFPHYXUxvagBqKsnWh +2QLbJHhiWDgGmjX13s2yIdbq+aHyfYjTvAN2Y8Ej6HERz06qe+IAwRMzC1medASB +PZlScf3iWfVeoIuUb3nrDturpZ5tWctzrGbX86gJ5QArKMF7W2Wkgo3pDHBpojnj +T+LTzDBC6DOAlBHxMnwbhnFMhLGkUFaB95Swpipx+Ax+dY6J5/KELSYin+DbDbLQ +/82U4Vl5mPe6/+4W3Rxudt6kJDqgOvV14brp54fDXNFvTav23N1AeapkVv7CH7JM +KQ8COVtHlazqi3a8NGiaRPLHcvFl0kpLJAFLePHCIfbgt9O7KKKFbVvm3Npt7z7z +5c3xV8UnaTw5MCML6diJTVrPdiLXSIhny2WFjG4Igu+MyZ+9gJkbb4E9cl0Eg2Wr +FFWjUO6SxBjQuoeKqOAKRutHVB2emnGjdFp7RhGZxWl+k0KCXCCL+Ii2PQARAQAB +tDFTZW5kbWFpbCBTaWduaW5nIEtleS8yMDIzIDxzZW5kbWFpbEBTZW5kbWFpbC5P +Ukc+iQJVBBMBCgA/FiEEgYZKA3XyeBBk/o5Nz/n5Z0DtlVAFAmPAfZICGwMLCwkN +CAoMBwsEAwIGFQoJCAsDBRYCAwEAAh4BAheAAAoJEM/5+WdA7ZVQwu8P/2DZZGhX +eVuWGqss2bGNJWOKjagl1LCHU13OYkWs4Cc90ojGZ2Ls8+wPNbl57EPcUOLp2VF1 +h+gozkmT3XOZaJICno8On17MSbZh9tHwKsu4XnQ6vvDvB4J3dyusU1HJ6LKpBWcP +3ih6JGaye8X1c0jCxVvdzB0QSns+A4MZ70X0o2ymrM16aPs8qcMAsB1fZ0iUEsA9 +o7DysAK2zOW36sAiAYiOCMsQWbTwdOeFUfmLgVkuVioxFp1+Tuy8LyDvelgkcA7n +aFupVw7ke+rSmFLNkZ7txICaxVPXqy2m3719k9GY/Ra9Q6Vt3iL5V69sWSnJodt5 +tPOEquApq6pfZiH3FDDKy6rxPk0yYMDh+ReAASXLG48idc6Db7kvhgqRio70C3NA +rwM/l8x4YVBB5LhNYB2Oh5eR88OCeHjjgtb2pO2SgXhXOHzA46SP+pxX7E6XSmnE +DBOeBtx/Xr3viw06lBFEXw8AigARMXs0CvVAxdTHr5NkymlZMn9IIvPTS6P7pikI +KHRK/s53UCOiazNmIJUqpwPkZKwrMtG79ewAYsKkDZ2vZ1nQlhzIahbv39OkJGzY +x63GIOrc5QfFV0ZVip66BoKulA05HcFfOBS21bQq4bgwH1fAMUkd40XhBCHE3PrN +ZjSETS+YJk7zFIUoAzIQIrnp/ieQXChV/hsNiQEzBBABCgAdFiEEsICXn00EPhnQ +WjacYp747gyLgzMFAmPAfpkACgkQYp747gyLgzOsEwf/YZs7y4fYA1K/qN6GaUtX +SqrktwJSafO1zfzCcXDDr1vkRjGr958Ckd9e+pDvPebBHRCnztFVr0bq7zfVZI6W +kkp2BNt+6LsJY7Eh1uin/VDLx9SPHjfO3gubyoW6RD9HSXRXuwBJ5eMXclymNQLW +AR8oeAWl6RMZRe+iwdEXUwS4iVPlJwVd3OOluaRrQ2Lgc1/pbFIPSmgf1dpDGkW9 +8wtlWCQ0rPgKFN+IL7A5s25YQf/rdv2xhYxVpTtzfTto/6Pkznf40O2zB7pbHNqx +Dtz9AFAWHxy2q/Dd1xELiVAKO63OcHyLJ3jXa/MIYmgD6L1A5w15Xkrb5zQXnfZy +64kBMwQQAQoAHRYhBLF1lkRTA13O3XvpGWBN+/KFQQq+BQJjwH8kAAoJEGBN+/KF +QQq+5F0H/18B1V7RcXLbdUUoFxXdAjAi8q3xrt4Q9K8qU7CnwjBiEEVJOs9BLilr +lYGWglPzoidXFH4xhkU5NIZml4TNTAz43dC7JHshrTiYT/47RlK6ZOiL3TMlGlfB +k/WxziZmiq0s9LzpKbtzHNYUwPlvajF5XhhB56CgLaHMcJvV/0h7aupxXpSaPRJx +sL7TpxRbHwUMMHZU8yTg/hqoUPiaOxGrCtDEGPv68I7JDFnJ3mCDJ5HofFp+umo1 ++BeDxwA+Ww3M6qOU9tZEcGbeDwbaq4K3DlOT0zSYBWsTebABvUt+ZI7YM4Dw30FL +hfoh1DqL+84XmGwVh+uehTAQciLc5XCJATMEEAEKAB0WIQRYcmIYqRNADeZgNgE5 +pMd9qXiEsAUCY8B/NQAKCRA5pMd9qXiEsFiaB/9YtG5NUXPb24BR5+kJRHorRzsS +FxXtqggrCZvKux5Pxp/PB+B6mFBu+Lzs1lH7p3FRWjFe6lCtjuHZ02IzVY+S8VDi +tfn+RY04Ie3gmLPj7m7oIxwtpf0xAhNWw9WsrC/dqRk+Z71m9ZAWgLSUQOEdVjFe +S9GrVsMzZAGR1khN9tTuSuBWIvf959A92AcppVKt0BeZGiX1hXuD2jNlastn7FDx +Th7tNs1jEwcvB8N3/HleziUtRdNLTpHhyL0Kj3MAoFWl3vYScfQjUsyzmvp/xqX2 +IFJ+Wl+R+GX5lRvim/L8mUhFqtdoi9gHKi4zQeSX8euthSKqQIeE9YJ6vbg3iQEz +BBABCgAdFiEEynqPOaJBn/+wqasnjlrp+87u9DsFAmPAfzkACgkQjlrp+87u9DsW +vAgAk7MBqFo7zWs/50346LqeP/D6DBRJ0JQ9k0b+WE9C9hnm69B/k/y1lwye5nJu +3O7P97WQ7Id90tdAPfiFGpiIVf5bTog8Awps77M1A2m8cuTtkyevm3C7IA+UeETV +5K6v0Mq0xF4AM5aQkpmlRWUfkDJrmePOO0onlKtx/qgGI7wRUlpcBXa9c80U92ug +3zuoGLkCNFK26NFyWKW4TcJ3JazqqY0qYKZvem84zypx83+9RzLbAO+MbOFZmt5V +ltQvNe3+Jr8eM4/QAMI0JamRWnYiaPrqXd0LKNm8tjgT7g6OougGE6uz2X2ZnowX +GjnQCSayuqKbaIsjzwyi1o4JKYkBMwQQAQoAHRYhBLh9RWmG8ZSEB+XMtD1osl1S +B8rTBQJjwH89AAoJED1osl1SB8rTneQH/0F1YGWsDVYZmJuwk9YdCY92PDznDWqB +jRNRhLvvCwFlDfuOsdRMxE7JF+n9J5jtxS56+Qgg9GZBeH4t0K0QuxFr5UTO1pg2 +HacEAkjCajqWsj9eiNqM+FkSvqZlhJ5bsQrojbz0HbvjSBqz0VJZPPFvFfW5PnRf +Ks+pYgsYYYJJr+1pr2gAd632MXXeVVoq59bHfvSSsSBj5pHIOk3avRSUlexKQAKK +Zguue9Iz/FbHlwtS6JU3zF3GXlVEx1dKi916Pj+qZc5NWqeVj2BFSIkFMzHRnbnC +5r1J0wnmnrEAbNjXLRyUUAiqygYYNjoMD5ICSdAQlHaIlTelTNZrGjKJATMEEAEK +AB0WIQRJ9qi+hHM5SVGRbzth3hHs4nY6cwUCY8B/QAAKCRBh3hHs4nY6c24iB/0X +vLosenZl+cY1v4ziEb6kmpw5UIiq4dk/qiu2E7LSHdQsiRcgMc9OJSiE1Txk2w2d +RndDoGHmUc5fWHM1L87a1UwQkGDtUcZyvktIRY8C37Jlqa+o39Rfmoc8m23ko4R9 +xg1YfHswPjIw0KeDC86mFkjQ9l4lCVj3FNy8SZ7+XGLPGLonnAp7y+bMqjIPPSgx +a4ze2V8J8PiQisUQ1qoBGLupUShdyXCo3fasIVcaHBniVamsJIdWU8bcLxLeT6rc +10JjiYsY86xiMNeDuSQeamBV9wRD9SK/65sa67ZcJKEQxlDbnj6COhHWtNiPWn4j +7kQoZ8rzJmbG+rSj2g63iQEzBBABCgAdFiEEMLynRwX6QVRVcx17qvW13gW9zFMF +AmPAf0MACgkQqvW13gW9zFMVNQf/Spe1/kroQ96SexHLif2N489Uk5yQkyHePY0T +IgyIy+zA39vGcSKeAP6GY0jNaB5tSqtPOhsMzbcmF1r3R9/6BXPRYiXFAYmodqY2 +Azi7DN0HGZXvZ06Vax1fktPQM9SkM1aIo1tPR29QIWB6n3PmoQbfm8azPP7sLkhY +h3SrEY45836PyYhNv144AhcVNt9DH+X9ghPzOd3+pxxODfcZONFI0zxI/sHVUmzw +n+vvoG9QWYkubHf46hWKUdPZS53Nr8lJdGJ6Q14MaQROc0WXSD3xDDxpTb3/LhVB +L8ChtjbFW3DO2LZaAGzxlhajceTHkZhsTl4zFXpRtgqq392u64kBMwQQAQoAHRYh +BA9clq7I5p6cjlQuXG1M0ZQp+wPeBQJjwH9GAAoJEG1M0ZQp+wPe4ckH/i+wcoKc +By10pwp+PEa19icMw1yHw8nf/z6y8CNBx8w+dv6c8DAwj4V66A0jqzR1M1JhXHGj +kawT7tz6xCfb1fFDz4142sujfALzUoBhnUVZdsuhLuUbP8yfqvy8ZzC0eJyL3x2u +DyNJyhf6QGT3n0sNzMgoKPrfHJ95RiBBK2bZB7Din9hs2Dn+Rwmh78yRzxrF84pp +KRSlIm/tK/oyriggFjUluw3QJUoXQ+Dr/W46vGq2Yd/Q6z0dmkZaXrhckSsNOZgk +2PZq9Me5sZqqUJusFKqp7uqrG0Ck4SqYaDPlVRW3MJqpy64PGiFpSbz0ZcgDMEkx +DTK/3s8EuZPM66uJAjMEEAEKAB0WIQQ8ih6Of0TK3hFP7UZLyb2ma/cmrQUCY8B/ +SQAKCRBLyb2ma/cmrSihEACgDA/XzgwagANu3Ckz7lHKcoMn4FEiIpiWoV8y4wF5 +k5Ku20QYsODBaJlVxn/d+4l7sRrlVd2VqlTNuR4J8Gqv0504iic9vxhIhDZ1AmLy +Whn6L4eildS6fxIplSLPtippMbTiDuWATuHNy/nC/kym2eZwfPhA/D5XJGvBYadK +6oRGEW8FkQXINe0EPID4kk47w/tY3BwVNc6IwBL+ayvdH6OgK1ojctYkJDGH7JGU +C4/EJb+gQH5x/B6vzh2hCqxUMjI60v1Y4bKGLhMDmHEzJnRAEC04m9d8D1VIGBwM +dhE1wFlwha7BbMoBxeyx502Lqi2T5UYYbC3lVvN70Du5NKTRvgNAb305nKLO/u1r +l5UrRocediaZA+aKxzgrOH0DVuPumlkM55LmyQh4+SG+/Wx8wQIKrI4mvF6AAQms +V+YUnhMZDbttTN65wDgIVuWbx/rbooV4UC0UTTGXQgA32XMKBrjF4V6v/xVEvD21 ++Pv8hsERngyPg/DmpVhdH1nfzwBIILOeVKEwUfxqat2M28Nh+Rtud/tloqcTBRD/ +CeweYnfE7bHOWa6wrdHgs4ePE0qRKp68aJkZwB1AEU1f3zLHjYTEPA7jsDXpQ7Kk +UszUWjXvaOTo69TATJOKE+JqcSgPgHAocdfnq3jusyOVsxv70sADbhHHXAMWbr/r +1IkCMwQQAQoAHRYhBKaHPSSk1tYoSuQqdfBgWf1dx8w/BQJjwH9MAAoJEPBgWf1d +x8w/e0kP/iCb3A4w3WEjyff2/Rg/+l+MLj/2sQTUn4ESPJXoSzv0k8Ug0HYIp7oQ +qVM03KFJDkzgrKOv18LQmFmkxbhgPblDr+rmfuUhuEGI8EfJalyn0OWUo5K3Mlb1 +1Uu7JsDfaY/YgLGuCavRU/QmPVkiut8PZe2CcQTCsI+YaSGK2p8bzZKxYDR6/Wft +p+Wi/UD/K53goa5fr2zH3aGlXT6jwewgbocnq/hrlREhyKuiaYj/99mpi/LXX0/a +829ObaLO0hysSrSvf6xgDvAdbbkBF3RGAXPTshfDfzaWppCLdGdBSut8t4fw4wEu +UA9SHwcW6zo3gs++lGUOSWv53KKMI9oSyIJFn1SQAIeRC6qPSPSmu+LkejydaKlO +/B3nmDdNwTNZA7U3W/amRrFzmhg+vwBWQraLnsAoBO/MdVDrVR9OOypvj/PEK86J +kF1H1Y6YbbGz9Xv/XxksAeEKafHx1057QR8aZpec47WJRaZqqh3g1D86uMowjYrm +LKD7mKGq54RkN5FP0/HiYPev81yc8vAOhHsnTx37DGj9sGiloiOSZI+V/D0MoZXb +g/LoxJEKL616hVdFhloJP4BaRwUVtC0e3kKayCe/ND6IzCLGsG3ZVUihIghz/bLL +7nN4jdkiIQvOqGnwGQoho9hzI728ZcJDQXonTX/pbWGCvZBs7exciQIzBBABCgAd +FiEEUKMDCY6i3XvL7iraCeAfoDwMUE4FAmPAf1AACgkQCeAfoDwMUE49mhAAxgOA +zA8tKzto0jM8GXYHhopYA/xFmFOjfXAgnUIN2CruDqUdEoRcmh55B4VpfA/yH6XW +EnY7Ll/bT+v5SgR0cZ37bmfqsWLWJZ2qFRF2xLBMQdBWhtI8ZckrfPV286bHAoEX +iDERHjaGYfGI4KV+gVfo99/SMCMc9J7cirIBXdAhZl/oZmLPZXDdYwso8p9Ypls4 +IEU3u/DSr/91XVk0QxjdusXi+sE0aoAPYZXzgU33S/Ze2VmYK2IW/3FQqxEi8fp6 +JdhCiSuOuPSzDzOHHZ69PkkJrAMR9q4pfHGRFeqHDtR1IIsHgp6x2Nllsn3wXybH +ViBPW4iiCgnGO1cUyeej+okud5zM+T57D7wlC5YSuTtAhFp2T46ZfY8uMzcAtREj +17M7yZfJq5CIl3//jRp6es5PrxNIADWlQcJugx+Bqb920uoF/wq+4P3boVL5KQB8 +VPRC7TpJk1Kr2jUQ8AsIue3sNPAeRyLeOSdywL1Nc4LJ/PVLOG3CVMd0/GvpDV7r +bbNiQ99epowSMhe2tX5BfThA8gvXpXCnryH9ZP9gMYL9aReBgB+fWEQubR2C9/fL +ChHQEXUFjVbzD9AAqrP+IsI+k3BEx/xC0mqdH+K9r/snmsIvJZpHnEDI5FDlFcK8 +OFsnAJeUHgxnn5YpzftpCiSEt3/4LGKUJsAX5jqJAjMEEAEKAB0WIQSt/bcJ/h6m +guWFWXHVgyEO9RRxpwUCY8B/UwAKCRDVgyEO9RRxp3QUEACSDSNLfjchj8I7cWIP +X3H/I6pWBgLfNSaG8HOUJLWtVy1sBa/CjahoARqqAfVrRyxmmlWZaqkL7/MSdHCj +Vub7QdXoTrygw32CKcEgDhuRfB51DxWzqD6uZg7a5cdpMzWcbyxFXa498CLG6YZS +0DUYkhxCC7lolyhS+TX5JhLfv2mEYUn0Ut5WFPASEX9ImYDypSo8xMeBNoMaU8GR +NCDVfrFHXFvMVbJIohy4tLWprSZ0tCiSQqGeqj1kwfu2CaXu0nT+mppv+YN+0kJf +YG1SGGcjZvMBYuN7TAEk6k5dhUK5oV4NkN6K3av74GnOenjo+9RU+ovS2TSGP5vf +IAq1mOYL972sB3tSryrVakhNrsXF1Pp8TOXcU0nu0yX1hdZVaZyglmJyZWWydhGP +h+M5RFPEqzwan3SEUm+VL2IR7DYf2JE7nQ5eNOZzUFHpFqMGGhMsLG96vzct3KiZ +8EGp4ohGrkP+uomyAiBKTqyPuyhFkV0edWCQfblmXsENi8w3VJN5z+fvcMZ9UDzg +mU5Pz6XSfh8bQf9gdRB5803TcIbj5bpYsA23UPeJYwa+MlLLVYLl3n+Wt/HwwSLk +me8dZW6BzjRWiDQ0hPjM++TxIPUzeI5p0VJlaBWcNarKe+z3XwJlfQ/hGLjiuDzn +v2gH1bJvp6OuiVeWl/45quB1xIkCMwQQAQoAHRYhBPTOImMhAlPWqfl5sExm6o1L +7hvuBQJjwH9WAAoJEExm6o1L7hvuohMQAKCChgHK1Y/JaLMGkoFBThyaVKCaw0FT +z5zvjfqunNgFWnip1wQhi6inxvGcjoFFtp4GwQO4yMDkN7dkn5NIcmgePhJMm3xU +cgLvVuhimNmvYyH2TduMvFOlfrJEPURjxRGc6LUUXincvwo+C+ydYFJCkWIoEgKW +RzSY3qsISDZmXRY3JLVRjXqO3nnvsR2aB2bgOP/EKS5oK4fjpi8nMBJXX6w6cXFH +4V/evwpi0IlvELLzILrq4hPoK1jpp7UIUOEC7FJkoFmrNoDvR9WFEC16xoKPpcc7 +ophote6HyhxZc9NKEinTHmy6ICAuCbGL2ADdD6UJKQfclnutw6cjEzA1Huc93MSe +1LOECsRq27wZ0Gb65qQNiS50oIpMaLSRwxMywLiNbyzdBOoS9P3mtOQLPihwW/Zl +BdLW29LqTf2NPD/YGWHn4tA45BaTA7Q3nvWIXuoupWfboW8yOxplGSxaDSGfmWhf +1nWPWHQm12fSHWHTBOX2DL9LVmzERzbjxKJVK20acvwFWbkbJnTcNZCYUqh5DBHA +FKOFjJ5LykxqIAkLaibqwxsHtaXgWVM8us6UY8fQikt68qMZnd3CUAeHF6xUVWfh +nJLXjqGcGl7QMbp7c7AuchnXSVNw+ziluzgOV8/ADHAy2vBwISirb+9RylhpRwxK +oOcSf2vSNE9tiQIzBBABCgAdFiEEYyfdy15+gOSYfqO3/XncDIHZIQoFAmPAf1oA +CgkQ/XncDIHZIQqAUw/8DKw5e/TRjFx9a87GaE+sPKn1oOMPmqq5lUmTEoFDtKxa +KCMw15eoGokmy1Lb73bxHHdpShHuo0ZwwtJpGOQC9aXzoVOLw9PJ6QamU61yoSGM +oAI7rhbYuVVTf8i2Oa/UV4sK+Yc6kzFgM7kZManj0/MF3y89JTnUYkhZ0pvw8ndE +eRqqElV7derO6ANWwNv8PntkxUB4uP5NanoyvScYqiruIWN3OgPEfqvf7loC6yMe +g6I0/UdJeUAGERkiGpVh9HnMxZpIxVIVFmA8hFdvR1rDkxTaFVxx6rlwObNy2ewM +yeqdF/eJm7P3g+z5tX/f/LscoFXDEHPJUf8BUbQCsHyQcvCcHh3dLa++tTMEpHdy ++zjSH/u1CNTfKL8EaHMsffQbUEKqD9Eo756mULzNcsdScEQoCwOyX0+nh5uoZ7UI +JMhVXDfIXQ1fhtGv3vSy+LdAUeo6yA6F4V4KTp3FrcpBRtcUdmmD377wr7Oz0n8X +k0Yhty3O3rlRAh+ZWF01sKe3ghYN5J5nktszDOh22rc2KmJn8VbTaNyzBzxB/RQl +RqyQYxNaBk9jRLRiafdjGjBHvt1eVo5/WyqknD+j/SrpcY508OLM524o27Npl2MM +xoOwvBX93cVmZpDYJFwNJloyT9AcFLs3qeKfsntevolwbPoE9pLCB+6Mn1DU77uJ +ATMEEAEKAB0WIQStIOGqi0E2cKZCUti9J20ub8+ohQUCY8B/XQAKCRC9J20ub8+o +hSOrB/427yQ7WhIsmadnyGOL8HUcE1YGgAz6fWiNnIZiFntHbBKZfxxugGXLj56G +TqZeoTy3cte9icOaZxbOKNyQrWwYGhPueShbAEGqU837OA0vWOF3Whbw27EPgAsa +9gBbQUc4QPM2KlNOglZ7e3m3wMEFEdOVTxw22Dthq5xr6U5gj86sug7qOFax/MEs +1RMCFdy3DLMpS+lbgwoSYeYb6flTN9fqdtsQ1iTzt/XYyP2PPE5LImpDY0oh0RqG +EndfTbCi5hvnOgb99Ws33ynLzNVBlNOalc0QOa6zexbFzrsAqipFBlarRkHzW7GN +B6p/o9CP/rdaMsfJFPbPCgotkIk3iQIzBBABCgAdFiEEKWyU29AoAkW/05HXe1KW +SO6FcmQFAmPAf2gACgkQe1KWSO6FcmQkzQ//ULifrn1CA9hOcFv/wWikZ2ZmdTdN +tBp5JeyfCspKMTk+s3ojMvbD9iXcOTn6bTAzCiVVFoK1vPrwOd6pW7yBxyR1HTjZ +5lu1/mW/lF93ASxEDGOgk2I1v+I6+h73E0S6KYMTwLt/D/RBBkgeRA8/zbY/ig7L +D+mfUrxILwJurPam5Jdfg120zidY/k6pQdHdAtNk6Lb3z0px51SrdSZSKDiPMu8+ +idoCEckl1EUoWXwrLSc1794S6Aa6PmfpJjvkjtV20Kz+4IaFtZWbtFrCid4jBI2g +HUTQY6ZaUFL5ac/k5alefjRo5PmSqCJgTMPjC0ZeVjbFmhructO+/4dBjaUe3Kxn +iwsfEVy3QAte6VTA4nORD89UyX4A+vtiosEccKTSIXIS08VW7hJ7OfAzI8HWiTxe +FBHuROCgIeEqQ9EHNJ9zDqC4nEF/uqWdekdRaKMygkdFI+XY/YC/f5iMSEZgyaQR ++AMRhA6WCXZ8zwbKlbXShsB7nR0n58YyNxiHa39faLTsKXgPGFI4NI6nigwSuo0V +5E1k0LaqLnbUpAJHhY3F28XO5Tw9hn9EHYesHFjFrtk2V7aP2ZTLKEqUAd6UDJ5I +AKYQDV1asbFE/DIOmVGLx3Rn/DWqs/EAnRF0kvKPAShL1YFV3Woq4wx6x51EAQUl +wwwoTWZoVVVTj1WJARwEEAECAAYFAmPBLE0ACgkQEJCvIKWqW+Z2gAgAkiljOYsP +2M7b1odb/W9MqC9a02pXPYs72QIV4EYG68XwogrifZEzwH3Nyatt8OW/MxyFGbM1 +MyV4N8ESQYQuzrbbESsZj4/pd8gYMugewuOkBqpiAsYQMN7mPk4AQlE7+EVrUv1e +0ILz/X6Mvtf3v/Oendz3GoLSC8G59wN8CMmiYfKVBBvBOHkMcAR54DcG5qUm9qrH +9Bj2xsdT85vkjBP57A6QJA8CIPL2whTIj4uh6ITdNJ5Ux8naELn79+nWN6I3XzyY +mpxIp2k9l4O5kPKnq3O8RQyA0bkKEHo1vEglEntT8+Jp6rerF5T3j610Uzjqorpo +acXp4TPhzqBT0rkCDQRjwH2SARAAqg0B0q+BxY903PLJ+J1Hl7paYPeSpyFj+SbB +gck9M7sCBzVFlclkLMsaHyc1GHVzJNPcf0gRmknmb9hAmJFEwEle5aGbSxuTbG8j +Rww8vzP6KHwlBW7ifenUvqjrBuBxGQW/jnvZTtSaMEaLYQVS8e9PxzToAKbUylc9 +Qqj4hWU2hMQN/YQq5jOAv2RMvNTMX/fXR+hlhsnAy3NeXQRltzOcwHBbY95kQ1sG +3UpcDc3soEaZCYNCZdwQuaZ+YZ+ixEGTxfQv59HR3eszGrZoe2lfkW0VaO/wXsau +Gs1xruD3oqnNIDTuzSgz7FKXgTv4QhF4UEf2EtUd2Wt+4IjcBpUPSt5+fDyCHtpI +bP0FbOmFhGjubi75iFa8H997a0EQR461Wde7/MP4+dgOTaR3wdUqGM6nBKhSgbvW +C4pXWOHrrh3BzBR9nArVwRTovu40NpoWKAbdIkz67KHVfBLNq84zUFMU6WACrpGw +0zhE33EQJzb2h/TZH7OsFxOSwiFWYPy9MTDOgdqJftKKWYhWeZVVeHnD+3tbvrag +OuRCHwmfIaV03vMi5cCJQVKMSOExG4VGWSeMrRWcRzSkLj4gSA3R6mb4zzfo3kDH +mUW2UfLpx7Ru4Lswm3AAhsClqZn9/bI0oNVyuErQdm8hFSStUQCJwPrMzdtw7Fum +le/unx0AEQEAAYkCNgQYAQoAIBYhBIGGSgN18ngQZP6OTc/5+WdA7ZVQBQJjwH2S +AhsMAAoJEM/5+WdA7ZVQf2QP/13LppaOwx2NAvf7wZWf6d67M6EOmpBLPSqtGkdi +umr6Po1A940R9lAWAk4w8DZRC1MaHyXNb2G4GDcnynL5xb92DLq27VAMZy+fnCTH +g8Qk0k9WaBuyBAragSinHp4R0ts0uDxBjAwMm+3wjopgJVP0eCm6P1gbXgc1dE74 +xvsK1ak0SEjNJXAyxXw0z6pNOQAoDMYFJglYP7nr/ygh0YsB/EisVxoxCB8jczu6 +6vblp29TzcEapCgWQ5JgG9XZFo8xS0COMb2BTf4kCjJQvkUQ3J7ieDlbbKjO39YB +Md8WcbZ/lBn7YN1E8XTQoz1NvJ6F7vdyPJvsVfu/Mii/eMKbmKyCHoT9p7vrXCGF +L9LAHkWA1yDe1uE5h2vLSo7iAoGkAWlZ+BUPV/PEzsusllOUcWl/0GSzJPvMjCoP +oiRKHqC/wrMw3d2KCEO2y3k7/b1ka7n3ZrUkL9NegX/igRaDosowABmHjoH+/YJ3 +9zzQVGb0q8VqkIyI/r0QHfreaSzU9BYxVe/U4kis04jT4tgVDqeO8cWbIykAQade +uiF3SDtJ0F5IKEwrpgYBg2jV0cj64hVZMOZ8lcb00LEiA9/7pO5SVPsDKZL7cRmD +led0tZf4baoNVgr7rosixRvmbkYotj1qxw1rhhVDy/cg5Wskuw0Z5Fwq4sd6vclA +kYi0 +=c0eH +-----END PGP PUBLIC KEY BLOCK----- + +pub 4096R/81D9210A 2022-01-22 + Key fingerprint = 6327 DDCB 5E7E 80E4 987E A3B7 FD79 DC0C 81D9 210A +uid Sendmail Signing Key/2022 +sub 4096R/03142938 2022-01-22 + +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBGHsknQBEACuy5ofFGpq84xVTF77J5aYl7lmQ0dzvUfUmnnFBPU4A81LFxjt +zjFy3t8Gg6RQUoznK38iSsHpNYaipgzKdk02XRWNLK1vNhPhWePDYqDMewysBnqc +bJC0vX4z0XFP6T+apyjb58G149Qlc/y67T+b8Jy65rNJUr99rQ1EX5lwuz5Sj9C6 +ABmG4u4fZcLsbBZCP3QFC+Vnn+deTr5zzj7qqDv/w0bQad/jzEal7RE3tgJ9E0sa +I1SoOMUgt7bo/osJxZjAzWCrf9yT3Dps8ZhEAATP4rRKLRbZXiGJiSLXT8y88JP6 +LBtpwU+KU6uApVSKDw1OFUC0bE3/hKUKvKe1BUXOEieP0kBdjclGSvX2iDO9Bn89 +o2KxAZ2kCC7GCHBHiSn0vkWxuQd6Wi2N/sYPdqLd2JHpZ58ltBtUE/2jYWNXQZju +iRDHWHf3zZCbB93VS61xpcJm974f1caMtc636GROWTqeF+Nd2Hrx1hKEbJerjqZf ++QbE65waP0Rrcfxt1kECEIjG+v86SucfcyEPfTqBqK6+49dhIgmA/6b+2UgVkvpf +BqM4PZBqRXbwzyfp2fkM6jfTKWhbeJb5JQxHfnzsigJzZhcDfQllhUF4/ec8dEpC +3Y64Er4qL8IcRiMf+Dyaie3u7ZqtRqSQHMDZ0fYKDtjKmTkUrHfwqHWR/QARAQAB +tDFTZW5kbWFpbCBTaWduaW5nIEtleS8yMDIyIDxzZW5kbWFpbEBTZW5kbWFpbC5P +Ukc+iQJVBBMBCgA/FiEEYyfdy15+gOSYfqO3/XncDIHZIQoFAmHsknQCGwMLCwkN +CAoMBwsEAwIGFQoJCAsDBRYCAwEAAh4BAheAAAoJEP153AyB2SEKoHEQAKouC0qg +f0OBcyw5EWd0ja2bPakBlNkdE2FGvtOF81WvZ7f0M0kLNRzGRIsRRBxDVw7Vyin5 +wLxxRHxoSrRMTS+3LbKCrtXqUyMO7Ce/SY77yXKbXfnVCmo5pq0QhNVGE1GSuvxF +R/dGKb9wV2LNbuXHo8xj85yFztFfGRLhkZs5aAaFmq9mRYu8IObf42xCFYALTAnB +95T91EQbixJuT1AjohgMXHhQQ6nNo5EfND21c5a72Ntzfj5gPfUUITSshxSPmE2F +/H/WfaVhkALKdMD681bSoXtC5yByTGkM4UBqNOnppplKFW8YFGiJ3Xzm5vN+5Lyo ++a+8lSLIRkBMJrVK2L80r3qQk4xh0lZiG5sFHvkGYzeWqKb0z9ADIz7TEUCUgpag +vYuSLexegNlYzRG0aL2PbeqVb6Yhy9ghj+42HNmiRGCorixKFJHA70q1uKvcDZ9I +Q4j18hlxM9B6Aj27MSXqwISNEDCiNIYbSI8UfmJ8NnWnhqNbQ3a9lmOVC0JB5TdF +enjTuMb3VovjNWo4LTvQdhAgsQn0MzWgdMLgGzLWmR0fBiyTKS7kMOU3SQqaJd7s +eUTOv3SxdkVGcsqpFlbJGrXwFkpzcay84qeS0afxEpc9yhewzMU9Y7Xa1+vFpqfW +b7eIeBIB38PwGhp76kQ4P3/mDdlRWIHxK5eNiQEzBBABCgAdFiEEsICXn00EPhnQ +WjacYp747gyLgzMFAmHsk2oACgkQYp747gyLgzPEswgAwOi7pq+JoQtQiXYlE83w +QoTUsaBYA/38IuYo7Yf7LdNlpwIQamGNVJtNQAYT4AhMdZELyJUtV5Wa4S/D48Vu +EvoVLVZmdsbcaRWpWvfptjFsdcC9Tc2W8Ww0Vd+lmphMR049vMuqbR+kYlUxelIS +CNhKwyg4GFUL86C48TDvRedvLWRX8moahLntVN1QtDYQ3/bn+JsWzHiXOKQ66Wsu +gg97G7cectwEJnJd8HIRTo7a84LN/gTwt9Uo1cB56pULEA2Xde+oySg+T7pW1eTQ +Vjq8L6gaHl2tyy7il9tQAhs8Ibzlcahh2BfYENss3pPUpMcASrSXlGBuYKofGt3t +9okBMwQQAQoAHRYhBLF1lkRTA13O3XvpGWBN+/KFQQq+BQJh7JOEAAoJEGBN+/KF +QQq+hmQH/AubZHpKbUVstoAa/CJMGtLpox6Enwl3J/FPYsjJXx+xpRZrE9w514tw +SGD8B9DcAM/JC8ZLeo58OuIDGaxovP7Y96El+9a73bGw2HtVzqlIB6rtg3xMNHCR +RvYUziIKi1Axdwgn/LLu9aUOduOUtrG4zgNEp46ZjEci87asouUrw5yqyeSDGSRd +ryYbt9Hgm3WD2cksZUmqYvXfCun9teh5pBn8gn28HPMYzpw2/iTjs894xIW450D9 +BiVIxU/WNub3CA9GjGjB/GRdbVkAEseBmxGBeRx3qjAyYNs+9YUsG5x9bx9zpGd1 +ktNEJ0b9mIgLMhPVC/6z7ye8MWhVzuCJATMEEAEKAB0WIQRYcmIYqRNADeZgNgE5 +pMd9qXiEsAUCYeyTjQAKCRA5pMd9qXiEsL+rCACOFWzHtgEEtJheKj38MVWzgimL +Fsr7V4M+ewmDc0FSAboBzazZiDtjryJ9u8r9nIklfSL9DxjVPSV6s0mS+oUpG/x4 +FI8eb4VSMue98W5kMIC6k9MfGQAccn41iPd25nCp2VcnkOhXIv9s/XXoo74ZJIKb +uIRu7fkFwzhn4kxGiphqy7DFsTwLlsbFEGG7USJXT0QtIj42Wvz086622vjAFmVA +70icww1/0I7gBIVgGmv64AdctCXCJUEa63DGj7Ylqy/t+vG263BBIbz+rM11tCPi +ah0Qc5L5sX3t4ZkJ8eTSbUzqwpD9BYiXVWc6XTLMc5OVjJ3l/OZpDko4Vnl8iQEz +BBABCgAdFiEEynqPOaJBn/+wqasnjlrp+87u9DsFAmHsk5EACgkQjlrp+87u9DuM +VQf+JcdL8c/F3s6IZ+seglYPfLOkfUUaCWKcQ7hYaf31DJULMpTPx6QMB1x4DVns +b+GnSlY7OEmvClv4iDT5s5pRpAxOjJ3Tyud1XqwQ7en45ZvRNbMOsYV1Wzp+JnBW +WU5aI1Fg3K6PFMLDP2p5zgzD3m5MD9+5QJ8mx8l12TbtC/h5yWu9f+PV6DsB7m/Y +zqjiRGf8R3S9+gE9Ve9opnWx6gnEVhqQCNSz2fpmcdxEyTG3Nz8/hJaplVzhdC+E +neuvD7xOJpcVHG14l2A1uf1gv11Wh5HFnA1ESGxyuQuRHaiHN4tbOpH93eVL73Na +OS2rlm8YyDMm1sS43YuB2iNaoIkBMwQQAQoAHRYhBLh9RWmG8ZSEB+XMtD1osl1S +B8rTBQJh7JOVAAoJED1osl1SB8rTuP4H/A2Mqkefj4zFy2HwfrFJ4BOSJDXtZpI4 +SrTmf4+N2WsjsRys21NE+uchZ7+YpkPlj0t+OeXaEMvxe83xOJnJ5w2xpqTy8XMO +73pqvbQLssl5gjcd9e4V+VQKzXMaywGJnU7DJ1+yMrvZqgmdVUm2SVwixViMxDf1 +c4i8mnTU02J0rNUoSn0pZURu7wwimiRisPa0EfS7O8T74C4Qx+g8Z7uTBbTdtEJt +rtPectAGS85MxISqaqZshMzc70NhYzanliPvq3XaJ7UXxCSWjrI/8pvZVND8i2JH +QdqUruYOj8CdtAliz9+XOJFdYE949a7Zb/fXu3cHQqDeOpAxJaSzuLKJATMEEAEK +AB0WIQRJ9qi+hHM5SVGRbzth3hHs4nY6cwUCYeyTmAAKCRBh3hHs4nY6c9kOB/9l +OYFFG5vg9ODyQ9TgGH4onZRrTNBZjYtKtgGekSg9u9bIMk/S1MYDaVyV/07ZV+4+ +DKqrk+PQijg3ujpNxguap6eFhuGPkwj73MN/xSNSiplpNDxLP0EKrVbxG3gQhZey +gyr6gqlYtWCsIuXWV+MOEhd20SrIXzPsX7IDw3JdgGxNkjS01cVvsoiKL17Nr0BX +Aevyuj+8IdHjsreucBgyz5OG2tRfpK/VQSmzhpQlYJKRsEg2pCANOJiEEBeGBgm3 +Dj5MouGL8ajkl49s38zoMFpxr3KoFj2rF3kfNHTHV5aybjwqLhE9Kquw3Pp59Q6Q +Njewgf4+S/czLfPLxl22iQEzBBABCgAdFiEEMLynRwX6QVRVcx17qvW13gW9zFMF +AmHsk5sACgkQqvW13gW9zFMqbAf9H08Gdf/qAdYe4CigvOu147hr89RH0LWtqvXD +R13cJgwkUQLPQZ3/xt/to/3QNDyETjcQkJcfqobTGPZs83ebXlICTfAkC5uNvyoJ +Dtgw/e8zf13XhWTP+Dn4+YnhBdCLkH85XvI+QLen73PzlKmgUc+Rf3UoXcDgdSVu +A/ouNC1A1ZKO1f8zQDM9MTppuRUJis11EO0nkqxu7o9ZnjR/GIr0eAYb5t5YoNLz +lc0IGskX3IHfCFcrQjBnUkWbUn3CBZTTLLgBX/sGTLqkrzi9W0dSCBsX/gF4nGAS +hyrpV9yP7bw71LDDdKaI3Ze/gviwyml/9b1UyCLhS6Y0UGRPSYkBMwQQAQoAHRYh +BA9clq7I5p6cjlQuXG1M0ZQp+wPeBQJh7JOeAAoJEG1M0ZQp+wPeQ4YH/jLO4HtX +zb7N6+fvH1IoebtpzkIxvyIqunCLd9wmMOd5/E2GWcHwzsi5ImnlfrpX9jdzuPGa +lFLFMSnK5WQA+G8j7tm9Zs+pmN1E5IcKi08BIDj6UY9NRwVVAxDQFQwNfNupCV2v +4wEi115eD5inb3uPfETZwgTh1IbMMYQu96vWCjUCwavAiTP/PWiAEdmGTFCgFrsm +chLHuXiRTLgfnrVdtblvZ+2GIWsi1IbJcOpT2Nt+I9HPksJKGpZWX5bzyHt8t3hv +tfHWFdX9BZv2jMBJFc8C4mNXX06fnA/OK39GbTDr3qJ5efjP7FxvCTatpuVxpUeo +bQoiz6yqLtHk11KJAjMEEAEKAB0WIQQ8ih6Of0TK3hFP7UZLyb2ma/cmrQUCYeyT +oQAKCRBLyb2ma/cmrao/EAC0QcShgqI/EEhInt1ELOXXqWzwyW4GxKZaATBKznYN +KUgCImW10QxQRG8TK+/x4mtAriPk6ANHHdt3ehzstrmcFlo1TmFqd2SoXHwLWz+D +ffX0WE1Slmnd4mGvz25LhftrGuGAzOZQ1v9QnlBmE9egZrF7x4sIGrHrRfKDAzec +rcgNf8zv8nZW0YqbHNMmxh1xFQ7yVTzs48UipyWxfTsje6LxEvsGYAuvSp8AUWhV +ILJ99c8kJRGdyiVum2SOk4MtP+Nl0w5686kO4Aj4gbiDMdCDGhwxFHDt69HmbHVB +kDyErjcjlEy9Qsg56YFe70861c5nJXoMslnjRN9F2EyDOFKGorI4jdinNiR7E069 +KXEwnouW0ZuN/RIIUSgIWzalGCkOPCPFEShZKKPWJ3mblEuXyfe4ayL4DVQo+5ha +/1kqRP7kPgjBkDyRxR7M/UuZVyPuHo0HkETQUlTMDwLAQH/ADSlW0zhqJgKFzOzS +kJyAciEzW/s1v3pwQR9/7+6LNJEoXE6ANNOnlnEz0hPWgm55XnyTmrLBqpW9XP1V +jTOm66j4vbS1MNRxtIbvkCKyw/Fv9hWmPauzEi7TepwgY2w4m+EV/0mNV3LTg0OB +4XH9bJ06LUvp1urY1jVoYD5ID5cyNeblmhXLI9bXQpzEjuw/fkqVaOCLMyiyXYFA +BokCMwQQAQoAHRYhBKaHPSSk1tYoSuQqdfBgWf1dx8w/BQJh7JOkAAoJEPBgWf1d +x8w/lJoQAI+SrlWdn+KcotHe/DZiY+HrmYdIAmdvr9xupsqpK5FrcHAZt/lX4iNz +Cb0/W3bQpgAr1SntGPo69SvZMZiuXLaVZvAjAtFfPAaE6qBOQOfMQM8I9CQ75Olk +ZTuX9syqqLRx90W+0buI2EnB1m8xdw3Zp03/+JYqXP+8qI8yEEn0+tGPTYOCYDQ8 +C9NnUwc62GVln/b5Cvvr5khURn/OzUAmSv7ah8hHhc4cfxnFjSgErnZ7MPRMm1O/ +aVaqV4Lu9OzT91bhLaJ/aOSPqI5kuKZjgEcOpJhjh2gxLKualF544sTei4GNXgTZ +ddpZZmRpGCLcOS+nsqeGeKobV5Ixz1ddCJMAX8BKDV/mimiDK4yCckNirK0AnTiF +bHnqkpPcmmZdp/GFtOWPoSu8qGJpl7T35sFpEFn3Stbd/sfImWhIhue8x3I6Qimw +DW/23SQlf6r5u0ZbO6ZWMdC3RR+6TfztHv7UDkBWEGRLGkQ/cw36uW3OiqEUS8wS +2uk96vnJJQTcXP59BYQgH/Oqv5QXfl5l5/h9MnTJDAHiM4CBsZIETl192nBT81Mh +D0swDdaU95NwMFtSmW+aqd9k+FFaJT019BndzSYZXcpjkBwpXF/HmzrdTLHZfFN0 +28snq/TTG3K3KoTOeW+6HeXlDrsl7HHmpvUo+gF21f8+2X/OuyvtiQIzBBABCgAd +FiEEUKMDCY6i3XvL7iraCeAfoDwMUE4FAmHsk6cACgkQCeAfoDwMUE4VGg/+JHaT +yujXRVrsH1dOmhjXc5nyDINZakUBT6fdYxXGsu37AmgYoZrBnTyAmNQd4zSAZ8Mm +uXGxN8LE23nO6c4/436kt7gH1ySPxlhdsiti0m7pl550i9aL1YAFmdXNzIBQUF5K +4XFqhdqy2tfdVbF/h1o8dZqrX42vvVba4p4PybtHtRMaiTPFLb5UNYMkf/+u4VfM +CbCqW/aZyhdoS+tsb2l3lOF6uRx1fv19KVhqnqIt1/+bUiTYVcgPQFKUJK3P0ilj +tDexFF2niftdgUJLrqbR+bDCPZ5ykfXuZXeCLmpzIqFPvj7dMPpM7WylAInyaheb +9m1JXJXtIHwlJDdVOYLfOo8U9TfLO/rvDKeeDXm5WCGgQdqEYrTbYNv3wg2x+/io +BF4dalE9lVrMt9acznZRemFzhihVSc5lHhb+FX6fJRCQh/vFjrMY7mj7SV4yc1X1 +OtdGJMvL3+p+N6AlHpYB+4C+dOmNpUq1W7ZCpwi4LRi73/WdOD4nPlQigvpHPy3g +L6uYH3Of2CwTonPY6ToTtKFaXjKQfthAIkN3cu2cf2v2F1QpL3PMN92LreQNAazL +oPpYF4adfPdlK8tkBrzuxN8qJsC6asJ17ztR5h8i5xBS25hTdf6L2dNIene3jwYx +8lizZ0GwtAVb4pNpg1tmlAKcsjOVZbr5DP0b9MmJAjMEEAEKAB0WIQSt/bcJ/h6m +guWFWXHVgyEO9RRxpwUCYeyTqwAKCRDVgyEO9RRxp7MoD/9p3eQq941AzizApnOe +/Hqjp8fkESw6UN1kmZBes7oYUiJGCRMRIKWGATVQDcPzRwkQdqhgc3MHI3rbyy0Q +NxZHTsZDPZ0EyxiHAJxkVnEyV44DpUCb7b/Hswx1jIhQT4OsC8dxKYQ6MPXODX4l +NzYvpwcSv4a0hjKDk+MZbtX6g4zK0hIKg4V7WHm6wHsIzgaDIZrY8s53KV7K8jy/ +n1vrrzstiFPpBtZh/RvS+HGocbHpdSYtdL6Qqh4eY7ng6CHqd4lGAXx1isHEJsc+ +G8Lx9JDgpo/kyFJu0mVQmTHpYt8qYwE6/hwwWZ6XDnifZcd7uJiymv8UPYWwSM/G +vFIqDkMJSQzykK6uzhZsPttcc6DdZ3bx+97qFfIWvQLpFp6iG38T6F0IT+iQDlDM +Z4KaswIntaDuldE1VJ3D9F0ndDlCJvCXJn9I+jwUKXj2Uqy/1OecLgIz9KULoim6 +A4RmLLRDtoYwXbwsPA1BEVskq6kkfd95VtjqXU2V/sh8YnZP2O1f5udIP8g+KUhA +zUp4Cppl8jALBlEJ2mBI5GfkWJgnARFu36nY0bpeiOn+1+CumFAC5p0QHZFDCD7I +7XB9VThWCnAW1mNhxie/o43CByfAM5hXieQeml4dDEGxazW3JCuCV4jpTnogArCC +5xSoNkIFXsMbSRexC2SFm1pDv4kCMwQQAQoAHRYhBPTOImMhAlPWqfl5sExm6o1L +7hvuBQJh7JOuAAoJEExm6o1L7hvuYbEP/1Hizeq3tkm8FZey5VewtvDCJNXTfkvg +3/+Cu1GxjeT8bfWGQKNEalaHQ1xU/pHpqD7QBvdt4pK3TaYp+kqfM87i1+JkCoy2 +Qv6YsP2Sf+VL7rLHGFF5JWKOj4mmL4Sy2ON+NhrZUN5qGtYSKu3P4y6NP5u5YxzF +kpCL1rYugc801SSGI4dagLyTEan0vwToXPDGYrS3Px6HGgKw7JL60dl9DqNsvEiU +iU/VNYoSklU9SHYIbDA2siGGkaEwKX9fGaeWsgErFg57G+az8lzvvm97da0HIQP8 +jQBQt9Q8gqUaISsVlrAL0fV3Eh/pGo+LabpufMXqcO1CoHIv4hD3HS0CTouAvpUe +32igiJyrE5esk7yIOPMuTaNFWUQvjioXO3mLh5qBsKtRyY05g9zAuhOzEefOrBue +0mx/uROL4dJht4v1b/UGdf2CT8JKtj6NZgQpJqMu9410EEYYhaFqIjAC5tDBe+K1 +ngHqr89u85nrwbuZEs+KGWYnD5jlHsz2bbwPSsMZkP0Y4oeZ5uqUDjPHBB7npnCg +Kp3McmB5dw32rDqolEkKXxRCupYeRb8KlyoN6DNriU0yjSQgqeQTCtHTnWAjigLn +Z7zJHOmDfE1t8p+e9kXAm94N2jAI72gWGD2bI1HM7kUgUbOqIgj/tafIA6wpMI6u +U+m/D7JBScmjiQEzBBABCgAdFiEErSDhqotBNnCmQlLYvSdtLm/PqIUFAmHsk7MA +CgkQvSdtLm/PqIXJ9ggAs6cAy7yKyO7sneFbSUJXDAAxH6tfN+/qPKYasakSkiYw +xQc0fU9+mcbrSXl6uNrQFdVBQUEUb1OWSOZN64Cy26KAa07RrgcJijEGVrQ/qg1i +IpaJxu7wheE1fE8wqfU8VGBsjw9pEn7LmsY4L5IbptCHMfN4l3Q6nKj25hosy6R2 +wiTdNHs77HP3IaAekHfy3QwnrcOdQjSQykcHb+DkC38Qd14SDxRBTkwq09LNigF/ +MNqpvA47i/Jc9bqn/SBJ5mki5v9Li5Nj6eu0dr7BDgzr5ZqGiKAXDe0rJxJ/n93l +qjBA3vEDs6m2L0vuujQj4y2Cp4Qrp5/yy+a1eHmSpokCMwQQAQoAHRYhBClslNvQ +KAJFv9OR13tSlkjuhXJkBQJh7JPHAAoJEHtSlkjuhXJkFGoP/j1E0YIUZLAtnJl6 +yTIn2RRebYHXKyZpwFQlbckgvkliezJHDO6EmN7UZcK9CLUTMulr2kq2o3BLTnV3 +7Qm+ROSSIQuGwZEzWliRlJVouZ6gMkfuhoxyYaxOCceIBWBgzZ6cbXnneRvtap7E +aKr57W0sO8QiFd0uq4gk5a4LYv1YiDgJMtHSsSrA//TGmInptvFQ6WQtPJ59HH4y +BQwCeEc1o6MRUL/fqIDGbkZTwjncczNbC4ZUIBlfeC57jzPUYih4C1feTk2YuArd +QhPEQQAlQHggFzLAc2iHgxRkk8gtZfeZ6Kk4vcdyXufn9Br2Nu7QT5v7wM3lmRks +EAcQucWOH6Mh1H6WmTOOyDUevzZxtx0Cb5G/l1TF1Bj94FNggsRdni7NUCc00OpO +ptsPFdIOYqm4jxe9ykoi4IDVkx1OgV7C/ND9V8VXZOi7hbAR+8Rc1pWzIXC7qMtL +T6PAbtE3H76nKsdi802KltAitFGSZTc/WkVm2Y7dcJyShasSSN7p2Y0NoCCM81AL +Lq+BYBO18yu6kQyXaJgN69n45Miui102cDpZKDWBOU2tP0YXVJr2M9fg9gmH64w+ +BzLGl8HcrjZkhgcM9hxQqDSzxYVodny/NMfEezyAsiK9bf4YPlhZx6YEy3uq6pS6 +ZLvOOWMbDn0W0EjHZfv3xIrtu9uDuQINBGHsknQBEADC/9jm2xZwcF8NgNc74t/u +ZPD6k7qqwb3Sz0DL+Dla/x9wbp5tcZsSPQIP4Nk8UQfxZoid0g0nT6tImrWBTxtZ +u5MYoaioDQ2FjE2qIrqjOypOckmFHVsWzYM4j7EJNn1JUZ72Ye2sdy0cGKDFhr0r +JwBrBQENM7QiuCu6fHMbwCvC1NE8IBx2SpLzFKDqemtMQ2Beao+5R2ix2xSoNYso +GQJwO+RIv2fKYY3cl+JLeGlNQU0eeBbBDtXVcnqs00KUxrDh6LLfjuzYRtWK0bBF +iw7Upq4TehzNlzGp8yE1IL2N2o1+/Ism3/BexUWamduY3HAu6l3MnPssS7AKUKIe +2tQSCZ7LsuqyNaH8diZykRiSFF/H7NduwzUc6QBVbXE5pFvzuraJu3jL3q6+DMtD +EVzjyeK/trF79jGlQ9dioNRuZj2DYqvXZ5/7JvGYOKFd7XcLEkSm9n4Q3Zt6GpWH +wWIimNgsjFo4ZYdv6JawXAjsZN4X0+nnAuWG3Mbj86gYNjJMDxgy6wovYLwwf1tg +WHCy8jUcOejFH7XKyjuQR8vTm2o/jHKoXT0FG+qtyA1P7cEf5VaJ80n0Vg24xXnE +I6tRrDUqH79gogOp9z6WnbC4+jKFgUCkyiQJuB6Y1rtLBFV+x90aL9KsJYMiyycP +bE3WLqL9TGhRXuYhJ3lZ4wARAQABiQI2BBgBCgAgFiEEYyfdy15+gOSYfqO3/Xnc +DIHZIQoFAmHsknQCGwwACgkQ/XncDIHZIQp+9Q//bdbiu1QTFRHRHSi7d5bTxqt5 +jCXtkFWSvyTf40/ul0t6sjdq8MkI94ZNb8/omOuMen8BgGtNBgC0SJxeXfYhBk7e +gBCGz3Ryu1Zz65nmca+WXaGNleMJRwnuK56XZZuTg1/dWYoC7FiRbUwt0FvImIZT +nWr0kAfdIkCdIbPHwrH5l9BTdOIVi03kfSG8ci54DEJ73PmmZrvH6PtFleUJvo7g +U9iWNhOFGffi0v/UAMK8UZAoEsGIY/JD8JFHerfJZbmEJPPgbgdi+ZEaopVYibdb +w56sTb79J7WiTrjxL9ngIn55zza3eOSDPeIulurpCebjb6DM/r/e+srQbhe/3slF +IA6F/BB8dX/qdUG4NWQHP6Tcruu3rUwN9cC6iPW5aYt6w+dOqZYXN3qbDu745CYJ +gfCyXeSTcHp7xsKXmTYBGZthB+LcHNt7t4wG/k2X5D+5VCR63V4NUq3P6uvHvH9j +hl1R4YsB4Vi/fqPUSK/MAj7VxE7Tf/4W/rBzHQEP9i9hkmgunOkQ0wbjaP44EqO1 +JHPB24py0dIBY9JWq2DqVHRAmvEZ7unbihLzJ+uzepsM84ujvipoT6Rlb5224unm +yB3NrRwSOHn1BpPIqBwNbt/lZX6AByTaTNyPoC2pitK2mJoMLU3kIwktpFEfVOmh +0Kb4rGd12E5b+czXoxg= +=LSBA +-----END PGP PUBLIC KEY BLOCK----- pub 4096R/4BEE1BEE 2021-01-24 Key fingerprint = F4CE 2263 2102 53D6 A9F9 79B0 4C66 EA8D 4BEE 1BEE @@ -363,7 +982,6 @@ ra/bqVWSpZTlHZ0xT9seCUSs1urxGw9Z =3HCo -----END PGP PUBLIC KEY BLOCK----- - pub rsa4096/0xD583210EF51471A7 2020-04-08 [SC] Key fingerprint = ADFD B709 FE1E A682 E585 5971 D583 210E F514 71A7 uid [ full ] Sendmail Signing Key/2020 @@ -557,7 +1175,6 @@ gmOJ78JKVfONBpmdVsw/emTMU5I/C/8m9l0nO0P4Q6diao23krgWk73x7dBoBqDn =jgHV -----END PGP PUBLIC KEY BLOCK----- - pub rsa4096/0x09E01FA03C0C504E 2019-01-09 [SC] Key fingerprint = 50A3 0309 8EA2 DD7B CBEE 2ADA 09E0 1FA0 3C0C 504E uid Sendmail Signing Key/2019 @@ -739,7 +1356,6 @@ HcRQfq7rqZkS3NE+iD9D/lUyXVYfH9A= =jN/3 -----END PGP PUBLIC KEY BLOCK----- - pub 4096R/0xF06059FD5DC7CC3F 2018-04-24 [SC] Key fingerprint = A687 3D24 A4D6 D628 4AE4 2A75 F060 59FD 5DC7 CC3F uid Sendmail Signing Key/2018 @@ -883,7 +1499,6 @@ fvZ+LS/6hJ9C77uOaBqoDPmtpn0WDqc3oDeT81Ans73BZhwhFAjzpHp+XnJQ =K0Kz -----END PGP PUBLIC KEY BLOCK----- - pub 4096R/6BF726AD 2016-12-31 Key fingerprint = 3C8A 1E8E 7F44 CADE 114F ED46 4BC9 BDA6 6BF7 26AD uid Sendmail Signing Key/2017 @@ -1069,7 +1684,6 @@ FtJxkIHVIx/VvvBqS3HEm8QCRvr+o10/Ue7NljolDV13B7fljxgvLFyJ8T91jWsz =Lt+h -----END PGP PUBLIC KEY BLOCK----- - pub 2048R/29FB03DE 2016-01-04 fingerprint: 0F5C 96AE C8E6 9E9C 8E54 2E5C 6D4C D194 29FB 03DE uid Sendmail Signing Key/2016 @@ -1269,7 +1883,6 @@ j68I =MdUt -----END PGP PUBLIC KEY BLOCK----- - pub 2048R/0xAAF5B5DE05BDCC53 2015-01-02 fingerprint: 30BC A747 05FA 4154 5573 1D7B AAF5 B5DE 05BD CC53 uid Sendmail Signing Key/2015 diff --git a/contrib/sendmail/README b/contrib/sendmail/README index 50cbce25e169..468d29fcaffb 100644 --- a/contrib/sendmail/README +++ b/contrib/sendmail/README @@ -4,11 +4,12 @@ This directory has the latest sendmail(TM) software from Proofpoint, Inc. Report any bugs to sendmail-bugs-YYYY@support.sendmail.org -where YYYY is the current year, e.g., 2005. +where YYYY is the current year, e.g., 2023. -There is a web site at http://www.sendmail.org/ -- see that site for +There is a web site at https://www.sendmail.org/ -- see that site for the latest updates. + +--------------+ | INTRODUCTION | +--------------+ @@ -40,6 +41,7 @@ the latest updates. Sendmail is a trademark of Proofpoint, Inc. US Patent Numbers 6865671, 6986037. + +-----------------------+ | DIRECTORY PERMISSIONS | +-----------------------+ @@ -197,14 +199,6 @@ There are other files you should read. Rooted in this directory are: This sets a word in a smaller pointsize. - - with new groff versions (1.18 seems affected) - - GROFF_NO_SGR=1 - - needs to be set, e.g., in doc/op/Makefile: - - ROFF_CMD= GROFF_NO_SGR=1 groff - +--------------+ | RELATED RFCS | @@ -248,6 +242,13 @@ Important RFCs for electronic mail are: RFC2822 Internet Message Format RFC2852 Deliver By SMTP Service Extension RFC2920 SMTP Service Extension for Command Pipelining + RFC5321 Simple Mail Transfer Protocol + RFC5322 Internet Message Format + RFC6530 Overview and Framework for Internationalized Email + RFC6531 SMTP Extension for Internationalized Email + RFC6532 Internationalized Email Headers + RFC6533 Internationalized Delivery Status and Disposition Notifications + RFC8461 SMTP MTA Strict Transport Security (MTA-STS) Other standards that may be of interest (but which are less directly relevant to sendmail) are: @@ -325,6 +326,10 @@ DB 2.X and 3.X. If you are upgrading from one of those versions, you must recreate your database file(s). Do this by rebuilding all maps with makemap and rebuilding the alias file with newaliases. +File locking using fcntl() does not interoperate with Berkeley DB +5.x (and probably later). Use CDB, flock() (-DHASFLOCK), or an *** 16317 LINES SKIPPED *** From nobody Tue Feb 13 22:53: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 4TZGpG5hyvz5B11G; Tue, 13 Feb 2024 22:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZGpG4jMZz4hx0; Tue, 13 Feb 2024 22:53:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707864822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ReLnBBFTrqjFNDsPv8MshfedmTe+tLnq/dionJXeXCA=; b=yCqZNzTrYNJ5goZpSqnGPGx/WDCqmoGweRcjcyh4SDHfnWGxtRbud9bMnKzQBq6T3KlyD6 99gNQ3wz8c4ADC49PaK7ZwJ2MCfpN7OW8l3EIQ7tQOkw/3vHxB26yzpf3N8a9wCBhUfiT7 7JqCneg5BnUhQswgABQvVDx+ZkSN7maANufhvNERVL96jwqZR0kvVFvZiBua7oepeownhL Zz5osm3tOKRz5jZcVAoALii6E8ho80rgel4esBHRGprzaeqrg/rb/Xh0Fvo2TMhrK/GMfo LsBLspOc0LjMBonPxJpgAF7cqCvIjxrxs50G3Of7WtEAAHkpK6ValQAwmskX4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707864822; a=rsa-sha256; cv=none; b=P8sbokFAIQKzBUntDswh/2Vtsxjr9rlvcg24YKo6ld9k3nbVuNvm31PV4VvgT027s30+f1 g476sro30gSoU9Vlns1lwyoFzW8J/8HECoU/fT59KaBG/VZPzhRrEjJi1qtuU+bh4e47RS l7u/UZ+T3drY7rGjBdonPBvSSQUcVkv2zYI3X1XmwvJ/vtXC7DcpOBWQ7IR5YWeCa4PY6T H+Yuxi0eUqihxVIEAPWiLBdyDTirStZLmcoofQDi/bXUpNfqE96bQWtgrRc3uIxp2iNq9B RL3orC66UmGWub6ED0jC73HD3fj7uq5diuBxfLU+wPLRgJ7kUAeGMiomgyFYTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707864822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ReLnBBFTrqjFNDsPv8MshfedmTe+tLnq/dionJXeXCA=; b=cr8Eb/hXiC9ZtE7m86Tiej4nrUj9EJwB6BL7NkZqNp5uOEKfmtYopmTWD5sutwh20PmRln cWfTd3TwnyhftL7ASJ22v6H5cqw8Y+D7H1nXzCH/enuT0pRLnsOmffG1fuNgWbJpajnCxR JrFU93Q58tczGCu63quiNeiNfxIO2nj49dGexosvdlvknFBIk2mo/zwCVFHmpuet6ePZG+ sktvqAuFMkQxVu2kjjRLGSxHXMrK2WeI+ebMYK7Z3Vi5C3o+J8guIuZQcWNJ15ojBV1Q1a ty6hpOPRRyY89E5c0aaIRkTn0Mn/nNp3hxhjbjPSpBqYBp93nLgHkIgJEjlLjQ== 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 4TZGpG3n4tzZRf; Tue, 13 Feb 2024 22:53:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DMrgXa059711; Tue, 13 Feb 2024 22:53:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DMrgIh059708; Tue, 13 Feb 2024 22:53:42 GMT (envelope-from git) Date: Tue, 13 Feb 2024 22:53:42 GMT Message-Id: <202402132253.41DMrgIh059708@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: 53fba3b984ac - main - build: Default to DWARF4 in the kernel 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 53fba3b984aca0dc5d34b84d0e21f0d4d121b56f Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=53fba3b984aca0dc5d34b84d0e21f0d4d121b56f commit 53fba3b984aca0dc5d34b84d0e21f0d4d121b56f Author: Mark Johnston AuthorDate: 2024-02-11 18:03:23 +0000 Commit: Mark Johnston CommitDate: 2024-02-13 22:51:09 +0000 build: Default to DWARF4 in the kernel gcc 12 defaults to emitting DWARF 5, but this is not yet supported by our libdwarf and thus by ctfconvert. Reviewed by: emaste, imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43837 --- sys/conf/kern.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 08779b4da193..53781927dee8 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -256,6 +256,14 @@ CFLAGS+= -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clan .endif .endif +# +# Some newer toolchains default to DWARF 5, which isn't supported by some build +# tools yet. +# +.if (${CFLAGS:M-g} != "" || ${CFLAGS:M-g[0-3]} != "") && ${CFLAGS:M-gdwarf*} == "" +CFLAGS+= -gdwarf-4 +.endif + CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${.IMPSRC:T}} CFLAGS+= ${CWARNFLAGS.${COMPILER_TYPE}} CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} ${CFLAGS.${.IMPSRC:T}} From nobody Wed Feb 14 03:53: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 4TZPST2DdTz59qPr; Wed, 14 Feb 2024 03:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPST18hxz46Ql; Wed, 14 Feb 2024 03:53:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XiQTXxLvY7H3a3rAgjpmh8DZi2EtHuMULu614iDpUgo=; b=ZW/PlQ443ROXyh6eGHRkjW1HHGOz3H8qnzoo0YwunjCyhmC63xV27YKnXsEu9cp4NWsJ1U RiRircYPIJpGhfedJm3nUdipG0zop02nXqKfDXsz1iZ5/GiviOzvMHlc4QU09jmF5Y39mE 6wndDUTMfe4+TzuAQAsKp70/48vjUWBl9HYI2lRU6TumJo8xIF360vI6aCmT2Dv6N0T/5K Q50x6LDJHQrR1nH3b8iq2QHp+i44xHq9hbTB+p1Q41r2HaUaG/WgPWnvv5iPsQ+2lxM1Eu 9OhYEZfWRzArhiuoh2tN1rdZi2U6Peic7FXyBZG6Uo/1U2XOgCby+H4SLNsgVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707882825; a=rsa-sha256; cv=none; b=gbN0KZYFIrgw61Da57483vOBDwihhUBXcPiiUL52nSnw66Tu7umhz98+47pEE4TvKl0RW/ USm65XlOuuK8Fc0PF8z/X2vUPEWaiXMRvnAyLPSdzphaW0oyYGVs0+mJJ9iVM8sLmQh7zD 08dB4nqdO70F+1oK6w9hZfmC1MXUhqarTy5pMSP1OCDUDJY3cEiOjxoBFWwocsIwOrsjKj VlGHIb7Ifmql1TiMduBer+Dud4XkME0rKO2AUVKcWBCrrdB8nFZCgDp9QfNeQj7HhPtsI2 FE5V+B8T6oaxefpniZ5mVrnWmSr1iRRE+SqhGMiOHAmW9xLYyq5ZkgYPHI013A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XiQTXxLvY7H3a3rAgjpmh8DZi2EtHuMULu614iDpUgo=; b=fR1FsmXU5LNYGdxv8oDH0kUxasfh/TE3kjPFtFqrQiGDtOP4+hXeadkj0ZZzoH99tuqusS JWgZRuJwsvxyqPZt9k1NfKYRnMoVIVu/B0ow5/M1zN2kS9OJwEgDnJImhu8f10a9YaRIl/ 2iXO+9PGpgj5/wFexyIxQmnhlIDHKVRVK4It5cuGVG20y/Y7cT1wM4PI5vRRnozsKyl+ky 52VZRLOKcx6hwVPMXr8RKbJdOaJXdZ2GmVTWxCOU6iwc+5oLHIOs2K8lIX7wL4r5yBoQ9W RorkI0HSfutb6P0wiBdx1foKFTI5w9U38HFyemFYDBCdFORbJTc9Awa9Nu6AeQ== 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 4TZPST0D4DzjkS; Wed, 14 Feb 2024 03:53:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E3riAj064441; Wed, 14 Feb 2024 03:53:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E3rikM064438; Wed, 14 Feb 2024 03:53:44 GMT (envelope-from git) Date: Wed, 14 Feb 2024 03:53:44 GMT Message-Id: <202402140353.41E3rikM064438@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: 16b1438c7371 - stable/14 - read.2: Describe debug.iosize_max_clamp 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 16b1438c7371d31daa95595957330d97bc343405 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=16b1438c7371d31daa95595957330d97bc343405 commit 16b1438c7371d31daa95595957330d97bc343405 Author: Konstantin Belousov AuthorDate: 2024-02-10 09:40:07 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:41:54 +0000 read.2: Describe debug.iosize_max_clamp PR: 276937 (cherry picked from commit 3e9515846f8cbff0ecccaab65d9f70890d04429e) --- lib/libc/sys/read.2 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index e3b5b21d1c31..94644045afc1 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -25,9 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)read.2 8.4 (Berkeley) 2/26/94 -.\" -.Dd June 4, 2020 +.Dd February 10, 2024 .Dt READ 2 .Os .Sh NAME @@ -222,7 +220,12 @@ for this file system. The value .Fa nbytes is greater than -.Dv INT_MAX . +.Dv SSIZE_MAX +(or greater than +.Dv INT_MAX , +if the sysctl +.Va debug.iosize_max_clamp +is non-zero). .El .Pp In addition, @@ -248,7 +251,13 @@ The sum of the .Fa iov_len values in the .Fa iov -array overflowed a 32-bit integer. +array is greater than +.Dv SSIZE_MAX +(or greater than +.Dv INT_MAX , +if the sysctl +.Va debug.iosize_max_clamp +is non-zero). .It Bq Er EFAULT Part of the .Fa iov From nobody Wed Feb 14 03:53: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 4TZPSV327Fz59qSG; Wed, 14 Feb 2024 03:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPSV2SLdz468g; Wed, 14 Feb 2024 03:53:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kimryfuNwgceXRg0xa3Po2BoWxIiHs5hyAim9iwVgUU=; b=vvlYu9HqAXYMMdSuUFNsqSYh+TSbVaBLRkulyXS2G0OzcLt0Xx3KDBkyVVjlZ+hkrZ3g55 xsa/dk2/jXm8ULtXfgZDWzAJ57JHgS6hSuD5uOvml9AoWl29JTxmWyQ87Bd1G3VcNDmq5Y NpF368U/ijemPOCJwgLOo8B82THxINBHRzGysb2Zpkv3UCDGcc6oWB/NlMOYa3lBkcQVox b/XbvMYxkK7XfqO58N2mG3IAZF6Os/4k9dUVA0/v428+4chg1UISJmylDiEuNX730fWh/t PQg74lPV4jvQNv3hOb5+t4hlgRICfhnYlYaQEtGOodwKcJwDZ4WfgxHr3YfOMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707882826; a=rsa-sha256; cv=none; b=tRx4i+i3ViWsIBbi0f+6BSsQdp2z1cuAFAKeZFS7VJFoAfTSTOk0uI2PU+heNAZvlcOKZf 6MEBSc3HqBg4o2qMlEwlJSqI8ccKYZcgYoP+0QQo4usgfnCpQ/BK5NmFHZv1MOZPd8YINL Pb26zJ5xjWyE6DlbHo4G+P792va5tlL7j/O236HBPC+Tj0IUFrJeX7BvjYIWsf3HSzZdjA WpczQsMkI9CP47AbkJlwZyn412ZDKFLV3inCPapkYzDLOz9vvjtqzUKxcmdv1jF+dhzDhP 1GqVPxjUYJlfI61bSESGzQA4mTEtSm4AdnlhKpasJOd+2IIZyUtHsmhIMRuddw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kimryfuNwgceXRg0xa3Po2BoWxIiHs5hyAim9iwVgUU=; b=PLpa7UtRbvSUkpCxK9E4jGeMppXgQJ1wTPonyVLFgbM67hbPZHeKvd4LgUIvMrE213k8PL 4mO4/H9DK0yvhlQlL3kj8T6+R84QsPMC65qjqlH7O5U4owldoMG5ABfivCHvSZk/rHEYfg luU3KPMAFgXrZ5CEHShcdAlTQJc0fSmVqHXNdWMb7EIjRbX6gVs27cSfQRWTka8+aO6mj6 rGNvkUCPkj4gUr7P8CC0yL1dOaieHjAZj3C8WicHCcSfPdYt5+08Tspfkh5a7Iw5KS+Zu6 WhqVdBeGD7PD8s0ywea+0Cspm9UhwPsiQToLJ442m1AAOMQWAkjo7kY7m9D/2Q== 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 4TZPSV1XGPzjnd; Wed, 14 Feb 2024 03:53:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E3rkW5064498; Wed, 14 Feb 2024 03:53:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E3rkDi064495; Wed, 14 Feb 2024 03:53:46 GMT (envelope-from git) Date: Wed, 14 Feb 2024 03:53:46 GMT Message-Id: <202402140353.41E3rkDi064495@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: f35c790206b8 - stable/14 - amd64 uprintf_signal: add space between %rax value and code bytes 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: f35c790206b87599fa76d091f14804088b569e2f Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f35c790206b87599fa76d091f14804088b569e2f commit f35c790206b87599fa76d091f14804088b569e2f Author: Konstantin Belousov AuthorDate: 2024-02-10 05:06:00 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:42:39 +0000 amd64 uprintf_signal: add space between %rax value and code bytes (cherry picked from commit 130bad217bd8bbd7531539e4f5eb83d3c284e991) --- sys/amd64/amd64/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 8114105655f8..f5ea035b3e3c 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -626,7 +626,7 @@ trap(struct trapframe *frame) ksi.ksi_addr = (void *)addr; if (uprintf_signal) { uprintf("pid %d comm %s: signal %d err %#lx code %d type %d " - "addr %#lx rsp %#lx rip %#lx rax %#lx" + "addr %#lx rsp %#lx rip %#lx rax %#lx " "<%02x %02x %02x %02x %02x %02x %02x %02x>\n", p->p_pid, p->p_comm, signo, frame->tf_err, ucode, type, addr, frame->tf_rsp, frame->tf_rip, frame->tf_rax, From nobody Wed Feb 14 03:53: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 4TZPSX13jPz59qSH; Wed, 14 Feb 2024 03:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPSW3Txjz468p; Wed, 14 Feb 2024 03:53:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WMjzN/J9dR92Btm6jNxW25KdayYIbtuy8ZU7sZTAk+k=; b=v06XLAl8IjO4Da3rVJ6/+BFstWcK2gs/CBB5tlZAMMjMvvP75nmOBCMw7ua/ssOu+T0qy0 ZC6EvfOCrefxypEQF/v7BT6UKJvtjQe1tMuVvFXBw1i+dLAGqZsEKkRnbpQJwBt4i+PrVb AJFcEaU8/Jn36BmyFN0rXSexBRHd3rF76ibdnVPwrW+OWILYkK/joLwbzQGbu/porpFaYm KXKArKKDLtV438YybCEjhChLwBXfHP9FuvG6WKGTyaVxpvqyZ5N5Up2jaY+j9862KMagxQ kYKs0QmA/PNWx0M3X0XMsbIgM80jSDxsMpVPAa57t81N3bdi3stno65l52YMng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707882827; a=rsa-sha256; cv=none; b=LIenTser4acQzA2ZNxOIgQT7X00hKx5QlOzCoCYPNF7bcYZ++2QhigdI3h3ec2o9rCYUNy qH3dQerbnHDK4ZYls8wgiM2dMPsBpUlv/b6qdXPag2/oGqYCHLW2pQXlC+DdXZufrSOQp/ 7ye6ZGYvyM6ZhWk7Z4UKOf17VhwVwklYMf84rFNCkzbzWad4XwzKy99YzbbmFTgJHBD9LC jngheO/8vLPBz2iSOXnX6ZQnyP/OZPTMXDtv0c/k5dc2T6JnVULIJ/KcLYVxzltwnmVy4l Z1Nrvz4uiNAdgLzSwbxLeBpc+XqB1zWSh97LjO0Xp65bc4KrJIFl/VZ6fB9eRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WMjzN/J9dR92Btm6jNxW25KdayYIbtuy8ZU7sZTAk+k=; b=BxzQ0KNAMljVOaqo+bNbWE0BoFGP1JzKrxnXWwxMQGp2MhYwbkNe5is1TcuCfxeWesZAtl RgYHkggFfmqIf3bs4fEC0oVoQaKQxBmqKG+120Fk5IKQenrNFkjCxlLG/mGOrSz0UVcrJW AvhsWNrDyAV+3u3hT0CB7HdubIZ5dZa+9ShMQd3K7NJtkUC/GG7Zc7CgN76/dZ5oEm5OFN 8xZUe7azz90jBRYANZL0Z84J7bhy2DsBac0TSlq0xueS2vtuReFNc5QpxBvZjPC19Aw157 spFff56cMr5uOgGzPc426kq3thRLIpo0HXWEAR8Oa0fJZYZ7B2eUkXkgpegWlQ== 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 4TZPSW2Y5Xzk04; Wed, 14 Feb 2024 03:53:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E3rlE4064540; Wed, 14 Feb 2024 03:53:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E3rlG4064538; Wed, 14 Feb 2024 03:53:47 GMT (envelope-from git) Date: Wed, 14 Feb 2024 03:53:47 GMT Message-Id: <202402140353.41E3rlG4064538@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: a3d021250769 - stable/14 - imgact_elf.c: remove sys/cdefs.h include 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: a3d02125076915865647e79cfbb141d301b2daca Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a3d02125076915865647e79cfbb141d301b2daca commit a3d02125076915865647e79cfbb141d301b2daca Author: Konstantin Belousov AuthorDate: 2024-02-10 01:02:33 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:42:39 +0000 imgact_elf.c: remove sys/cdefs.h include (cherry picked from commit a67edb5616c1514726ac1c8596ce0ddc2771e2fa) --- sys/kern/imgact_elf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index dfa874e307e5..f22f9addb45c 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -31,7 +31,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include "opt_capsicum.h" #include From nobody Wed Feb 14 03:53: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 4TZPSX703Fz59qSJ; Wed, 14 Feb 2024 03:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPSX4HJrz4695; Wed, 14 Feb 2024 03:53:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dPF5lyQ1XSvUfOfWTLvYBYXscHhpyKAo+wm/VwHK5EA=; b=VW6JZpHDE2mM5JUTYP1vn4YGSUq4V+lPlLZVthj5CuMfYjmDXzX4ztbVuXLkbC6IjKjky5 BGAQvE9xCTNZWHcZHfsZg8EzwiSLt5BhaENtaKW7BLx4I7G5eT5E6570KYiUzJeRpwQy89 A7h0nbrxGkw8CMh8q9fRNshW5NGtvKSsOAXAR4BcjjRBxroclxy51SA7nMcUXIgpRX6LhX w8vsrr7NXd2I8HeHZgXz8JbXJKe7BlZPOCNxUbfoovtCPTDZNaSNBijZUDMo5Wgd+AB9lF iLQwBRqg02WmM5gNxn0owDK3miX5uhujFGKXPmnI3CABFo8E7oOz/fyPTn3fsQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707882828; a=rsa-sha256; cv=none; b=ymz+UYF6fzmwrD/kUYBl0HRfrB/OzwBVUz8lkooOnWHtpznWcT6w1PQXftAmlgv2nhusNy 3DfriTK//bK2k2Vo5Urw2xMMnCSn5FAchjb36KQIt3hB+dZqcEsJ+uqhkPRsAJX34GnwUy UQVjsaLa77WO+6C7bO6aeNfTe8LE2fwaeXBrvosHFCKT4M8Fr9PEsgr8CKcQ3CoHIUrOMg X5pXWlpqaZ9Ed8cXqURrSssAAjHjzS7laek7ebhjyRtddi1xdOqT+XdniCFe/9QbYF8eL3 hNXWkh1tcpVPhruF2kzAb/zo54g8M6zj8g+/+Q6CsoPobzo2YQNwQ1qyx+4bOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dPF5lyQ1XSvUfOfWTLvYBYXscHhpyKAo+wm/VwHK5EA=; b=PyZ/s/zMJegu48TSSTWEKEyAxBk4ZxGLsKtePKvHDNu9aqtQ+ryYrJyfgMqVkbyC5Afvva LQ0c8v1XdyB4KtOOvrVchBzO4S4scom2bcO+ZeTAQyup5pepHDNB9JIbbR+sM1Nl/7Z/8Y EkxA10D/ZZv0wr7hKpHRtQW3w6pbNuB+hnpc5HER8Z/cujBZ81/vse55cXAu1RjlK7uB4j Xb/64A8cG6WgPdyDYNECOv58YZM2nQuytRCGFCHfgRqePPHc4JC7Oj1WlRumzWIczDVch2 I2bK+Zt6Ywr1ua5dSWKWmhy87CI3Iwfm22y9QudqeNV097+cla3oTyaEBG6vuA== 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 4TZPSX3KTCzjVZ; Wed, 14 Feb 2024 03:53:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E3rmuA064595; Wed, 14 Feb 2024 03:53:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E3rmhb064592; Wed, 14 Feb 2024 03:53:48 GMT (envelope-from git) Date: Wed, 14 Feb 2024 03:53:48 GMT Message-Id: <202402140353.41E3rmhb064592@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: bcd7b196c83b - stable/14 - ELF note parser: provide more info on failure 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: bcd7b196c83b9a1ed5f2e2215c15542088d88aef Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=bcd7b196c83b9a1ed5f2e2215c15542088d88aef commit bcd7b196c83b9a1ed5f2e2215c15542088d88aef Author: Konstantin Belousov AuthorDate: 2024-02-10 01:36:58 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:42:40 +0000 ELF note parser: provide more info on failure (cherry picked from commit 29d4f8bfc642f0196c27eb469ea7eb326ff529d1) --- sys/kern/imgact_elf.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index f22f9addb45c..85f0602fe584 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -2704,6 +2704,7 @@ __elfN(note_procstat_auxv)(void *arg, struct sbuf *sb, size_t *sizep) } } +#define MAX_NOTES_LOOP 4096 static bool __elfN(parse_notes)(struct image_params *imgp, Elf_Note *checknote, const char *note_vendor, const Elf_Phdr *pnote, @@ -2743,9 +2744,15 @@ __elfN(parse_notes)(struct image_params *imgp, Elf_Note *checknote, pnote->p_offset + pnote->p_filesz); buf = NULL; } - for (i = 0; i < 100 && note >= note0 && note < note_end; i++) { - if (!aligned(note, Elf32_Addr) || (const char *)note_end - - (const char *)note < sizeof(Elf_Note)) { + for (i = 0; i < MAX_NOTES_LOOP && note >= note0 && note < note_end; + i++) { + if (!aligned(note, Elf32_Addr)) { + uprintf("Unaligned ELF note\n"); + goto retf; + } + if ((const char *)note_end - (const char *)note < + sizeof(Elf_Note)) { + uprintf("ELF note to short\n"); goto retf; } if (note->n_namesz != checknote->n_namesz || @@ -2765,6 +2772,8 @@ nextnote: roundup2(note->n_namesz, ELF_NOTE_ROUNDSIZE) + roundup2(note->n_descsz, ELF_NOTE_ROUNDSIZE)); } + if (i >= MAX_NOTES_LOOP) + uprintf("ELF note parser reached %d notes\n", i); retf: res = false; ret: From nobody Wed Feb 14 03:53:49 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 4TZPSZ2Cq1z59qSK; Wed, 14 Feb 2024 03:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPSY5Drtz46TH; Wed, 14 Feb 2024 03:53:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YHMggSwlmjAg2DdlOtEDvMF9vJxkn6hBgxdo3lb853c=; b=nN6BO2UdjbwIeck5Ywz1WitkJq4Y1HJOGbWx/y+Fd/9qDK6U9ciXElXd32x/phsgYw+SUe fbKFRg41VMrhQPmCD3Nq15AJPmlEtpeDRDbhClyIzKmFoCr+quHf7tVfMUtQQ3NRiB2CFL 3BjUUZAZpF/WRHlq6kURD86VLFrYV7j91eZWibejPZk8wB+vg9BJ2IF10tGxuz/L9MGvR5 SWG5nKJN3CatuEtOMCade04moCLpAd0/dL9H2xDFDFL3uTOnXmczgoRrissvmatLC4WVaP 5c+P3n/Sx8P1hi/C0Y6Clm0xupuLCZOkQCfyWaYRj+1Zek7981aJ0AQjhWe20g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707882829; a=rsa-sha256; cv=none; b=cNG7Ii9Kt+uTClp8heAXy3+apSyQTErgLyVXOhEzfdFwUHCYIhdLPV/3jlM0PCOThqOzGY R5OlJsnwQXVmdzmNooGWhbIZQixygGW+BGlZdkXBSiJIbNrcZ60++tLPxAVIl0hFb/eERD 1nPri+U3JQ/VWh6mVSPpXdESiNUtRJICaTDVaJOa9NYkGHd7p1e3StKb6+2CVoGu4HtF2K BiejzRpXLZ63doi12hwa7b1tceJuC2ZcPg9XNtnzHQjA10mJd8uKWbOElX7+4Thu5z+EMe KJtRWs3LE/KyNZwbsjziWmZR/5WLOHhl1A81l1Zqc+lSN2oqzrTzMPg5Nwj4mQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YHMggSwlmjAg2DdlOtEDvMF9vJxkn6hBgxdo3lb853c=; b=FT+pAuO3O6/BLqYuUmNdhkeRmuu2X7LgEB/kNhoWEAvFksD+uGov26XSkWafZwniRuNgit vrminRKMpvcJbugXIcPjanH0W7hZXaWSmi474dd6YkAVWwZOLGNx1BSJMX9/ZfDjFCX/4m z6sn8S/NH7rSbfMk2aIl1NkGwAslng+JxqdDrP3YC11KsFsKpqlcaLlYKbB3XfjtyS99Py JnTDUqG0zU/LpB3efrPfZrVX+WgMUv4GDGjCBR6NwIBXyfD85roZjHFeG3+6M7Sy85MrCD yKs+WaVWDjMn0WAm0FTdn/SaEoeHZgXqyM7M5+mVDrHD7rqmcBHN54MEuk9azQ== 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 4TZPSY4LddzjSm; Wed, 14 Feb 2024 03:53:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E3rnhf064641; Wed, 14 Feb 2024 03:53:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E3rnlV064638; Wed, 14 Feb 2024 03:53:49 GMT (envelope-from git) Date: Wed, 14 Feb 2024 03:53:49 GMT Message-Id: <202402140353.41E3rnlV064638@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: fc738836d153 - stable/14 - amd64/linux*: mark brandlists as static 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: fc738836d153fad9a755f41159ea836e9586deb1 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=fc738836d153fad9a755f41159ea836e9586deb1 commit fc738836d153fad9a755f41159ea836e9586deb1 Author: Konstantin Belousov AuthorDate: 2024-02-10 01:01:38 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:42:40 +0000 amd64/linux*: mark brandlists as static (cherry picked from commit be707ee09556a3fa345bc30c04aeeaa2a5d2efa2) --- sys/amd64/linux/linux_sysvec.c | 2 +- sys/amd64/linux32/linux32_sysvec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c index 757986f94ae1..9c3d7e6405c1 100644 --- a/sys/amd64/linux/linux_sysvec.c +++ b/sys/amd64/linux/linux_sysvec.c @@ -898,7 +898,7 @@ static Elf64_Brandinfo linux_muslbrand = { LINUX_BI_FUTEX_REQUEUE }; -Elf64_Brandinfo *linux_brandlist[] = { +static Elf64_Brandinfo *linux_brandlist[] = { &linux_glibc2brand, &linux_glibc2brandshort, &linux_muslbrand, diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index 1002648c3df8..19b4af7661f0 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -994,7 +994,7 @@ static Elf32_Brandinfo linux_muslbrand = { LINUX_BI_FUTEX_REQUEUE }; -Elf32_Brandinfo *linux_brandlist[] = { +static Elf32_Brandinfo *linux_brandlist[] = { &linux_brand, &linux_glibc2brand, &linux_muslbrand, From nobody Wed Feb 14 03:53: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 4TZPSb1qKhz59qSL; Wed, 14 Feb 2024 03:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPSb0c8Lz46WV; Wed, 14 Feb 2024 03:53:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o95w5RbuAc/i6PtfOF1eOUKsJDQd6dCMfjkUbEDzuGs=; b=N2MM9XhlVJjkcn5Kpzira6uGYZb3WNizTwctf399+pw0sfn/MMTuUQi896kSwMw9s9WWF+ Up4XjeyToFTZOotmnqlfUDkkgwWmKjIZ4St7nF7t+5XMd/gETE3QIXaeovTjjphLx7C265 G1ZH9EnKusAuk5wKFrE2iwM4giNwLl+XhGYj3JFPjJpgE88YsblVIBGgM8t8i0P4oH1oeN 97zEfS95uNPWkF6Pdlpt+zk/F2UGQliPItLRcLnIQbUWrOEmVMXOP2S2h5NSne6Z+gbnOr ZUeXpwdYfWP6xnAB4K4c0kilyKlHXLQwdecvJXJTbs63FNX5Asg5FW1Ks6s/wQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707882831; a=rsa-sha256; cv=none; b=h7OxZAnZYfQKz18Scb+qOTMg9DLHdIddsA1sUFJW2L7Jn/Rm4X+k0zAcwljyGpPrQlZCHU ESD+85j3zvPgWsDcTmQyEuK4b9CD4ilz+Mm/mlPbla0RnugnxpcQs4jfFDiqQ98tfqJBNU ZosC26ZolN/Y1vcOrmGZR0gkc358GhvukViUyqGIgK9T/6nQfGqN1/tqSYFroi17NHX9zb 4qOfRBTb/2xbGAn7rENdoGMTGHKd1c08kFyYdgZi+MtgTiky7EL5u5Fg4VuoZoTXMqFA0n AxpbCaAqrqTOC431PxGNU+Z1c/ERFCtbFo5dyQKp55MIuOzbCRZFTk5LCM8dUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o95w5RbuAc/i6PtfOF1eOUKsJDQd6dCMfjkUbEDzuGs=; b=FPu/xXnlt685XFXxzFRWSMSrNmEC1N+PMliUbYMdRMt/Hg/Mo2NUTomARn5mjH5Hiby/hH Fmp2O4+2TH7Ys0iQzO9HJNsBzasLtQWkMUAaTGDZPLkKbHk5cXRS3Rutdv9lvRE5fx3HxX OozpfqqUczTXnFTkj8BSdzgN2SMQ/4j42bgrKBfvY/USG9ELIyuvivpc6BsBo2h+WIh8xf T+NpmIuLn2gj0Rywo7Bcx0I4eyFvm6pavBMe3SlsP4NTcD9lmlhgSX1JIJhOaEfTtwuS0H GOZXuunb4zps+s8xkEX8avS3AYe70y6svZarUVHZKd70kF6QIv2UKLpGjV0VDQ== 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 4TZPSZ56FczjkT; Wed, 14 Feb 2024 03:53:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E3roXC064684; Wed, 14 Feb 2024 03:53:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E3ro9L064681; Wed, 14 Feb 2024 03:53:50 GMT (envelope-from git) Date: Wed, 14 Feb 2024 03:53:50 GMT Message-Id: <202402140353.41E3ro9L064681@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: 10896d25a536 - stable/14 - amd64 gdt_segs: use designated initializers 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 10896d25a5360ba654faa17a7b544944bcbff0c0 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=10896d25a5360ba654faa17a7b544944bcbff0c0 commit 10896d25a5360ba654faa17a7b544944bcbff0c0 Author: Konstantin Belousov AuthorDate: 2024-02-09 04:59:48 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:42:40 +0000 amd64 gdt_segs: use designated initializers (cherry picked from commit 1d6230b07ff29b4d3ae527dbc0fc3f9775a7542a) --- sys/amd64/amd64/machdep.c | 52 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index f235d72519ae..ea440f46a12f 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -356,8 +356,8 @@ CTASSERT(sizeof(struct nmi_pcpu) == 16); * slots as corresponding segments for i386 kernel. */ struct soft_segment_descriptor gdt_segs[] = { -/* GNULL_SEL 0 Null Descriptor */ -{ .ssd_base = 0x0, +[GNULL_SEL] = { /* 0 Null Descriptor */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, @@ -365,8 +365,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* GNULL2_SEL 1 Null Descriptor */ -{ .ssd_base = 0x0, +[GNULL2_SEL] = { /* 1 Null Descriptor */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, @@ -374,8 +374,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* GUFS32_SEL 2 32 bit %gs Descriptor for user */ -{ .ssd_base = 0x0, +[GUFS32_SEL] = { /* 2 32 bit %gs Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMRWA, .ssd_dpl = SEL_UPL, @@ -383,8 +383,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 1, .ssd_gran = 1 }, -/* GUGS32_SEL 3 32 bit %fs Descriptor for user */ -{ .ssd_base = 0x0, +[GUGS32_SEL] = { /* 3 32 bit %fs Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMRWA, .ssd_dpl = SEL_UPL, @@ -392,8 +392,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 1, .ssd_gran = 1 }, -/* GCODE_SEL 4 Code Descriptor for kernel */ -{ .ssd_base = 0x0, +[GCODE_SEL] = { /* 4 Code Descriptor for kernel */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMERA, .ssd_dpl = SEL_KPL, @@ -401,8 +401,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 1, .ssd_def32 = 0, .ssd_gran = 1 }, -/* GDATA_SEL 5 Data Descriptor for kernel */ -{ .ssd_base = 0x0, +[GDATA_SEL] = { /* 5 Data Descriptor for kernel */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMRWA, .ssd_dpl = SEL_KPL, @@ -410,8 +410,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 1, .ssd_def32 = 0, .ssd_gran = 1 }, -/* GUCODE32_SEL 6 32 bit Code Descriptor for user */ -{ .ssd_base = 0x0, +[GUCODE32_SEL] = { /* 6 32 bit Code Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMERA, .ssd_dpl = SEL_UPL, @@ -419,8 +419,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 1, .ssd_gran = 1 }, -/* GUDATA_SEL 7 32/64 bit Data Descriptor for user */ -{ .ssd_base = 0x0, +[GUDATA_SEL] = { /* 7 32/64 bit Data Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMRWA, .ssd_dpl = SEL_UPL, @@ -428,8 +428,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 1, .ssd_gran = 1 }, -/* GUCODE_SEL 8 64 bit Code Descriptor for user */ -{ .ssd_base = 0x0, +[GUCODE_SEL] = { /* 8 64 bit Code Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMERA, .ssd_dpl = SEL_UPL, @@ -437,8 +437,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 1, .ssd_def32 = 0, .ssd_gran = 1 }, -/* GPROC0_SEL 9 Proc 0 Tss Descriptor */ -{ .ssd_base = 0x0, +[GPROC0_SEL] = { /* 9 Proc 0 TSS Descriptor */ + .ssd_base = 0x0, .ssd_limit = sizeof(struct amd64tss) + IOPERM_BITMAP_SIZE - 1, .ssd_type = SDT_SYSTSS, .ssd_dpl = SEL_KPL, @@ -446,8 +446,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* Actually, the TSS is a system descriptor which is double size */ -{ .ssd_base = 0x0, +[GPROC0_SEL + 1] = { /* 10 Proc 0 TSS descriptor, double size */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, @@ -455,8 +455,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* GUSERLDT_SEL 11 LDT Descriptor */ -{ .ssd_base = 0x0, +[GUSERLDT_SEL] = { /* 11 LDT Descriptor */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, @@ -464,8 +464,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* GUSERLDT_SEL 12 LDT Descriptor, double size */ -{ .ssd_base = 0x0, +[GUSERLDT_SEL + 1] = { /* 12 LDT Descriptor, double size */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, From nobody Wed Feb 14 03:53: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 4TZPSc1sw7z59qMx; Wed, 14 Feb 2024 03:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPSc0C3pz46Th; Wed, 14 Feb 2024 03:53:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rR0WU7eX0P0H+sga7UJyZzIG1Ly1jxxbmEcSbU2IsRc=; b=GV3p4wGtIjky1gQ48Xeg0w4xDOluCn/Gd7rfT5CgXEre/lX6XZEbY3biM0f0ZeYQ/D2NXv ZlEcDRhTmZc1GzLfpqyZq37vhzGDw2dWltG5u+9wgLw+EOk67SGUNkX5W0YqM19da4Qs6R XiKnTukAVUibtvOeR97+O+qNH0nFsHPChvIlhuD2jJhTXs7lvwSZJ3VbX27qiTcTpHvPOu JPcUEQQUa4ZgdY7aypmpZy51+jmloKrwW7JBngiV+vOGk/eMk/dreXOF6uLaV9CUa95tH+ +LSObjodiYgxkaVQHTKbIP0FuWoTQFv2MiHN5VwGHfBI0D0lmrwhyYnJXkxgTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707882832; a=rsa-sha256; cv=none; b=JOAYpY8ZCThecYzE/WMQ3MuGFcwSWeJdlTpEkVOc+KR5o6Chfvpk4nON/R+nGYYCuc5K8y eBRVDQ3qEtL2VDDfBjKrLIZDKe01guGJNejVQDxujvRnVmzawRlXyqRZLpIwYopTla1kYD VDi49ieawG1JLjTBJjlQBcPjthEAlRFIoLNVLaOuEyDEtTB+iVa5zd7dE4Mdx5lux0yHFw XEadta4x7M1w94DbLk8bPlQfyao3rAD3WJLAWMtYIjpsNSTfZAMaRC4RmL+09wpDA2JyQy l6aixsqWuq1tiVzyCEfGidOWuj0yL5pNcqkZOlDqt0WR3nKwgQUAkLIft9HxKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707882832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rR0WU7eX0P0H+sga7UJyZzIG1Ly1jxxbmEcSbU2IsRc=; b=wD/9tniXr5u2QqIjfxwCS62F/uurvq2ysBqhcSYxtZRyvrzDPZ99cfyq0aANrueIty/XS2 jw5jqScCORlrNwe30j11h1j957n940MwxznURyI3RW4w4JbjVnMSJnEVjXtYCD85HQ9T4/ NGE32wmjao5usNAEOA/rhdKC2OFvvv8YDPXpC/VEgm4yaQPqwXd1eLG0QF6aPpV7TXdOe4 yh7DuLeC0gMdAPKo440RwphM9VbGYnIfjQuQAhtacnF+XXqRscv1nd+O4fQkFnsvM1t6MD RjVvnfT1EZQStkd11cNJfhImcGUp4NIofp5QAsn7vzdpWzUHunX96795DIhanQ== 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 4TZPSb6QdbzjVb; Wed, 14 Feb 2024 03:53:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E3rpl7064738; Wed, 14 Feb 2024 03:53:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E3rpRJ064735; Wed, 14 Feb 2024 03:53:51 GMT (envelope-from git) Date: Wed, 14 Feb 2024 03:53:51 GMT Message-Id: <202402140353.41E3rpRJ064735@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: 1f7c8f047f8b - stable/14 - amd64 pcb.h: use 4 hex digits for pcb flags 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 1f7c8f047f8bdf67fc13ba9cdd05b7ace8790d37 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1f7c8f047f8bdf67fc13ba9cdd05b7ace8790d37 commit 1f7c8f047f8bdf67fc13ba9cdd05b7ace8790d37 Author: Konstantin Belousov AuthorDate: 2024-02-09 05:05:02 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:42:40 +0000 amd64 pcb.h: use 4 hex digits for pcb flags (cherry picked from commit 5f7ac491eef4994b23b4de250927a85c69a64a31) --- sys/amd64/include/pcb.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h index f98e5f68dd96..2205607fa6fe 100644 --- a/sys/amd64/include/pcb.h +++ b/sys/amd64/include/pcb.h @@ -78,14 +78,14 @@ struct pcb { uint16_t pcb_tr; u_int pcb_flags; -#define PCB_FULL_IRET 0x01 /* full iret is required */ -#define PCB_DBREGS 0x02 /* process using debug registers */ -#define PCB_KERNFPU 0x04 /* kernel uses fpu */ -#define PCB_FPUINITDONE 0x08 /* fpu state is initialized */ -#define PCB_USERFPUINITDONE 0x10 /* fpu user state is initialized */ -#define PCB_KERNFPU_THR 0x20 /* fpu_kern_thread() */ -#define PCB_32BIT 0x40 /* process has 32 bit context (segs etc) */ -#define PCB_FPUNOSAVE 0x80 /* no save area for current FPU ctx */ +#define PCB_FULL_IRET 0x0001 /* full iret is required */ +#define PCB_DBREGS 0x0002 /* process using debug registers */ +#define PCB_KERNFPU 0x0004 /* kernel uses fpu */ +#define PCB_FPUINITDONE 0x0008 /* fpu state is initialized */ +#define PCB_USERFPUINITDONE 0x0010 /* fpu user state is initialized */ +#define PCB_KERNFPU_THR 0x0020 /* fpu_kern_thread() */ +#define PCB_32BIT 0x0040 /* process has 32 bit context (segs etc) */ +#define PCB_FPUNOSAVE 0x0080 /* no save area for current FPU ctx */ uint16_t pcb_initial_fpucw; From nobody Wed Feb 14 04:05: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 4TZPk86KLjz59rHR; Wed, 14 Feb 2024 04:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPk85dmKz4B8G; Wed, 14 Feb 2024 04:05:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wzk23J9wYzLX1Xug0H+qgG8RDpLbG6A04JrfFw9kfbU=; b=AQBvaV4P1cGOx/nqObTGiHGrkmqU5RldNDv5HAPi6tJDPW1ZA3c9F3cVtltmOD7Ve4TYAZ GdCPRLycvn9tjtV/dxiGOA93WS1a78Q8qUjnp1EqSTUIB9xpDNpDXYursKI8UTiqx3y8S0 02SBDrNY3yOgq3SpvWOFyyrXoRNoChpgHWHFrCBo+vpp3kFd1MWa5cieXCiyR88X/qsCL9 TKdPIIOabENiEs1fpVpWQ7YZjIZKwGjkIih31R9j4s2HYFVTKwW3JL/kbc5iejwqGqvODg NHlde2FW53rzjp4Z4e5fvlK/6QlvfaDSbxPY22big3s9hGZKEoNcVf9Up+1Bxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707883536; a=rsa-sha256; cv=none; b=tdTSWX/Urej4mApWW6icdiKJdtgMZyc0GCvQG3/hp4lx0uo0p1FY96BSXErPTQL9hpmh6N j0T2grbQaNYebA51mXAPNe0vXdA0KYfzrsEDIsLi3y4cbF/d7fk+/JhguQ4Ak9Q9VsbytG D+fp6xmdyVlUFMK+sPuSOD+kNPsGB13Cyu/A0c7iolL7SMb4EUWm4XebcvuB3rIXqqe2Go BjulVLR2PC6WjrJVCRaSnDB41KIOxVPul4mayogPw10Ep5FbusMPigXdghn3clv4BXyWbU CQDvj/WuVeoYFB4ZU3Z+AMlQJha+6y1iXm/hF4Vm9uPlHJMl4deJSsjdtYQCQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wzk23J9wYzLX1Xug0H+qgG8RDpLbG6A04JrfFw9kfbU=; b=bEcY22f9BRx9CsZNFYL/KxL+htoyFbkbUN/9jd5rthdiEKqHHk9NasfPAyyBM5FUVaVbRd cTBkSRGy+hbK6419urOO4AwRXAvBB+oBiITFyIEf05cn87QOwGvKxtPonqieY8Q1EcO9p+ 69+XfDo0GC9/7DsjxKTOD/MEB0ol0cuJ0UsZs5lxgkJi4DPDd7sxZCeeV35bDUPZ5W0SJX sp3IYGrl7Y0MInGElHVgIZEZEekALw2ns55FWRX9ktwa/OyE9/5rsJu3/4tP1JZBiqKlmK jx57QspUzJCOMfuRdwgnTgk8PeHyRoojAIvg5LYcYeWCHp3LJEcYLYiLC/LzCg== 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 4TZPk84j4yzk2m; Wed, 14 Feb 2024 04:05:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E45ahQ082464; Wed, 14 Feb 2024 04:05:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E45aoF082461; Wed, 14 Feb 2024 04:05:36 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:05:36 GMT Message-Id: <202402140405.41E45aoF082461@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: a6ee29582219 - stable/13 - amd64/linux*: mark brandlists as static 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: a6ee29582219bc8f5c7ecde009f832a027443307 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a6ee29582219bc8f5c7ecde009f832a027443307 commit a6ee29582219bc8f5c7ecde009f832a027443307 Author: Konstantin Belousov AuthorDate: 2024-02-10 01:01:38 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:54:00 +0000 amd64/linux*: mark brandlists as static (cherry picked from commit be707ee09556a3fa345bc30c04aeeaa2a5d2efa2) --- sys/amd64/linux/linux_sysvec.c | 2 +- sys/amd64/linux32/linux32_sysvec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c index c8dc40ea0a29..92993c4548e7 100644 --- a/sys/amd64/linux/linux_sysvec.c +++ b/sys/amd64/linux/linux_sysvec.c @@ -908,7 +908,7 @@ static Elf64_Brandinfo linux_muslbrand = { LINUX_BI_FUTEX_REQUEUE }; -Elf64_Brandinfo *linux_brandlist[] = { +static Elf64_Brandinfo *linux_brandlist[] = { &linux_glibc2brand, &linux_glibc2brandshort, &linux_muslbrand, diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c index fb817ea2b1ab..b4fb9fd1b1e9 100644 --- a/sys/amd64/linux32/linux32_sysvec.c +++ b/sys/amd64/linux32/linux32_sysvec.c @@ -1003,7 +1003,7 @@ static Elf32_Brandinfo linux_muslbrand = { LINUX_BI_FUTEX_REQUEUE }; -Elf32_Brandinfo *linux_brandlist[] = { +static Elf32_Brandinfo *linux_brandlist[] = { &linux_brand, &linux_glibc2brand, &linux_muslbrand, From nobody Wed Feb 14 04:05: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 4TZPk54DFhz59rPt; Wed, 14 Feb 2024 04:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPk53BNsz4BMw; Wed, 14 Feb 2024 04:05:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+AVSORTF+5Ne1fhcAL9deE9vdBuohL5VsO8DoEucwS4=; b=MejgvxO7ovbh1i4coE+GDakBGZra0U8zfklfxcdLIRRY8WqP6CEF4VKuIiClZOz7frR0P1 B+MGIMggOjfINAcmK//NnsNWO7dGuL2QwB5Ff2oOo29wL7Zy5yR2YX0NfKfUc3N4KFgYlA IUE925lK2zHdUC6g8I0HTi3zp3B3rnQ7efzBCITPFMzqfqgnafpv8QddAJ+OsFUuKvMTjC 5Exde7fvAOIMxsQzGJPhkEbyo+nixvjlCtZyxI69Ka2Epbs/5+K7h6JH89Z/NhiR9YyTil BSdDzrYMYH0ao53ZUoT5UApIBhOdc7gOttRi2j8pItmaubK0DRIuwT51PIoDUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707883533; a=rsa-sha256; cv=none; b=LJuLOXgnH212bTD7NQY0zw6ThPWs9BLa9LzfPKXawEAepYmCDa8RYMF0ec98EtI71KvQwZ NOAMTmaYeb4kzUjzUNdpxQ0Pvy+rdYNPFDmvQ3EgVnd1h8VVomc7oF7s6o2HX/5bF5HFEy A4zyL1dWvjlzG2KZkHtadWSroGkbyis2qfI7/1jmqvY0YopaoYdKt/w4ZNW+iNOGNMocMb 7XIuuO5QcIy1IWuf1V8ytRQKsUOLLoFyGkhoIx/gEXTqfkjCT3z6SEBIwvomqh3Lb3jL95 WGcowDC9zZnB9LP/g7uqJyKiwUjQ2t1n6K7r/1OfbHJ9FRzuTNDnnDOE+bRqfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+AVSORTF+5Ne1fhcAL9deE9vdBuohL5VsO8DoEucwS4=; b=bqOVPGJU1TnR5xXdGIQ89JeKJmsoM3aKgTCv+1MhIaA+MvYu9e/ru9tEvS0WQXW689MxGH F88d6QHnemRPz3WYaudYm7EMarkev42phZifkyWqY3bL4bKNF+otqZlmU2tihuhlPAfcgX PJYTWdHHNbfob6sF4PdC/8/g3PCA7TDMcO0gXFFUdzoy0V2IQOKOZ6RafyQLoIGXdsMiju 0SJr6Fn7YW8qd19zFiegVsxYB7tktEcp2E2woq9+QIwhQDxzZjyZHWqY3/VpzlWVNLcrKJ eZm4P1ZJG9mkWbTExkdGvGIYoCOj5kbNSIO/vTmr1FuwcWl+BrbSA63kaq+/IA== 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 4TZPk52FMtzjpT; Wed, 14 Feb 2024 04:05:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E45XMM082322; Wed, 14 Feb 2024 04:05:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E45Xuu082319; Wed, 14 Feb 2024 04:05:33 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:05:33 GMT Message-Id: <202402140405.41E45Xuu082319@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: 9c1f5e270eb3 - stable/13 - amd64 uprintf_signal: add space between %rax value and code bytes 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: 9c1f5e270eb3e30dba62baf0b4d42a0b643207c3 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9c1f5e270eb3e30dba62baf0b4d42a0b643207c3 commit 9c1f5e270eb3e30dba62baf0b4d42a0b643207c3 Author: Konstantin Belousov AuthorDate: 2024-02-10 05:06:00 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:54:00 +0000 amd64 uprintf_signal: add space between %rax value and code bytes (cherry picked from commit 130bad217bd8bbd7531539e4f5eb83d3c284e991) --- sys/amd64/amd64/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 9f50de795ca5..9b01ecbc2d53 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -625,7 +625,7 @@ trap(struct trapframe *frame) ksi.ksi_addr = (void *)addr; if (uprintf_signal) { uprintf("pid %d comm %s: signal %d err %#lx code %d type %d " - "addr %#lx rsp %#lx rip %#lx rax %#lx" + "addr %#lx rsp %#lx rip %#lx rax %#lx " "<%02x %02x %02x %02x %02x %02x %02x %02x>\n", p->p_pid, p->p_comm, signo, frame->tf_err, ucode, type, addr, frame->tf_rsp, frame->tf_rip, frame->tf_rax, From nobody Wed Feb 14 04:05: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 4TZPk75fMCz59rKJ; Wed, 14 Feb 2024 04:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPk74Zy8z49qY; Wed, 14 Feb 2024 04:05:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PNR0YV7igwlLIY+M2nLQGMrK4BDmNDCu7jLNJ6DCBjU=; b=nqeb+IBSjxJCqH1nkpa/6Z4w5yVngxWSaVhk+jML5BV1urwX8XFzv1x6Bpmcra7vr8ehUe G5ZaaC/mFoEABWUlJP0n+kHYT/Nsx3Yy8wIe4xR38xTWQy9l+Q1fPio291mc6XyjU8NS/n Xc67FyXNCxAS6jcThZslq8CqfyTWw7ARznEiPDEbDujyr3ijr4bALvc5R537WYMDvjUxmu yMTVA2mcrxtsIxVVbxqmzkk59a3curMQINgOwdFwVr7hwArVWbcp60Q+idAZq8fQ/NrFfR GJhsvXVV6hWJquUrQGxDmz+PtVyjNoTp6RwoZj29z0bqedhEkSBwZOmwMkBjAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707883535; a=rsa-sha256; cv=none; b=pshwdaYSnknGm8CknJ9XkDGTRLvnjgkRs2eQUyJxWHEyh+Cz5A/pF75dwOXLLfUpKoPNAq KRAEPYvsVU0bnJN/09WANq/7cbNoOI1dLkdIcTnW8Dtnfcq13szSe5uUuM5o62PWqZi8wW KRle/xsFp569QcorPSHvHAJ+YfGhOs+NYGrMEY+tQRfCks83kTmtYU2VZ3Ts+GcMAMJ8YQ XtK+SGV3/eDows3A3OK+XDd0kxM8eEU38yfxvICnhnVLt0DfdfAOPynwaz55YlOA2Z6G9V yvhaMD44aVKmPl0laQnVoujR6Q2WJ2YBnLbrpUYgFt9J4N+eSQqq5ZyK76xHUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PNR0YV7igwlLIY+M2nLQGMrK4BDmNDCu7jLNJ6DCBjU=; b=B0GgOO0+zxn1qQFR5lLRf/kI3GSi/H1Rckq60PwK0Ja+NZgXaMkOMMmVA4fm/0sX+yBr9p Vj/U2r3bVGb82458iB2pUX8KSf4gBeRJjEFxq+OW2/2LQUdMbPOfCZ5ww0B1+gKF2Fj+aM dw7FmnPBVWDNFTiADIgBbMr1aoYTCGeEtX4hEQGotIo76tTJcRee5n2of3djyWpv8P0zKC 2AV4/rZ5SyebgSt2e4eikMcC4MljhZUMhEvzGuPseKeHcVkDUCkcfJmfXW1BhnH2kDhY6t ZfRkjBcrgoHVGUqjlwBklElWawT2JIKFBJ+c/7IBHU2DBtS3zYwWDUituyVG6w== 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 4TZPk73g1Jzk1w; Wed, 14 Feb 2024 04:05:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E45ZPO082422; Wed, 14 Feb 2024 04:05:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E45Z2c082419; Wed, 14 Feb 2024 04:05:35 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:05:35 GMT Message-Id: <202402140405.41E45Z2c082419@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: 72616ae38093 - stable/13 - ELF note parser: provide more info on failure 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: 72616ae38093f627821e119c7470537aaf254a10 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=72616ae38093f627821e119c7470537aaf254a10 commit 72616ae38093f627821e119c7470537aaf254a10 Author: Konstantin Belousov AuthorDate: 2024-02-10 01:36:58 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:54:00 +0000 ELF note parser: provide more info on failure (cherry picked from commit 29d4f8bfc642f0196c27eb469ea7eb326ff529d1) --- sys/kern/imgact_elf.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index 0a6ef1242d77..cae1889bc4c5 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -2703,6 +2703,7 @@ __elfN(note_procstat_auxv)(void *arg, struct sbuf *sb, size_t *sizep) } } +#define MAX_NOTES_LOOP 4096 static boolean_t __elfN(parse_notes)(struct image_params *imgp, Elf_Note *checknote, const char *note_vendor, const Elf_Phdr *pnote, @@ -2742,9 +2743,15 @@ __elfN(parse_notes)(struct image_params *imgp, Elf_Note *checknote, pnote->p_offset + pnote->p_filesz); buf = NULL; } - for (i = 0; i < 100 && note >= note0 && note < note_end; i++) { - if (!aligned(note, Elf32_Addr) || (const char *)note_end - - (const char *)note < sizeof(Elf_Note)) { + for (i = 0; i < MAX_NOTES_LOOP && note >= note0 && note < note_end; + i++) { + if (!aligned(note, Elf32_Addr)) { + uprintf("Unaligned ELF note\n"); + goto retf; + } + if ((const char *)note_end - (const char *)note < + sizeof(Elf_Note)) { + uprintf("ELF note to short\n"); goto retf; } if (note->n_namesz != checknote->n_namesz || @@ -2764,6 +2771,8 @@ nextnote: roundup2(note->n_namesz, ELF_NOTE_ROUNDSIZE) + roundup2(note->n_descsz, ELF_NOTE_ROUNDSIZE)); } + if (i >= MAX_NOTES_LOOP) + uprintf("ELF note parser reached %d notes\n", i); retf: res = FALSE; ret: From nobody Wed Feb 14 04:05: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 4TZPk43Fbrz59rK9; Wed, 14 Feb 2024 04:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPk41sbxz49sw; Wed, 14 Feb 2024 04:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u4jZEJXeyV/6uzJvxtEl6Y+ViQ1bbYSPRFpKrJo9G0E=; b=KvMUpPDhFnTyYN3+1AZmwMB9YqjbO1xgo/UHL978BWVJxUZHxoktzPKzGJ/6TBDNW+WK/i R3yW0pJoV9paBmDy4F2klRFFIZPkplXPXzgcXUs0M8KttqJ1tjjtu46p0jrtT5TAjFLc8g PbOMgCspbUa4ZULuEoV+FBZAEmEVtD8L5i2zhZ4nS/lurJGax4Bmpi8x/iLekJvAWBToHe ZK6b58UpcsEZweGowXWwMiHMeW84rrNGMUcz14MdexlZHjhkTsecOpDu+Lm5oOhEWSnbxQ 8KDOinXI1d7k9lNuD/0HZf3OpuSL4mBx6hltU/yIIc+9NP9XMEPze48Qp6xxOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707883532; a=rsa-sha256; cv=none; b=GUIQu/J684aT957eGfblKEPiM/Q8hpWfoql1ip19BZstSeXL+X+5Ig482VPQRpIs7C+VmT W9ycxnEcthaUjSpQodL/5QosO9Is0y01qlj3FDbSJbdAHg6ay8NHb3vFx5nsuvIyhLZmRp pXY9REU0RQGidxkaQ30AsjeTEJvbJsOfczN8RbG07uKN82LhvelIMSqbGzSuq1Lyq9CA8Y G6Bqfy3UPRgZHoi7BCIJOGp3Nze75qaNq0NFNmjhKomNWWSrGSB4c2Umww7Q/JV4Tqn5q8 k+tmFVZCN1cfqcy/7B8xW2JdLTOyoVv5NpXFr/8C7u8za4SJ7Kuo+7aGNa7E/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u4jZEJXeyV/6uzJvxtEl6Y+ViQ1bbYSPRFpKrJo9G0E=; b=eWMHICs+OqU9kZcgFGgTZdMwfJ++5nKwRpvAkQLyJ/yQd0JSGr1DrrafOr9z7P05sP8aex 0MdCkd3gNQRu0wNJgQqUnwrayJMxiqVFXU2NsVTO+qd1PhAELVaj1fgObec+Jk33hyPfYB RthAULrSoAKdZB2+4oMQeSYKt7X7Ix39qcI2zn5HUe7kDYvNFGaa+bqyv+jx254V9M23TF k1IZkZ8q5oxBEuV3feqdgd/+VVeGn+Cyb2eF40Cqp4Q6L92mrSN3HfYZ9A5PGudhrl0oxn wi5y2nam0cUmlKpTX6ppCbglqgh2MJT5UcPuFd9KalL8Ydq9GRyeJtucoq9SoA== 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 4TZPk40wxWzkBB; Wed, 14 Feb 2024 04:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E45W0K082264; Wed, 14 Feb 2024 04:05:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E45Wmk082262; Wed, 14 Feb 2024 04:05:32 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:05:32 GMT Message-Id: <202402140405.41E45Wmk082262@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: 42667ceb9d00 - stable/13 - read.2: Describe debug.iosize_max_clamp 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: 42667ceb9d0026f7d1e5f95297b942af576cd929 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=42667ceb9d0026f7d1e5f95297b942af576cd929 commit 42667ceb9d0026f7d1e5f95297b942af576cd929 Author: Konstantin Belousov AuthorDate: 2024-02-10 09:40:07 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:54:00 +0000 read.2: Describe debug.iosize_max_clamp PR: 276937 (cherry picked from commit 3e9515846f8cbff0ecccaab65d9f70890d04429e) --- lib/libc/sys/read.2 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index e3b5b21d1c31..94644045afc1 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -25,9 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" @(#)read.2 8.4 (Berkeley) 2/26/94 -.\" -.Dd June 4, 2020 +.Dd February 10, 2024 .Dt READ 2 .Os .Sh NAME @@ -222,7 +220,12 @@ for this file system. The value .Fa nbytes is greater than -.Dv INT_MAX . +.Dv SSIZE_MAX +(or greater than +.Dv INT_MAX , +if the sysctl +.Va debug.iosize_max_clamp +is non-zero). .El .Pp In addition, @@ -248,7 +251,13 @@ The sum of the .Fa iov_len values in the .Fa iov -array overflowed a 32-bit integer. +array is greater than +.Dv SSIZE_MAX +(or greater than +.Dv INT_MAX , +if the sysctl +.Va debug.iosize_max_clamp +is non-zero). .It Bq Er EFAULT Part of the .Fa iov From nobody Wed Feb 14 04:05: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 4TZPk64k8Fz59rHQ; Wed, 14 Feb 2024 04:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPk63qzGz4BMx; Wed, 14 Feb 2024 04:05:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NiFBfAKp6vuAVW0R0g1j1Hy0lsn12E+BkovlTlznr2A=; b=UQ7hj+JfpfRQccVmaGXyHhIZ1b0FDlhzx3BHCUHSIQuK0zQdAq4Z5vvqMuBTsddhUMHage Rtb3CN23hESUJw8WhpRi+S0IBOAIlW9ZgsNo9httLxnqLc9eR9oxqkZaDYarfNWfHh5H+r SgRAWv0hesTZv4+KDDoOTYHK6KHSYDPT1pS7gepsfw4ebEivedbAO8OYDSAbDi3R60h5T0 6uCRB03uF532rHnlXuJv3kmEB2pPUH3fO6hVGh8rnhSojdk1936WG6w7b1U6wK9nRfnHPZ JKUjZrId2yvR/xdD3dtyc4nxDLETbXPTKOVvpIEWmKxKT3hxq/eCFyBWG1HIFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707883534; a=rsa-sha256; cv=none; b=Iu6Q6JfvTqaFZoaoy4yb/ZeI+vnQy1Dme5EReGq+LI2TqtVG1Lc8/SYxUWRrrddQlSZVZq jC8AGTsidc0Y+4/Lck6IKc0nZLa5Slq7xvR5cptkO+LuGWNPjh0xYbTLJ45lLgg+gpzXr4 Ya9joDC1Sarjb5YXZD4fDquNAiAZMZ8FpL19p7+trYyBCHTFGJPLA8AcZmw2ZIA9ZTG2Hn /RoKniSMyuQum+I2ZGyZtYYnZftTZZGvz5JO8YmfSYiIBpwVIQq0qYXayzaCJRg8L5PUky QARmO2vUNTOIF5gZuzas/n6EPir+CRcRHOTuvPVKCfNLEKJGbBOEZs3ShEs+cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NiFBfAKp6vuAVW0R0g1j1Hy0lsn12E+BkovlTlznr2A=; b=x8Jxw7dBuvdI0YcKtxYd3GU8mu5+OCKoPpmkpvjUNQR884bmnt47I26zxrXm3p39wUasaD y6im9cpqjx4cqyrHISIiGnUcGbMh7NBXQmhWmg1QvYBhSV75iExBZl9DuyQF04kkPEaQi0 aCd2h9OoXtXpgDebh022msa6BmctthC0bEjmfDyOwbzN03PJ3j1P2mJOL+lj7Dzx9v6cRF dIZXT8HJXjERXKWG+R9TwdeQCbeCo1TF20Xb7mlVE2faa9Zrf5tzuCtLux8WEHGk5Dbek9 mLDfXL0b7l90Nn6OWgzohODyYBoc9KfYhcJwSvBiHONrofrUi5NbG8hc6M3cPg== 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 4TZPk62vv7zjpV; Wed, 14 Feb 2024 04:05:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E45YQb082368; Wed, 14 Feb 2024 04:05:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E45YSn082365; Wed, 14 Feb 2024 04:05:34 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:05:34 GMT Message-Id: <202402140405.41E45YSn082365@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: c8c59f2606fd - stable/13 - imgact_elf.c: remove sys/cdefs.h include 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: c8c59f2606fd41b7372e2558a2542c2dd14d07db Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c8c59f2606fd41b7372e2558a2542c2dd14d07db commit c8c59f2606fd41b7372e2558a2542c2dd14d07db Author: Konstantin Belousov AuthorDate: 2024-02-10 01:02:33 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:54:00 +0000 imgact_elf.c: remove sys/cdefs.h include (cherry picked from commit a67edb5616c1514726ac1c8596ce0ddc2771e2fa) --- sys/kern/imgact_elf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index c23d729f49b2..0a6ef1242d77 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -31,7 +31,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include "opt_capsicum.h" #include From nobody Wed Feb 14 04:05: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 4TZPkC1CcFz59rXl; Wed, 14 Feb 2024 04:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPkC0bP8z49qb; Wed, 14 Feb 2024 04:05:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pMT5X3wIy08irtLb6k6tDe9RkTlXJcm/Gc3ATIWoB9I=; b=ohJBU+3beFW66n4sRMcFaaLv5AW+RPCUFYRvpY9xMrTNBZ7ZgigwoHi+e/hgZcyAKvPn5t 0/O605KbuJswP5/quKM6aktY2BO9JLGhlEkcMRV6esN9HR7VMPgZu6fDZNWYFiBSUvFomc aOXwXYuI9/JGVRhKfEW/KwyrPKoQJXQGSQtXrtjc4n2blWHyQBldU6RU2yMbnmlazL/CwM czFHR4DKPZT90QHDalHKGtgyY1cqV2PXxkAWaq+bWr/Ik7RdWCIfH1QvbJiuhAmUOBuLFN knbZHzg8dubUD3zGJNyshpOgq2Sw31dg7J49EkP7Eb15xj7VJ1LWo9t7yOBa9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707883539; a=rsa-sha256; cv=none; b=Pn6ibJka4V3RzQhNUJDsgG1SuTTIQDzWQlkCk2waUoQnOxuZ1yUk0fNuWXff5nLaGTeOWJ Z1Bi9zZDwZA0Oi9VtDZuEe0M/9Rtc1wspv+3GXDc2EM1jH9WpfT3QySC7l44HLSUjoP2XJ 1e2X5NDeh8/RVm0eNsQDHMgz78jJL8o/Pn0kzIZoj7E2oXS5+CrJORXKqd59Q/PlDOpJgK 2sbSQM31dYuO8WPh/5+E9WmvmQbSuF7C1L76/WSMgUL7ooKyF1ZRSTgg6LdoZSeHZuKKvr BB+CLOq7DH4x2+plwIyaO5e4Tw/d4XqAuDaKZi6yeM2BRxBGegNpXep87QdkjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pMT5X3wIy08irtLb6k6tDe9RkTlXJcm/Gc3ATIWoB9I=; b=SxbCLsQk7IePsyvPGgxaad78EwX0ki6xzkYVkjvJ/uzW23/DmG9QA+YdYWROX0YNPOlLl6 k30Vz+hZnQr/9oTI0wjsQikKCY6AwKcVHIy7Keq5hJkdVyobslS8nHHF3Vx6bZrv63L6nn spNgtWUn/MTfKHhlkAouTqiZJXBWUXHYibG1ZlTuBaHQ7rzPuT3S2rAgEnOScQLNqDBkj5 89tUIzEOigNW9y6hoJGe+Anh545cy3odHCstx5YsilhFcwEIIv21Y0aRHT7N4Y3uRUq+fE MnXZriz5xtaZgQG+ZbDyg9/Tu9TKUsUkvFBIlQQfDMms9coqBlgoIQ5F6kSV1A== 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 4TZPkB6pZ1zkBC; Wed, 14 Feb 2024 04:05:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E45c2K082560; Wed, 14 Feb 2024 04:05:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E45cmh082557; Wed, 14 Feb 2024 04:05:38 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:05:38 GMT Message-Id: <202402140405.41E45cmh082557@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: 391d212c42cf - stable/13 - amd64 pcb.h: use 4 hex digits for pcb flags 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: 391d212c42cf2a64639425126c48bb6edbbbcdcf Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=391d212c42cf2a64639425126c48bb6edbbbcdcf commit 391d212c42cf2a64639425126c48bb6edbbbcdcf Author: Konstantin Belousov AuthorDate: 2024-02-09 05:05:02 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:54:00 +0000 amd64 pcb.h: use 4 hex digits for pcb flags (cherry picked from commit 5f7ac491eef4994b23b4de250927a85c69a64a31) --- sys/amd64/include/pcb.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h index f98e5f68dd96..2205607fa6fe 100644 --- a/sys/amd64/include/pcb.h +++ b/sys/amd64/include/pcb.h @@ -78,14 +78,14 @@ struct pcb { uint16_t pcb_tr; u_int pcb_flags; -#define PCB_FULL_IRET 0x01 /* full iret is required */ -#define PCB_DBREGS 0x02 /* process using debug registers */ -#define PCB_KERNFPU 0x04 /* kernel uses fpu */ -#define PCB_FPUINITDONE 0x08 /* fpu state is initialized */ -#define PCB_USERFPUINITDONE 0x10 /* fpu user state is initialized */ -#define PCB_KERNFPU_THR 0x20 /* fpu_kern_thread() */ -#define PCB_32BIT 0x40 /* process has 32 bit context (segs etc) */ -#define PCB_FPUNOSAVE 0x80 /* no save area for current FPU ctx */ +#define PCB_FULL_IRET 0x0001 /* full iret is required */ +#define PCB_DBREGS 0x0002 /* process using debug registers */ +#define PCB_KERNFPU 0x0004 /* kernel uses fpu */ +#define PCB_FPUINITDONE 0x0008 /* fpu state is initialized */ +#define PCB_USERFPUINITDONE 0x0010 /* fpu user state is initialized */ +#define PCB_KERNFPU_THR 0x0020 /* fpu_kern_thread() */ +#define PCB_32BIT 0x0040 /* process has 32 bit context (segs etc) */ +#define PCB_FPUNOSAVE 0x0080 /* no save area for current FPU ctx */ uint16_t pcb_initial_fpucw; From nobody Wed Feb 14 04:05: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 4TZPkB0V6Lz59rQ2; Wed, 14 Feb 2024 04:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZPk96dyGz49l1; Wed, 14 Feb 2024 04:05:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VA8FaPVpcb3Sqige06ygWCbESdbRvYBoUPX6L2hNCTc=; b=oEbTZpIr68BjJ4rQ0oc8de7O/IcTeEzHbUD4R2cJKmhF091VQw3ofmAIherG9uhySGNS2n u2t2ZnVGXc7tx/AJFiOzMNE1lYyy+S8QCmEG3edu1qOovwTzPAm5hQKep7vldXhbII9dyR yJrJOiK/fp3WcEUnZlz5jSGQFM20yH3ZonodLKAOrt/8EWtw9SKDXrDxRj8DOyHacoxmnc Kx/HvUxC4rCibl2jFiFxqHKYMNlla46n2ohFgwwSFnjsZswFG3uOygFy4UoZDCtULJUA7S ayvBDSnnnm3s6kL66Fz/Yen1JSd07ubZAtZ8gjmYLOhbCn4Q7ylbcsbPShwlpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707883537; a=rsa-sha256; cv=none; b=RZCqTH9NS187zandwf3LSeOINChIfER6n82Iz969tqKwAevs7+82/rVtUAOxPqkZZSSzGZ eiCUDXWOIZo56pl+olOREBP51rE/LSNx3F46N/v2QzthtV90VIljRAqb94qrsfV3RBvXFx kr50LEDefhInXp72CM0lq0JVbs2JSpSC9axC6XxnJXGcIS14UPuryVxYNVOFsnzwrEMbG+ /bXtQHk8wB8CUWPic/K1oIvjBoytiZSOLnjlbMBe4y+hGc3VxoPIdjpyMDC4N6ZWS26U2W NcGY+4lmdiGG+N/kd7b/jzsTwejWfWVVOQkHeLQDHKqvsRpHYN7jOrjXnGWSfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707883537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VA8FaPVpcb3Sqige06ygWCbESdbRvYBoUPX6L2hNCTc=; b=I2nxZ2u8hM0lCB50C9GCbVRDJnXWlNeUwgVbV9KVDF0AMN5p/X3TZaiMZ6eY8hnBmf6dyN WxguXBdDKYDNfbsa7+ylGVVMZR4bOflfMKD19Pp8DwPYbZTRZ7t94qQOV5N++/QJAn7tpE TuW3RxgqcxWrYWmQ3zVp14yUWHd51CXXkqh2lAk73Xqq9qo6r82ORJnD6EJVeAgTOZKYYr LK9dV31UX1rnc43gQBpG6eWfXgWe5x8aIzGCCfRHnrkMkcfyzPzSdWw/1EvQMF2vJFukYv MW4nng+2boRWIDf1E8dsX4DbTYMTLzZyyocipjZtJpNuO/9KKZvgNkvjzoj8Vw== 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 4TZPk95kJCzkDf; Wed, 14 Feb 2024 04:05:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E45baZ082506; Wed, 14 Feb 2024 04:05:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E45bGr082503; Wed, 14 Feb 2024 04:05:37 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:05:37 GMT Message-Id: <202402140405.41E45bGr082503@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: 976b3cf86d79 - stable/13 - amd64 gdt_segs: use designated initializers 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: 976b3cf86d799de4d53c56d83ce47ccbbe192a7a Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=976b3cf86d799de4d53c56d83ce47ccbbe192a7a commit 976b3cf86d799de4d53c56d83ce47ccbbe192a7a Author: Konstantin Belousov AuthorDate: 2024-02-09 04:59:48 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-14 03:54:00 +0000 amd64 gdt_segs: use designated initializers (cherry picked from commit 1d6230b07ff29b4d3ae527dbc0fc3f9775a7542a) --- sys/amd64/amd64/machdep.c | 52 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index eef11f0bdddd..928203a690ac 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -357,8 +357,8 @@ CTASSERT(sizeof(struct nmi_pcpu) == 16); * slots as corresponding segments for i386 kernel. */ struct soft_segment_descriptor gdt_segs[] = { -/* GNULL_SEL 0 Null Descriptor */ -{ .ssd_base = 0x0, +[GNULL_SEL] = { /* 0 Null Descriptor */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, @@ -366,8 +366,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* GNULL2_SEL 1 Null Descriptor */ -{ .ssd_base = 0x0, +[GNULL2_SEL] = { /* 1 Null Descriptor */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, @@ -375,8 +375,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* GUFS32_SEL 2 32 bit %gs Descriptor for user */ -{ .ssd_base = 0x0, +[GUFS32_SEL] = { /* 2 32 bit %gs Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMRWA, .ssd_dpl = SEL_UPL, @@ -384,8 +384,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 1, .ssd_gran = 1 }, -/* GUGS32_SEL 3 32 bit %fs Descriptor for user */ -{ .ssd_base = 0x0, +[GUGS32_SEL] = { /* 3 32 bit %fs Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMRWA, .ssd_dpl = SEL_UPL, @@ -393,8 +393,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 1, .ssd_gran = 1 }, -/* GCODE_SEL 4 Code Descriptor for kernel */ -{ .ssd_base = 0x0, +[GCODE_SEL] = { /* 4 Code Descriptor for kernel */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMERA, .ssd_dpl = SEL_KPL, @@ -402,8 +402,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 1, .ssd_def32 = 0, .ssd_gran = 1 }, -/* GDATA_SEL 5 Data Descriptor for kernel */ -{ .ssd_base = 0x0, +[GDATA_SEL] = { /* 5 Data Descriptor for kernel */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMRWA, .ssd_dpl = SEL_KPL, @@ -411,8 +411,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 1, .ssd_def32 = 0, .ssd_gran = 1 }, -/* GUCODE32_SEL 6 32 bit Code Descriptor for user */ -{ .ssd_base = 0x0, +[GUCODE32_SEL] = { /* 6 32 bit Code Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMERA, .ssd_dpl = SEL_UPL, @@ -420,8 +420,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 1, .ssd_gran = 1 }, -/* GUDATA_SEL 7 32/64 bit Data Descriptor for user */ -{ .ssd_base = 0x0, +[GUDATA_SEL] = { /* 7 32/64 bit Data Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMRWA, .ssd_dpl = SEL_UPL, @@ -429,8 +429,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 1, .ssd_gran = 1 }, -/* GUCODE_SEL 8 64 bit Code Descriptor for user */ -{ .ssd_base = 0x0, +[GUCODE_SEL] = { /* 8 64 bit Code Descriptor for user */ + .ssd_base = 0x0, .ssd_limit = 0xfffff, .ssd_type = SDT_MEMERA, .ssd_dpl = SEL_UPL, @@ -438,8 +438,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 1, .ssd_def32 = 0, .ssd_gran = 1 }, -/* GPROC0_SEL 9 Proc 0 Tss Descriptor */ -{ .ssd_base = 0x0, +[GPROC0_SEL] = { /* 9 Proc 0 TSS Descriptor */ + .ssd_base = 0x0, .ssd_limit = sizeof(struct amd64tss) + IOPERM_BITMAP_SIZE - 1, .ssd_type = SDT_SYSTSS, .ssd_dpl = SEL_KPL, @@ -447,8 +447,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* Actually, the TSS is a system descriptor which is double size */ -{ .ssd_base = 0x0, +[GPROC0_SEL + 1] = { /* 10 Proc 0 TSS descriptor, double size */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, @@ -456,8 +456,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* GUSERLDT_SEL 11 LDT Descriptor */ -{ .ssd_base = 0x0, +[GUSERLDT_SEL] = { /* 11 LDT Descriptor */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, @@ -465,8 +465,8 @@ struct soft_segment_descriptor gdt_segs[] = { .ssd_long = 0, .ssd_def32 = 0, .ssd_gran = 0 }, -/* GUSERLDT_SEL 12 LDT Descriptor, double size */ -{ .ssd_base = 0x0, +[GUSERLDT_SEL + 1] = { /* 12 LDT Descriptor, double size */ + .ssd_base = 0x0, .ssd_limit = 0x0, .ssd_type = 0, .ssd_dpl = 0, From nobody Wed Feb 14 04:56: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 4TZQrw5W3Lz59xGv for ; Wed, 14 Feb 2024 04:56: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZQrw3VJ0z4LQC; Wed, 14 Feb 2024 04:56:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707886592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8+wdatwWHBsqihC+2K4qlzyCgewzsU53pz1FLzU1MKo=; b=M8rG3vaITfHwSNYiiz2rR3mzBslMnxS1Vfn9ep+eJo8Kos6bRrV19/GuSAplY/Rl+VjbVp k692Evpj6JvGWSsjedaZ2ctPr/IucMTlW5bAGl7+JksF9lS0ygRccq9zr+Aiv+35qucNYy vgIRCrZ5D5Qk5YGpTLulDqwTdPCsly87BgpywNw7pljQWYlElPHZRgx5l3ejxS38DBSU95 DkZ89OAnPYWQjDL7ZoJJMm01+CYz128JCrkBjAjmS50dpyGzh/i96FXfq0aa29XCMhLLhN aXOtuxXa6uNs3WxPn86p+R5WmnwLQjKoxghuFa2MGbeRtbi50/BdiTafAfJ8rQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707886592; a=rsa-sha256; cv=none; b=xx4oJ0sFavzW/25WgGqNTiBRW9YHUJfc8Oi3+Q/tsdJ2rKnk+czwaj75gCKoXV4PyENRKh gJV0eixdPDPjcn1jVk3lsirpPFan3kzMy5WRU5uR/PlsrzRnTGUU7eBy+E7UALt776qlWR pz7hT5GSfp9QLzfHgbZBdKZIDxiLeA6gUtcqb8Dg/8BlVhhG8KJV/ZRpzf5wZ+rzMvn5a1 hWgA0DH/NrW2/ccTK+TSQ+hOx26FZA5Wj+2SN1P55eq/c9mhyUJdvEDarUotNujmZdr61g apvUNkyfXkf+9dLljzLCdDWGEEtWzgY7U0PrnTGzvdKomOVpw7Fca35VD05XLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707886592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8+wdatwWHBsqihC+2K4qlzyCgewzsU53pz1FLzU1MKo=; b=Hy9g200tSZb39+CkWLup/zmlyxQJgYW9eWhAYpgMzvcFq2EzSg/V3ocjErR5AI8Ay5SnhC krbMm3Osl5kwW07U5+2l1KjERu5w4cpogcEAl76ufrlwfL4BIpYm+14jefHz2M2yN92tgj x0iMsHsVNSs9V6ufE921Ul0PpOccyjm+9hoC+Urf4AGBmfs5hburv990VROykJWE6G9pZk vPkONxf6HKWQ7/6EhrzFJuyM/dZ1guiPNeNBC5AmqA3KlH0mAQsQ60noief7adaVcidIkM WGZJXpvoh60ZYpDG5LmZaVxfEBZASQVPJsafMIq2CJs4vQ9QcgeTKcxI5e7aDA== 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 4TZQrw2DxzzkhT; Wed, 14 Feb 2024 04:56:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E4uWtp065253; Wed, 14 Feb 2024 04:56:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E4uWPN065252; Wed, 14 Feb 2024 04:56:32 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:56:32 GMT Message-Id: <202402140456.41E4uWPN065252@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Cy Schubert Subject: git: d758c821f202 - Create tag vendor/unbound/1.19.1 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/tags/vendor/unbound/1.19.1 X-Git-Reftype: annotated tag X-Git-Commit: d758c821f20217e2e67c29c0d898753f0d7c3cff Auto-Submitted: auto-generated The annotated tag vendor/unbound/1.19.1 has been created by cy: URL: https://cgit.FreeBSD.org/src/tag/?h=vendor/unbound/1.19.1 tag vendor/unbound/1.19.1 Tagger: Cy Schubert TaggerDate: 2024-02-14 04:55:41 +0000 unbound: Tag 1.19.1 commit 217a625642d38bfc0d3d03192b013d4bc7a32458 Author: Cy Schubert AuthorDate: 2023-11-13 19:44:16 +0000 Commit: Cy Schubert CommitDate: 2024-02-14 04:54:33 +0000 unbound: Vendor import 1.19.1 Release notes at https://www.nlnetlabs.nl/news/2024/Feb/13/unbound-1.19.1-released/ From nobody Wed Feb 14 04:56: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 4TZQrw5Vzpz59xJr for ; Wed, 14 Feb 2024 04:56: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZQrw3VH1z4Lgr; Wed, 14 Feb 2024 04:56:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707886592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EhnqNCljf1NEIJg340uu1RSIXqwhz1fCn/qcdzpara4=; b=mqtVjwFTSAxNCcs4DIsIYuHA0u51nqFwyBDReQOG8riTudoJPgxVOW5rWUsqpe0Yf5exdR +8PGFvMazB5YTASykfvefUJxuIR4gSoBh3TfPeq/xXXLTOgyiEjHQx7eq8TRm1WgvwVBg9 D7BBed7NxtMD4Oz/2xoP/st2zBgNd52ILuo3DtEWRyDu1/XtIy9B4fyGaEKDxJn0ruTn3g rr9iN7y7Gk1yCsD+vUlb+6MJqsAL+LkGxbLlF1SsqQfs8EZCSCQqmhljvhEKK6A3bQ6bDi Gv5sKgaGCfZ8sVMCswc08BcGYlii+vsEvFJPIZHna+5b7naQzeyYeIAG+SYZYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707886592; a=rsa-sha256; cv=none; b=KiPRC3h0DIT0yL8hOT1fvTm2ciCY7g/pugoVwXVFMBSpeET3WIOSmBxDgsZtUGLnv2nBRE ZXU2HSxTK082ulMQyDpoUqhIapiReFHSQEVPTlnluD6QXLUfeH1USwCu7mKRe3XbHj0ZTI 28J+I/CfzX+oazAWz05FXB/jGd13f2yzGHS0UfnSxLaPeM87aRxiySk71eyU+qSVYvD0ZA e/tpT0Iq7rrnTj7FOrQ4RRYJPYjDIwWM7f+GRo9bk0FU49YzRKKLDyeiytQJgUSKrq1N9w lg38Bc/09UlXijujFMc8KH9JH3lOoGgpSu4GquLzPGafFSOZQX2f81HoaEUa3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707886592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EhnqNCljf1NEIJg340uu1RSIXqwhz1fCn/qcdzpara4=; b=edyGL9WITNK+prF8ntuL4D6hNp8D82SVECuPtZIMlofdxLUB/P6VBxzpq+SStcJJjFuCdP v5vV0EnoYeN66B8iTGteoZVfgxTdLMHj363/og4cbxRPiWPocFO8l4tJoi71C67QHWCWUl yBcx9lrYLgnMxrDdJrgn7ruI0IOWWU8ypu9ZnVnXepm+AY2ruP8UbJg3VOf0Tgxm917ssW jx2KB2BeMtjaYpOLvlWCTgThAYbsfBujW/MMTovFC4mXGBhAws0MMYz81ldNQeKDEpajqi 29U6yumVlaFrjmTG4ebJjSoducFcI1JB37R4VGCPtE+g5KyAFMNj4L3D3IB4Bw== 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 4TZQrw1npKzkhS; Wed, 14 Feb 2024 04:56:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E4uW9K065234; Wed, 14 Feb 2024 04:56:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E4uWXR065233; Wed, 14 Feb 2024 04:56:32 GMT (envelope-from git) Date: Wed, 14 Feb 2024 04:56:32 GMT Message-Id: <202402140456.41E4uWXR065233@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Cy Schubert Subject: git: 16fd0b249104..217a625642d3 - vendor/unbound - 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/vendor/unbound X-Git-Reftype: branch X-Git-Commit: 217a625642d38bfc0d3d03192b013d4bc7a32458 X-Git-Oldrev: 16fd0b24910488e59ca1941387b9ac7fb646a837 X-Git-Newrev: 217a625642d38bfc0d3d03192b013d4bc7a32458 Auto-Submitted: auto-generated The branch vendor/unbound has been updated by cy: URL: https://cgit.FreeBSD.org/src/log/?id=16fd0b249104..217a625642d3 217a625642d3 unbound: Vendor import 1.19.1 From nobody Wed Feb 14 05:23: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 4TZRRx5XZsz5B0Y2; Wed, 14 Feb 2024 05:23: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZRRx2svdz4NnH; Wed, 14 Feb 2024 05:23:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707888205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cReB6HC0oTWajbWYMewxCmhkCA6IzDA3SRQJh/v3G90=; b=B79cmyijiu2LZGW8io0wcpgdSXPNHiXiPCPCM1dIICeq4jtiuopnio0t9yOpZwfaUo7BaM z0kLO5lBdTztR1q8G+v+zOWojtKPHQZijsdnwFOP1P/eCiuvSPEOcWdfBvV+yKxyOidvjj DEX8WSflsli30Bw9PwgqmaUmGob6oqPHmQvFb4CUGgF68GQEBvoh8cEbbF8AIO+4CLpxwy vFX0vv4CWkvg7S53gRtr++hs/Tj0vXGh2HXjTzv7U63iutlHMAF5GEnTxfpYgZMAFj9uhm 1xhFrwYk1rmZP61qTNhyHc7gWs6hdv+rVPd6Jt2L2yh4P6EThYC7iRdLumK/0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707888205; a=rsa-sha256; cv=none; b=j8q78R6iqnoBPnb4v2sinc2MgFSLVoGhvXmq6OKCdZOJxTQ1RaDfgw4MiNGWbyW3AOl9zU 36/V3jFWsqiH3G5iW1ByB+LAbXKhu1bXZH3r05Mxex8T+bIggJCpeq3W5NPoR6CBvgGajQ JIRG4D93onqIuE1hjKMF72wHQZJtpyrUVrOLC1Lkg9PB3IkfchoJc/zW3+iff58pJE9CMq //CsYvEqzg94SJI1M7IXBB9XGf8RePLQLz3bGrlczt0IzhjZho0Gkzh9nIXDyM4Vxtzjje G+d+/bQsewOuzrCeLpenR+Gkk4xxqle9VOj1NtPMId+jMSuMrdC6IDDgM/Avng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707888205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cReB6HC0oTWajbWYMewxCmhkCA6IzDA3SRQJh/v3G90=; b=D6oL/9hjSGiiRnsAwmbVkRWRRUI52kQybDKhGklf86c5RoEGbyqgiKpeUBbcd15mZEkbEG GGHyPuC4pKLLadoBVXQB5TXAAds4S98xWY8Oz7jeXCeXQsY3PSnE9am3C+izYBVAAZKlZh MtR1+v5yLxnC8BhuxnWX3ydeFUebF1mZzx6k1kBdBXQg6N5tt7QrzcAlFhsWTDXZMpXQV8 rxzpwa5LHHcCEo4VsUoOBqGC5VzCMLUmEqTocVNLrcYu/WRRB4Z1bcDBSVjjZiZx6fjstn jh9GaqycIYGNxFl0EmWCnpewERlg4kAzOTd1zkBY7PXBnQjI8wtEqF2KPq18Kg== 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 4TZRRx1Rlczm0N; Wed, 14 Feb 2024 05:23:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E5NPT3015753; Wed, 14 Feb 2024 05:23:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E5NOoO015750; Wed, 14 Feb 2024 05:23:24 GMT (envelope-from git) Date: Wed, 14 Feb 2024 05:23:24 GMT Message-Id: <202402140523.41E5NOoO015750@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: b76ef9a7cb8a - main - unbound: Vendor import 1.19.1 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b76ef9a7cb8a7c62d10ae8101f41014f34819174 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=b76ef9a7cb8a7c62d10ae8101f41014f34819174 commit b76ef9a7cb8a7c62d10ae8101f41014f34819174 Merge: 53fba3b984ac 217a625642d3 Author: Cy Schubert AuthorDate: 2023-11-13 19:44:16 +0000 Commit: Cy Schubert CommitDate: 2024-02-14 05:05:50 +0000 unbound: Vendor import 1.19.1 Release notes at https://www.nlnetlabs.nl/news/2024/Feb/13/unbound-1.19.1-released/ Security: CVE-2023-50387, CVE-2023-50868 MFC after: 3 days contrib/unbound/config.guess | 11 +- contrib/unbound/config.sub | 29 +- contrib/unbound/configure | 25 +- contrib/unbound/configure.ac | 5 +- contrib/unbound/doc/README | 2 +- contrib/unbound/doc/example.conf.in | 2 +- contrib/unbound/doc/libunbound.3.in | 4 +- contrib/unbound/doc/unbound-anchor.8.in | 2 +- contrib/unbound/doc/unbound-checkconf.8.in | 2 +- contrib/unbound/doc/unbound-control.8.in | 2 +- contrib/unbound/doc/unbound-host.1.in | 2 +- contrib/unbound/doc/unbound.8.in | 4 +- contrib/unbound/doc/unbound.conf.5.in | 2 +- contrib/unbound/services/authzone.c | 3 +- contrib/unbound/services/cache/dns.c | 22 ++ contrib/unbound/services/cache/dns.h | 9 + contrib/unbound/testdata/val_any_negcache.rpl | 3 + contrib/unbound/util/fptr_wlist.c | 1 + contrib/unbound/validator/val_nsec.c | 3 +- contrib/unbound/validator/val_nsec3.c | 316 ++++++++++++---- contrib/unbound/validator/val_nsec3.h | 60 +++- contrib/unbound/validator/val_sigcrypt.c | 37 +- contrib/unbound/validator/val_sigcrypt.h | 3 +- contrib/unbound/validator/val_utils.c | 22 +- contrib/unbound/validator/val_utils.h | 4 +- contrib/unbound/validator/validator.c | 499 ++++++++++++++++++++++---- contrib/unbound/validator/validator.h | 18 + lib/libunbound/config.h | 4 +- 28 files changed, 889 insertions(+), 207 deletions(-) diff --cc lib/libunbound/config.h index 2fe30076a109,000000000000..0fe309a98bf3 mode 100644,000000..100644 --- a/lib/libunbound/config.h +++ b/lib/libunbound/config.h @@@ -1,1545 -1,0 +1,1545 @@@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* apply the noreturn attribute to a function that exits the program */ +#define ATTR_NORETURN __attribute__((__noreturn__)) + +/* apply the weak attribute to a symbol */ +#define ATTR_WEAK __attribute__((weak)) + +/* Directory to chroot to */ +#define CHROOT_DIR "/var/unbound" + +/* Define this to enable client subnet option. */ +/* #undef CLIENT_SUBNET */ + +/* Do sha512 definitions in config.h */ +/* #undef COMPAT_SHA512 */ + +/* Command line arguments used with configure */ +#define CONFCMDLINE "--with-ssl=/usr --with-libexpat=/usr --disable-dnscrypt --disable-dnstap --enable-ecdsa --disable-event-api --enable-gost --with-libevent --disable-subnet --disable-tfo-client --disable-tfo-server --with-pthreads--prefix=/usr --localstatedir=/var/unbound --mandir=/usr/share/man --build=freebsd" + +/* Pathname to the Unbound configuration file */ +#define CONFIGFILE "/var/unbound/unbound.conf" + +/* Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work + */ +/* #undef DARWIN_BROKEN_SETREUID */ + +/* Whether daemon is deprecated */ +/* #undef DEPRECATED_DAEMON */ + +/* Deprecate RSA 1024 bit length, makes that an unsupported key */ +/* #undef DEPRECATE_RSA_1024 */ + +/* Deprecate RSA 1024 bit length, makes that an unsupported key */ +/* #undef DEPRECATE_RSA_1024 */ + +/* Define this to enable kernel based UDP source port randomization. */ +/* #undef DISABLE_EXPLICIT_PORT_RANDOMISATION */ + +/* default dnstap socket path */ +/* #undef DNSTAP_SOCKET_PATH */ + +/* Define if you want to use debug lock checking (slow). */ +/* #undef ENABLE_LOCK_CHECKS */ + +/* Define this if you enabled-allsymbols from libunbound to link binaries to + it for smaller install size, but the libunbound export table is polluted by + internal symbols */ +/* #undef EXPORT_ALL_SYMBOLS */ + +/* Define to 1 if you have the `accept4' function. */ +#define HAVE_ACCEPT4 1 + +/* Define to 1 if you have the `arc4random' function. */ +#define HAVE_ARC4RANDOM 1 + +/* Define to 1 if you have the `arc4random_uniform' function. */ +#define HAVE_ARC4RANDOM_UNIFORM 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ARPA_INET_H 1 + +/* Whether the C compiler accepts the "format" attribute */ +#define HAVE_ATTR_FORMAT 1 + +/* Whether the C compiler accepts the "noreturn" attribute */ +#define HAVE_ATTR_NORETURN 1 + +/* Whether the C compiler accepts the "unused" attribute */ +#define HAVE_ATTR_UNUSED 1 + +/* Whether the C compiler accepts the "weak" attribute */ +#define HAVE_ATTR_WEAK 1 + +/* If we have be64toh */ +/* #undef HAVE_BE64TOH */ + +/* Define to 1 if you have the `BIO_set_callback_ex' function. */ +/* #undef HAVE_BIO_SET_CALLBACK_EX */ + +/* Define to 1 if you have the `BIO_set_callback_ex' function. */ +/* #undef HAVE_BIO_SET_CALLBACK_EX */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_BSD_STDLIB_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_BSD_STRING_H */ + +/* Define to 1 if you have the `chown' function. */ +#define HAVE_CHOWN 1 + +/* Define to 1 if you have the `chroot' function. */ +#define HAVE_CHROOT 1 + +/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function. */ +/* #undef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA */ + +/* Define to 1 if you have the `CRYPTO_THREADID_set_callback' function. */ +/* #undef HAVE_CRYPTO_THREADID_SET_CALLBACK */ + +/* Define to 1 if you have the `ctime_r' function. */ +#define HAVE_CTIME_R 1 + +/* Define to 1 if you have the `daemon' function. */ +#define HAVE_DAEMON 1 + +/* Define to 1 if you have the declaration of `arc4random', and to 0 if you + don't. */ +/* #undef HAVE_DECL_ARC4RANDOM */ + +/* Define to 1 if you have the declaration of `arc4random_uniform', and to 0 + if you don't. */ +/* #undef HAVE_DECL_ARC4RANDOM_UNIFORM */ + +/* Define to 1 if you have the declaration of `evsignal_assign', and to 0 if + you don't. */ +/* #undef HAVE_DECL_EVSIGNAL_ASSIGN */ + +/* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you + don't. */ +#define HAVE_DECL_INET_NTOP 1 + +/* Define to 1 if you have the declaration of `inet_pton', and to 0 if you + don't. */ +#define HAVE_DECL_INET_PTON 1 + +/* Define to 1 if you have the declaration of `nghttp2_session_server_new', + and to 0 if you don't. */ +/* #undef HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW */ + +/* Define to 1 if you have the declaration of `NID_ED25519', and to 0 if you + don't. */ +#define HAVE_DECL_NID_ED25519 1 + +/* Define to 1 if you have the declaration of `NID_ED448', and to 0 if you + don't. */ +#define HAVE_DECL_NID_ED448 1 + +/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you + don't. */ +#define HAVE_DECL_NID_SECP384R1 1 + +/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0 + if you don't. */ +#define HAVE_DECL_NID_X9_62_PRIME256V1 1 + +/* Define to 1 if you have the declaration of `reallocarray', and to 0 if you + don't. */ +#define HAVE_DECL_REALLOCARRAY 1 + +/* Define to 1 if you have the declaration of `redisConnect', and to 0 if you + don't. */ +/* #undef HAVE_DECL_REDISCONNECT */ + +/* Define to 1 if you have the declaration of `sk_SSL_COMP_pop_free', and to 0 + if you don't. */ +#define HAVE_DECL_SK_SSL_COMP_POP_FREE 1 + +/* Define to 1 if you have the declaration of + `SSL_COMP_get_compression_methods', and to 0 if you don't. */ +#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS 1 + +/* Define to 1 if you have the declaration of `SSL_CTX_set_ecdh_auto', and to + 0 if you don't. */ +/* #undef HAVE_DECL_SSL_CTX_SET_ECDH_AUTO */ + +/* Define to 1 if you have the declaration of `strlcat', and to 0 if you + don't. */ +/* #undef HAVE_DECL_STRLCAT */ + +/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you + don't. */ +/* #undef HAVE_DECL_STRLCPY */ + +/* Define to 1 if you have the declaration of `XML_StopParser', and to 0 if + you don't. */ +#define HAVE_DECL_XML_STOPPARSER 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the `DSA_SIG_set0' function. */ +#define HAVE_DSA_SIG_SET0 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ENDIAN_H */ + +/* Define to 1 if you have the `endprotoent' function. */ +#define HAVE_ENDPROTOENT 1 + +/* Define to 1 if you have the `endpwent' function. */ +#define HAVE_ENDPWENT 1 + +/* Define to 1 if you have the `endservent' function. */ +#define HAVE_ENDSERVENT 1 + +/* Define to 1 if you have the `ENGINE_cleanup' function. */ +/* #undef HAVE_ENGINE_CLEANUP */ + +/* Define to 1 if you have the `ERR_free_strings' function. */ +/* #undef HAVE_ERR_FREE_STRINGS */ + +/* Define to 1 if you have the `ERR_load_crypto_strings' function. */ +/* #undef HAVE_ERR_LOAD_CRYPTO_STRINGS */ + +/* Define to 1 if you have the `event_assign' function. */ +/* #undef HAVE_EVENT_ASSIGN */ + +/* Define to 1 if you have the `event_base_free' function. */ +/* #undef HAVE_EVENT_BASE_FREE */ + +/* Define to 1 if you have the `event_base_get_method' function. */ +/* #undef HAVE_EVENT_BASE_GET_METHOD */ + +/* Define to 1 if you have the `event_base_new' function. */ +/* #undef HAVE_EVENT_BASE_NEW */ + +/* Define to 1 if you have the `event_base_once' function. */ +/* #undef HAVE_EVENT_BASE_ONCE */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_EVENT_H */ + +/* Define to 1 if you have the `EVP_aes_256_cbc' function. */ +#define HAVE_EVP_AES_256_CBC 1 + +/* Define to 1 if you have the `EVP_cleanup' function. */ +/* #undef HAVE_EVP_CLEANUP */ + +/* Define to 1 if you have the `EVP_default_properties_is_fips_enabled' + function. */ +/* #undef HAVE_EVP_DEFAULT_PROPERTIES_IS_FIPS_ENABLED */ + + +/* Define to 1 if you have the `EVP_default_properties_is_fips_enabled' + function. */ +/* #undef HAVE_EVP_DEFAULT_PROPERTIES_IS_FIPS_ENABLED */ + +/* Define to 1 if you have the `EVP_DigestVerify' function. */ +#define HAVE_EVP_DIGESTVERIFY 1 + +/* Define to 1 if you have the `EVP_dss1' function. */ +/* #undef HAVE_EVP_DSS1 */ + +/* Define to 1 if you have the `EVP_EncryptInit_ex' function. */ +#define HAVE_EVP_ENCRYPTINIT_EX 1 + +/* Define to 1 if you have the `EVP_MAC_CTX_set_params' function. */ +/* #undef HAVE_EVP_MAC_CTX_SET_PARAMS */ + +/* Define to 1 if you have the `EVP_MD_CTX_new' function. */ +#define HAVE_EVP_MD_CTX_NEW 1 + +/* Define to 1 if you have the `EVP_sha1' function. */ +#define HAVE_EVP_SHA1 1 + +/* Define to 1 if you have the `EVP_sha256' function. */ +#define HAVE_EVP_SHA256 1 + +/* Define to 1 if you have the `EVP_sha512' function. */ +#define HAVE_EVP_SHA512 1 + +/* Define to 1 if you have the `ev_default_loop' function. */ +/* #undef HAVE_EV_DEFAULT_LOOP */ + +/* Define to 1 if you have the `ev_loop' function. */ +/* #undef HAVE_EV_LOOP */ + +/* Define to 1 if you have the header file. */ +#define HAVE_EXPAT_H 1 + +/* Define to 1 if you have the `explicit_bzero' function. */ +#define HAVE_EXPLICIT_BZERO 1 + +/* Define to 1 if you have the `fcntl' function. */ +#define HAVE_FCNTL 1 + +/* Define to 1 if you have the `FIPS_mode' function. */ +#define HAVE_FIPS_MODE 1 + +/* Define to 1 if you have the `fork' function. */ +#define HAVE_FORK 1 + +/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ +#define HAVE_FSEEKO 1 + +/* Define to 1 if you have the `fsync' function. */ +#define HAVE_FSYNC 1 + +/* Whether getaddrinfo is available */ +#define HAVE_GETADDRINFO 1 + +/* Define to 1 if you have the `getauxval' function. */ +/* #undef HAVE_GETAUXVAL */ + +/* Define to 1 if you have the `getentropy' function. */ +/* #undef HAVE_GETENTROPY */ + +/* Define to 1 if you have the `getifaddrs' function. */ +#define HAVE_GETIFADDRS 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_GETOPT_H 1 + +/* Define to 1 if you have the `getpwnam' function. */ +#define HAVE_GETPWNAM 1 + +/* Define to 1 if you have the `getrlimit' function. */ +#define HAVE_GETRLIMIT 1 + +/* Define to 1 if you have the `gettid' function. */ +/* #undef HAVE_GETTID */ + +/* Define to 1 if you have the `gettid' function. */ +/* #undef HAVE_GETTID */ + +/* Define to 1 if you have the `glob' function. */ +#define HAVE_GLOB 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_GLOB_H 1 + +/* Define to 1 if you have the `gmtime_r' function. */ +#define HAVE_GMTIME_R 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_GRP_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_HIREDIS_HIREDIS_H */ + +/* Define to 1 if you have the `HMAC_Init_ex' function. */ +#define HAVE_HMAC_INIT_EX 1 + +/* If we have htobe64 */ +/* #undef HAVE_HTOBE64 */ + +/* Define to 1 if you have the header file. */ +#define HAVE_IFADDRS_H 1 + +/* Define to 1 if you have the `if_nametoindex' function. */ +#define HAVE_IF_NAMETOINDEX 1 + +/* Define to 1 if you have the `if_nametoindex' function. */ +#define HAVE_IF_NAMETOINDEX 1 + +/* Define to 1 if you have the `inet_aton' function. */ +#define HAVE_INET_ATON 1 + +/* Define to 1 if you have the `inet_ntop' function. */ +#define HAVE_INET_NTOP 1 + +/* Define to 1 if you have the `inet_pton' function. */ +#define HAVE_INET_PTON 1 + +/* Define to 1 if you have the `initgroups' function. */ +#define HAVE_INITGROUPS 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* if the function 'ioctlsocket' is available */ +/* #undef HAVE_IOCTLSOCKET */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_IPHLPAPI_H */ + +/* Define to 1 if you have the `isblank' function. */ +#define HAVE_ISBLANK 1 + +/* Define to 1 if you have the `kill' function. */ +#define HAVE_KILL 1 + +/* Use portable libbsd functions */ +/* #undef HAVE_LIBBSD */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_LIBKERN_OSBYTEORDER_H */ + +/* Define if we have LibreSSL */ +/* #undef HAVE_LIBRESSL */ + +/* Define to 1 if you have the `localtime_r' function. */ +#define HAVE_LOCALTIME_R 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LOGIN_CAP_H 1 + +/* If have GNU libc compatible malloc */ +#define HAVE_MALLOC 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MINIX_CONFIG_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_NETDB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_NETINET_IN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_NETINET_TCP_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NETIOAPI_H */ + +/* Use libnettle for crypto */ +/* #undef HAVE_NETTLE */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NETTLE_DSA_COMPAT_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NETTLE_EDDSA_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_NET_IF_H 1 + +/* Define this to use nghttp2 client. */ +/* #undef HAVE_NGHTTP2 */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NGHTTP2_NGHTTP2_H */ + +/* Use libnss for crypto */ +/* #undef HAVE_NSS */ + +/* Define to 1 if you have the `OpenSSL_add_all_digests' function. */ +/* #undef HAVE_OPENSSL_ADD_ALL_DIGESTS */ + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_BN_H 1 + +/* Define to 1 if you have the `OPENSSL_config' function. */ +#define HAVE_OPENSSL_CONFIG 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_CONF_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_OPENSSL_CORE_NAMES_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_DH_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_DSA_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_ENGINE_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_ERR_H 1 + +/* Define to 1 if you have the `OPENSSL_init_crypto' function. */ +#define HAVE_OPENSSL_INIT_CRYPTO 1 + +/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ +#define HAVE_OPENSSL_INIT_SSL 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_OPENSSL_PARAM_BUILD_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_RAND_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_RSA_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_OPENSSL_SSL_H 1 + +/* Define to 1 if you have the `OSSL_PARAM_BLD_new' function. */ +/* #undef HAVE_OSSL_PARAM_BLD_NEW */ + +/* Define to 1 if you have the `poll' function. */ +#define HAVE_POLL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_POLL_H 1 + +/* Define if you have POSIX threads libraries and header files. */ +#define HAVE_PTHREAD 1 + +/* Have PTHREAD_PRIO_INHERIT. */ +#define HAVE_PTHREAD_PRIO_INHERIT 1 + +/* Define to 1 if the system has the type `pthread_rwlock_t'. */ +#define HAVE_PTHREAD_RWLOCK_T 1 + +/* Define to 1 if the system has the type `pthread_spinlock_t'. */ +#define HAVE_PTHREAD_SPINLOCK_T 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_PWD_H 1 + +/* Define if you have Python libraries and header files. */ +/* #undef HAVE_PYTHON */ + +/* Define to 1 if you have the `random' function. */ +#define HAVE_RANDOM 1 + +/* Define to 1 if you have the `RAND_cleanup' function. */ +/* #undef HAVE_RAND_CLEANUP */ + +/* If we have reallocarray(3) */ +#define HAVE_REALLOCARRAY 1 + +/* Define to 1 if you have the `recvmsg' function. */ +#define HAVE_RECVMSG 1 + +/* Define to 1 if you have the `sendmsg' function. */ +#define HAVE_SENDMSG 1 + +/* Define to 1 if you have the `setregid' function. */ +/* #undef HAVE_SETREGID */ + +/* Define to 1 if you have the `setresgid' function. */ +#define HAVE_SETRESGID 1 + +/* Define to 1 if you have the `setresuid' function. */ +#define HAVE_SETRESUID 1 + +/* Define to 1 if you have the `setreuid' function. */ +/* #undef HAVE_SETREUID */ + +/* Define to 1 if you have the `setrlimit' function. */ +#define HAVE_SETRLIMIT 1 + +/* Define to 1 if you have the `setsid' function. */ +#define HAVE_SETSID 1 + +/* Define to 1 if you have the `setusercontext' function. */ +#define HAVE_SETUSERCONTEXT 1 + +/* Define to 1 if you have the `SHA512_Update' function. */ +/* #undef HAVE_SHA512_UPDATE */ + +/* Define to 1 if you have the `shmget' function. */ +#define HAVE_SHMGET 1 + +/* Define to 1 if you have the `sigprocmask' function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define to 1 if you have the `sleep' function. */ +#define HAVE_SLEEP 1 + +/* Define to 1 if you have the `snprintf' function. */ +#define HAVE_SNPRINTF 1 + +/* Define to 1 if you have the `socketpair' function. */ +#define HAVE_SOCKETPAIR 1 + +/* Using Solaris threads */ +/* #undef HAVE_SOLARIS_THREADS */ + +/* Define to 1 if you have the `srandom' function. */ +#define HAVE_SRANDOM 1 + +/* Define if you have the SSL libraries installed. */ +#define HAVE_SSL /**/ + +/* Define to 1 if you have the `SSL_CTX_set_alpn_protos' function. */ +#define HAVE_SSL_CTX_SET_ALPN_PROTOS 1 + +/* Define to 1 if you have the `SSL_CTX_set_alpn_select_cb' function. */ +#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1 + +/* Define to 1 if you have the `SSL_CTX_set_ciphersuites' function. */ +#define HAVE_SSL_CTX_SET_CIPHERSUITES 1 + +/* Define to 1 if you have the `SSL_CTX_set_security_level' function. */ +#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1 + +/* Define to 1 if you have the `SSL_CTX_set_tlsext_ticket_key_evp_cb' + function. */ +/* #undef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB */ + +/* Define to 1 if you have the `SSL_get0_alpn_selected' function. */ +#define HAVE_SSL_GET0_ALPN_SELECTED 1 + +/* Define to 1 if you have the `SSL_get0_peername' function. */ +#define HAVE_SSL_GET0_PEERNAME 1 + +/* Define to 1 if you have the `SSL_get1_peer_certificate' function. */ +/* #undef HAVE_SSL_GET1_PEER_CERTIFICATE */ + +/* Define to 1 if you have the `SSL_set1_host' function. */ +#define HAVE_SSL_SET1_HOST 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDARG_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDBOOL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDIO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strftime' function. */ +#define HAVE_STRFTIME 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strlcat' function. */ +#define HAVE_STRLCAT 1 + +/* Define to 1 if you have the `strlcpy' function. */ +#define HAVE_STRLCPY 1 + +/* Define to 1 if you have the `strptime' function. */ +#define HAVE_STRPTIME 1 + +/* Define to 1 if you have the `strsep' function. */ +#define HAVE_STRSEP 1 + +/* Define to 1 if `ipi_spec_dst' is a member of `struct in_pktinfo'. */ +/* #undef HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST */ + +/* Define to 1 if `sun_len' is a member of `struct sockaddr_un'. */ +#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 + +/* Define if you have Swig libraries and header files. */ +/* #undef HAVE_SWIG */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYSLOG_H 1 + +/* Define to 1 if systemd should be used */ +/* #undef HAVE_SYSTEMD */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_ENDIAN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_IPC_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_SELECT_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SHA2_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SHM_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SOCKET_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. */ +/* #undef HAVE_SYS_SYSCTL_H */ + +/* 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_SYS_UIO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_UN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_TARGETCONDITIONALS_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define to 1 if you have the `tzset' function. */ +#define HAVE_TZSET 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `usleep' function. */ +#define HAVE_USLEEP 1 + +/* Define to 1 if you have the `vfork' function. */ +#define HAVE_VFORK 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_VFORK_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_WCHAR_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINDOWS_H */ + +/* Using Windows threads */ +/* #undef HAVE_WINDOWS_THREADS */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINSOCK2_H */ + +/* Define to 1 if `fork' works. */ +#define HAVE_WORKING_FORK 1 + +/* Define to 1 if `vfork' works. */ +#define HAVE_WORKING_VFORK 1 + +/* Define to 1 if you have the `writev' function. */ +#define HAVE_WRITEV 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WS2TCPIP_H */ + +/* Define to 1 if you have the `X509_VERIFY_PARAM_set1_host' function. */ +#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1 + +/* Define to 1 if you have the `_beginthreadex' function. */ +/* #undef HAVE__BEGINTHREADEX */ + +/* If HMAC_Init_ex() returns void */ +/* #undef HMAC_INIT_EX_RETURNS_VOID */ + +/* if lex has yylex_destroy */ +#define LEX_HAS_YYLEX_DESTROY 1 + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#define LT_OBJDIR ".libs/" + +/* Define to the maximum message length to pass to syslog. */ +#define MAXSYSLOGMSGLEN 10240 + +/* Define if memcmp() does not compare unsigned bytes */ +/* #undef MEMCMP_IS_BROKEN */ + +/* Define if mkdir has one argument. */ +/* #undef MKDIR_HAS_ONE_ARG */ + +/* Define if the network stack does not fully support nonblocking io (causes + lower performance). */ +/* #undef NONBLOCKING_IS_BROKEN */ + +/* Put -D_ALL_SOURCE define in config.h */ +/* #undef OMITTED__D_ALL_SOURCE */ + +/* Put -D_BSD_SOURCE define in config.h */ +/* #undef OMITTED__D_BSD_SOURCE */ + +/* Put -D_DEFAULT_SOURCE define in config.h */ +/* #undef OMITTED__D_DEFAULT_SOURCE */ + +/* Put -D_GNU_SOURCE define in config.h */ +/* #undef OMITTED__D_GNU_SOURCE */ + +/* Put -D_LARGEFILE_SOURCE=1 define in config.h */ +/* #undef OMITTED__D_LARGEFILE_SOURCE_1 */ + +/* Put -D_POSIX_C_SOURCE=200112 define in config.h */ +/* #undef OMITTED__D_POSIX_C_SOURCE_200112 */ + +/* Put -D_XOPEN_SOURCE=600 define in config.h */ +/* #undef OMITTED__D_XOPEN_SOURCE_600 */ + +/* Put -D_XOPEN_SOURCE_EXTENDED=1 define in config.h */ +/* #undef OMITTED__D_XOPEN_SOURCE_EXTENDED_1 */ + +/* Put -D__EXTENSIONS__ define in config.h */ +/* #undef OMITTED__D__EXTENSIONS__ */ + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "unbound" + +/* Define to the full name and version of this package. */ - #define PACKAGE_STRING "unbound 1.19.0" ++#define PACKAGE_STRING "unbound 1.19.1" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "unbound" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ - #define PACKAGE_VERSION "1.19.0" ++#define PACKAGE_VERSION "1.19.1" + +/* default pidfile location */ +#define PIDFILE "/var/unbound/unbound.pid" + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* Return type of signal handlers, but autoconf 2.70 says 'your code may + safely assume C89 semantics that RETSIGTYPE is void.' */ +#define RETSIGTYPE void + +/* if REUSEPORT is enabled by default */ +#define REUSEPORT_DEFAULT 0 + +/* default rootkey location */ +#define ROOT_ANCHOR_FILE "/var/unbound/root.key" + +/* default rootcert location */ +#define ROOT_CERT_FILE "/var/unbound/icannbundle.pem" + +/* version number for resource files */ +#define RSRC_PACKAGE_VERSION 1,19,0,0 + +/* Directory to chdir to */ +#define RUN_DIR "/var/unbound" + +/* Shared data */ +#define SHARE_DIR "/var/unbound" + +#ifdef __LP64__ +/* The size of `size_t', as computed by sizeof. */ +#define SIZEOF_SIZE_T 8 +/* The size of `size_t'. */ +/* The size of `pthread_t', as computed by sizeof. */ +#define SIZEOF_PTHREAD_T 8 +#else +#define SIZEOF_SIZE_T 4 +/* The size of `size_t'. */ +/* The size of `pthread_t', as computed by sizeof. */ +#define SIZEOF_PTHREAD_T 4 +#endif + +/* The size of `time_t', as computed by sizeof. */ +#ifdef __i386__ +#define SIZEOF_TIME_T 4 +#else +#define SIZEOF_TIME_T 8 +#endif + +/* The size of `unsigned long', as computed by sizeof. */ +#ifdef __LP64__ +#define SIZEOF_UNSIGNED_LONG 8 +#else +#define SIZEOF_UNSIGNED_LONG 4 +#endif + +/* define if (v)snprintf does not return length needed, (but length used) */ +/* #undef SNPRINTF_RET_BROKEN */ + +/* Define to 1 if libsodium supports sodium_set_misuse_handler */ +/* #undef SODIUM_MISUSE_HANDLER */ + +/* Define to 1 if all of the C90 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ +#define STDC_HEADERS 1 + +/* use default strptime. */ +#define STRPTIME_WORKS 1 + +/* Use win32 resources and API */ +/* #undef UB_ON_WINDOWS */ + +/* the SYSLOG_FACILITY to use, default LOG_DAEMON */ +#define UB_SYSLOG_FACILITY LOG_DAEMON + +/* default username */ +#define UB_USERNAME "unbound" + +/* use to enable lightweight alloc assertions, for debug use */ +/* #undef UNBOUND_ALLOC_LITE */ + +/* use malloc not regions, for debug use */ +/* #undef UNBOUND_ALLOC_NONREGIONAL */ + +/* use statistics for allocs and frees, for debug use */ +/* #undef UNBOUND_ALLOC_STATS */ + +/* define this to enable debug checks. */ +/* #undef UNBOUND_DEBUG */ + +/* Define to 1 to use cachedb support */ +/* #undef USE_CACHEDB */ + +/* Define to 1 to enable dnscrypt support */ +/* #undef USE_DNSCRYPT */ + +/* Define to 1 to enable dnscrypt with xchacha20 support */ +/* #undef USE_DNSCRYPT_XCHACHA20 */ + +/* Define to 1 to enable dnstap support */ +/* #undef USE_DNSTAP */ + +/* Define this to enable DSA support. */ +#define USE_DSA 1 + +/* Define this to enable ECDSA support. */ +#define USE_ECDSA 1 + +/* Define this to enable an EVP workaround for older openssl */ +/* #undef USE_ECDSA_EVP_WORKAROUND */ + +/* Define this to enable ED25519 support. */ +#define USE_ED25519 1 + +/* Define this to enable ED448 support. */ +#define USE_ED448 1 + +/* Define this to enable GOST support. */ +/* #undef USE_GOST */ + +/* Define to 1 to use ipsecmod support. */ +/* #undef USE_IPSECMOD */ + *** 615 LINES SKIPPED *** From nobody Wed Feb 14 06:05: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 4TZSNh5Wrbz5B51C; Wed, 14 Feb 2024 06:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSNh4PlZz4RTZ; Wed, 14 Feb 2024 06:05:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IgcFt4+3Zu8M+kMvd07QA4GAuUH3jsUY6kh/6XC06OQ=; b=R4QERgpljRLVH1tlgWvTHPQGqTPea8UoOEIG2kqm72xaxtDabvfAcED9d0sA3ahEqRn+V4 jKEqugkNTTYUj5MmEzduZpCGvI4lTMR2rbBC0quZSBaat86o2bksKNfSn3dohSJPpqy8Hd sXSoFBH7+q2P2lQ9rCXkjqTnlvK1hVvMYrA8q7HVGwzB9A2J1EF4uoNC2Um6QNLpGfs3pK lRmYNPYYKkQXHB5iYYhhVLrPsCqoPWybQJlnQ7F+PiWRLH2D8P3g5LnbsizG6jMl+h8l5m 7SbD3Af24k/1IRDyTmUxxGvRHGxetZk7fDUEkZjV4a3opV+Qlg2JneiVhWsamQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890740; a=rsa-sha256; cv=none; b=HJYY+rKqx4Mu7JT0RvWTevtMcOo+MsICaHFjC2KdRLaX+RTIAFC8NNj9g7xIpSFcFtBdFw 3FNo6vFDXzXBMZEItJwN1hstimr40mD/bugSC3vYdJ5eJXPbDEmy4fEVSYUcBg1VEDSEAC 5r4zoJT5Id/5BkBk4a7ZfkAGDmqCGjgYZQ50O5Nlg0+fo2IaK5Yc4CblAOoBwut9jHL7ke k6C4r/N2jdMu6BUf1PQq4Iz8XDaqrjsvqQmr2OGS/vZ0BnHNiYrnH1Tw75v5Xw2BmlMYiA mvLO07gCq18ePjvCzwrWJZiGWF3Q0WrFNSRkkBM6TGLyCA6GxonjzFP3LJXFoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IgcFt4+3Zu8M+kMvd07QA4GAuUH3jsUY6kh/6XC06OQ=; b=TgCzi4ZzI6/SNed0hHPyw5Lies3CGmGuWLNMQMgWHk+kLQ28PtwlYrRwb5fVfiPD9nLZb9 G+GRcapf0YfEa8ZMc9Fl4NNFD4qGZbiNqXQW2NBORgppeUCgaa8PMZxF1Ts6waBYp/WvxD JYMSyrz1ycvw6bW1HJtGc5TDRzdG9dKl9YJm3igti/kB0Fp45zGpH322LbxhhwygykKCic J7tj/tsGOvom0kRCvoTINvwSf0l5z3veZgTTobSYDaTMCBYTliBCsuTu9RmNyiYF8+SsX7 4Q6wqRYuN4RhLE0pgKXrtFLNfWfHQi7ePQzO1QJKzk8iH1Oez2hD6MPw5NCpog== 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 4TZSNh3Stpzmtn; Wed, 14 Feb 2024 06:05:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65eYZ084469; Wed, 14 Feb 2024 06:05:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65eCa084466; Wed, 14 Feb 2024 06:05:40 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:40 GMT Message-Id: <202402140605.41E65eCa084466@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 007b8b8ecd96 - releng/14.0 - contrib/tzdata: import tzdata 2024a 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: 007b8b8ecd9620c2bc7cba81c04a1ac5576223b1 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=007b8b8ecd9620c2bc7cba81c04a1ac5576223b1 commit 007b8b8ecd9620c2bc7cba81c04a1ac5576223b1 Author: Philip Paeps AuthorDate: 2024-02-02 02:01:39 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:35:41 +0000 contrib/tzdata: import tzdata 2024a Changes: https://github.com/eggert/tz/blob/2024a/NEWS Approved by: so Security: FreeBSD-EN-24:01.tzdata (cherry picked from commit 2723c7ffb7f729a1d3f7c59e7db48b0edf3d30a6) (cherry picked from commit 26fe22019cb244aaaf8f96218e6e74641157e204) --- contrib/tzdata/Makefile | 53 ++++-- contrib/tzdata/NEWS | 68 +++++++ contrib/tzdata/africa | 8 +- contrib/tzdata/asia | 174 +++++++++++------- contrib/tzdata/australasia | 14 +- contrib/tzdata/checknow.awk | 2 +- contrib/tzdata/etcetera | 2 +- contrib/tzdata/europe | 29 ++- contrib/tzdata/leap-seconds.list | 373 +++++++++++++-------------------------- contrib/tzdata/leapseconds | 19 +- contrib/tzdata/leapseconds.awk | 11 +- contrib/tzdata/northamerica | 29 +-- contrib/tzdata/southamerica | 5 +- contrib/tzdata/theory.html | 37 ++-- contrib/tzdata/version | 2 +- contrib/tzdata/zishrink.awk | 98 ++++++---- contrib/tzdata/zonenow.tab | 4 +- 17 files changed, 507 insertions(+), 421 deletions(-) diff --git a/contrib/tzdata/Makefile b/contrib/tzdata/Makefile index 4e45f93b915c..d48354c72df4 100644 --- a/contrib/tzdata/Makefile +++ b/contrib/tzdata/Makefile @@ -53,7 +53,7 @@ DATAFORM= main LOCALTIME= Factory -# The POSIXRULES macro controls interpretation of POSIX-like TZ +# The POSIXRULES macro controls interpretation of POSIX-2017.1-like TZ # settings like TZ='EET-2EEST' that lack DST transition rules. # If POSIXRULES is '-', no template is installed; this is the default. # Any other value for POSIXRULES is obsolete and should not be relied on, as: @@ -274,7 +274,7 @@ LDLIBS= # -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory; # the default is system-supplied, typically "/usr/lib/locale" # -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified -# DST transitions for POSIX-style TZ strings lacking them, +# DST transitions for POSIX.1-2017-style TZ strings lacking them, # in the usual case where POSIXRULES is '-'. If not specified, # TZDEFRULESTRING defaults to US rules for future DST transitions. # This mishandles some past timestamps, as US DST rules have changed. @@ -340,9 +340,10 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this. # Similarly, if your system has a "zone abbreviation" field, define # -DTM_ZONE=tm_zone -# and define NO_TM_ZONE to suppress any guessing. Although these two fields -# not required by POSIX, a future version of POSIX is planned to require them -# and they are widely available on GNU/Linux and BSD systems. +# and define NO_TM_ZONE to suppress any guessing. +# Although these two fields are not required by POSIX.1-2017, +# POSIX 202x/D4 requires them and they are widely available +# on GNU/Linux and BSD systems. # # The next batch of options control support for external variables # exported by tzcode. In practice these variables are less useful @@ -352,7 +353,7 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # # -DHAVE_TZNAME=0 # do not support "tzname" # # -DHAVE_TZNAME=1 # support "tzname", which is defined by system library # # -DHAVE_TZNAME=2 # support and define "tzname" -# # to the "CFLAGS=" line. "tzname" is required by POSIX 1988 and later. +# # to the "CFLAGS=" line. "tzname" is required by POSIX.1-1988 and later. # # If not defined, the code attempts to guess HAVE_TZNAME from other macros. # # Warning: unless time_tz is also defined, HAVE_TZNAME=1 can cause # # crashes when combined with some platforms' standard libraries, @@ -362,8 +363,8 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # # -DUSG_COMPAT=0 # do not support # # -DUSG_COMPAT=1 # support, and variables are defined by system library # # -DUSG_COMPAT=2 # support and define variables -# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by -# # Unix Systems Group code and are required by POSIX 2008 (with XSI) and later. +# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by Unix +# # Systems Group code and are required by POSIX.1-2008 and later (with XSI). # # If not defined, the code attempts to guess USG_COMPAT from other macros. # # # # To support the external variable "altzone", add @@ -427,7 +428,7 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # The name of a POSIX-like library archiver, its flags, C compiler, # linker flags, and 'make' utility. Ordinarily the defaults suffice. -# The commented-out values are the defaults specified by POSIX 202x/D3. +# The commented-out values are the defaults specified by POSIX.1-202x/D4. #AR = ar #ARFLAGS = -rv #CC = c17 @@ -439,6 +440,12 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ LEAPSECONDS= +# Where to fetch leap-seconds.list from. +leaplist_URI = \ + https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list +# The file is generated by the IERS Earth Orientation Centre, in Paris. +leaplist_TZ = Europe/Paris + # The zic command and its arguments. zic= ./zic @@ -471,7 +478,8 @@ AWK= awk # is typically nicer if it works. KSHELL= /bin/bash -# Name of curl , used for HTML validation. +# Name of curl , used for HTML validation +# and to fetch leap-seconds.list from upstream. CURL= curl # Name of GNU Privacy Guard , used to sign distributions. @@ -718,6 +726,28 @@ leapseconds: $(LEAP_DEPS) -f leapseconds.awk leap-seconds.list >$@.out mv $@.out $@ +# Awk script to extract a Git-style author from leap-seconds.list comments. +EXTRACT_AUTHOR = \ + author_line { sub(/^.[[:space:]]*/, ""); \ + sub(/:[[:space:]]*/, " <"); \ + printf "%s>\n", $$0; \ + success = 1; \ + exit \ + } \ + /Questions or comments to:/ { author_line = 1 } \ + END { exit !success } + +# Fetch leap-seconds.list from upstream. +fetch-leap-seconds.list: + $(CURL) -OR $(leaplist_URI) + +# Fetch leap-seconds.list from upstream and commit it to the local repository. +commit-leap-seconds.list: fetch-leap-seconds.list + author=$$($(AWK) '$(EXTRACT_AUTHOR)' leap-seconds.list) && \ + date=$$(TZ=$(leaplist_TZ) stat -c%y leap-seconds.list) && \ + git commit --author="$$author" --date="$$date" -m'make $@' \ + leap-seconds.list + # Arguments to pass to submakes of install_data. # They can be overridden by later submake arguments. INSTALLARGS = \ @@ -1315,7 +1345,8 @@ zic.o: private.h tzfile.h tzdir.h version.h .PHONY: ALL INSTALL all .PHONY: check check_mild check_time_t_alternatives .PHONY: check_web check_zishrink -.PHONY: clean clean_misc dummy.zd force_tzs +.PHONY: clean clean_misc commit-leap-seconds.list dummy.zd +.PHONY: fetch-leap-seconds.list force_tzs .PHONY: install install_data maintainer-clean names .PHONY: posix_only posix_right public .PHONY: rearguard_signatures rearguard_signatures_version diff --git a/contrib/tzdata/NEWS b/contrib/tzdata/NEWS index 031ba6a8a250..d407342a50e6 100644 --- a/contrib/tzdata/NEWS +++ b/contrib/tzdata/NEWS @@ -1,5 +1,73 @@ News for the tz database +Release 2024a - 2024-02-01 09:28:56 -0800 + + Briefly: + Kazakhstan unifies on UTC+5 beginning 2024-03-01. + Palestine springs forward a week later after Ramadan. + zic no longer pretends to support indefinite-past DST. + localtime no longer mishandles Ciudad Juárez in 2422. + + Changes to future timestamps + + Kazakhstan unifies on UTC+5. This affects Asia/Almaty and + Asia/Qostanay which together represent the eastern portion of the + country that will transition from UTC+6 on 2024-03-01 at 00:00 to + join the western portion. (Thanks to Zhanbolat Raimbekov.) + + Palestine springs forward a week later than previously predicted + in 2024 and 2025. (Thanks to Heba Hamad.) Change spring-forward + predictions to the second Saturday after Ramadan, not the first; + this also affects other predictions starting in 2039. + + Changes to past timestamps + + Asia/Ho_Chi_Minh's 1955-07-01 transition occurred at 01:00 + not 00:00. (Thanks to Đoàn Trần Công Danh.) + + From 1947 through 1949, Toronto's transitions occurred at 02:00 + not 00:00. (Thanks to Chris Walton.) + + In 1911 Miquelon adopted standard time on June 15, not May 15. + + Changes to code + + The FROM and TO columns of Rule lines can no longer be "minimum" + or an abbreviation of "minimum", because TZif files do not support + DST rules that extend into the indefinite past - although these + rules were supported when TZif files had only 32-bit data, this + stopped working when 64-bit TZif files were introduced in 1995. + This should not be a problem for realistic data, since DST was + first used in the 20th century. As a transition aid, FROM columns + like "minimum" are now diagnosed and then treated as if they were + the year 1900; this should suffice for TZif files on old systems + with only 32-bit time_t, and it is more compatible with bugs in + 2023c-and-earlier localtime.c. (Problem reported by Yoshito + Umaoka.) + + localtime and related functions no longer mishandle some + timestamps that occur about 400 years after a switch to a time + zone with a DST schedule. In 2023d data this problem was visible + for some timestamps in November 2422, November 2822, etc. in + America/Ciudad_Juarez. (Problem reported by Gilmore Davidson.) + + strftime %s now uses tm_gmtoff if available. (Problem and draft + patch reported by Dag-Erling Smørgrav.) + + Changes to build procedure + + The leap-seconds.list file is now copied from the IERS instead of + from its downstream counterpart at NIST, as the IERS version is + now in the public domain too and tends to be more up-to-date. + (Thanks to Martin Burnicki for liaisoning with the IERS.) + + Changes to documentation + + The strftime man page documents which struct tm members affect + which conversion specs, and that tzset is called. (Problems + reported by Robert Elz and Steve Summit.) + + Release 2023d - 2023-12-21 20:02:24 -0800 Briefly: diff --git a/contrib/tzdata/africa b/contrib/tzdata/africa index 6fae18c0979f..92d823a0515c 100644 --- a/contrib/tzdata/africa +++ b/contrib/tzdata/africa @@ -30,6 +30,10 @@ # Milne J. Civil time. Geogr J. 1899 Feb;13(2):173-94. # https://www.jstor.org/stable/1774359 # +# For the 1911/1912 establishment of standard time in French possessions, see: +# Société Française de Physique, Recueil de constantes physiques (1913), +# page 752, 18b. +# # European-style abbreviations are commonly used along the Mediterranean. # For sub-Saharan Africa abbreviations were less standardized. # Previous editions of this database used WAT, CAT, SAT, and EAT @@ -113,7 +117,7 @@ Zone Atlantic/Cape_Verde -1:34:04 - LMT 1912 Jan 01 2:00u # Praia # Chad # Zone NAME STDOFF RULES FORMAT [UNTIL] -Zone Africa/Ndjamena 1:00:12 - LMT 1912 # N'Djamena +Zone Africa/Ndjamena 1:00:12 - LMT 1912 Jan 1 # N'Djamena 1:00 - WAT 1979 Oct 14 1:00 1:00 WAST 1980 Mar 8 1:00 - WAT @@ -139,7 +143,7 @@ Zone Africa/Ndjamena 1:00:12 - LMT 1912 # N'Djamena # Inaccessible, Nightingale: uninhabited # Zone NAME STDOFF RULES FORMAT [UNTIL] -Zone Africa/Abidjan -0:16:08 - LMT 1912 +Zone Africa/Abidjan -0:16:08 - LMT 1912 Jan 1 0:00 - GMT ############################################################################### diff --git a/contrib/tzdata/asia b/contrib/tzdata/asia index 04526c196931..05683b9ebaa3 100644 --- a/contrib/tzdata/asia +++ b/contrib/tzdata/asia @@ -2457,18 +2457,33 @@ Zone Asia/Amman 2:23:44 - LMT 1931 # effective December 21st, 2018.... # http://adilet.zan.kz/rus/docs/P1800000817 (russian language). +# From Zhanbolat Raimbekov (2024-01-19): +# Kazakhstan (all parts) switching to UTC+5 on March 1, 2024 +# https://www.gov.kz/memleket/entities/mti/press/news/details/688998?lang=ru +# [in Russian] +# (2024-01-20): https://primeminister.kz/ru/decisions/19012024-20 +# +# From Alexander Krivenyshev (2024-01-19): +# According to a different news and the official web site for the Ministry of +# Trade and Integration of the Republic of Kazakhstan: +# https://en.inform.kz/news/kazakhstan-to-switch-to-single-hour-zone-mar-1-54ad0b/ + # Zone NAME STDOFF RULES FORMAT [UNTIL] # # Almaty (formerly Alma-Ata), representing most locations in Kazakhstan -# This includes KZ-AKM, KZ-ALA, KZ-ALM, KZ-AST, KZ-BAY, KZ-VOS, KZ-ZHA, -# KZ-KAR, KZ-SEV, KZ-PAV, and KZ-YUZ. +# This includes Abai/Abay (ISO 3166-2 code KZ-10), Aqmola/Akmola (KZ-11), +# Almaty (KZ-19), Almaty city (KZ-75), Astana city (KZ-71), +# East Kazkhstan (KZ-63), Jambyl/Zhambyl (KZ-31), Jetisu/Zhetysu (KZ-33), +# Karaganda (KZ-35), North Kazakhstan (KZ-59), Pavlodar (KZ-55), +# Shyumkent city (KZ-79), Turkistan (KZ-61), and Ulytau (KZ-62). Zone Asia/Almaty 5:07:48 - LMT 1924 May 2 # or Alma-Ata 5:00 - +05 1930 Jun 21 6:00 RussiaAsia +06/+07 1991 Mar 31 2:00s 5:00 RussiaAsia +05/+06 1992 Jan 19 2:00s 6:00 RussiaAsia +06/+07 2004 Oct 31 2:00s - 6:00 - +06 -# Qyzylorda (aka Kyzylorda, Kizilorda, Kzyl-Orda, etc.) (KZ-KZY) + 6:00 - +06 2024 Mar 1 0:00 + 5:00 - +05 +# Qyzylorda (aka Kyzylorda, Kizilorda, Kzyl-Orda, etc.) (KZ-43) Zone Asia/Qyzylorda 4:21:52 - LMT 1924 May 2 4:00 - +04 1930 Jun 21 5:00 - +05 1981 Apr 1 @@ -2481,8 +2496,7 @@ Zone Asia/Qyzylorda 4:21:52 - LMT 1924 May 2 5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s 6:00 - +06 2018 Dec 21 0:00 5:00 - +05 -# -# Qostanay (aka Kostanay, Kustanay) (KZ-KUS) +# Qostanay (aka Kostanay, Kustanay) (KZ-39) # The 1991/2 rules are unclear partly because of the 1997 Turgai # reorganization. Zone Asia/Qostanay 4:14:28 - LMT 1924 May 2 @@ -2493,9 +2507,9 @@ Zone Asia/Qostanay 4:14:28 - LMT 1924 May 2 5:00 RussiaAsia +05/+06 1991 Mar 31 2:00s 4:00 RussiaAsia +04/+05 1992 Jan 19 2:00s 5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s - 6:00 - +06 - -# Aqtöbe (aka Aktobe, formerly Aktyubinsk) (KZ-AKT) + 6:00 - +06 2024 Mar 1 0:00 + 5:00 - +05 +# Aqtöbe (aka Aktobe, formerly Aktyubinsk) (KZ-15) Zone Asia/Aqtobe 3:48:40 - LMT 1924 May 2 4:00 - +04 1930 Jun 21 5:00 - +05 1981 Apr 1 @@ -2505,7 +2519,7 @@ Zone Asia/Aqtobe 3:48:40 - LMT 1924 May 2 4:00 RussiaAsia +04/+05 1992 Jan 19 2:00s 5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s 5:00 - +05 -# Mangghystaū (KZ-MAN) +# Mangghystaū (KZ-47) # Aqtau was not founded until 1963, but it represents an inhabited region, # so include timestamps before 1963. Zone Asia/Aqtau 3:21:04 - LMT 1924 May 2 @@ -2517,7 +2531,7 @@ Zone Asia/Aqtau 3:21:04 - LMT 1924 May 2 5:00 RussiaAsia +05/+06 1994 Sep 25 2:00s 4:00 RussiaAsia +04/+05 2004 Oct 31 2:00s 5:00 - +05 -# Atyraū (KZ-ATY) is like Mangghystaū except it switched from +# Atyraū (KZ-23) is like Mangghystaū except it switched from # +04/+05 to +05/+06 in spring 1999, not fall 1994. Zone Asia/Atyrau 3:27:44 - LMT 1924 May 2 3:00 - +03 1930 Jun 21 @@ -2528,7 +2542,7 @@ Zone Asia/Atyrau 3:27:44 - LMT 1924 May 2 5:00 RussiaAsia +05/+06 1999 Mar 28 2:00s 4:00 RussiaAsia +04/+05 2004 Oct 31 2:00s 5:00 - +05 -# West Kazakhstan (KZ-ZAP) +# West Kazakhstan (KZ-27) # From Paul Eggert (2016-03-18): # The 1989 transition is from USSR act No. 227 (1989-03-14). Zone Asia/Oral 3:25:24 - LMT 1924 May 2 # or Ural'sk @@ -3430,19 +3444,26 @@ Zone Asia/Karachi 4:28:12 - LMT 1907 # ... winter time will begin in Palestine from Saturday 10-28-2023, # 02:00 AM by 60 minutes back. # -# From Paul Eggert (2023-03-22): +# From Heba Hamad (2024-01-25): +# the summer time for the years 2024,2025 will begin in Palestine +# from Saturday at 02:00 AM by 60 minutes forward as shown below: +# year date +# 2024 2024-04-20 +# 2025 2025-04-12 +# +# From Paul Eggert (2024-01-25): # For now, guess that spring and fall transitions will normally # continue to use 2022's rules, that during DST Palestine will switch # to standard time at 02:00 the last Saturday before Ramadan and back -# to DST at 02:00 the first Saturday after Ramadan, and that +# to DST at 02:00 the second Saturday after Ramadan, and that # if the normal spring-forward or fall-back transition occurs during # Ramadan the former is delayed and the latter advanced. # To implement this, I predicted Ramadan-oriented transition dates for -# 2023 through 2086 by running the following program under GNU Emacs 28.2, +# 2026 through 2086 by running the following program under GNU Emacs 29.2, # with the results integrated by hand into the table below. # Predictions after 2086 are approximated without Ramadan. # -# (let ((islamic-year 1444)) +# (let ((islamic-year 1447)) # (require 'cal-islam) # (while (< islamic-year 1510) # (let ((a (calendar-islamic-to-absolute (list 9 1 islamic-year))) @@ -3451,6 +3472,7 @@ Zone Asia/Karachi 4:28:12 - LMT 1907 # (while (/= saturday (mod (setq a (1- a)) 7))) # (while (/= saturday (mod b 7)) # (setq b (1+ b))) +# (setq b (+ 7 b)) # (setq a (calendar-gregorian-from-absolute a)) # (setq b (calendar-gregorian-from-absolute b)) # (insert @@ -3501,84 +3523,84 @@ Rule Palestine 2021 only - Oct 29 1:00 0 - Rule Palestine 2022 only - Mar 27 0:00 1:00 S Rule Palestine 2022 2035 - Oct Sat<=30 2:00 0 - Rule Palestine 2023 only - Apr 29 2:00 1:00 S -Rule Palestine 2024 only - Apr 13 2:00 1:00 S -Rule Palestine 2025 only - Apr 5 2:00 1:00 S +Rule Palestine 2024 only - Apr 20 2:00 1:00 S +Rule Palestine 2025 only - Apr 12 2:00 1:00 S Rule Palestine 2026 2054 - Mar Sat<=30 2:00 1:00 S Rule Palestine 2036 only - Oct 18 2:00 0 - Rule Palestine 2037 only - Oct 10 2:00 0 - Rule Palestine 2038 only - Sep 25 2:00 0 - Rule Palestine 2039 only - Sep 17 2:00 0 - -Rule Palestine 2039 only - Oct 22 2:00 1:00 S -Rule Palestine 2039 2067 - Oct Sat<=30 2:00 0 - Rule Palestine 2040 only - Sep 1 2:00 0 - -Rule Palestine 2040 only - Oct 13 2:00 1:00 S +Rule Palestine 2040 only - Oct 20 2:00 1:00 S +Rule Palestine 2040 2067 - Oct Sat<=30 2:00 0 - Rule Palestine 2041 only - Aug 24 2:00 0 - -Rule Palestine 2041 only - Sep 28 2:00 1:00 S +Rule Palestine 2041 only - Oct 5 2:00 1:00 S Rule Palestine 2042 only - Aug 16 2:00 0 - -Rule Palestine 2042 only - Sep 20 2:00 1:00 S +Rule Palestine 2042 only - Sep 27 2:00 1:00 S Rule Palestine 2043 only - Aug 1 2:00 0 - -Rule Palestine 2043 only - Sep 12 2:00 1:00 S +Rule Palestine 2043 only - Sep 19 2:00 1:00 S Rule Palestine 2044 only - Jul 23 2:00 0 - -Rule Palestine 2044 only - Aug 27 2:00 1:00 S +Rule Palestine 2044 only - Sep 3 2:00 1:00 S Rule Palestine 2045 only - Jul 15 2:00 0 - -Rule Palestine 2045 only - Aug 19 2:00 1:00 S +Rule Palestine 2045 only - Aug 26 2:00 1:00 S Rule Palestine 2046 only - Jun 30 2:00 0 - -Rule Palestine 2046 only - Aug 11 2:00 1:00 S +Rule Palestine 2046 only - Aug 18 2:00 1:00 S Rule Palestine 2047 only - Jun 22 2:00 0 - -Rule Palestine 2047 only - Jul 27 2:00 1:00 S +Rule Palestine 2047 only - Aug 3 2:00 1:00 S Rule Palestine 2048 only - Jun 6 2:00 0 - -Rule Palestine 2048 only - Jul 18 2:00 1:00 S +Rule Palestine 2048 only - Jul 25 2:00 1:00 S Rule Palestine 2049 only - May 29 2:00 0 - -Rule Palestine 2049 only - Jul 3 2:00 1:00 S +Rule Palestine 2049 only - Jul 10 2:00 1:00 S Rule Palestine 2050 only - May 21 2:00 0 - -Rule Palestine 2050 only - Jun 25 2:00 1:00 S +Rule Palestine 2050 only - Jul 2 2:00 1:00 S Rule Palestine 2051 only - May 6 2:00 0 - -Rule Palestine 2051 only - Jun 17 2:00 1:00 S +Rule Palestine 2051 only - Jun 24 2:00 1:00 S Rule Palestine 2052 only - Apr 27 2:00 0 - -Rule Palestine 2052 only - Jun 1 2:00 1:00 S +Rule Palestine 2052 only - Jun 8 2:00 1:00 S Rule Palestine 2053 only - Apr 12 2:00 0 - -Rule Palestine 2053 only - May 24 2:00 1:00 S +Rule Palestine 2053 only - May 31 2:00 1:00 S Rule Palestine 2054 only - Apr 4 2:00 0 - -Rule Palestine 2054 only - May 16 2:00 1:00 S -Rule Palestine 2055 only - May 1 2:00 1:00 S -Rule Palestine 2056 only - Apr 22 2:00 1:00 S -Rule Palestine 2057 only - Apr 7 2:00 1:00 S -Rule Palestine 2058 max - Mar Sat<=30 2:00 1:00 S +Rule Palestine 2054 only - May 23 2:00 1:00 S +Rule Palestine 2055 only - May 8 2:00 1:00 S +Rule Palestine 2056 only - Apr 29 2:00 1:00 S +Rule Palestine 2057 only - Apr 14 2:00 1:00 S +Rule Palestine 2058 only - Apr 6 2:00 1:00 S +Rule Palestine 2059 max - Mar Sat<=30 2:00 1:00 S Rule Palestine 2068 only - Oct 20 2:00 0 - Rule Palestine 2069 only - Oct 12 2:00 0 - Rule Palestine 2070 only - Oct 4 2:00 0 - Rule Palestine 2071 only - Sep 19 2:00 0 - Rule Palestine 2072 only - Sep 10 2:00 0 - -Rule Palestine 2072 only - Oct 15 2:00 1:00 S +Rule Palestine 2072 only - Oct 22 2:00 1:00 S Rule Palestine 2072 max - Oct Sat<=30 2:00 0 - Rule Palestine 2073 only - Sep 2 2:00 0 - -Rule Palestine 2073 only - Oct 7 2:00 1:00 S +Rule Palestine 2073 only - Oct 14 2:00 1:00 S Rule Palestine 2074 only - Aug 18 2:00 0 - -Rule Palestine 2074 only - Sep 29 2:00 1:00 S +Rule Palestine 2074 only - Oct 6 2:00 1:00 S Rule Palestine 2075 only - Aug 10 2:00 0 - -Rule Palestine 2075 only - Sep 14 2:00 1:00 S +Rule Palestine 2075 only - Sep 21 2:00 1:00 S Rule Palestine 2076 only - Jul 25 2:00 0 - -Rule Palestine 2076 only - Sep 5 2:00 1:00 S +Rule Palestine 2076 only - Sep 12 2:00 1:00 S Rule Palestine 2077 only - Jul 17 2:00 0 - -Rule Palestine 2077 only - Aug 28 2:00 1:00 S +Rule Palestine 2077 only - Sep 4 2:00 1:00 S Rule Palestine 2078 only - Jul 9 2:00 0 - -Rule Palestine 2078 only - Aug 13 2:00 1:00 S +Rule Palestine 2078 only - Aug 20 2:00 1:00 S Rule Palestine 2079 only - Jun 24 2:00 0 - -Rule Palestine 2079 only - Aug 5 2:00 1:00 S +Rule Palestine 2079 only - Aug 12 2:00 1:00 S Rule Palestine 2080 only - Jun 15 2:00 0 - -Rule Palestine 2080 only - Jul 20 2:00 1:00 S +Rule Palestine 2080 only - Jul 27 2:00 1:00 S Rule Palestine 2081 only - Jun 7 2:00 0 - -Rule Palestine 2081 only - Jul 12 2:00 1:00 S +Rule Palestine 2081 only - Jul 19 2:00 1:00 S Rule Palestine 2082 only - May 23 2:00 0 - -Rule Palestine 2082 only - Jul 4 2:00 1:00 S +Rule Palestine 2082 only - Jul 11 2:00 1:00 S Rule Palestine 2083 only - May 15 2:00 0 - -Rule Palestine 2083 only - Jun 19 2:00 1:00 S +Rule Palestine 2083 only - Jun 26 2:00 1:00 S Rule Palestine 2084 only - Apr 29 2:00 0 - -Rule Palestine 2084 only - Jun 10 2:00 1:00 S +Rule Palestine 2084 only - Jun 17 2:00 1:00 S Rule Palestine 2085 only - Apr 21 2:00 0 - -Rule Palestine 2085 only - Jun 2 2:00 1:00 S +Rule Palestine 2085 only - Jun 9 2:00 1:00 S Rule Palestine 2086 only - Apr 13 2:00 0 - -Rule Palestine 2086 only - May 18 2:00 1:00 S +Rule Palestine 2086 only - May 25 2:00 1:00 S # Zone NAME STDOFF RULES FORMAT [UNTIL] Zone Asia/Gaza 2:17:52 - LMT 1900 Oct @@ -3606,7 +3628,7 @@ Zone Asia/Hebron 2:20:23 - LMT 1900 Oct # Philippines -# From Paul Eggert (2018-11-18): +# From Paul Eggert (2024-01-21): # The Spanish initially used American (west-of-Greenwich) time. # It is unknown what time Manila kept when the British occupied it from # 1762-10-06 through 1764-04; for now assume it kept American time. @@ -3614,7 +3636,7 @@ Zone Asia/Hebron 2:20:23 - LMT 1900 Oct # Philippines, issued a proclamation announcing that 1844-12-30 was to # be immediately followed by 1845-01-01; see R.H. van Gent's # History of the International Date Line -# https://www.staff.science.uu.nl/~gent0113/idl/idl_philippines.htm +# https://webspace.science.uu.nl/~gent0113/idl/idl_philippines.htm # The rest of the data entries are from Shanks & Pottenger. # From Jesper Nørgaard Welen (2006-04-26): @@ -4041,7 +4063,8 @@ Zone Asia/Tashkent 4:37:11 - LMT 1924 May 2 # The English-language name of Vietnam's most populous city is "Ho Chi Minh # City"; use Ho_Chi_Minh below to avoid a name of more than 14 characters. -# From Paul Eggert (2022-07-27) after a 2014 heads-up from Trần Ngọc Quân: +# From Paul Eggert (2024-01-14) after a 2014 heads-up from Trần Ngọc Quân +# and a 2024-01-14 heads-up from Đoàn Trần Công Danh: # Trần Tiến Bình's authoritative book "Lịch Việt Nam: thế kỷ XX-XXI (1901-2100)" # (Nhà xuất bản Văn Hoá - Thông Tin, Hanoi, 2005), pp 49-50, # is quoted verbatim in: @@ -4071,14 +4094,35 @@ Zone Asia/Tashkent 4:37:11 - LMT 1924 May 2 # # Trần cites the following sources; it's unclear which supplied the info above. # -# Hoàng Xuân Hãn: "Lịch và lịch Việt Nam". Tập san Khoa học Xã hội, -# No. 9, Paris, February 1982. +# Hoàng Xuân Hãn: "Lịch và lịch Việt Nam". Tập san Khoa học Xã hội, +# No. 9, Paris, February 1982. +# +# Lê Thành Lân: "Lịch và niên biểu lịch sử hai mươi thế kỷ (0001-2010)", +# NXB Thống kê, Hanoi, 2000. # -# Lê Thành Lân: "Lịch và niên biểu lịch sử hai mươi thế kỷ (0001-2010)", -# NXB Thống kê, Hanoi, 2000. +# Lê Thành Lân: "Lịch hai thế kỷ (1802-2010) và các lịch vĩnh cửu", +# NXB Thuận Hoá, Huế, 1995. # -# Lê Thành Lân: "Lịch hai thế kỷ (1802-2010) và các lịch vĩnh cửu", -# NXB Thuận Hoá, Huế, 1995. +# Here is the decision for the September 1945 transition: +# Võ Nguyên Giáp, Việt Nam Dân Quốc Công Báo, No. 1 (1945-09-29), page 13 +# http://baochi.nlv.gov.vn/baochi/cgi-bin/baochi?a=d&d=JwvzO19450929.2.5&dliv=none +# It says that on 1945-09-01 at 24:00, Vietnam moved back two hours, to +07. +# It also mentions a 1945-03-29 decree (by a Japanese Goveror-General) +# to set the time zone to +09, but does not say whether that decree +# merely legalized an earlier change to +09. +# +# July 1955 transition: +# Ngô Đình Diệm, Công Báo Việt Nam, No. 92 (1955-07-02), page 1780-1781 +# Ordinance (Dụ) No. 46 (1955-06-25) +# http://ddsnext.crl.edu/titles/32341#?c=0&m=29&s=0&cv=4&r=0&xywh=-89%2C342%2C1724%2C1216 +# It says that on 1955-07-01 at 01:00, South Vietnam moved back 1 hour (to +07). +# +# December 1959 transition: +# Ngô Đình Diệm, Công Báo Việt Nam Cộng Hòa, 1960 part 1 (1960-01-02), page 62 +# Decree (Sắc lệnh) No. 362-TTP (1959-12-30) +# http://ddsnext.crl.edu/titles/32341#?c=0&m=138&s=0&cv=793&r=0&xywh=-54%2C1504%2C1705%2C1202 +# It says that on 1959-12-31 at 23:00, South Vietnam moved forward 1 hour (to +08). + # Zone NAME STDOFF RULES FORMAT [UNTIL] #STDOFF 7:06:30.13 @@ -4086,9 +4130,9 @@ Zone Asia/Ho_Chi_Minh 7:06:30 - LMT 1906 Jul 1 7:06:30 - PLMT 1911 May 1 # Phù Liễn MT 7:00 - +07 1942 Dec 31 23:00 8:00 - +08 1945 Mar 14 23:00 - 9:00 - +09 1945 Sep 2 + 9:00 - +09 1945 Sep 1 24:00 7:00 - +07 1947 Apr 1 - 8:00 - +08 1955 Jul 1 + 8:00 - +08 1955 Jul 1 01:00 7:00 - +07 1959 Dec 31 23:00 8:00 - +08 1975 Jun 13 7:00 - +07 diff --git a/contrib/tzdata/australasia b/contrib/tzdata/australasia index dc98c1e2de17..0e9c2592e4be 100644 --- a/contrib/tzdata/australasia +++ b/contrib/tzdata/australasia @@ -420,11 +420,11 @@ Zone Pacific/Fiji 11:55:44 - LMT 1915 Oct 26 # Suva # French Polynesia # Zone NAME STDOFF RULES FORMAT [UNTIL] -Zone Pacific/Gambier -8:59:48 - LMT 1912 Oct # Rikitea +Zone Pacific/Gambier -8:59:48 - LMT 1912 Oct 1 # Rikitea -9:00 - -09 -Zone Pacific/Marquesas -9:18:00 - LMT 1912 Oct +Zone Pacific/Marquesas -9:18:00 - LMT 1912 Oct 1 -9:30 - -0930 -Zone Pacific/Tahiti -9:58:16 - LMT 1912 Oct # Papeete +Zone Pacific/Tahiti -9:58:16 - LMT 1912 Oct 1 # Papeete -10:00 - -10 # Clipperton (near North America) is administered from French Polynesia; # it is uninhabited. @@ -802,7 +802,7 @@ Zone Pacific/Apia 12:33:04 - LMT 1892 Jul 5 # Solomon Is # excludes Bougainville, for which see Papua New Guinea # Zone NAME STDOFF RULES FORMAT [UNTIL] -Zone Pacific/Guadalcanal 10:39:48 - LMT 1912 Oct # Honiara +Zone Pacific/Guadalcanal 10:39:48 - LMT 1912 Oct 1 # Honiara 11:00 - +11 # Tokelau @@ -963,6 +963,10 @@ Zone Pacific/Efate 11:13:16 - LMT 1912 Jan 13 # Vila # Milne J. Civil time. Geogr J. 1899 Feb;13(2):173-94. # https://www.jstor.org/stable/1774359 # +# For the 1911/1912 establishment of standard time in French possessions, see: +# Société Française de Physique, Recueil de constantes physiques (1913), +# page 752, 18b. +# # A reliable and entertaining source about time zones is # Derek Howse, Greenwich time and longitude, Philip Wilson Publishers (1997). # @@ -2039,7 +2043,7 @@ Zone Pacific/Efate 11:13:16 - LMT 1912 Jan 13 # Vila # ordaining - by a masterpiece of diplomatic flattery - that # the Fourth of July should be celebrated twice in that year." # This happened in 1892, according to the Evening News (Sydney) of 1892-07-20. -# https://www.staff.science.uu.nl/~gent0113/idl/idl.htm +# https://webspace.science.uu.nl/~gent0113/idl/idl_alaska_samoa.htm # Although Shanks & Pottenger says they both switched to UT -11:30 # in 1911, and to -11 in 1950. many earlier sources give -11 diff --git a/contrib/tzdata/checknow.awk b/contrib/tzdata/checknow.awk index d722c03fd689..57ff3c02e789 100644 --- a/contrib/tzdata/checknow.awk +++ b/contrib/tzdata/checknow.awk @@ -45,7 +45,7 @@ END { for (zone in zone_data) { data = zone_data[zone] if (!zonenow[data]) { - printf "checknow.tab should have one of:%s\n", zones[data] + printf "zonenow.tab should have one of:%s\n", zones[data] zonenow[data] = zone # This suppresses duplicate diagnostics. status = 1 } diff --git a/contrib/tzdata/etcetera b/contrib/tzdata/etcetera index 865a220c1f4b..29fbed9b9290 100644 --- a/contrib/tzdata/etcetera +++ b/contrib/tzdata/etcetera @@ -5,7 +5,7 @@ # These entries are for uses not otherwise covered by the tz database. # Their main practical use is for platforms like Android that lack -# support for POSIX-style TZ strings. On such platforms these entries +# support for POSIX.1-2017-style TZ strings. On such platforms these entries # can be useful if the timezone database is wrong or if a ship or # aircraft at sea is not in a timezone. diff --git a/contrib/tzdata/europe b/contrib/tzdata/europe index 27f821e77600..c6b5270316b9 100644 --- a/contrib/tzdata/europe +++ b/contrib/tzdata/europe @@ -990,9 +990,34 @@ Zone Europe/Sofia 1:33:16 - LMT 1880 # Czech Republic (Czechia) # Slovakia # -# From Paul Eggert (2018-04-15): -# The source for Czech data is: Kdy začíná a končí letní čas. 2018-04-15. +# From Ivan Benovic (2024-01-30): +# https://www.slov-lex.sk/pravne-predpisy/SK/ZZ/1946/54/ +# (This is an official link to the Czechoslovak Summer Time Act of +# March 8, 1946 that authorizes the Czechoslovak government to set the +# exact dates of change to summer time and back to Central European Time. +# The act also implicitly confirms Central European Time as the +# official time zone of Czechoslovakia and currently remains in force +# in both the Czech Republic and Slovakia.) +# https://www.psp.cz/eknih/1945pns/tisky/t0216_00.htm +# (This is a link to the original legislative proposal dating back to +# February 22, 1946. The accompanying memorandum to the proposal says +# that an advisory committee on European railroad transportation that +# met in Brussels in October 1945 decided that the change of time +# should be carried out in all participating countries in a strictly +# coordinated manner....) +# +# From Paul Eggert (2024-01-30): +# The source for Czech data is: Kdy začíná a končí letní čas. # https://kalendar.beda.cz/kdy-zacina-a-konci-letni-cas +# Its main text disagrees with its quoted sources only in 1918, +# where the main text says spring and autumn transitions +# occurred at 02:00 and 03:00 respectively (as usual), +# whereas the 1918 source "Oznámení o zavedení letního času v roce 1918" +# says transitions were at 01:00 and 02:00 respectively. +# As the 1918 source appears to be a humorous piece, and it is +# unlikely that Prague would have disagreed with its neighbors by an hour, +# go with the main text for now. +# # We know of no English-language name for historical Czech winter time; # abbreviate it as "GMT", as it happened to be GMT. # diff --git a/contrib/tzdata/leap-seconds.list b/contrib/tzdata/leap-seconds.list index 3fe9a1210e3c..e52effc257b2 100644 --- a/contrib/tzdata/leap-seconds.list +++ b/contrib/tzdata/leap-seconds.list @@ -1,255 +1,120 @@ +# ATOMIC TIME. +# The Coordinated Universal Time (UTC) is the reference time scale derived +# from The "Temps Atomique International" (TAI) calculated by the Bureau +# International des Poids et Mesures (BIPM) using a worldwide network of atomic +# clocks. UTC differs from TAI by an integer number of seconds; it is the basis +# of all activities in the world. # -# In the following text, the symbol '#' introduces -# a comment, which continues from that symbol until -# the end of the line. A plain comment line has a -# whitespace character following the comment indicator. -# There are also special comment lines defined below. -# A special comment will always have a non-whitespace -# character in column 2. -# -# A blank line should be ignored. -# -# The following table shows the corrections that must -# be applied to compute International Atomic Time (TAI) -# from the Coordinated Universal Time (UTC) values that -# are transmitted by almost all time services. -# -# The first column shows an epoch as a number of seconds -# since 1 January 1900, 00:00:00 (1900.0 is also used to -# indicate the same epoch.) Both of these time stamp formats -# ignore the complexities of the time scales that were -# used before the current definition of UTC at the start -# of 1972. (See note 3 below.) -# The second column shows the number of seconds that -# must be added to UTC to compute TAI for any timestamp -# at or after that epoch. The value on each line is -# valid from the indicated initial instant until the -# epoch given on the next one or indefinitely into the -# future if there is no next line. -# (The comment on each line shows the representation of -# the corresponding initial epoch in the usual -# day-month-year format. The epoch always begins at -# 00:00:00 UTC on the indicated day. See Note 5 below.) -# -# Important notes: -# -# 1. Coordinated Universal Time (UTC) is often referred to -# as Greenwich Mean Time (GMT). The GMT time scale is no -# longer used, and the use of GMT to designate UTC is -# discouraged. -# -# 2. The UTC time scale is realized by many national -# laboratories and timing centers. Each laboratory -# identifies its realization with its name: Thus -# UTC(NIST), UTC(USNO), etc. The differences among -# these different realizations are typically on the -# order of a few nanoseconds (i.e., 0.000 000 00x s) -# and can be ignored for many purposes. These differences -# are tabulated in Circular T, which is published monthly -# by the International Bureau of Weights and Measures -# (BIPM). See www.bipm.org for more information. -# -# 3. The current definition of the relationship between UTC -# and TAI dates from 1 January 1972. A number of different -# time scales were in use before that epoch, and it can be -# quite difficult to compute precise timestamps and time -# intervals in those "prehistoric" days. For more information, -# consult: -# -# The Explanatory Supplement to the Astronomical -# Ephemeris. -# or -# Terry Quinn, "The BIPM and the Accurate Measurement -# of Time," Proc. of the IEEE, Vol. 79, pp. 894-905, -# July, 1991. -# reprinted in: -# Christine Hackman and Donald B Sullivan (eds.) -# Time and Frequency Measurement -# American Association of Physics Teachers (1996) -# , pp. 75-86 -# -# 4. The decision to insert a leap second into UTC is currently -# the responsibility of the International Earth Rotation and -# Reference Systems Service. (The name was changed from the -# International Earth Rotation Service, but the acronym IERS -# is still used.) -# -# Leap seconds are announced by the IERS in its Bulletin C. -# -# See www.iers.org for more details. -# -# Every national laboratory and timing center uses the -# data from the BIPM and the IERS to construct UTC(lab), -# their local realization of UTC. -# -# Although the definition also includes the possibility -# of dropping seconds ("negative" leap seconds), this has -# never been done and is unlikely to be necessary in the -# foreseeable future. -# -# 5. If your system keeps time as the number of seconds since -# some epoch (e.g., NTP timestamps), then the algorithm for -# assigning a UTC time stamp to an event that happens during a positive -# leap second is not well defined. The official name of that leap -# second is 23:59:60, but there is no way of representing that time -# in these systems. -# Many systems of this type effectively stop the system clock for -# one second during the leap second and use a time that is equivalent -# to 23:59:59 UTC twice. For these systems, the corresponding TAI -# timestamp would be obtained by advancing to the next entry in the -# following table when the time equivalent to 23:59:59 UTC -# is used for the second time. Thus the leap second which -# occurred on 30 June 1972 at 23:59:59 UTC would have TAI -# timestamps computed as follows: -# -# ... -# 30 June 1972 23:59:59 (2287785599, first time): TAI= UTC + 10 seconds -# 30 June 1972 23:59:60 (2287785599,second time): TAI= UTC + 11 seconds -# 1 July 1972 00:00:00 (2287785600) TAI= UTC + 11 seconds -# ... -# -# If your system realizes the leap second by repeating 00:00:00 UTC twice -# (this is possible but not usual), then the advance to the next entry -# in the table must occur the second time that a time equivalent to -# 00:00:00 UTC is used. Thus, using the same example as above: -# -# ... -# 30 June 1972 23:59:59 (2287785599): TAI= UTC + 10 seconds -# 30 June 1972 23:59:60 (2287785600, first time): TAI= UTC + 10 seconds -# 1 July 1972 00:00:00 (2287785600,second time): TAI= UTC + 11 seconds -# ... -# -# in both cases the use of timestamps based on TAI produces a smooth -# time scale with no discontinuity in the time interval. However, -# although the long-term behavior of the time scale is correct in both -# methods, the second method is technically not correct because it adds -# the extra second to the wrong day. -# -# This complexity would not be needed for negative leap seconds (if they -# are ever used). The UTC time would skip 23:59:59 and advance from -# 23:59:58 to 00:00:00 in that case. The TAI offset would decrease by -# 1 second at the same instant. This is a much easier situation to deal -# with, since the difficulty of unambiguously representing the epoch -# during the leap second does not arise. -# -# Some systems implement leap seconds by amortizing the leap second -# over the last few minutes of the day. The frequency of the local -# clock is decreased (or increased) to realize the positive (or -# negative) leap second. This method removes the time step described -# above. Although the long-term behavior of the time scale is correct -# in this case, this method introduces an error during the adjustment -# period both in time and in frequency with respect to the official -# definition of UTC. -# -# Questions or comments to: -# Judah Levine -# Time and Frequency Division -# NIST -# Boulder, Colorado -# Judah.Levine@nist.gov -# -# Last Update of leap second values: 8 July 2016 -# -# The following line shows this last update date in NTP timestamp -# format. This is the date on which the most recent change to -# the leap second data was added to the file. This line can -# be identified by the unique pair of characters in the first two -# columns as shown below. -# -#$ 3676924800 -# -# The NTP timestamps are in units of seconds since the NTP epoch, -# which is 1 January 1900, 00:00:00. The Modified Julian Day number -# corresponding to the NTP time stamp, X, can be computed as -# -# X/86400 + 15020 -# -# where the first term converts seconds to days and the second -# term adds the MJD corresponding to the time origin defined above. -# The integer portion of the result is the integer MJD for that -# day, and any remainder is the time of day, expressed as the -# fraction of the day since 0 hours UTC. The conversion from day -# fraction to seconds or to hours, minutes, and seconds may involve -# rounding or truncation, depending on the method used in the -# computation. -# -# The data in this file will be updated periodically as new leap -# seconds are announced. In addition to being entered on the line -# above, the update time (in NTP format) will be added to the basic -# file name leap-seconds to form the name leap-seconds.. -# In addition, the generic name leap-seconds.list will always point to -# the most recent version of the file. -# -# This update procedure will be performed only when a new leap second -# is announced. -# -# The following entry specifies the expiration date of the data -# in this file in units of seconds since the origin at the instant -# 1 January 1900, 00:00:00. This expiration date will be changed -# at least twice per year whether or not a new leap second is -# announced. These semi-annual changes will be made no later -# than 1 June and 1 December of each year to indicate what -# action (if any) is to be taken on 30 June and 31 December, -# respectively. (These are the customary effective dates for new -# leap seconds.) This expiration date will be identified by a -# unique pair of characters in columns 1 and 2 as shown below. -# In the unlikely event that a leap second is announced with an -# effective date other than 30 June or 31 December, then this -# file will be edited to include that leap second as soon as it is -# announced or at least one month before the effective date -# (whichever is later). -# If an announcement by the IERS specifies that no leap second is -# scheduled, then only the expiration date of the file will -# be advanced to show that the information in the file is still -# current -- the update time stamp, the data and the name of the file -# will not change. -# -# Updated through IERS Bulletin C66 -# File expires on: 28 June 2024 -# -#@ 3928521600 -# -2272060800 10 # 1 Jan 1972 -2287785600 11 # 1 Jul 1972 -2303683200 12 # 1 Jan 1973 -2335219200 13 # 1 Jan 1974 -2366755200 14 # 1 Jan 1975 -2398291200 15 # 1 Jan 1976 -2429913600 16 # 1 Jan 1977 -2461449600 17 # 1 Jan 1978 -2492985600 18 # 1 Jan 1979 -2524521600 19 # 1 Jan 1980 -2571782400 20 # 1 Jul 1981 -2603318400 21 # 1 Jul 1982 -2634854400 22 # 1 Jul 1983 -2698012800 23 # 1 Jul 1985 -2776982400 24 # 1 Jan 1988 -2840140800 25 # 1 Jan 1990 -2871676800 26 # 1 Jan 1991 -2918937600 27 # 1 Jul 1992 -2950473600 28 # 1 Jul 1993 -2982009600 29 # 1 Jul 1994 -3029443200 30 # 1 Jan 1996 -3076704000 31 # 1 Jul 1997 -3124137600 32 # 1 Jan 1999 -3345062400 33 # 1 Jan 2006 -3439756800 34 # 1 Jan 2009 -3550089600 35 # 1 Jul 2012 -3644697600 36 # 1 Jul 2015 -3692217600 37 # 1 Jan 2017 -# -# the following special comment contains the -# hash value of the data in this file computed -# use the secure hash algorithm as specified -# by FIPS 180-1. See the files in ~/pub/sha for -# the details of how this hash value is -# computed. Note that the hash computation -# ignores comments and whitespace characters -# in data lines. It includes the NTP values *** 599 LINES SKIPPED *** From nobody Wed Feb 14 06:06: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 4TZSP42wM4z5B53g; Wed, 14 Feb 2024 06:06: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSP426lrz4Rx4; Wed, 14 Feb 2024 06:06:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nA0poWkLUPH8cI2K4uny/Dr0K6L90X9K+wva4CibnFM=; b=TPHLUm4u2RVzo15Ht5aT/X/SZFKc8PbKvnEYeeNdodELl4WUESkH0s6dniQTpMi5zjZf9b Uqa+agPoKv1MP0etrk2XetCa6uB0ZHWKleoEBb+cvXHJOc+8h9pxQLi9Hjw0Ca/dXYBsF+ oQ15lYdd7eQ/3aOfnvf7rDId0F/D3BT9SmUp3aP5vQaHbNEAgdQOPLj5P1pWSkbBH9Dcjo eAkEJAinN7KvvV3XJEqxCp4ihb+JqkeslQa6A9JJpohI4zqiS36Od4+s0Wmf8vhwCrBvkY qzE/172bQ/DQxoJfOqinvrkhbiganBTCN5MRhSDGtt5SzmcR4l7D6KRpFnpISw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890760; a=rsa-sha256; cv=none; b=eknDiTVSSUJ2bf8e5WmMwCZEZcOjMV6P+ilwj/p+oxB0N7cePD6UjoLsB+N/jK1TI1F3bq HtE3OLnrnW+fvpSSkpzpi+DWi4g5PNfA4niU3+BVoAwytpY2j4JRDR2AJrNoR0eSQ+0auH QlPYd4lBzoRiQrGCR4KrS6gUpLq7k8BiaN4JBEfcI7biNMwTprlzvsR0xvy4olBB48td82 1DwUU7Ogyka9ZkwtW4bnfJl7WqjpCy655aPqVZNllDUTCqnN9k2o0bdiIcb7L189jH0Yk7 M4hak6PAJyPhaSWv1GWS5j4oagirtwvL5415sDEPsfUjDlip1pEse/Z7b44lhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nA0poWkLUPH8cI2K4uny/Dr0K6L90X9K+wva4CibnFM=; b=RITgDOtttZ0ollmvFo2hN30G8y23MuM0xRijOvcH5mc6NzVf33dzHDjkNm5v63mKc4gq/C ZZWXgPu/yGqZf/sT/D6LCejZcERGS23jaysWj5r9U0ktE7RkBatiYp7FHuyQMGUaoEk1xW Qb9NBGI0TDW63LXpiiJjqTNMEvfoefZx9DassyFVQOR3KKS0v/N7GWhvYNw3svgsMf134q gu6yc22haYXyygWUjUkdlkD94vk1nXYByyktTLw5k0dreN2e+rtFO6gEMdL2mTWRDWTAWR eGkwLaMnYmWDnoVypxSrZGJgyw0XnBipcBCNpewFXjwvHUqdOjFcGgUi4xBZPw== 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 4TZSP41Ckyzmts; Wed, 14 Feb 2024 06:06:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E660qN085230; Wed, 14 Feb 2024 06:06:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E6606U085227; Wed, 14 Feb 2024 06:06:00 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:06:00 GMT Message-Id: <202402140606.41E6606U085227@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 48598b1670ce - releng/13.2 - bhyveload: use a dirfd to support -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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 48598b1670ce542419420f969d5a5bd47167eb17 Auto-Submitted: auto-generated The branch releng/13.2 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=48598b1670ce542419420f969d5a5bd47167eb17 commit 48598b1670ce542419420f969d5a5bd47167eb17 Author: Kyle Evans AuthorDate: 2024-01-03 22:17:59 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:43:15 +0000 bhyveload: use a dirfd to support -h Don't allow lookups from the loader scripts, which in rare cases may be in guest control depending on the setup, to leave the specified host root. Open the root dir and strictly do RESOLVE_BENEATH lookups from there. cb_open() has been restructured a bit to work nicely with this, using fdopendir() in the directory case and just using the fd we already opened in the regular file case. hostbase_open() was split out to provide an obvious place to apply rights(4) if that's something we care to do. Reviewed by: allanjude (earlier version), markj Approved by: so Security: FreeBSD-SA-24:01.bhyveload Security: CVE-2024-25940 (cherry picked from commit 6779d44bd878e3cf4723f7386b11da6508ab5431) (cherry picked from commit 78345dbd7a004e0a6d1b717e7dbc758ae67ca293) --- usr.sbin/bhyveload/bhyveload.c | 85 ++++++++++++++++++++++++++++-------------- 1 file changed, 58 insertions(+), 27 deletions(-) diff --git a/usr.sbin/bhyveload/bhyveload.c b/usr.sbin/bhyveload/bhyveload.c index 1a24b5f0044a..4f15771b514d 100644 --- a/usr.sbin/bhyveload/bhyveload.c +++ b/usr.sbin/bhyveload/bhyveload.c @@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include @@ -93,11 +94,11 @@ __FBSDID("$FreeBSD$"); #define NDISKS 32 -static char *host_base; static struct termios term, oldterm; static int disk_fd[NDISKS]; static int ndisks; static int consin_fd, consout_fd; +static int hostbase_fd = -1; static int need_reinit; @@ -163,42 +164,61 @@ static int cb_open(void *arg, const char *filename, void **hp) { struct cb_file *cf; - char path[PATH_MAX]; + struct stat sb; + int fd, flags; - if (!host_base) + cf = NULL; + fd = -1; + flags = O_RDONLY | O_RESOLVE_BENEATH; + if (hostbase_fd == -1) return (ENOENT); - strlcpy(path, host_base, PATH_MAX); - if (path[strlen(path) - 1] == '/') - path[strlen(path) - 1] = 0; - strlcat(path, filename, PATH_MAX); - cf = malloc(sizeof(struct cb_file)); - if (stat(path, &cf->cf_stat) < 0) { - free(cf); + /* Absolute paths are relative to our hostbase, chop off leading /. */ + if (filename[0] == '/') + filename++; + + /* Lookup of /, use . instead. */ + if (filename[0] == '\0') + filename = "."; + + if (fstatat(hostbase_fd, filename, &sb, AT_RESOLVE_BENEATH) < 0) return (errno); + + if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) + return (EINVAL); + + if (S_ISDIR(sb.st_mode)) + flags |= O_DIRECTORY; + + /* May be opening the root dir */ + fd = openat(hostbase_fd, filename, flags); + if (fd < 0) + return (errno); + + cf = malloc(sizeof(struct cb_file)); + if (cf == NULL) { + close(fd); + return (ENOMEM); } + cf->cf_stat = sb; cf->cf_size = cf->cf_stat.st_size; + if (S_ISDIR(cf->cf_stat.st_mode)) { cf->cf_isdir = 1; - cf->cf_u.dir = opendir(path); - if (!cf->cf_u.dir) - goto out; - *hp = cf; - return (0); - } - if (S_ISREG(cf->cf_stat.st_mode)) { + cf->cf_u.dir = fdopendir(fd); + if (cf->cf_u.dir == NULL) { + close(fd); + free(cf); + return (ENOMEM); + } + } else { + assert(S_ISREG(cf->cf_stat.st_mode)); cf->cf_isdir = 0; - cf->cf_u.fd = open(path, O_RDONLY); - if (cf->cf_u.fd < 0) - goto out; - *hp = cf; - return (0); + cf->cf_u.fd = fd; } - -out: - free(cf); - return (EINVAL); + *hp = cf; + return (0); } static int @@ -712,6 +732,17 @@ usage(void) exit(1); } +static void +hostbase_open(const char *base) +{ + + if (hostbase_fd != -1) + close(hostbase_fd); + hostbase_fd = open(base, O_DIRECTORY | O_PATH); + if (hostbase_fd == -1) + err(EX_OSERR, "open"); +} + int main(int argc, char** argv) { @@ -746,7 +777,7 @@ main(int argc, char** argv) break; case 'h': - host_base = optarg; + hostbase_open(optarg); break; case 'l': From nobody Wed Feb 14 06:05: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 4TZSP32QWLz5B56P; Wed, 14 Feb 2024 06:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSP31Cc4z4RrC; Wed, 14 Feb 2024 06:05:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bf95asAncuiwaojBEM/DwGFCVAHbzBHKPsnMeCyDw8o=; b=UpjHMSfE7XmfekIEoqEoe4lwYxeEpW4RBgMTLX34gcbfomrkav1yLaSk/LNx9wHschzurN iS59qcRbp6Y1nVOWStNzGQmMN+QBLDGHG8WmINQte0CQRnSd1bTE9+PLpxS9xZAVkAKagJ atdrAOQZ9/ZP0yKg5P0tFIAMXWXTlH7vW9SCrljDWm2qgwD1/By1mXoBaCYVjZynZLWRjI A9KoRhAn0TYukArDKX02Nku5kZXV50OFrVoyAigwvZAq3VZAaT2XnASztBVI4AtLpMRQrk OlxWXF1abpoMjWb072WgRbUZht7zIDzqHI8/v+UA0D15P8mFxJ8qkAsNTQYzhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890759; a=rsa-sha256; cv=none; b=ZcQeP22kmcyZUQEU9LV0u3+O8Oui2Afi0IlPTC9QxfLJzb+XLNCzotlwgqY5Rg3gV9Ruer +uSxd2lqVlqVJLW0vf2vRDSVob+KJmGvJ3Nt3KNGlpZMX2FfoYbL1p8WE5X+NEMl9nWbco fh3a/+srDMlKsohH9ZZjXkzd5GY9ZHU+88Sq2TdE1qSAOu77pLhVYQKKwy0fD0fMHZyZSO j9J1+GSF6tjauSDwrtJpv3j8wtYIG4Nr1IDDnLFzlNJTBwXIJ5OJdZ83PwLg/drSBXSmtP f2ul0wPt8ZrbLhd7qeeg9hbMUTW1AWdgY5X6vCAqVaC6huWkvM1B2eYrB6Cvmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bf95asAncuiwaojBEM/DwGFCVAHbzBHKPsnMeCyDw8o=; b=e33v0zrA3bnqrzn97w73ylNsDOEdGSv0WNBPlSxfXmfOnOwX7FMgaxxZn5bPH2ZqtZNbf1 a7GpAOTcoBXP4b/+NV8zJnQSEdx05rkNnsXEoIPSMAHn+QMjlU3xmsVoMB9cESE3Zr5/VG z/hroC8gsqXdgcqMQQiJsqyqgnM3x9wLrgrCz3NQrgygZLcNuieI+4sg48xZZCzNcly8BK JxhUX/BUIbr7uhsOVydrGMaE5MnrqMPMdA4hXNY08oTjUyRWLB6VMdyPWDGB/umHh3yq8G JKl/5IQleGxEqTBxW//q4H7GjaxuVO5Oy45X/1uHvg/KumH9UexUiO9E/HicgQ== 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 4TZSP30Jk3zmtr; Wed, 14 Feb 2024 06:05:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65wrc085173; Wed, 14 Feb 2024 06:05:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65wSH085170; Wed, 14 Feb 2024 06:05:58 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:58 GMT Message-Id: <202402140605.41E65wSH085170@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 154dedade465 - releng/13.2 - EVFILT_SIGNAL: do not use target process pointer on 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 154dedade4654516dfd3737ae56d5b3e3721029a Auto-Submitted: auto-generated The branch releng/13.2 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=154dedade4654516dfd3737ae56d5b3e3721029a commit 154dedade4654516dfd3737ae56d5b3e3721029a Author: Konstantin Belousov AuthorDate: 2023-11-28 12:51:54 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:37:16 +0000 EVFILT_SIGNAL: do not use target process pointer on detach PR: 275286 Approved by: so Security: FreeBSD-EN-24:03.kqueue (cherry picked from commit ed410b78edc53e17b5a3e93ace2adbeb3a734ae9) (cherry picked from commit 55e91944998c128d74b94b9b48a04ef41ff5e9d0) --- sys/kern/kern_sig.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 63d73cf7a909..067e5a0aaa05 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -4209,9 +4209,7 @@ filt_sigattach(struct knote *kn) static void filt_sigdetach(struct knote *kn) { - struct proc *p = kn->kn_ptr.p_proc; - - knlist_remove(p->p_klist, kn, 0); + knlist_remove(kn->kn_knlist, kn, 0); } /* From nobody Wed Feb 14 06:05: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 4TZSP21QGtz5B53f; Wed, 14 Feb 2024 06:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSP20Sh3z4RTl; Wed, 14 Feb 2024 06:05:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wOk3Xerh9eJr9lSNDo49E3KtdlNxU1DToApYzCoAkLI=; b=PZEzVUT7GPW343ZVIGJdifqUxzsrtQ7M7j8GX3KilzbPyHpUCEKwzoeP5W0pzY5ZfdeF/U mmPmfQfNKC72w8Bbm/G6ubjij7hbVpSv/D0yIOnrfLSY8FNTJBRHxFbbwiir9/Fs/SeNT/ e27Wme6guvaHpdQ/vaIZOWarMFueOEfSiq1ErLIsLN4toGSgo5RTlBGB6c0ZCiPl1YAU+Q aJ29NeHmWlRH4yKz9JSMtgkUUsHqHLFaPVk4EI4QZHCbyKBteDfDI3RzZNL1IIm8I/WlwT FdA+0eTOai0B9j+YLfBmewwimFYIG7E8TBR6PXxa+ZMVvq0j51zFtWC/4r6cqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890758; a=rsa-sha256; cv=none; b=ZM7Wxh8HJY63qYx7/rdEtZYG+uUXApDhrZEuHYvHLcz2qLxPxqG8VkbvmnguxRv6+mr5El AVvbrGDbGucZ/BdBT1EqWT6ulXclzIUiIBCrcXZDKL+bhLP6bOl51C/AA3BY6moSiXShQ8 WS+prC3FqSmqDV3Dm+T3XkNEcVj6yBoCWrgfYMr5Rw3zzjAleqDLpnOeKxZUG3uYnJKSqH OwJ/qLLXhEP3kTrjLh51nR6MrlTQlY7Ny9UmL3mq/0ahBebOxaLqEp+mMCUmF/18wLX6S9 wMSFXsFmZiQnuGlFRlNqThnZo5cDDF6MFARsCdX9NwiZKaH3a3YLhshBY7u48Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wOk3Xerh9eJr9lSNDo49E3KtdlNxU1DToApYzCoAkLI=; b=DgCF9cKgiNH3QQcysf782cFFVSjsTFJd5AoLaqapreaQbHCvSukE2jjlzFm1krc62e8cLb jpHSKZflKkm7U3ZtFyaHQsGZXt39XaLwqnQ62in8MGEg5vMG0lO+c08ckHj4Pm6cReHzET qtPP758KfskkhfncekUaYcGC8JzFYqUwDitbkbOhxQ+HpPwhKJfLIXMnYmYHl0kY53aejQ BfdEWktD7bqyUoi2YtcHZWQeRdige4eFiUpHgWcdmTx/ryo3fnJKBhmkAoM/71g2UbPO34 FlmOV3fCEaeYP/IleS6bsqQCwUGmV01Vl2X6jw/PMudf5YWqL293vuwCRYRQwQ== 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 4TZSP16dJqzmkp; Wed, 14 Feb 2024 06:05:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65vCB085113; Wed, 14 Feb 2024 06:05:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65vox085110; Wed, 14 Feb 2024 06:05:57 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:57 GMT Message-Id: <202402140605.41E65vox085110@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 9deb5ca77beb - releng/13.2 - setusercontext(): Apply personal settings only on matching effective UID 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 9deb5ca77bebd98f6b9d1f5640546dc0a15a8deb Auto-Submitted: auto-generated The branch releng/13.2 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=9deb5ca77bebd98f6b9d1f5640546dc0a15a8deb commit 9deb5ca77bebd98f6b9d1f5640546dc0a15a8deb Author: Olivier Certner AuthorDate: 2023-05-30 16:35:08 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:36:19 +0000 setusercontext(): Apply personal settings only on matching effective UID Commit 35305a8dc114 (r211393) added a check on whether 'uid' was equal to getuid() before calling setlogincontext(). Doing so still allows a setuid program to apply resource limits and priorities specified in a user-controlled configuration file ('~/.login_conf') where a non-setuid program could not. Plug the hole by checking instead that the process' effective UID is the target one (which is likely what was meant in the initial commit). PR: 271750 Reviewed by: kib, des Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40351 Approved by: so Security: FreeBSD-EN-24:02.libutil (cherry picked from commit 892654fe9b5a9115815c30a423b8db47185aebbd) Approved by: markj (mentor) (cherry picked from commit 9fcf54d3750e379868e51e4aa7fbf696877ab2ed) --- lib/libutil/login_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c index 38666bc8e3d3..3a4ef4ed6a55 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -548,7 +548,7 @@ setusercontext(login_cap_t *lc, const struct passwd *pwd, uid_t uid, unsigned in /* * Now, we repeat some of the above for the user's private entries */ - if (getuid() == uid && (lc = login_getuserclass(pwd)) != NULL) { + if (geteuid() == uid && (lc = login_getuserclass(pwd)) != NULL) { mymask = setlogincontext(lc, pwd, mymask, flags); login_close(lc); } From nobody Wed Feb 14 06:05: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 4TZSNz6pM9z5B4tX; Wed, 14 Feb 2024 06:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSNz5YRdz4RTk; Wed, 14 Feb 2024 06:05:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nB4eyCSUoXRzsIxpnpNfTTmSBAweIT7Ma7QvXCT7cLo=; b=YENmIsuhqa0U8kL7YSSroCWhNq79UEg6pePhNe/HBxvS5Ml4BZxThT4aG89iphHndwHkx0 cpTBIDdmtBK5VqADLhSkcGT2CHQtZv9crONBcGLnVXHZmSx8Ks7fjvf9HeEw4Pu04y5MZl ko5UqgHIJsbbhW97j55gIZO03yWz+UwcuHZr/NcSlkCIC5Xq6rJpTa3wP/q9TlVmHZCSOf H2XUPucL7tA9xt2BNUnDoPwEsTe0kmUvSBnTT1DgC3RLJdr5jXAZ2Qehx65t6DNRYdFM1g ao3vGluBDo5SUT03mdstt6+naI+6MDMlMfrJwL0Txrom3X+ReSxO+zl4xR1ssw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890755; a=rsa-sha256; cv=none; b=UKvu4DSXCpZh21W9wIqExlFe39VvhDdoGYCNGpGfWzVWirMB//GIiOSJwTVm9Ka0pnVdXw zJ5ycQZ9YR6l8gkd+K7zmtBuIv1ckMabj5TbDO0TEEGX6X6KdU85lCJo44V4uBEUIOT5wP n1bIgC9Rogk/eI7+EYyz6fzlwgrhf2638FP0pyvRjyL9n9EX14ES62tMgtiyUkwATtKR78 QHOlUWcx2eM9ri/T/tM2p4mQ9kxb1g0LnhcaasratyBA74trMo9D4Ir4RV5SdzK2PmKvBt ebQuCaav5XUWcronnFR59TEIoOVhZoH52KyhXyVzjAl0NpOn8E1jB8dvbGfRPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nB4eyCSUoXRzsIxpnpNfTTmSBAweIT7Ma7QvXCT7cLo=; b=O9j6tnCeBQHtC/ou7/ouY/DV6rIHE8/grhSsAesbuQ5KZTYx9tiONVs5XdTsTHHUiq1R32 HGRbdUZRLd3n8ijbRd19ReF0OzWdaROGHdi8DrbtDjZ1KDqOEDpovFjGJtdd49PjPishoK I7pnxasBsC4bqnsgblIoSEt90Kgr/Kk8r4BlIRtKoMMtaOUogDwpehC+0wj5b2/G63MxBj gAxFzRO/svvxfafJ+8lVTL7EmImabk45Wm2rSDyqznFZLqLvRHNMA4pyM4v11MUdWZmtHl KIm3If3Kxe2YJLc6tyP/CozbzS7E1NVptStaePG7Uds5BATsaRGaad1BNqescw== 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 4TZSNz4bqjzmQj; Wed, 14 Feb 2024 06:05:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65tXU085020; Wed, 14 Feb 2024 06:05:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65tiQ085017; Wed, 14 Feb 2024 06:05:55 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:55 GMT Message-Id: <202402140605.41E65tiQ085017@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 922f62fc240f - releng/13.2 - contrib/tzdata: import tzdata 2023d 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 922f62fc240f99868c68a618c264972a40994680 Auto-Submitted: auto-generated The branch releng/13.2 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=922f62fc240f99868c68a618c264972a40994680 commit 922f62fc240f99868c68a618c264972a40994680 Author: Philip Paeps AuthorDate: 2023-12-23 01:51:01 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:34:55 +0000 contrib/tzdata: import tzdata 2023d Changes: https://github.com/eggert/tz/blob/2023d/NEWS Approved by: so Security: FreeBSD-EN-24:01.tzdata (cherry picked from commit eebb9c2caea1584773ae4cec311cee1eea5b1655) (cherry picked from commit 436f43d41cc78aa475015b4618f8787e1ed10000) --- contrib/tzdata/Makefile | 209 ++++++++++++++++++--------- contrib/tzdata/NEWS | 125 ++++++++++++++-- contrib/tzdata/README | 19 +-- contrib/tzdata/africa | 7 - contrib/tzdata/antarctica | 57 +++++++- contrib/tzdata/asia | 6 +- contrib/tzdata/australasia | 8 +- contrib/tzdata/backward | 1 - contrib/tzdata/backzone | 29 ---- contrib/tzdata/checknow.awk | 54 +++++++ contrib/tzdata/checktab.awk | 7 +- contrib/tzdata/europe | 29 +++- contrib/tzdata/leap-seconds.list | 8 +- contrib/tzdata/leapseconds | 8 +- contrib/tzdata/northamerica | 2 +- contrib/tzdata/southamerica | 6 + contrib/tzdata/version | 2 +- contrib/tzdata/zone.tab | 24 ++-- contrib/tzdata/zone1970.tab | 29 ++-- contrib/tzdata/zonenow.tab | 301 +++++++++++++++++++++++++++++++++++++++ 20 files changed, 763 insertions(+), 168 deletions(-) diff --git a/contrib/tzdata/Makefile b/contrib/tzdata/Makefile index 6edc73cc6ffb..4e45f93b915c 100644 --- a/contrib/tzdata/Makefile +++ b/contrib/tzdata/Makefile @@ -1,7 +1,25 @@ # Make and install tzdb code and data. - # This file is in the public domain, so clarified as of # 2009-05-17 by Arthur David Olson. +# Request POSIX conformance; this must be the first non-comment line. +.POSIX: +# On older platforms you may need to scrounge for a POSIX-conforming 'make'. +# For example, on Solaris 10 (2005), use /usr/sfw/bin/gmake or +# /usr/xpg4/bin/make, not /usr/ccs/bin/make. + +# To affect how this Makefile works, you can run a shell script like this: +# +# #!/bin/sh +# make CC='gcc -std=gnu11' "$@" +# +# This example script is appropriate for a pre-2017 GNU/Linux system +# where a non-default setting is needed to support this package's use of C99. +# +# Alternatively, you can simply edit this Makefile to tailor the following +# macro definitions. + +############################################################################### +# Start of macros that one plausibly might want to tailor. # Package name for the code distribution. PACKAGE= tzcode @@ -191,8 +209,9 @@ UTF8_LOCALE= en_US.utf8 # On some hosts, this should have -lintl unless CFLAGS has -DHAVE_GETTEXT=0. LDLIBS= -# Add the following to the end of the "CFLAGS=" line as needed to override -# defaults specified in the source code. "-DFOO" is equivalent to "-DFOO=1". +# Add the following to an uncommented "CFLAGS=" line as needed +# to override defaults specified in the source code or by the system. +# "-DFOO" is equivalent to "-DFOO=1". # -DDEPRECATE_TWO_DIGIT_YEARS for optional runtime warnings about strftime # formats that generate only the last two digits of year numbers # -DEPOCH_LOCAL if the 'time' function returns local time not UT @@ -234,11 +253,16 @@ LDLIBS= # -DHAVE_UNISTD_H=0 if does not work* # -DHAVE_UTMPX_H=0 if does not work* # -Dlocale_t=XXX if your system uses XXX instead of locale_t -# -DPORT_TO_C89 if tzcode should also run on C89 platforms+ +# -DPORT_TO_C89 if tzcode should also run on mostly-C89 platforms+ +# Typically it is better to use a later standard. For example, +# with GCC 4.9.4 (2016), prefer '-std=gnu11' to '-DPORT_TO_C89'. +# Even with -DPORT_TO_C89, the code needs at least one C99 +# feature (integers at least 64 bits wide) and maybe more. # -DRESERVE_STD_EXT_IDS if your platform reserves standard identifiers # with external linkage, e.g., applications cannot define 'localtime'. # -Dssize_t=long on hosts like MS-Windows that lack ssize_t # -DSUPPORT_C89 if the tzcode library should support C89 callers+ +# However, this might trigger latent bugs in C99-or-later callers. # -DSUPPRESS_TZDIR to not prepend TZDIR to file names; this has # security implications and is not recommended for general use # -DTHREAD_SAFE to make localtime.c thread-safe, as POSIX requires; @@ -270,11 +294,15 @@ LDLIBS= # -DZIC_MAX_ABBR_LEN_WO_WARN=3 # (or some other number) to set the maximum time zone abbreviation length # that zic will accept without a warning (the default is 6) +# -g to generate symbolic debugging info +# -Idir to include from directory 'dir' +# -O0 to disable optimization; other -O options to enable more optimization +# -Uname to remove any definition of the macro 'name' # $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking # # * Options marked "*" can be omitted if your compiler is C23 compatible. # * Options marked "+" are obsolescent and are planned to be removed -# once the code assumes C99 or later. +# once the code assumes C99 or later, say in the year 2029. # # Select instrumentation via "make GCC_INSTRUMENT='whatever'". GCC_INSTRUMENT = \ @@ -353,9 +381,11 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # functions to be added to the time conversion library. # "offtime" is like "gmtime" except that it accepts a second (long) argument # that gives an offset to add to the time_t when converting it. -# "timelocal" is equivalent to "mktime". +# I.e., "offtime" is like calling "localtime_rz" with a fixed-offset zone. +# "timelocal" is nearly equivalent to "mktime". # "timeoff" is like "timegm" except that it accepts a second (long) argument # that gives an offset to use when converting to a time_t. +# I.e., "timeoff" is like calling "mktime_z" with a fixed-offset zone. # "posix2time" and "time2posix" are described in an included manual page. # X3J11's work does not describe any of these functions. # These functions may well disappear in future releases of the time @@ -378,7 +408,7 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # # NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put # out by the National Institute of Standards and Technology -# which claims to test C and Posix conformance. If you want to pass PCTS, add +# which claims to test C and POSIX conformance. If you want to pass PCTS, add # -DPCTS # to the end of the "CFLAGS=" line. # @@ -388,13 +418,21 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # 53 as a week number (rather than 52 or 53) for January days before # January's first Monday when a "%V" format is used and January 1 # falls on a Friday, Saturday, or Sunday. +# +# POSIX says CFLAGS defaults to "-O 1". +# Uncomment the following line and edit its contents as needed. -CFLAGS= +#CFLAGS= -O 1 -# Linker flags. Default to $(LFLAGS) for backwards compatibility -# to release 2012h and earlier. -LDFLAGS= $(LFLAGS) +# The name of a POSIX-like library archiver, its flags, C compiler, +# linker flags, and 'make' utility. Ordinarily the defaults suffice. +# The commented-out values are the defaults specified by POSIX 202x/D3. +#AR = ar +#ARFLAGS = -rv +#CC = c17 +#LDFLAGS = +#MAKE = make # For leap seconds, this Makefile uses LEAPSECONDS='-L leapseconds' in # submake command lines. The default is no leap seconds. @@ -418,18 +456,18 @@ ZFLAGS= ZIC_INSTALL= $(ZIC) -d '$(DESTDIR)$(TZDIR)' $(LEAPSECONDS) -# The name of a Posix-compliant 'awk' on your system. +# The name of a POSIX-compliant 'awk' on your system. # mawk 1.3.3 and Solaris 10 /usr/bin/awk do not work. # Also, it is better (though not essential) if 'awk' supports UTF-8, # and unfortunately mawk and busybox awk do not support UTF-8. # Try AWK=gawk or AWK=nawk if your awk has the abovementioned problems. AWK= awk -# The full path name of a Posix-compliant shell, preferably one that supports +# The full path name of a POSIX-compliant shell, preferably one that supports # the Korn shell's 'select' statement as an extension. # These days, Bash is the most popular. # It should be OK to set this to /bin/sh, on platforms where /bin/sh -# lacks 'select' or doesn't completely conform to Posix, but /bin/bash +# lacks 'select' or doesn't completely conform to POSIX, but /bin/bash # is typically nicer if it works. KSHELL= /bin/bash @@ -503,17 +541,16 @@ GZIPFLAGS= -9n DIFF_TZS= diff -u$$(! diff -u -F'^TZ=' - - <>/dev/null >&0 2>&1 \ || echo ' -F^TZ=') -############################################################################### - -#MAKE= make +# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib. +RANLIB= : -cc= cc -CC= $(cc) -DTZDIR='"$(TZDIR)"' +# POSIX prohibits defining or using SHELL. However, csh users on systems +# that use the user shell for Makefile commands may need to define SHELL. +#SHELL= /bin/sh -AR= ar +# End of macros that one plausibly might want to tailor. +############################################################################### -# ':' on typical hosts; 'ranlib' on the ancient hosts that still need ranlib. -RANLIB= : TZCOBJS= zic.o TZDOBJS= zdump.o localtime.o asctime.o strftime.o @@ -543,7 +580,7 @@ YDATA= $(PRIMARY_YDATA) etcetera NDATA= factory TDATA_TO_CHECK= $(YDATA) $(NDATA) backward TDATA= $(YDATA) $(NDATA) $(BACKWARD) -ZONETABLES= zone1970.tab zone.tab +ZONETABLES= zone.tab zone1970.tab zonenow.tab TABDATA= iso3166.tab $(TZDATA_TEXT) $(ZONETABLES) LEAP_DEPS= leapseconds.awk leap-seconds.list TZDATA_ZI_DEPS= ziguard.awk zishrink.awk version $(TDATA) \ @@ -551,7 +588,7 @@ TZDATA_ZI_DEPS= ziguard.awk zishrink.awk version $(TDATA) \ DSTDATA_ZI_DEPS= ziguard.awk $(TDATA) $(PACKRATDATA) $(PACKRATLIST) DATA= $(TDATA_TO_CHECK) backzone iso3166.tab leap-seconds.list \ leapseconds $(ZONETABLES) -AWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk \ +AWK_SCRIPTS= checklinks.awk checknow.awk checktab.awk leapseconds.awk \ ziguard.awk zishrink.awk MISC= $(AWK_SCRIPTS) TZS_YEAR= 2050 @@ -572,7 +609,7 @@ VERSION_DEPS= \ calendars CONTRIBUTING LICENSE Makefile NEWS README SECURITY \ africa antarctica asctime.c asia australasia \ backward backzone \ - checklinks.awk checktab.awk \ + checklinks.awk checknow.awk checktab.awk \ date.1 date.c difftime.c \ etcetera europe factory iso3166.tab \ leap-seconds.list leapseconds.awk localtime.c \ @@ -582,12 +619,7 @@ VERSION_DEPS= \ tzfile.5 tzfile.h tzselect.8 tzselect.ksh \ workman.sh zdump.8 zdump.c zic.8 zic.c \ ziguard.awk zishrink.awk \ - zone.tab zone1970.tab - -# And for the benefit of csh users on systems that assume the user -# shell should be used to handle commands in Makefiles. . . - -SHELL= /bin/sh + zone.tab zone1970.tab zonenow.tab all: tzselect zic zdump libtz.a $(TABDATA) \ vanguard.zi main.zi rearguard.zi @@ -657,6 +689,16 @@ tzdata.zi: $(DATAFORM).zi version zishrink.awk $(DATAFORM).zi >$@.out mv $@.out $@ +tzdir.h: + printf '%s\n' >$@.out \ + '#ifndef TZDEFAULT' \ + '# define TZDEFAULT "$(TZDEFAULT)" /* default zone */' \ + '#endif' \ + '#ifndef TZDIR' \ + '# define TZDIR "$(TZDIR)" /* TZif directory */' \ + '#endif' + mv $@.out $@ + version.h: version VERSION=`cat version` && printf '%s\n' \ 'static char const PKGVERSION[]="($(PACKAGE)) ";' \ @@ -763,7 +805,7 @@ force_tzs: $(TZS_NEW) libtz.a: $(LIBOBJS) rm -f $@ - $(AR) -rc $@ $(LIBOBJS) + $(AR) $(ARFLAGS) $@ $(LIBOBJS) $(RANLIB) $@ date: $(DATEOBJS) @@ -771,26 +813,32 @@ date: $(DATEOBJS) tzselect: tzselect.ksh version VERSION=`cat version` && sed \ - -e 's|#!/bin/bash|#!$(KSHELL)|g' \ - -e 's|AWK=[^}]*|AWK='\''$(AWK)'\''|g' \ - -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \ - -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \ - -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \ - -e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \ - <$@.ksh >$@.out + -e "s'#!/bin/bash'#!"'$(KSHELL)'\' \ + -e s\''\(AWK\)=[^}]*'\''\1=\'\''$(AWK)\'\'\' \ + -e s\''\(PKGVERSION\)=.*'\''\1=\'\''($(PACKAGE)) \'\'\' \ + -e s\''\(REPORT_BUGS_TO\)=.*'\''\1=\'\''$(BUGEMAIL)\'\'\' \ + -e s\''\(TZDIR\)=[^}]*'\''\1=\'\''$(TZDIR)\'\'\' \ + -e s\''\(TZVERSION\)=.*'\''\1=\'"'$$VERSION\\''" \ + <$@.ksh >$@.out chmod +x $@.out mv $@.out $@ check: check_back check_mild check_mild: check_character_set check_white_space check_links \ - check_name_lengths check_slashed_abbrs check_sorted \ + check_name_lengths check_now \ + check_slashed_abbrs check_sorted \ check_tables check_web check_ziguard check_zishrink check_tzs +# True if UTF8_LOCALE does not work; +# otherwise, false but with LC_ALL set to $(UTF8_LOCALE). +UTF8_LOCALE_MISSING = \ + { test ! '$(UTF8_LOCALE)' \ + || ! printf 'A\304\200B\n' \ + | LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 \ + || { LC_ALL='$(UTF8_LOCALE)'; export LC_ALL; false; }; } + check_character_set: $(ENCHILADA) - test ! '$(UTF8_LOCALE)' || \ - ! printf 'A\304\200B\n' | \ - LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 || { \ - LC_ALL='$(UTF8_LOCALE)' && export LC_ALL && \ + $(UTF8_LOCALE_MISSING) || { \ sharp='#' && \ ! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \ $(MISC) $(SOURCES) $(WEB_PAGES) \ @@ -805,12 +853,12 @@ check_character_set: $(ENCHILADA) touch $@ check_white_space: $(ENCHILADA) + $(UTF8_LOCALE_MISSING) || { \ patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \ - ! grep -En "$$pat" \ - $$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list) - ! grep -n '[$s]$$' \ - $$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list) - touch $@ + ! grep -En "$$pat|[$s]\$$" \ + $$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list); \ + } + touch $@ PRECEDES_FILE_NAME = ^(Zone|Link[$s]+[^$s]+)[$s]+ FILE_NAME_COMPONENT_TOO_LONG = $(PRECEDES_FILE_NAME)[^$s]*[^/$s]{15} @@ -851,7 +899,29 @@ check_links: checklinks.awk tzdata.zi -f checklinks.awk tzdata.zi touch $@ -check_tables: checktab.awk $(YDATA) backward $(ZONETABLES) +# Check timestamps from now through 28 years from now, to make sure +# that zonenow.tab contains all sequences of planned timestamps, +# without any duplicate sequences. In theory this might require +# 2800 years but that would take a long time to check. +CHECK_NOW_TIMESTAMP = `./date +%s` +CHECK_NOW_FUTURE_YEARS = 28 +CHECK_NOW_FUTURE_SECS = $(CHECK_NOW_FUTURE_YEARS) '*' 366 '*' 24 '*' 60 '*' 60 +check_now: checknow.awk date tzdata.zi zdump zic zone1970.tab zonenow.tab + rm -fr $@.dir + mkdir $@.dir + ./zic -d $@.dir tzdata.zi + now=$(CHECK_NOW_TIMESTAMP) && \ + future=`expr $(CHECK_NOW_FUTURE_SECS) + $$now` && \ + ./zdump -i -t $$now,$$future \ + $$(find $$PWD/$@.dir/????*/ -type f) \ + >$@.dir/zdump.tab + $(AWK) \ + -v zdump_table=$@.dir/zdump.tab \ + -f checknow.awk zonenow.tab + rm -fr $@.dir + touch $@ + +check_tables: checktab.awk $(YDATA) backward zone.tab zone1970.tab for tab in $(ZONETABLES); do \ test "$$tab" = zone.tab && links='$(BACKWARD)' || links=''; \ $(AWK) -f checktab.awk -v zone_table=$$tab $(YDATA) $$links \ @@ -911,10 +981,10 @@ check_zishrink_posix check_zishrink_right: \ touch $@ clean_misc: - rm -fr check_*.dir + rm -fr check_*.dir typecheck_*.dir rm -f *.o *.out $(TIME_T_ALTERNATIVES) \ check_* core typecheck_* \ - date tzselect version.h zdump zic libtz.a + date tzdir.h tzselect version.h zdump zic libtz.a clean: clean_misc rm -fr *.dir tzdb-*/ rm -f *.zi $(TZS_NEW) @@ -952,12 +1022,18 @@ $(MANTXTS): workman.sh # plus N if GNU ls and touch are available. SET_TIMESTAMP_N = sh -c '\ n=$$0 dest=$$1; shift; \ - touch -cmr `ls -t "$$@" | sed 1q` "$$dest" && \ + <"$$dest" && \ if test $$n != 0 && \ - lsout=`ls -n --time-style="+%s" "$$dest" 2>/dev/null`; then \ + lsout=`ls -nt --time-style="+%s" "$$@" 2>/dev/null`; then \ set x $$lsout && \ - touch -cmd @`expr $$7 + $$n` "$$dest"; \ - else :; fi' + timestamp=`expr $$7 + $$n` && \ + echo "+ touch -md @$$timestamp $$dest" && \ + touch -md @$$timestamp "$$dest"; \ + else \ + newest=`ls -t "$$@" | sed 1q` && \ + echo "+ touch -mr $$newest $$dest" && \ + touch -mr "$$newest" "$$dest"; \ + fi' # If DEST depends on A B C ... in this Makefile, callers should use # $(SET_TIMESTAMP_DEP) DEST A B C ..., for the benefit of any # downstream 'make' that considers equal timestamps to be out of date. @@ -982,8 +1058,12 @@ set-timestamps.out: $(EIGHT_YARDS) rm -f test.out && \ for file in $$files; do \ if git diff --quiet $$file; then \ - time=`git log -1 --format='tformat:%ct' $$file` && \ - touch -cmd @$$time $$file; \ + time=`TZ=UTC0 git log -1 \ + --format='tformat:%cd' \ + --date='format:%Y-%m-%dT%H:%M:%SZ' \ + $$file` && \ + echo "+ touch -md $$time $$file" && \ + touch -md $$time $$file; \ else \ echo >&2 "$$file: warning: does not match repository"; \ fi || exit; \ @@ -1008,7 +1088,8 @@ check_public: $(VERSION_DEPS) rm -fr public.dir mkdir public.dir ln $(VERSION_DEPS) public.dir - cd public.dir && $(MAKE) CFLAGS='$(GCC_DEBUG_FLAGS)' ALL + cd public.dir \ + && $(MAKE) CFLAGS='$(GCC_DEBUG_FLAGS)' TZDIR='$(TZDIR)' ALL for i in $(TDATA_TO_CHECK) public.dir/tzdata.zi \ public.dir/vanguard.zi public.dir/main.zi \ public.dir/rearguard.zi; \ @@ -1139,7 +1220,7 @@ tzdata$(VERSION)-rearguard.tar.gz: rearguard.zi set-timestamps.out sed '1s/$$/-rearguard/' $@.dir/version : The dummy pacificnew pacifies TZUpdater 2.3.1 and earlier. $(CREATE_EMPTY) $@.dir/pacificnew - touch -cmr version $@.dir/version + touch -mr version $@.dir/version LC_ALL=C && export LC_ALL && \ (cd $@.dir && \ tar $(TARFLAGS) -cf - \ @@ -1163,7 +1244,7 @@ tzdata$(VERSION)-tailored.tar.gz: set-timestamps.out `test $(DATAFORM) = vanguard || echo pacificnew` (grep '^#' tzdata.zi && echo && cat $(DATAFORM).zi) \ >$@.dir/etcetera - touch -cmr tzdata.zi $@.dir/etcetera + touch -mr tzdata.zi $@.dir/etcetera sed -n \ -e '/^# *version *\(.*\)/h' \ -e '/^# *ddeps */H' \ @@ -1174,7 +1255,7 @@ tzdata$(VERSION)-tailored.tar.gz: set-timestamps.out -e 's/ /-/g' \ -e 'p' \ $@.dir/version - touch -cmr version $@.dir/version + touch -mr version $@.dir/version links= && \ for file in $(TZDATA_DIST); do \ test -f $@.dir/$$file || links="$$links $$file"; \ @@ -1226,10 +1307,10 @@ zonenames: tzdata.zi asctime.o: private.h tzfile.h date.o: private.h difftime.o: private.h -localtime.o: private.h tzfile.h +localtime.o: private.h tzfile.h tzdir.h strftime.o: private.h tzfile.h zdump.o: version.h -zic.o: private.h tzfile.h version.h +zic.o: private.h tzfile.h tzdir.h version.h .PHONY: ALL INSTALL all .PHONY: check check_mild check_time_t_alternatives diff --git a/contrib/tzdata/NEWS b/contrib/tzdata/NEWS index b54538aa4a82..031ba6a8a250 100644 --- a/contrib/tzdata/NEWS +++ b/contrib/tzdata/NEWS @@ -1,5 +1,109 @@ News for the tz database +Release 2023d - 2023-12-21 20:02:24 -0800 + + Briefly: + Ittoqqortoormiit, Greenland changes time zones on 2024-03-31. + Vostok, Antarctica changed time zones on 2023-12-18. + Casey, Antarctica changed time zones five times since 2020. + Code and data fixes for Palestine timestamps starting in 2072. + A new data file zonenow.tab for timestamps starting now. + + Changes to future timestamps + + Ittoqqortoormiit, Greenland (America/Scoresbysund) joins most of + the rest of Greenland's timekeeping practice on 2024-03-31, by + changing its time zone from -01/+00 to -02/-01 at the same moment + as the spring-forward transition. Its clocks will therefore not + spring forward as previously scheduled. The time zone change + reverts to its common practice before 1981. + + Fix predictions for DST transitions in Palestine in 2072-2075, + correcting a typo introduced in 2023a. + + Changes to past and future timestamps + + Vostok, Antarctica changed to +05 on 2023-12-18. It had been at + +07 (not +06) for years. (Thanks to Zakhary V. Akulov.) + + Change data for Casey, Antarctica to agree with timeanddate.com, + by adding five time zone changes since 2020. Casey is now at +08 + instead of +11. + + Changes to past tm_isdst flags + + Much of Greenland, represented by America/Nuuk, changed its + standard time from -03 to -02 on 2023-03-25, not on 2023-10-28. + This does not affect UTC offsets, only the tm_isdst flag. + (Thanks to Thomas M. Steenholdt.) + + New data file + + A new data file zonenow.tab helps configure applications that use + timestamps dated from now on. This simplifies configuration, + since users choose from a smaller Zone set. The file's format is + experimental and subject to change. + + Changes to code + + localtime.c no longer mishandles TZif files that contain a single + transition into a DST regime. Previously, it incorrectly assumed + DST was in effect before the transition too. (Thanks to Alois + Treindl for debugging help.) + + localtime.c's timeoff no longer collides with OpenBSD 7.4. + + The C code now uses _Generic only if __STDC_VERSION__ says the + compiler is C11 or later. + + tzselect now optionally reads zonenow.tab, to simplify when + configuring only for timestamps dated from now on. + + tzselect no longer creates temporary files. + + tzselect no longer mishandles the following: + + Spaces and most other special characters in BUGEMAIL, PACKAGE, + TZDIR, and VERSION. + + TZ strings when using mawk 1.4.3, which mishandles regular + expressions of the form /X{2,}/. + + ISO 6709 coordinates when using an awk that lacks the GNU + extension of newlines in -v option-arguments. + + Non UTF-8 locales when using an iconv command that lacks the GNU + //TRANSLIT extension. + + zic no longer mishandles data for Palestine after the year 2075. + Previously, it incorrectly omitted post-2075 transitions that are + predicted for just before and just after Ramadan. (Thanks to Ken + Murchison for debugging help.) + + zic now works again on Linux 2.6.16 and 2.6.17 (2006). + (Problem reported by Rune Torgersen.) + + Changes to build procedure + + The Makefile is now more compatible with POSIX: + * It no longer defines AR, CC, CFLAGS, LDFLAGS, and SHELL. + * It no longer uses its own 'cc' in place of CC. + * It now uses ARFLAGS, with default specified by POSIX. + * It does not use LFLAGS incompatibly with POSIX. + * It uses the special .POSIX target. + * It quotes special characters more carefully. + * It no longer mishandles builds in an ISO 8859 locale. + Due to the CC changes, TZDIR is now #defined in a file tzfile.h + built by 'make', not in a $(CC) -D option. Also, TZDEFAULT is + now treated like TZDIR as they have similar roles. + + Changes to commentary + + Limitations and hazards of the optional support for obsolescent + C89 platforms are documented better, along with a tentative + schedule for removing this support. + + Release 2023c - 2023-03-28 12:42:14 -0700 Changes to past and future timestamps @@ -76,11 +180,14 @@ Release 2023a - 2023-03-22 12:39:33 -0700 platform dependent and abbreviations were silently truncated to 16 bytes even when the limit was greater than 16. - The code by default is now designed for C99 or later. To build in - a C89 environment, compile with -DPORT_TO_C89. To support C89 - callers of the tzcode library, compile with -DSUPPORT_C89. The - two new macros are transitional aids planned to be removed in a - future version, when C99 or later will be required. + The code by default is now designed for C99 or later. To build on + a mostly-C89 platform, compile with -DPORT_TO_C89; this should + work on C89 platforms that also support C99 'long long' and + perhaps a few other extensions to C89. To support C89 callers of + tzcode's library, compile with -DSUPPORT_C89; however, this could + trigger latent bugs in C99-or-later callers. The two new macros + are transitional aids planned to be removed in a future version + (say, in 2029), when C99 or later will be required. The code now builds again on pre-C99 platforms, if you compile with -DPORT_TO_C89. This fixes a bug introduced in 2022f. @@ -723,6 +830,8 @@ Release 2021b - 2021-09-24 16:23:00 -0700 them, set the EXPIRES_LINE Makefile variable. If a TZif file uses this new feature it is marked with a new TZif version number 4, a format intended to be documented in a successor to RFC 8536. + The old-format "#expires" comments are now treated solely as + comments and have no effect on the TZif files. zic -L LEAPFILE -r @LO no longer generates an invalid TZif file that omits leap second information for the range LO..B when LO @@ -4302,7 +4411,7 @@ Release 2012j - 2012-11-12 18:34:49 -0800 now uses tz@iana.org rather than the old elsie address. zic -v now complains about abbreviations that are less than 3 - or more than 6 characters, as per Posix. Formerly, it checked + or more than 6 characters, as per POSIX. Formerly, it checked for abbreviations that were more than 3. 'make public' no longer puts its temporary directory under /tmp, @@ -4467,8 +4576,8 @@ Release data2011m - 2011-10-24 21:42:16 +0700 In particular, the typos in comments in the data (2011-11-17 should have been 2011-10-17 as Alan Barrett noted, and spelling of Tiraspol that Tim Parenti noted) have been fixed, and the change for Ukraine has been - made in all 4 Ukrainian zones, rather than just Kiev (again, thanks to - Tim Parenti, and also Denys Gavrysh) + made in all 4 Ukrainian zones, rather than just Europe/Kiev + (again, thanks to Tim Parenti, and also Denys Gavrysh). In addition, I added Europe/Tiraspol to zone.tab. diff --git a/contrib/tzdata/README b/contrib/tzdata/README index 145aacd495b7..edabd2e0690f 100644 --- a/contrib/tzdata/README +++ b/contrib/tzdata/README @@ -11,14 +11,17 @@ changes made by political bodies to time zone boundaries, UTC offsets, and daylight-saving rules. See or the -file tz-link.html for how to acquire the code and data. Once acquired, -read the comments in the file 'Makefile' and make any changes needed -to make things right for your system, especially if you are using some -platform other than GNU/Linux. Then run the following commands, -substituting your desired installation directory for "$HOME/tzdir": - - make TOPDIR=$HOME/tzdir install - $HOME/tzdir/usr/bin/zdump -v America/Los_Angeles +file tz-link.html for how to acquire the code and data. + +Once acquired, read the leading comments in the file "Makefile" +and make any changes needed to make things right for your system, +especially when using a platform other than current GNU/Linux. + +Then run the following commands, substituting your desired +installation directory for "$HOME/tzdir": + + make TOPDIR="$HOME/tzdir" install + "$HOME/tzdir/usr/bin/zdump" -v America/Los_Angeles See the file tz-how-to.html for examples of how to read the data files. diff --git a/contrib/tzdata/africa b/contrib/tzdata/africa index 6cf4e39c8c45..6fae18c0979f 100644 --- a/contrib/tzdata/africa +++ b/contrib/tzdata/africa @@ -285,13 +285,6 @@ Rule Egypt 2007 only - Sep Thu>=1 24:00 0 - # reproduced by other (more accessible) sites[, e.g.,]... # http://elgornal.net/news/news.aspx?id=4699258 -# From Paul Eggert (2014-06-04): -# Sarah El Deeb and Lee Keath of AP report that the Egyptian government says -# the change is because of blackouts in Cairo, even though Ahram Online (cited -# above) says DST had no affect on electricity consumption. There is -# no information about when DST will end this fall. See: -# http://abcnews.go.com/International/wireStory/el-sissi-pushes-egyptians-line-23614833 - # From Steffen Thorsen (2015-04-08): # Egypt will start DST on midnight after Thursday, April 30, 2015. # This is based on a law (no 35) from May 15, 2014 saying it starts the last diff --git a/contrib/tzdata/antarctica b/contrib/tzdata/antarctica index fc603e9996de..763c27253c99 100644 --- a/contrib/tzdata/antarctica +++ b/contrib/tzdata/antarctica @@ -80,6 +80,11 @@ # - 2018 Oct 7 4:00 - 2019 Mar 17 3:00 - 2019 Oct 4 3:00 - 2020 Mar 8 3:00 # and now - 2020 Oct 4 0:01 +# From Paul Eggert (2023-12-20): +# Transitions from 2021 on are taken from: +# https://www.timeanddate.com/time/zone/antarctica/casey +# retrieved at various dates. + # Zone NAME STDOFF RULES FORMAT [UNTIL] Zone Antarctica/Casey 0 - -00 1969 8:00 - +08 2009 Oct 18 2:00 @@ -93,7 +98,12 @@ Zone Antarctica/Casey 0 - -00 1969 8:00 - +08 2019 Oct 4 3:00 11:00 - +11 2020 Mar 8 3:00 8:00 - +08 2020 Oct 4 0:01 - 11:00 - +11 + 11:00 - +11 2021 Mar 14 0:00 + 8:00 - +08 2021 Oct 3 0:01 + 11:00 - +11 2022 Mar 13 0:00 + 8:00 - +08 2022 Oct 2 0:01 + 11:00 - +11 2023 Mar 9 3:00 + 8:00 - +08 Zone Antarctica/Davis 0 - -00 1957 Jan 13 7:00 - +07 1964 Nov 0 - -00 1969 Feb @@ -240,7 +250,50 @@ Zone Antarctica/Troll 0 - -00 2005 Feb 12 # year-round from 1960/61 to 1992 # Vostok, since 1957-12-16, temporarily closed 1994-02/1994-11 -# See Asia/Urumqi. +# From Craig Mundell (1994-12-15): +# http://quest.arc.nasa.gov/antarctica/QA/computers/Directions,Time,ZIP +# Vostok, which is one of the Russian stations, is set on the same +# time as Moscow, Russia. +# +# From Lee Hotz (2001-03-08): +# I queried the folks at Columbia who spent the summer at Vostok and this is +# what they had to say about time there: +# "in the US Camp (East Camp) we have been on New Zealand (McMurdo) +# time, which is 12 hours ahead of GMT. The Russian Station Vostok was +# 6 hours behind that (although only 2 miles away, i.e. 6 hours ahead +# of GMT). This is a time zone I think two hours east of Moscow. The +# natural time zone is in between the two: 8 hours ahead of GMT." +# +# From Paul Eggert (2001-05-04): +# This seems to be hopelessly confusing, so I asked Lee Hotz about it +# in person. He said that some Antarctic locations set their local +# time so that noon is the warmest part of the day, and that this +# changes during the year and does not necessarily correspond to mean +# solar noon. So the Vostok time might have been whatever the clocks +# happened to be during their visit. So we still don't really know what time +# it is at Vostok. +# +# From Zakhary V. Akulov (2023-12-17 22:00:48 +0700): +# ... from December, 18, 2023 00:00 by my decision the local time of +# the Antarctic research base Vostok will correspond to UTC+5. +# (2023-12-19): We constantly interact with Progress base, with company who +# builds new wintering station, with sledge convoys, with aviation - they all +# use UTC+5. Besides, difference between Moscow time is just 2 hours now, not 4. +# (2023-12-19, in response to the question "Has local time at Vostok +# been UTC+6 ever since 1957, or has it changed before?"): No. At least +# since my antarctic career start, 10 years ago, Vostok base has UTC+7. +# (In response to a 2023-12-18 question "from 02:00 to 00:00 today"): This. +# +# From Paul Eggert (2023-12-18): +# For lack of better info, guess Vostok was at +07 from founding through today, +# except when closed. + +# Zone NAME STDOFF RULES FORMAT [UNTIL] +Zone Antarctica/Vostok 0 - -00 1957 Dec 16 + 7:00 - +07 1994 Feb + 0 - -00 1994 Nov + 7:00 - +07 2023 Dec 18 2:00 + 5:00 - +05 # S Africa - year-round bases # Marion Island, -4653+03752 diff --git a/contrib/tzdata/asia b/contrib/tzdata/asia index a29a4dc0c4de..04526c196931 100644 --- a/contrib/tzdata/asia +++ b/contrib/tzdata/asia @@ -655,7 +655,6 @@ Zone Asia/Shanghai 8:05:43 - LMT 1901 8:00 PRC C%sT # Xinjiang time, used by many in western China; represented by Ürümqi / Ürümchi # / Wulumuqi. (Please use Asia/Shanghai if you prefer Beijing time.) -# Vostok base in Antarctica matches this since 1970. Zone Asia/Urumqi 5:50:20 - LMT 1928 6:00 - +06 @@ -3427,6 +3426,9 @@ Zone Asia/Karachi 4:28:12 - LMT 1907 # From Heba Hamad (2023-03-22): # ... summer time will begin in Palestine from Saturday 04-29-2023, # 02:00 AM by 60 minutes forward. +# From Heba Hemad (2023-10-09): +# ... winter time will begin in Palestine from Saturday 10-28-2023, +# 02:00 AM by 60 minutes back. # # From Paul Eggert (2023-03-22): # For now, guess that spring and fall transitions will normally @@ -3548,13 +3550,13 @@ Rule Palestine 2070 only - Oct 4 2:00 0 - Rule Palestine 2071 only - Sep 19 2:00 0 - Rule Palestine 2072 only - Sep 10 2:00 0 - Rule Palestine 2072 only - Oct 15 2:00 1:00 S +Rule Palestine 2072 max - Oct Sat<=30 2:00 0 - Rule Palestine 2073 only - Sep 2 2:00 0 - Rule Palestine 2073 only - Oct 7 2:00 1:00 S Rule Palestine 2074 only - Aug 18 2:00 0 - Rule Palestine 2074 only - Sep 29 2:00 1:00 S Rule Palestine 2075 only - Aug 10 2:00 0 - Rule Palestine 2075 only - Sep 14 2:00 1:00 S -Rule Palestine 2075 max - Oct Sat<=30 2:00 0 - Rule Palestine 2076 only - Jul 25 2:00 0 - Rule Palestine 2076 only - Sep 5 2:00 1:00 S Rule Palestine 2077 only - Jul 17 2:00 0 - diff --git a/contrib/tzdata/australasia b/contrib/tzdata/australasia index 0633a30efd8b..dc98c1e2de17 100644 --- a/contrib/tzdata/australasia +++ b/contrib/tzdata/australasia @@ -391,8 +391,14 @@ Zone Antarctica/Macquarie 0 - -00 1899 Nov # Please note that there will not be any daylight savings time change # in Fiji for 2022-2023.... # https://www.facebook.com/FijianGovernment/posts/pfbid0mmWVTYmTibn66ybpFda75pDcf34SSpoSaskJW5gXwaKo5Sgc7273Q4fXWc6kQV6Hl + +# From Almaz Mingaleev (2023-10-06): +# Cabinet approved the suspension of Daylight Saving and appropriate +# legislative changes will be considered including the repeal of the +# Daylight Saving Act 1998 +# https://www.fiji.gov.fj/Media-Centre/Speeches/English/CABINET-DECISIONS-3-OCTOBER-2023 # -# From Paul Eggert (2022-10-27): +# From Paul Eggert (2023-10-06): # For now, assume DST is suspended indefinitely. # Rule NAME FROM TO - IN ON AT SAVE LETTER/S diff --git a/contrib/tzdata/backward b/contrib/tzdata/backward index 421f2ec6b9f8..65c711b37bf4 100644 --- a/contrib/tzdata/backward +++ b/contrib/tzdata/backward @@ -205,7 +205,6 @@ Link America/Puerto_Rico America/Tortola Link Pacific/Port_Moresby Antarctica/DumontDUrville Link Pacific/Auckland Antarctica/McMurdo Link Asia/Riyadh Antarctica/Syowa -Link Asia/Urumqi Antarctica/Vostok Link Europe/Berlin Arctic/Longyearbyen Link Asia/Riyadh Asia/Aden Link Asia/Qatar Asia/Bahrain diff --git a/contrib/tzdata/backzone b/contrib/tzdata/backzone index 44d81c29e5ae..f45250340493 100644 --- a/contrib/tzdata/backzone +++ b/contrib/tzdata/backzone @@ -963,35 +963,6 @@ Link Antarctica/McMurdo Antarctica/South_Pole Zone Antarctica/Syowa 0 - -00 1957 Jan 29 3:00 - +03 -# Vostok, Antarctica -# -# Vostok, since 1957-12-16, temporarily closed 1994-02/1994-11 -# From Craig Mundell (1994-12-15): -# http://quest.arc.nasa.gov/antarctica/QA/computers/Directions,Time,ZIP -# Vostok, which is one of the Russian stations, is set on the same -# time as Moscow, Russia. -# -# From Lee Hotz (2001-03-08): -# I queried the folks at Columbia who spent the summer at Vostok and this is -# what they had to say about time there: -# "in the US Camp (East Camp) we have been on New Zealand (McMurdo) -# time, which is 12 hours ahead of GMT. The Russian Station Vostok was -# 6 hours behind that (although only 2 miles away, i.e. 6 hours ahead -# of GMT). This is a time zone I think two hours east of Moscow. The -# natural time zone is in between the two: 8 hours ahead of GMT." -# -# From Paul Eggert (2001-05-04): -# This seems to be hopelessly confusing, so I asked Lee Hotz about it -# in person. He said that some Antarctic locations set their local -# time so that noon is the warmest part of the day, and that this -# changes during the year and does not necessarily correspond to mean -# solar noon. So the Vostok time might have been whatever the clocks -# happened to be during their visit. So we still don't really know what time -# it is at Vostok. But we'll guess +06. -# -Zone Antarctica/Vostok 0 - -00 1957 Dec 16 - 6:00 - +06 - # Yemen # Milne says 2:59:54 was the meridian of the saluting battery at Aden, # and that Yemen was at 1:55:56, the meridian of the Hagia Sophia. diff --git a/contrib/tzdata/checknow.awk b/contrib/tzdata/checknow.awk new file mode 100644 index 000000000000..d722c03fd689 --- /dev/null +++ b/contrib/tzdata/checknow.awk @@ -0,0 +1,54 @@ +# Check zonenow.tab for consistency with primary data. + +# Contributed by Paul Eggert. This file is in the public domain. + +function record_zone(zone, data) { + if (zone) { + zone_data[zone] = data + zones[data] = zones[data] " " zone + } +} + +BEGIN { + while (getline >"/dev/stderr" status = 1 @@ -110,7 +110,7 @@ BEGIN { used_max_cc = cc } } - if (used_max <= 1 && comments) { + if (used_max <= 1 && comments && zone_table != "zonenow.tab") { printf "%s:%d: unnecessary comment '%s'\n", \ zone_table, i, comments \ >>"/dev/stderr" @@ -149,7 +149,8 @@ $1 ~ /^#/ { next } if ($3 ~ /%/) rulePercentUsed[$2] = 1 } if (tz && tz ~ /\// && tz !~ /^Etc\//) { - if (!tztab[tz] && FILENAME != "backward") { + if (!tztab[tz] && FILENAME != "backward" \ + && zone_table != "zonenow.tab") { printf "%s: no data for '%s'\n", zone_table, tz \ >>"/dev/stderr" status = 1 diff --git a/contrib/tzdata/europe b/contrib/tzdata/europe index 3907c055140a..27f821e77600 100644 --- a/contrib/tzdata/europe +++ b/contrib/tzdata/europe @@ -1123,6 +1123,23 @@ Zone Atlantic/Faroe -0:27:04 - LMT 1908 Jan 11 # Tórshavn # 2. The shift *from* DST in 2023 happens as normal, but coincides with the # shift to UTC-02 normaltime (people will not change their clocks here). # 3. After this, DST is still observed, but as -02/-01 instead of -03/-02. +# +# From Múte Bourup Egede via Jógvan Svabo Samuelsen (2023-03-15): +# Greenland will not switch to Daylight Saving Time this year, 2023, +# because the standard time for Greenland will change from UTC -3 to UTC -2. +# However, Greenland will change to Daylight Saving Time again in 2024 +# and onwards. + +# From a contributor who wishes to remain anonymous for now (2023-10-29): *** 616 LINES SKIPPED *** From nobody Wed Feb 14 06:05: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 4TZSNp2ljmz5B4yk; Wed, 14 Feb 2024 06:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSNp1sLyz4Rwv; Wed, 14 Feb 2024 06:05:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iPV66TQNVU7Muzl38XgFpa+hWEJhhkHUT+FkfQgyuOQ=; b=kq1T+ZUBNKVbLmApqRNCC4cBfNemdAdyi71PsZSXSjIZuBV7HQfE2dF5EibXisP96qwMfb 1jVBuv0Ce8dok+Istuh/fUTCY/ZSlDqwQE1qV4FPBptAu7TsVd0lomL/ccZCGyk2MWV7ZV YryyAYYs6WDJHPa1x1faQbJ+ppHHw52zir7l+zPNqBYQaqhx9GulS+gZvQML/HiVmt20fL ihJnpHS/zdbW0AIBEOWyv08QW2tpjwFV+Frl0u5BhbwB7r9bbsLLzKYo3dVSrwYSbjpN5F my2chWFmT3NmgTESE4S2DS2auaHsNhoRZeBYucx3DAs+gJdMRiP+Y98BA+AOGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890746; a=rsa-sha256; cv=none; b=kjZq2dl0Eyw1MGVdhphWG2u7QX+kaoRb6M5mQmwcJlR+oYbI6yh5faj/ScatFphHnj5nlE +unv0DHGWAaAKlGmrJcS5x7kR+N1aoqW86zNVTJzOpQ68PDUIbxmdSs2xs4AzuT9tm8Lq9 g5fHbBlWVWRqHzo7nDzUhSOwC5H+DNwCfHV/bqUgxRlPuj+FpmWbe0bHb5gtm1xV3XWHI5 LpRdQuuTEBJPcEbdSl9u6sUN+I8FBb6iv9nuzCH7juaqEPBOyS5VZyFAGJlunLPdGHqmow 4Ttfj8u+ZqGhmK/lftxW0XLwJfZ68cGM0Bm0l/6IeNXxLeZf2LvP1HaHcWL2Og== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iPV66TQNVU7Muzl38XgFpa+hWEJhhkHUT+FkfQgyuOQ=; b=K+fcbhIXy4eTOh+TCXlTaNNKaeBsWTrc3yfukgZgyK5MIG4TRES7U++xslZBWfRBqujB2T mLYc8T9/oqb4O2fUJzrNleDdtyIxNZGZrymCYEdGX8KxqNtOBJlTrLw6un1YepTVHl0O8D Kl9kbHX4o/nJxSFjPNgcD/e50JWxiHZhm6xUpqvePCAA6kGcYo+Ex8xB9UZD9modKZHqVp NTqsyEBhatsgzP/+m93WEpiBASSwM0Em/TnCbiqUVIbvj5cE7LgJjC5ZeRqDYSsh0K1Bqo GYpEARYi3iWDPMD7XiqtYg11C09JXaJSLbqa9GAprtYcGzFo7MFhqsa+V1YlFQ== 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 4TZSNp0qTpzmtp; Wed, 14 Feb 2024 06:05:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65kb4084723; Wed, 14 Feb 2024 06:05:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65kLu084720; Wed, 14 Feb 2024 06:05:46 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:46 GMT Message-Id: <202402140605.41E65kLu084720@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 4d354159d150 - releng/14.0 - jail: Fix information leak. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: 4d354159d150789716d529cf5201c6e1e9d28106 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=4d354159d150789716d529cf5201c6e1e9d28106 commit 4d354159d150789716d529cf5201c6e1e9d28106 Author: Pawel Jakub Dawidek AuthorDate: 2024-01-17 17:43:55 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:53:05 +0000 jail: Fix information leak. There is a lack of proper visibility checking in kern.ttys sysctl handler which leads to information leak about processes outside the current jail. This can be demonstrated with pstat -t: when called from within a jail, it will output all terminal devices including process groups and session leader process IDs: jail# pstat -t | grep pts/ | head LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE pts/2 1920 0 0 192 1984 0 199 0 4132 27245 Oi pts/3 1920 0 0 192 1984 0 199 16 24890 33627 Oi pts/5 0 0 0 0 0 0 0 25 17758 0 G pts/16 0 0 0 0 0 0 0 0 52495 0 G pts/15 0 0 0 0 0 0 0 25 53446 0 G pts/17 0 0 0 0 0 0 0 6702 33230 0 G pts/19 0 0 0 0 0 0 0 14 1116 0 G pts/0 0 0 0 0 0 0 0 0 2241 0 G pts/23 0 0 0 0 0 0 0 20 15639 0 G pts/6 0 0 0 0 0 0 0 0 44062 93792 G jail# pstat -t | grep pts/ | wc -l 85 Devfs does the filtering correctly and we get only one entry: jail# ls /dev/pts/ 2 Approved by: mzaborski, secteam MFC after: 1 week Sponsored by: Fudo Security Approved by: so Security: FreeBSD-SA-24:02.tty Security: CVE-2024-25941 (cherry picked from commit f1d0a0cbecf2c688061f35adea85bfb29c9ec893) (cherry picked from commit a376108029a20f4ce51476d98f2483a7008ce7b5) (cherry picked from commit 41ac0b4ce00bae061164384f23356a4df6e0e695) (cherry picked from commit 215bb03edc541634ec3fd9b01b55d7396b14d9cf) --- sys/kern/tty.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 620233947410..673904570b86 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -44,6 +44,7 @@ #ifdef COMPAT_43TTY #include #endif /* COMPAT_43TTY */ +#include #include #include #include @@ -1307,9 +1308,11 @@ static int sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) { unsigned long lsize; + struct thread *td = curthread; struct xtty *xtlist, *xt; struct tty *tp; - int error; + struct proc *p; + int cansee, error; sx_slock(&tty_list_sx); lsize = tty_list_count * sizeof(struct xtty); @@ -1322,13 +1325,28 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) TAILQ_FOREACH(tp, &tty_list, t_list) { tty_lock(tp); - tty_to_xtty(tp, xt); + if (tp->t_session != NULL) { + p = tp->t_session->s_leader; + PROC_LOCK(p); + cansee = (p_cansee(td, p) == 0); + PROC_UNLOCK(p); + } else { + cansee = !jailed(td->td_ucred); + } + if (cansee) { + tty_to_xtty(tp, xt); + xt++; + } tty_unlock(tp); - xt++; } sx_sunlock(&tty_list_sx); - error = SYSCTL_OUT(req, xtlist, lsize); + lsize = (xt - xtlist) * sizeof(struct xtty); + if (lsize > 0) { + error = SYSCTL_OUT(req, xtlist, lsize); + } else { + error = 0; + } free(xtlist, M_TTY); return (error); } From nobody Wed Feb 14 06:05: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 4TZSP104kkz5B4r6; Wed, 14 Feb 2024 06:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSP06XcSz4RX9; Wed, 14 Feb 2024 06:05:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dv/9rcz4HvdJGVe9zYc9nIuvoT1D4U/n9UR2yxEmpoY=; b=SYLaP2mE/nuq7cF2UpCArLyG7OoPaehgdfAYHqwiQLyGolgRouVrgZW2Sjr3BWKhr+ttiw HlC0G9Uce5WhWq7/AgNrDXTMgBV8QfCVJfalS7ORhKBpVnZT5gZdSwn9qmN+3WkSujuDvr y/FH8gqXly1L2XF9pgF9kN4OkQ9JhgGvbBhspKurCGXMY4TgR6Yvn4QsGYgmS8SSmrEx3S TbLAp7LmXo4npDf97gfoSujwe3ucvAiHKy/SGmc1UnGIgcuf5ftWUB5pxJtSAl6NIWKwgG Orc2eUlaKcGM93z4iTxV/5/sxZm5YVnJWCcc4mv1JRCjrVj1yNELkeM5cfreXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890756; a=rsa-sha256; cv=none; b=qlon7UdV9FZSAdUMagf943KkWgAnZnEn02h31M6ch8YWvibsn66aZy/uGj0beNcj+A9xL6 t0qnyu8vLR4JFrWoCZZlpWjK/wuedLtciSM8yO7uKAGFYlK4OvUYXtnQvPQWfWv7NEVozr FkgK/DuL332WI7WAlepGfxWha/suV0SXyJNM5VG0u98IWbUlOdVEjUXr2i5DO9jUl47Mmn 8ExjL9+ci2NWBDVq62g2Moep3Brhu8Qm0xBcdNeUufDvVZGkYfqUJOKqHqrm8nSqe7AQFY 4SsXIXnfZEJkRaxsu/0+sYxSC6+S203BKr3zm8oJjISCXskXPkP9krSMXAoOvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dv/9rcz4HvdJGVe9zYc9nIuvoT1D4U/n9UR2yxEmpoY=; b=bAuFmPT6G7YjyCKkmGEmFoVfU5731ZG32g2bpkmEm3j24G0HEZ/Rz1QZLBmzItrEm7pyy6 CsG1mReONmZhi06eBmY5Ifixo3COxHvyLSAX3p4ICi4leaDUybNfamJ/4lfo+H8lIbDo1d yFxaIRHaAQy51IR5OSHo9CJi5ilgmnPmq0D4FMebkhtFsAIxSEJ8zeD2UUl/5vmLdO+8ae PmMcJ4h8UJr6yxjq6gIKCINVcIYsFCcqPrLzgfWEl8gDLExcJ3LPu+TYjq4oci+D8BIbdg 32Cdkc1Qoxo2Q1qIddGQkCZY+kbin7J6k8ZNzlO3FoTKMH5JoMQfcKCWaDDwvQ== 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 4TZSP05b56zmkn; Wed, 14 Feb 2024 06:05:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65uNK085059; Wed, 14 Feb 2024 06:05:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65uZj085056; Wed, 14 Feb 2024 06:05:56 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:56 GMT Message-Id: <202402140605.41E65uZj085056@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 3982cad2a7d3 - releng/13.2 - contrib/tzdata: import tzdata 2024a 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 3982cad2a7d3984e03a8c0c9533e571176dcd082 Auto-Submitted: auto-generated The branch releng/13.2 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=3982cad2a7d3984e03a8c0c9533e571176dcd082 commit 3982cad2a7d3984e03a8c0c9533e571176dcd082 Author: Philip Paeps AuthorDate: 2024-02-02 02:01:39 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:35:17 +0000 contrib/tzdata: import tzdata 2024a Changes: https://github.com/eggert/tz/blob/2024a/NEWS Approved by: so Security: FreeBSD-EN-24:01.tzdata (cherry picked from commit 2723c7ffb7f729a1d3f7c59e7db48b0edf3d30a6) (cherry picked from commit f4256acec1c980b7d08e9e526be6d2a7c4751f0b) --- contrib/tzdata/Makefile | 53 ++++-- contrib/tzdata/NEWS | 68 +++++++ contrib/tzdata/africa | 8 +- contrib/tzdata/asia | 174 +++++++++++------- contrib/tzdata/australasia | 14 +- contrib/tzdata/checknow.awk | 2 +- contrib/tzdata/etcetera | 2 +- contrib/tzdata/europe | 29 ++- contrib/tzdata/leap-seconds.list | 373 +++++++++++++-------------------------- contrib/tzdata/leapseconds | 19 +- contrib/tzdata/leapseconds.awk | 11 +- contrib/tzdata/northamerica | 29 +-- contrib/tzdata/southamerica | 5 +- contrib/tzdata/theory.html | 37 ++-- contrib/tzdata/version | 2 +- contrib/tzdata/zishrink.awk | 98 ++++++---- contrib/tzdata/zonenow.tab | 4 +- 17 files changed, 507 insertions(+), 421 deletions(-) diff --git a/contrib/tzdata/Makefile b/contrib/tzdata/Makefile index 4e45f93b915c..d48354c72df4 100644 --- a/contrib/tzdata/Makefile +++ b/contrib/tzdata/Makefile @@ -53,7 +53,7 @@ DATAFORM= main LOCALTIME= Factory -# The POSIXRULES macro controls interpretation of POSIX-like TZ +# The POSIXRULES macro controls interpretation of POSIX-2017.1-like TZ # settings like TZ='EET-2EEST' that lack DST transition rules. # If POSIXRULES is '-', no template is installed; this is the default. # Any other value for POSIXRULES is obsolete and should not be relied on, as: @@ -274,7 +274,7 @@ LDLIBS= # -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory; # the default is system-supplied, typically "/usr/lib/locale" # -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified -# DST transitions for POSIX-style TZ strings lacking them, +# DST transitions for POSIX.1-2017-style TZ strings lacking them, # in the usual case where POSIXRULES is '-'. If not specified, # TZDEFRULESTRING defaults to US rules for future DST transitions. # This mishandles some past timestamps, as US DST rules have changed. @@ -340,9 +340,10 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # guess TM_GMTOFF from other macros; define NO_TM_GMTOFF to suppress this. # Similarly, if your system has a "zone abbreviation" field, define # -DTM_ZONE=tm_zone -# and define NO_TM_ZONE to suppress any guessing. Although these two fields -# not required by POSIX, a future version of POSIX is planned to require them -# and they are widely available on GNU/Linux and BSD systems. +# and define NO_TM_ZONE to suppress any guessing. +# Although these two fields are not required by POSIX.1-2017, +# POSIX 202x/D4 requires them and they are widely available +# on GNU/Linux and BSD systems. # # The next batch of options control support for external variables # exported by tzcode. In practice these variables are less useful @@ -352,7 +353,7 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # # -DHAVE_TZNAME=0 # do not support "tzname" # # -DHAVE_TZNAME=1 # support "tzname", which is defined by system library # # -DHAVE_TZNAME=2 # support and define "tzname" -# # to the "CFLAGS=" line. "tzname" is required by POSIX 1988 and later. +# # to the "CFLAGS=" line. "tzname" is required by POSIX.1-1988 and later. # # If not defined, the code attempts to guess HAVE_TZNAME from other macros. # # Warning: unless time_tz is also defined, HAVE_TZNAME=1 can cause # # crashes when combined with some platforms' standard libraries, @@ -362,8 +363,8 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # # -DUSG_COMPAT=0 # do not support # # -DUSG_COMPAT=1 # support, and variables are defined by system library # # -DUSG_COMPAT=2 # support and define variables -# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by -# # Unix Systems Group code and are required by POSIX 2008 (with XSI) and later. +# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by Unix +# # Systems Group code and are required by POSIX.1-2008 and later (with XSI). # # If not defined, the code attempts to guess USG_COMPAT from other macros. # # # # To support the external variable "altzone", add @@ -427,7 +428,7 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ # The name of a POSIX-like library archiver, its flags, C compiler, # linker flags, and 'make' utility. Ordinarily the defaults suffice. -# The commented-out values are the defaults specified by POSIX 202x/D3. +# The commented-out values are the defaults specified by POSIX.1-202x/D4. #AR = ar #ARFLAGS = -rv #CC = c17 @@ -439,6 +440,12 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \ LEAPSECONDS= +# Where to fetch leap-seconds.list from. +leaplist_URI = \ + https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list +# The file is generated by the IERS Earth Orientation Centre, in Paris. +leaplist_TZ = Europe/Paris + # The zic command and its arguments. zic= ./zic @@ -471,7 +478,8 @@ AWK= awk # is typically nicer if it works. KSHELL= /bin/bash -# Name of curl , used for HTML validation. +# Name of curl , used for HTML validation +# and to fetch leap-seconds.list from upstream. CURL= curl # Name of GNU Privacy Guard , used to sign distributions. @@ -718,6 +726,28 @@ leapseconds: $(LEAP_DEPS) -f leapseconds.awk leap-seconds.list >$@.out mv $@.out $@ +# Awk script to extract a Git-style author from leap-seconds.list comments. +EXTRACT_AUTHOR = \ + author_line { sub(/^.[[:space:]]*/, ""); \ + sub(/:[[:space:]]*/, " <"); \ + printf "%s>\n", $$0; \ + success = 1; \ + exit \ + } \ + /Questions or comments to:/ { author_line = 1 } \ + END { exit !success } + +# Fetch leap-seconds.list from upstream. +fetch-leap-seconds.list: + $(CURL) -OR $(leaplist_URI) + +# Fetch leap-seconds.list from upstream and commit it to the local repository. +commit-leap-seconds.list: fetch-leap-seconds.list + author=$$($(AWK) '$(EXTRACT_AUTHOR)' leap-seconds.list) && \ + date=$$(TZ=$(leaplist_TZ) stat -c%y leap-seconds.list) && \ + git commit --author="$$author" --date="$$date" -m'make $@' \ + leap-seconds.list + # Arguments to pass to submakes of install_data. # They can be overridden by later submake arguments. INSTALLARGS = \ @@ -1315,7 +1345,8 @@ zic.o: private.h tzfile.h tzdir.h version.h .PHONY: ALL INSTALL all .PHONY: check check_mild check_time_t_alternatives .PHONY: check_web check_zishrink -.PHONY: clean clean_misc dummy.zd force_tzs +.PHONY: clean clean_misc commit-leap-seconds.list dummy.zd +.PHONY: fetch-leap-seconds.list force_tzs .PHONY: install install_data maintainer-clean names .PHONY: posix_only posix_right public .PHONY: rearguard_signatures rearguard_signatures_version diff --git a/contrib/tzdata/NEWS b/contrib/tzdata/NEWS index 031ba6a8a250..d407342a50e6 100644 --- a/contrib/tzdata/NEWS +++ b/contrib/tzdata/NEWS @@ -1,5 +1,73 @@ News for the tz database +Release 2024a - 2024-02-01 09:28:56 -0800 + + Briefly: + Kazakhstan unifies on UTC+5 beginning 2024-03-01. + Palestine springs forward a week later after Ramadan. + zic no longer pretends to support indefinite-past DST. + localtime no longer mishandles Ciudad Juárez in 2422. + + Changes to future timestamps + + Kazakhstan unifies on UTC+5. This affects Asia/Almaty and + Asia/Qostanay which together represent the eastern portion of the + country that will transition from UTC+6 on 2024-03-01 at 00:00 to + join the western portion. (Thanks to Zhanbolat Raimbekov.) + + Palestine springs forward a week later than previously predicted + in 2024 and 2025. (Thanks to Heba Hamad.) Change spring-forward + predictions to the second Saturday after Ramadan, not the first; + this also affects other predictions starting in 2039. + + Changes to past timestamps + + Asia/Ho_Chi_Minh's 1955-07-01 transition occurred at 01:00 + not 00:00. (Thanks to Đoàn Trần Công Danh.) + + From 1947 through 1949, Toronto's transitions occurred at 02:00 + not 00:00. (Thanks to Chris Walton.) + + In 1911 Miquelon adopted standard time on June 15, not May 15. + + Changes to code + + The FROM and TO columns of Rule lines can no longer be "minimum" + or an abbreviation of "minimum", because TZif files do not support + DST rules that extend into the indefinite past - although these + rules were supported when TZif files had only 32-bit data, this + stopped working when 64-bit TZif files were introduced in 1995. + This should not be a problem for realistic data, since DST was + first used in the 20th century. As a transition aid, FROM columns + like "minimum" are now diagnosed and then treated as if they were + the year 1900; this should suffice for TZif files on old systems + with only 32-bit time_t, and it is more compatible with bugs in + 2023c-and-earlier localtime.c. (Problem reported by Yoshito + Umaoka.) + + localtime and related functions no longer mishandle some + timestamps that occur about 400 years after a switch to a time + zone with a DST schedule. In 2023d data this problem was visible + for some timestamps in November 2422, November 2822, etc. in + America/Ciudad_Juarez. (Problem reported by Gilmore Davidson.) + + strftime %s now uses tm_gmtoff if available. (Problem and draft + patch reported by Dag-Erling Smørgrav.) + + Changes to build procedure + + The leap-seconds.list file is now copied from the IERS instead of + from its downstream counterpart at NIST, as the IERS version is + now in the public domain too and tends to be more up-to-date. + (Thanks to Martin Burnicki for liaisoning with the IERS.) + + Changes to documentation + + The strftime man page documents which struct tm members affect + which conversion specs, and that tzset is called. (Problems + reported by Robert Elz and Steve Summit.) + + Release 2023d - 2023-12-21 20:02:24 -0800 Briefly: diff --git a/contrib/tzdata/africa b/contrib/tzdata/africa index 6fae18c0979f..92d823a0515c 100644 --- a/contrib/tzdata/africa +++ b/contrib/tzdata/africa @@ -30,6 +30,10 @@ # Milne J. Civil time. Geogr J. 1899 Feb;13(2):173-94. # https://www.jstor.org/stable/1774359 # +# For the 1911/1912 establishment of standard time in French possessions, see: +# Société Française de Physique, Recueil de constantes physiques (1913), +# page 752, 18b. +# # European-style abbreviations are commonly used along the Mediterranean. # For sub-Saharan Africa abbreviations were less standardized. # Previous editions of this database used WAT, CAT, SAT, and EAT @@ -113,7 +117,7 @@ Zone Atlantic/Cape_Verde -1:34:04 - LMT 1912 Jan 01 2:00u # Praia # Chad # Zone NAME STDOFF RULES FORMAT [UNTIL] -Zone Africa/Ndjamena 1:00:12 - LMT 1912 # N'Djamena +Zone Africa/Ndjamena 1:00:12 - LMT 1912 Jan 1 # N'Djamena 1:00 - WAT 1979 Oct 14 1:00 1:00 WAST 1980 Mar 8 1:00 - WAT @@ -139,7 +143,7 @@ Zone Africa/Ndjamena 1:00:12 - LMT 1912 # N'Djamena # Inaccessible, Nightingale: uninhabited # Zone NAME STDOFF RULES FORMAT [UNTIL] -Zone Africa/Abidjan -0:16:08 - LMT 1912 +Zone Africa/Abidjan -0:16:08 - LMT 1912 Jan 1 0:00 - GMT ############################################################################### diff --git a/contrib/tzdata/asia b/contrib/tzdata/asia index 04526c196931..05683b9ebaa3 100644 --- a/contrib/tzdata/asia +++ b/contrib/tzdata/asia @@ -2457,18 +2457,33 @@ Zone Asia/Amman 2:23:44 - LMT 1931 # effective December 21st, 2018.... # http://adilet.zan.kz/rus/docs/P1800000817 (russian language). +# From Zhanbolat Raimbekov (2024-01-19): +# Kazakhstan (all parts) switching to UTC+5 on March 1, 2024 +# https://www.gov.kz/memleket/entities/mti/press/news/details/688998?lang=ru +# [in Russian] +# (2024-01-20): https://primeminister.kz/ru/decisions/19012024-20 +# +# From Alexander Krivenyshev (2024-01-19): +# According to a different news and the official web site for the Ministry of +# Trade and Integration of the Republic of Kazakhstan: +# https://en.inform.kz/news/kazakhstan-to-switch-to-single-hour-zone-mar-1-54ad0b/ + # Zone NAME STDOFF RULES FORMAT [UNTIL] # # Almaty (formerly Alma-Ata), representing most locations in Kazakhstan -# This includes KZ-AKM, KZ-ALA, KZ-ALM, KZ-AST, KZ-BAY, KZ-VOS, KZ-ZHA, -# KZ-KAR, KZ-SEV, KZ-PAV, and KZ-YUZ. +# This includes Abai/Abay (ISO 3166-2 code KZ-10), Aqmola/Akmola (KZ-11), +# Almaty (KZ-19), Almaty city (KZ-75), Astana city (KZ-71), +# East Kazkhstan (KZ-63), Jambyl/Zhambyl (KZ-31), Jetisu/Zhetysu (KZ-33), +# Karaganda (KZ-35), North Kazakhstan (KZ-59), Pavlodar (KZ-55), +# Shyumkent city (KZ-79), Turkistan (KZ-61), and Ulytau (KZ-62). Zone Asia/Almaty 5:07:48 - LMT 1924 May 2 # or Alma-Ata 5:00 - +05 1930 Jun 21 6:00 RussiaAsia +06/+07 1991 Mar 31 2:00s 5:00 RussiaAsia +05/+06 1992 Jan 19 2:00s 6:00 RussiaAsia +06/+07 2004 Oct 31 2:00s - 6:00 - +06 -# Qyzylorda (aka Kyzylorda, Kizilorda, Kzyl-Orda, etc.) (KZ-KZY) + 6:00 - +06 2024 Mar 1 0:00 + 5:00 - +05 +# Qyzylorda (aka Kyzylorda, Kizilorda, Kzyl-Orda, etc.) (KZ-43) Zone Asia/Qyzylorda 4:21:52 - LMT 1924 May 2 4:00 - +04 1930 Jun 21 5:00 - +05 1981 Apr 1 @@ -2481,8 +2496,7 @@ Zone Asia/Qyzylorda 4:21:52 - LMT 1924 May 2 5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s 6:00 - +06 2018 Dec 21 0:00 5:00 - +05 -# -# Qostanay (aka Kostanay, Kustanay) (KZ-KUS) +# Qostanay (aka Kostanay, Kustanay) (KZ-39) # The 1991/2 rules are unclear partly because of the 1997 Turgai # reorganization. Zone Asia/Qostanay 4:14:28 - LMT 1924 May 2 @@ -2493,9 +2507,9 @@ Zone Asia/Qostanay 4:14:28 - LMT 1924 May 2 5:00 RussiaAsia +05/+06 1991 Mar 31 2:00s 4:00 RussiaAsia +04/+05 1992 Jan 19 2:00s 5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s - 6:00 - +06 - -# Aqtöbe (aka Aktobe, formerly Aktyubinsk) (KZ-AKT) + 6:00 - +06 2024 Mar 1 0:00 + 5:00 - +05 +# Aqtöbe (aka Aktobe, formerly Aktyubinsk) (KZ-15) Zone Asia/Aqtobe 3:48:40 - LMT 1924 May 2 4:00 - +04 1930 Jun 21 5:00 - +05 1981 Apr 1 @@ -2505,7 +2519,7 @@ Zone Asia/Aqtobe 3:48:40 - LMT 1924 May 2 4:00 RussiaAsia +04/+05 1992 Jan 19 2:00s 5:00 RussiaAsia +05/+06 2004 Oct 31 2:00s 5:00 - +05 -# Mangghystaū (KZ-MAN) +# Mangghystaū (KZ-47) # Aqtau was not founded until 1963, but it represents an inhabited region, # so include timestamps before 1963. Zone Asia/Aqtau 3:21:04 - LMT 1924 May 2 @@ -2517,7 +2531,7 @@ Zone Asia/Aqtau 3:21:04 - LMT 1924 May 2 5:00 RussiaAsia +05/+06 1994 Sep 25 2:00s 4:00 RussiaAsia +04/+05 2004 Oct 31 2:00s 5:00 - +05 -# Atyraū (KZ-ATY) is like Mangghystaū except it switched from +# Atyraū (KZ-23) is like Mangghystaū except it switched from # +04/+05 to +05/+06 in spring 1999, not fall 1994. Zone Asia/Atyrau 3:27:44 - LMT 1924 May 2 3:00 - +03 1930 Jun 21 @@ -2528,7 +2542,7 @@ Zone Asia/Atyrau 3:27:44 - LMT 1924 May 2 5:00 RussiaAsia +05/+06 1999 Mar 28 2:00s 4:00 RussiaAsia +04/+05 2004 Oct 31 2:00s 5:00 - +05 -# West Kazakhstan (KZ-ZAP) +# West Kazakhstan (KZ-27) # From Paul Eggert (2016-03-18): # The 1989 transition is from USSR act No. 227 (1989-03-14). Zone Asia/Oral 3:25:24 - LMT 1924 May 2 # or Ural'sk @@ -3430,19 +3444,26 @@ Zone Asia/Karachi 4:28:12 - LMT 1907 # ... winter time will begin in Palestine from Saturday 10-28-2023, # 02:00 AM by 60 minutes back. # -# From Paul Eggert (2023-03-22): +# From Heba Hamad (2024-01-25): +# the summer time for the years 2024,2025 will begin in Palestine +# from Saturday at 02:00 AM by 60 minutes forward as shown below: +# year date +# 2024 2024-04-20 +# 2025 2025-04-12 +# +# From Paul Eggert (2024-01-25): # For now, guess that spring and fall transitions will normally # continue to use 2022's rules, that during DST Palestine will switch # to standard time at 02:00 the last Saturday before Ramadan and back -# to DST at 02:00 the first Saturday after Ramadan, and that +# to DST at 02:00 the second Saturday after Ramadan, and that # if the normal spring-forward or fall-back transition occurs during # Ramadan the former is delayed and the latter advanced. # To implement this, I predicted Ramadan-oriented transition dates for -# 2023 through 2086 by running the following program under GNU Emacs 28.2, +# 2026 through 2086 by running the following program under GNU Emacs 29.2, # with the results integrated by hand into the table below. # Predictions after 2086 are approximated without Ramadan. # -# (let ((islamic-year 1444)) +# (let ((islamic-year 1447)) # (require 'cal-islam) # (while (< islamic-year 1510) # (let ((a (calendar-islamic-to-absolute (list 9 1 islamic-year))) @@ -3451,6 +3472,7 @@ Zone Asia/Karachi 4:28:12 - LMT 1907 # (while (/= saturday (mod (setq a (1- a)) 7))) # (while (/= saturday (mod b 7)) # (setq b (1+ b))) +# (setq b (+ 7 b)) # (setq a (calendar-gregorian-from-absolute a)) # (setq b (calendar-gregorian-from-absolute b)) # (insert @@ -3501,84 +3523,84 @@ Rule Palestine 2021 only - Oct 29 1:00 0 - Rule Palestine 2022 only - Mar 27 0:00 1:00 S Rule Palestine 2022 2035 - Oct Sat<=30 2:00 0 - Rule Palestine 2023 only - Apr 29 2:00 1:00 S -Rule Palestine 2024 only - Apr 13 2:00 1:00 S -Rule Palestine 2025 only - Apr 5 2:00 1:00 S +Rule Palestine 2024 only - Apr 20 2:00 1:00 S +Rule Palestine 2025 only - Apr 12 2:00 1:00 S Rule Palestine 2026 2054 - Mar Sat<=30 2:00 1:00 S Rule Palestine 2036 only - Oct 18 2:00 0 - Rule Palestine 2037 only - Oct 10 2:00 0 - Rule Palestine 2038 only - Sep 25 2:00 0 - Rule Palestine 2039 only - Sep 17 2:00 0 - -Rule Palestine 2039 only - Oct 22 2:00 1:00 S -Rule Palestine 2039 2067 - Oct Sat<=30 2:00 0 - Rule Palestine 2040 only - Sep 1 2:00 0 - -Rule Palestine 2040 only - Oct 13 2:00 1:00 S +Rule Palestine 2040 only - Oct 20 2:00 1:00 S +Rule Palestine 2040 2067 - Oct Sat<=30 2:00 0 - Rule Palestine 2041 only - Aug 24 2:00 0 - -Rule Palestine 2041 only - Sep 28 2:00 1:00 S +Rule Palestine 2041 only - Oct 5 2:00 1:00 S Rule Palestine 2042 only - Aug 16 2:00 0 - -Rule Palestine 2042 only - Sep 20 2:00 1:00 S +Rule Palestine 2042 only - Sep 27 2:00 1:00 S Rule Palestine 2043 only - Aug 1 2:00 0 - -Rule Palestine 2043 only - Sep 12 2:00 1:00 S +Rule Palestine 2043 only - Sep 19 2:00 1:00 S Rule Palestine 2044 only - Jul 23 2:00 0 - -Rule Palestine 2044 only - Aug 27 2:00 1:00 S +Rule Palestine 2044 only - Sep 3 2:00 1:00 S Rule Palestine 2045 only - Jul 15 2:00 0 - -Rule Palestine 2045 only - Aug 19 2:00 1:00 S +Rule Palestine 2045 only - Aug 26 2:00 1:00 S Rule Palestine 2046 only - Jun 30 2:00 0 - -Rule Palestine 2046 only - Aug 11 2:00 1:00 S +Rule Palestine 2046 only - Aug 18 2:00 1:00 S Rule Palestine 2047 only - Jun 22 2:00 0 - -Rule Palestine 2047 only - Jul 27 2:00 1:00 S +Rule Palestine 2047 only - Aug 3 2:00 1:00 S Rule Palestine 2048 only - Jun 6 2:00 0 - -Rule Palestine 2048 only - Jul 18 2:00 1:00 S +Rule Palestine 2048 only - Jul 25 2:00 1:00 S Rule Palestine 2049 only - May 29 2:00 0 - -Rule Palestine 2049 only - Jul 3 2:00 1:00 S +Rule Palestine 2049 only - Jul 10 2:00 1:00 S Rule Palestine 2050 only - May 21 2:00 0 - -Rule Palestine 2050 only - Jun 25 2:00 1:00 S +Rule Palestine 2050 only - Jul 2 2:00 1:00 S Rule Palestine 2051 only - May 6 2:00 0 - -Rule Palestine 2051 only - Jun 17 2:00 1:00 S +Rule Palestine 2051 only - Jun 24 2:00 1:00 S Rule Palestine 2052 only - Apr 27 2:00 0 - -Rule Palestine 2052 only - Jun 1 2:00 1:00 S +Rule Palestine 2052 only - Jun 8 2:00 1:00 S Rule Palestine 2053 only - Apr 12 2:00 0 - -Rule Palestine 2053 only - May 24 2:00 1:00 S +Rule Palestine 2053 only - May 31 2:00 1:00 S Rule Palestine 2054 only - Apr 4 2:00 0 - -Rule Palestine 2054 only - May 16 2:00 1:00 S -Rule Palestine 2055 only - May 1 2:00 1:00 S -Rule Palestine 2056 only - Apr 22 2:00 1:00 S -Rule Palestine 2057 only - Apr 7 2:00 1:00 S -Rule Palestine 2058 max - Mar Sat<=30 2:00 1:00 S +Rule Palestine 2054 only - May 23 2:00 1:00 S +Rule Palestine 2055 only - May 8 2:00 1:00 S +Rule Palestine 2056 only - Apr 29 2:00 1:00 S +Rule Palestine 2057 only - Apr 14 2:00 1:00 S +Rule Palestine 2058 only - Apr 6 2:00 1:00 S +Rule Palestine 2059 max - Mar Sat<=30 2:00 1:00 S Rule Palestine 2068 only - Oct 20 2:00 0 - Rule Palestine 2069 only - Oct 12 2:00 0 - Rule Palestine 2070 only - Oct 4 2:00 0 - Rule Palestine 2071 only - Sep 19 2:00 0 - Rule Palestine 2072 only - Sep 10 2:00 0 - -Rule Palestine 2072 only - Oct 15 2:00 1:00 S +Rule Palestine 2072 only - Oct 22 2:00 1:00 S Rule Palestine 2072 max - Oct Sat<=30 2:00 0 - Rule Palestine 2073 only - Sep 2 2:00 0 - -Rule Palestine 2073 only - Oct 7 2:00 1:00 S +Rule Palestine 2073 only - Oct 14 2:00 1:00 S Rule Palestine 2074 only - Aug 18 2:00 0 - -Rule Palestine 2074 only - Sep 29 2:00 1:00 S +Rule Palestine 2074 only - Oct 6 2:00 1:00 S Rule Palestine 2075 only - Aug 10 2:00 0 - -Rule Palestine 2075 only - Sep 14 2:00 1:00 S +Rule Palestine 2075 only - Sep 21 2:00 1:00 S Rule Palestine 2076 only - Jul 25 2:00 0 - -Rule Palestine 2076 only - Sep 5 2:00 1:00 S +Rule Palestine 2076 only - Sep 12 2:00 1:00 S Rule Palestine 2077 only - Jul 17 2:00 0 - -Rule Palestine 2077 only - Aug 28 2:00 1:00 S +Rule Palestine 2077 only - Sep 4 2:00 1:00 S Rule Palestine 2078 only - Jul 9 2:00 0 - -Rule Palestine 2078 only - Aug 13 2:00 1:00 S +Rule Palestine 2078 only - Aug 20 2:00 1:00 S Rule Palestine 2079 only - Jun 24 2:00 0 - -Rule Palestine 2079 only - Aug 5 2:00 1:00 S +Rule Palestine 2079 only - Aug 12 2:00 1:00 S Rule Palestine 2080 only - Jun 15 2:00 0 - -Rule Palestine 2080 only - Jul 20 2:00 1:00 S +Rule Palestine 2080 only - Jul 27 2:00 1:00 S Rule Palestine 2081 only - Jun 7 2:00 0 - -Rule Palestine 2081 only - Jul 12 2:00 1:00 S +Rule Palestine 2081 only - Jul 19 2:00 1:00 S Rule Palestine 2082 only - May 23 2:00 0 - -Rule Palestine 2082 only - Jul 4 2:00 1:00 S +Rule Palestine 2082 only - Jul 11 2:00 1:00 S Rule Palestine 2083 only - May 15 2:00 0 - -Rule Palestine 2083 only - Jun 19 2:00 1:00 S +Rule Palestine 2083 only - Jun 26 2:00 1:00 S Rule Palestine 2084 only - Apr 29 2:00 0 - -Rule Palestine 2084 only - Jun 10 2:00 1:00 S +Rule Palestine 2084 only - Jun 17 2:00 1:00 S Rule Palestine 2085 only - Apr 21 2:00 0 - -Rule Palestine 2085 only - Jun 2 2:00 1:00 S +Rule Palestine 2085 only - Jun 9 2:00 1:00 S Rule Palestine 2086 only - Apr 13 2:00 0 - -Rule Palestine 2086 only - May 18 2:00 1:00 S +Rule Palestine 2086 only - May 25 2:00 1:00 S # Zone NAME STDOFF RULES FORMAT [UNTIL] Zone Asia/Gaza 2:17:52 - LMT 1900 Oct @@ -3606,7 +3628,7 @@ Zone Asia/Hebron 2:20:23 - LMT 1900 Oct # Philippines -# From Paul Eggert (2018-11-18): +# From Paul Eggert (2024-01-21): # The Spanish initially used American (west-of-Greenwich) time. # It is unknown what time Manila kept when the British occupied it from # 1762-10-06 through 1764-04; for now assume it kept American time. @@ -3614,7 +3636,7 @@ Zone Asia/Hebron 2:20:23 - LMT 1900 Oct # Philippines, issued a proclamation announcing that 1844-12-30 was to # be immediately followed by 1845-01-01; see R.H. van Gent's # History of the International Date Line -# https://www.staff.science.uu.nl/~gent0113/idl/idl_philippines.htm +# https://webspace.science.uu.nl/~gent0113/idl/idl_philippines.htm # The rest of the data entries are from Shanks & Pottenger. # From Jesper Nørgaard Welen (2006-04-26): @@ -4041,7 +4063,8 @@ Zone Asia/Tashkent 4:37:11 - LMT 1924 May 2 # The English-language name of Vietnam's most populous city is "Ho Chi Minh # City"; use Ho_Chi_Minh below to avoid a name of more than 14 characters. -# From Paul Eggert (2022-07-27) after a 2014 heads-up from Trần Ngọc Quân: +# From Paul Eggert (2024-01-14) after a 2014 heads-up from Trần Ngọc Quân +# and a 2024-01-14 heads-up from Đoàn Trần Công Danh: # Trần Tiến Bình's authoritative book "Lịch Việt Nam: thế kỷ XX-XXI (1901-2100)" # (Nhà xuất bản Văn Hoá - Thông Tin, Hanoi, 2005), pp 49-50, # is quoted verbatim in: @@ -4071,14 +4094,35 @@ Zone Asia/Tashkent 4:37:11 - LMT 1924 May 2 # # Trần cites the following sources; it's unclear which supplied the info above. # -# Hoàng Xuân Hãn: "Lịch và lịch Việt Nam". Tập san Khoa học Xã hội, -# No. 9, Paris, February 1982. +# Hoàng Xuân Hãn: "Lịch và lịch Việt Nam". Tập san Khoa học Xã hội, +# No. 9, Paris, February 1982. +# +# Lê Thành Lân: "Lịch và niên biểu lịch sử hai mươi thế kỷ (0001-2010)", +# NXB Thống kê, Hanoi, 2000. # -# Lê Thành Lân: "Lịch và niên biểu lịch sử hai mươi thế kỷ (0001-2010)", -# NXB Thống kê, Hanoi, 2000. +# Lê Thành Lân: "Lịch hai thế kỷ (1802-2010) và các lịch vĩnh cửu", +# NXB Thuận Hoá, Huế, 1995. # -# Lê Thành Lân: "Lịch hai thế kỷ (1802-2010) và các lịch vĩnh cửu", -# NXB Thuận Hoá, Huế, 1995. +# Here is the decision for the September 1945 transition: +# Võ Nguyên Giáp, Việt Nam Dân Quốc Công Báo, No. 1 (1945-09-29), page 13 +# http://baochi.nlv.gov.vn/baochi/cgi-bin/baochi?a=d&d=JwvzO19450929.2.5&dliv=none +# It says that on 1945-09-01 at 24:00, Vietnam moved back two hours, to +07. +# It also mentions a 1945-03-29 decree (by a Japanese Goveror-General) +# to set the time zone to +09, but does not say whether that decree +# merely legalized an earlier change to +09. +# +# July 1955 transition: +# Ngô Đình Diệm, Công Báo Việt Nam, No. 92 (1955-07-02), page 1780-1781 +# Ordinance (Dụ) No. 46 (1955-06-25) +# http://ddsnext.crl.edu/titles/32341#?c=0&m=29&s=0&cv=4&r=0&xywh=-89%2C342%2C1724%2C1216 +# It says that on 1955-07-01 at 01:00, South Vietnam moved back 1 hour (to +07). +# +# December 1959 transition: +# Ngô Đình Diệm, Công Báo Việt Nam Cộng Hòa, 1960 part 1 (1960-01-02), page 62 +# Decree (Sắc lệnh) No. 362-TTP (1959-12-30) +# http://ddsnext.crl.edu/titles/32341#?c=0&m=138&s=0&cv=793&r=0&xywh=-54%2C1504%2C1705%2C1202 +# It says that on 1959-12-31 at 23:00, South Vietnam moved forward 1 hour (to +08). + # Zone NAME STDOFF RULES FORMAT [UNTIL] #STDOFF 7:06:30.13 @@ -4086,9 +4130,9 @@ Zone Asia/Ho_Chi_Minh 7:06:30 - LMT 1906 Jul 1 7:06:30 - PLMT 1911 May 1 # Phù Liễn MT 7:00 - +07 1942 Dec 31 23:00 8:00 - +08 1945 Mar 14 23:00 - 9:00 - +09 1945 Sep 2 + 9:00 - +09 1945 Sep 1 24:00 7:00 - +07 1947 Apr 1 - 8:00 - +08 1955 Jul 1 + 8:00 - +08 1955 Jul 1 01:00 7:00 - +07 1959 Dec 31 23:00 8:00 - +08 1975 Jun 13 7:00 - +07 diff --git a/contrib/tzdata/australasia b/contrib/tzdata/australasia index dc98c1e2de17..0e9c2592e4be 100644 --- a/contrib/tzdata/australasia +++ b/contrib/tzdata/australasia @@ -420,11 +420,11 @@ Zone Pacific/Fiji 11:55:44 - LMT 1915 Oct 26 # Suva # French Polynesia # Zone NAME STDOFF RULES FORMAT [UNTIL] -Zone Pacific/Gambier -8:59:48 - LMT 1912 Oct # Rikitea +Zone Pacific/Gambier -8:59:48 - LMT 1912 Oct 1 # Rikitea -9:00 - -09 -Zone Pacific/Marquesas -9:18:00 - LMT 1912 Oct +Zone Pacific/Marquesas -9:18:00 - LMT 1912 Oct 1 -9:30 - -0930 -Zone Pacific/Tahiti -9:58:16 - LMT 1912 Oct # Papeete +Zone Pacific/Tahiti -9:58:16 - LMT 1912 Oct 1 # Papeete -10:00 - -10 # Clipperton (near North America) is administered from French Polynesia; # it is uninhabited. @@ -802,7 +802,7 @@ Zone Pacific/Apia 12:33:04 - LMT 1892 Jul 5 # Solomon Is # excludes Bougainville, for which see Papua New Guinea # Zone NAME STDOFF RULES FORMAT [UNTIL] -Zone Pacific/Guadalcanal 10:39:48 - LMT 1912 Oct # Honiara +Zone Pacific/Guadalcanal 10:39:48 - LMT 1912 Oct 1 # Honiara 11:00 - +11 # Tokelau @@ -963,6 +963,10 @@ Zone Pacific/Efate 11:13:16 - LMT 1912 Jan 13 # Vila # Milne J. Civil time. Geogr J. 1899 Feb;13(2):173-94. # https://www.jstor.org/stable/1774359 # +# For the 1911/1912 establishment of standard time in French possessions, see: +# Société Française de Physique, Recueil de constantes physiques (1913), +# page 752, 18b. +# # A reliable and entertaining source about time zones is # Derek Howse, Greenwich time and longitude, Philip Wilson Publishers (1997). # @@ -2039,7 +2043,7 @@ Zone Pacific/Efate 11:13:16 - LMT 1912 Jan 13 # Vila # ordaining - by a masterpiece of diplomatic flattery - that # the Fourth of July should be celebrated twice in that year." # This happened in 1892, according to the Evening News (Sydney) of 1892-07-20. -# https://www.staff.science.uu.nl/~gent0113/idl/idl.htm +# https://webspace.science.uu.nl/~gent0113/idl/idl_alaska_samoa.htm # Although Shanks & Pottenger says they both switched to UT -11:30 # in 1911, and to -11 in 1950. many earlier sources give -11 diff --git a/contrib/tzdata/checknow.awk b/contrib/tzdata/checknow.awk index d722c03fd689..57ff3c02e789 100644 --- a/contrib/tzdata/checknow.awk +++ b/contrib/tzdata/checknow.awk @@ -45,7 +45,7 @@ END { for (zone in zone_data) { data = zone_data[zone] if (!zonenow[data]) { - printf "checknow.tab should have one of:%s\n", zones[data] + printf "zonenow.tab should have one of:%s\n", zones[data] zonenow[data] = zone # This suppresses duplicate diagnostics. status = 1 } diff --git a/contrib/tzdata/etcetera b/contrib/tzdata/etcetera index 865a220c1f4b..29fbed9b9290 100644 --- a/contrib/tzdata/etcetera +++ b/contrib/tzdata/etcetera @@ -5,7 +5,7 @@ # These entries are for uses not otherwise covered by the tz database. # Their main practical use is for platforms like Android that lack -# support for POSIX-style TZ strings. On such platforms these entries +# support for POSIX.1-2017-style TZ strings. On such platforms these entries # can be useful if the timezone database is wrong or if a ship or # aircraft at sea is not in a timezone. diff --git a/contrib/tzdata/europe b/contrib/tzdata/europe index 27f821e77600..c6b5270316b9 100644 --- a/contrib/tzdata/europe +++ b/contrib/tzdata/europe @@ -990,9 +990,34 @@ Zone Europe/Sofia 1:33:16 - LMT 1880 # Czech Republic (Czechia) # Slovakia # -# From Paul Eggert (2018-04-15): -# The source for Czech data is: Kdy začíná a končí letní čas. 2018-04-15. +# From Ivan Benovic (2024-01-30): +# https://www.slov-lex.sk/pravne-predpisy/SK/ZZ/1946/54/ +# (This is an official link to the Czechoslovak Summer Time Act of +# March 8, 1946 that authorizes the Czechoslovak government to set the +# exact dates of change to summer time and back to Central European Time. +# The act also implicitly confirms Central European Time as the +# official time zone of Czechoslovakia and currently remains in force +# in both the Czech Republic and Slovakia.) +# https://www.psp.cz/eknih/1945pns/tisky/t0216_00.htm +# (This is a link to the original legislative proposal dating back to +# February 22, 1946. The accompanying memorandum to the proposal says +# that an advisory committee on European railroad transportation that +# met in Brussels in October 1945 decided that the change of time +# should be carried out in all participating countries in a strictly +# coordinated manner....) +# +# From Paul Eggert (2024-01-30): +# The source for Czech data is: Kdy začíná a končí letní čas. # https://kalendar.beda.cz/kdy-zacina-a-konci-letni-cas +# Its main text disagrees with its quoted sources only in 1918, +# where the main text says spring and autumn transitions +# occurred at 02:00 and 03:00 respectively (as usual), +# whereas the 1918 source "Oznámení o zavedení letního času v roce 1918" +# says transitions were at 01:00 and 02:00 respectively. +# As the 1918 source appears to be a humorous piece, and it is +# unlikely that Prague would have disagreed with its neighbors by an hour, +# go with the main text for now. +# # We know of no English-language name for historical Czech winter time; # abbreviate it as "GMT", as it happened to be GMT. # diff --git a/contrib/tzdata/leap-seconds.list b/contrib/tzdata/leap-seconds.list index 3fe9a1210e3c..e52effc257b2 100644 --- a/contrib/tzdata/leap-seconds.list +++ b/contrib/tzdata/leap-seconds.list @@ -1,255 +1,120 @@ +# ATOMIC TIME. +# The Coordinated Universal Time (UTC) is the reference time scale derived +# from The "Temps Atomique International" (TAI) calculated by the Bureau +# International des Poids et Mesures (BIPM) using a worldwide network of atomic +# clocks. UTC differs from TAI by an integer number of seconds; it is the basis +# of all activities in the world. # -# In the following text, the symbol '#' introduces -# a comment, which continues from that symbol until -# the end of the line. A plain comment line has a -# whitespace character following the comment indicator. -# There are also special comment lines defined below. -# A special comment will always have a non-whitespace -# character in column 2. -# -# A blank line should be ignored. -# -# The following table shows the corrections that must -# be applied to compute International Atomic Time (TAI) -# from the Coordinated Universal Time (UTC) values that -# are transmitted by almost all time services. -# -# The first column shows an epoch as a number of seconds -# since 1 January 1900, 00:00:00 (1900.0 is also used to -# indicate the same epoch.) Both of these time stamp formats -# ignore the complexities of the time scales that were -# used before the current definition of UTC at the start -# of 1972. (See note 3 below.) -# The second column shows the number of seconds that -# must be added to UTC to compute TAI for any timestamp -# at or after that epoch. The value on each line is -# valid from the indicated initial instant until the -# epoch given on the next one or indefinitely into the -# future if there is no next line. -# (The comment on each line shows the representation of -# the corresponding initial epoch in the usual -# day-month-year format. The epoch always begins at -# 00:00:00 UTC on the indicated day. See Note 5 below.) -# -# Important notes: -# -# 1. Coordinated Universal Time (UTC) is often referred to -# as Greenwich Mean Time (GMT). The GMT time scale is no -# longer used, and the use of GMT to designate UTC is -# discouraged. -# -# 2. The UTC time scale is realized by many national -# laboratories and timing centers. Each laboratory -# identifies its realization with its name: Thus -# UTC(NIST), UTC(USNO), etc. The differences among -# these different realizations are typically on the -# order of a few nanoseconds (i.e., 0.000 000 00x s) -# and can be ignored for many purposes. These differences -# are tabulated in Circular T, which is published monthly -# by the International Bureau of Weights and Measures -# (BIPM). See www.bipm.org for more information. -# -# 3. The current definition of the relationship between UTC -# and TAI dates from 1 January 1972. A number of different -# time scales were in use before that epoch, and it can be -# quite difficult to compute precise timestamps and time -# intervals in those "prehistoric" days. For more information, -# consult: -# -# The Explanatory Supplement to the Astronomical -# Ephemeris. -# or -# Terry Quinn, "The BIPM and the Accurate Measurement -# of Time," Proc. of the IEEE, Vol. 79, pp. 894-905, -# July, 1991. -# reprinted in: -# Christine Hackman and Donald B Sullivan (eds.) -# Time and Frequency Measurement -# American Association of Physics Teachers (1996) -# , pp. 75-86 -# -# 4. The decision to insert a leap second into UTC is currently -# the responsibility of the International Earth Rotation and -# Reference Systems Service. (The name was changed from the -# International Earth Rotation Service, but the acronym IERS -# is still used.) -# -# Leap seconds are announced by the IERS in its Bulletin C. -# -# See www.iers.org for more details. -# -# Every national laboratory and timing center uses the -# data from the BIPM and the IERS to construct UTC(lab), -# their local realization of UTC. -# -# Although the definition also includes the possibility -# of dropping seconds ("negative" leap seconds), this has -# never been done and is unlikely to be necessary in the -# foreseeable future. -# -# 5. If your system keeps time as the number of seconds since -# some epoch (e.g., NTP timestamps), then the algorithm for -# assigning a UTC time stamp to an event that happens during a positive -# leap second is not well defined. The official name of that leap -# second is 23:59:60, but there is no way of representing that time -# in these systems. -# Many systems of this type effectively stop the system clock for -# one second during the leap second and use a time that is equivalent -# to 23:59:59 UTC twice. For these systems, the corresponding TAI -# timestamp would be obtained by advancing to the next entry in the -# following table when the time equivalent to 23:59:59 UTC -# is used for the second time. Thus the leap second which -# occurred on 30 June 1972 at 23:59:59 UTC would have TAI -# timestamps computed as follows: -# -# ... -# 30 June 1972 23:59:59 (2287785599, first time): TAI= UTC + 10 seconds -# 30 June 1972 23:59:60 (2287785599,second time): TAI= UTC + 11 seconds -# 1 July 1972 00:00:00 (2287785600) TAI= UTC + 11 seconds -# ... -# -# If your system realizes the leap second by repeating 00:00:00 UTC twice -# (this is possible but not usual), then the advance to the next entry -# in the table must occur the second time that a time equivalent to -# 00:00:00 UTC is used. Thus, using the same example as above: -# -# ... -# 30 June 1972 23:59:59 (2287785599): TAI= UTC + 10 seconds -# 30 June 1972 23:59:60 (2287785600, first time): TAI= UTC + 10 seconds -# 1 July 1972 00:00:00 (2287785600,second time): TAI= UTC + 11 seconds -# ... -# -# in both cases the use of timestamps based on TAI produces a smooth -# time scale with no discontinuity in the time interval. However, -# although the long-term behavior of the time scale is correct in both -# methods, the second method is technically not correct because it adds -# the extra second to the wrong day. -# -# This complexity would not be needed for negative leap seconds (if they -# are ever used). The UTC time would skip 23:59:59 and advance from -# 23:59:58 to 00:00:00 in that case. The TAI offset would decrease by -# 1 second at the same instant. This is a much easier situation to deal -# with, since the difficulty of unambiguously representing the epoch -# during the leap second does not arise. -# -# Some systems implement leap seconds by amortizing the leap second -# over the last few minutes of the day. The frequency of the local -# clock is decreased (or increased) to realize the positive (or -# negative) leap second. This method removes the time step described -# above. Although the long-term behavior of the time scale is correct -# in this case, this method introduces an error during the adjustment -# period both in time and in frequency with respect to the official -# definition of UTC. -# -# Questions or comments to: -# Judah Levine -# Time and Frequency Division -# NIST -# Boulder, Colorado -# Judah.Levine@nist.gov -# -# Last Update of leap second values: 8 July 2016 -# -# The following line shows this last update date in NTP timestamp -# format. This is the date on which the most recent change to -# the leap second data was added to the file. This line can -# be identified by the unique pair of characters in the first two -# columns as shown below. -# -#$ 3676924800 -# -# The NTP timestamps are in units of seconds since the NTP epoch, -# which is 1 January 1900, 00:00:00. The Modified Julian Day number -# corresponding to the NTP time stamp, X, can be computed as -# -# X/86400 + 15020 -# -# where the first term converts seconds to days and the second -# term adds the MJD corresponding to the time origin defined above. -# The integer portion of the result is the integer MJD for that -# day, and any remainder is the time of day, expressed as the -# fraction of the day since 0 hours UTC. The conversion from day -# fraction to seconds or to hours, minutes, and seconds may involve -# rounding or truncation, depending on the method used in the -# computation. -# -# The data in this file will be updated periodically as new leap -# seconds are announced. In addition to being entered on the line -# above, the update time (in NTP format) will be added to the basic -# file name leap-seconds to form the name leap-seconds.. -# In addition, the generic name leap-seconds.list will always point to -# the most recent version of the file. -# -# This update procedure will be performed only when a new leap second -# is announced. -# -# The following entry specifies the expiration date of the data -# in this file in units of seconds since the origin at the instant -# 1 January 1900, 00:00:00. This expiration date will be changed -# at least twice per year whether or not a new leap second is -# announced. These semi-annual changes will be made no later -# than 1 June and 1 December of each year to indicate what -# action (if any) is to be taken on 30 June and 31 December, -# respectively. (These are the customary effective dates for new -# leap seconds.) This expiration date will be identified by a -# unique pair of characters in columns 1 and 2 as shown below. -# In the unlikely event that a leap second is announced with an -# effective date other than 30 June or 31 December, then this -# file will be edited to include that leap second as soon as it is -# announced or at least one month before the effective date -# (whichever is later). -# If an announcement by the IERS specifies that no leap second is -# scheduled, then only the expiration date of the file will -# be advanced to show that the information in the file is still -# current -- the update time stamp, the data and the name of the file -# will not change. -# -# Updated through IERS Bulletin C66 -# File expires on: 28 June 2024 -# -#@ 3928521600 -# -2272060800 10 # 1 Jan 1972 -2287785600 11 # 1 Jul 1972 -2303683200 12 # 1 Jan 1973 -2335219200 13 # 1 Jan 1974 -2366755200 14 # 1 Jan 1975 -2398291200 15 # 1 Jan 1976 -2429913600 16 # 1 Jan 1977 -2461449600 17 # 1 Jan 1978 -2492985600 18 # 1 Jan 1979 -2524521600 19 # 1 Jan 1980 -2571782400 20 # 1 Jul 1981 -2603318400 21 # 1 Jul 1982 -2634854400 22 # 1 Jul 1983 -2698012800 23 # 1 Jul 1985 -2776982400 24 # 1 Jan 1988 -2840140800 25 # 1 Jan 1990 -2871676800 26 # 1 Jan 1991 -2918937600 27 # 1 Jul 1992 -2950473600 28 # 1 Jul 1993 -2982009600 29 # 1 Jul 1994 -3029443200 30 # 1 Jan 1996 -3076704000 31 # 1 Jul 1997 -3124137600 32 # 1 Jan 1999 -3345062400 33 # 1 Jan 2006 -3439756800 34 # 1 Jan 2009 -3550089600 35 # 1 Jul 2012 -3644697600 36 # 1 Jul 2015 -3692217600 37 # 1 Jan 2017 -# -# the following special comment contains the -# hash value of the data in this file computed -# use the secure hash algorithm as specified -# by FIPS 180-1. See the files in ~/pub/sha for -# the details of how this hash value is -# computed. Note that the hash computation -# ignores comments and whitespace characters -# in data lines. It includes the NTP values *** 599 LINES SKIPPED *** From nobody Wed Feb 14 06:05: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 4TZSNn1qWtz5B4wm; Wed, 14 Feb 2024 06:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSNn0kvjz4RX2; Wed, 14 Feb 2024 06:05:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UVdt4fil3sboSgYb7oOMGbDUCHfGNKIc/I0oNXqsIrc=; b=ba/MOFqv1HYtCO60DMSF8BMWVxYMopgqMAElWOigg4vzCvxJxvr8H9sU7obqq0R6pZPula JSd9nAHhGOPSdiatRCT9liG2m9T6TpgYp9VsvE505tomvvirBfK4r+I6UbHMnW8jPiGMI1 UJWPE99q3TUZbrxdS7eu9Y8Ee6KoHSgbMOkLEL2XuAet9+QHyeL3S76HPBnlSu3qr6T97X WWZBcdGjaS9QquVolcTUQnutUDIPhHGVXtcZDDE8mfpolJLbIatRfqqW7NEcSX6cplalUU V1liqwxy3kUb7/feiWnBTWjU24zYnt86kMoWQWnr92oh5xgRex4kAKr+zaEjEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890745; a=rsa-sha256; cv=none; b=schPViaaVV8AyQ2j+GuNVvXVFXTgQ8gtZXWmCt3HwmNBKdrrxSj5osNtYRmEizdFUJdwsQ 2UDuHR6d8TCTtXRuDYhE2iS11cvkvi1rmSZEgCUBpLVLgtc3xnyRUbGcUm2Njf63qtxiRf UiiA0W3YmpFhCwhqD6fGxbUUm2hsvk8Lg6a2MJuboQCirxclAdG8KgFJkOxBfrK8a8GAAZ J6GvLEoNi2ovBJsr9I3ZbFe3zuI6r28q2GUlY36KpWi1VQ1ZIvkRarJzJ/BmprGm7yQE0e m0U1KQlAUu2Bj8s+nJJ8z3+Fu5DDxyjAjkL0JJPhm5tqvRy/96sLuDaobJGWvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890745; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UVdt4fil3sboSgYb7oOMGbDUCHfGNKIc/I0oNXqsIrc=; b=O+9r4EN/DfBR74WwaCLbYGZA1xymRunpE/G5pjCnK+MsW6IpYP84oXePsbaB9GhYo8unoq Yi3+CJHgotnyGJ8BwjYujmMjzwm7o/oB4uS1WM8CiGwnQ0ugbMzfsQeeotmcNwgemPN8r+ bhByLxzK4ZAjw5X8y/maR8wkTHQkjWIhKL1zee1MFwklPFlyYgLTvFDhdD6exrKC0pon63 g5i2AXKELR05IdvzHMdcZzK9dBz/Z9Y2GrmMku5UO9IIN5YnthepP+VoCqAxdFEkwbXusK g1sXZizcFwJWBb6B+HiBIAcikmjn8iG5ahAH2xCEJ+sdJnjSrYxv7iiKDYs/Tg== 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 4TZSNm6yYNzmNW; Wed, 14 Feb 2024 06:05:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65iEG084683; Wed, 14 Feb 2024 06:05:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65ivI084681; Wed, 14 Feb 2024 06:05:44 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:44 GMT Message-Id: <202402140605.41E65ivI084681@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: f5bb597829e1 - releng/14.0 - bhyveload: use a dirfd to support -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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: f5bb597829e13942648c4ab5726f1ff924e33e9f Auto-Submitted: auto-generated The branch releng/14.0 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=f5bb597829e13942648c4ab5726f1ff924e33e9f commit f5bb597829e13942648c4ab5726f1ff924e33e9f Author: Kyle Evans AuthorDate: 2024-01-03 22:17:59 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:41:59 +0000 bhyveload: use a dirfd to support -h Don't allow lookups from the loader scripts, which in rare cases may be in guest control depending on the setup, to leave the specified host root. Open the root dir and strictly do RESOLVE_BENEATH lookups from there. cb_open() has been restructured a bit to work nicely with this, using fdopendir() in the directory case and just using the fd we already opened in the regular file case. hostbase_open() was split out to provide an obvious place to apply rights(4) if that's something we care to do. Reviewed by: allanjude (earlier version), markj Approved by: so Security: FreeBSD-SA-24:01.bhyveload Security: CVE-2024-25940 (cherry picked from commit 6779d44bd878e3cf4723f7386b11da6508ab5431) (cherry picked from commit 426b28fdf700bcd8c05b25665da34f806b27b1bb) --- usr.sbin/bhyveload/bhyveload.c | 84 ++++++++++++++++++++++++++++-------------- 1 file changed, 57 insertions(+), 27 deletions(-) diff --git a/usr.sbin/bhyveload/bhyveload.c b/usr.sbin/bhyveload/bhyveload.c index 6b2633cac288..4c1dbd583e1f 100644 --- a/usr.sbin/bhyveload/bhyveload.c +++ b/usr.sbin/bhyveload/bhyveload.c @@ -88,11 +88,11 @@ #define NDISKS 32 -static char *host_base; static struct termios term, oldterm; static int disk_fd[NDISKS]; static int ndisks; static int consin_fd, consout_fd; +static int hostbase_fd = -1; static int need_reinit; @@ -159,42 +159,61 @@ static int cb_open(void *arg __unused, const char *filename, void **hp) { struct cb_file *cf; - char path[PATH_MAX]; + struct stat sb; + int fd, flags; - if (!host_base) + cf = NULL; + fd = -1; + flags = O_RDONLY | O_RESOLVE_BENEATH; + if (hostbase_fd == -1) return (ENOENT); - strlcpy(path, host_base, PATH_MAX); - if (path[strlen(path) - 1] == '/') - path[strlen(path) - 1] = 0; - strlcat(path, filename, PATH_MAX); - cf = malloc(sizeof(struct cb_file)); - if (stat(path, &cf->cf_stat) < 0) { - free(cf); + /* Absolute paths are relative to our hostbase, chop off leading /. */ + if (filename[0] == '/') + filename++; + + /* Lookup of /, use . instead. */ + if (filename[0] == '\0') + filename = "."; + + if (fstatat(hostbase_fd, filename, &sb, AT_RESOLVE_BENEATH) < 0) return (errno); + + if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) + return (EINVAL); + + if (S_ISDIR(sb.st_mode)) + flags |= O_DIRECTORY; + + /* May be opening the root dir */ + fd = openat(hostbase_fd, filename, flags); + if (fd < 0) + return (errno); + + cf = malloc(sizeof(struct cb_file)); + if (cf == NULL) { + close(fd); + return (ENOMEM); } + cf->cf_stat = sb; cf->cf_size = cf->cf_stat.st_size; + if (S_ISDIR(cf->cf_stat.st_mode)) { cf->cf_isdir = 1; - cf->cf_u.dir = opendir(path); - if (!cf->cf_u.dir) - goto out; - *hp = cf; - return (0); - } - if (S_ISREG(cf->cf_stat.st_mode)) { + cf->cf_u.dir = fdopendir(fd); + if (cf->cf_u.dir == NULL) { + close(fd); + free(cf); + return (ENOMEM); + } + } else { + assert(S_ISREG(cf->cf_stat.st_mode)); cf->cf_isdir = 0; - cf->cf_u.fd = open(path, O_RDONLY); - if (cf->cf_u.fd < 0) - goto out; - *hp = cf; - return (0); + cf->cf_u.fd = fd; } - -out: - free(cf); - return (EINVAL); + *hp = cf; + return (0); } static int @@ -714,6 +733,17 @@ usage(void) exit(1); } +static void +hostbase_open(const char *base) +{ + + if (hostbase_fd != -1) + close(hostbase_fd); + hostbase_fd = open(base, O_DIRECTORY | O_PATH); + if (hostbase_fd == -1) + err(EX_OSERR, "open"); +} + int main(int argc, char** argv) { @@ -748,7 +778,7 @@ main(int argc, char** argv) break; case 'h': - host_base = optarg; + hostbase_open(optarg); break; case 'l': From nobody Wed Feb 14 06:05: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 4TZSNq3kdvz5B53b; Wed, 14 Feb 2024 06:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSNq2mYKz4Rtf; Wed, 14 Feb 2024 06:05:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KQFbSc/c0grg3Kdqa9w/JBGM6A2OnPNTQ9CgeCwt0aQ=; b=DjjRYNqo+Os2KSIJLkMP3JOCA1P5dgsNwcjZXrCH446gotHy6UQIReHKUy6n4+rRhqEUpV IW6JdMN4OqA7dITm5Ey8sxAHrTRkvWZqq1NzHW25MGscQ7xXYt+xl1hVEJ3rIsq4CUbkIk NFJm4UoyoTJ7GeOJUlQ4rQeM4LabNVk34zSavKx1gLOsUKQyDbARNmJSSDuwKOrffKsMLp 0ySw9rKTInZ9FZR6L3IJbq7ZBMAzNfvBRZyIonCHS9oofiZzNiUgQumSPfgrA53YRJ9sun f9PuK2HpQ8l1F2ZDJi6nOxYV9ghHgttnPZ5MmYq0b1yXHN8bdNCwMVWvIoeBBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890747; a=rsa-sha256; cv=none; b=bRG8NfeMlT4rRP+8CWsm72aLRzTUm4329cU40pdVfjCR0BkiwL9nf90SaFzUMlla+NBviZ 5XwBc/sYsnBRO9oTHO335g0igtsIXtZttOztn7naauekPdBANMkY9lst/jP3rPwCLlL2H1 Q7fDpwru2Epbnp1tCsNWLscv8auC/Z7xeysYy9vr4grbykAMfL93uLtbklItp/x4uyTrCL ZryxnL5mssAJOsvY4vCIgc9EhF7Qcibt6qwNaMFqeoUOv1778Q4bpY1R2073KcqCjnDE4v T6EFeCi/uGyBhOr9MsG6MFPvsiyfqSwSzBtbYBcNIU68XIpFPAHztLIgneSIaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KQFbSc/c0grg3Kdqa9w/JBGM6A2OnPNTQ9CgeCwt0aQ=; b=qfs6+EiPxf/fgd92Lj+gvauItsnoF1epJ7eBusEvFmU82PV1M+Fztoc7W01jjlghCITOxq oqbxRhBhjXyR2NiQ4DpI5V5QHiHyRp/sz/yWUT0SO1bc2d4wMd16JjsLMWzZbGV/FhcJo6 k2Dfb9SBIgRgc1mUJPTzWL2uEd89qEOdKqMDdxHoJ7/bMpYWZLeJYlitG5iiKiZ7G7C9cr tq8YpLS3N5fmijYzsBct9BzjeVcduxF6eTAWyjiEEg6ItfDWOlqxS1rrChaliK+uQ+2rvY H4NETn7y++mdXlt2hjKmOFdijfTg3RmQkOhdB0and41QAfLHpY2osFpFfcf+HQ== 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 4TZSNq1rBszn4g; Wed, 14 Feb 2024 06:05:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65lnq084775; Wed, 14 Feb 2024 06:05:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65lQL084772; Wed, 14 Feb 2024 06:05:47 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:47 GMT Message-Id: <202402140605.41E65lQL084772@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 9d0e3b306e38 - releng/14.0 - Add UPDATING entries and bump the branch version. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: 9d0e3b306e38adf94dc4f66a3e18b8deaf616917 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=9d0e3b306e38adf94dc4f66a3e18b8deaf616917 commit 9d0e3b306e38adf94dc4f66a3e18b8deaf616917 Author: Gordon Tetlow AuthorDate: 2024-02-14 06:00:27 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 06:00:27 +0000 Add UPDATING entries and bump the branch version. Approved by: so --- UPDATING | 20 ++++++++++++++++++++ sys/conf/newvers.sh | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/UPDATING b/UPDATING index 30a245edf611..4e5a23c56f86 100644 --- a/UPDATING +++ b/UPDATING @@ -12,6 +12,26 @@ Items affecting the ports and packages system can be found in /usr/ports/UPDATING. Please read that file before updating system packages and/or ports. +20240214: + 14.0-RELEASE-p5 SA-24:01.bhyveload + SA-24:02.tty + EN-24:01.tzdata + EN-24:02.libutil + EN-24:03.kqueue + EN-24:04.ip + + Fix bhyveload host file access [SA-24:01.bhyveload] + + Fix jail information leak [SA-24:02.tty] + + Timezone database information update [EN-24:01.tzdata] + + Fix login class resource limits and CPU mask bypass [EN-24:02.libutil] + + Fix kqueue_close page fault on exit using rfork [EN-24:03.kqueue] + + Fix kernel panic triggered by bind [EN-24:04.ip] + 20231219: 14.0-RELEASE-p4 SA-23:19.openssh diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 4565e444ae39..7ab4dca5f67f 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -53,7 +53,7 @@ TYPE="FreeBSD" REVISION="14.0" -BRANCH="RELEASE-p4" +BRANCH="RELEASE-p5" if [ -n "${BRANCH_OVERRIDE}" ]; then BRANCH=${BRANCH_OVERRIDE} fi From nobody Wed Feb 14 06:06: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 4TZSP70W31z5B56Q; Wed, 14 Feb 2024 06:06:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSP65Ksmz4Rnx; Wed, 14 Feb 2024 06:06:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zzc64vWj6ScZDNEMu8TYjGuX+gor7n5wL3+o3j/pctA=; b=kjjAP1I0WOa+PEnsWfuNDBVTEsSGbzfsmYhg4UFLPbmIu+te+huh++yQOuuGx85QrNJpu4 B4nYtBYtN6stByRnsxBCz1+RwwlpEYXUnBvf+e+GgUCc+7oRpVbqFlwOAgy7JNvnySaANL L9gtcyh1078l2hCyx6t+jGdMki0Gt9idxOLD5BuMiGyl7w97vN02sBj683gEixcrsBcstI iuo0nfb4mUjObrw4ssxmY+7TpBi9VVmleZRi6SeygZNQYje4E0zFFxoR//G7rpryTa7oEl bFvKmHLqBd5rF0+RfaabdcCPRxelOXATGqR6U1JXGv2ai2ch6d860uPMhl/boA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890762; a=rsa-sha256; cv=none; b=XnF0pNArzKFpKbpNqTw+lHTbQVvwihR4FrbUpH7N8sNdTCRaq7cmmH2GoT1tC3lbpuPwCY zrEbY0n9j8/Ek/TpLe4pTHkVnBJlc6sJ3KYP5EaJh9kETJ/N233R0MMdJx+tYN/GkuVgLD qgcd9wUA6alWpiH1mRlkv7H1wIKgtzwI0TdF2nSJ5WExfWbaNPKJT2QW6spC23IiJnmYju dxuPkSnnvyKb+EwrtMNzK9DG7Gv/tdAxHdotv7wR7kyODeTYUeVU6wAV4e/61OTghlfuVk OUl9dU+hnSSuEgVq1uFZDjlsztQAKIJPRBsC+2HrvwqbdNj91Vr+s34zhfnYpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zzc64vWj6ScZDNEMu8TYjGuX+gor7n5wL3+o3j/pctA=; b=NzlL7tRSRe4AHKcSHe6R8ekmiJtAU1fuWMHyEVj1FOEij7M8evAFm17jFPLNqwMjZ+C/o5 oOmiSYYuRi8PXd4MyxFyFm9OZopTTxQ69eAa71Z7BuVWhy03mF9V+K7JwRxEMyGiWsNo0T /L5nve6miFhVO5Vmuy41IJxvudTt7bFRnNyvINhXODaRv0DmT9RstUwSqMIFcqk/RMUdhG xVB8JVSiswjcNVaYfv+H1uEHYhhGoLiAj9DHL1+B3fVGo3jx5L4IQv5yvjZkAMzMI7K2Tl bVaAlO+zym4pOqYgZkfy1jADrZsqV6fy1tD4nfWy1Va7VWckcS4x2rt9Xv3Keg== 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 4TZSP62zSmzmSk; Wed, 14 Feb 2024 06:06:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E662ip085320; Wed, 14 Feb 2024 06:06:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E662Ac085317; Wed, 14 Feb 2024 06:06:02 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:06:02 GMT Message-Id: <202402140606.41E662Ac085317@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 326f58eade21 - releng/13.2 - Add UPDATING entries and bump the branch version. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 326f58eade217010f78f1f70ff76e0565bfae2b8 Auto-Submitted: auto-generated The branch releng/13.2 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=326f58eade217010f78f1f70ff76e0565bfae2b8 commit 326f58eade217010f78f1f70ff76e0565bfae2b8 Author: Gordon Tetlow AuthorDate: 2024-02-14 06:03:19 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 06:03:19 +0000 Add UPDATING entries and bump the branch version. Approved by: so --- UPDATING | 17 +++++++++++++++++ sys/conf/newvers.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/UPDATING b/UPDATING index 142afbf8e4fa..89a4b7482faa 100644 --- a/UPDATING +++ b/UPDATING @@ -12,6 +12,23 @@ Items affecting the ports and packages system can be found in /usr/ports/UPDATING. Please read that file before updating system packages and/or ports. +20240214: + 13.2-RELEASE-p10 SA-24:01.bhyveload + SA-24:02.tty + EN-24:01.tzdata + EN-24:02.libutil + EN-24:03.kqueue + + Fix bhyveload host file access [SA-24:01.bhyveload] + + Fix jail information leak [SA-24:02.tty] + + Timezone database information update [EN-24:01.tzdata] + + Fix login class resource limits and CPU mask bypass [EN-24:02.libutil] + + Fix kqueue_close page fault on exit using rfork [EN-24:03.kqueue] + 20231212: 13.2-RELEASE-p9 SA-23:19.openssh diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 35e325add855..e8701ba542fe 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -54,7 +54,7 @@ TYPE="FreeBSD" REVISION="13.2" -BRANCH="RELEASE-p9" +BRANCH="RELEASE-p10" if [ -n "${BRANCH_OVERRIDE}" ]; then BRANCH=${BRANCH_OVERRIDE} fi From nobody Wed Feb 14 06:21: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 4TZSkX32klz5B69r; Wed, 14 Feb 2024 06:21: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSkX1j3Xz4XtJ; Wed, 14 Feb 2024 06:21:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707891668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GITrM2ZWbU2JBt/YC3PWUOjMUROV6VxbeMe/A0D9jCs=; b=kXLVTcQU5IT7O5gUvHFjeibaRp7Ljx7qYGZ4RrqisjVNMv/tAJXbGHEdLlVb42+/0l/iu5 oHXDsi0nSrPP+pWBE0Y+oZtpeF5SPZA1yby8CrAEkYsn5PU/nb49X8wq4sy8SMH86WlK2i 8bhYA/1Q/L8rbY5L8+KhGeNyfjQ+ao0oQOyPXY0GD7xwyBP3M5Wh7/N0ERMoKkxxGYkY6y yOvqORrFjY8qDsaX3o6edyfGAPOJr3+0JRNXEM0pK7JE8a0Hlj9Fnk9NQ/Zwlt+LwD9Ymo lpDLwLAvicmpOK1hnwPjnM9qOc62Vhd6X8BHRigGGrp60AErqET6AviMoUqGPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707891668; a=rsa-sha256; cv=none; b=Snou7toH1h8rDiVxsLNUOw5AGKdoXaW1CrtuS+VJbbj8NooiCFgtoPrW1f31gx5ERITzJ9 hNu+WTdTsqNZSe3d6orvZIJqZUFMcSQ8jTVwx+9+2HeCpExkattdeNlYtyhTcBy3XkjRP1 aCR/tOMdKH3F3LbG1vBmARMqSBuHf1u/fl0HcR83RHpiriS0t+ypoNWqrB1nHEERONSHIV MT011RQtihNa3ZOXB0feN9lMURrHpjdVTit10ND7q37nlJZveD7LbJYatN1OGfSEgO1Kwf u003Xgbnv2PrlPmvCxCllNcAIcvUquhoDkIVYoRGgUeA5u/U0xss4DfHSsJijg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707891668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GITrM2ZWbU2JBt/YC3PWUOjMUROV6VxbeMe/A0D9jCs=; b=cOecIQwJ/fTlCIJbXTsb5OJcFCITLgs0odd8p+F92CpqLTJ+IzOfAX20yXbrtpdY2Tdykf 9v3pZYgiZfHylLvwO2cUTJabC2HoSG2VQXlizJiq+hxlifcRRjmWT0jZOhqfCQA1H3+I9/ FV0GYC3XH7t+bWOxeXokzc0VexjJCFpNRfbx2vL57kSB72FNRzx8/XcgS2qWoZ9fGUOiIJ oQP50zAG4UWikJ5xGxlhbVi6sEFs+t8bnY9+/ZGv/EsByNitVXRpgadql9+Kz0UZ7qVH27 rYLHNXSveq9MHrGG44efgXOMYjJzhnw++zZ0WMmCvnpJpt97M307vIBTD4Sl+A== 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 4TZSkX0YLYznDq; Wed, 14 Feb 2024 06:21:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E6L7TM013522; Wed, 14 Feb 2024 06:21:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E6L7M0013519; Wed, 14 Feb 2024 06:21:07 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:21:07 GMT Message-Id: <202402140621.41E6L7M0013519@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Philip Paeps Subject: git: adfda3c395fa - releng/14.0 - rc.conf: correct $ntp_leapfile_sources 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: philip X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: adfda3c395faf108d76ef7772db3804bee5b228f Auto-Submitted: auto-generated The branch releng/14.0 has been updated by philip: URL: https://cgit.FreeBSD.org/src/commit/?id=adfda3c395faf108d76ef7772db3804bee5b228f commit adfda3c395faf108d76ef7772db3804bee5b228f Author: Philip Paeps AuthorDate: 2023-12-07 05:48:13 +0000 Commit: Philip Paeps CommitDate: 2024-02-14 06:19:31 +0000 rc.conf: correct $ntp_leapfile_sources IETF is no longer serving leap-seconds.list. Update to the canonical place. This fixes "service ntpd fetch". IERS is the source of truth for leap seconds. Their leapsecond file is updated most quickly and is always right (unlike the IANA one which often lags). IERS operates this public service for the express purpose of random people downloading it. Their terms of service are compatible with open source (we could include this in our release). Rather than fighting with questions around this because the IANA one changed locations or the auto update script broken, just use this. This is in preference to the NIST ftp copy. NIST is in the process of retiring their FTP services. Sponsored by: Netflix Reviewed by: philip, delphij, cy Differential Revision: https://reviews.freebsd.org/D43752 (cherry picked from commit b1c95af45488bef649e9a84890e2414ff80b3a00) (cherry picked from commit 163c4342381530cfc5dc78a457cb1f9e355d687a) (cherry picked from commit 11da791920ba285f0832f09cb504ac81e35ff8d1) (cherry picked from commit ded562d4af9c1a7c6ea48271cbf07a81d7e031c4) Security: FreeBSD-EN-24:01.tzdata Approved by: so (gordon) --- libexec/rc/rc.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf index f5d0605c8436..f31efb4e2052 100644 --- a/libexec/rc/rc.conf +++ b/libexec/rc/rc.conf @@ -421,8 +421,8 @@ ntpd_flags="" # Additional flags to ntpd ntp_src_leapfile="/etc/ntp/leap-seconds" # Initial source for ntpd leapfile ntp_db_leapfile="/var/db/ntpd.leap-seconds.list" - # Working copy (updated weekly) leapfile -ntp_leapfile_sources="https://www.ietf.org/timezones/data/leap-seconds.list" + # Canonical place to get the leap seconds from +ntp_leapfile_sources="https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list" # Source from which to fetch leapfile ntp_leapfile_fetch_opts="-mq" # Options to use for ntp leapfile fetch, # e.g. --no-verify-peer From nobody Wed Feb 14 06:27: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 4TZStC4FYbz5B6pg; Wed, 14 Feb 2024 06:27: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZStC2lcsz4Ytn; Wed, 14 Feb 2024 06:27:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707892067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N+Ibxf7zhG+FPxAKfNyyGWWvVMIDV9Gdqv/mYAmUrkI=; b=JBw/ZJFOg/NPXxlnoYAhHTJ3aZbEru32eX1snBM1rMTLW8xBXqEkrIhxl3HaAV8US7x9w9 OMJArlsqBLB1pfe9VFTFDsBszp6xfsJqK6VyhZifk5sp8r3J+awstZwaWcBjuBneEh1ky+ n7lifZkWzeA707hIMw5m+a/gNxULWJKvS4ve3lYxN52L1++pmAX3oBI+rIvk72bAHGhOQI abLDqzkp1fXkugZfP90H1xybBbfX+C49nKIcsd1aV7QpLQbCsAf4Sf8xipQ6q3zfq6uU2+ W/u056H5Z4fbEt1RsacnYMfuQmtchXyYFje7RzDyq4Yrz9HFiYWiQfPby7uzVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707892067; a=rsa-sha256; cv=none; b=oaziopdVR9Lm6qkpH7l6nKiymOufQnVaytB5l8pBzdL17NNxfZwfbz/cT9jONZAZnS4aY7 bdd13tQcO3zrD81moysCepeD/fvZRCcu8xLkuyjziucb7sEWlBcz14vt7dlIP9mxXqRiHe ta8PAZbizgfmw6lLANwGCkwfCIMmezw2rXGUfK+Agl4Tya/VycEQfLuWqn+ZPimFucSsmM z9B0CKA8YTPFd7InsLyu4n6xV+So9JPyuKHJJUnJXwUV8KpMmESl77mdYWBJBtUavrAXds zcCdk0K1c+bi2205buKgThH8uLB44RXjJkhUbgizmmdkgrF/IMPqdL9tEwgFnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707892067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N+Ibxf7zhG+FPxAKfNyyGWWvVMIDV9Gdqv/mYAmUrkI=; b=Lv5CF8b576nrv1mBNUEXWQARl436vRKa00PeeqGweLoW6uEZqrH9y9mQhiiHPtKrkJqg6s e6+eLPTS0S5PRaGMieHQRBAarsbtpDmar9QmakfaJl1WIhxyJHIPTdi4vw4xnwVvxiKC9x HllVGHmDtTaK+6hbkU4RV4h8hia49AH7JgGD93vIskfqHXDHpKviZ2qp8gFmaaUzgWUxH0 nwjlM4TNGGeXa0WC4mg1MDAOuri29YqgnxkjFrGWOiro0Q9MAOZN0EHdx6e2LFK7AoH1ko 5SLrDqkp2aADM5d7KOSdIQKxIRbfMRICdU8KBbIJmQeq5tkc+xLNTGvbMT1ulQ== 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 4TZStC1s86zncR; Wed, 14 Feb 2024 06:27:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E6Rlrn019084; Wed, 14 Feb 2024 06:27:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E6Rl0f019081; Wed, 14 Feb 2024 06:27:47 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:27:47 GMT Message-Id: <202402140627.41E6Rl0f019081@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Philip Paeps Subject: git: 66bb668fe5f2 - releng/13.2 - periodic/daily/480.leapfile-ntpd: only attempt to refresh leap-seconds.list when ntpd is enabled. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: philip X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 66bb668fe5f2561844f5b79251ea42e1bfce9aee Auto-Submitted: auto-generated The branch releng/13.2 has been updated by philip: URL: https://cgit.FreeBSD.org/src/commit/?id=66bb668fe5f2561844f5b79251ea42e1bfce9aee commit 66bb668fe5f2561844f5b79251ea42e1bfce9aee Author: Xin LI AuthorDate: 2023-12-03 07:00:32 +0000 Commit: Philip Paeps CommitDate: 2024-02-14 06:25:34 +0000 periodic/daily/480.leapfile-ntpd: only attempt to refresh leap-seconds.list when ntpd is enabled. The leap-seconds.list is used exclusively by ntpd, therefore, do not bother to perform the fetch when ntpd is not enabled. PR: conf/275419 Reviewed by: cy, michaelo, imp Differential Revision: https://reviews.freebsd.org/D42875 (cherry picked from commit 3b3195f6767b39eb33b3523134ef988931c9c86d) (cherry picked from commit 3ef596c6e80562710da09c16558d7351749ea143) Security: FreeBSD-EN-24:01.tzdata Approved by: so (gordon) --- usr.sbin/periodic/etc/daily/480.leapfile-ntpd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/periodic/etc/daily/480.leapfile-ntpd b/usr.sbin/periodic/etc/daily/480.leapfile-ntpd index a693986e0dd1..f4a1edb8d5a2 100755 --- a/usr.sbin/periodic/etc/daily/480.leapfile-ntpd +++ b/usr.sbin/periodic/etc/daily/480.leapfile-ntpd @@ -13,9 +13,9 @@ fi case "$daily_ntpd_leapfile_enable" in [Yy][Ee][Ss]) - if service ntpd oneneedfetch; then + if service ntpd enabled && service ntpd needfetch; then anticongestion - service ntpd onefetch + service ntpd fetch fi ;; esac From nobody Wed Feb 14 06:27: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 4TZStD5nnFz5B7KY; Wed, 14 Feb 2024 06:27: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZStD3plWz4YmV; Wed, 14 Feb 2024 06:27:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707892068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EOqVECkzY1bBlScMo0RRpST6cHADgvGe/c4CdyUPYms=; b=V/HtY24Un7pmWgxUYF43o2FpbGlHr8aDCeja5x5JoQ6GAr6ptAw+p0BUg0NeqoWOUfF9vE c576umOUndHMCgmhOregvGUYVS0YBEECqR1JUmwPeWy9u+1xUKLESxIEYJR2na6wYt7Cc3 n0iSIjVHSpzHI2JUyNRVCNSBSrtpaFg4yG52dkBJY7ksRByeTofdwrwvhrA7dqjZdgCjD6 q5Ysd1jMnm34beT+aWFTUwTlltrTdYUyIlAN/m67mV0J8Flv3dP9aTzoUb3/h/DqtXRygg weh9LCpzTBV2fErhar+szePt/o5g/ss3kEph4AemTPewtBBQ8S+eaEmKpJt9Dw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707892068; a=rsa-sha256; cv=none; b=GgPQEEgVYIWrn0uXhOFJeYQhqCVKTQmQTCrNEGbCZ86Oh7vjz4LcEEqZ8Ld4ZMWTttRcC5 f9q3H1biI/dEZvztXo3gMJ6N3XRgIHbxl6x82sGe1q9gnwklpAlWL/3l6P3xJGPDL2yiAk Wkvkx3w/PVVnqcaJYHEmKf8ZKCcJ+pz8O6zxRKRhkUdvDU0r6Ht/LSzfBpj9fd84+3UZO/ nDrVTevEHrkcwTlUX4Y+dMMDoK3p/kvrwqXcxrt5sLaCBOS+SaqWXLxyUhBnZDqR+O1Bbd 4VEAYIs617SRJwxXPmXmRhblVP6SJ1nYkF/iu/fL6HuD9FsDPqczMzP5lQxu1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707892068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EOqVECkzY1bBlScMo0RRpST6cHADgvGe/c4CdyUPYms=; b=AU692EQ/JMdutVwa11IvlhwCgA5ZJtE9rAn2H9AtiuAGmfUvR5VLyn4YfE5C28Ib7q08sk AwpZ2FY0AGpPiIYr/+saa8R54cbYFMAEsNgDGYqMtGPmiFMGvp1fcnFOsrtn41m2DWXBgk 8p69Go/Ct0F3GZXBzVMRvG0kwSwXR3z7I+UHgpBdkwi4dLXXX1/3m4aj0YNPxA2lrUT4zR JHly9gosw3u0nvv+qzDoA/hX4OqiovPw2FNxF/+7X9HVf/UVAbitplZeisLb4khRw8sRpe 3DitpbTH1Jh3fcBWBl4AIgJIKM3j5DuL/Az8B/FVF/aa1oxOCT3Ys4kd6GrFQA== 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 4TZStD2gGZznC7; Wed, 14 Feb 2024 06:27:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E6Rmht019121; Wed, 14 Feb 2024 06:27:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E6RmuV019118; Wed, 14 Feb 2024 06:27:48 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:27:48 GMT Message-Id: <202402140627.41E6RmuV019118@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Philip Paeps Subject: git: a839681443b6 - releng/13.2 - rc.conf: correct $ntp_leapfile_sources 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: philip X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: a839681443b6662571d6b90732baae364c97e9d9 Auto-Submitted: auto-generated The branch releng/13.2 has been updated by philip: URL: https://cgit.FreeBSD.org/src/commit/?id=a839681443b6662571d6b90732baae364c97e9d9 commit a839681443b6662571d6b90732baae364c97e9d9 Author: Philip Paeps AuthorDate: 2023-12-07 05:48:13 +0000 Commit: Philip Paeps CommitDate: 2024-02-14 06:25:56 +0000 rc.conf: correct $ntp_leapfile_sources IETF is no longer serving leap-seconds.list. Update to the canonical place. This fixes "service ntpd fetch". IERS is the source of truth for leap seconds. Their leapsecond file is updated most quickly and is always right (unlike the IANA one which often lags). IERS operates this public service for the express purpose of random people downloading it. Their terms of service are compatible with open source (we could include this in our release). Rather than fighting with questions around this because the IANA one changed locations or the auto update script broken, just use this. This is in preference to the NIST ftp copy. NIST is in the process of retiring their FTP services. Sponsored by: Netflix Reviewed by: philip, delphij, cy Differential Revision: https://reviews.freebsd.org/D43752 (cherry picked from commit b1c95af45488bef649e9a84890e2414ff80b3a00) (cherry picked from commit 74a8c6da4f28e691c169aa502713a5aaebc00584) (cherry picked from commit 11da791920ba285f0832f09cb504ac81e35ff8d1) (cherry picked from commit 0eea8292ae8c8e9119520ce54aa82cae491d83b9) Security: FreeBSD-EN-24:01.tzdata Approved by: so (gordon) --- libexec/rc/rc.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf index af7b6ff6302e..5e1f097d8b23 100644 --- a/libexec/rc/rc.conf +++ b/libexec/rc/rc.conf @@ -419,8 +419,8 @@ ntpd_flags="" # Additional flags to ntpd ntp_src_leapfile="/etc/ntp/leap-seconds" # Initial source for ntpd leapfile ntp_db_leapfile="/var/db/ntpd.leap-seconds.list" - # Working copy (updated weekly) leapfile -ntp_leapfile_sources="https://www.ietf.org/timezones/data/leap-seconds.list" + # Canonical place to get the leap seconds from +ntp_leapfile_sources="https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list" # Source from which to fetch leapfile ntp_leapfile_fetch_opts="-mq" # Options to use for ntp leapfile fetch, # e.g. --no-verify-peer From nobody Wed Feb 14 13:58: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 4TZft418d1z59vQs; Wed, 14 Feb 2024 13:58: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZft40XHPz4k5F; Wed, 14 Feb 2024 13:58:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707919100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mkeYDbxeJG5S+sybQgIr6hc9voEH1rUHZRk9E7Xsi/c=; b=oMiCVVYGf/VpLw2hkIYd/p6kdUu6t7O7+bjTVMErT89Ccp0h7xfUDGETh6NygB/6JQIkRO Zsh7ZrFNLHIid1ikE7o3ulu49v21BXvhViEUdjGaZTh9xdOaD7UuX0XMDzFN2zgHdAqt0/ +i7D3LpiT+TdjSO/08zB1uzkPRHKgpyPMOeDUEzgvoOAvQ/ZweKX8IEaJpbaR9dGsmUeMt Ia97WziyYCVG59EHEX48IEjhbvU2FCFnGfcuIcTLthf7+wQk8VWLfnoGnnc2mSK9lfts1v T/H6ft0aGpSRS8s42yCRXLZIiSresqRr2hIEcKW3Rphl4pCNntrLucolIgIDyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707919100; a=rsa-sha256; cv=none; b=R5+ZavN2Wn1LEwqxiO+l6iSRtc7/4g+xV9clTJQ/8okV2HTtPv40vYD/Gcj1OA8YDXjW95 fu+dq8WR1UGBM4fpaBnIloZnFe+r22D1bdMu7T32m2Sn4sg2e189ghoY5cJ0DVDm4GgdD1 +n21/vCSJsjdYD9g0fKx6UZonZrrQSHgKa2pKE1SMnD9SJ7lq2cQXBm2O3nDwC7DZ1SPOl 7RiFS3gOGzWGsAs+XrszkLFjDVPHsY1KUn8eaoeXMI/Fked5AXfMOa1Ft8mcrekCm+12kb 3UBPIWea/x9JrRVPAEA/tIgj1eMtnpmUXbdMGMMhYV9IAw9Fv2yA5o2mrgTZmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707919100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mkeYDbxeJG5S+sybQgIr6hc9voEH1rUHZRk9E7Xsi/c=; b=pOy7sLR/bnLzNytCeisU/9Xu6CrwndEiPnLjaC8Owpmq12UYZ2TpzCfZdZcorZ1OVOjeuN vm7E1lnovB6TvYJOijVC7q7fecEoXTW6vogMa/uceDhCccLTvxmLOVxvZeLIDkeTwlr0bf 4cgAqwHukEZ1GIe4wqbrbgQDmi08KaBQhFJ+XFxDqIsWWscDqcVg0Kezf9P1rcnNGgOb4E +wnx7QtaEEL9AG8uEDSkssp2g1BrTgYoW6UpcuUdAlhArFEh424m/BZc2F1VTn2/sF+VAw B6/PzT6IaT0omR+k2BU5WmVItxtisbdl/n4/QA9MTOoA2F/D8EdE9tiIpumK+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 4TZft36j5Gz11Xq; Wed, 14 Feb 2024 13:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EDwJEU075717; Wed, 14 Feb 2024 13:58:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EDwJ0N075714; Wed, 14 Feb 2024 13:58:19 GMT (envelope-from git) Date: Wed, 14 Feb 2024 13:58:19 GMT Message-Id: <202402141358.41EDwJ0N075714@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Richard Scheffenegger Subject: git: fcea1cc9711a - main - tcp: fix RTO ssthresh for non-6675 pipe calculation 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rscheff X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fcea1cc9711aa774f6fac305418db4d42b64a5bd Auto-Submitted: auto-generated The branch main has been updated by rscheff: URL: https://cgit.FreeBSD.org/src/commit/?id=fcea1cc9711aa774f6fac305418db4d42b64a5bd commit fcea1cc9711aa774f6fac305418db4d42b64a5bd Author: Richard Scheffenegger AuthorDate: 2024-02-14 13:51:39 +0000 Commit: Richard Scheffenegger CommitDate: 2024-02-14 13:51:53 +0000 tcp: fix RTO ssthresh for non-6675 pipe calculation Follow up on D43768 to properly deal with the non-default pipe calculation. When CC_RTO is processed, the timeout will have already pulled back snd_nxt. Further, snd_fack is not pulled along with snd_una. Reviewed By: tuexen, #transport Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D43876 --- sys/netinet/cc/cc.c | 2 +- sys/netinet/cc/cc_cubic.c | 2 +- sys/netinet/cc/cc_dctcp.c | 2 +- sys/netinet/cc/cc_htcp.c | 2 +- sys/netinet/cc/cc_newreno.c | 2 +- sys/netinet/tcp_input.c | 4 ++++ 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sys/netinet/cc/cc.c b/sys/netinet/cc/cc.c index a3d19e31d438..c2965b1e6a48 100644 --- a/sys/netinet/cc/cc.c +++ b/sys/netinet/cc/cc.c @@ -492,7 +492,7 @@ newreno_cc_cong_signal(struct cc_var *ccv, uint32_t type) if (V_tcp_do_newsack) { pipe = tcp_compute_pipe(ccv->ccvc.tcp); } else { - pipe = CCV(ccv, snd_nxt) - + pipe = CCV(ccv, snd_max) - CCV(ccv, snd_fack) + CCV(ccv, sackhint.sack_bytes_rexmit); } diff --git a/sys/netinet/cc/cc_cubic.c b/sys/netinet/cc/cc_cubic.c index dcb096af6cbf..eb1587d44427 100644 --- a/sys/netinet/cc/cc_cubic.c +++ b/sys/netinet/cc/cc_cubic.c @@ -479,7 +479,7 @@ cubic_cong_signal(struct cc_var *ccv, uint32_t type) if (V_tcp_do_newsack) { pipe = tcp_compute_pipe(ccv->ccvc.tcp); } else { - pipe = CCV(ccv, snd_nxt) - + pipe = CCV(ccv, snd_max) - CCV(ccv, snd_fack) + CCV(ccv, sackhint.sack_bytes_rexmit); } diff --git a/sys/netinet/cc/cc_dctcp.c b/sys/netinet/cc/cc_dctcp.c index 41db7e0811aa..ae0a56839449 100644 --- a/sys/netinet/cc/cc_dctcp.c +++ b/sys/netinet/cc/cc_dctcp.c @@ -296,7 +296,7 @@ dctcp_cong_signal(struct cc_var *ccv, uint32_t type) if (V_tcp_do_newsack) { pipe = tcp_compute_pipe(ccv->ccvc.tcp); } else { - pipe = CCV(ccv, snd_nxt) - + pipe = CCV(ccv, snd_max) - CCV(ccv, snd_fack) + CCV(ccv, sackhint.sack_bytes_rexmit); } diff --git a/sys/netinet/cc/cc_htcp.c b/sys/netinet/cc/cc_htcp.c index 7500446d3051..949715a69c67 100644 --- a/sys/netinet/cc/cc_htcp.c +++ b/sys/netinet/cc/cc_htcp.c @@ -327,7 +327,7 @@ htcp_cong_signal(struct cc_var *ccv, uint32_t type) if (V_tcp_do_newsack) { pipe = tcp_compute_pipe(ccv->ccvc.tcp); } else { - pipe = CCV(ccv, snd_nxt) - + pipe = CCV(ccv, snd_max) - CCV(ccv, snd_fack) + CCV(ccv, sackhint.sack_bytes_rexmit); } diff --git a/sys/netinet/cc/cc_newreno.c b/sys/netinet/cc/cc_newreno.c index 4f55fb7e0f7a..71f2764ef4bc 100644 --- a/sys/netinet/cc/cc_newreno.c +++ b/sys/netinet/cc/cc_newreno.c @@ -431,7 +431,7 @@ newreno_cong_signal(struct cc_var *ccv, uint32_t type) if (V_tcp_do_newsack) { pipe = tcp_compute_pipe(ccv->ccvc.tcp); } else { - pipe = CCV(ccv, snd_nxt) - + pipe = CCV(ccv, snd_max) - CCV(ccv, snd_fack) + CCV(ccv, sackhint.sack_bytes_rexmit); } diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index b3201750c1e6..f023d7477790 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -461,6 +461,10 @@ cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type) tp->t_badrxtwin = 0; break; } + if (SEQ_LT(tp->snd_fack, tp->snd_una) || + SEQ_GT(tp->snd_fack, tp->snd_max)) { + tp->snd_fack = tp->snd_una; + } if (CC_ALGO(tp)->cong_signal != NULL) { if (th != NULL) From nobody Wed Feb 14 14:11: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 4TZg8z4Svjz59xWs; Wed, 14 Feb 2024 14:11: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZg8z3zj7z4pC4; Wed, 14 Feb 2024 14:11:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707919875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vhHQleNAtrciCQG4xB9Au9fCB4zuI0qdkgbENrAIJQU=; b=DFPVXM0knc6G0BLRj7o2lMBzVrrIh75/G0n1HYC/HDPYebDi3oy3PFFQkdlmkO7SXppLk+ h29soknsUZY7kx5774A95GUjg8ogFJcsHV+cMxbh97xn2lqY9pP/0cPdQQNAfmwRWKPV4x 9GyAqjwe0KEOpx3MHh0pLdyoZuZab6BBjnyVTWkAsJCyOVfRnAVCNdildet+DnivWr1IiS Bia/1yMTWM75kOUDKjytP7+/20aQYUiMvzUeY/cdjf/iwN8mfj0eF+Q8SR9zMiQ8fSWnzT O8ChUs3w/fbojfxvjSSs0s8nPrV7C4XPum/8iMW8dvqrsuKBil/B/5jUXCgkSg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707919875; a=rsa-sha256; cv=none; b=DT5mjLIYlRCP28mE68DOc0zLt8zcMnx7zZbXH7HMDO9nm0QgtK4Ggu6EVEg0BrvanlGh4t K2riq0kANJzqp04CmWHJoIoYVCHhlAYQ2VhNPXu8pV8rMY2GjYr4Rc845lE4C0mdCMZ/H/ ZX3L/61UcD4iJtzXY2DJq4O5RS/zTglKPgF6JCtPu1SUc5UbtCY8jhOcA5VMTM7w9jKe36 FktkA+LXvnMgSEvJs852JwhK79UgRYHjI0oYlGuIegQuQ915bdd4WFXFjbFPGb/vhD6xjH 5i0FWHDIlE0ZO7+foJ2POtGbNJQ4/cJ89LvzmWE4yC+5PAWWsbKV0prdmergOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707919875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vhHQleNAtrciCQG4xB9Au9fCB4zuI0qdkgbENrAIJQU=; b=wmpSkhCUBY3KwNTfUDqi939BsRk57svs3hnsUjm2zXsqXtmYj7WjgcPFiMYHFqP3XLzjEg r1trqaIm6WQyNqOT90bAjlKh4zYFarQ2aN0sKdDe1IfvOd5ywuvSm7y2/Ydy+/BN9D60N8 Hpmdog03zsLf5uyoGCfo/NuXkhjxzn+ErzvqWCAEEv7q5YuNrB89kmc74jKZzoFHPYKG2P zl6UkOSNAhOk1YAQLJMSiB90E+imRC00MuRFIxwiTZJptbtXMBXfErbJ5ks5TY458w9d5G HJH8vW0VZPtBPcnQJJuBSEkVx7MFt0nd6/VzTSrnGzD3xXqUk0GV68uE4hqIWA== 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 4TZg8z34K6z11Hc; Wed, 14 Feb 2024 14:11:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EEBFVw007304; Wed, 14 Feb 2024 14:11:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EEBFRe007299; Wed, 14 Feb 2024 14:11:15 GMT (envelope-from git) Date: Wed, 14 Feb 2024 14:11:15 GMT Message-Id: <202402141411.41EEBFRe007299@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: bbd29c4394de - main - wlan(4) - remove an(4) reference 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: bbd29c4394de2750b6137c46bf4e577805a4120a Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=bbd29c4394de2750b6137c46bf4e577805a4120a commit bbd29c4394de2750b6137c46bf4e577805a4120a Author: Christopher Davidson AuthorDate: 2024-02-14 04:27:13 +0000 Commit: Ed Maste CommitDate: 2024-02-14 14:11:00 +0000 wlan(4) - remove an(4) reference Fixes: 663b174b5b53 ("an: Remove driver") Pull request: https://github.com/freebsd/freebsd-src/pull/1120 --- share/man/man4/wlan.4 | 1 - 1 file changed, 1 deletion(-) diff --git a/share/man/man4/wlan.4 b/share/man/man4/wlan.4 index 233b29bb89bd..4cd1bfbdc9d5 100644 --- a/share/man/man4/wlan.4 +++ b/share/man/man4/wlan.4 @@ -166,7 +166,6 @@ not ratified and subject to change. Be aware that this specification is incompatible with earlier drafts. Stations implementing earlier drafts (e.g., Linux) may be incompatible. .Sh SEE ALSO -.Xr an 4 , .Xr ath 4 , .Xr bwi 4 , .Xr bwn 4 , From nobody Wed Feb 14 14:24: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 4TZgSh238jz5B0LJ; Wed, 14 Feb 2024 14:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZgSh139kz4qy8; Wed, 14 Feb 2024 14:24:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707920692; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mbMo7axt9vLxqaMlUREvaT7mtS2gvpcP7PSYAHZKaJw=; b=v+d2piXGTknvfiD3Qc9a2d3fGV7g0lZw3VxMsGNTZahSgrF5Wnph0SlsFs4h1M9SZGKcWV uncYc+htkQZqy4EFEoQNtFo+6lIoewPUDgirJR1YFhMmnIxH1WtcLDfNYbGP1MkIh3zBUm y069EI37G2BiiZ7tQXgRWaOSKr4rtrF3fILAeiEwMbO2xb0nr5K/QZVb09CkLgkRBEsmDW ew0GUmFYBWGhWi8+LsDaz8Wn5A027JCqP1ghcayUUGYaCYTJMBaEv4Kw4ur0maGCojs2Ur /fl6WEFkxtfxBx+YPkK75XrCKqsoAgqbiGK5nfKox1z5piTfTiqkrbEQhwEHWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707920692; a=rsa-sha256; cv=none; b=y0pFouoQiqSLXh088uMHa3nPjEVrpr12LtwI8zQDY/QqZqe/ltATYQndubI6ARyZOmNF/E dvuzI8D0McWcvI9h0xlHz8O+dF2Bm2hqmAAr4tuIcssTJJDEj5EYNENUgG+QF8+R6p7rlT XYwPRhpiVUQXGz1dp3FiiWMzj72c38oXBvzT4jTXZNc442tPN3Q0iQvIq8e5KbKQS/9c4x 9mLcZQplsY0xnMIJwY8ExYVMbnyoHpnfRmZP0VCRucPOIHc2CQiXDkgZVcTHOc+wOiWGDJ G8vA1Cj0Ux4jdKY9gamXBprNsDOJK99b+k4BkWHHmmt99SZTpGi3hViW9bRgUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707920692; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mbMo7axt9vLxqaMlUREvaT7mtS2gvpcP7PSYAHZKaJw=; b=kAehdQhXL2JUfOGznA2Ak5UCcT9zJx+Yqc0dKL6xqwdN6jko3O/mgru3/9TVTrKEEg4Uz9 a7MAyN+QakXGDJHio8sko7MJXIEnBpXMvgj46x5dSdyooJZJ8CDCsOjg6uvZ6w4KZSjdzv mix4OjEyvozLrDrsStEE+eYZBWfy+SY1cnfM9H2nqWoMcG23ekUu75odJZrfQtov93grzt mEttkE86xPSlmUbPmx3GXEoXIs1+JAtiHCNiW+FnAPzcxw2l3kR2ECr1BJMb972WkpLWy1 9BJd07/rGin9pq5gaBY1EEhhqxx1/EM9aiqE9SmhXmQpVr033mzju6KkLHtA3Q== 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 4TZgSg71zRz12HS; Wed, 14 Feb 2024 14:24:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EEOpaX028866; Wed, 14 Feb 2024 14:24:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EEOpeM028863; Wed, 14 Feb 2024 14:24:51 GMT (envelope-from git) Date: Wed, 14 Feb 2024 14:24:51 GMT Message-Id: <202402141424.41EEOpeM028863@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: 2198221bd9df - main - sched_setscheduler(2): Change realtime privilege check 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 2198221bd9df0ceb69945120bc477309a5729241 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=2198221bd9df0ceb69945120bc477309a5729241 commit 2198221bd9df0ceb69945120bc477309a5729241 Author: Florian Walpen AuthorDate: 2024-02-14 13:50:44 +0000 Commit: Olivier Certner CommitDate: 2024-02-14 14:24:11 +0000 sched_setscheduler(2): Change realtime privilege check Check for privilege PRIV_SCHED_SETPOLICY instead of PRIV_SCHED_SET, to at least make it coherent with what is done at thread creation when a realtime policy is requested, and have users authorized by mac_priority(4) pass it. This change is good enough in practice since it only allows 'root' (as before) and mac_priority(4)'s authorized users in (the point of this change), without other side effects. More changes in this area, to generally ensure that all privilege checks are consistent, are going to come as olce's priority revamp project lands. (olce: Expanded the explanations.) PR: 276962 Reported by: jbeich Reviewed by: olce Approved by: emaste (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D43835 --- sys/kern/p1003_1b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/p1003_1b.c b/sys/kern/p1003_1b.c index 21c9e3a27039..6259f7092487 100644 --- a/sys/kern/p1003_1b.c +++ b/sys/kern/p1003_1b.c @@ -233,8 +233,8 @@ kern_sched_setscheduler(struct thread *td, struct thread *targettd, targetp = targettd->td_proc; PROC_LOCK_ASSERT(targetp, MA_OWNED); - /* Don't allow non root user to set a scheduler policy. */ - error = priv_check(td, PRIV_SCHED_SET); + /* Only privileged users are allowed to set a scheduler policy. */ + error = priv_check(td, PRIV_SCHED_SETPOLICY); if (error) return (error); From nobody Wed Feb 14 14:59: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 4TZhDN2zh3z5B4y5; Wed, 14 Feb 2024 14:59: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZhDN2N8Hz4vgd; Wed, 14 Feb 2024 14:59:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707922756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1R6Qogy6T4h5u/zm+rlQioEH3QNzyvtSXnuUI5xz+Pc=; b=AfVWsew+HYvOF4wX18VDj2x/Gn+DkCKz/Rb90FOeJq126z4dhwdfu4HJIN/es0+bVxSR6u qy0Tc6EOhZBkuJzKjmaWWEU+tfNeRwXpTRqfsrxbVg1woemv0R59jA0wd4zlS0Ks9X/mFW 6ZrEhEQuObjQtl945l1IMSPpkOd/Ho1RqJk2OeOLx1UjgE602ibvCtWM3bqX5E8/50oAox xSW9yUjSiWrR2fPtlhOmbDK8w0gRBW4aFHzafEdc2ePH0bnKU5U3KUWjepbJ4VIQ3srZnr 6FSHya7dajLDmMmY6n8DzlRhTodoou7hifhN3nGYYucxsaC0fyOY+Tx7dhSaiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707922756; a=rsa-sha256; cv=none; b=jslnvx9QG6zY44mu2q9686o8GXg7BVzk94xp6d2OxEVq4rh6qZ2PljX6CpyY6DVc3Nl4Pf siiElqCHF3OQMECKHPw6nu0wkGjEHrCJ3h7w9c8vztTGe/GqLqLefaoTwKHegdKEfZkXmm iTkz64as+lO7+grMEYThS8L2OWhGuRTxhSLzHOcFuKult3jwWV0+stJJEb6gJ+Z0yI8Mbg D0Pey9M1mSykMUHWvcszheu5hwTCkHQ2Wv8V14Rw/CR1bs3Iq85T5SvxmI29ApyoPGeQGQ qndve/OvME5d+OdURv4n2T3sfY4VfkRHuK2h9oFcD6QDijZ7eh5K8CsBu2bLgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707922756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1R6Qogy6T4h5u/zm+rlQioEH3QNzyvtSXnuUI5xz+Pc=; b=yCcddYv9kvJaUDZhJnL1x3nktMRQtTbtUHwYamWzM9pn4qnnlYnruygDDl10f9DixwfTh0 n8sbW1iLwjlmBvzBYDmZoRArMmRPUJ/VSBOlyJShxzjb+jTd3uOI0aCqPbYXSAHhHqw9hM 9yNv8zvBSmM7eydpKZJ4luBiwXI8gdJRoCsVpa4HwMA88/dvMhW6DIxrFHktbf9n1U7L6T YqzEDMSr2yBUku7a5Rid+GeJZ4sYaDbE8F6KzJVNOSHdSJOxRma2QuZMCXt9ZVGaVKgEHj IG1tAslJKmKraeuI4UbiaDPCRUoIQosarYFf/aiTfTPWz3qzrGaZMByRsCmDvA== 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 4TZhDN1Pq9z12kh; Wed, 14 Feb 2024 14:59:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EExGRe080297; Wed, 14 Feb 2024 14:59:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EExGvQ080294; Wed, 14 Feb 2024 14:59:16 GMT (envelope-from git) Date: Wed, 14 Feb 2024 14:59:16 GMT Message-Id: <202402141459.41EExGvQ080294@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: f48cd806e04a - main - build: Do not run ctfconvert on VDSO files 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: f48cd806e04a7d6f459cfd93dba283465d40e190 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f48cd806e04a7d6f459cfd93dba283465d40e190 commit f48cd806e04a7d6f459cfd93dba283465d40e190 Author: Mark Johnston AuthorDate: 2024-02-13 23:06:58 +0000 Commit: Mark Johnston CommitDate: 2024-02-14 14:57:38 +0000 build: Do not run ctfconvert on VDSO files Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43877 --- sys/conf/files.amd64 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64 index 5eae8a0de3c2..cb5ed560a82e 100644 --- a/sys/conf/files.amd64 +++ b/sys/conf/files.amd64 @@ -14,12 +14,14 @@ include "conf/files.x86" elf-vdso.so.o standard \ dependency "$S/amd64/amd64/sigtramp.S assym.inc $S/conf/vdso_amd64.ldscript $S/tools/amd64_vdso.sh" \ compile-with "env AWK='${AWK}' NM='${NM}' LD='${LD}' CC='${CC}' DEBUG='${DEBUG}' OBJCOPY='${OBJCOPY}' ELFDUMP='${ELFDUMP}' S='${S}' sh $S/tools/amd64_vdso.sh" \ + no-ctfconvert \ no-implicit-rule before-depend \ clean "elf-vdso.so.o elf-vdso.so.1 vdso_offsets.h sigtramp.pico" # elf-vdso32.so.o optional compat_freebsd32 \ dependency "$S/amd64/ia32/ia32_sigtramp.S ia32_assym.h $S/conf/vdso_amd64_ia32.ldscript $S/tools/amd64_ia32_vdso.sh" \ compile-with "env AWK='${AWK}' NM='${NM}' LD='${LD}' CC='${CC}' DEBUG='${DEBUG}' OBJCOPY='${OBJCOPY}' ELFDUMP='${ELFDUMP}' S='${S}' sh $S/tools/amd64_ia32_vdso.sh" \ + no-ctfconvert \ no-implicit-rule before-depend \ clean "elf-vdso32.so.o elf-vdso32.so.1 vdso_ia32_offsets.h ia32_sigtramp.pico" # From nobody Wed Feb 14 15:17: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 4TZhdK3nNFz5B74x; Wed, 14 Feb 2024 15:17: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZhdK3GD8z3y7j; Wed, 14 Feb 2024 15:17:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707923845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4zs1hpJFjKCo7ZYlv+UN9hKWoXJIg3nWHmaH90kq864=; b=iO0NSrJ3IqC1S20JxWGb9d581b/uYWqjHwZpOBdFH4LcCE01L5cla/WuR0N0pujQaXJVGU GsC8cpH++wzC1ygpxpeZM3zLUN98Xn5nU8D6h0FdhbXco8qkdnulaFeL7+AnPQ1HOhdjs7 q69aLmISGJ0VMzbupLc8N6bg3jl/+BgX924E4XH9NximMznIda1TG9gKURFDrsdeDRYYw9 20+Jfdj9a3oqvmdOSYYpw8AtW7wtctUSzBa4QKs3i4HxptahfiwLJJnTvOJw3hJmJnyxEU uQe4AlzoqaNhDGcKvrHOXT/bHLLYDQs1B/uiwgvnLmA9w7azFdBkDp/ga+Utkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707923845; a=rsa-sha256; cv=none; b=rBLBOk5Y4zFOAoAovaDRSo541L6ge2mK2nhNOL61Fk+fASMODEhiiyrFEA4n2CXkS/V6oj 16ve2jQfi5IN3A79NuC51+zcCx/8Z7Z6PP9VJ4MfcU79+5Z1xvQvgP67gax9HEX32LWqLV xSvGQo6J7CB84BiYipxRrL/6IHsR1t/lPKNHjpj7mzRDsMdYTGU7hQ+dwJ22tWzUhrjE1O esiYgJGYa5ovlsC8i+5R9JWneNqg+wq2iXrPb1R0c5eybLPZ7ny5opJYbYtqSo13mhQCJ4 sDpVs+CdRAfiWclbrOAsZFRirRwu6i4VGDq/z1a7MVVhDfVT/Gl7nERmvw3WGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707923845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4zs1hpJFjKCo7ZYlv+UN9hKWoXJIg3nWHmaH90kq864=; b=gT4Xosbvc0cJZmXcl2nGGCMxKeS4VmXteMNQ3q+S1jVzLepKTmoLsLcnd3AFW8k+wDlvJc ZJcKO88XWRKSdKghz0kqfU4ew1fBO+M+WKy+vT2WjxmgZ6O4IXxfdI5zkmf6Z3tZENJarm ZEkAu3jVH0LqRaEmCJOgOGsuJFol59Mz/mtzJ8Ri1fdbYlOkpl93u3FZDgsBWKYFOUD2BT RKvihFr2LmLiAqJO0Myu6Wcihd8WDW69Fo2LD4K4P/pBXM+yAGSiFcLQcp+szK8Cj3Lwre 7Vulkf+vY9SGfiABbBp/GV7hz6zAmWddtFd192oV0Ipafz1TgK9X/NR2D2KJSQ== 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 4TZhdK2ByKz13N1; Wed, 14 Feb 2024 15:17:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EFHP8n015184; Wed, 14 Feb 2024 15:17:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EFHPPi015181; Wed, 14 Feb 2024 15:17:25 GMT (envelope-from git) Date: Wed, 14 Feb 2024 15:17:25 GMT Message-Id: <202402141517.41EFHPPi015181@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: 94b86c12f14e - main - release: de-duplicate arm.subr fstab logic 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 94b86c12f14e69ace1bffe23c15c77a7def23216 Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=94b86c12f14e69ace1bffe23c15c77a7def23216 commit 94b86c12f14e69ace1bffe23c15c77a7def23216 Author: Mitchell Horne AuthorDate: 2024-02-14 15:11:41 +0000 Commit: Mitchell Horne CommitDate: 2024-02-14 15:16:54 +0000 release: de-duplicate arm.subr fstab logic These days, the entries are the identical for GPT and MBR. Reviewed by: manu, karels, imp MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43847 --- release/tools/arm.subr | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/release/tools/arm.subr b/release/tools/arm.subr index 2a3a278fbee6..6c53724ed52f 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -199,18 +199,10 @@ arm_install_base() { echo '# Custom /etc/fstab for FreeBSD embedded images' \ > ${CHROOTDIR}/${DESTDIR}/etc/fstab - if [ "${PART_SCHEME}" = "GPT" ]; then - echo "/dev/ufs/rootfs / ufs rw 1 1" \ - >> ${CHROOTDIR}/${DESTDIR}/etc/fstab - echo "/dev/msdosfs/EFI /boot/efi msdosfs rw,noatime 0 0" \ - >> ${CHROOTDIR}/${DESTDIR}/etc/fstab - fi - if [ "${PART_SCHEME}" = "MBR" ]; then - echo "/dev/ufs/rootfs / ufs rw 1 1" \ - >> ${CHROOTDIR}/${DESTDIR}/etc/fstab - echo "/dev/msdosfs/EFI /boot/efi msdosfs rw,noatime 0 0" \ - >> ${CHROOTDIR}/${DESTDIR}/etc/fstab - fi + echo "/dev/ufs/rootfs / ufs rw 1 1" \ + >> ${CHROOTDIR}/${DESTDIR}/etc/fstab + echo "/dev/msdosfs/EFI /boot/efi msdosfs rw,noatime 0 0" \ + >> ${CHROOTDIR}/${DESTDIR}/etc/fstab echo "tmpfs /tmp tmpfs rw,mode=1777 0 0" \ >> ${CHROOTDIR}/${DESTDIR}/etc/fstab From nobody Wed Feb 14 15:17: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 4TZhdL5Vkpz5B74y; Wed, 14 Feb 2024 15:17: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZhdL47nhz3yB8; Wed, 14 Feb 2024 15:17:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707923846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PoRF1HI5IDoI+CEnAbhwpvOhMsf29bEsPBp6uDT10fo=; b=Pfs7buIACO0Mv3szMAfizVdEEeMv3ap962r765xL8oB1JS9uE2pyf0YW3BuUHCRPTAWoX/ kwfxiOEo4QJnBNNiw8KXWN7k6Kz6lwToRSz1AkuyQSmpANo3vKzJ5JrrImCXs+wxGSiBya Ql1c1wsh+j+g6RDNTAkbpDqK2er8YiaPzxwuc4+RAfsxGBLVM7PPbB/cSrR6mnLao4whEW YBmbzs4KYh6HOh2Fs/PLeufi+Kgvl9Gu4ytpFVT0Ah/ex4gXHC0Bjk/hJ8xNnYwkU6NDh4 3IbF6iInxKtj8pJ5rmrqVl7rSUo3RViFaBo9pf+AsJRyVDqkHUp/zHK9iKd+rA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707923846; a=rsa-sha256; cv=none; b=XaifzDaR1NxDN2E9oscMaVg2Nb9fcK2OzQsxZC9qVtaId2ynZgh3tuWYXzTkDgMgDrcwsS 9ZzLcmlv48C6ZMACWKank6E0ih6djbPAmaf6r7Cz2Dsl+ccUB0ocnsDgyT1neCULDOrLmL F8QcBf2rTa7s7BgiMIYob249W/woxQJXiy0XDI2bdC1iK8ZVdwKe/jTIsTMm2E0C5eNRFI jPZ0C9uhWBaUEAAC4ITWU2CkHAeROqSh/X1wY4ZqEy3GdSIgDidzPqNoZmuj03QJnf5wB0 T1is/6yMGW8osXVexGJPFpOsem0Cb6J1uvaAAZV4Y5MtsSoTVYotJz2ZdqR9Sw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707923846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PoRF1HI5IDoI+CEnAbhwpvOhMsf29bEsPBp6uDT10fo=; b=dOqaLuhRWFIIx5dm6QChDkGtoWZ5qRSdmUWtGh1Ts43ZBX6FpCXfQzJFvZIDaS/RlyczQA wtN0a2ylBkJCiw5qA1H6nG9Dy/cycOt/Ar3jgivlDRBsLtpYidGGRpmJsp3ALuE4lqEYdf k4RxFqBapvCWe+AfMFxRIp9TeGORHvelafOKH1YFdEHdvJRIkvyHz5MnE6eEPChyf4Og1z EN2fRWZWYVnHe1RB/3za9tQYiQGLuWvPw1/sK7WN8Xiapkp0cMJUyVwwRLnTpBXDDtksnD 9WR2g7iRCudO0xIb7mxG+Cb4/53UOXTcg4C3w5QAa+ETPK20l8+RMhLruzip4w== 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 4TZhdL2wVlz13N2; Wed, 14 Feb 2024 15:17:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EFHQSH015240; Wed, 14 Feb 2024 15:17:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EFHQRx015237; Wed, 14 Feb 2024 15:17:26 GMT (envelope-from git) Date: Wed, 14 Feb 2024 15:17:26 GMT Message-Id: <202402141517.41EFHQRx015237@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: 2af03ebfb853 - main - release: make SD card partition layout more flexible 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 2af03ebfb853e918554e86ee0e37cf4b30a93bd0 Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=2af03ebfb853e918554e86ee0e37cf4b30a93bd0 commit 2af03ebfb853e918554e86ee0e37cf4b30a93bd0 Author: Mitchell Horne AuthorDate: 2024-02-14 15:12:29 +0000 Commit: Mitchell Horne CommitDate: 2024-02-14 15:16:54 +0000 release: make SD card partition layout more flexible Currently the partition layout is hardcoded to create an EFI/FAT partition and a UFS root partition, with some logic to handle GPT/MBR differences. On RISC-V platforms we are seeing the emerging pattern that firmware should be placed in a partition of a known type, rather than just a known sector of the disk. Thus, some functionality is needed to customize the layout for SD card images. Add a hook, arm_create_partitions(), which can be overridden to insert additional platform-specific partitions, possibly preceding the standard EFI and UFS ones. A couple of new variables are added to track the indices, e.g. ROOTFSPART_SUFFIX=p2. In a couple places this de-duplicates the GPT/MBR logic. Reviewed by: manu, karels, imp MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43848 --- release/tools/arm.subr | 49 +++++++++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/release/tools/arm.subr b/release/tools/arm.subr index 6c53724ed52f..983c3ea75dc7 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -67,22 +67,25 @@ arm_create_disk() { # Create the target raw file and temporary work directory. chroot ${CHROOTDIR} gpart create -s ${PART_SCHEME} ${mddev} + + arm_create_partitions + if [ "${PART_SCHEME}" = "GPT" ]; then chroot ${CHROOTDIR} gpart add -t efi -l efi -a 512k -s ${FAT_SIZE} ${mddev} - chroot ${CHROOTDIR} newfs_msdos -L efi -F ${FAT_TYPE} /dev/${mddev}p1 chroot ${CHROOTDIR} gpart add -t freebsd-ufs -l rootfs -a 64k ${mddev} - chroot ${CHROOTDIR} newfs -U -L rootfs /dev/${mddev}p2 fi if [ "${PART_SCHEME}" = "MBR" ]; then chroot ${CHROOTDIR} gpart add -t '!12' -a 512k -s ${FAT_SIZE} ${mddev} chroot ${CHROOTDIR} gpart set -a active -i 1 ${mddev} - chroot ${CHROOTDIR} newfs_msdos -L efi -F ${FAT_TYPE} /dev/${mddev}s1 chroot ${CHROOTDIR} gpart add -t freebsd ${mddev} - chroot ${CHROOTDIR} gpart create -s bsd ${mddev}s2 - chroot ${CHROOTDIR} gpart add -t freebsd-ufs -a 64k -b 64k ${mddev}s2 - chroot ${CHROOTDIR} newfs -U -L rootfs /dev/${mddev}s2a + chroot ${CHROOTDIR} gpart create -s bsd ${mddev}${BSDLABEL_SUFFIX} + chroot ${CHROOTDIR} gpart add -t freebsd-ufs -a 64k -b 64k ${mddev}${BSDLABEL_SUFFIX} fi + # Create the EFI and UFS filesystems + chroot ${CHROOTDIR} newfs_msdos -L efi -F ${FAT_TYPE} /dev/${mddev}${EFIPART_SUFFIX} + chroot ${CHROOTDIR} newfs -U -L rootfs /dev/${mddev}${ROOTFSPART_SUFFIX} + return 0 } @@ -171,12 +174,7 @@ arm_setup_minimal_loader() { } arm_install_base() { - if [ "${PART_SCHEME}" = "GPT" ]; then - chroot ${CHROOTDIR} mount /dev/${mddev}p2 ${DESTDIR} - fi - if [ "${PART_SCHEME}" = "MBR" ]; then - chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${DESTDIR} - fi + chroot ${CHROOTDIR} mount /dev/${mddev}${ROOTFSPART_SUFFIX} ${DESTDIR} _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) @@ -230,14 +228,8 @@ arm_install_boot() { FATMOUNT="${DESTDIR%${KERNEL}}/fat" UFSMOUNT="${DESTDIR%${KERNEL}}/ufs" chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}" - if [ "${PART_SCHEME}" = "GPT" ]; then - dospart="/dev/${mddev}p1" - ufspart="/dev/${mddev}p2" - fi - if [ "${PART_SCHEME}" = "MBR" ]; then - dospart="/dev/${mddev}s1" - ufspart="/dev/${mddev}s2a" - fi + dospart="/dev/${mddev}${EFIPART_SUFFIX}" + ufspart="/dev/${mddev}${ROOTFSPART_SUFFIX}" chroot ${CHROOTDIR} mount_msdosfs ${dospart} ${FATMOUNT} chroot ${CHROOTDIR} mount ${ufspart} ${UFSMOUNT} @@ -271,3 +263,20 @@ arm_install_uboot() { arm_do_quirk() { # Override in the ${EMBEDDED_TARGET}/${BOARDNAME}.conf file. } + +arm_create_partitions() { + # Override in the ${EMBEDDED_TARGET}/${BOARDNAME}.conf file. + + # Set defaults for EFIPART_SUFFIX, ROOTFSPART_SUFFIX, and + # BSDLABEL_SUFFIX (MBR only), needed elsewhere. + + if [ "${PART_SCHEME}" = "GPT" ]; then + export EFIPART_SUFFIX=p1 + export ROOTFSPART_SUFFIX=p2 + fi + if [ "${PART_SCHEME}" = "MBR" ]; then + export EFIPART_SUFFIX=s1 + export BSDLABEL_SUFFIX=s2 + export ROOTFSPART_SUFFIX=s2a + fi +} From nobody Wed Feb 14 15:17: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 4TZhdN1Xglz5B751; Wed, 14 Feb 2024 15:17:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZhdM5bmRz3y5p; Wed, 14 Feb 2024 15:17:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707923847; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z88Rl4SNL19tsNE+W2wcwMLkAGuVTMJ2rerIi30lxCY=; b=j5T9D8Ehl6uH5bDVEPMlDFcN4z1Lr/58LQCUiMZmmjHPRvMbfYXtLkASHzT4LQQWNtKoda baZK3B4T4wMoI2ZVuDap20AZCz5mBQvzMsa7u3B15GQnnP/KcdtQ1JJ3UGufFFMiXHMWzd mSGwb40QRgtlEQoYDHt8pvAdbbh4WhX7b33r1R743047Tbx+R8OKK3DoPCreNFFoibDXFl ZH9VlsGCSeSju3OH2v3ONCPHH6Vc9an96PhMtqyeMHj0ir7OKrhZPnmLDIAjvL33mvRq0K 59ZdQ6x++IlYfDRZ18iSDDelj/kipfWpfrRV5+V/6EHtEs7gn9mme0aBK0459A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707923847; a=rsa-sha256; cv=none; b=vinAS2uaFfa2yn+g7Ff47FFKDzUO7RFC+THREppQqMCyCjie82jl9NmjfNgKfBqN72NAfI F2OfuyuTmNrxcGceKa+SoORYvJSgQlDSbCo8GEdA2aWlZT4CeEqMgd2iaewf6mK3cbTnES VNJJjj2s02eAPuCbBhGlCjfUBL6DMP5X0bopR0KO5ss2WZVZktZx+SCRHXD2+Lu2+s4VOB 17UfhQihRk9yxNf2JpWc3ZZvO/iQzgJbiUpvBX4EbwIYQgaL89CFa0bqkbqxXBO9gpwan8 GCU4YBHB8F+CcHeo/CLAHAgYNhehQoBtODvVM8YI/g1OhKn36WQ/EvRy+qmtPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707923847; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z88Rl4SNL19tsNE+W2wcwMLkAGuVTMJ2rerIi30lxCY=; b=ha7LNaIxI4HHzBy3vkZPyHII/3Gget3Y/GEkhDJ+nIcO9FdV4z2lHB+1MarLcj59tYj5p9 gUtphcICkvea6T0pboE8Bhi/a5g6Kyz/0VRhqul7Jwx/2qDpCghJcFR8io/PB/8rI4sVpC 424bg1zlk/PMzgDL7/q8p/dPDRcS4KoSfegIu1vRGrgVCfN8IdXs/d5Y3VXtYjHfwfrWnc LR1HfhN/grKR68WY+p36svzH4xlWg52LpItd7V906Rq2EOlEVvpNJol4YRlHrtNtnd5r3O hTr/+qnFJyZKo2E/C7F2zlew1E730r6p/u5VAiB+jSrEDEgShQZ4MHqKblnzEA== 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 4TZhdM3VCKz138b; Wed, 14 Feb 2024 15:17:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EFHRg8015287; Wed, 14 Feb 2024 15:17:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EFHRxX015284; Wed, 14 Feb 2024 15:17:27 GMT (envelope-from git) Date: Wed, 14 Feb 2024 15:17:27 GMT Message-Id: <202402141517.41EFHRxX015284@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: 3fb8f1272b50 - main - riscv: add firmware partitions to GENERICSD.conf 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 3fb8f1272b50cb87cb624b321f7b81e76627c437 Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=3fb8f1272b50cb87cb624b321f7b81e76627c437 commit 3fb8f1272b50cb87cb624b321f7b81e76627c437 Author: Mitchell Horne AuthorDate: 2024-02-14 15:12:57 +0000 Commit: Mitchell Horne CommitDate: 2024-02-14 15:16:54 +0000 riscv: add firmware partitions to GENERICSD.conf Create two partitions in the existing space at the beginning of the image (8MB). These are intended to hold u-boot SPL and u-boot proper. The partition types selected are compatible with SiFive boards, e.g. the HiFive Unmatched. They can easily be overridden for a platform that uses the same scheme but different partition types, e.g. the StarFive VisionFive v2. Firmware is not actually installed, this too is left for the user. It is not as simple to create the firmware partitions after the fact, e.g. with partition indices 3 and 4. It is a shortcoming of current day u-boot that the SPL loader looks for a specific partition index, rather than the partition type, meaning that we will fail to boot if partition 2 doesn't contain u-boot. Thus, our GENERICSD images become more generically usable with current RISC-V hardware/firmware platforms. Reviewed by: manu, karels, imp MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43849 --- release/riscv/GENERICSD.conf | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/release/riscv/GENERICSD.conf b/release/riscv/GENERICSD.conf index 7bd58bc9f97b..d4abbc7965b8 100644 --- a/release/riscv/GENERICSD.conf +++ b/release/riscv/GENERICSD.conf @@ -1,6 +1,4 @@ #!/bin/sh -# -# EMBEDDED_TARGET_ARCH="riscv64" EMBEDDED_TARGET="riscv" @@ -11,4 +9,18 @@ IMAGE_SIZE="6144M" KERNEL="GENERIC" MD_ARGS="-x 63 -y 255" PART_SCHEME="GPT" +EFIPART_SUFFIX=p3 +ROOTFSPART_SUFFIX=p4 export BOARDNAME="GENERICSD" + +arm_create_partitions() { + # Create two partitions for firmware, preceding EFI and ROOTFS: + # 1. u-boot SPL + # 2. u-boot loader + # + # The exact partition types can be rewritten by the user, but they should + # be reserved now. + + chroot ${CHROOTDIR} gpart add -t hifive-fsbl -l spl -a 512k -b 2m -s 2m ${mddev} + chroot ${CHROOTDIR} gpart add -t hifive-bbl -l uboot -a 512k -b 4m -s 4m ${mddev} +} From nobody Wed Feb 14 15:42: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 4TZjBp3ZNNz5BBjW; Wed, 14 Feb 2024 15:42: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZjBp2zqdz43Bw; Wed, 14 Feb 2024 15:42:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707925378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ANnkYPqO0re1QOCIHxU37cJ17r6BtIiJMktx20U9+pg=; b=AjdUu1ZcA33kybKCaFNEywxWGpJFl0egPdxZAXkWQmFstKRZfdhWs/qKYQwAFFEoAW8AZU +GA3NutksYoS7f8sBRIEH8olkzD6r775xxRGiEe9o8wDCanPzaYmQdjuD9buKI9VVgvzS3 HnmqH5A+jZRtl2uWrkYoCEXuUFhjY1ZKYIrIoZlQOiMpcYA55a3k8SaQHFnvxRQKFqKd/P S3sqsB0/L5YweF9NIO0YbuO+rhT2DkNtm4xOIV2w342y8DdgzqZGieAiALmM0wFiiwL7E/ LclOXWvsREvjxGVNLZvX8PZzvhhK9Zlta/BP0sHPn4+loYdzq1yuoJ9ovk8zdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707925378; a=rsa-sha256; cv=none; b=p23n8eE9nSWqN07K6+nlSzixSSnMPu9cnXvjHoombjlkwH6PyELDJAT7o2ezwNc8x7zE8y qqCyQuGMyWyJLbsz9PXV30Dg8GqWsu4OhGz2wB3DvtBz83+3kYWocdVXX7SAd5CEHXGahd VJ9fMmFTfTwBXNkWswgEZF3KiVb6Qtl9lIymla8uXjejdHxrYqRyeAcSSb8Lbu6xlJcWZ7 7NvoWRSD5ek/yOtKTqJqGO73XMSF8AO5ayZayUT8zs7ZQSdMXkK9rA1UZ1VFmrzOR+FIGw wHGjpdWaqn+7hM5kLtSTFSc1Wuh4LlQkVyOdEiIJsvg8j3ciuT1D/gn59B3geA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707925378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ANnkYPqO0re1QOCIHxU37cJ17r6BtIiJMktx20U9+pg=; b=eA+cwGr5s0x+Z769x1ncjQlBxHi6XKzsjs1bd4lnIiQRnAPIKchug7nL5vy6VM4PicETKH ntNZl3apcUOweIdu51oDX+R2DPQLfoX48o1n9Nu1YnCsNpOkST4/chg+dbR0nD2w+LiKN7 oEUJOY2Uklrekgvo7UEq5ercZmBdZrtj86Hwb0lJzco+VfijyHqzKXWilk9dB/HPH3M+7o 7SecK+kiOlqihfm4rsZWUhik6pXYo9ItZ/tgMR8MR0xD/aFfbmNnCV93bfFvMz9fBGA3co w5kRDJy7odDgGb1w+SKFA56SnnFQAg1MKCpLVAt7wHvCWx5IoWtcQQ7AfZ7xLQ== 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 4TZjBp1l25z13sP; Wed, 14 Feb 2024 15:42:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EFgwBc063875; Wed, 14 Feb 2024 15:42:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EFgwnn063872; Wed, 14 Feb 2024 15:42:58 GMT (envelope-from git) Date: Wed, 14 Feb 2024 15:42:58 GMT Message-Id: <202402141542.41EFgwnn063872@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: ee91dae43d23 - main - riscv: Introduce support for APLIC interrupt controller 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: ee91dae43d23a3fa94dca1c905157e66c73c45de Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=ee91dae43d23a3fa94dca1c905157e66c73c45de commit ee91dae43d23a3fa94dca1c905157e66c73c45de Author: Himanshu Chauhan AuthorDate: 2024-02-14 15:31:26 +0000 Commit: Mitchell Horne CommitDate: 2024-02-14 15:42:29 +0000 riscv: Introduce support for APLIC interrupt controller This patch introduces support for the RISC-V APLIC interrupt controller [1]. Currently, it is only supports direct mode, i.e. without an IMSIC and functionally replacing the legacy RISC-V PLIC. Work on IMSIC support is in progress. [1] https://github.com/riscv/riscv-aia/releases/tag/1.0 Reviewed by: mhorne Discussed with: jrtc27 MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D43293 --- sys/conf/files.riscv | 1 + sys/riscv/riscv/aplic.c | 554 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 555 insertions(+) diff --git a/sys/conf/files.riscv b/sys/conf/files.riscv index b6a87c63422b..be7ae2b40a08 100644 --- a/sys/conf/files.riscv +++ b/sys/conf/files.riscv @@ -27,6 +27,7 @@ libkern/memset.c standard libkern/strcmp.c standard libkern/strlen.c standard libkern/strncmp.c standard +riscv/riscv/aplic.c standard riscv/riscv/autoconf.c standard riscv/riscv/bus_machdep.c standard riscv/riscv/bus_space_asm.S standard diff --git a/sys/riscv/riscv/aplic.c b/sys/riscv/riscv/aplic.c new file mode 100644 index 000000000000..19b80409c0f2 --- /dev/null +++ b/sys/riscv/riscv/aplic.c @@ -0,0 +1,554 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2024 Himanshu Chauhan + * + * 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 "pic_if.h" + +#define APLIC_MAX_IRQS 1023 + +/* Smaller priority number means higher priority */ +#define APLIC_INTR_DEF_PRIO 1 + +static pic_disable_intr_t aplic_disable_intr; +static pic_enable_intr_t aplic_enable_intr; +static pic_map_intr_t aplic_map_intr; +static pic_setup_intr_t aplic_setup_intr; +static pic_post_ithread_t aplic_post_ithread; +static pic_pre_ithread_t aplic_pre_ithread; +static pic_bind_intr_t aplic_bind_intr; + +struct aplic_irqsrc { + struct intr_irqsrc isrc; + u_int irq; +}; + +struct aplic_softc { + device_t dev; + struct resource *mem_res; + struct resource *irq_res; + void *ih; + struct aplic_irqsrc isrcs[APLIC_MAX_IRQS + 1]; + unsigned int hart_indices[MAXCPU]; + int ndev; +}; + +#define APLIC_DOMAIN_CFG_IE (1UL << 8) /* Enable domain IRQs */ +#define APLIC_DOMAIN_CFG_DM (1UL << 2) /* IRQ delivery mode */ +#define APLIC_DOMAIN_CFG_BE (1UL << 0) /* Endianess */ + +#define APLIC_MODE_DIRECT 0 /* Direct delivery mode */ +#define APLIC_MODE_MSI 1 /* MSI delivery mode */ + +#define APLIC_SRC_CFG_DLGT (1UL << 10) /* Source delegation */ +#define APLIC_SRC_CFG_SM_SHIFT 0 +#define APLIC_SRC_CFG_SM_MASK (0x7UL << APLIC_SRC_CFG_SM_SHIFT) + +#define APLIC_SRC_CFG_SM_INACTIVE 0 /* APLIC inactive in domain */ +#define APLIC_SRC_CFG_SM_DETACHED 1 /* Detached from source wire */ +#define APLIC_SRC_CFG_SM_EDGE_RSE 4 /* Asserted on rising edge */ +#define APLIC_SRC_CFG_SM_EDGE_FLL 5 /* Asserted on falling edge */ +#define APLIC_SRC_CFG_SM_LVL_HI 6 /* Asserted when high */ +#define APLIC_SRC_CFG_SM_LVL_LO 7 /* Asserted when low */ + +/* Register offsets in APLIC configuration space */ +#define APLIC_DOMAIN_CFG 0x0000 +#define APLIC_SRC_CFG(_idx) (0x0004 + (((_idx) - 1) * 4)) +#define APLIC_TARGET(_idx) (0x3004 + (((_idx) - 1) * 4)) +#define APLIC_MMSIADDRCFG 0x1BC0 +#define APLIC_MMSIADDRCFGH 0x1BC4 +#define APLIC_SMSIADDRCFG 0x1BC8 +#define APLIC_SMSIADDRCFGH 0x1BCC +#define APLIC_SETIPNUM 0x1CDC +#define APLIC_CLRIPNUM 0x1DDC +#define APLIC_SETIENUM 0x1EDC +#define APLIC_CLRIENUM 0x1FDC +#define APLIC_SETIPNUM_LE 0x2000 +#define APLIC_SETIPNUM_BE 0x2004 +#define APLIC_GENMSI 0x3000 +#define APLIC_IDC_BASE 0x4000 + +#define APLIC_SETIE_BASE 0x1E00 +#define APLIC_CLRIE_BASE 0x1F00 + +/* Interrupt delivery control structure */ +#define APLIC_IDC_IDELIVERY_OFFS 0x0000 +#define APLIC_IDC_IFORCE_OFFS 0x0004 +#define APLIC_IDC_ITHRESHOLD_OFFS 0x0008 +#define APLIC_IDC_TOPI_OFFS 0x0018 +#define APLIC_IDC_CLAIMI_OFFS 0x001C + +#define APLIC_IDC_SZ 0x20 + +#define APLIC_IDC_IDELIVERY_DISABLE 0 +#define APLIC_IDC_IDELIVERY_ENABLE 1 +#define APLIC_IDC_ITHRESHOLD_DISABLE 0 + +#define APLIC_IDC_CLAIMI_PRIO_MASK 0xff +#define APLIC_IDC_CLAIMI_IRQ_SHIFT 16 +#define APLIC_IDC_CLAIMI_IRQ_MASK 0x3ff + +#define APLIC_IDC_CLAIMI_IRQ(_claimi) \ + (((_claimi) >> APLIC_IDC_CLAIMI_IRQ_SHIFT) \ + & APLIC_IDC_CLAIMI_IRQ_MASK) + +#define APLIC_IDC_CLAIMI_PRIO(_claimi) ((_claimi) & APLIC_IDC_CLAIMI_PRIO_MASK) + +#define APLIC_IDC_REG(_sc, _cpu, _field) \ + (APLIC_IDC_BASE + APLIC_IDC_##_field##_OFFS + \ + ((_sc->hart_indices[_cpu]) * APLIC_IDC_SZ)) + +#define APLIC_IDC_IDELIVERY(_sc, _cpu) \ + APLIC_IDC_REG(_sc, _cpu, IDELIVERY) + +#define APLIC_IDC_IFORCE(_sc, _cpu) \ + APLIC_IDC_REG(_sc, _cpu, IFORCE) + +#define APLIC_IDC_ITHRESHOLD(_sc, _cpu) \ + APLIC_IDC_REG(_sc, _cpu, ITHRESHOLD) + +#define APLIC_IDC_TOPI(_sc, _cpu) \ + APLIC_IDC_REG(_sc, _cpu, TOPI) + +#define APLIC_IDC_CLAIMI(_sc, _cpu) \ + APLIC_IDC_REG(_sc, _cpu, CLAIMI) + +#define APLIC_MK_IRQ_TARGET(_sc, _cpu, _prio) \ + (_sc->hart_indices[_cpu] << 18 | ((_prio) & 0xff)) + +#define aplic_read(sc, reg) bus_read_4(sc->mem_res, (reg)) +#define aplic_write(sc, reg, val) bus_write_4(sc->mem_res, (reg), (val)) + +static u_int aplic_irq_cpu; + +static inline int +riscv_cpu_to_hartid(int cpu) +{ + return pcpu_find(cpu)->pc_hart; +} + +static inline int +riscv_hartid_to_cpu(int hartid) +{ + int cpu; + + CPU_FOREACH(cpu) { + if (riscv_cpu_to_hartid(cpu) == hartid) + return cpu; + } + + return (-1); +} + +static int +fdt_get_hartid(device_t dev, phandle_t aplic) +{ + int hartid; + + /* Check the interrupt controller layout. */ + if (OF_searchencprop(aplic, "#interrupt-cells", &hartid, + sizeof(hartid)) == -1) { + device_printf(dev, + "Could not find #interrupt-cells for phandle %u\n", aplic); + return (-1); + } + + /* + * The parent of the interrupt-controller is the CPU we are + * interested in, so search for its hart ID. + */ + if (OF_searchencprop(OF_parent(aplic), "reg", (pcell_t *)&hartid, + sizeof(hartid)) == -1) { + device_printf(dev, "Could not find hartid\n"); + return (-1); + } + + return (hartid); +} + +static inline void +aplic_irq_dispatch(struct aplic_softc *sc, u_int irq, u_int prio, + struct trapframe *tf) +{ + struct aplic_irqsrc *src; + + src = &sc->isrcs[irq]; + + if (intr_isrc_dispatch(&src->isrc, tf) != 0) + if (bootverbose) + device_printf(sc->dev, "Stray irq %u detected\n", irq); +} + +static int +aplic_intr(void *arg) +{ + struct aplic_softc *sc; + struct trapframe *tf; + u_int claimi, prio, irq; + int cpu; + + sc = arg; + cpu = PCPU_GET(cpuid); + + /* Claim any pending interrupt. */ + claimi = aplic_read(sc, APLIC_IDC_CLAIMI(sc, cpu)); + prio = APLIC_IDC_CLAIMI_PRIO(claimi); + irq = APLIC_IDC_CLAIMI_IRQ(claimi); + + KASSERT((irq != 0), ("Invalid IRQ 0")); + + tf = curthread->td_intr_frame; + aplic_irq_dispatch(sc, irq, prio, tf); + + return (FILTER_HANDLED); +} + +static void +aplic_disable_intr(device_t dev, struct intr_irqsrc *isrc) +{ + struct aplic_softc *sc; + struct aplic_irqsrc *src; + + sc = device_get_softc(dev); + src = (struct aplic_irqsrc *)isrc; + + /* Disable the interrupt source */ + aplic_write(sc, APLIC_CLRIENUM, src->irq); +} + +static void +aplic_enable_intr(device_t dev, struct intr_irqsrc *isrc) +{ + struct aplic_softc *sc; + struct aplic_irqsrc *src; + + sc = device_get_softc(dev); + src = (struct aplic_irqsrc *)isrc; + + /* Enable the interrupt source */ + aplic_write(sc, APLIC_SETIENUM, src->irq); +} + +static int +aplic_map_intr(device_t dev, struct intr_map_data *data, + struct intr_irqsrc **isrcp) +{ + struct intr_map_data_fdt *daf; + struct aplic_softc *sc; + + sc = device_get_softc(dev); + + if (data->type != INTR_MAP_DATA_FDT) + return (ENOTSUP); + + daf = (struct intr_map_data_fdt *)data; + if (daf->ncells != 2 || daf->cells[0] > sc->ndev) { + device_printf(dev, "Invalid cell data\n"); + return (EINVAL); + } + + *isrcp = &sc->isrcs[daf->cells[0]].isrc; + + return (0); +} + +static int +aplic_probe(device_t dev) +{ + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + + if (!ofw_bus_is_compatible(dev, "riscv,aplic")) + return (ENXIO); + + device_set_desc(dev, "Advanced Platform-Level Interrupt Controller"); + + return (BUS_PROBE_DEFAULT); +} + +/* + * Setup APLIC in direct mode. + */ +static int +aplic_setup_direct_mode(device_t dev) +{ + struct aplic_irqsrc *isrcs; + struct aplic_softc *sc; + struct intr_pic *pic; + const char *name; + phandle_t node, xref, iparent; + pcell_t *cells, cell; + int error = ENXIO; + u_int irq; + int cpu, hartid, rid, i, nintr, idc; + + sc = device_get_softc(dev); + node = ofw_bus_get_node(dev); + + sc->dev = dev; + + if ((OF_getencprop(node, "riscv,num-sources", &sc->ndev, + sizeof(sc->ndev))) < 0) { + device_printf(dev, "Error: could not get number of devices\n"); + return (error); + } + + if (sc->ndev > APLIC_MAX_IRQS) { + device_printf(dev, "Error: invalid ndev (%d)\n", sc->ndev); + return (error); + } + + /* Request memory resources */ + rid = 0; + sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, + RF_ACTIVE); + if (sc->mem_res == NULL) { + device_printf(dev, + "Error: could not allocate memory resources\n"); + return (error); + } + + /* Set APLIC in direct mode and enable all interrupts */ + aplic_write(sc, APLIC_DOMAIN_CFG, + APLIC_MODE_DIRECT | APLIC_DOMAIN_CFG_IE); + + /* Register the interrupt sources */ + isrcs = sc->isrcs; + name = device_get_nameunit(sc->dev); + for (irq = 1; irq <= sc->ndev; irq++) { + isrcs[irq].irq = irq; + + error = intr_isrc_register(&isrcs[irq].isrc, sc->dev, + 0, "%s,%u", name, irq); + if (error != 0) + goto fail; + + aplic_write(sc, APLIC_SRC_CFG(irq), + APLIC_SRC_CFG_SM_DETACHED); + } + + nintr = OF_getencprop_alloc_multi(node, "interrupts-extended", + sizeof(uint32_t), (void **)&cells); + if (nintr <= 0) { + device_printf(dev, "Could not read interrupts-extended\n"); + goto fail; + } + + /* interrupts-extended is a list of phandles and interrupt types. */ + for (i = 0, idc = 0; i < nintr; i += 2, idc++) { + /* Skip M-mode external interrupts */ + if (cells[i + 1] != IRQ_EXTERNAL_SUPERVISOR) + continue; + + /* Get the hart ID from the CLIC's phandle. */ + hartid = fdt_get_hartid(dev, OF_node_from_xref(cells[i])); + if (hartid < 0) { + OF_prop_free(cells); + goto fail; + } + + /* Get the corresponding cpuid. */ + cpu = riscv_hartid_to_cpu(hartid); + if (cpu < 0) { + device_printf(dev, "Invalid cpu for hart %d\n", hartid); + OF_prop_free(cells); + goto fail; + } + + sc->hart_indices[cpu] = idc; + } + OF_prop_free(cells); + + /* Turn off the interrupt delivery for all CPUs within or out domain */ + CPU_FOREACH(cpu) { + aplic_write(sc, APLIC_IDC_IDELIVERY(sc, cpu), + APLIC_IDC_IDELIVERY_DISABLE); + aplic_write(sc, APLIC_IDC_ITHRESHOLD(sc, cpu), + APLIC_IDC_ITHRESHOLD_DISABLE); + } + + iparent = OF_xref_from_node(ofw_bus_get_node(intr_irq_root_dev)); + cell = IRQ_EXTERNAL_SUPERVISOR; + irq = ofw_bus_map_intr(dev, iparent, 1, &cell); + error = bus_set_resource(dev, SYS_RES_IRQ, 0, irq, 1); + if (error != 0) { + device_printf(dev, "Unable to register IRQ resource\n"); + return (ENXIO); + } + + rid = 0; + sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, + RF_ACTIVE); + if (sc->irq_res == NULL) { + device_printf(dev, + "Error: could not allocate IRQ resources\n"); + return (ENXIO); + } + + xref = OF_xref_from_node(node); + pic = intr_pic_register(sc->dev, xref); + if (pic == NULL) { + error = ENXIO; + goto fail; + } + + error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_CLK, + aplic_intr, NULL, sc, &sc->ih); + if (error != 0) { + device_printf(dev, "Unable to setup IRQ resource\n"); + return (ENXIO); + } + +fail: + return (error); +} + +static int +aplic_attach(device_t dev) +{ + int rc; + + /* APLIC with IMSIC on hart is not supported */ + if (ofw_bus_has_prop(dev, "msi-parent")) { + device_printf(dev, "APLIC with IMSIC is unsupported\n"); + return (ENXIO); + } + + rc = aplic_setup_direct_mode(dev); + + return (rc); +} + +static void +aplic_pre_ithread(device_t dev, struct intr_irqsrc *isrc) +{ + aplic_disable_intr(dev, isrc); +} + +static void +aplic_post_ithread(device_t dev, struct intr_irqsrc *isrc) +{ + aplic_enable_intr(dev, isrc); +} + +static int +aplic_setup_intr(device_t dev, struct intr_irqsrc *isrc, struct resource *res, + struct intr_map_data *data) +{ + struct aplic_irqsrc *src; + struct aplic_softc *sc; + + CPU_ZERO(&isrc->isrc_cpu); + + sc = device_get_softc(dev); + src = (struct aplic_irqsrc *)isrc; + + aplic_write(sc, APLIC_SRC_CFG(src->irq), APLIC_SRC_CFG_SM_EDGE_RSE); + + /* + * In uniprocessor system, bind_intr will not be called. + * So bind the interrupt on this CPU. If secondary CPUs + * are present, then bind_intr will be called again and + * interrupts will rebind to those CPUs. + */ + aplic_bind_intr(dev, isrc); + + return (0); +} + +static int +aplic_bind_intr(device_t dev, struct intr_irqsrc *isrc) +{ + struct aplic_softc *sc; + struct aplic_irqsrc *src; + uint32_t cpu, hartid; + + sc = device_get_softc(dev); + src = (struct aplic_irqsrc *)isrc; + + /* Disable the interrupt source */ + aplic_write(sc, APLIC_CLRIENUM, src->irq); + + if (CPU_EMPTY(&isrc->isrc_cpu)) { + cpu = aplic_irq_cpu = intr_irq_next_cpu(aplic_irq_cpu, + &all_cpus); + CPU_SETOF(cpu, &isrc->isrc_cpu); + } else { + cpu = CPU_FFS(&isrc->isrc_cpu) - 1; + } + + hartid = riscv_cpu_to_hartid(cpu); + + if (bootverbose) + device_printf(dev, "Bind irq %d to cpu%d (hart %d)\n", src->irq, + cpu, hartid); + + aplic_write(sc, APLIC_TARGET(src->irq), + APLIC_MK_IRQ_TARGET(sc, cpu, APLIC_INTR_DEF_PRIO)); + aplic_write(sc, APLIC_IDC_IDELIVERY(sc, cpu), + APLIC_IDC_IDELIVERY_ENABLE); + aplic_enable_intr(dev, isrc); + + return (0); +} + +static device_method_t aplic_methods[] = { + DEVMETHOD(device_probe, aplic_probe), + DEVMETHOD(device_attach, aplic_attach), + + DEVMETHOD(pic_disable_intr, aplic_disable_intr), + DEVMETHOD(pic_enable_intr, aplic_enable_intr), + DEVMETHOD(pic_map_intr, aplic_map_intr), + DEVMETHOD(pic_pre_ithread, aplic_pre_ithread), + DEVMETHOD(pic_post_ithread, aplic_post_ithread), + DEVMETHOD(pic_post_filter, aplic_post_ithread), + DEVMETHOD(pic_setup_intr, aplic_setup_intr), + DEVMETHOD(pic_bind_intr, aplic_bind_intr), + + DEVMETHOD_END +}; + +DEFINE_CLASS_0(aplic, aplic_driver, aplic_methods, sizeof(struct aplic_softc)); + +EARLY_DRIVER_MODULE(aplic, simplebus, aplic_driver, 0, 0, + BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE); From nobody Wed Feb 14 16: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 4TZkpz6Qkbz510KS for ; Wed, 14 Feb 2024 16: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZkpz5vbXz4FKw; Wed, 14 Feb 2024 16: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=1707929755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MS//wQPCy3yGNweduB1nwX03fdajuwKZTG9b+tT2DRA=; b=lUEgN0zifgo/3PvXCilTMqnqxyUKxGgrfPlJldJHiR3vmYJEblvVOLSsJomwrhrhrXTLD1 qb/XxGDz/NSwFRJyKQS2urLTGhODQWYNG4EmFU6KhavnIUH9BaD9RWmKk/cznm0lS7SIOI JKZSGpjcJAQL+makizAdJOO3IpdCpdKJIKFpP3fJJbpbINyFtzpNIMnsxWPczje18lnJRu z2eQTgL1ZDpgUN+BGWbG0az/xg+KhiOgvcFvf9iPr/DTkkch6dRttvadZ85Lb/ROHlnXta xvYclwkuEWbZWJyOXu2THmWvobOp9Pot2+llZUf4XIMp4r36m+ErNdCY8avJig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707929755; a=rsa-sha256; cv=none; b=joTjmSJgbASvo13HWL9+JMTtHY3CFyza/Gvzb500s2z6TRNQ+bMGz8V618xcSKnVzkXevx FElXZcr3SiCCMbptmfjUc+XXBn4yI6r0IMi/kxkaJ10KHGCJmOok8nQo9wrwCh4kVvI5YY QgrzHeQB+uimJN/2f6xZCpYlf9/u5TxDMoxDpaFVlbgmQc5P0EhsH0R3iJ98e8+5WXmUEQ yHe4wmQxKnwDQQQTE15RJ/L6YvYgdt+1hTslSLNwElE4cUH5QcRTfTUzm1mG/bxwxefxTB XTli1EYyUQ7VqqCm/9R5vJJOu1Kc2p3Y/QZ8l+TBcBJg84vdKZEhY5dd/aCqyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707929755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MS//wQPCy3yGNweduB1nwX03fdajuwKZTG9b+tT2DRA=; b=tVuASV8uZy6KJJEJlDWNfl5+33gQ65CvGhv/5HZ5eetICv726zrP+nXTuR4U/YBsIa79YR Sk5VzWFHEMSr9VuK/DOOLxeq770XXWqQee4PbGoWhVht4JYr72zTML+RGtLRjo2ggWDgUm WPzQC/wcgJDSA4i+pbFM8pHaoQaBE10ssNj9NKNbRgLUDMTeVf/JeDhTYejU2QVGXY9jpF H7ammBckja342dhFnlnD92FYGg8YelMb6cI7SevSzIiJT9geWi56y4XoUCt+3SIvRDYdOz yNvgoi2Lms8z+LDBqmarOg6gLFQfDEUDTsEHnmZdz8zmmhw8j04gOwqxqAdFuw== 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 4TZkpz4zX0z15Mg; Wed, 14 Feb 2024 16:55:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EGttIO081556; Wed, 14 Feb 2024 16:55:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EGtt1E081555; Wed, 14 Feb 2024 16:55:55 GMT (envelope-from git) Date: Wed, 14 Feb 2024 16:55:55 GMT Message-Id: <202402141655.41EGtt1E081555@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Martin Matuska Subject: git: 229b9f4ed05e..e0bd8118d04b - vendor/openzfs/master - 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mm X-Git-Repository: src X-Git-Refname: refs/heads/vendor/openzfs/master X-Git-Reftype: branch X-Git-Commit: e0bd8118d04b55b7adf3d9ba256ad4bb53e66512 X-Git-Oldrev: 229b9f4ed05e6d14fb4d73fa04a71e99b01bb534 X-Git-Newrev: e0bd8118d04b55b7adf3d9ba256ad4bb53e66512 Auto-Submitted: auto-generated The branch vendor/openzfs/master has been updated by mm: URL: https://cgit.FreeBSD.org/src/log/?id=229b9f4ed05e..e0bd8118d04b cbe882298e4d Add slow disk diagnosis to ZED a5a725440bcb zfs list: add '-t fs' and '-t vol' options d0d2733204ea Update zfs-snapshot.8 79c6dffa6bd2 Allowing PERFPOOL to be defined by zfs-test users 6cc93ccde70d BRT: Fix slop space calculation with block cloning a0635ae73173 zdb: Fix false leak report for BRT objects e0bd8118d04b Linux: Cleanup taskq threads spawn/exit From nobody Wed Feb 14 17:16: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 4TZlGH73Ygz5139K; Wed, 14 Feb 2024 17:16: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZlGH6Rp5z4Gr3; Wed, 14 Feb 2024 17:16:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707930967; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ejj5sWTiWRJVfylwAoMGXBW/8/8eYy0L9B8OosSSc84=; b=SADRoSVxkYN7ReyzFQEh2O5D1o292oq7YXJ5hx5iRWNZTSk9xpClSmoin695V/MDMt4ukA HFwlrgle+rBYMfHhAL0WA7gJq91If7zBfOlurhMClhHY6F+q6K6WuDaFQzY88Fb2l3PpJw kLekTrVGQ6EGI6S1amgZqTbKRnxk1IjioUnYzxnOigyPbmMEdDKnhh3gBHbxd3Qicmfi7m dvv7yINFDTiVDUyvmPEAFf4bgmtFE3tyr0cuD9eInlSjNoQAw2Ip1tRdAWkdqVoyMG631s RYMWwnaMH0JXT9boXXckATvyrzgSXUVAgTYuJ3cU45zHJzoG+oQq2QjKh5X0wQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707930967; a=rsa-sha256; cv=none; b=RFOm8N7R1uxQr9aFPybNs0vQG4nZ7Wmql00vudlP5qSDta2zo1XNAZJZgawt4ylgdi8K4q FWmVh0qlfvuttAey346SFQn+AkKDu8nFr/J7D6KoeuuUJVyQ1KZDXg4g1CuviZMr9MRFD/ c/2sdBNFZa+VhzUOnxOLir96ZSgeqtdUq+9oLtXXjrRPtmMKBBaJDllhFGJ2vSPuA86baE hzuq+lHiBA5NwnZ5MYW9emJMwxsZDXSucCbDkyN4UZKIBVnWnc+bc5n+fadVtk1il2EmBb sSuVdH6YHYBQJul3PhnGWa2GmHMaezM47h88Djd3Gqeut+OTO5Mg4610SF9fpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707930967; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ejj5sWTiWRJVfylwAoMGXBW/8/8eYy0L9B8OosSSc84=; b=EBY8r3uWmeD/e1V4scY9GmctJnumonJMIk5SWIIJarWGcLR6MK2YIA0rWh4ATNcZ/s8n8x Q3a+jrSSx2mENkyXTPgRk89OGiIPtqfNa72ZLEYxu7KnYxN7RcNgCjhtctoTPfrQjO/5qi oCSvf9XTujDM+2iDSB5VHS3iKez85oXlWnVX+6NtTQmXYRIQuI3JQmwPkZ5r4JvHJvEzpX YaXS5xuULjrK+Zz6GPdYm8Ej4Dvn3RWOhC3YMUwpXWCIQQRHkT1ri/CgG2hvqdLqiYNVdf roDGwRmhj8YNbL5qXPHTHuLO5onjvlxy0AQkLisM9TfpxgPcF0LlgZ/gdlApeQ== 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 4TZlGH5Vh6z16K7; Wed, 14 Feb 2024 17:16:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EHG7fg016149; Wed, 14 Feb 2024 17:16:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EHG7i3016146; Wed, 14 Feb 2024 17:16:07 GMT (envelope-from git) Date: Wed, 14 Feb 2024 17:16:07 GMT Message-Id: <202402141716.41EHG7i3016146@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: 090674a3dbf8 - stable/14 - csu: add crtbrand.o dependency on sys/param.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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 090674a3dbf88956f097a3f7e8d9ca1b33aee4ad Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=090674a3dbf88956f097a3f7e8d9ca1b33aee4ad commit 090674a3dbf88956f097a3f7e8d9ca1b33aee4ad Author: Ed Maste AuthorDate: 2024-01-12 15:01:49 +0000 Commit: Ed Maste CommitDate: 2024-02-14 17:15:14 +0000 csu: add crtbrand.o dependency on sys/param.h __FreeBSD_version is recorded in *crt1.o and crti.o via crtbrand.o. Add an explicit dependency to pick up __FreeBSD_version bumps. Additional changes are required to fully plumb *crt1.o dependencies through the build. Reported by: bapt Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43417 (cherry picked from commit ed3563b0ac31d854bf907d4d847ac0195ec9637b) --- lib/csu/Makefile.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc index 55aaf589f48f..1509a1ece2c3 100644 --- a/lib/csu/Makefile.inc +++ b/lib/csu/Makefile.inc @@ -55,6 +55,9 @@ Scrt1_c.o: ${CRT1SRC} Scrt1.o: Scrt1_c.o ${CRT1OBJS} ${CRT1OBJ} ${LD} ${_LDFLAGS} -o ${.TARGET} -r ${.ALLSRC:M*.o} +# __FreeBSD_version is recorded in crt1.o et al via crtbrand. +crtbrand.o: ${SRCTOP}/sys/sys/param.h + crtbegin.o: crtbegin.c crtbeginS.o: crtbegin.c crtbeginT.o: crtbegin.c From nobody Wed Feb 14 17:17: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 4TZlHx052lz513n8; Wed, 14 Feb 2024 17:17: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZlHw6mFgz4H4N; Wed, 14 Feb 2024 17:17:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707931052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OdFHm9qUMSh0MA3xzuY4qiKDp/YqwO2GYUObg/+v9ec=; b=eiTPHxYvOANx4pQsIMbihRFnO6bal5Eum8YjM+6EoYpEgzBhpifMDwLf0XUCLAlLvsh/7G APvwJds6Sc3JjmFL2evwW0NRpRcuS5fUFom2UPk6p+zwhEE+y+IuVBLshBhFVYEOoLkCA7 QKB2V6ODi2OKBfyZ9UfKdsv02McPM7uajJwqYdLQazBzstnEsIBo6fo10E8VCSs/mJCkwP XrPMYpXqmrhCjl3jCT4ZareMRDGGDVXtXGgPX/pqme5iApAZSd+nv/5SqbpWHcD4NxD5Id lDkvLKMC5zy2iSciTiQlitnzs7PveGKt5HKIy4WjzQpyb2CksaYrmOwYj1JuAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707931052; a=rsa-sha256; cv=none; b=DjBdE/drwNaL8w719N+OGd90yfPrPl7hnwA7wzGGTsvCzmiB643A4kjaJkXGllgDqHnkcn gT2aRbXYmpYbbNOpXbLlu6IJCc6f793V1oDf5Am6sQwYF4XDFzgGTK28GBCarkl51Q1AOP srtgubcmOeKq2fGu984qqMlwY81DpWsg1aXSJCDGsZE4kuiB7i5tAeN0iFx8XfXqZiq2DB 7ULSNZfyubiybei1d07jiqsZtbNDALUc4/lIRK8X1QJQ82r0mZ3BXhiwWcbkmm5zH9S8l2 TVtSOTxmhQzi3yTUk6gs8hex30YUutgZR2ylvF25eJB0yOhHz4hsgtSItjzGtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707931052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OdFHm9qUMSh0MA3xzuY4qiKDp/YqwO2GYUObg/+v9ec=; b=VLiP8e6+U/LoF65PoY9s77IxWn45vuOZejiMpsik1SuMMljRuxEp49rtG8jR24Z4LaXhQK vZPkOYY/gE4UqHTyuubHC1c+x1udsy7mHOWvLsDyoqzZV/3MEFYj3Hh7/oM31haoiozGE6 /ajWedCdJ+U6UCEIRM9gIdif+tydnGy6yW4BlvElo92sAc4Gm9P7KtcwcbCmzL21R7g3pT brXcBS7QBzF6v74Se18kko60mGVBepQhOTXBahDT5X7ANBY8Z4HqrkiNhvFeZlBW6KOfCv Pf2x01PPaHLqOZYUJ6WjZc/iqGpLyi0sRAmbGZGqUO6Li/A8YbcezjVNUqrXRg== 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 4TZlHw5q4Pz16SC; Wed, 14 Feb 2024 17:17:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EHHWPo016447; Wed, 14 Feb 2024 17:17:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EHHW0K016444; Wed, 14 Feb 2024 17:17:32 GMT (envelope-from git) Date: Wed, 14 Feb 2024 17:17:32 GMT Message-Id: <202402141717.41EHHW0K016444@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: 6fc69ba38cfc - stable/13 - csu: add crtbrand.o dependency on sys/param.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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 6fc69ba38cfc9f8fbcd5096a8911e80608bf9c4f Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=6fc69ba38cfc9f8fbcd5096a8911e80608bf9c4f commit 6fc69ba38cfc9f8fbcd5096a8911e80608bf9c4f Author: Ed Maste AuthorDate: 2024-01-12 15:01:49 +0000 Commit: Ed Maste CommitDate: 2024-02-14 17:16:35 +0000 csu: add crtbrand.o dependency on sys/param.h __FreeBSD_version is recorded in *crt1.o and crti.o via crtbrand.o. Add an explicit dependency to pick up __FreeBSD_version bumps. Additional changes are required to fully plumb *crt1.o dependencies through the build. Reported by: bapt Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43417 (cherry picked from commit ed3563b0ac31d854bf907d4d847ac0195ec9637b) (cherry picked from commit 090674a3dbf88956f097a3f7e8d9ca1b33aee4ad) --- lib/csu/Makefile.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc index 83926a211eea..906c15c9b4bc 100644 --- a/lib/csu/Makefile.inc +++ b/lib/csu/Makefile.inc @@ -55,6 +55,9 @@ Scrt1.o: Scrt1_c.o ${CRT1OBJS} ${OBJCOPY} --localize-symbol _start1 ${.TARGET} .endif +# __FreeBSD_version is recorded in crt1.o et al via crtbrand. +crtbrand.o: ${SRCTOP}/sys/sys/param.h + crtbegin.o: crtbegin.c crtbeginS.o: crtbegin.c crtbeginT.o: crtbegin.c From nobody Wed Feb 14 17:55: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 4TZm813xPPz518Lb; Wed, 14 Feb 2024 17:55: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZm813NkZz4M1P; Wed, 14 Feb 2024 17:55:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707933345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Pi7BPbBPcO7QYYKGEZgXV9aZHSEdVGZb94EyfhPbre0=; b=gFsnb6ux/uNIVYwExjtXfXr8zHg1hQYsj1z/wJZgz0zUOsItAXsgKzp07X5cMfqP2azBER bFBCBwmOfdfBHGnJ2+BYV0XLsIx1VP26V7AtvIkdTWEvNjkL5sfZ1DAt9FAVcYxi6uk4Ys MEdNi/nCH0Fzjnqbk2ortrFjWU7AOq5Wx0q8AYkXKjQ7w++5wZOn7+P++PyAJHCIU84fPH Zcj75gIyYxdlpZclJ2C0dTAW9dKnmT9OUvgKX3WPrNQEx7sCvk6kJmFCGiuIpTYQehZONK zDNjGNr7aig8CN92hLkEBr2vuFhIibqxQ9veMU6vHhK3LgVeSzbglfqQZnEsiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707933345; a=rsa-sha256; cv=none; b=LKQuq40Rtlig3dI5aRDXGkMdGrxjrYSgcUR9MqknIw69kJTlSMsYqrw4yTP22qyrN0cxS9 u/TX0lmKgYFCPYQ1CxHIYu2rk8bYEdSrqrEiycyABBgp76tyMRZvH+CeYx5lppPf0Phbwk 1mFv8MIfjZLFa9tBjdWdUskALzk3ELSlM8zr7eouoEMpMMZ4fXYiCmdYfv58WKbPTyHhhH IMFxWu9RUiCrRpGF6Tm+2G219kB3UzfhvsXugxSpNsqjI4ZDqICZthbTT1LSAcdyYAYASn GACKfdd544ePnNbsI+R0sfvhDfTJEsEQYCC7d4+pvBKn7E+e0XgXGNPBW3qcBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707933345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Pi7BPbBPcO7QYYKGEZgXV9aZHSEdVGZb94EyfhPbre0=; b=aTZj8ZhaIkUECELagFY9xGlF1uVgZ/3I50AdQ/YGXi9yIISS8yfT0SuNXQV7Q6NVcNkW0R M5FQq08+1uXx8EdVwFSQ9iUNCMs+j6uWDeLJtb0P09UhTEyYU0CzaVIvaPt1DXmZikzWb9 Au9fSRfpO79XCwNLMCOfC3BIP5+KS67kTcUjV8MF3z4U2zaB4N7N0700xJqhMtAZ2m3+4F x8IaDhjrI86APjiegS49dtTTSSHU0aC4ABW/uq6U0AsEvZO3v5bVd+5p2faDqtLWN8DrQC KEA5cjyW6KcbtBngkRLUVWnJTZtWjByTAwoYzKhgfG4aZeLsJG7cISRg6j6XhA== 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 4TZm812R4kz17S1; Wed, 14 Feb 2024 17:55:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EHtjaP083003; Wed, 14 Feb 2024 17:55:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EHtjNc083000; Wed, 14 Feb 2024 17:55:45 GMT (envelope-from git) Date: Wed, 14 Feb 2024 17:55:45 GMT Message-Id: <202402141755.41EHtjNc083000@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: cd147a2a0243 - main - loader: Fetch initial script from loader_lua env 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: cd147a2a024301a796f307c7bae686305d2bf302 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=cd147a2a024301a796f307c7bae686305d2bf302 commit cd147a2a024301a796f307c7bae686305d2bf302 Author: Warner Losh AuthorDate: 2024-02-14 17:51:38 +0000 Commit: Warner Losh CommitDate: 2024-02-14 17:55:38 +0000 loader: Fetch initial script from loader_lua env Sometimes it is nice to override the initial script that we run. Make it possible by fetching loader_lua from the env and using that instead of the default if prsent. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43819 --- stand/common/interp_lua.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stand/common/interp_lua.c b/stand/common/interp_lua.c index db58d80b2048..3f758baebc2d 100644 --- a/stand/common/interp_lua.c +++ b/stand/common/interp_lua.c @@ -123,7 +123,9 @@ interp_init(void) lua_pop(luap, 1); /* remove lib */ } - filename = LOADER_LUA; + filename = getenv("loader_lua"); + if (filename == NULL) + filename = LOADER_LUA; if (interp_include(filename) != 0) { const char *errstr = lua_tostring(luap, -1); errstr = errstr == NULL ? "unknown" : errstr; From nobody Wed Feb 14 17:55: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 4TZm824zCxz51dcw; Wed, 14 Feb 2024 17:55: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZm8242z9z4MBg; Wed, 14 Feb 2024 17:55:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707933346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=58SzIsSMUHnxQUqFNtM7jrLEbh3lvYj/EqPlE4tJR2c=; b=jIXc5OuaFPpkz4PfMebi2yGuUwBU7G5aocNCgd3SHQrd5tegNMiEVNjP5KHCbIb1O95POd JjGxZg+lPjT52KRkZmwSTYvhNw+u+G/WoLlo/jirR48EGXc2tvjAubL/R45h2VuSU93TtH eqleQqT8Y0X89KK2k4ETDaCJMGytgAWOZzfWfg183Pz2yzkhzUGiekar7C0G+3/2mL/aMV Qdc2or7wokeDc/H0esYJsH9chlxcsA7xntOWBf8A14BRLtHwxSpMBf5PbhbPHNhIqeMFm7 s1YqHGLRNKNoOYsBDHklNzdd/1AH5V14Z6Ub5VMwFltHkegnCP/29Hht8965yg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707933346; a=rsa-sha256; cv=none; b=K1oPRU2J2d/S6odMFr2bfVvWd4ceveQOkQO9qsytOp8xXhzMPwnxpBDfQQEElVLscNtycI 1EVzq2VRS2U79E7XgSaBWVpSfaJPfXr4Vc+gNIGBzFXeFRaq+u23G6wxd57oMvp15JXVWF OEh4G+O3a5hn7jSEbrdpih5DQd8xw8mwwKKDJCmWZ2fSZQp7hq+cSxueSWEwfos60R5hbZ 1vFE9we6sYV5UlwVujAZoqCYxkvOf7uRQPZF222sTaeholDTWylTxyvtf7cbkMtHrATn21 9G9kAIWDWFICCM9oyCCyeUIWuOTXXmArmSc54W8TCxPHRzu/9IOnQrfAjFS0hw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707933346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=58SzIsSMUHnxQUqFNtM7jrLEbh3lvYj/EqPlE4tJR2c=; b=ohsN+EwHWzD7nUI6761GdRngMbpVd3B6zeZw6Sz295NU1uIeqWHvvRpgK1uqhutypDrU6Q dNmkQPGi/DlojudZ6fw37bRSCdQhjiw/FUmcHz1rMF/oPcqxPxz6LSOTTw2AHWx3MpuzcR KpDcAGZMuhuoVBerfBgNqSP/dOTCzgwX+BbORPILEeehxnD4IM5BqqNS6wZBdHoajbZoyE n0NybyvzZ37ZUUPvjLi5wIsbI6Ceqga2akxj56vlSGOMJUg5NfnZeJjJkA9O0Ry/w/EAHg MA9vAs1pUhNmD/68DQOZ+g0QY/9RXF3BG/GcEBo0/0t5j6Q5Nu5jDqrW0JtAJQ== 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 4TZm8238Cnz17S2; Wed, 14 Feb 2024 17:55:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EHtkkF083054; Wed, 14 Feb 2024 17:55:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EHtk2T083051; Wed, 14 Feb 2024 17:55:46 GMT (envelope-from git) Date: Wed, 14 Feb 2024 17:55:46 GMT Message-Id: <202402141755.41EHtk2T083051@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: 62a52c154224 - main - loader: export the CMD_ constants in loader table 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 62a52c15422470f97fc7b311d89c83f910bcc1b1 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=62a52c15422470f97fc7b311d89c83f910bcc1b1 commit 62a52c15422470f97fc7b311d89c83f910bcc1b1 Author: Warner Losh AuthorDate: 2024-02-14 17:51:58 +0000 Commit: Warner Losh CommitDate: 2024-02-14 17:55:38 +0000 loader: export the CMD_ constants in loader table Export the CMD_OK, etc constants in the loader table. They are the return values of loader.perform, etc. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43821 --- stand/liblua/lutils.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stand/liblua/lutils.c b/stand/liblua/lutils.c index 274d9a39da21..8066d3f685f7 100644 --- a/stand/liblua/lutils.c +++ b/stand/liblua/lutils.c @@ -639,6 +639,16 @@ luaopen_loader(lua_State *L) lua_setfield(L, -2, "lua_path"); lua_pushinteger(L, bootprog_rev); lua_setfield(L, -2, "version"); + lua_pushinteger(L, CMD_OK); + lua_setfield(L, -2, "CMD_OK"); + lua_pushinteger(L, CMD_WARN); + lua_setfield(L, -2, "CMD_WARN"); + lua_pushinteger(L, CMD_ERROR); + lua_setfield(L, -2, "CMD_ERROR"); + lua_pushinteger(L, CMD_CRIT); + lua_setfield(L, -2, "CMD_CRIT"); + lua_pushinteger(L, CMD_FATAL); + lua_setfield(L, -2, "CMD_FATAL"); lua_add_features(L); /* Set global printc to loader.printc */ lua_register(L, "printc", lua_printc); From nobody Wed Feb 14 18:18: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 4TZmdx5XVjz51hff; Wed, 14 Feb 2024 18:18: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZmdx50xGz4Tdg; Wed, 14 Feb 2024 18:18:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707934693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c+2bohVWB2XqcLkx3yEt4P91lDjuwu2P2dtA9vPUnqY=; b=ayZP7qZYrYU+6l38LOVCmZ3pUaBQ/XZ4dFQJxHmUtfbNoaBzKTAW8XKDp2EdRQ2weDE9iL zXBTxd8cWAM6UcQgn8iay3zLCnY+W1v/+GF17Hs7pVZIM/YQyDqVVypT/RJBC3i4H+eEoe 0pD1bTIfgc7rwtcBmQRF/wLEtQsQzB1pYKrtMGsvAYQOmjY9N5niQygZEWcXI1KC4IrduR NJZ0ke5YKr7AcZTjlz1m3dDHHZR1HsmyCrzIPkOYxBlxEDwRT0+oWoxDt1HYcyaIVHvPIs cPPSkQW5VKVgf2p4OahtvJVoPw1yAQeGs4hk0VTIS9tHFMQzjJLIiFL66S0zcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707934693; a=rsa-sha256; cv=none; b=EIsbkl73UaxlBwnkmSqN3+ZdYcjBcfW778nOB4B6qgJAg4Nz6S76yGNSi1dKaP4kjt/IUi 40DSIXQdwSk58DEtLRu3yoQheQLAuHeZ0WjZaE834cLm5VwKxgVPzUugVLccJmuUl9yTPK ZMXhzpOsz2OBpKlzKzCJpUzv3/0rN3vHIyPuX77/l/eLz39X6js9mopXv6KO82WDjkbCPb xvWFAyTwbjVu0OI5XKlmJqn6l817smHz+1Ia6Kuwqy5jiENNxiZ0IaaIZenGGPIAdBexlG rAFRTto/LJiPHDnLmr8nxUvB3oFD+6sTnX2kg65rI4H8j0Zq4w0IWU/5j31IgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707934693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c+2bohVWB2XqcLkx3yEt4P91lDjuwu2P2dtA9vPUnqY=; b=kREs4hNqMrWW7EzoxcF5tGZ/vqs975iomDfI9lgezKV540WeoCsGInq3BcBUVRNp/Vc56s vaPx9Tewn5Q6jN6LGqHWTAqRCW3oolfZeKwfDA/StgWHnoAX6RIyZEmA5AjAlm+FMdGmUy K65Xb9h4m8RqKryw0ffJ2STgQBmLf1vXr3Xj6e08uVDDruGzg50dTqcQyVr7nyFTCar2+3 wxbJfKm2qkKx2iveIu+MMDdH8pMlEHtTLZkLzrR44ZFgNJR9KNlCLBK432dQhz6TFyhfdM 75swU3tyhrHxnH54nZOHn2Ehk/dYJnSLZAJ/6qTweQ+DtwQSVJr4UDO8WOojxA== 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 4TZmdx40wjz17WY; Wed, 14 Feb 2024 18:18:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EIIDKi018234; Wed, 14 Feb 2024 18:18:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EIID92018231; Wed, 14 Feb 2024 18:18:13 GMT (envelope-from git) Date: Wed, 14 Feb 2024 18:18:13 GMT Message-Id: <202402141818.41EIID92018231@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 8ff01d01f2e8 - stable/13 - sched_setscheduler(2): Change realtime privilege check 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 8ff01d01f2e8894bbac9f179f1ab0e83a8160384 Auto-Submitted: auto-generated The branch stable/13 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=8ff01d01f2e8894bbac9f179f1ab0e83a8160384 commit 8ff01d01f2e8894bbac9f179f1ab0e83a8160384 Author: Florian Walpen AuthorDate: 2024-02-14 13:50:44 +0000 Commit: Olivier Certner CommitDate: 2024-02-14 18:17:14 +0000 sched_setscheduler(2): Change realtime privilege check Check for privilege PRIV_SCHED_SETPOLICY instead of PRIV_SCHED_SET, to at least make it coherent with what is done at thread creation when a realtime policy is requested, and have users authorized by mac_priority(4) pass it. This change is good enough in practice since it only allows 'root' (as before) and mac_priority(4)'s authorized users in (the point of this change), without other side effects. More changes in this area, to generally ensure that all privilege checks are consistent, are going to come as olce's priority revamp project lands. (olce: Expanded the explanations.) PR: 276962 Reported by: jbeich Reviewed by: olce Approved by: emaste (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D43835 (cherry picked from commit 2198221bd9df0ceb69945120bc477309a5729241) Approved by: emaste (mentor) Approved by: re (cperciva) --- sys/kern/p1003_1b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/p1003_1b.c b/sys/kern/p1003_1b.c index 21c9e3a27039..6259f7092487 100644 --- a/sys/kern/p1003_1b.c +++ b/sys/kern/p1003_1b.c @@ -233,8 +233,8 @@ kern_sched_setscheduler(struct thread *td, struct thread *targettd, targetp = targettd->td_proc; PROC_LOCK_ASSERT(targetp, MA_OWNED); - /* Don't allow non root user to set a scheduler policy. */ - error = priv_check(td, PRIV_SCHED_SET); + /* Only privileged users are allowed to set a scheduler policy. */ + error = priv_check(td, PRIV_SCHED_SETPOLICY); if (error) return (error); From nobody Wed Feb 14 18:21: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 4TZmjG5y83z51jTk; Wed, 14 Feb 2024 18:21: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZmjG5Sl3z4VKR; Wed, 14 Feb 2024 18:21:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707934866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kjGkPImr0uUAmy5CBlB7cx9EuLX0V+fSezfs2FOtzv8=; b=UkmxZAWrhtObqTrXb+oRI/1Eep+Kq5jpBVmwL+MSYai649zMKVcNiYTOv1rNzt4D70aORe E1Zs9zC93DglMFULKrim3sCTT+AUPRwy60J00jKbqE1eSrfs3tZh4BzTBLOr9DEcB3Res5 hrL8iZu8ZN8gJjVx2ddaBGtFQ8r6YzXCzHNeWIfo91XMynRsMLzGv5O1bkue6OqW/CceHv MWEMdAb6cio1e3n6Oq2Rh5hRmL2PeZMpLS6WWM7286j1Xs9k2V0KpvCCaxDddUUcnMd3tT t4rD/z7ZZD2g4/pHlCLS8zt5puwZc67tlKVecJeXG6lBVtCwZHRn1Dxf1rRgVw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707934866; a=rsa-sha256; cv=none; b=KMC/+XtGJmimeZF8frqTTXIlLaV5XdaduNMb3QkDOt+OnQ7b7e4cuuiyWuA1YM+uPgaR+O Bk3eVxtULopk6bP0m/iFVQuA2c1ZwpYm7AA0Nhb39EkWdnPQLvGs3hgJIKOzIqsvKeqEkX IvJ0RX5xpqr36WVJp8QmqiBSrwXaNY8vGBAJaNkXXwGfNOqoT1Z7JpdgCHCuisRRXFqb5e yBCg64YR/PVhD0/Ab/4f2U6ueGsoONNGLYb3s00LfUB3N2LvZwADyys9qgw3cIo7qBWPUY z1ZbWFzliuT7CvnwRXnsGXzqGzGmGW/t6y8+vy9QuB2IRSJCrZTJVpfd91POAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707934866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kjGkPImr0uUAmy5CBlB7cx9EuLX0V+fSezfs2FOtzv8=; b=pxnYauhKZnT38jubE0XY9udpOVcn8mHt3bIusOuYmsyUaxadZ2XxbEb4eiHbHH+CM3d05t 3MA0LprJPRc8rrc50Uk6bwJA5S1L7wxzjGT5pdDQv0YWDPRFW4KekxvK+VbMfVWSmOV2Iw k2n6iOeWlVtOKmDu22o8q9lagebE104TtmL9o7DfU5NuT2gIT0ZiAgC8opYVncCSx+cBMJ cUE8HsO7hnPWJpu6QbO+PHr+1tZ1TsgOgCEduYwqtdSvmlKEiCki944R/+qfUBa+kL5TS9 7qTqhH0nvMLNZUP3lODJ4R/Z9dES4DtvXsHETkQczlRRKYfU1Cw0iAMeDgLz8w== 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 4TZmjG4WWQz17mm; Wed, 14 Feb 2024 18:21:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EIL6WM032667; Wed, 14 Feb 2024 18:21:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EIL6fR032664; Wed, 14 Feb 2024 18:21:06 GMT (envelope-from git) Date: Wed, 14 Feb 2024 18:21:06 GMT Message-Id: <202402141821.41EIL6fR032664@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 1ee910875cd0 - releng/13.3 - sched_setscheduler(2): Change realtime privilege check 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/releng/13.3 X-Git-Reftype: branch X-Git-Commit: 1ee910875cd00c6f86f3f64dbc1686ec6d52ab11 Auto-Submitted: auto-generated The branch releng/13.3 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=1ee910875cd00c6f86f3f64dbc1686ec6d52ab11 commit 1ee910875cd00c6f86f3f64dbc1686ec6d52ab11 Author: Florian Walpen AuthorDate: 2024-02-14 13:50:44 +0000 Commit: Olivier Certner CommitDate: 2024-02-14 18:19:04 +0000 sched_setscheduler(2): Change realtime privilege check Check for privilege PRIV_SCHED_SETPOLICY instead of PRIV_SCHED_SET, to at least make it coherent with what is done at thread creation when a realtime policy is requested, and have users authorized by mac_priority(4) pass it. This change is good enough in practice since it only allows 'root' (as before) and mac_priority(4)'s authorized users in (the point of this change), without other side effects. More changes in this area, to generally ensure that all privilege checks are consistent, are going to come as olce's priority revamp project lands. (olce: Expanded the explanations.) PR: 276962 Reported by: jbeich Reviewed by: olce Approved by: emaste (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D43835 (cherry picked from commit 2198221bd9df0ceb69945120bc477309a5729241) (cherry picked from commit 8ff01d01f2e8894bbac9f179f1ab0e83a8160384) Approved by: emaste (mentor) Approved by: re (cperciva) --- sys/kern/p1003_1b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/p1003_1b.c b/sys/kern/p1003_1b.c index 21c9e3a27039..6259f7092487 100644 --- a/sys/kern/p1003_1b.c +++ b/sys/kern/p1003_1b.c @@ -233,8 +233,8 @@ kern_sched_setscheduler(struct thread *td, struct thread *targettd, targetp = targettd->td_proc; PROC_LOCK_ASSERT(targetp, MA_OWNED); - /* Don't allow non root user to set a scheduler policy. */ - error = priv_check(td, PRIV_SCHED_SET); + /* Only privileged users are allowed to set a scheduler policy. */ + error = priv_check(td, PRIV_SCHED_SETPOLICY); if (error) return (error); From nobody Wed Feb 14 18:36: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 4TZn2V1QV8z51l8h; Wed, 14 Feb 2024 18:36: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZn2V0zdQz4Y5N; Wed, 14 Feb 2024 18:36:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707935762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hZxYfhI8gzslcOYCrYiZ8cyU1+USNH1qBrdcrQGsi0I=; b=dHVF5CDqKDxkk9bVTPw+xQ09NWCOmmbain+51itLRqSlaP+naTSLl1aCbAi0tKD7RFn/HR W+IPgqBWapWAm20H16TA0LL5ldqVJ6RrIttIN/Sk8giKv6pauNII53McfHqcIFyyeHCfts OzbBLqFOB+10aed8vKprft/TbgoXTuksm1wHE13mFipbtn4j+oR1LDiucnY580U/yvX8dy Ih71H2JTC2UlB8BiMQQlYISoOyzSw5Qq2kk1NmPIZC7TJKHDmEm9G8eoOR1EUBIE0ux/oz MLPQ/NJblZ07fljOxXGZ8CyDofLMn9TCDab1dwspibKczQJ3N1sC1xio8DY4tw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707935762; a=rsa-sha256; cv=none; b=Rm68BO0MWBJMpdEp/sRoJWBHmb2N3cfXfCmGPKa4lV0KyFBOaLzGNkpaoet6R5dKDqub46 Pphy/39/YQJfnvKC7yQL9Zbt4fqXscpXdB3WpEjXxr1fQRQC+qbio64eGT/CERyyaudRRS ZXHSrfuhg5yOs02UfOkBSR251VfcttEid4HNvo/pjjn0jBIJx8dNwq7qa38CZtvBY/Hyen Uhn4TX41GEYNfvvd9nCKEolz6dE3uxJBG2g3fSQ73y2QtkmpWAQvPJWvEq3IGlZ2nRac/G GeIhBo28dj0GwyAY+6IiKhD8eT8mz/rYrZrxIDIPQicSqPSYgzlsuV8VybSpqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707935762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hZxYfhI8gzslcOYCrYiZ8cyU1+USNH1qBrdcrQGsi0I=; b=PZ3Z0tj2Rh0ZPL4oj+f4GoatxkE1J5QhLqIacb+O00Cw1Fj5ibSEDG8XaVjhDnLTZQRsVJ V5MWjEAgAyODkS0yq4vS7XgUUV9RVXN3JtU/I04F7onLrfPca0uOZKpW3Lrsa5GPiCP1we Nb56t+JrahUseqWhM16pPjt2UlfJaA7gT/dBHF8SIzb6hdz7i5gqMcZfQJyPLzWDIHHMUE FmzGzXhXZ5cyJlKtSUB6BHF2Y/MGPuhz1m3jJV3AogGmXPpRVMyY0N4jvCLncV1DHmw7Er Spp8bIAeFElMVJ/BC0wGDqPyLvbNax8KRFXha5opku6aL2IZ7lPohSG+mpSTmQ== 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 4TZn2V0294z1844; Wed, 14 Feb 2024 18:36:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EIa1oN050878; Wed, 14 Feb 2024 18:36:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EIa1dl050875; Wed, 14 Feb 2024 18:36:01 GMT (envelope-from git) Date: Wed, 14 Feb 2024 18:36:01 GMT Message-Id: <202402141836.41EIa1dl050875@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: a27c1350e43a - main - loader: Make vidc_biosputchar static 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: a27c1350e43a863fbe2bf0927ef762a20babe5d5 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a27c1350e43a863fbe2bf0927ef762a20babe5d5 commit a27c1350e43a863fbe2bf0927ef762a20babe5d5 Author: Warner Losh AuthorDate: 2024-02-14 18:07:10 +0000 Commit: Warner Losh CommitDate: 2024-02-14 18:22:57 +0000 loader: Make vidc_biosputchar static It's currently unused outside of vidconsole.c. Gerald Hicks' fix to the beep code from de37e4a6d2333/1998 introduced the funciton as static. Maxim Sobolev (sobomax) made it non-static since his spinconsole called it in c4c3b35172d67/2009. When sobomax dropped the direct call after making spinconsole console independent in b35172d67/2017, vidc_biosputchar remained a harmless unreferenced global. Make it static once again. Fixes: c7e10205ae0d Sponsored by: Netflix --- stand/i386/libi386/vidconsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/i386/libi386/vidconsole.c b/stand/i386/libi386/vidconsole.c index aec41a6373d6..f8a6bf34acad 100644 --- a/stand/i386/libi386/vidconsole.c +++ b/stand/i386/libi386/vidconsole.c @@ -1046,7 +1046,7 @@ vidc_init(int arg) return (0); /* XXX reinit? */ } -void +static void vidc_biosputchar(int c) { From nobody Wed Feb 14 19:43: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 4TZpWw02HBz52ghJ; Wed, 14 Feb 2024 19:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZpWv4hmCz4jL0; Wed, 14 Feb 2024 19:43:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707939787; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NPrPkp39JjW0aMleEGK3Ajk+3pjE3RDcUy+yarT9Zb0=; b=E2AO5uLQQ2OOF3cM9SL+X4mmuQik20mZ0Mqvtt6MNRZCaUgKbouaQAVlaH2Fk9l4cy7sgn 5PQmYMBasuD6EcVRam9+iu77xEJmzgUwlXxY/K74DJ9tNV27QinddPIpf+MAtF9+o0vtH9 4SkyqL18xSaOgQJGi4mZYujwfxMbtGi82T7O/kzi6isWabTgKp+NpJe6V9QD/VaYvK8sj7 BsxBRXsGoPTf99qbwe+Pv7a1JdbGZ5w7S/WH+Hfm3zo3z+pquXEfy+DkNBLh885Xfy1R+7 XEk+w+kZRBNN3zj5pgHnmlLwTqEj9S3I72FVnoklb7BhisyAc1O3V7obRJb0Lw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707939787; a=rsa-sha256; cv=none; b=kZIH4Fja/RENBTlc0G1lDGkdemlhB50UfhMeG/HCdvb010/6zBn+qpDLlI5uCwDZ3dMcU3 MXQoC6fQ8Espyft/jA8ANaLgAQNHCFh7gofgBeSgANjV6u1lC/Nfo6Q1+mhYskuF+/1+qJ K+cX9u42zR4soNKEU2YUfC1JLo4refsWo8ngjWM7lVZBe0gmuxU9yD9df/+yocggb4/hal oecjeACFffl5IWK8/33u5ubtqHuifzJHhk00KDfH7Y541LpypYXYEFaUjKBpVmR7jkNFYe uUqF7mAP5XtyCkKqIYUrdFUsZ3N1ZCbZ2II6ayTPEYTlBKrGVG42HFmk+nZBUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707939787; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NPrPkp39JjW0aMleEGK3Ajk+3pjE3RDcUy+yarT9Zb0=; b=A0BmnOq2Qjy2avtffZbChEyPDmH2gYpFjsDcfYd6vXlAIJqzmbuHRTMz69ISUoE8FOR8JQ wKIH2UEYeLJYktro2TrGm+cAzPgGCKEJBUn2ahg+KnsF1Jr5RK9afcbiPnRWT/9eOUlrQY mYu1gUCZC4C8y2fFuIprAERq0l2cFnQn54SxGfw2cuovIoozBSPxhSKk8Uf28eO84OjxG9 O9jp+4QdcmEaBISoDmzWlJAccGmPevfX1vqSuZ8OPTpnQKZ13ykYMaq4rUYsLcHcE1yIg1 U8WSg4ssYGOHROMN1/vrJT+YqQ3qWBGrbuKoSj19uTLIqxisQ44d2X598Vsbqw== 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 4TZpWv3n8mz19t0; Wed, 14 Feb 2024 19:43:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EJh7Dw067406; Wed, 14 Feb 2024 19:43:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EJh7aV067403; Wed, 14 Feb 2024 19:43:07 GMT (envelope-from git) Date: Wed, 14 Feb 2024 19:43:07 GMT Message-Id: <202402141943.41EJh7aV067403@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: 42ceb92e6a54 - stable/13 - lld: work around elftoolchain bug which causes bloated RISCV binaries 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 42ceb92e6a544fa0956eb660b3c16e38189acf20 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=42ceb92e6a544fa0956eb660b3c16e38189acf20 commit 42ceb92e6a544fa0956eb660b3c16e38189acf20 Author: Dimitry Andric AuthorDate: 2024-02-14 19:41:09 +0000 Commit: Dimitry Andric CommitDate: 2024-02-14 19:42:21 +0000 lld: work around elftoolchain bug which causes bloated RISCV binaries The elftoolchain strip(1) command appears to have trouble with the new .riscv.attributes sections being added by lld 17 to RISCV binaries. This causes huge 'holes' in the files, making them larger than necessary. Since nothing in the base system uses the new section yet, patch lld to leave it out for now. Direct commit to stable/13, since this intended to go into the 13.3 release, while the elftoolchain bug is being investigated. Reported by: karels Submitted by: jrtc27 Approved by: re (cperciva) --- contrib/llvm-project/lld/ELF/Writer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/llvm-project/lld/ELF/Writer.cpp b/contrib/llvm-project/lld/ELF/Writer.cpp index 368c9aabceae..850a6bb49721 100644 --- a/contrib/llvm-project/lld/ELF/Writer.cpp +++ b/contrib/llvm-project/lld/ELF/Writer.cpp @@ -2044,9 +2044,13 @@ template void Writer::finalizeSections() { addPhdrForSection(part, SHT_MIPS_OPTIONS, PT_MIPS_OPTIONS, PF_R); addPhdrForSection(part, SHT_MIPS_ABIFLAGS, PT_MIPS_ABIFLAGS, PF_R); } +#if 0 + // XXX: This stops elftoolchain strip adjusting .riscv.attributes, + // leaving large holes in binaries. if (config->emachine == EM_RISCV) addPhdrForSection(part, SHT_RISCV_ATTRIBUTES, PT_RISCV_ATTRIBUTES, PF_R); +#endif } Out::programHeaders->size = sizeof(Elf_Phdr) * mainPart->phdrs.size(); From nobody Wed Feb 14 19:49: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 4TZpg70zKmz52h24; Wed, 14 Feb 2024 19:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZpg70HGkz4jgv; Wed, 14 Feb 2024 19:49:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8D7XkGSh/TGKJt+JIRsEoIRCzCK52KZ7tkQWIfkP+ds=; b=bj4iuxpUg/PLjyXL+dknn6aWGznNrIefecH9ifJo7zl71aXugODn6Ng+Tyjn8psZitBXhK +0IAOJcJOwjxHdlrpCQbpwZayiRxvpzYxix94IWBUA6G+Qeyc7p3ADxL6SB0tLH6EHb1wM T/bKcTxGxpvmG3TeDX3/bQh6R3/MvjCJvvSyEF+RZN6GT3tIpxH/uvcyDZ7m/K4Tw88zt2 w9Oi0Cfv3vOKlWsvtPLuDqUDKbonYJN0XNWmDYn9t89d1y8K9QZ29PurTGj1a3TActBFf6 +dkaEAAJY6FJ9QEAcJHZViFevyk/+WLVuGyuZXgPliIWyoDbixNGVP5Oa4NY3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707940163; a=rsa-sha256; cv=none; b=nTbSQ0TrH4nrXT7DkDfCXL8NORkhoU85iIoKLXqvw05r3Ak/NPxKCSseAilkMWB9ufqxS0 GKQ+oFnJxNJgNFFgUzxgYPqYKK+CAcqgZGNkSE764hUVWq9/HG+fNscp0aDjTc9jXpn+VY UBM4jQMGUoshk6I9C4SFoD9gpBp3gTC63TfUa27IIvMqpwkT9kWk6cFUUTNmiMHvQg48yf GeAVkhovWGGaBiNlvMyyNvXxHXJxtRdOJBVcIzdjZhuoSyUHIRnCkvXclZZIHMgUP0fgRC /zlevBi6eTGe9kio7azS1Zi/HFma1hRhPMYrmKqnH5HYFe2oOLL22OVzO4gpHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8D7XkGSh/TGKJt+JIRsEoIRCzCK52KZ7tkQWIfkP+ds=; b=mmECEF1wOcnOf056gxGTi6519gG78RkcNO/TjbSZNu0uVKWl53pdCKa49ICTrZqkrPlywr mGTTTHUMeUSV9G0ZXxnNVY91GIxVSznK9hQOIWrk84X/oOb2rW3CxDdAP5FK0QC0tTMghq BDzdNHWrUQYYXdn77gS7VHxdRXssRvPjWBhmmxiO1XwlVMu9GKPReCX3c438LjX/Z2GZ7e FcugxceE6qSBneXuy7wmJoVfBEOwHyIC0tIhIwTI/69Vs8WpWN/uyl4YkDkR5gx8X6tCxr +Q3yYdH7DiVACA3L4Iwi6GzlxDwT1CBzttFAm9GA3LV59hNWYXK+VaVZvUv3NA== 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 4TZpg66RkCz19V8; Wed, 14 Feb 2024 19:49:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EJnMsR068415; Wed, 14 Feb 2024 19:49:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EJnM7V068412; Wed, 14 Feb 2024 19:49:22 GMT (envelope-from git) Date: Wed, 14 Feb 2024 19:49:22 GMT Message-Id: <202402141949.41EJnM7V068412@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: 48d689d6cabe - main - net80211: fix checks for (*iv_preamble_update)/(*iv_ht_protmode_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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 48d689d6cabe41f9c04e75b774ef5b3e45b94469 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=48d689d6cabe41f9c04e75b774ef5b3e45b94469 commit 48d689d6cabe41f9c04e75b774ef5b3e45b94469 Author: Bjoern A. Zeeb AuthorDate: 2024-01-29 20:59:05 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-14 19:36:29 +0000 net80211: fix checks for (*iv_preamble_update)/(*iv_ht_protmode_update) Both vap_update_preamble() and vap_update_ht_protmode() also check for (*iv_erp_protmode_update)() rather than (*iv_preamble_update)() or (*iv_ht_protmode_update)() before calling the later. Use the appropriate NULL-function-pointer checks before calling it. All seem unused currently so no functional changes expected. MFC after: 3 days Fixes: f1481c8d3b58e Reviewed by: cc Differential Revision: https://reviews.freebsd.org/D43655 --- sys/net80211/ieee80211_proto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index c0f24344a982..b42ad4e6d14f 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1047,7 +1047,7 @@ vap_update_preamble(void *arg, int npending) IEEE80211_UNLOCK(ic); /* Driver notification */ - if (vap->iv_erp_protmode_update != NULL) + if (vap->iv_preamble_update != NULL) vap->iv_preamble_update(vap); } @@ -1187,7 +1187,7 @@ vap_update_ht_protmode(void *arg, int npending) ic->ic_curhtprotmode); /* Driver update */ - if (vap->iv_erp_protmode_update != NULL) + if (vap->iv_ht_protmode_update != NULL) vap->iv_ht_protmode_update(vap); } From nobody Wed Feb 14 19:49: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 4TZpg81w8Dz52h1Q; Wed, 14 Feb 2024 19:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZpg81Hghz4jdP; Wed, 14 Feb 2024 19:49:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G5KvkbkvuLNIoZphDfVHgHHETPofsGg/plcolYsZQ38=; b=tY2uU3dD7XbsEeNen/Zz5l2jbk6aDayfs1waC6O+tytDew9ZaQniEepEsjPeYUFiw17wYI huUQrB5DUymnLLNbGFTGesK2jXooP7ClLX7HxheXYsKGVHmiaXP/WgzYY13jUjf5n5d9Fi nVbtu6Kxzkq6pPYhCeZWMRLVfqFf9kNbJQoynoLKDhGrTWCICKHXzIVO5KuklWuCexjz/Q tmARtl/s2u74jtJ2cmHD56vGQrKB2d6N10Mvr9wgjlv8rB1PJte57t5iXn2TuBYwPa93Ne A11JUEqjeu4CRb+tGR9WA+YVFaic0Yh3JCqu1XsiVs0wjvkUBvq2NRF/xGWAxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707940164; a=rsa-sha256; cv=none; b=YDO384y5OITcZZFlJFz+N3R4sJEMlDWXneg2QzXzQgHo+AMGx9tnrLUVNpYtVgurvZNI2U QlhcT9uXPV7oOjVSKsqwzN2Mxhj53CaVqU+kGnobX1L4qMcNYfcgMdmWaajKx0rNA7WArm IVpreC7VxYuIsf6KLiqjYZSv2CXQnXk3aDRZvHRnHXkIDXZa/9XntCO0EZnJUlYbMXSEOD rTtBiYL7vXVU9fLmxuI05Z4tMyYcBslIIR7L8mMfsaxeBkzcGUkk15IwwGYkIWhLJcSK6O 6OGYgvUXsgF2L+31Cr5eIbOkQAD5tFYRi9RygAyFvJJjA87Jy1njqjt4HjUquw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G5KvkbkvuLNIoZphDfVHgHHETPofsGg/plcolYsZQ38=; b=tpGtq2pUZoZGX0NGCqsEUFzJrER75Q6pGps7P1N0tl/e9E45m6n6E4lqPY4dRERCDr/dIr kGDHFExE5xyhNNE32jDnPdTDPcbxqvrLo68BVRvfvZNsLTMbvgGaNcqiAYiyWhqdlo02rt xV7IKrE/A+p07WyoP+L3vLIqPhNlTaYKxMs/+cmPhpsrghrG1t/AGevwzCwVghyQjzKza9 4bsaSx7mx3AyqMe6JdPoKJPIdslRTLFez/Et+2NTyMd8/tnRyxN582Mpdm0XqsIu2vwRl8 A9/6oJnV85tebNjlpajLgSCeA9mHDUihqaOXW+DiCGCb5obqTbjKXzvpow11cg== 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 4TZpg803sBz19kG; Wed, 14 Feb 2024 19:49:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EJnNYZ068467; Wed, 14 Feb 2024 19:49:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EJnNFc068464; Wed, 14 Feb 2024 19:49:23 GMT (envelope-from git) Date: Wed, 14 Feb 2024 19:49:23 GMT Message-Id: <202402141949.41EJnNFc068464@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: 53eb2c63c962 - main - LinuxKPI: 802.11: correct HT protection 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 53eb2c63c9628f7f19d88d759e1932c10c9f08af Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=53eb2c63c9628f7f19d88d759e1932c10c9f08af commit 53eb2c63c9628f7f19d88d759e1932c10c9f08af Author: Bjoern A. Zeeb AuthorDate: 2024-01-29 22:35:08 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-14 19:36:30 +0000 LinuxKPI: 802.11: correct HT protection fields It seems during the initial buildup of the file, the defines were either mixed or not flagged as "FIXME". Define the values through to the net80211 definitions and also annotate them by at least some standards reference. MFC after: 3 days Fixes: 6b4cac814e32f Reviewed by: cc Differential Revision: https://reviews.freebsd.org/D43658 --- sys/compat/linuxkpi/common/include/linux/ieee80211.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/ieee80211.h b/sys/compat/linuxkpi/common/include/linux/ieee80211.h index 09487a318811..2000e7480ff8 100644 --- a/sys/compat/linuxkpi/common/include/linux/ieee80211.h +++ b/sys/compat/linuxkpi/common/include/linux/ieee80211.h @@ -197,11 +197,12 @@ enum ieee80211_min_mpdu_start_spacing { #define IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK 8 /* TODO FIXME ax? */ #define IEEE80211_HE_PPE_THRES_INFO_HEADER_SIZE 16 /* TODO FIXME ax? */ -#define IEEE80211_HT_OP_MODE_PROTECTION 0x03 /* MASK */ -#define IEEE80211_HT_OP_MODE_PROTECTION_NONE 0x00 -#define IEEE80211_HT_OP_MODE_PROTECTION_20MHZ 0x01 -#define IEEE80211_HT_OP_MODE_PROTECTION_NONHT_MIXED 0x02 -#define IEEE80211_HT_OP_MODE_PROTECTION_NONMEMBER 0x03 +/* 802.11-2012, Table 8-130-HT Operation element fields and subfields, HT Protection */ +#define IEEE80211_HT_OP_MODE_PROTECTION IEEE80211_HTINFO_OPMODE /* Mask. */ +#define IEEE80211_HT_OP_MODE_PROTECTION_NONE IEEE80211_HTINFO_OPMODE_PURE /* No protection */ +#define IEEE80211_HT_OP_MODE_PROTECTION_NONMEMBER IEEE80211_HTINFO_OPMODE_PROTOPT /* Nonmember protection */ +#define IEEE80211_HT_OP_MODE_PROTECTION_20MHZ IEEE80211_HTINFO_OPMODE_HT20PR /* 20 MHz protection */ +#define IEEE80211_HT_OP_MODE_PROTECTION_NONHT_MIXED IEEE80211_HTINFO_OPMODE_MIXED /* Non-HT mixed */ /* 9.6.13.1, Table 9-342 TDLS Action field values. */ From nobody Wed Feb 14 19:49: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 4TZpg94jSvz52gvn; Wed, 14 Feb 2024 19:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZpg92C2dz4jdg; Wed, 14 Feb 2024 19:49:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UHrCo5v39QX1WGb6ysvxrn6Unozem50/yJuTfrbv3Zc=; b=kwIIyC3dF7VKDqtECkC2cb7mHd2F1Hm04dIKULHmQtUfFCub/+G8ixAUNCG5F55y/mZ/+q b+TY/89fDjhxUTc16B6wM01+Kg07X6FJVt88Os4GVDWGyF2UWfuVMNuUoj/izelvwfX+Ft CF9mPZ5m1/DB6oJHaw4HcPTwg65D+jKK5oJ/wZhMX2O8QlazzsWMy68mvNXNVv0Xj/9i87 E7bFPTEp7McmItNGxLY3FmYn/Cqg/Icqv0l/kJgketE87HMn1xkZIT8tKpJhllhyGIGAmQ tAEquOAYXEQHA7Ttaq83OHSnb8kn/C3qs7TH6VCPNL737j9xZayhcghNOoERcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707940165; a=rsa-sha256; cv=none; b=R93v40Sw0HuV8QOOYHpfCLtFOFFxYH5YiGXVBkBNn8u9Rz1GJQV73tCNE5qmzZlAnFl5bE jn3iusCF1vXuBnQ3g9SIUpAwyxluPC2nK2cVjihuzlphgugzqCnDPj8O7ASAXmhz8fQCIG feyqLM+bPzrdAsDQbQG+Ef11KprXswVeUOJoIEu3gdiXY2LM7h3G8xTpvkjQSPacT25YRj 2fnqx/A/7fxgspMBPaFEIXWZpdta/yJ4WYEAMxv6f2KChMA4mBCDeRgan/ooDTuyVKN+yM tBUcI2exqbhxeL1aM4jU5g7JqStRxXHOV+H5eP35FrplzKdH6F8GVHBKdDzuaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UHrCo5v39QX1WGb6ysvxrn6Unozem50/yJuTfrbv3Zc=; b=RAjX+Fh+BDnf2KOOxJpc3H1A2Pacudlqw2/d/Xe9efiMWILYB59QzuYoQEh9Ize9Roj+p+ gZvEtXfcYCN/R13jE9KlmdKmG5pYyoWjS3chCX8DBqUsk4GsCtMsoTV9JlRUK2qiA62sRM /VuGwEK0P2W7ivBzNIj72GzUuspkLXPcuGPC7J6f+nkcB9LiKA7FnccyJhV5a1Ye5fvsKb ZmU4ZEHRHNXiTgKhaTbTuDxHiQB//vyz6j9lu7flI43WfCR0J5UOIdK5wuqtQTHj2Pl869 d8zgyAzrQ3oWf+FMOwXg5HpQ7cURaZfSM4Wlh3D9JDN70a16jn/v7XNyM5Ej8g== 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 4TZpg9135Nz19rB; Wed, 14 Feb 2024 19:49:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EJnPRs068509; Wed, 14 Feb 2024 19:49:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EJnPqf068506; Wed, 14 Feb 2024 19:49:25 GMT (envelope-from git) Date: Wed, 14 Feb 2024 19:49:25 GMT Message-Id: <202402141949.41EJnPqf068506@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: df9d7d1e0eb6 - main - iwlwifi: improve error 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: df9d7d1e0eb6004c5f5fde78bcc7c28cc27950fb Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=df9d7d1e0eb6004c5f5fde78bcc7c28cc27950fb commit df9d7d1e0eb6004c5f5fde78bcc7c28cc27950fb Author: Bjoern A. Zeeb AuthorDate: 2024-02-12 16:09:12 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-14 19:36:30 +0000 iwlwifi: improve error message In case we cannot identify the firmware monitor buf_location, print the type (usually 0 = invalid) so we have an idea at least of what was set (or not). MFC after: 3 days --- sys/contrib/dev/iwlwifi/pcie/ctxt-info-gen3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/contrib/dev/iwlwifi/pcie/ctxt-info-gen3.c b/sys/contrib/dev/iwlwifi/pcie/ctxt-info-gen3.c index fa4a14546860..5919346a059f 100644 --- a/sys/contrib/dev/iwlwifi/pcie/ctxt-info-gen3.c +++ b/sys/contrib/dev/iwlwifi/pcie/ctxt-info-gen3.c @@ -68,7 +68,11 @@ iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans, } break; default: +#if defined(__linux__) IWL_ERR(trans, "WRT: Invalid buffer destination\n"); +#elif defined(__FreeBSD__) + IWL_ERR(trans, "WRT: Invalid buffer destination: %d\n", le32_to_cpu(fw_mon_cfg->buf_location)); +#endif } out: if (dbg_flags) From nobody Wed Feb 14 19:49: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 4TZpgB5m32z52h2H; Wed, 14 Feb 2024 19:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZpgB36X9z4jmS; Wed, 14 Feb 2024 19:49:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=80rIGuptL3ZXCpjA1L8HjyhulgFTYsL0p8173CvI+ow=; b=jSB+YNjAzhA06fWMTahgLYE1lajrvz9JRXcwx2BsFz4pnYk/KKYRowGkmsLdxW0Wl8mBXn gJ6zCxkd6VJzsdf83Jxnl1aW0oXsDaDWje3v/BDLimvVKrwar+tjQaGK4V3mzQ18/xx/HX hSHVFsrejflLtXEoww78eN1UpQyS5Eu2l3jyetwnhn05mpR5+7NvDFAIUMyT9ohqnoZe9f zr4W4RHTXh/OKyOaaCJcHxDMplvaDPqcr6TE7PKqUVgnh22+9tyishhf+/TdGeqv77VqON 6upUN386gOoRSuoeuqH+fO8fGW/0GGMjEfiuglkWymcd4g8UJgMtdvniLSB4iQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707940166; a=rsa-sha256; cv=none; b=wcpcH8K3qarFi3wcTQBb3VmMpgKjiSL2LN3Qo+Gd/qYy0XoyYWfBULQWzEMfA/1xq3y9d8 4KfPsisHYJkjwU9ppG2eyR60YIrdu4k+jwbk0hPL+rZEERX+ZksjBVSRHe/tl+glakOsKK z+FzyYXtWB82sOxM/6kNoN+roPKJVqa5AorLGr5iiQpHWkZ7V9NR8Zzb1vSCcAvw0LxqGd HxotwlhqyPMvlZTI9xp715rE/XS1oUzTo08dcExZqYbke0pSSchcPM8+xTvY355UBx2U6q VCg0LWSQOHZxhNN69Phj8kMNhbAutjZkYjZxKgo1ovE2wbXjNgGqksETxk3RtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=80rIGuptL3ZXCpjA1L8HjyhulgFTYsL0p8173CvI+ow=; b=R9yfGjBhvuf+134JfNETUXXNAX3AmKzhEdPnC+kOvV3B1yohEJERCl2bhbUk+Njg+7QtRb 9XMhAp7bwDpNv2mWZPG9DptaenlqoSu1nJnP+FN8Df++Lf45Q5++rHFULRLpFM3h/MLQu9 TbaXJqMN21JB2C3jIQT+4Of5Wra8CvgeBi2I1/lkjhosI6AXwU6z+RWrYGifOcHK1SRL1O 87+J7TrBBTkUv8VnwjPyyEY0VAl9KNqFvuYXkDGrg+o1lsQUZMFiMX3vSjlOcx1y7aDZAD ZQ0aoVmVMtR7/xBxESGiOLLGb5MPl+s1QHJPihQ6l+jJnKQUKbo/MbRqwhmi+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 4TZpgB28R6z19t3; Wed, 14 Feb 2024 19:49:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EJnQBB068564; Wed, 14 Feb 2024 19:49:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EJnQxZ068561; Wed, 14 Feb 2024 19:49:26 GMT (envelope-from git) Date: Wed, 14 Feb 2024 19:49:26 GMT Message-Id: <202402141949.41EJnQxZ068561@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: 713db49d06de - main - net80211: deal with lost state transitions 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 713db49d06deee90dd358b2e4b9ca05368a5eaf6 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=713db49d06deee90dd358b2e4b9ca05368a5eaf6 commit 713db49d06deee90dd358b2e4b9ca05368a5eaf6 Author: Bjoern A. Zeeb AuthorDate: 2024-01-10 10:14:16 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-14 19:47:21 +0000 net80211: deal with lost state transitions Since 5efea30f039c4 we can possibly lose a state transition which can cause trouble further down the road. The reproducer from 643d6dce6c1e can trigger these for example. Drivers for firmware based wireless cards have worked around some of this (and other) problems in the past. Add an array of tasks rather than a single one as we would simply get npending > 1 and lose order with other tasks. Try to keep state changes updated as queued in case we end up with more than one at a time. While this is not ideal either (call it a hack) it will sort the problem for now. We will queue in ieee80211_new_state_locked() and do checks there and dequeue in ieee80211_newstate_cb(). If we still overrun the (currently) 8 slots we will drop the state change rather than overwrite the last one. When dequeing we will update iv_nstate and keep it around for historic reasons for the moment. The longer term we should make the callers of ieee80211_new_state[_locked]() actually use the returned errors and act appropriately but that will touch a lot more places and drivers (possibly incl. changed behaviour for ioctls). rtwn(4) and rum(4) should probably be revisted and net80211 internals removed (for rum(4) at least the current logic still seems prone to races). PR: 271979, 271988, 275255, 263613, 274003 Sponsored by: The FreeBSD Foundation (in 2023) MFC after: 3 days Reviewed by: cc Differential Revision: https://reviews.freebsd.org/D43389 --- sys/dev/rtwn/if_rtwn.c | 4 +- sys/dev/usb/wlan/if_rum.c | 4 +- sys/net80211/ieee80211.c | 4 +- sys/net80211/ieee80211_ddb.c | 13 ++++- sys/net80211/ieee80211_proto.c | 124 ++++++++++++++++++++++++++++++++++------- sys/net80211/ieee80211_var.h | 13 ++++- 6 files changed, 134 insertions(+), 28 deletions(-) diff --git a/sys/dev/rtwn/if_rtwn.c b/sys/dev/rtwn/if_rtwn.c index baf427b4aafc..4334d5700e51 100644 --- a/sys/dev/rtwn/if_rtwn.c +++ b/sys/dev/rtwn/if_rtwn.c @@ -614,10 +614,12 @@ rtwn_vap_delete(struct ieee80211vap *vap) struct ieee80211com *ic = vap->iv_ic; struct rtwn_softc *sc = ic->ic_softc; struct rtwn_vap *uvp = RTWN_VAP(vap); + int i; /* Put vap into INIT state + stop device if needed. */ ieee80211_stop(vap); - ieee80211_draintask(ic, &vap->iv_nstate_task); + for (i = 0; i < NET80211_IV_NSTATE_NUM; i++) + ieee80211_draintask(ic, &vap->iv_nstate_task[i]); ieee80211_draintask(ic, &ic->ic_parent_task); RTWN_LOCK(sc); diff --git a/sys/dev/usb/wlan/if_rum.c b/sys/dev/usb/wlan/if_rum.c index 4e053c1c2433..2720f2ffedcb 100644 --- a/sys/dev/usb/wlan/if_rum.c +++ b/sys/dev/usb/wlan/if_rum.c @@ -719,10 +719,12 @@ rum_vap_delete(struct ieee80211vap *vap) struct rum_vap *rvp = RUM_VAP(vap); struct ieee80211com *ic = vap->iv_ic; struct rum_softc *sc = ic->ic_softc; + int i; /* Put vap into INIT state. */ ieee80211_new_state(vap, IEEE80211_S_INIT, -1); - ieee80211_draintask(ic, &vap->iv_nstate_task); + for (i = 0; i < NET80211_IV_NSTATE_NUM; i++) + ieee80211_draintask(ic, &vap->iv_nstate_task[i]); RUM_LOCK(sc); /* Cancel any unfinished Tx. */ diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 3809b7e6596c..15785a8f0966 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -730,6 +730,7 @@ ieee80211_vap_detach(struct ieee80211vap *vap) { struct ieee80211com *ic = vap->iv_ic; struct ifnet *ifp = vap->iv_ifp; + int i; CURVNET_SET(ifp->if_vnet); @@ -744,7 +745,8 @@ ieee80211_vap_detach(struct ieee80211vap *vap) /* * Flush any deferred vap tasks. */ - ieee80211_draintask(ic, &vap->iv_nstate_task); + for (i = 0; i < NET80211_IV_NSTATE_NUM; i++) + ieee80211_draintask(ic, &vap->iv_nstate_task[i]); ieee80211_draintask(ic, &vap->iv_swbmiss_task); ieee80211_draintask(ic, &vap->iv_wme_task); ieee80211_draintask(ic, &ic->ic_parent_task); diff --git a/sys/net80211/ieee80211_ddb.c b/sys/net80211/ieee80211_ddb.c index 0042d5d4aeb6..eca893fa6810 100644 --- a/sys/net80211/ieee80211_ddb.c +++ b/sys/net80211/ieee80211_ddb.c @@ -470,7 +470,8 @@ _db_show_vap(const struct ieee80211vap *vap, int showmesh, int showprocs) if (vap->iv_opmode == IEEE80211_M_MBSS) db_printf("(%p)", vap->iv_mesh); #endif - db_printf(" state %s", ieee80211_state_name[vap->iv_state]); + db_printf(" state %#x %s", vap->iv_state, + ieee80211_state_name[vap->iv_state]); db_printf(" ifp %p(%s)", vap->iv_ifp, if_name(vap->iv_ifp)); db_printf("\n"); @@ -482,6 +483,16 @@ _db_show_vap(const struct ieee80211vap *vap, int showmesh, int showprocs) struct sysctllog *iv_sysctl; /* dynamic sysctl context */ #endif db_printf("\n"); + + db_printf("\tiv_nstate %#x %s iv_nstate_b %d iv_nstate_n %d\n", + vap->iv_nstate, ieee80211_state_name[vap->iv_nstate], /* historic */ + vap->iv_nstate_b, vap->iv_nstate_n); + for (i = 0; i < NET80211_IV_NSTATE_NUM; i++) { + db_printf("\t [%d] iv_nstates %#x %s _task %p _args %d\n", i, + vap->iv_nstates[i], ieee80211_state_name[vap->iv_nstates[i]], + &vap->iv_nstate_task[i], vap->iv_nstate_args[i]); + } + db_printf("\tdebug=%b\n", vap->iv_debug, IEEE80211_MSG_BITS); db_printf("\tflags=%b\n", vap->iv_flags, IEEE80211_F_BITS); diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index b42ad4e6d14f..823f1ab3f486 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -336,7 +336,8 @@ ieee80211_proto_vattach(struct ieee80211vap *vap) vap->iv_bmiss_max = IEEE80211_BMISS_MAX; callout_init_mtx(&vap->iv_swbmiss, IEEE80211_LOCK_OBJ(ic), 0); callout_init(&vap->iv_mgtsend, 1); - TASK_INIT(&vap->iv_nstate_task, 0, ieee80211_newstate_cb, vap); + for (i = 0; i < NET80211_IV_NSTATE_NUM; i++) + TASK_INIT(&vap->iv_nstate_task[i], 0, ieee80211_newstate_cb, vap); TASK_INIT(&vap->iv_swbmiss_task, 0, beacon_swmiss, vap); TASK_INIT(&vap->iv_wme_task, 0, vap_update_wme, vap); TASK_INIT(&vap->iv_slot_task, 0, vap_update_slot, vap); @@ -2493,6 +2494,51 @@ wakeupwaiting(struct ieee80211vap *vap0) } } +static int +_ieee80211_newstate_get_next_empty_slot(struct ieee80211vap *vap) +{ + int nstate_num; + + IEEE80211_LOCK_ASSERT(vap->iv_ic); + + if (vap->iv_nstate_n >= NET80211_IV_NSTATE_NUM) + return (-1); + + nstate_num = vap->iv_nstate_b + vap->iv_nstate_n; + nstate_num %= NET80211_IV_NSTATE_NUM; + vap->iv_nstate_n++; + + return (nstate_num); +} + +static int +_ieee80211_newstate_get_next_pending_slot(struct ieee80211vap *vap) +{ + int nstate_num; + + IEEE80211_LOCK_ASSERT(vap->iv_ic); + + KASSERT(vap->iv_nstate_n > 0, ("%s: vap %p iv_nstate_n %d\n", + __func__, vap, vap->iv_nstate_n)); + + nstate_num = vap->iv_nstate_b; + vap->iv_nstate_b++; + if (vap->iv_nstate_b >= NET80211_IV_NSTATE_NUM) + vap->iv_nstate_b = 0; + vap->iv_nstate_n--; + + return (nstate_num); +} + +static int +_ieee80211_newstate_get_npending(struct ieee80211vap *vap) +{ + + IEEE80211_LOCK_ASSERT(vap->iv_ic); + + return (vap->iv_nstate_n); +} + /* * Handle post state change work common to all operating modes. */ @@ -2502,17 +2548,25 @@ ieee80211_newstate_cb(void *xvap, int npending) struct ieee80211vap *vap = xvap; struct ieee80211com *ic = vap->iv_ic; enum ieee80211_state nstate, ostate; - int arg, rc; + int arg, rc, nstate_num; + KASSERT(npending == 1, ("%s: vap %p with npending %d != 1\n", + __func__, vap, npending)); IEEE80211_LOCK(ic); - nstate = vap->iv_nstate; - arg = vap->iv_nstate_arg; + nstate_num = _ieee80211_newstate_get_next_pending_slot(vap); + + /* + * Update the historic fields for now as they are used in some + * drivers and reduce code changes for now. + */ + vap->iv_nstate = nstate = vap->iv_nstates[nstate_num]; + arg = vap->iv_nstate_args[nstate_num]; IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, "%s:%d: running state update %s -> %s (%d)\n", __func__, __LINE__, ieee80211_state_name[vap->iv_state], - ieee80211_state_name[vap->iv_nstate], + ieee80211_state_name[nstate], npending); if (vap->iv_flags_ext & IEEE80211_FEXT_REINIT) { @@ -2523,9 +2577,10 @@ ieee80211_newstate_cb(void *xvap, int npending) /* Deny any state changes while we are here. */ vap->iv_nstate = IEEE80211_S_INIT; IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, - "%s: %s -> %s arg %d\n", __func__, + "%s: %s -> %s arg %d -> %s arg %d\n", __func__, ieee80211_state_name[vap->iv_state], - ieee80211_state_name[vap->iv_nstate], arg); + ieee80211_state_name[vap->iv_nstate], 0, + ieee80211_state_name[nstate], arg); vap->iv_newstate(vap, vap->iv_nstate, 0); IEEE80211_LOCK_ASSERT(ic); vap->iv_flags_ext &= ~(IEEE80211_FEXT_REINIT | @@ -2666,7 +2721,7 @@ ieee80211_new_state_locked(struct ieee80211vap *vap, struct ieee80211com *ic = vap->iv_ic; struct ieee80211vap *vp; enum ieee80211_state ostate; - int nrunning, nscanning; + int nrunning, nscanning, nstate_num; IEEE80211_LOCK_ASSERT(ic); @@ -2688,14 +2743,6 @@ ieee80211_new_state_locked(struct ieee80211vap *vap, ieee80211_state_name[nstate], ieee80211_state_name[vap->iv_nstate]); return -1; - } else if (vap->iv_state != vap->iv_nstate) { - /* Warn if the previous state hasn't completed. */ - IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, - "%s:%d: pending %s -> %s (now to %s) transition lost\n", - __func__, __LINE__, - ieee80211_state_name[vap->iv_state], - ieee80211_state_name[vap->iv_nstate], - ieee80211_state_name[nstate]); } } @@ -2718,7 +2765,16 @@ ieee80211_new_state_locked(struct ieee80211vap *vap, nscanning++; } } - ostate = vap->iv_state; + /* + * Look ahead for the "old state" at that point when the last queued + * state transition is run. + */ + if (vap->iv_nstate_n == 0) { + ostate = vap->iv_state; + } else { + nstate_num = (vap->iv_nstate_b + vap->iv_nstate_n - 1) % NET80211_IV_NSTATE_NUM; + ostate = vap->iv_nstates[nstate_num]; + } IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, "%s: %s -> %s (arg %d) (nrunning %d nscanning %d)\n", __func__, ieee80211_state_name[ostate], ieee80211_state_name[nstate], arg, @@ -2812,11 +2868,37 @@ ieee80211_new_state_locked(struct ieee80211vap *vap, default: break; } - /* defer the state change to a thread */ - vap->iv_nstate = nstate; - vap->iv_nstate_arg = arg; + /* + * Defer the state change to a thread. + * We support up-to NET80211_IV_NSTATE_NUM pending state changes + * using a separate task for each. Otherwise, if we enqueue + * more than one state change they will be folded together, + * npedning will be > 1 and we may run then out of sequence with + * other events. + * This is kind-of a hack after 10 years but we know how to provoke + * these cases now (and seen them in the wild). + */ + nstate_num = _ieee80211_newstate_get_next_empty_slot(vap); + if (nstate_num == -1) { + /* + * This is really bad and we should just go kaboom. + * Instead drop it. No one checks the return code anyway. + */ + ic_printf(ic, "%s:%d: pending %s -> %s (now to %s) " + "transition lost. %d/%d pending state changes:\n", + __func__, __LINE__, + ieee80211_state_name[vap->iv_state], + ieee80211_state_name[vap->iv_nstate], + ieee80211_state_name[nstate], + _ieee80211_newstate_get_npending(vap), + NET80211_IV_NSTATE_NUM); + + return (EAGAIN); + } + vap->iv_nstates[nstate_num] = nstate; + vap->iv_nstate_args[nstate_num] = arg; vap->iv_flags_ext |= IEEE80211_FEXT_STATEWAIT; - ieee80211_runtask(ic, &vap->iv_nstate_task); + ieee80211_runtask(ic, &vap->iv_nstate_task[nstate_num]); return EINPROGRESS; } diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h index f42ebb4fa261..b69bb5f7ad87 100644 --- a/sys/net80211/ieee80211_var.h +++ b/sys/net80211/ieee80211_var.h @@ -410,9 +410,16 @@ struct ieee80211vap { uint32_t iv_com_state; /* com usage / detached flag */ enum ieee80211_opmode iv_opmode; /* operation mode */ enum ieee80211_state iv_state; /* state machine state */ - enum ieee80211_state iv_nstate; /* pending state */ - int iv_nstate_arg; /* pending state arg */ - struct task iv_nstate_task; /* deferred state processing */ + + /* Deferred state processing. */ + enum ieee80211_state iv_nstate; /* next pending state (historic) */ +#define NET80211_IV_NSTATE_NUM 8 + int iv_nstate_b; /* First filled slot. */ + int iv_nstate_n; /* # of filled slots. */ + enum ieee80211_state iv_nstates[NET80211_IV_NSTATE_NUM]; /* queued pending state(s) */ + int iv_nstate_args[NET80211_IV_NSTATE_NUM]; /* queued pending state(s) arg */ + struct task iv_nstate_task[NET80211_IV_NSTATE_NUM]; + struct task iv_swbmiss_task;/* deferred iv_bmiss call */ struct callout iv_mgtsend; /* mgmt frame response timer */ /* inactivity timer settings */ From nobody Wed Feb 14 19:49: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 4TZpgD0Cdpz52hHh; Wed, 14 Feb 2024 19:49:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZpgC3T9zz4jkK; Wed, 14 Feb 2024 19:49:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LnqogN9v7dIxsv5SBtc+187YvuFtxnseSiW6lcLbZ5w=; b=SYR00hZe5XRy3aMugsNA6Kap+dWiGXJlnSlRcUyF5i20uFOJwuazT8OkwLOwc8iGdnnU6x 13oC4i+zQ2O1EE+rLT5nKcIbWosE2WrT2LTFe1TH3f73HXT0nlQBOd4/6PtxlyGhhXh7Nl KWy164JmKQdR8/JO0MJIr32aOlkOQqJU54TgOdxNcgBfvHW8rMzstx6LqdJyX20L4PACU6 +/3dkCNlkJW2gdqhvHo+4fWbTln+Dh4F6pSP7eSDytqpTCdk2uQXQ3+Mf9a9SxL0rxv7ZM Eo6hlhP4PmOqVPDYXgxuek+0Lcn98T/1rFuTEvVtAUtww7nq0567TGV0hAYNew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707940167; a=rsa-sha256; cv=none; b=MqpM/O4LtnHJAmJ0IKlgmfNdgnELsEp/bx9ei+aJ1qsfWtxQDPbHXn7BU2gl07d6+4ZNdA Vp0ofQQI3KneCqlmFDsdBLShAaXKUJP4MeXGVs+zEstGmuSfPHCxr2q2ogzonNouDY8Ztn ikoGyD2QRERpaMDlVGIPtaGli+tA3Gy5j/GIVoJXytv+3CcAMxWoG47dVOf5WiFAxNENvs X2yGpF+XqHWaMdO70U6sypvym9SalSexS0Gbj64cAVo1/T4YsHIOsDv6P6xPphuNpiY0dZ rApMTry4pDmUjNe6VIdKBHoeBQQZw/vf15WhqTrwkCCB4hPru9b4nVnkioxxrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LnqogN9v7dIxsv5SBtc+187YvuFtxnseSiW6lcLbZ5w=; b=ZG0MQVPz11LFhvaFo6hqRZhOKgNCBYJt4kndPEyy7qeBtOrNA/J+Rj5no9X8GSz+a1HbkG wgzeW4UML5FOxuyU4LyNo6Ejj+7xqGwaQkZYR+rzzwR965MNj7scLsEerX6E1jSsxArTBv AOd1kC6kc/NLUssbbGhPByn1/N70lE0IQ4tIgI/GRyJF+8pfebRCivQhnHrmxm4I/uENgy NSbkcpG6IAXaoSxtudPsrBimlwTR493obZaaYTECc3vveAnZuzHXZNCS+GxxFOvynTl3k9 tqUiswPNkFzAuh5tEfMiTdtx6SwaJ8DiMR7xzA/q3mM1L1F9Quw8aSd+SLoztg== 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 4TZpgC2b6Lz19nF; Wed, 14 Feb 2024 19:49:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EJnRDw068621; Wed, 14 Feb 2024 19:49:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EJnRdW068618; Wed, 14 Feb 2024 19:49:27 GMT (envelope-from git) Date: Wed, 14 Feb 2024 19:49:27 GMT Message-Id: <202402141949.41EJnRdW068618@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: 2ac8a2189ac6 - main - LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss) 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 2ac8a2189ac6707f48f77ef2e36baf696a0d2f40 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=2ac8a2189ac6707f48f77ef2e36baf696a0d2f40 commit 2ac8a2189ac6707f48f77ef2e36baf696a0d2f40 Author: Bjoern A. Zeeb AuthorDate: 2024-02-03 16:33:56 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-14 19:47:53 +0000 LinuxKPI: 802.11: band-aid for invalid state changes after (*iv_update_bss) With firmware based solutions we cannot just jump from an active session to a new iv_bss node without tearing down state for the old and bringing up the new node. This likely used to work on softmac based cards/drivers where one could essentially set the state and fire at will. We track (*iv_update_bss) calls from net80211 and set a local flag that we are out of synch and do not allow any further operations up the state machine until we hit INIT or SCAN. That means someone will take the state down, clean up firmware state and then we can join again and build up state. Apparently this problem has been "known" for a while as native iwm(4) and others have similar workarounds (though less strict) and can be equally pestered into bad states. For LinuxKPI all the KASSERTs just massively brought this problem out. The solution will be some rewrites in net80211. Until then, try to keep us more stable at least and not die on second join1() calls triggered by service netif start wlan0 and similar. PR: 271979, 271988, 275255, 263613, 274003 Sponsored by: The FreeBSD Foundation (2023, partial) MFC after: 3 days Reviewed by: cc Differential Revision: https://reviews.freebsd.org/D43725 --- sys/compat/linuxkpi/common/src/linux_80211.c | 309 +++++++++++++++++++-------- sys/compat/linuxkpi/common/src/linux_80211.h | 2 + 2 files changed, 216 insertions(+), 95 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index edd2423c59b5..ea742371f797 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -610,6 +610,7 @@ lkpi_find_lkpi80211_chan(struct lkpi_hw *lhw, return (NULL); } +#if 0 static struct linuxkpi_ieee80211_channel * lkpi_get_lkpi80211_chan(struct ieee80211com *ic, struct ieee80211_node *ni) { @@ -634,6 +635,7 @@ lkpi_get_lkpi80211_chan(struct ieee80211com *ic, struct ieee80211_node *ni) return (chan); } +#endif struct linuxkpi_ieee80211_channel * linuxkpi_ieee80211_get_channel(struct wiphy *wiphy, uint32_t freq) @@ -1039,19 +1041,37 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int uint32_t changed; int error; - chan = lkpi_get_lkpi80211_chan(vap->iv_ic, vap->iv_bss); + /* + * In here we use vap->iv_bss until lvif->lvif_bss is set. + * For all later (STATE >= AUTH) functions we need to use the lvif + * cache which will be tracked even through (*iv_update_bss)(). + */ + + if (vap->iv_bss == NULL) { + ic_printf(vap->iv_ic, "%s: no iv_bss for vap %p\n", __func__, vap); + return (EINVAL); + } + ni = ieee80211_ref_node(vap->iv_bss); + if (ni->ni_chan == NULL || ni->ni_chan == IEEE80211_CHAN_ANYC) { + ic_printf(vap->iv_ic, "%s: no channel set for iv_bss ni %p " + "on vap %p\n", __func__, ni, vap); + ieee80211_free_node(ni); + return (EINVAL); + } + + lhw = vap->iv_ic->ic_softc; + chan = lkpi_find_lkpi80211_chan(lhw, ni->ni_chan); if (chan == NULL) { - ic_printf(vap->iv_ic, "%s: failed to get channel\n", __func__); + ic_printf(vap->iv_ic, "%s: failed to get LKPI channel from " + "iv_bss ni %p on vap %p\n", __func__, ni, vap); + ieee80211_free_node(ni); return (ESRCH); } - lhw = vap->iv_ic->ic_softc; hw = LHW_TO_HW(lhw); lvif = VAP_TO_LVIF(vap); vif = LVIF_TO_VIF(lvif); - ni = ieee80211_ref_node(vap->iv_bss); - IEEE80211_UNLOCK(vap->iv_ic); LKPI_80211_LHW_LOCK(lhw); @@ -1076,6 +1096,8 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int conf->def.center_freq1 = chan->center_freq; conf->def.center_freq2 = 0; IMPROVE("Check vht_cap from band not just chan?"); + KASSERT(ni->ni_chan != NULL && ni->ni_chan != IEEE80211_CHAN_ANYC, + ("%s:%d: ni %p ni_chan %p\n", __func__, __LINE__, ni, ni->ni_chan)); #ifdef LKPI_80211_HT if (IEEE80211_IS_CHAN_HT(ni->ni_chan)) { if (IEEE80211_IS_CHAN_HT40(ni->ni_chan)) { @@ -1186,6 +1208,8 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int * workflow so live with this. It is a compat layer after all. */ if (ni->ni_drv_data == NULL) { + ic_printf(vap->iv_ic, "%s:%d: lkpi_lsta_alloc to be called: " + "ni %p lsta %p\n", __func__, __LINE__, ni, ni->ni_drv_data); lsta = lkpi_lsta_alloc(vap, ni->ni_macaddr, hw, ni); if (lsta == NULL) { error = ENOMEM; @@ -1198,8 +1222,22 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int lsta = ni->ni_drv_data; } - /* Insert the [l]sta into the list of known stations. */ LKPI_80211_LVIF_LOCK(lvif); + /* XXX-BZ KASSERT later? */ + /* XXX-BZ this should have caught the upper lkpi_lsta_alloc() too! */ + if (lvif->lvif_bss_synched || lvif->lvif_bss != NULL) + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d, ni %p lsta %p\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched, ni, lsta); + + /* Reference the ni for this cache of lsta. */ + ieee80211_ref_node(vap->iv_bss); + lvif->lvif_bss = lsta; + lvif->lvif_bss_synched = true; + + /* Insert the [l]sta into the list of known stations. */ TAILQ_INSERT_TAIL(&lvif->lsta_head, lsta, lsta_entry); LKPI_80211_LVIF_UNLOCK(lvif); @@ -1271,9 +1309,23 @@ lkpi_sta_auth_to_scan(struct ieee80211vap *vap, enum ieee80211_state nstate, int lvif = VAP_TO_LVIF(vap); vif = LVIF_TO_VIF(lvif); - /* Keep ni around. */ - ni = ieee80211_ref_node(vap->iv_bss); - lsta = ni->ni_drv_data; + LKPI_80211_LVIF_LOCK(lvif); +#ifdef LINUXKPI_DEBUG_80211 + /* XXX-BZ KASSERT later; state going down so no action. */ + if (lvif->lvif_bss == NULL) + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched); +#endif + + lsta = lvif->lvif_bss; + LKPI_80211_LVIF_UNLOCK(lvif); + KASSERT(lsta != NULL && lsta->ni != NULL, ("%s: lsta %p ni %p " + "lvif %p vap %p\n", __func__, + lsta, (lsta != NULL) ? lsta->ni : NULL, lvif, vap)); + ni = lsta->ni; /* Reference held for lvif_bss. */ sta = LSTA_TO_STA(lsta); lkpi_lsta_dump(lsta, ni, __func__, __LINE__); @@ -1323,6 +1375,13 @@ lkpi_sta_auth_to_scan(struct ieee80211vap *vap, enum ieee80211_state nstate, int lkpi_lsta_dump(lsta, ni, __func__, __LINE__); + LKPI_80211_LVIF_LOCK(lvif); + /* Remove ni reference for this cache of lsta. */ + lvif->lvif_bss = NULL; + lvif->lvif_bss_synched = false; + LKPI_80211_LVIF_UNLOCK(lvif); + ieee80211_free_node(ni); /* was lvif->lvif_bss->ni */ + lkpi_lsta_remove(lsta, lvif); /* conf_tx */ @@ -1346,8 +1405,6 @@ lkpi_sta_auth_to_scan(struct ieee80211vap *vap, enum ieee80211_state nstate, int out: LKPI_80211_LHW_UNLOCK(lhw); IEEE80211_LOCK(vap->iv_ic); - if (ni != NULL) - ieee80211_free_node(ni); return (error); } @@ -1369,7 +1426,6 @@ lkpi_sta_auth_to_assoc(struct ieee80211vap *vap, enum ieee80211_state nstate, in struct ieee80211_hw *hw; struct lkpi_vif *lvif; struct ieee80211_vif *vif; - struct ieee80211_node *ni; struct lkpi_sta *lsta; struct ieee80211_prep_tx_info prep_tx_info; int error; @@ -1381,15 +1437,30 @@ lkpi_sta_auth_to_assoc(struct ieee80211vap *vap, enum ieee80211_state nstate, in IEEE80211_UNLOCK(vap->iv_ic); LKPI_80211_LHW_LOCK(lhw); - ni = NULL; + + LKPI_80211_LVIF_LOCK(lvif); + /* XXX-BZ KASSERT later? */ + if (!lvif->lvif_bss_synched || lvif->lvif_bss == NULL) { +#ifdef LINUXKPI_DEBUG_80211 + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched); +#endif + error = ENOTRECOVERABLE; + LKPI_80211_LVIF_UNLOCK(lvif); + goto out; + } + lsta = lvif->lvif_bss; + LKPI_80211_LVIF_UNLOCK(lvif); + + KASSERT(lsta != NULL, ("%s: lsta %p\n", __func__, lsta)); /* Finish auth. */ IMPROVE("event callback"); /* Update sta_state (NONE to AUTH). */ - ni = ieee80211_ref_node(vap->iv_bss); - lsta = ni->ni_drv_data; - KASSERT(lsta != NULL, ("%s: ni %p lsta is NULL\n", __func__, ni)); KASSERT(lsta->state == IEEE80211_STA_NONE, ("%s: lsta %p state not " "NONE: %#x\n", __func__, lsta, lsta->state)); error = lkpi_80211_mo_sta_state(hw, vif, lsta, IEEE80211_STA_AUTH); @@ -1433,8 +1504,6 @@ lkpi_sta_auth_to_assoc(struct ieee80211vap *vap, enum ieee80211_state nstate, in out: LKPI_80211_LHW_UNLOCK(lhw); IEEE80211_LOCK(vap->iv_ic); - if (ni != NULL) - ieee80211_free_node(ni); return (error); } @@ -1446,20 +1515,37 @@ lkpi_sta_a_to_a(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) struct ieee80211_hw *hw; struct lkpi_vif *lvif; struct ieee80211_vif *vif; - struct ieee80211_node *ni; struct lkpi_sta *lsta; struct ieee80211_prep_tx_info prep_tx_info; + int error; lhw = vap->iv_ic->ic_softc; hw = LHW_TO_HW(lhw); lvif = VAP_TO_LVIF(vap); vif = LVIF_TO_VIF(lvif); - ni = ieee80211_ref_node(vap->iv_bss); - IEEE80211_UNLOCK(vap->iv_ic); LKPI_80211_LHW_LOCK(lhw); - lsta = ni->ni_drv_data; + + LKPI_80211_LVIF_LOCK(lvif); + /* XXX-BZ KASSERT later? */ + if (!lvif->lvif_bss_synched || lvif->lvif_bss == NULL) { +#ifdef LINUXKPI_DEBUG_80211 + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched); +#endif + LKPI_80211_LVIF_UNLOCK(lvif); + error = ENOTRECOVERABLE; + goto out; + } + lsta = lvif->lvif_bss; + LKPI_80211_LVIF_UNLOCK(lvif); + + KASSERT(lsta != NULL, ("%s: lsta %p! lvif %p vap %p\n", __func__, + lsta, lvif, vap)); IMPROVE("event callback?"); @@ -1481,12 +1567,12 @@ lkpi_sta_a_to_a(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) lsta->in_mgd = true; } + error = 0; +out: LKPI_80211_LHW_UNLOCK(lhw); IEEE80211_LOCK(vap->iv_ic); - if (ni != NULL) - ieee80211_free_node(ni); - return (0); + return (error); } static int @@ -1508,16 +1594,30 @@ _lkpi_sta_assoc_to_down(struct ieee80211vap *vap, enum ieee80211_state nstate, i lvif = VAP_TO_LVIF(vap); vif = LVIF_TO_VIF(lvif); - /* Keep ni around. */ - ni = ieee80211_ref_node(vap->iv_bss); - lsta = ni->ni_drv_data; + IEEE80211_UNLOCK(vap->iv_ic); + LKPI_80211_LHW_LOCK(lhw); + + LKPI_80211_LVIF_LOCK(lvif); +#ifdef LINUXKPI_DEBUG_80211 + /* XXX-BZ KASSERT later; state going down so no action. */ + if (lvif->lvif_bss == NULL) + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched); +#endif + lsta = lvif->lvif_bss; + LKPI_80211_LVIF_UNLOCK(lvif); + KASSERT(lsta != NULL && lsta->ni != NULL, ("%s: lsta %p ni %p " + "lvif %p vap %p\n", __func__, + lsta, (lsta != NULL) ? lsta->ni : NULL, lvif, vap)); + + ni = lsta->ni; /* Reference held for lvif_bss. */ sta = LSTA_TO_STA(lsta); lkpi_lsta_dump(lsta, ni, __func__, __LINE__); - IEEE80211_UNLOCK(vap->iv_ic); - LKPI_80211_LHW_LOCK(lhw); - /* flush, drop. */ lkpi_80211_mo_flush(hw, vif, nitems(sta->txq), true); @@ -1613,6 +1713,13 @@ _lkpi_sta_assoc_to_down(struct ieee80211vap *vap, enum ieee80211_state nstate, i bss_changed |= BSS_CHANGED_BSSID; lkpi_80211_mo_bss_info_changed(hw, vif, &vif->bss_conf, bss_changed); + LKPI_80211_LVIF_LOCK(lvif); + /* Remove ni reference for this cache of lsta. */ + lvif->lvif_bss = NULL; + lvif->lvif_bss_synched = false; + LKPI_80211_LVIF_UNLOCK(lvif); + ieee80211_free_node(ni); /* was lvif->lvif_bss->ni */ + lkpi_lsta_remove(lsta, lvif); /* conf_tx */ @@ -1638,8 +1745,6 @@ out: LKPI_80211_LHW_UNLOCK(lhw); IEEE80211_LOCK(vap->iv_ic); outni: - if (ni != NULL) - ieee80211_free_node(ni); return (error); } @@ -1697,16 +1802,34 @@ lkpi_sta_assoc_to_run(struct ieee80211vap *vap, enum ieee80211_state nstate, int IEEE80211_UNLOCK(vap->iv_ic); LKPI_80211_LHW_LOCK(lhw); - ni = NULL; + + LKPI_80211_LVIF_LOCK(lvif); + /* XXX-BZ KASSERT later? */ + if (!lvif->lvif_bss_synched || lvif->lvif_bss == NULL) { +#ifdef LINUXKPI_DEBUG_80211 + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched); +#endif + LKPI_80211_LVIF_UNLOCK(lvif); + error = ENOTRECOVERABLE; + goto out; + } + lsta = lvif->lvif_bss; + LKPI_80211_LVIF_UNLOCK(lvif); + KASSERT(lsta != NULL && lsta->ni != NULL, ("%s: lsta %p ni %p " + "lvif %p vap %p\n", __func__, + lsta, (lsta != NULL) ? lsta->ni : NULL, lvif, vap)); + + ni = lsta->ni; /* Reference held for lvif_bss. */ IMPROVE("ponder some of this moved to ic_newassoc, scan_assoc_success, " "and to lesser extend ieee80211_notify_node_join"); /* Finish assoc. */ /* Update sta_state (AUTH to ASSOC) and set aid. */ - ni = ieee80211_ref_node(vap->iv_bss); - lsta = ni->ni_drv_data; - KASSERT(lsta != NULL, ("%s: ni %p lsta is NULL\n", __func__, ni)); KASSERT(lsta->state == IEEE80211_STA_AUTH, ("%s: lsta %p state not " "AUTH: %#x\n", __func__, lsta, lsta->state)); sta = LSTA_TO_STA(lsta); @@ -1819,8 +1942,6 @@ lkpi_sta_assoc_to_run(struct ieee80211vap *vap, enum ieee80211_state nstate, int out: LKPI_80211_LHW_UNLOCK(lhw); IEEE80211_LOCK(vap->iv_ic); - if (ni != NULL) - ieee80211_free_node(ni); return (error); } @@ -1856,9 +1977,23 @@ lkpi_sta_run_to_assoc(struct ieee80211vap *vap, enum ieee80211_state nstate, int lvif = VAP_TO_LVIF(vap); vif = LVIF_TO_VIF(lvif); - /* Keep ni around. */ - ni = ieee80211_ref_node(vap->iv_bss); - lsta = ni->ni_drv_data; + LKPI_80211_LVIF_LOCK(lvif); +#ifdef LINUXKPI_DEBUG_80211 + /* XXX-BZ KASSERT later; state going down so no action. */ + if (lvif->lvif_bss == NULL) + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched); +#endif + lsta = lvif->lvif_bss; + LKPI_80211_LVIF_UNLOCK(lvif); + KASSERT(lsta != NULL && lsta->ni != NULL, ("%s: lsta %p ni %p " + "lvif %p vap %p\n", __func__, + lsta, (lsta != NULL) ? lsta->ni : NULL, lvif, vap)); + + ni = lsta->ni; /* Reference held for lvif_bss. */ sta = LSTA_TO_STA(lsta); lkpi_lsta_dump(lsta, ni, __func__, __LINE__); @@ -1954,8 +2089,6 @@ out: LKPI_80211_LHW_UNLOCK(lhw); IEEE80211_LOCK(vap->iv_ic); outni: - if (ni != NULL) - ieee80211_free_node(ni); return (error); } @@ -1978,16 +2111,30 @@ lkpi_sta_run_to_init(struct ieee80211vap *vap, enum ieee80211_state nstate, int lvif = VAP_TO_LVIF(vap); vif = LVIF_TO_VIF(lvif); - /* Keep ni around. */ - ni = ieee80211_ref_node(vap->iv_bss); - lsta = ni->ni_drv_data; + IEEE80211_UNLOCK(vap->iv_ic); + LKPI_80211_LHW_LOCK(lhw); + + LKPI_80211_LVIF_LOCK(lvif); +#ifdef LINUXKPI_DEBUG_80211 + /* XXX-BZ KASSERT later; state going down so no action. */ + if (lvif->lvif_bss == NULL) + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched); +#endif + lsta = lvif->lvif_bss; + LKPI_80211_LVIF_UNLOCK(lvif); + KASSERT(lsta != NULL && lsta->ni != NULL, ("%s: lsta %p ni %p " + "lvif %p vap %p\n", __func__, + lsta, (lsta != NULL) ? lsta->ni : NULL, lvif, vap)); + + ni = lsta->ni; /* Reference held for lvif_bss. */ sta = LSTA_TO_STA(lsta); lkpi_lsta_dump(lsta, ni, __func__, __LINE__); - IEEE80211_UNLOCK(vap->iv_ic); - LKPI_80211_LHW_LOCK(lhw); - /* flush, drop. */ lkpi_80211_mo_flush(hw, vif, nitems(sta->txq), true); @@ -2107,6 +2254,13 @@ lkpi_sta_run_to_init(struct ieee80211vap *vap, enum ieee80211_state nstate, int bss_changed |= BSS_CHANGED_BSSID; lkpi_80211_mo_bss_info_changed(hw, vif, &vif->bss_conf, bss_changed); + LKPI_80211_LVIF_LOCK(lvif); + /* Remove ni reference for this cache of lsta. */ + lvif->lvif_bss = NULL; + lvif->lvif_bss_synched = false; + LKPI_80211_LVIF_UNLOCK(lvif); + ieee80211_free_node(ni); /* was lvif->lvif_bss->ni */ + lkpi_lsta_remove(lsta, lvif); /* conf_tx */ @@ -2132,8 +2286,6 @@ out: LKPI_80211_LHW_UNLOCK(lhw); IEEE80211_LOCK(vap->iv_ic); outni: - if (ni != NULL) - ieee80211_free_node(ni); return (error); } @@ -2306,53 +2458,18 @@ static struct ieee80211_node * lkpi_iv_update_bss(struct ieee80211vap *vap, struct ieee80211_node *ni) { struct lkpi_vif *lvif; - struct ieee80211_node *obss; - struct lkpi_sta *lsta; - struct ieee80211_sta *sta; - - obss = vap->iv_bss; - -#ifdef LINUXKPI_DEBUG_80211 - if (linuxkpi_debug_80211 & D80211_TRACE) - ic_printf(vap->iv_ic, "%s: obss %p ni_drv_data %p " - "ni %p ni_drv_data %p\n", __func__, - obss, (obss != NULL) ? obss->ni_drv_data : NULL, - ni, (ni != NULL) ? ni->ni_drv_data : NULL); -#endif + struct ieee80211_node *rni; - /* Nothing to copy from. Just return. */ - if (obss == NULL || obss->ni_drv_data == NULL) - goto out; - - /* Nothing to copy to. Just return. */ - IMPROVE("clearing the obss might still be needed?"); - if (ni == NULL) - goto out; + IEEE80211_LOCK_ASSERT(vap->iv_ic); - /* Nothing changed? panic? */ - if (obss == ni) - goto out; + lvif = VAP_TO_LVIF(vap); - lsta = obss->ni_drv_data; - obss->ni_drv_data = ni->ni_drv_data; - ni->ni_drv_data = lsta; - if (lsta != NULL) { - lsta->ni = ni; - sta = LSTA_TO_STA(lsta); - IEEE80211_ADDR_COPY(sta->addr, lsta->ni->ni_macaddr); - IEEE80211_ADDR_COPY(sta->deflink.addr, sta->addr); - } - lsta = obss->ni_drv_data; - if (lsta != NULL) { - lsta->ni = obss; - sta = LSTA_TO_STA(lsta); - IEEE80211_ADDR_COPY(sta->addr, lsta->ni->ni_macaddr); - IEEE80211_ADDR_COPY(sta->deflink.addr, sta->addr); - } + LKPI_80211_LVIF_LOCK(lvif); + lvif->lvif_bss_synched = false; + LKPI_80211_LVIF_UNLOCK(lvif); -out: - lvif = VAP_TO_LVIF(vap); - return (lvif->iv_update_bss(vap, ni)); + rni = lvif->iv_update_bss(vap, ni); + return (rni); } #ifdef LKPI_80211_WME @@ -2473,6 +2590,8 @@ lkpi_ic_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], lvif = malloc(len, M_80211_VAP, M_WAITOK | M_ZERO); mtx_init(&lvif->mtx, "lvif", NULL, MTX_DEF); TAILQ_INIT(&lvif->lsta_head); + lvif->lvif_bss = NULL; + lvif->lvif_bss_synched = false; vap = LVIF_TO_VAP(lvif); vif = LVIF_TO_VIF(lvif); diff --git a/sys/compat/linuxkpi/common/src/linux_80211.h b/sys/compat/linuxkpi/common/src/linux_80211.h index c9ac19321ab3..4aeca414973c 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.h +++ b/sys/compat/linuxkpi/common/src/linux_80211.h @@ -156,6 +156,8 @@ struct lkpi_vif { struct ieee80211_node * (*iv_update_bss)(struct ieee80211vap *, struct ieee80211_node *); TAILQ_HEAD(, lkpi_sta) lsta_head; + struct lkpi_sta *lvif_bss; + bool lvif_bss_synched; bool added_to_drv; /* Driver knows; i.e. we called add_interface(). */ bool hw_queue_stopped[IEEE80211_NUM_ACS]; From nobody Wed Feb 14 19:49: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 4TZpgD6Rmtz52gvq; Wed, 14 Feb 2024 19:49:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZpgD4jB6z4jbn; Wed, 14 Feb 2024 19:49:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uGeFvfimV9pKPADbRaBH/XqTNP3x2a3lxzHvYxXy/Nc=; b=QthcpguPVK6WUzQW9ceFGofNX3mP7yKqWfLrkHcxuH5gsBLYrgDx0eAixDZjRi8tt0dCvS 7cwVXIJlp6mv1Gjx5JB1L25YU3cdqDmQNmkA6l9r2pZcz3K1Jw28p9myY0tM0Zpxf/XynY g5HcH0fdyh7yZtg8Ku4c61FDy3sz8XQERr9129vlrJ/3fd0tkJScE9Y9Rmo18UziCaX+ut tCp7kH95UQXd/JpTHEpP4b8Egp2wwJeaph4zwBI5SzMN/Julingc3Zqwbc3+L23fLiU/9W EKFvrYLaYbvd01Mb6YcC14uhWHxuhKHbUexyjcRtFu3rm3qGoipOmUWUB2483w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707940168; a=rsa-sha256; cv=none; b=DEpeEG7Pk8+tYqxkC3t3lcueWU6IpWLLG3BeLu/S5FQ/sA0TRtA2NCbmo3WnberH64eloM 4glsWc1d5REHu5a47SdN9HoO05zWXtPt6N9uSLetOKg+r1ETpWYtINzbo947dnMZXptz3r m0D4BCu+4OjoEbLYw2OoRBa5bkR05uNqbWSxXdsM/MYZ8ErGJnftOZpoSGUym+/mkDZ9JL /mwqlLz+Q8MZdNEBnwBpH6v1q8zHTo1AiVOUYpAS1Uwl2G5lRrpfi6Glttqs0d18cQAcZ+ o+WFp9pcwaT+xpI9aAcFiHPJQNAYXZzMYappfFObU1t+UVdwVPZxoem/KIKirQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707940168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uGeFvfimV9pKPADbRaBH/XqTNP3x2a3lxzHvYxXy/Nc=; b=soo41CVwSzVHcpmccOzddbzRxL51p05nvOrPxQca5P6UVbxI65XonhWYuhvVISW4VV/vOM TSbHyelBnpDWxyiCGA5k6IdFqrSaAGfGyWM2XyeHtPSb6A9LaayMPbEzlm7YEdwkHxAfOA AcprzBtjTkJDAXhVZjZPOQfypWab7TLtVtb83hoR+LrH7wXGpB9aiauwChIKoRiY7ymE5C c28VTNtxV237FTy6SodDyOYzw+ZP8ZKEKlVYV1gqEA3T+l98KbnfDeriIfnKMrrx2HlQ2V +c8LmTYr25F/SnJrGtelN3PgUfa9dElOa3lGrUiwHw2zkOJIezO8Pggloqe+Lg== 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 4TZpgD3h60z19kH; Wed, 14 Feb 2024 19:49:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EJnS18068672; Wed, 14 Feb 2024 19:49:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EJnShA068669; Wed, 14 Feb 2024 19:49:28 GMT (envelope-from git) Date: Wed, 14 Feb 2024 19:49:28 GMT Message-Id: <202402141949.41EJnShA068669@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: 0936c648ad0e - main - LinuxKPI: 802.11: update the ni/lsta reference cycle 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 0936c648ad0ee5152dc19f261e77fe9c1833fe05 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=0936c648ad0ee5152dc19f261e77fe9c1833fe05 commit 0936c648ad0ee5152dc19f261e77fe9c1833fe05 Author: Bjoern A. Zeeb AuthorDate: 2024-02-05 14:51:08 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-14 19:48:04 +0000 LinuxKPI: 802.11: update the ni/lsta reference cycle Update the ni/lsta reference cycle, add extra checks and assertions. This is to accomodate problems we were seeing based on net80211 behaviour (join1() and (*iv_update_bss)() as well as state changes for new iv_bss nodes during an active session). This should hopefully help to stabilise behaviour until the underlying problems gets properly addressed (for this and all other device drivers). PR: 272607, 273985, 274003 MFC after: 3 days Reviewed by: cc Differential Revision: https://reviews.freebsd.org/D43753 --- sys/compat/linuxkpi/common/src/linux_80211.c | 209 +++++++++++++++++---------- sys/compat/linuxkpi/common/src/linux_80211.h | 1 + 2 files changed, 130 insertions(+), 80 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index ea742371f797..99984569f35e 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -246,25 +246,14 @@ lkpi_lsta_dump(struct lkpi_sta *lsta, struct ieee80211_node *ni, static void lkpi_lsta_remove(struct lkpi_sta *lsta, struct lkpi_vif *lvif) { - struct ieee80211_node *ni; - - IMPROVE("XXX-BZ remove tqe_prev check once ni-sta-state-sync is fixed"); - ni = lsta->ni; LKPI_80211_LVIF_LOCK(lvif); - if (lsta->lsta_entry.tqe_prev != NULL) - TAILQ_REMOVE(&lvif->lsta_head, lsta, lsta_entry); + KASSERT(lsta->lsta_entry.tqe_prev != NULL, + ("%s: lsta %p lsta_entry.tqe_prev %p ni %p\n", __func__, + lsta, lsta->lsta_entry.tqe_prev, lsta->ni)); + TAILQ_REMOVE(&lvif->lsta_head, lsta, lsta_entry); LKPI_80211_LVIF_UNLOCK(lvif); - - lsta->ni = NULL; - ni->ni_drv_data = NULL; - if (ni != NULL) - ieee80211_free_node(ni); - - IMPROVE("more from lkpi_ic_node_free() should happen here."); - - free(lsta, M_LKPI80211); } static struct lkpi_sta * @@ -286,13 +275,16 @@ lkpi_lsta_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN], lsta->added_to_drv = false; lsta->state = IEEE80211_STA_NOTEXIST; -#if 0 /* - * This needs to be done in node_init() as ieee80211_alloc_node() - * will initialise the refcount after us. + * Link the ni to the lsta here without taking a reference. + * For one we would have to take the reference in node_init() + * as ieee80211_alloc_node() will initialise the refcount after us. + * For the other a ni and an lsta are 1:1 mapped and always together + * from [ic_]node_alloc() to [ic_]node_free() so we are essentally + * using the ni references for the lsta as well despite it being + * two separate allocations. */ - lsta->ni = ieee80211_ref_node(ni); -#endif + lsta->ni = ni; /* The back-pointer "drv_data" to net80211_node let's us get lsta. */ ni->ni_drv_data = lsta; @@ -377,6 +369,7 @@ lkpi_lsta_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN], mtx_init(&lsta->txq_mtx, "lsta_txq", NULL, MTX_DEF); TASK_INIT(&lsta->txq_task, 0, lkpi_80211_txq_task, lsta); mbufq_init(&lsta->txq, IFQ_MAXLEN); + lsta->txq_ready = true; return (lsta); @@ -392,6 +385,54 @@ cleanup: return (NULL); } +static void +lkpi_lsta_free(struct lkpi_sta *lsta, struct ieee80211_node *ni) +{ + struct mbuf *m; + + if (lsta->added_to_drv) + panic("%s: Trying to free an lsta still known to firmware: " + "lsta %p ni %p added_to_drv %d\n", + __func__, lsta, ni, lsta->added_to_drv); + + /* XXX-BZ free resources, ... */ + IMPROVE(); + + /* XXX locking */ + lsta->txq_ready = false; + + /* Drain taskq, won't be restarted until added_to_drv is set again. */ + while (taskqueue_cancel(taskqueue_thread, &lsta->txq_task, NULL) != 0) + taskqueue_drain(taskqueue_thread, &lsta->txq_task); + + /* Flush mbufq (make sure to release ni refs!). */ + m = mbufq_dequeue(&lsta->txq); + while (m != NULL) { + struct ieee80211_node *nim; + + nim = (struct ieee80211_node *)m->m_pkthdr.rcvif; + if (nim != NULL) + ieee80211_free_node(nim); + m_freem(m); + m = mbufq_dequeue(&lsta->txq); + } + KASSERT(mbufq_empty(&lsta->txq), ("%s: lsta %p has txq len %d != 0\n", + __func__, lsta, mbufq_len(&lsta->txq))); + + /* Drain sta->txq[] */ + mtx_destroy(&lsta->txq_mtx); + + /* Remove lsta from vif; that is done by the state machine. Should assert it? */ + + IMPROVE("Make sure everything is cleaned up."); + + /* Free lsta. */ + lsta->ni = NULL; + ni->ni_drv_data = NULL; + free(lsta, M_LKPI80211); +} + + static enum nl80211_band lkpi_net80211_chan_to_nl80211_band(struct ieee80211_channel *c) { @@ -1051,11 +1092,17 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int ic_printf(vap->iv_ic, "%s: no iv_bss for vap %p\n", __func__, vap); return (EINVAL); } + /* + * Keep the ni alive locally. In theory (and practice) iv_bss can change + * once we unlock here. This is due to net80211 allowing state changes + * and new join1() despite having an active node as well as due to + * the fact that the iv_bss can be swapped under the hood in (*iv_update_bss). + */ ni = ieee80211_ref_node(vap->iv_bss); if (ni->ni_chan == NULL || ni->ni_chan == IEEE80211_CHAN_ANYC) { ic_printf(vap->iv_ic, "%s: no channel set for iv_bss ni %p " "on vap %p\n", __func__, ni, vap); - ieee80211_free_node(ni); + ieee80211_free_node(ni); /* Error handling for the local ni. */ return (EINVAL); } @@ -1064,7 +1111,7 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int if (chan == NULL) { ic_printf(vap->iv_ic, "%s: failed to get LKPI channel from " "iv_bss ni %p on vap %p\n", __func__, ni, vap); - ieee80211_free_node(ni); + ieee80211_free_node(ni); /* Error handling for the local ni. */ return (ESRCH); } @@ -1072,6 +1119,18 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int lvif = VAP_TO_LVIF(vap); vif = LVIF_TO_VIF(lvif); + LKPI_80211_LVIF_LOCK(lvif); + /* XXX-BZ KASSERT later? */ + if (lvif->lvif_bss_synched || lvif->lvif_bss != NULL) { + ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " + "lvif_bss->ni %p synched %d\n", __func__, __LINE__, + lvif, vap, vap->iv_bss, lvif->lvif_bss, + (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, + lvif->lvif_bss_synched); + return (EBUSY); + } + LKPI_80211_LVIF_UNLOCK(lvif); + IEEE80211_UNLOCK(vap->iv_ic); LKPI_80211_LHW_LOCK(lhw); @@ -1199,32 +1258,17 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int lkpi_80211_mo_bss_info_changed(hw, vif, &vif->bss_conf, bss_changed); /* - * This is a bandaid for now. If we went through (*iv_update_bss)() - * and then removed the lsta we end up here without a lsta and have - * to manually allocate and link it in as lkpi_ic_node_alloc()/init() - * would normally do. - * XXX-BZ I do not like this but currently we have no good way of - * intercepting the bss swap and state changes and packets going out - * workflow so live with this. It is a compat layer after all. + * Given ni and lsta are 1:1 from alloc to free we can assert that + * ni always has lsta data attach despite net80211 node swapping + * under the hoods. */ - if (ni->ni_drv_data == NULL) { - ic_printf(vap->iv_ic, "%s:%d: lkpi_lsta_alloc to be called: " - "ni %p lsta %p\n", __func__, __LINE__, ni, ni->ni_drv_data); - lsta = lkpi_lsta_alloc(vap, ni->ni_macaddr, hw, ni); - if (lsta == NULL) { - error = ENOMEM; - ic_printf(vap->iv_ic, "%s:%d: lkpi_lsta_alloc " - "failed: %d\n", __func__, __LINE__, error); - goto out; - } - lsta->ni = ieee80211_ref_node(ni); - } else { - lsta = ni->ni_drv_data; - } + KASSERT(ni->ni_drv_data != NULL, ("%s: ni %p ni_drv_data %p\n", + __func__, ni, ni->ni_drv_data)); + lsta = ni->ni_drv_data; LKPI_80211_LVIF_LOCK(lvif); - /* XXX-BZ KASSERT later? */ - /* XXX-BZ this should have caught the upper lkpi_lsta_alloc() too! */ + /* Re-check given (*iv_update_bss) could have happened. */ + /* XXX-BZ KASSERT later? or deal as error? */ if (lvif->lvif_bss_synched || lvif->lvif_bss != NULL) ic_printf(vap->iv_ic, "%s:%d: lvif %p vap %p iv_bss %p lvif_bss %p " "lvif_bss->ni %p synched %d, ni %p lsta %p\n", __func__, __LINE__, @@ -1232,8 +1276,13 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int (lvif->lvif_bss != NULL) ? lvif->lvif_bss->ni : NULL, lvif->lvif_bss_synched, ni, lsta); - /* Reference the ni for this cache of lsta. */ - ieee80211_ref_node(vap->iv_bss); + /* + * Reference the ni for this cache of lsta/ni on lvif->lvif_bss + * essentially out lsta version of the iv_bss. + * Do NOT use iv_bss here anymore as that may have diverged from our + * function local ni already and would lead to inconsistencies. + */ + ieee80211_ref_node(ni); lvif->lvif_bss = lsta; lvif->lvif_bss_synched = true; @@ -1286,6 +1335,10 @@ lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int out: LKPI_80211_LHW_UNLOCK(lhw); IEEE80211_LOCK(vap->iv_ic); + /* + * Release the reference that keop the ni stable locally + * during the work of this function. + */ if (ni != NULL) ieee80211_free_node(ni); return (error); @@ -1380,9 +1433,13 @@ lkpi_sta_auth_to_scan(struct ieee80211vap *vap, enum ieee80211_state nstate, int lvif->lvif_bss = NULL; lvif->lvif_bss_synched = false; LKPI_80211_LVIF_UNLOCK(lvif); - ieee80211_free_node(ni); /* was lvif->lvif_bss->ni */ - lkpi_lsta_remove(lsta, lvif); + /* + * The very last release the reference on the ni for the ni/lsta on + * lvif->lvif_bss. Upon return from this both ni and lsta are invalid + * and potentially freed. + */ + ieee80211_free_node(ni); /* conf_tx */ @@ -1718,9 +1775,13 @@ _lkpi_sta_assoc_to_down(struct ieee80211vap *vap, enum ieee80211_state nstate, i lvif->lvif_bss = NULL; lvif->lvif_bss_synched = false; LKPI_80211_LVIF_UNLOCK(lvif); - ieee80211_free_node(ni); /* was lvif->lvif_bss->ni */ - lkpi_lsta_remove(lsta, lvif); + /* + * The very last release the reference on the ni for the ni/lsta on + * lvif->lvif_bss. Upon return from this both ni and lsta are invalid + * and potentially freed. + */ + ieee80211_free_node(ni); /* conf_tx */ @@ -2259,9 +2320,13 @@ lkpi_sta_run_to_init(struct ieee80211vap *vap, enum ieee80211_state nstate, int lvif->lvif_bss = NULL; lvif->lvif_bss_synched = false; LKPI_80211_LVIF_UNLOCK(lvif); - ieee80211_free_node(ni); /* was lvif->lvif_bss->ni */ - lkpi_lsta_remove(lsta, lvif); + /* + * The very last release the reference on the ni for the ni/lsta on + * lvif->lvif_bss. Upon return from this both ni and lsta are invalid + * and potentially freed. + */ + ieee80211_free_node(ni); /* conf_tx */ @@ -3408,7 +3473,6 @@ lkpi_ic_node_init(struct ieee80211_node *ni) { struct ieee80211com *ic; struct lkpi_hw *lhw; - struct lkpi_sta *lsta; int error; ic = ni->ni_ic; @@ -3420,11 +3484,6 @@ lkpi_ic_node_init(struct ieee80211_node *ni) return (error); } - lsta = ni->ni_drv_data; - - /* Now take the reference before linking it to the table. */ - lsta->ni = ieee80211_ref_node(ni); - /* XXX-BZ Sync other state over. */ IMPROVE(); @@ -3457,30 +3516,15 @@ lkpi_ic_node_free(struct ieee80211_node *ni) ic = ni->ni_ic; lhw = ic->ic_softc; lsta = ni->ni_drv_data; - if (lsta == NULL) - goto out; - /* XXX-BZ free resources, ... */ - IMPROVE(); + /* KASSERT lsta is not NULL here. Print ni/ni__refcnt. */ - /* Flush mbufq (make sure to release ni refs!). */ -#ifdef __notyet__ - KASSERT(mbufq_empty(&lsta->txq), ("%s: lsta %p has txq len %d != 0\n", - __func__, lsta, mbufq_len(&lsta->txq))); -#endif - /* Drain taskq. */ - - /* Drain sta->txq[] */ - mtx_destroy(&lsta->txq_mtx); - - /* Remove lsta if added_to_drv. */ - - /* Remove lsta from vif */ - /* Remove ref from lsta node... */ - /* Free lsta. */ - lkpi_lsta_remove(lsta, VAP_TO_LVIF(ni->ni_vap)); + /* + * Pass in the original ni just in case of error we could check that + * it is the same as lsta->ni. + */ + lkpi_lsta_free(lsta, ni); -out: if (lhw->ic_node_free != NULL) lhw->ic_node_free(ni); } @@ -3492,6 +3536,11 @@ lkpi_ic_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, struct lkpi_sta *lsta; lsta = ni->ni_drv_data; + /* XXX locking */ + if (!lsta->txq_ready) { + m_free(m); + return (ENETDOWN); + } /* Queue the packet and enqueue the task to handle it. */ LKPI_80211_LSTA_LOCK(lsta); diff --git a/sys/compat/linuxkpi/common/src/linux_80211.h b/sys/compat/linuxkpi/common/src/linux_80211.h index 4aeca414973c..b36b27168566 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.h +++ b/sys/compat/linuxkpi/common/src/linux_80211.h @@ -134,6 +134,7 @@ struct lkpi_sta { struct ieee80211_key_conf *kc; enum ieee80211_sta_state state; + bool txq_ready; /* Can we run the taskq? */ bool added_to_drv; /* Driver knows; i.e. we called ...(). */ bool in_mgd; /* XXX-BZ should this be per-vif? */ From nobody Wed Feb 14 20:53: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 4TZr4x3JkKz52sVy; Wed, 14 Feb 2024 20:53: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZr4x2nxsz4tYJ; Wed, 14 Feb 2024 20:53:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707944001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZMheKOdb+wb9ScQ60XzkbKfA/2TstGzWraeOBLdmwBQ=; b=kjE+Gz/MI7vh3s9uehA2rZVqs0qfMyeGV/AQiWmSqF1QOrMhxUh98VsHjN7yOrqZBw4ODW 9jvGDxTmv8gZPjjObbXKsEbI4qbxstbDwKgdXIqzDXOlWhAIOo0+Ztu/Vdkq5kx1NXT+vj 0hhbSf2B4uvyc7P93hgTCweDpA6iOuylPSSvWNjy10Q+LLrYCZUkbUuF7oWqZQwxCMKq0m ayBA/fUOdv5GQSqxEkect1p1klKacsPOLG7ToB0o8Hh/1zgrFG3MwfEq/1nCrDb5oquXiQ nT6RJ8AdhQxOEPsDaOk1CLVS7JLHCaFVWZDi6W7OF6WWnBjPNkR3jP4d9YEX8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707944001; a=rsa-sha256; cv=none; b=MvojYy5q7sjjkQfjvBN2QJh5UGAHNgXGTruCJn9XD/897LIgiBrTP2fKLdEbhgwg8xgtb2 7RNdR3EGoRwuMdpAybwFN4n62BN0rYjREqgVPv+xh7hin7Iy56d5rjtcfjvzWWG339qQU1 XgsW+LOWd+uG2Q8p8loTC20O/xCx29Uy+unr4vAEE/HfF1Ej17x6LivikJS9GSjBiNooYV TlmhVw9F8I6BuLWnUaMK+xAWUvcdNSbAae2WMdZ+lPMX9ZCyVZx6f/UVh/K4PK/4Ao0vpg LIZYN9sNPRO0DQtDifJ7w7WUQQBRVHVpfA616/00N6VP0e7wX2UlFSwC63R1sw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707944001; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZMheKOdb+wb9ScQ60XzkbKfA/2TstGzWraeOBLdmwBQ=; b=rSkGZwjF2bUSYzs1uIuFirdkVwOf8Q1AIz9KZTcLwqN4jRbLT6BQm2+HU5VA+0/gdvT0lA 9l6hmYVKD84SNciBnpo3FhbEkJeA+LLTbXuaZfgDTC9rrr4PFlk2k9iCYQxOAf2AIEbRBK NZWVEq9cOVHVohY9CxBpqMyAYqNb+Um2CFg06nsqS4NQ6PcyuV/AxSCCbibGkpvgcLJIyf ViBD8/vPkAJPX7lPN4Aj2pre2jM5HM4AKk9JWwdfCGSF9f4bBANw+L9LdwzwfovdaEkRX7 yfvUYcDTrDcwB3x9UivKU9FxgttGIMM5UMCN9/Yk1JX8pvI0YvfrZ5+CIhN9lA== 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 4TZr4x1rnZz1Cmp; Wed, 14 Feb 2024 20:53:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EKrLYQ085132; Wed, 14 Feb 2024 20:53:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EKrLW2085129; Wed, 14 Feb 2024 20:53:21 GMT (envelope-from git) Date: Wed, 14 Feb 2024 20:53:21 GMT Message-Id: <202402142053.41EKrLW2085129@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: 95ca89cda1a6 - main - ctfmerge: demote "No ctf sections found" to a warning 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 95ca89cda1a6c4e0ef0b3f765c6563f1db0d23fa Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=95ca89cda1a6c4e0ef0b3f765c6563f1db0d23fa commit 95ca89cda1a6c4e0ef0b3f765c6563f1db0d23fa Author: Ed Maste AuthorDate: 2024-02-14 14:48:42 +0000 Commit: Ed Maste CommitDate: 2024-02-14 20:53:11 +0000 ctfmerge: demote "No ctf sections found" to a warning If there are no CTF sections then ctfmerge just has nothing to do; it should not be an error. Note that ctfmerge has an option to require CTF: -t Make sure that all object files have a CTF section. Before this change, this option explicitly exited without error if none of the object files have CTF sections, with the comment: If we're verifying that C files have CTF, it's safe to assume that in this case, we're building only from assembly inputs. PR: 276930 Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43878 --- cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c b/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c index 27aa4d01b03d..c5be22ecfa1b 100644 --- a/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c +++ b/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c @@ -912,14 +912,8 @@ main(int argc, char **argv) */ if (read_ctf(ifiles, nifiles, NULL, merge_ctf_cb, &wq, require_ctf) == 0) { - /* - * If we're verifying that C files have CTF, it's safe to - * assume that in this case, we're building only from assembly - * inputs. - */ - if (require_ctf) - exit(0); - terminate("No ctf sections found to merge\n"); + warning("No ctf sections found to merge\n"); + exit(0); } pthread_mutex_lock(&wq.wq_queue_lock); From nobody Wed Feb 14 21:11:04 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 4TZrTN6LpBz53Pll; Wed, 14 Feb 2024 21:11: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZrTN5sp5z4vsc; Wed, 14 Feb 2024 21:11:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707945064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7EeVJFFxDX02Y88wEF09/CxojYgAt4G5JhvLKD9oWho=; b=X8FQ7atkl08q/1GPmrIJiqbpbW3fdUiTRLZ7oKB0ekSyMkv0bTsvksNe9y5l7xUVITUbb/ 3zxobNOEmQ8+uJ1wUUeeodDG0ku0ZnWlSwkcIrskd+lVHHkmgpRebaAzVfbOEaxjkFfRCw 6aDG5dGz5G7hEuGmdaILuKtRVOfeTm2uavaYgjW634vhGKKqXP/SawF8n3SYqud1UpmFak t0M7130p4Wa5PQuLBnNMpKy5pqD76/HFgbt6yg8ICIzkX3mOF6IGwxvdmwNY0K01Xx/9Kr RCr8QCBpk2WkC2whF9hdrCanJZVhqduUd8+WVWL7nprACqcKMHHsrVN/cx99IQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707945064; a=rsa-sha256; cv=none; b=d+ySWVWnCbyAu70x4vE24Aw50xADV4bZqabvfarEEnEMeP6Xmpxew+TyKntvDzTI0QrUSg FX5uMfAzptFop1VKhHiF5lyN7zUxOBXV4h2GVkxKQvrp7nROKhzNvxhnej3U0sRKl61h+G RFSybFhFmJMPwsTEEQ8XeilgZLVSH4mrquxzym6x8jjDFuaEviR6ulUOc9lt2G6sV7zMhM +ctQqqMePKlJ/r0emG8ivepBXSBBehdA0Aqa1wqT4EhQlbH9kW7TV699KARRlKqoemzap4 JrR0zQBJfWUW+ECZwzdZApomxprAeCexAyrl68J+HFH2OvlPMkFsmD9cgxxh3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707945064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7EeVJFFxDX02Y88wEF09/CxojYgAt4G5JhvLKD9oWho=; b=tkXhI2sJQuFmjBXJXaHtbnZs/bdk8SVtJPcryJjYntjI4HYsN4/cxcIVLHlY0aMUAeLTNL 9Vj4sZpe2fKv1ZQBvdXhjJXc86f085fWuwXn7vVKEP73JUcqv599Acf8pSxJqF/irWTBCr cSy2od5ibtKvRdE0rkmKhtOMRS9s/+jFA/FgJDIGBw6moRGAGE33sKPFFqYWyCa5BNdvWE 4KH/1a1GG97jNjJFxzQLQtMGUBI08O2rJ8kNMJluT77Ps3ctkCfHrnd1sdl65qQGqNZ18e gt/Rwm9XDZ3WJp7w3E/HFICjuC7Ool+bVbBqEvGbHYR5q7YvB6JyOEL6dXkpmA== 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 4TZrTN4wvGzDdt; Wed, 14 Feb 2024 21:11:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41ELB4Jv019379; Wed, 14 Feb 2024 21:11:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41ELB4Kw019376; Wed, 14 Feb 2024 21:11:04 GMT (envelope-from git) Date: Wed, 14 Feb 2024 21:11:04 GMT Message-Id: <202402142111.41ELB4Kw019376@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: d19b59cfe594 - releng/13.3 - leapseconds: Update to the canonical place. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13.3 X-Git-Reftype: branch X-Git-Commit: d19b59cfe594a878d3f073d6c31ded672c6591a4 Auto-Submitted: auto-generated The branch releng/13.3 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=d19b59cfe594a878d3f073d6c31ded672c6591a4 commit d19b59cfe594a878d3f073d6c31ded672c6591a4 Author: Warner Losh AuthorDate: 2024-02-06 23:11:38 +0000 Commit: Colin Percival CommitDate: 2024-02-14 21:10:34 +0000 leapseconds: Update to the canonical place. IERS is the source of truth for leap seconds. Their leapsecond file is updated most quickly and is always right (unlike the IANA one which often lags). IERS operates this public service for the express purpose of random people downloading it. Their terms of service are compatible with open source (we could include this in our release). Rather than fighting with questions around this because the IANA one changed locations or the auto update script broken, just use this. This is in preference to the NIST ftp copy. NIST is in the process of retiring their FTP services. Sponsored by: Netflix Reviewed by: philip, delphij, cy Approved by: re (cperciva) Differential Revision: https://reviews.freebsd.org/D43752 (cherry picked from commit 11da791920ba285f0832f09cb504ac81e35ff8d1) (cherry picked from commit 0eea8292ae8c8e9119520ce54aa82cae491d83b9) --- libexec/rc/rc.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf index 165f0a3ab562..824751078833 100644 --- a/libexec/rc/rc.conf +++ b/libexec/rc/rc.conf @@ -418,8 +418,8 @@ ntpd_flags="" # Additional flags to ntpd ntp_src_leapfile="/etc/ntp/leap-seconds" # Initial source for ntpd leapfile ntp_db_leapfile="/var/db/ntpd.leap-seconds.list" - # Working copy (updated weekly) leapfile -ntp_leapfile_sources="https://data.iana.org/time-zones/tzdb/leap-seconds.list" + # Canonical place to get the leap seconds from +ntp_leapfile_sources="https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list" # Source from which to fetch leapfile ntp_leapfile_fetch_opts="-mq" # Options to use for ntp leapfile fetch, # e.g. --no-verify-peer From nobody Wed Feb 14 22:05: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 4TZshM25j3z53ZQ1; Wed, 14 Feb 2024 22:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZshM1Sppz46nV; Wed, 14 Feb 2024 22:05:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707948339; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cgf7W0YDbSxIEDH3bx7okOdigTxIymaYmQ20SXdPACc=; b=s7iQCt1O269oOVTWXJNlIXNn1YP77CHVejB1aptSnR1f9+1lcb1YL1GY79/pxcYgYKXfO2 B4uqqIds0+aFNgoLMaoOYEQmsxM8Mf4OcUlZYDux67BIvCfDtAz9uI7lz9zQSih+D8LmSd IUqr89CzVK6Eh+5xHvA0XjoKPR/RuqcHnWwW4ltDh1F/iplGuOPFHqOmE1a/Bj7IIDc7Gg zk0Xre3OhSHap2t/F22fEQXWHVOUEk5Altm0v7cBSHNVmcfF1tfVoCgrd1QSJJZENodKZN pdj+o1VGojfJAcxT8vShURWV+aJ3PvfeKj7LVdItuIF88s0Ee5asQIwqBqKKiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707948339; a=rsa-sha256; cv=none; b=IT7SWlWwqqL30e+hfGTR1GZp+nmYTIhpRzMbxy4U6p47PCOKT5oCib2f8sxXbGiRt3/fFk Iuc8bnrMtUbnKFoT1R5cd1+Kqnz9AeLooSyaOEMgpo6pDr++wf9hPXIZsTjaNrLYKm42pd Xjl/xnvtARU3PPh+shLjs+3X2yMYmnmF/AsW/WEu77UpdhwudM33/XYqLhsBLXLFle9aIp jxqHb22CLbUpK3fqfMJUKRPQksJlT4co+rWH/PLLjuSreG8p0dATQs5mNf+C1YFT4BNmGd 02/Dr4Dc1q8oTpCWr60q/YhHW7auSym3wwrAjVwb7j36RhetlMP38BFIwJP0eg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707948339; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cgf7W0YDbSxIEDH3bx7okOdigTxIymaYmQ20SXdPACc=; b=L8/a4Tqdap81wqnuBSWL5txLO2b1fzaq2144mGbLAjJo8mUQRjxRCkWDs/51GPsTcGf/vJ n+qeY1f8v51Yy9xH7NoPmIoQ/syeRuVab9cdCk1KyzcM8Q0Q00ik/ez62NQurKPE/R8IXS YWHmnIRjb58wHYnx0Dvf96LRIGbPKdJk572WIsup3T44MMr98UcWTjvOUvU+gaW64Au1IQ fjM7x1HxqZBllEKqmZ5TaTkZcnvcFClWGfytTpnNWW/X1pqYnbwvNvgDQyRdYrL5A3mDX6 DMi6IU4X1/Z2XWr0Nw/NleYmORuQuBcvmzhkIVYOvLvKYpeSCd9DepluR2i6Nw== 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 4TZshM0RC2zG5k; Wed, 14 Feb 2024 22:05:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EM5cfr003446; Wed, 14 Feb 2024 22:05:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EM5cxN003443; Wed, 14 Feb 2024 22:05:38 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:05:38 GMT Message-Id: <202402142205.41EM5cxN003443@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: 70617458676e - main - LinuxKPI: sort dev_() 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 70617458676eb0b0076aa19657d21f2a9f3b704a Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=70617458676eb0b0076aa19657d21f2a9f3b704a commit 70617458676eb0b0076aa19657d21f2a9f3b704a Author: Bjoern A. Zeeb AuthorDate: 2024-02-01 23:56:45 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-14 22:05:21 +0000 LinuxKPI: sort dev_() functions Sort the dev_ functions by loglevel order, add the dev_alert() version and an indentation change. No functional changes. MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43719 --- sys/compat/linuxkpi/common/include/linux/device.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h index 142003c5ca8c..b4cd97931672 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -188,15 +188,17 @@ show_class_attr_string(struct class *class, struct class_attribute_string class_attr_##_name = \ _CLASS_ATTR_STRING(_name, _mode, _str) -#define dev_err(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_crit(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_warn(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_info(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_notice(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_emerg(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) -#define dev_dbg(dev, fmt, ...) do { } while (0) #define dev_printk(lvl, dev, fmt, ...) \ - device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) + device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) + +#define dev_emerg(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_alert(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_crit(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_err(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_warn(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_notice(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_info(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) +#define dev_dbg(dev, fmt, ...) do { } while (0) #define dev_WARN(dev, fmt, ...) \ device_printf((dev)->bsddev, "%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__) From nobody Wed Feb 14 22:52: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 4TZtkZ3SZBz53xHy; Wed, 14 Feb 2024 22:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZtkZ2hCPz4FCn; Wed, 14 Feb 2024 22:52:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gV8IRlv7muv6Wx1ee/34b7nMA12JDx0HG+dn4hkSToI=; b=Lauu+8DCV8MtbG6C923boOMC2926X6DPOIXoHQMRj8ZgcGlSAJVRz9v+NMTFxS8PiqDy2u OIyFahYUK+sA5wbhgm3kyPZR5lPhhrZT6G5luTvoQd5AfSnsA0sxwp4gqBrfUelwIvnA7D GxjT2f2iftsbrqARmsSpMvh/IlVO/LmUZ9791UbxKA8ifuFAblsdAI4jq4RY5dUdJg1VR+ ATpoZLNo8KNEnFjQLMJcU79K316RGX6dndBRpjgtZeyhXEsq9NMAKaXlbngoyjFEberv8I 5zxMesplJvxdQ1JjvcicoZ6RPdzDLh4OFDDmZImrWnnVM2sv+bMLEKODyAU+9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707951158; a=rsa-sha256; cv=none; b=dOgwRdALyJBwnKURFJw6b5LW380CqpJWHs0bsGXtX7ZURfrVgt9JgnppVktZrR4kJIsH7O nZ8nt/99Td3D9Okrx5EY2Jjg4sxiqYJJMQEq51oZpqmzVtzXvjIOAGldO6BesgtEPISqad ar6Zs+//W7G/EA7GwScUQdFBiwGsu78KYmTKqnFM6XFuzp5n8f+k9a9sMB//o1RxvSna1f S7LBqA6PtUT+5vhCuVosaqgHDtJu8xBSlzSH6imcd1/EkLIXxxjOl+QQX1suiu2ZdOaFLR VozchQOiwoyeEY9Lzx9vBk/ahiNMUvootK6yrgoB+Zv73o3kl/LZrQd7MURUkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gV8IRlv7muv6Wx1ee/34b7nMA12JDx0HG+dn4hkSToI=; b=M8AWLCDrY1EsVNAqNK1VG8HWM4IWLxdPZGJTfHz1pY63Ri6ofwzG5Z/6EYyrITqnBNO17n 45Ew2hAkihE6wmNeJYXg52O61wBsOfcTozFG+0QaWv9NnAJdZg4alC0uBFZR26x7AFB+nE vDYAWThu6CRGduj298pjTC4rjGjWTgNaJ9NGTQzWISmOSQ7IjUwg0rHpHzBulq+jppmeOA DWMDkPauNBrDnLk7BGZehXCaTcrV1ijcxWKWjf0CkyekJFkrswWSaHYqinPlzuozprSjW2 35HSP3r7LEcW0T6ScSKbpOtDeojGKntY9iwJO46Drroy0NUF09kAFo1is0OSZg== 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 4TZtkZ1lVszHKd; Wed, 14 Feb 2024 22:52:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EMqck0086074; Wed, 14 Feb 2024 22:52:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EMqcLK086071; Wed, 14 Feb 2024 22:52:38 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:52:38 GMT Message-Id: <202402142252.41EMqcLK086071@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: 5bda26333a8e - main - gpiobus: Use bus_generic_rman_* 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 5bda26333a8ebf34190e3a9124895e6a18e58e93 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5bda26333a8ebf34190e3a9124895e6a18e58e93 commit 5bda26333a8ebf34190e3a9124895e6a18e58e93 Author: John Baldwin AuthorDate: 2024-02-14 22:07:32 +0000 Commit: John Baldwin CommitDate: 2024-02-14 22:07:32 +0000 gpiobus: Use bus_generic_rman_* Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43887 --- sys/dev/gpio/gpiobus.c | 57 +++++++++++++++++--------------------------------- 1 file changed, 19 insertions(+), 38 deletions(-) diff --git a/sys/dev/gpio/gpiobus.c b/sys/dev/gpio/gpiobus.c index 99d3114d51da..6d739597b759 100644 --- a/sys/dev/gpio/gpiobus.c +++ b/sys/dev/gpio/gpiobus.c @@ -809,20 +809,29 @@ gpiobus_write_ivar(device_t dev, device_t child, int which, uintptr_t value) return (0); } +static struct rman * +gpiobus_get_rman(device_t bus, int type, u_int flags) +{ + struct gpiobus_softc *sc; + + sc = device_get_softc(bus); + switch (type) { + case SYS_RES_IRQ: + return (&sc->sc_intr_rman); + default: + return (NULL); + } +} + static struct resource * gpiobus_alloc_resource(device_t bus, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) { - struct gpiobus_softc *sc; - struct resource *rv; struct resource_list *rl; struct resource_list_entry *rle; int isdefault; - if (type != SYS_RES_IRQ) - return (NULL); isdefault = (RMAN_IS_DEFAULT_RANGE(start, end) && count == 1); - rle = NULL; if (isdefault) { rl = BUS_GET_RESOURCE_LIST(bus, child); if (rl == NULL) @@ -830,40 +839,12 @@ gpiobus_alloc_resource(device_t bus, device_t child, int type, int *rid, rle = resource_list_find(rl, type, *rid); if (rle == NULL) return (NULL); - if (rle->res != NULL) - panic("%s: resource entry is busy", __func__); start = rle->start; count = rle->count; end = rle->end; } - sc = device_get_softc(bus); - rv = rman_reserve_resource(&sc->sc_intr_rman, start, end, count, flags, - child); - if (rv == NULL) - return (NULL); - rman_set_rid(rv, *rid); - if ((flags & RF_ACTIVE) != 0 && - bus_activate_resource(child, type, *rid, rv) != 0) { - rman_release_resource(rv); - return (NULL); - } - - return (rv); -} - -static int -gpiobus_release_resource(device_t bus __unused, device_t child, int type, - int rid, struct resource *r) -{ - int error; - - if (rman_get_flags(r) & RF_ACTIVE) { - error = bus_deactivate_resource(child, type, rid, r); - if (error) - return (error); - } - - return (rman_release_resource(r)); + return (bus_generic_rman_alloc_resource(bus, child, type, rid, start, + end, count, flags)); } static struct resource_list * @@ -1060,9 +1041,9 @@ static device_method_t gpiobus_methods[] = { DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource), DEVMETHOD(bus_set_resource, bus_generic_rl_set_resource), DEVMETHOD(bus_alloc_resource, gpiobus_alloc_resource), - DEVMETHOD(bus_release_resource, gpiobus_release_resource), - DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), - DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), + DEVMETHOD(bus_release_resource, bus_generic_rman_release_resource), + DEVMETHOD(bus_activate_resource, bus_generic_rman_activate_resource), + DEVMETHOD(bus_deactivate_resource, bus_generic_rman_deactivate_resource), DEVMETHOD(bus_get_resource_list, gpiobus_get_resource_list), DEVMETHOD(bus_add_child, gpiobus_add_child), DEVMETHOD(bus_rescan, gpiobus_rescan), From nobody Wed Feb 14 22:52: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 4TZtkb44WZz53xTV; Wed, 14 Feb 2024 22:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZtkb3MWKz4FCs; Wed, 14 Feb 2024 22:52:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ES8ql9y99GHXRJcgK1fnWVsETcDjDwNfn5lIu5q2U8A=; b=vlC1CLvotqo0OmC/JELultIUjzbj8x/fQc0u8/9y7sDIVQrGiRrsjgdtwuvWTVpjYmrUKk RC6NXh8AlzOOPpyOFCgyr91wG7s/Dg0hTgo9DGpdEgIqoaaaIPk7po5VY0bb8oczbQTC7b v+Hhq13TPUnyPVjClecz5/amYI6ig8Zb9Hxqvz+xr+R5GZM3ZNA3ClM8Hu/oUZOYcAkfMi 1tWY/XMMTAUEbhEOO3yRdV1AZqRCs87GU2l4cEXDprJX050RIZSLLx65POVR/MVld/o0lR Ulc0rOcH+7Y2XaoEWe1Q4NQRo7SWR6RzUOTjleIc3C8D+3vgQ3uWdCiXjVT37Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707951159; a=rsa-sha256; cv=none; b=Xb32klZkxF54gzSTCk8fiDINWhtMShpZG2x/MKiqJjzaRL4DbwfcL787/9kF/eaMLyG28+ M162fLJglBpJZNxok4bcIMc1gLtYV1lu9PukGOGmtgsUlNvXFfC9NQCKudmoYuXBU4dPFO wGXApavvxgHgiccsfL+HCYekSFfD4gwgw2ZeZ88wakSBajfn9xxY3lXZPmqCBS5cF5dy8X 4U+DqSDEq25tYygpHYBojCqdWxEnrgr/gVXRxxNHmqvNjm5LjD4HWPR6pVxfYEhAHNSVWQ dA7B/RJ/qgfIEX4oDX05X+Q0AAxNM8ZjEpDuTbRf+dLEgEnedHd4WJJIMSd6FQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ES8ql9y99GHXRJcgK1fnWVsETcDjDwNfn5lIu5q2U8A=; b=Oqd4scgP/cUhKIawTtwSC6BbyVYiU0rQpZ72OsYJXOzXbjNk8sBjvPOmmCgKLLRlJQ4bZS sOPPZQ+QBqQBAhnarXT4gbxYubqqqbzNLPUlW3TnCPmMQcjoZ8uVhYKkXDUjzBGS8O0+w8 EqaMcNWPGV1eB5ycPFjiH2M0jikzFdBpiccPXA2xiexxu+8gNPn9mmMnh0axyOri4i+KLW nl94wDTHwsOJjyKS9B3UPKBzIbobNUprTFE5YU7NVSTzhgQwtmUnAJd52IpttpBZvMdHfl rnzOGSMuhISJpnLsDDvpve7MlX2Q9Hjm+hcOD0NpRQDDoEMYcN/K1q7CvOSFLw== 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 4TZtkb2TB7zHdF; Wed, 14 Feb 2024 22:52:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EMqdCF086116; Wed, 14 Feb 2024 22:52:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EMqd9c086113; Wed, 14 Feb 2024 22:52:39 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:52:39 GMT Message-Id: <202402142252.41EMqd9c086113@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: 93923685d35d - main - pci_host_generic_fdt: Remove duplicate DEVMETHOD entries 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 93923685d35d95e76bd2c125c007e13354b9428c Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=93923685d35d95e76bd2c125c007e13354b9428c commit 93923685d35d95e76bd2c125c007e13354b9428c Author: John Baldwin AuthorDate: 2024-02-14 22:07:32 +0000 Commit: John Baldwin CommitDate: 2024-02-14 22:07:32 +0000 pci_host_generic_fdt: Remove duplicate DEVMETHOD entries These are already inherited from generic_pcie_core_driver. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43888 --- sys/dev/pci/pci_host_generic_fdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/pci/pci_host_generic_fdt.c b/sys/dev/pci/pci_host_generic_fdt.c index e910e946421f..bcee6057ff3c 100644 --- a/sys/dev/pci/pci_host_generic_fdt.c +++ b/sys/dev/pci/pci_host_generic_fdt.c @@ -480,8 +480,6 @@ generic_pcie_ofw_bus_attach(device_t dev) static device_method_t generic_pcie_fdt_methods[] = { DEVMETHOD(device_probe, generic_pcie_fdt_probe), DEVMETHOD(device_attach, pci_host_generic_fdt_attach), - DEVMETHOD(bus_alloc_resource, pci_host_generic_core_alloc_resource), - DEVMETHOD(bus_release_resource, pci_host_generic_core_release_resource), /* pcib interface */ DEVMETHOD(pcib_route_interrupt, generic_pcie_fdt_route_interrupt), From nobody Wed Feb 14 22:52: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 4TZtkd0nSXz53xNW; Wed, 14 Feb 2024 22:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZtkc4g7mz4Fbb; Wed, 14 Feb 2024 22:52:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TMQwgCf+OhOyspjWU6eynirwPMYlBmV4pG4IT4ZH5wU=; b=JYCDGJ56FM33i8rvgglMUqvjA99DXENqm/8stZ9KcJiybS+GnlnoO8OE+MkrtfsuZKPv3/ 7TFpj4apOij6h4woIryXeOvzeKkc0A5pW6fB1u99WYpF5LLDJPFQ4WsHLTZ267STUs83fu AQSnSGAubToEhDjAtggSNIfWC7s+qey8KAQUA4FSH3Gj6K9AQxIxujOU0mIB3+cJs7BDNO lvcdMqWAiDn7MYtkNo+skqj4Zs2wv7kNxWgAHB7ZH0otE6iWku9CfJAQ2xQY8IRzOEwTyh DYiWzMZrml0WbnCxC0DyP4gBH+LxrFA4yIkVLooYRv6qzpwh3Fk+89/R+xU93A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707951160; a=rsa-sha256; cv=none; b=g+AJCfAr5Qtr/ADMjsjTcEShRhIQib5aHdkK47fbt0qJNlls8sslBez04v25uIRPSPNE4D ythmxa2Px8Azg/Cw8TULgxveEtNxxH3p/l77I5eG8hpvBsPJd1FRmxu7gOGwKsSq4j1fwg p+rgfUDqtPkBXgnTZE9xLnNghQDoi9tHpdhNg7m4MoOgw4fB5WvEaLfqCdfVE11ipal5Eg Uwv1+dCr6KENMcIvu2w3cpXicxqTR1SBJJrQIm6BB7H/fiTJIqCt2IVKiPSr5xsjbHuGpw yz0gkD54wgxlyzuyiONNM9YTwmlOc+sLXpPPxRp523t/nSoFSwkEq4j4uO0DQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TMQwgCf+OhOyspjWU6eynirwPMYlBmV4pG4IT4ZH5wU=; b=CNS58jPj/3wy7wDjZYilYyiQYUk9Wnm9foQuUwIdhY/vbZwF0Lb/jPuJ0SHEmSmK2j+A2K AFxJQxMhi1YU6XhZuYSStEbiH6WnU3JeIO54uPNcBBj6tJdCa6N0XtmBGHtXYnlPoR+jsb a1y9zs55BFqMPvBBsU3L72L8Kay3c7Uqy4OxKRgmzpeZtABqwcsD/zN7MUm76/WoGYgDrk w6gH+uDdOjwb/LXzcgZtHWx8n4EHxXAkSu6AF2FhnEY2djI9zO575I6OgpbRQCQ7l7VOVr g6jBofjPm5qdMHW8Tg7PzsMjEdAi6F3wDHzQeM8CVPdw7YsmnYdUhh1ADFkiCQ== 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 4TZtkc3kZ2zGwC; Wed, 14 Feb 2024 22:52:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EMqeCA086171; Wed, 14 Feb 2024 22:52:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EMqeIp086168; Wed, 14 Feb 2024 22:52:40 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:52:40 GMT Message-Id: <202402142252.41EMqeIp086168@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: eac46b9dd7dd - main - pci_host_generic: Remove unused res1 field from softc 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: eac46b9dd7dd831d41645b734060fc8c039ff77b Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=eac46b9dd7dd831d41645b734060fc8c039ff77b commit eac46b9dd7dd831d41645b734060fc8c039ff77b Author: John Baldwin AuthorDate: 2024-02-14 22:07:32 +0000 Commit: John Baldwin CommitDate: 2024-02-14 22:07:32 +0000 pci_host_generic: Remove unused res1 field from softc Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43889 --- sys/dev/pci/pci_host_generic.h | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/pci/pci_host_generic.h b/sys/dev/pci/pci_host_generic.h index a408ef9d56fd..8e72ac6e5cef 100644 --- a/sys/dev/pci/pci_host_generic.h +++ b/sys/dev/pci/pci_host_generic.h @@ -74,7 +74,6 @@ struct generic_pcie_core_softc { struct rman mem_rman; struct rman io_rman; struct resource *res; - struct resource *res1; int bus_start; int bus_end; int ecam; From nobody Wed Feb 14 22:52: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 4TZtkf0pJTz53xNY; Wed, 14 Feb 2024 22:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZtkd5tdnz4FDM; Wed, 14 Feb 2024 22:52:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8cvhIOjOc22FHUKNgZGDgT58OQ+Al+ZW0iwmr68Qb0A=; b=UstA99eVtY6EvdCbeFVZowBa1aXvsE5nrmRF8pGnZilwOickjkDOirR5Tiu/EblSavWJjf 18wOwXV4fyffuIlvlyA4HgliIPyrNfhA40FtVlql86x9vtayqjmrE5Vhk67r5ECeWgR2lv 7QvG2qXAHJHudNORF71EIKoMTUiBIYbo0+Sz3E3WD1fE9BtdC+3LJygUrxG8HjRvq/Rm22 CYL6hIGcZS+klVGeuxo7HwUG7QTjISKtLEGuUNowZ6OyOrnSyEcXXyP60z8rexaJNcocnv 4t+c658DaLrY4LqGbIIWq+Q5jgdDpIiifDWJcBxHEerdk60SADeh3dZ3+CcsFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707951161; a=rsa-sha256; cv=none; b=rO/iNFIYTe6vT20QNPAd4A3+OZHX7tGYLIT5DaUwVE04Tr8ho8WEK3RNlDIsE0jhTVzEoj efJuNwBPz1tk4HugVmgUddqpufQQ6JK+jhOtqhXj5r41gtYep6toTBPw4yGQAwEXIEYmIl ekB4XMCPlliR2MV/9moZO8Qnf/b9B6iJKV1yszLNwbkTGCeGZZ0IHDtKyHxrZvnqGl6bZs I51gaWNRzmAvvzZBevyMJuIGld1q2LUFJZlBv+rJTBTcCMMW7V67JjmCKl62teZ2G6Sj+a YCUlvQ4cHRc65hNCL1op6HZ2ftGzrCQVazlbsGHps95QKJLV3ZKbQtRyqKLEGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8cvhIOjOc22FHUKNgZGDgT58OQ+Al+ZW0iwmr68Qb0A=; b=AMnoXKEottF58ths1K5OITzTtTfQGBM4s8KRejfTr0T+hsi2pRXObh0d4ioTFxwvuWurbk fMelGBOWVI0orV4VS3b+W/wu5ik3pB7cZpkMfcbOcz5A23n4lpSnUelzhfAY1dUGBVjAc7 95pfJqL6slYKbpkclVq3TR1VepbW5Z5omop03EpU0JFVRlFU4TvTChegt4erDjpHzvzw6b Z0e94Rvf/LR1/05fzxTLvGeEtRifqUu356cSfU4HHQEelXTg8Ig0H+ynU3iD7qTaqMoXws RF98KXCo0NUBUxZMRdvYH/0+IjlbQdUFFvwliD9uOan3T2wDItPnSyT9My3hWw== 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 4TZtkd4hlZzH7w; Wed, 14 Feb 2024 22:52:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EMqfPq086226; Wed, 14 Feb 2024 22:52:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EMqfNj086223; Wed, 14 Feb 2024 22:52:41 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:52:41 GMT Message-Id: <202402142252.41EMqfNj086223@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: 51f8ac224f3b - main - pci_host_generic: Include the bridge's device name in rman descriptions 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 51f8ac224f3b87555ea17c7e7c4015a2a2b8b191 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=51f8ac224f3b87555ea17c7e7c4015a2a2b8b191 commit 51f8ac224f3b87555ea17c7e7c4015a2a2b8b191 Author: John Baldwin AuthorDate: 2024-02-14 22:07:32 +0000 Commit: John Baldwin CommitDate: 2024-02-14 22:07:32 +0000 pci_host_generic: Include the bridge's device name in rman descriptions The rman description strings now match those used in the PCI-PCI bridge driver. Using more specific names removes ambiguity in devinfo -u output on systems with multiple host to PCI bridges. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43890 --- sys/dev/pci/pci_host_generic.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c index 43b6d26e9217..02ca010a14d7 100644 --- a/sys/dev/pci/pci_host_generic.c +++ b/sys/dev/pci/pci_host_generic.c @@ -83,6 +83,7 @@ pci_host_generic_core_attach(device_t dev) uint64_t phys_base; uint64_t pci_base; uint64_t size; + char buf[64]; int domain, error; int rid, tuple; @@ -135,13 +136,19 @@ pci_host_generic_core_attach(device_t dev) sc->has_pmem = false; sc->pmem_rman.rm_type = RMAN_ARRAY; - sc->pmem_rman.rm_descr = "PCIe Prefetch Memory"; + snprintf(buf, sizeof(buf), "%s prefetch window", + device_get_nameunit(dev)); + sc->pmem_rman.rm_descr = strdup(buf, M_DEVBUF); sc->mem_rman.rm_type = RMAN_ARRAY; - sc->mem_rman.rm_descr = "PCIe Memory"; + snprintf(buf, sizeof(buf), "%s memory window", + device_get_nameunit(dev)); + sc->mem_rman.rm_descr = strdup(buf, M_DEVBUF); sc->io_rman.rm_type = RMAN_ARRAY; - sc->io_rman.rm_descr = "PCIe IO window"; + snprintf(buf, sizeof(buf), "%s I/O port window", + device_get_nameunit(dev)); + sc->io_rman.rm_descr = strdup(buf, M_DEVBUF); /* Initialize rman and allocate memory regions */ error = rman_init(&sc->pmem_rman); @@ -201,6 +208,9 @@ err_io_rman: err_mem_rman: rman_fini(&sc->pmem_rman); err_pmem_rman: + free(__DECONST(char *, sc->io_rman.rm_descr), M_DEVBUF); + free(__DECONST(char *, sc->mem_rman.rm_descr), M_DEVBUF); + free(__DECONST(char *, sc->pmem_rman.rm_descr), M_DEVBUF); if (sc->res != NULL) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->res); err_resource: @@ -223,6 +233,9 @@ pci_host_generic_core_detach(device_t dev) rman_fini(&sc->io_rman); rman_fini(&sc->mem_rman); rman_fini(&sc->pmem_rman); + free(__DECONST(char *, sc->io_rman.rm_descr), M_DEVBUF); + free(__DECONST(char *, sc->mem_rman.rm_descr), M_DEVBUF); + free(__DECONST(char *, sc->pmem_rman.rm_descr), M_DEVBUF); if (sc->res != NULL) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->res); bus_dma_tag_destroy(sc->dmat); From nobody Wed Feb 14 22:52: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 4TZtkg1Bm6z53xlh; Wed, 14 Feb 2024 22:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZtkf6dHvz4FDj; Wed, 14 Feb 2024 22:52:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OOp3gwOuNxm97KbOvEkKcNGOzX5kOkyPD1z2TCIp7w0=; b=Y1il0VMsm9VuVcdGAVuGRaFyNSjntH2D61ZHD1mn6YmXwKjYH4nBDtvFKn3PqpukaqFIJZ AQktkvedgjOPURF7vOKo3mNwGipliBVH5IRp46+x4RSRLXdOm23sOS+MzKk9cFo2kkh6X9 ggZCTUj3xMZ7cj05OjhA+Y3Qk6/He0jJYzvydo+uKV1o4R+WisNjqvSo20BsGsRJ9BbygL ld6vuLadR1z/WBbVhD4lzxKMQTRNS6AX1XgFVnp7IKo8khAuQMXfnKahW/jDFjURnfXZ3V ggkt3vD0bGMii5XMRcV9CwWFXEsGQJa5X+vN3AhwVnbnaCmZLLnYf6e31h7UBA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707951162; a=rsa-sha256; cv=none; b=w1gd4CVd5bEnyn/4KzEr/4cl8hertIcpujvd1Q6pjODjByXe1+Ss8XyiDD3TQfnI2XPgD2 d25nZnEhKTyY7VWAJaS1/48/E4Tanvo72tt88IHmqFR8PjugMM0HP1LTovdLoz2U7eh3vK 1EyixsoGuboXAqKbRlh/Toz9gQHl1Fz/BVCXvOSDzEvdJ3g2llRYQEhVCLJrODYepEwMHO rspAD2D7Y/C+7AG0FbH6QDQAnFrOKsY/2cqRJCk8OU/UaXPJkr+0CllM3tyhc3BA8uvc/H RfcB7k2lvYypqE92oN0PMcRJ1TURNPjiIxIIHCrt0s8HUx6H7qWVxfqzG0GfNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OOp3gwOuNxm97KbOvEkKcNGOzX5kOkyPD1z2TCIp7w0=; b=vcmc8xiT6J1cxBpDosTVO0r/S1faPAXSFt3SU5abI+NDmd8IXNcAKEEtSjcWk1cAjgAsxD A4VKN7p9WJ0m7Y0PK9nOmCGg51ahAj+lcNvm2/3N631AGtQSg2MzwZwMP/wSS6o0KhdIUk YwAFdMJbtBP99rxVR2vizyCA85eA/c+jcaxVN4URHJ1HgMb3hUDJXeS1zwsSlKG6w5v4Ic hq5pLtY/Vqy4U72AjoOzkeKI6FZmwwy/5K63jKTyQjqdV+1nU9R1KP5W8f6LsiOOcyElTr lqtCMxR2ltgan6fDDI9npmAfk/K766+tFykBa5YPvQ1BqN/vM6RbkstVPuvvcA== 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 4TZtkf5lNrzHZm; Wed, 14 Feb 2024 22:52:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EMqgvB086280; Wed, 14 Feb 2024 22:52:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EMqgEF086277; Wed, 14 Feb 2024 22:52:42 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:52:42 GMT Message-Id: <202402142252.41EMqgEF086277@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: e05436d577de - main - acpi: Don't assume a resource is reserved in acpi_delete_resource 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e05436d577de98944b97b9cf510b29c4d2091b3f Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e05436d577de98944b97b9cf510b29c4d2091b3f commit e05436d577de98944b97b9cf510b29c4d2091b3f Author: John Baldwin AuthorDate: 2024-02-14 22:07:32 +0000 Commit: John Baldwin CommitDate: 2024-02-14 22:07:32 +0000 acpi: Don't assume a resource is reserved in acpi_delete_resource This fixes a panic if a driver uses bus_set_resource to add a resource that fails to reserve and then deletes the resource via bus_delete_resource. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43891 --- sys/dev/acpica/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 9cd809761b8e..46e9fe084fce 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1629,7 +1629,8 @@ acpi_delete_resource(device_t bus, device_t child, int type, int rid) " (type=%d, rid=%d)\n", type, rid); return; } - resource_list_unreserve(rl, bus, child, type, rid); + if (resource_list_reserved(rl, type, rid)) + resource_list_unreserve(rl, bus, child, type, rid); resource_list_delete(rl, type, rid); } From nobody Wed Feb 14 22:52: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 4TZtkh1RQNz53xWX; Wed, 14 Feb 2024 22:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZtkh0dDMz4FNx; Wed, 14 Feb 2024 22:52:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JkQkIwkLUMWjHSLQzFwIWZyw6QcqcM2CeDm67LZfzOg=; b=rH2FPnCeeraMjqE1HgtnzY+EiV/ShwUVYCaQf6FeEuD3+0/5xC/PWCL1NtULdhxTVmhdEg Lx7HmZTYSU/ImcH7N79x5Li7z44ns/jf2OfnujQ8IufIypXmhlCEKfH7pueFMyhnhuAh+S 8hzO4BZJ4LSpp7eXICnII71ZkMVK/6dQn6uqiLh5c7lAFuXN3QAILlkBYS8ZR4sSJWYGtQ 5CfJxlXcaSKn02NXsau526HAuv8sl7NIYQOnx4CD5I5gsEoG4kMCt5NhhDXBM3Tsv+HZpq mAxrE3YXM1EoRGaFiQqZY18Kg7p07qwaZb39RulrousptPH08hb4Y6z1g8V9dg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707951164; a=rsa-sha256; cv=none; b=wW6B3I6JwCG2+Km8heO6TAEvtyH+D9m3zY6ZCgaUsr/tszYc4hq1pZJoz2Akj7xFud9zkp kBAKCnEpIp0IN26hS3SDKE4HspyjipbaeMbDIvYYSJ8zkFOm/R2zRUeWFC6WrFJglmokMU lfXnGR9cN6a3yBcIDP+JOMpAxOvRzMvGFuGvXo31PMZU77NtULLRGooku/+I9B63W0SRI6 RJR/pM9zfQjo+D4a5jMcf/cyEtr/70CcOllnE/JgtlWTmM4gAgXyyM5YLWwjVNkrAq/qDO FoDv/Zpe/bucaLtE0La17YLj5on2bMNYel+0foQGM5oLI+WGr8r82U+KOEng1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JkQkIwkLUMWjHSLQzFwIWZyw6QcqcM2CeDm67LZfzOg=; b=lQaHWJaRGs5rud672P5DlBdIyK3ju6YN9WK+d1ZmpS5u7K1nEnwk/iYf+dbttEuJe852Va 81GwdcXyAlLWC+uTMuzOn5OPfF1a3+lSaEW5dhJqL/cj4C7FVfZ6abRlT3oMVO1SgcZ99i 7f9Vvc1E2N+z9jiRjsNDv4zTLjpHhgHmWsUWiI0JKcV8Iz4LQiv4fO1WvYeOuhhXGm8mEB BeOd1VwvbvgQJNdcxjNazFIlaRCMEHY4ZvCueFev198FByk8BV/ty+LdfIWn4wFcDxt3Pu pHYt5ycllfBApfs8W3DUMNqCx37h8KWRPzNS+qpY9OaMKTLXcUrdAd9exgK/Vw== 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 4TZtkg6bYHzGwD; Wed, 14 Feb 2024 22:52:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EMqhNX086337; Wed, 14 Feb 2024 22:52:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EMqhAD086334; Wed, 14 Feb 2024 22:52:43 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:52:43 GMT Message-Id: <202402142252.41EMqhAD086334@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: 055c1fe230ce - main - acpi: Allow child drivers to use bus_set_resource for more resources 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 055c1fe230ce5a2997c03a3cc2431baea1594566 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=055c1fe230ce5a2997c03a3cc2431baea1594566 commit 055c1fe230ce5a2997c03a3cc2431baea1594566 Author: John Baldwin AuthorDate: 2024-02-14 22:07:32 +0000 Commit: John Baldwin CommitDate: 2024-02-14 22:07:32 +0000 acpi: Allow child drivers to use bus_set_resource for more resources acpi_set_resource excludes certain types of resources for certain devices. The intention of this is to avoid adding resource entries for bogus resources enumerated via _CRS. However, this also prevents drivers from adding those resources explicitly if needed. To fix this, move the logic to exclude these resources into an ignore hook used when parsing _CRS to create the initial set of resources for each device. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43892 --- sys/dev/acpica/acpi.c | 34 --------------------- sys/dev/acpica/acpi_resource.c | 69 ++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 67 insertions(+), 36 deletions(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 46e9fe084fce..43aed279ab35 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -97,7 +97,6 @@ struct acpi_interface { }; static char *sysres_ids[] = { "PNP0C01", "PNP0C02", NULL }; -static char *pcilink_ids[] = { "PNP0C0F", NULL }; /* Global mutex for locking access to the ACPI subsystem. */ struct mtx acpi_mutex; @@ -1431,40 +1430,7 @@ acpi_set_resource(device_t dev, device_t child, int type, int rid, { struct acpi_device *ad = device_get_ivars(child); struct resource_list *rl = &ad->ad_rl; - ACPI_DEVICE_INFO *devinfo; rman_res_t end; - int allow; - - /* Ignore IRQ resources for PCI link devices. */ - if (type == SYS_RES_IRQ && - ACPI_ID_PROBE(dev, child, pcilink_ids, NULL) <= 0) - return (0); - - /* - * Ignore most resources for PCI root bridges. Some BIOSes - * incorrectly enumerate the memory ranges they decode as plain - * memory resources instead of as ResourceProducer ranges. Other - * BIOSes incorrectly list system resource entries for I/O ranges - * under the PCI bridge. Do allow the one known-correct case on - * x86 of a PCI bridge claiming the I/O ports used for PCI config - * access. - */ - if (type == SYS_RES_MEMORY || type == SYS_RES_IOPORT) { - if (ACPI_SUCCESS(AcpiGetObjectInfo(ad->ad_handle, &devinfo))) { - if ((devinfo->Flags & ACPI_PCI_ROOT_BRIDGE) != 0) { -#if defined(__i386__) || defined(__amd64__) - allow = (type == SYS_RES_IOPORT && start == CONF1_ADDR_PORT); -#else - allow = 0; -#endif - if (!allow) { - AcpiOsFree(devinfo); - return (0); - } - } - AcpiOsFree(devinfo); - } - } #ifdef INTRNG /* map with default for now */ diff --git a/sys/dev/acpica/acpi_resource.c b/sys/dev/acpica/acpi_resource.c index 6b77e74d95f1..87b82a574beb 100644 --- a/sys/dev/acpica/acpi_resource.c +++ b/sys/dev/acpica/acpi_resource.c @@ -34,6 +34,9 @@ #include #include +#if defined(__i386__) || defined(__amd64__) +#include +#endif #include #include #include @@ -62,6 +65,8 @@ struct lookup_irq_request { int pol; }; +static char *pcilink_ids[] = { "PNP0C0F", NULL }; + static ACPI_STATUS acpi_lookup_irq_handler(ACPI_RESOURCE *res, void *context) { @@ -582,6 +587,52 @@ struct acpi_res_context { void *ar_parent; }; +/* + * Some resources reported via _CRS should not be added as bus + * resources. This function returns true if a resource reported via + * _CRS should be ignored. + */ +static bool +acpi_res_ignore(device_t dev, int type, rman_res_t start, rman_res_t count) +{ + struct acpi_device *ad = device_get_ivars(dev); + ACPI_DEVICE_INFO *devinfo; + bool allow; + + /* Ignore IRQ resources for PCI link devices. */ + if (type == SYS_RES_IRQ && + ACPI_ID_PROBE(device_get_parent(dev), dev, pcilink_ids, NULL) <= 0) + return (true); + + /* + * Ignore most resources for PCI root bridges. Some BIOSes + * incorrectly enumerate the memory ranges they decode as plain + * memory resources instead of as ResourceProducer ranges. Other + * BIOSes incorrectly list system resource entries for I/O ranges + * under the PCI bridge. Do allow the one known-correct case on + * x86 of a PCI bridge claiming the I/O ports used for PCI config + * access. + */ + if (type == SYS_RES_MEMORY || type == SYS_RES_IOPORT) { + if (ACPI_SUCCESS(AcpiGetObjectInfo(ad->ad_handle, &devinfo))) { + if ((devinfo->Flags & ACPI_PCI_ROOT_BRIDGE) != 0) { +#if defined(__i386__) || defined(__amd64__) + allow = (type == SYS_RES_IOPORT && start == CONF1_ADDR_PORT); +#else + allow = false; +#endif + if (!allow) { + AcpiOsFree(devinfo); + return (true); + } + } + AcpiOsFree(devinfo); + } + } + + return (false); +} + static void acpi_res_set_init(device_t dev, void *arg, void **context) { @@ -612,6 +663,8 @@ acpi_res_set_ioport(device_t dev, void *context, uint64_t base, if (cp == NULL) return; + if (acpi_res_ignore(dev, SYS_RES_IOPORT, base, length)) + return; bus_set_resource(dev, SYS_RES_IOPORT, cp->ar_nio++, base, length); } @@ -637,6 +690,8 @@ acpi_res_set_iorange(device_t dev, void *context, uint64_t low, device_printf(dev, "_CRS has fixed I/O port range defined as relocatable\n"); + if (acpi_res_ignore(dev, SYS_RES_IOPORT, low, length)) + return; bus_set_resource(dev, SYS_RES_IOPORT, cp->ar_nio++, low, length); return; } @@ -652,6 +707,8 @@ acpi_res_set_memory(device_t dev, void *context, uint64_t base, if (cp == NULL) return; + if (acpi_res_ignore(dev, SYS_RES_MEMORY, base, length)) + return; bus_set_resource(dev, SYS_RES_MEMORY, cp->ar_nmem++, base, length); } @@ -676,8 +733,11 @@ acpi_res_set_irq(device_t dev, void *context, uint8_t *irq, int count, if (cp == NULL || irq == NULL) return; - for (i = 0; i < count; i++) + for (i = 0; i < count; i++) { + if (acpi_res_ignore(dev, SYS_RES_IRQ, irq[i], 1)) + continue; bus_set_resource(dev, SYS_RES_IRQ, cp->ar_nirq++, irq[i], 1); + } } static void @@ -690,8 +750,11 @@ acpi_res_set_ext_irq(device_t dev, void *context, uint32_t *irq, int count, if (cp == NULL || irq == NULL) return; - for (i = 0; i < count; i++) + for (i = 0; i < count; i++) { + if (acpi_res_ignore(dev, SYS_RES_IRQ, irq[i], 1)) + continue; bus_set_resource(dev, SYS_RES_IRQ, cp->ar_nirq++, irq[i], 1); + } } static void @@ -706,6 +769,8 @@ acpi_res_set_drq(device_t dev, void *context, uint8_t *drq, int count) if (count != 1) return; + if (acpi_res_ignore(dev, SYS_RES_DRQ, *drq, 1)) + return; bus_set_resource(dev, SYS_RES_DRQ, cp->ar_ndrq++, *drq, 1); } From nobody Wed Feb 14 22:52: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 4TZtkj3nTfz53xTd; Wed, 14 Feb 2024 22:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZtkj1lTnz4FLS; Wed, 14 Feb 2024 22:52:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4ZRB/GM8Mm2p/FWytDAQf/vNtdAIGecGiuxNL3Uxtc4=; b=cG3iAIGHHdK8o1Lj7rac5xsFGR2PpKhD5NBv4oP28KFjG77v3zYA/RltL0PAZhBaX6Px2U EikJfRsRb8W+fjOh783/zlseET0+k2xiHhdDfCcx0dRs6tlfXLk2p5B/33tulGCOs7BTOi st3qSJBNGPsGQZh6eOa5cM47ltZhKVk51mwpPGqoy8gF8e/hakA+zcjovMvE2NX8tBRiUq ef9bKe0oJ3VnyhBI+ROId6Tm6vMhvznqP/NKoEt6Yd3Wjk74s/OHODYd5krCqJEIfSbFw6 55XsMEUekeNYRB31UrcbkUNuOOYuSENSQyjOb6LVteMoqAZlpgom6Xe5o43Tkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707951165; a=rsa-sha256; cv=none; b=S63agDcEjusMMdlOqaxSEMZ1bcKu5G61JplGwFJg1qPfef59OplPP4T1Z/RzV4IN60rkF/ ByDgCOew/39UGZ1Kzrw/cX/bPhjbmmcGg+zfLoztEQKulGpS3biZZnGQYKMOAHNVHdJoQw C+0q96uWlfXHww05xebcDtNUT9aN43N11nlT+yZjYkyzumBRNGdBoEjcmW/bYPKBQmEwXd WLhzOV/WlcrGSubM6z7LIvR8VeVxTsn37jnjv8QNWiPR0DzJEE4XVFE7KH2RX8J3RdSG/g UXyT2SNSJ7U0PYcotp0k+hlGJjGzXK6ju7SxDcfnkmlSjk1sgDER5G6z2QK6AA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4ZRB/GM8Mm2p/FWytDAQf/vNtdAIGecGiuxNL3Uxtc4=; b=a62W22IugoVN2dAMtzrqjQhi/N9B7sGxjaU1VTxd+hzkmb8M2PmgbkOFvMQ2gfWkY28BG0 53KuezHyd8VfzVJzJWQYg+B3VkV+hHgZ6acpOkal2bnkLlpKmvphdF7JhcI0yki9iFcooK JsCxs1XWLzhS0T3H705H6R3sEkK2qnjNK1R5N2ZhR/vq5+pMOrWXjao2bfoSR73mwtlFbP D7hfo+nytrolXrQPdfoAJQ0PoN6p49k8xWDsRIa9T7DxP/CHV/oALkzcmEODh/zE8HnbQO f138c6BKMb3aLyy7WrwTaBqw4x5lMNFDg0lFvBVRw+RaM59j+v3L+G9JrQJTLg== 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 4TZtkj0m0bzGwF; Wed, 14 Feb 2024 22:52:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EMqjWV086388; Wed, 14 Feb 2024 22:52:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EMqj8w086385; Wed, 14 Feb 2024 22:52:45 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:52:45 GMT Message-Id: <202402142252.41EMqj8w086385@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: add99c9c4bae - main - physmem ram: Don't reserve excluded regions 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: add99c9c4bae2769cba14a88b83377ec9c04cad9 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=add99c9c4bae2769cba14a88b83377ec9c04cad9 commit add99c9c4bae2769cba14a88b83377ec9c04cad9 Author: John Baldwin AuthorDate: 2024-02-14 22:07:33 +0000 Commit: John Baldwin CommitDate: 2024-02-14 22:07:33 +0000 physmem ram: Don't reserve excluded regions These regions can conflict with I/O resources and prevent allocation of those regions by other drivers. It may make sense to reserve them after the boot-time probe of devices has concluded (or after an initial pass to reserve firmware-assigned resources before "wildcard" resources are allocated), but that would require additional changes. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43893 --- sys/kern/subr_physmem.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/sys/kern/subr_physmem.c b/sys/kern/subr_physmem.c index 79fedf58d66d..fda47d4ef697 100644 --- a/sys/kern/subr_physmem.c +++ b/sys/kern/subr_physmem.c @@ -582,7 +582,6 @@ ram_attach(device_t dev) { vm_paddr_t avail_list[PHYS_AVAIL_COUNT]; rman_res_t start, end; - struct region *hwp; int rid, i; rid = 0; @@ -608,30 +607,6 @@ ram_attach(device_t dev) rid++; } - /* Now, reserve the excluded memory regions. */ - for (i = 0, hwp = exregions; i < excnt; i++, hwp++) { - start = hwp->addr; - end = hwp->addr + hwp->size; - - if (bootverbose) - device_printf(dev, - "reserving excluded region: %jx-%jx\n", - (uintmax_t)start, (uintmax_t)(end - 1)); - - /* - * Best-effort attempt to reserve the range. This may fail, as - * sometimes the excluded ranges provided by the device tree - * will cover or overlap some I/O range. - */ - if (bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, start, end, - end - start, 0) == NULL) { - if (bootverbose) - device_printf(dev, "failed to reserve region\n"); - continue; - } - rid++; - } - return (0); } From nobody Wed Feb 14 22:52: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 4TZtkk4dbCz53xYl; Wed, 14 Feb 2024 22:52: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZtkk2b5Pz4Fcl; Wed, 14 Feb 2024 22:52:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LDJHmW0OF9JQZK8LTcUmAUvuT0DlLl3qPHJscMXS0YI=; b=FwHZToxAKwpoDCZs6uY8LL3/yynE6KCg66G6CS32+M8W2Ck84oT1yCBFrJoFDjBwSz0SxJ D7Hy7WRwCv0UKrRJb/fGBu6Z0upTc932bH1k5+w22PVWvVdAuF2NuqDIapld3fk4SuvjHk 8Hbv/jIAqLFX8OjwO3kqMQxU0PB7gFrfBjvGW07Nhxx9AUleFis2WEpIcpsZ0V3D7CEje/ ZSFPsrXnSnWIuEHDDwnzTftLNWbOUZNSV2IIUl+dgviyUm/h4nIsLT/WgduaS4fpds0w+H EZCXXiqAfIC3BvAs9PksYp6IjkECshIHQR7kBHUAA3dgrb/sLw88juHiNOYCTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707951166; a=rsa-sha256; cv=none; b=lQ31RZhaO4kK5bcJRoQvBC/lm1wMBJK5f9VxxKPXslHTk+HfkLkQ6HtDkoDzkmy1NxVq4G 1ZnSCyghYU+H2VcKek+77nbeNjDeMExSoW2+C5sw5nYxYWGNIKDEJNTkNbNLzTuY0ZneqE shAUf5eOK98KVWxADL0u75ZvYGnY7Io2xN1MQTVkrnblWp/Qfd0+fohx9ZTQYhFeJbM+Kz 6RbakM1FE9Z4KBgrpleduVxjKKJi9Jd1p0OY0GlKRTwfNYZqP1fFCuXqupEplPaGdKtUTR 4WF9fWgnnngk3BPrSDaksHP9iNZlO0nFFzd/633HaSekfR7hPYp5Qm+XFTz49A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707951166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LDJHmW0OF9JQZK8LTcUmAUvuT0DlLl3qPHJscMXS0YI=; b=LHqldZGg6NwbxzEuOc7vDeSMFzt8D27lzCTi16ixEzoNAOoxyc9KUiZExc2SwBFwcsRUma LbUWT8vkYBzJP+ZCfpO+gpc7XPgzzDtgRb5sCvUHObzIdSigoglWH0/e8KYx5kine9tBQW vOKha322YXO8AseWWiLJ/H1wwFCoqvvqawQexCfYuM/KdeoSH3G80pX/bErmHi73g06lRR mxmdqtjOZfvPHIShQrF+lb7/8690Msjar5HgoCDOYcpyF/hUkav2cemYheMk9bZPMgox1h BkMrc1ezTk1JNeld7LCw/HuB1qsZdBFmZzwUH+SFU7QWJKsI53H2yICjc7MvqA== 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 4TZtkk1ccJzHRs; Wed, 14 Feb 2024 22:52:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41EMqkaQ086441; Wed, 14 Feb 2024 22:52:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41EMqkli086438; Wed, 14 Feb 2024 22:52:46 GMT (envelope-from git) Date: Wed, 14 Feb 2024 22:52:46 GMT Message-Id: <202402142252.41EMqkli086438@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: d79b6b8ec267 - main - pci_host_generic: Don't rewrite resource start address for translation 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: d79b6b8ec267e7eef6e07cf4245159705e24acd5 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d79b6b8ec267e7eef6e07cf4245159705e24acd5 commit d79b6b8ec267e7eef6e07cf4245159705e24acd5 Author: John Baldwin AuthorDate: 2024-02-14 22:07:33 +0000 Commit: John Baldwin CommitDate: 2024-02-14 22:07:33 +0000 pci_host_generic: Don't rewrite resource start address for translation Allocate resources from the parent device for decoded physical address ranges. When child resources suballocated from rman's are mapped, translate those mapping requests into a mapping request of the associated physical address range in a bus_map_resource method. While here, convert generic_pcie_rman to a bus_get_rman method and use bus_generic_rman_* for operations on child resources. Factor out a generic_pcie_containing_range to share logic between bus_translate_resource and bus_*map_resource. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D43894 --- sys/dev/pci/pci_host_generic.c | 366 ++++++++++++++++++++++++++--------------- sys/dev/pci/pci_host_generic.h | 1 + 2 files changed, 235 insertions(+), 132 deletions(-) diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c index 02ca010a14d7..45a478634d20 100644 --- a/sys/dev/pci/pci_host_generic.c +++ b/sys/dev/pci/pci_host_generic.c @@ -85,7 +85,7 @@ pci_host_generic_core_attach(device_t dev) uint64_t size; char buf[64]; int domain, error; - int rid, tuple; + int flags, rid, tuple, type; sc = device_get_softc(dev); sc->dev = dev; @@ -173,19 +173,26 @@ pci_host_generic_core_attach(device_t dev) phys_base = sc->ranges[tuple].phys_base; pci_base = sc->ranges[tuple].pci_base; size = sc->ranges[tuple].size; - if (phys_base == 0 || size == 0) + rid = tuple + 1; + if (size == 0) continue; /* empty range element */ switch (FLAG_TYPE(sc->ranges[tuple].flags)) { case FLAG_TYPE_PMEM: sc->has_pmem = true; + flags = RF_PREFETCHABLE; + type = SYS_RES_MEMORY; error = rman_manage_region(&sc->pmem_rman, pci_base, pci_base + size - 1); break; case FLAG_TYPE_MEM: + flags = 0; + type = SYS_RES_MEMORY; error = rman_manage_region(&sc->mem_rman, pci_base, pci_base + size - 1); break; case FLAG_TYPE_IO: + flags = 0; + type = SYS_RES_IOPORT; error = rman_manage_region(&sc->io_rman, pci_base, pci_base + size - 1); break; @@ -197,11 +204,44 @@ pci_host_generic_core_attach(device_t dev) "error = %d\n", error); goto err_rman_manage; } + error = bus_set_resource(dev, type, rid, phys_base, size); + if (error != 0) { + device_printf(dev, + "failed to set resource for range %d: %d\n", tuple, + error); + goto err_rman_manage; + } + sc->ranges[tuple].res = bus_alloc_resource_any(dev, type, &rid, + RF_ACTIVE | RF_UNMAPPED | flags); + if (sc->ranges[tuple].res == NULL) { + device_printf(dev, + "failed to allocate resource for range %d\n", tuple); + goto err_rman_manage; + } } return (0); err_rman_manage: + for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { + if (sc->ranges[tuple].size == 0) + continue; /* empty range element */ + switch (FLAG_TYPE(sc->ranges[tuple].flags)) { + case FLAG_TYPE_PMEM: + case FLAG_TYPE_MEM: + type = SYS_RES_MEMORY; + break; + case FLAG_TYPE_IO: + type = SYS_RES_IOPORT; + break; + default: + continue; + } + if (sc->ranges[tuple].res != NULL) + bus_release_resource(dev, type, tuple + 1, + sc->ranges[tuple].res); + bus_delete_resource(dev, type, tuple + 1); + } rman_fini(&sc->io_rman); err_io_rman: rman_fini(&sc->mem_rman); @@ -222,7 +262,7 @@ int pci_host_generic_core_detach(device_t dev) { struct generic_pcie_core_softc *sc; - int error; + int error, tuple, type; sc = device_get_softc(dev); @@ -230,6 +270,25 @@ pci_host_generic_core_detach(device_t dev) if (error != 0) return (error); + for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { + if (sc->ranges[tuple].size == 0) + continue; /* empty range element */ + switch (FLAG_TYPE(sc->ranges[tuple].flags)) { + case FLAG_TYPE_PMEM: + case FLAG_TYPE_MEM: + type = SYS_RES_MEMORY; + break; + case FLAG_TYPE_IO: + type = SYS_RES_IOPORT; + break; + default: + continue; + } + if (sc->ranges[tuple].res != NULL) + bus_release_resource(dev, type, tuple + 1, + sc->ranges[tuple].res); + bus_delete_resource(dev, type, tuple + 1); + } rman_fini(&sc->io_rman); rman_fini(&sc->mem_rman); rman_fini(&sc->pmem_rman); @@ -349,8 +408,9 @@ generic_pcie_write_ivar(device_t dev, device_t child, int index, } static struct rman * -generic_pcie_rman(struct generic_pcie_core_softc *sc, int type, int flags) +generic_pcie_get_rman(device_t dev, int type, u_int flags) { + struct generic_pcie_core_softc *sc = device_get_softc(dev); switch (type) { case SYS_RES_IOPORT: @@ -371,8 +431,6 @@ pci_host_generic_core_release_resource(device_t dev, device_t child, int type, int rid, struct resource *res) { struct generic_pcie_core_softc *sc; - struct rman *rm; - int error; sc = device_get_softc(dev); @@ -381,76 +439,79 @@ pci_host_generic_core_release_resource(device_t dev, device_t child, int type, return (pci_domain_release_bus(sc->ecam, child, rid, res)); } #endif + return (bus_generic_rman_release_resource(dev, child, type, rid, res)); +} - rm = generic_pcie_rman(sc, type, rman_get_flags(res)); - if (rm != NULL) { - KASSERT(rman_is_region_manager(res, rm), ("rman mismatch")); - if (rman_get_flags(res) & RF_ACTIVE) { - error = bus_deactivate_resource(child, type, rid, res); - if (error) - return (error); - } - return (rman_release_resource(res)); +static struct pcie_range * +generic_pcie_containing_range(device_t dev, int type, rman_res_t start, + rman_res_t end) +{ + struct generic_pcie_core_softc *sc = device_get_softc(dev); + uint64_t pci_base; + uint64_t size; + int i, space; + + switch (type) { + case SYS_RES_IOPORT: + case SYS_RES_MEMORY: + break; + default: + return (NULL); } - return (bus_generic_release_resource(dev, child, type, rid, res)); + for (i = 0; i < MAX_RANGES_TUPLES; i++) { + pci_base = sc->ranges[i].pci_base; + size = sc->ranges[i].size; + if (size == 0) + continue; /* empty range element */ + + if (start < pci_base || end >= pci_base + size) + continue; + + switch (FLAG_TYPE(sc->ranges[i].flags)) { + case FLAG_TYPE_MEM: + case FLAG_TYPE_PMEM: + space = SYS_RES_MEMORY; + break; + case FLAG_TYPE_IO: + space = SYS_RES_IOPORT; + break; + default: + continue; + } + + if (type == space) + return (&sc->ranges[i]); + } + return (NULL); } static int generic_pcie_translate_resource_common(device_t dev, int type, rman_res_t start, rman_res_t end, rman_res_t *new_start, rman_res_t *new_end) { - struct generic_pcie_core_softc *sc; - uint64_t phys_base; - uint64_t pci_base; - uint64_t size; - int i, space; - bool found; + struct pcie_range *range; - sc = device_get_softc(dev); /* Translate the address from a PCI address to a physical address */ switch (type) { case SYS_RES_IOPORT: case SYS_RES_MEMORY: - found = false; - for (i = 0; i < MAX_RANGES_TUPLES; i++) { - pci_base = sc->ranges[i].pci_base; - phys_base = sc->ranges[i].phys_base; - size = sc->ranges[i].size; - - if (start < pci_base || start >= pci_base + size) - continue; - - switch (FLAG_TYPE(sc->ranges[i].flags)) { - case FLAG_TYPE_MEM: - case FLAG_TYPE_PMEM: - space = SYS_RES_MEMORY; - break; - case FLAG_TYPE_IO: - space = SYS_RES_IOPORT; - break; - default: - space = -1; - continue; - } - - if (type == space) { - *new_start = start - pci_base + phys_base; - *new_end = end - pci_base + phys_base; - found = true; - break; - } + range = generic_pcie_containing_range(dev, type, start, end); + if (range == NULL) + return (ENOENT); + if (range != NULL) { + *new_start = start - range->pci_base + range->phys_base; + *new_end = end - range->pci_base + range->phys_base; } break; default: /* No translation for non-memory types */ *new_start = start; *new_end = end; - found = true; break; } - return (found ? 0 : ENOENT); + return (0); } static int @@ -469,48 +530,32 @@ pci_host_generic_core_alloc_resource(device_t dev, device_t child, int type, { struct generic_pcie_core_softc *sc; struct resource *res; - struct rman *rm; sc = device_get_softc(dev); + switch (type) { #if defined(NEW_PCIB) && defined(PCI_RES_BUS) - if (type == PCI_RES_BUS) { - return (pci_domain_alloc_bus(sc->ecam, child, rid, start, end, - count, flags)); - } + case PCI_RES_BUS: + res = pci_domain_alloc_bus(sc->ecam, child, rid, start, end, + count, flags); + break; #endif - - rm = generic_pcie_rman(sc, type, flags); - if (rm == NULL) - return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child, - type, rid, start, end, count, flags)); - - if (bootverbose) { - device_printf(dev, - "rman_reserve_resource: start=%#jx, end=%#jx, count=%#jx\n", - start, end, count); + case SYS_RES_IOPORT: + case SYS_RES_MEMORY: + res = bus_generic_rman_alloc_resource(dev, child, type, rid, + start, end, count, flags); + break; + default: + res = bus_generic_alloc_resource(dev, child, type, rid, start, + end, count, flags); + break; + } + if (res == NULL) { + device_printf(dev, "%s FAIL: type=%d, rid=%d, " + "start=%016jx, end=%016jx, count=%016jx, flags=%x\n", + __func__, type, *rid, start, end, count, flags); } - - res = rman_reserve_resource(rm, start, end, count, flags, child); - if (res == NULL) - goto fail; - - rman_set_rid(res, *rid); - - if (flags & RF_ACTIVE) - if (bus_activate_resource(child, type, *rid, res)) { - rman_release_resource(res); - goto fail; - } - return (res); - -fail: - device_printf(dev, "%s FAIL: type=%d, rid=%d, " - "start=%016jx, end=%016jx, count=%016jx, flags=%x\n", - __func__, type, *rid, start, end, count, flags); - - return (NULL); } static int @@ -519,33 +564,22 @@ generic_pcie_activate_resource(device_t dev, device_t child, int type, { #if defined(NEW_PCIB) && defined(PCI_RES_BUS) struct generic_pcie_core_softc *sc; -#endif - rman_res_t start, end; - int res; -#if defined(NEW_PCIB) && defined(PCI_RES_BUS) sc = device_get_softc(dev); - if (type == PCI_RES_BUS) { +#endif + switch (type) { +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) + case PCI_RES_BUS: return (pci_domain_activate_bus(sc->ecam, child, rid, r)); - } #endif - - if ((res = rman_activate_resource(r)) != 0) - return (res); - - start = rman_get_start(r); - end = rman_get_end(r); - res = generic_pcie_translate_resource_common(dev, type, start, end, - &start, &end); - if (res != 0) { - rman_deactivate_resource(r); - return (res); + case SYS_RES_IOPORT: + case SYS_RES_MEMORY: + return (bus_generic_rman_activate_resource(dev, child, type, + rid, r)); + default: + return (bus_generic_activate_resource(dev, child, type, rid, + r)); } - rman_set_start(r, start); - rman_set_end(r, end); - - return (BUS_ACTIVATE_RESOURCE(device_get_parent(dev), child, type, - rid, r)); } static int @@ -554,50 +588,115 @@ generic_pcie_deactivate_resource(device_t dev, device_t child, int type, { #if defined(NEW_PCIB) && defined(PCI_RES_BUS) struct generic_pcie_core_softc *sc; -#endif - int res; -#if defined(NEW_PCIB) && defined(PCI_RES_BUS) sc = device_get_softc(dev); - if (type == PCI_RES_BUS) { - return (pci_domain_deactivate_bus(sc->ecam, child, rid, r)); - } #endif - if ((res = rman_deactivate_resource(r)) != 0) - return (res); - switch (type) { +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) + case PCI_RES_BUS: + return (pci_domain_deactivate_bus(sc->ecam, child, rid, r)); +#endif case SYS_RES_IOPORT: case SYS_RES_MEMORY: - case SYS_RES_IRQ: - res = BUS_DEACTIVATE_RESOURCE(device_get_parent(dev), child, - type, rid, r); - break; + return (bus_generic_rman_deactivate_resource(dev, child, type, + rid, r)); default: - break; + return (bus_generic_deactivate_resource(dev, child, type, rid, + r)); } - - return (res); } static int generic_pcie_adjust_resource(device_t dev, device_t child, int type, struct resource *res, rman_res_t start, rman_res_t end) { +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) struct generic_pcie_core_softc *sc; - struct rman *rm; sc = device_get_softc(dev); +#endif + switch (type) { #if defined(NEW_PCIB) && defined(PCI_RES_BUS) - if (type == PCI_RES_BUS) + case PCI_RES_BUS: return (pci_domain_adjust_bus(sc->ecam, child, res, start, end)); #endif + case SYS_RES_IOPORT: + case SYS_RES_MEMORY: + return (bus_generic_rman_adjust_resource(dev, child, type, res, + start, end)); + default: + return (bus_generic_adjust_resource(dev, child, type, res, + start, end)); + } +} + +static int +generic_pcie_map_resource(device_t dev, device_t child, int type, + struct resource *r, struct resource_map_request *argsp, + struct resource_map *map) +{ + struct resource_map_request args; + struct pcie_range *range; + rman_res_t length, start; + int error; + + switch (type) { +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) + case PCI_RES_BUS: + return (EINVAL); +#endif + case SYS_RES_IOPORT: + case SYS_RES_MEMORY: + break; + default: + return (bus_generic_map_resource(dev, child, type, r, argsp, + map)); + } - rm = generic_pcie_rman(sc, type, rman_get_flags(res)); - if (rm != NULL) - return (rman_adjust_resource(res, start, end)); - return (bus_generic_adjust_resource(dev, child, type, res, start, end)); + /* Resources must be active to be mapped. */ + if (!(rman_get_flags(r) & RF_ACTIVE)) + return (ENXIO); + + resource_init_map_request(&args); + error = resource_validate_map_request(r, argsp, &args, &start, &length); + if (error) + return (error); + + range = generic_pcie_containing_range(dev, type, rman_get_start(r), + rman_get_end(r)); + if (range == NULL || range->res == NULL) + return (ENOENT); + + args.offset = start - range->pci_base; + args.length = length; + return (bus_generic_map_resource(dev, child, type, range->res, &args, + map)); +} + +static int +generic_pcie_unmap_resource(device_t dev, device_t child, int type, + struct resource *r, struct resource_map *map) +{ + struct pcie_range *range; + + switch (type) { +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) + case PCI_RES_BUS: + return (EINVAL); +#endif + case SYS_RES_IOPORT: + case SYS_RES_MEMORY: + range = generic_pcie_containing_range(dev, type, + rman_get_start(r), rman_get_end(r)); + if (range == NULL || range->res == NULL) + return (ENOENT); + r = range->res; + break; + default: + break; + } + return (bus_generic_unmap_resource(dev, child, type, r, map)); } static bus_dma_tag_t @@ -613,6 +712,7 @@ static device_method_t generic_pcie_methods[] = { DEVMETHOD(device_attach, pci_host_generic_core_attach), DEVMETHOD(device_detach, pci_host_generic_core_detach), + DEVMETHOD(bus_get_rman, generic_pcie_get_rman), DEVMETHOD(bus_read_ivar, generic_pcie_read_ivar), DEVMETHOD(bus_write_ivar, generic_pcie_write_ivar), DEVMETHOD(bus_alloc_resource, pci_host_generic_core_alloc_resource), @@ -621,6 +721,8 @@ static device_method_t generic_pcie_methods[] = { DEVMETHOD(bus_deactivate_resource, generic_pcie_deactivate_resource), DEVMETHOD(bus_release_resource, pci_host_generic_core_release_resource), DEVMETHOD(bus_translate_resource, generic_pcie_translate_resource), + DEVMETHOD(bus_map_resource, generic_pcie_map_resource), + DEVMETHOD(bus_unmap_resource, generic_pcie_unmap_resource), DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), diff --git a/sys/dev/pci/pci_host_generic.h b/sys/dev/pci/pci_host_generic.h index 8e72ac6e5cef..2d7583b861c8 100644 --- a/sys/dev/pci/pci_host_generic.h +++ b/sys/dev/pci/pci_host_generic.h @@ -63,6 +63,7 @@ struct pcie_range { #define FLAG_TYPE_IO 0x1 #define FLAG_TYPE_MEM 0x2 #define FLAG_TYPE_PMEM 0x3 + struct resource *res; }; struct generic_pcie_core_softc { From nobody Thu Feb 15 00:38: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 4TZx541sprz54ytQ; Thu, 15 Feb 2024 00:38: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZx540f25z4SjL; Thu, 15 Feb 2024 00:38:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707957528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=g2rotSoldAqOWStJWZKEP+C0/3osFt6+a23Dqs+yLuc=; b=yR24dFjbEEZznDb0DEPcBHNxW8y+ZoQshj+/nYcMKCY04bS0YF8k8YcdgBPYzkvTDOzp36 V08Ay6es2U1HQzLeAuN/PaBTMIxpS74KIAK5JLbI7UDYrmq2zIz0Cr3cHmzG+thR/YO6vA tzSNowlLYd0RyxOm1/uKRoNd2AlVMd/Zzk+l3zX0tTHHy+9q/KeHyJy8kBV4P2sknCcIRT 1fUcDGAKrPIiMCMGoglNgvuAIXUC2+cjzSVkXOnMzSXdcLMYx1f8qPRkObaZu7WvTnEPro 95x4etLZIuDzXO9YGD69Li0/e8ksaf1+XsMdaZuNpYXRdp6yF5eBKEwQxi5mYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707957528; a=rsa-sha256; cv=none; b=n1RnyHSs4lMfDMsQGRH61fAS/wbNgiVniXd/0l+DPQFTBgxYz+aofQicpU8kcSiWy/Bc8C oLAecspxz0YvLlV5gI480/rVfN0aRwPFZ0YzhF9OYMGrMYkxZ9nLWrK2ooJKbqOdlvIowj P/2ci18dxZw4yK5IB7QqyPS4OKraxBLjMprSpFWq3DSV+JmvV29Q79zDFxMqddN8AbKuUu d4iuaGqABSswuAX2dwrMMeVEDssZ1m7rWrHvsB4OFDBxiRk6Bcamd6UjpHFp6fcVk0IpVA GXc/FkQR/b6uNdB/YwYH1/bTLrDiO16aotklUUsGmWuEDHKhdAINIxrQIiht2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707957528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=g2rotSoldAqOWStJWZKEP+C0/3osFt6+a23Dqs+yLuc=; b=R1KvQ7jgt2IOR1tdoM1g1+qBe7N8VjlnQSCDTOVxQukuHwD3Cg8flGsLL2pwuywm61ixlc tBdHe653mkyxFz7ib/p630Tq8YzA/d/lfNqSDrUtqYkbcRm9dHghVCOdq2sWf37k8V+mGA /+5qoCy7YljEf15H9A+R6LMNNkPVqXU/Ian5zBF7WyOUYjakHun8DWuSRUjgTAJPMlstDT uWDuBvdBRhT2CwoPky4wdUmLxlu/Uk7ty3S5fZjH/l5EK9z5Ws46e0Mwo41NFXiSEsq/JZ el0RNKg1+zi4H+VvE/PUxuluG89+0K6iw/8hhWfUbr8I+YL2u6AEtVen4WfmKQ== 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 4TZx536Y8zzKch; Thu, 15 Feb 2024 00:38:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41F0clbp054779; Thu, 15 Feb 2024 00:38:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41F0clRI054776; Thu, 15 Feb 2024 00:38:47 GMT (envelope-from git) Date: Thu, 15 Feb 2024 00:38:47 GMT Message-Id: <202402150038.41F0clRI054776@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: 05f530f4d2bb - main - cat: fix cap_rights_init usage 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 05f530f4d2bb15fda3d258b3bd92d4515d9ef39f Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=05f530f4d2bb15fda3d258b3bd92d4515d9ef39f commit 05f530f4d2bb15fda3d258b3bd92d4515d9ef39f Author: Ed Maste AuthorDate: 2024-02-15 00:03:40 +0000 Commit: Ed Maste CommitDate: 2024-02-15 00:37:54 +0000 cat: fix cap_rights_init usage Capability rights passed to cap_rights_* are not simple bitmaks and cannot be ORed together in general (although it will work for certain subsets of rights). PR: 277057 Reported by: asomers, markj --- bin/cat/cat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cat/cat.c b/bin/cat/cat.c index c3812c6d9ca4..5dceb1cad94b 100644 --- a/bin/cat/cat.c +++ b/bin/cat/cat.c @@ -141,7 +141,7 @@ init_casper(int argc, char *argv[]) err(EXIT_FAILURE, "unable to create Casper"); fa = fileargs_cinit(casper, argc, argv, O_RDONLY, 0, - cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL | CAP_SEEK), + cap_rights_init(&rights, CAP_READ, CAP_FSTAT, CAP_FCNTL, CAP_SEEK), FA_OPEN | FA_REALPATH); if (fa == NULL) err(EXIT_FAILURE, "unable to create fileargs"); From nobody Thu Feb 15 01:03: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 4TZxf55zkDz553SR; Thu, 15 Feb 2024 01:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZxf55SVjz4cS2; Thu, 15 Feb 2024 01:03:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707959037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JXMOg0zCFVElafxi7NLzvoQ+Y7SSGhaO7YbEssW9VoI=; b=JXYNB3X86G72FxV48a5YW/ng4Gv9bW4WXuYizqOpmPSwMVH6WnSH4duUhdysqr9m75ArUU keRXAsAK739r+v5x2p/xk4/mh1touPFf8qh3IEL3zF6HbjqHrg0UuskAImH84JK7WQQyVy U7VLXYclnz4tR9GamyVh//a4fJAfUu++xgd0xThuy3sChpkpunl8TjqLEAsyP+7dQySOi/ zUeuPhEFhlMb9ngB5jDYnDsC1JSUN/b+ThZ/Vh6x9QJ3n7bE1oEmziRBubFq8YqpnR5z50 nq3ftYqjskHQLYlOq/1us/Ss4yIxJAa9yqpsDII6mbwi4Kk2B1QodtUmvefvfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707959037; a=rsa-sha256; cv=none; b=amauivKLpczWfhwZlH4QFOjECsFLVQOAl4sqYDqdBuhAuaf1ksAWN6ADqt7uP1Sns51OvX 25yeN+jugufjcDkvbGOMaQ0zO0LHJ+bmMKoqEnp6YcQ1PKPKGn98XdiV2aOPdUejG2iAGc xwNt436LvLjMBpbmwY03t7nxP/BpXaqEowTKzVfQFEDsmA8ufjz8oAVZ3ttDWOZg+jiagt heEJZ17oOD1//0VSvE+hibSc1cEUewzQ7nEz8yHjM76v62y/VUBQyhWPgOJ8pfbmx4+6Gi Z/kxqOZzJxP5W70kwDJsMAr0pI7NBK8vxytjHMmZ1FJzLnMB04pZ3vAidjSytQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707959037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JXMOg0zCFVElafxi7NLzvoQ+Y7SSGhaO7YbEssW9VoI=; b=slAeGipQqY123sSsg9NnhmjlFY75D2iMiION/1vnb8sWt3gqPbBqEGQJihfiJBkt0j5rVc Fox58niH1jAZxz+T3OFxvgP0kUvzmefHhq+wbWM5gNYepp+ea5F7Wd4H991H6QhRMz/sNx E8VlsWQn2RcVc58mNQ9mcTpUB7w8Jwgw/WCUtk7HpwwYbusG4HRou2jp6RYB1NxHQd2WlO PruLz+wL0olGncED+DVYahYANmhV4vaiw4BySXG5w3Q7U1pjLOBorcDRZVILHHg7NMbCz/ 701i+M4iBM5FasWItiNBPW0zhPRLxBy6WXqtnvlDOx5s8mpVqGaBIVHhfzCGLg== 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 4TZxf54Ch4zLcm; Thu, 15 Feb 2024 01:03:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41F13vIU005786; Thu, 15 Feb 2024 01:03:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41F13vvp005783; Thu, 15 Feb 2024 01:03:57 GMT (envelope-from git) Date: Thu, 15 Feb 2024 01:03:57 GMT Message-Id: <202402150103.41F13vvp005783@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Tai-hwa Liang Subject: git: 25a5bb731805 - main - net: bandaid for plugging a fw_com leak in fwip_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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avatar X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 25a5bb7318052322190a2880e0e7ef18e06d54bd Auto-Submitted: auto-generated The branch main has been updated by avatar: URL: https://cgit.FreeBSD.org/src/commit/?id=25a5bb7318052322190a2880e0e7ef18e06d54bd commit 25a5bb7318052322190a2880e0e7ef18e06d54bd Author: Tai-hwa Liang AuthorDate: 2024-02-15 01:00:49 +0000 Commit: Tai-hwa Liang CommitDate: 2024-02-15 01:00:49 +0000 net: bandaid for plugging a fw_com leak in fwip_detach() Adding a temporary workaround for plugging a fw_com upon if_fwip unloading. Steps to reproduce(needs two hosts connected with firewire): while true; do ifconfig fwip0 10.0.0.5 up fwcontrol -r ping -c 10.0.0.3 kldunload if_fwip done There's a chance that the unloading of if_fwip.ko triggers following warning: Warning: memory type fw_com leaked memory on destroy (1 allocations, 64 bytes leaked). commit d79b6b8ec267e7eef6e07cf4245159705e24acd5 (origin/main, origin/HEAD) --- sys/net/if_fwsubr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c index 2349ac35fc16..bf3362fc975c 100644 --- a/sys/net/if_fwsubr.c +++ b/sys/net/if_fwsubr.c @@ -802,6 +802,7 @@ firewire_ifdetach(struct ifnet *ifp) { bpfdetach(ifp); if_detach(ifp); + NET_EPOCH_DRAIN_CALLBACKS(); } void From nobody Thu Feb 15 03:33: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 4Tb0z23bklz59v0y; Thu, 15 Feb 2024 03:33: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tb0z22jPQz43Gp; Thu, 15 Feb 2024 03:33:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707968030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EhWwd6D9jmKF8CDv2rV2XP/y/GaD6vMtX3nOZacYVhs=; b=GTEX4ClInfjEKsqHwlsVdh0Y1kiETGYdCRXrcRUs9MofhSP3/EuEix//h6eQJZDdUcQhld ILufV1fOtzQWLotMKjJKSR0aaz5yn+fnS9a00HzSQ+VfYF5HbQLJdZBDAPKCpYC4cU32rU kxmzFEpyLMph0gO7mHC+MztLg2jzMNqGrAW9kyI7iQPdCHtDV7EDn2pd+Rz8qTRHFAYRNd wJzImO+uXoLCQTlH0X/dp8y5gkyiiichMNnv13QtTMyk7tTonDts0v+Tc/SXMCmyBnFTrh YpwcwgknZjOg6JcK/uRZW9IJOYXfGhsh/0r1aU8cZzRUylwZL443Vx+b3nvAxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707968030; a=rsa-sha256; cv=none; b=Oj4y6HC1ekMF32LM7E+8/DNL2hhtHktNDuHGlSuEUTphfnP5BQWre/s4+TOqPE43n0AjLv yCGo4x+yRmBfCPnXJzYHBpqgUFFIBbKdoU2KSJQDk4/ftQ9qwxzkz//LSpIkbxGuuz5MaD G5+U+mOVo2OronYvfLyhdJ+udHF87K4U0dl3Urh7qt8CE8/eLPUjt+znuF6EOHwROwymXo 7cUrmycTY7z0WssDdVsM64EC9wfJ4bAluBsAlthAFV+/vJPRTuxEsfesoc3dHqtHDXoD83 cfZbCqpIU8rL3S01S6VRUKmTVzkazT4oyg6iWhBKZUInCOzVpGOp/AdfXZC//g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707968030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EhWwd6D9jmKF8CDv2rV2XP/y/GaD6vMtX3nOZacYVhs=; b=l3YCoDRSg5vm0Rqk+6iDiQEd4vh+h0BLI6f0nQFP2cV3xEvV4J1ipY9UVFKU6I8pra5uDQ li4a4t1sbxvywNR4oztXA6zpsGb+BYavIA7pMDGshzCpf76kZNBJDOTkZCtDJqGU3AgeAd 03ogZvxjeAou8n/s+Gx945uXKfR2258A3tI07sqw4X4POiiAORY4sRUju/mnTNhvd9azrN wvVszj6pORlzUycoxnIB49/fK1IZqy9WO54Q0UGzlNu0kGVK17+1HOgJGfp7hqgSI0wfW3 753F8PeuQvvWUSI5VgMGrd6yRjrJhTef/1z7Gguoo9CGfhahd7xom3u7eS6sgg== 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 4Tb0z21mpwzQgQ; Thu, 15 Feb 2024 03:33:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41F3XoQS057377; Thu, 15 Feb 2024 03:33:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41F3XooF057374; Thu, 15 Feb 2024 03:33:50 GMT (envelope-from git) Date: Thu, 15 Feb 2024 03:33:50 GMT Message-Id: <202402150333.41F3XooF057374@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: 3733d82c4deb - main - libcasper: fix cap_rights_init usage 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 3733d82c4deb49035a39e18744085d1e3e9b8dc5 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=3733d82c4deb49035a39e18744085d1e3e9b8dc5 commit 3733d82c4deb49035a39e18744085d1e3e9b8dc5 Author: Ed Maste AuthorDate: 2024-02-15 00:42:48 +0000 Commit: Ed Maste CommitDate: 2024-02-15 03:33:24 +0000 libcasper: fix cap_rights_init usage Capability rights passed to cap_rights_* are not simple bitmaks and cannot be ORed together in general (although it will work for certain subsets of rights). PR: 277057 Fixes: faaf43b2a750 ("fileargs: add tests") Sponsored by: The FreeBSD Foundation --- .../services/cap_fileargs/tests/fileargs_test.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libcasper/services/cap_fileargs/tests/fileargs_test.c b/lib/libcasper/services/cap_fileargs/tests/fileargs_test.c index 7d499542abe9..088edaaa294d 100644 --- a/lib/libcasper/services/cap_fileargs/tests/fileargs_test.c +++ b/lib/libcasper/services/cap_fileargs/tests/fileargs_test.c @@ -291,7 +291,7 @@ ATF_TC_BODY(fileargs__open_read, tc) prepare_files(MAX_FILES, true); - cap_rights_init(&rights, CAP_READ | CAP_FCNTL); + cap_rights_init(&rights, CAP_READ, CAP_FCNTL); cap_rights_init(&norights, CAP_WRITE); fa = fileargs_init(MAX_FILES, files, O_RDONLY, 0, &rights, FA_OPEN); @@ -338,7 +338,7 @@ ATF_TC_BODY(fileargs__open_write, tc) prepare_files(MAX_FILES, true); - cap_rights_init(&rights, CAP_WRITE | CAP_FCNTL); + cap_rights_init(&rights, CAP_WRITE, CAP_FCNTL); cap_rights_init(&norights, CAP_READ); fa = fileargs_init(MAX_FILES, files, O_WRONLY, 0, &rights, FA_OPEN); @@ -385,7 +385,7 @@ ATF_TC_BODY(fileargs__open_create, tc) prepare_files(MAX_FILES, false); - cap_rights_init(&rights, CAP_WRITE | CAP_FCNTL | CAP_READ); + cap_rights_init(&rights, CAP_WRITE, CAP_FCNTL, CAP_READ); cap_rights_init(&norights, CAP_FCHMOD); fa = fileargs_init(MAX_FILES, files, O_RDWR | O_CREAT, 666, &rights, FA_OPEN); @@ -466,7 +466,7 @@ ATF_TC_BODY(fileargs__fopen_read, tc) prepare_files(MAX_FILES, true); - cap_rights_init(&rights, CAP_READ | CAP_FCNTL); + cap_rights_init(&rights, CAP_READ, CAP_FCNTL); cap_rights_init(&norights, CAP_WRITE); fa = fileargs_init(MAX_FILES, files, O_RDONLY, 0, &rights, FA_OPEN); @@ -516,7 +516,7 @@ ATF_TC_BODY(fileargs__fopen_write, tc) prepare_files(MAX_FILES, true); - cap_rights_init(&rights, CAP_WRITE | CAP_FCNTL); + cap_rights_init(&rights, CAP_WRITE, CAP_FCNTL); cap_rights_init(&norights, CAP_READ); fa = fileargs_init(MAX_FILES, files, O_WRONLY, 0, &rights, FA_OPEN); @@ -566,7 +566,7 @@ ATF_TC_BODY(fileargs__fopen_create, tc) prepare_files(MAX_FILES, false); - cap_rights_init(&rights, CAP_READ | CAP_WRITE | CAP_FCNTL); + cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_FCNTL); fa = fileargs_init(MAX_FILES, files, O_RDWR | O_CREAT, 0, &rights, FA_OPEN); ATF_REQUIRE(fa != NULL); @@ -672,7 +672,7 @@ ATF_TC_BODY(fileargs__open_lstat, tc) prepare_files(MAX_FILES, true); - cap_rights_init(&rights, CAP_READ | CAP_FCNTL); + cap_rights_init(&rights, CAP_READ, CAP_FCNTL); cap_rights_init(&norights, CAP_WRITE); fa = fileargs_init(MAX_FILES, files, O_RDONLY, 0, &rights, FA_OPEN | FA_LSTAT); @@ -720,7 +720,7 @@ ATF_TC_BODY(fileargs__open_realpath, tc) prepare_files(MAX_FILES, true); - cap_rights_init(&rights, CAP_READ | CAP_FCNTL); + cap_rights_init(&rights, CAP_READ, CAP_FCNTL); cap_rights_init(&norights, CAP_WRITE); fa = fileargs_init(MAX_FILES, files, O_RDONLY, 0, &rights, FA_OPEN | FA_REALPATH); From nobody Thu Feb 15 09:22: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 4Tb8jY2plhz51gYZ; Thu, 15 Feb 2024 09:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tb8jY24WZz4gGJ; Thu, 15 Feb 2024 09:22:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707988961; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kL8MAD7BAvK08AiqRGovpTW6pv7H8rnev/SByPOWj50=; b=i6PUnPcA93gY9Qj7+GnIFw9E9DFM/AuwhmIjSJwi+EBc82/nIUfAWR8mZjBFkgowSscfQ6 0Od7PpFFc6i12FqxqA+KcM9vxdr+G2EAIca2AvqQEeH+kNJ8TJqqZktxXi6RbFhElQ1ucm 4eCjYTfRMoKjuVPan4fhvjuV2Pkiq4xJd37aHTWnoQEgGSsuLOmV7b90luwLh2/e+Xl6Ai xuCq7VBpZoPxkUffsBxfKwZ1cYWGdquRtwfAGiA3nl5V7fzZyM11z1q0AAQH+22LCBUFWl hYmw50OYs9EgBzh4YSGqv+vXcazIfJNXjXs4npSuIx+yy6u8K4a8D6jbHCjIfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707988961; a=rsa-sha256; cv=none; b=VNpODM8pzgd2sqDX4kb4AjN850h4RJN1tpTYwyntqVf/QvrYBHAfHZQW5m/jmklIYGbtdv NXrVnxghW+flk69L9/fXAR2FCFd+Zaq982cwkLTv/7V5pDIcEvKMMrqv7mNw08DB9auE7/ UJHFKsDTZo9gAOmSqiNoT4z9FpGUcICYmxkzI9b2Yahn4F363SkqIa4qPjNpGMBQSvqmaa lbAuZusaTEhj76XAvXxE5aqdYf5XDy1RzpuolF84Gc7bqTcN+AvdIgRlhjEg/QmVrQT5Wp MhPRBH+CtCT+uFEPcWXPfapHEPCaDsRCd0QOS6k+bX6lFR6wLthFtIRMbMbdCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707988961; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kL8MAD7BAvK08AiqRGovpTW6pv7H8rnev/SByPOWj50=; b=OyxM5p7DdYOn1eITKfC3HVUfvlWSUQF0ZQ6Pu0phF6ephgO7fYUc4kiAAJ/9hA8GGghV+V VQda2zeDlVNV0fT4Ttex82Hl9M23+1OjYHvUy0Sd8iIpPol23gqHEny+9TjkTBVheZKlNy QXtNsqyYFhBkxJYQHcmQZnwqV3XRw4Qg45IORUIDqwpiHSx73vDCRms9N+3FMkBvXIvFad TroGKAoG8YSbmFIOPzoK1ugbi04UnvPwgeOEeg45Mu+1/1rkxi/Z91aEA6opdazfqb6qoI 9h1u5shpx5LCF/rLs5+Q9GGfRpwTO25Zq+ZFTRs+k0a8QIh6YAPfwrHVr5ylFQ== 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 4Tb8jY15dWzc85; Thu, 15 Feb 2024 09:22:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41F9Mfve043716; Thu, 15 Feb 2024 09:22:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41F9McK3043712; Thu, 15 Feb 2024 09:22:38 GMT (envelope-from git) Date: Thu, 15 Feb 2024 09:22:38 GMT Message-Id: <202402150922.41F9McK3043712@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Martin Matuska Subject: git: e2257b3168fc - main - zfs: merge openzfs/zfs@e0bd8118d 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e2257b3168fc1697518265527e5d817eca6c43b8 Auto-Submitted: auto-generated The branch main has been updated by mm: URL: https://cgit.FreeBSD.org/src/commit/?id=e2257b3168fc1697518265527e5d817eca6c43b8 commit e2257b3168fc1697518265527e5d817eca6c43b8 Merge: 3733d82c4deb e0bd8118d04b Author: Martin Matuska AuthorDate: 2024-02-15 09:21:13 +0000 Commit: Martin Matuska CommitDate: 2024-02-15 09:22:15 +0000 zfs: merge openzfs/zfs@e0bd8118d Notable upstream pull request merges: #15469 cbe882298 Add slow disk diagnosis to ZED #15857 d0d273320 Update zfs-snapshot.8 #15864 a5a725440 zfs list: add '-t fs' and '-t vol' options #15874 6cc93ccde BRT: Fix slop space calculation with block cloning #15882 a0635ae73 zdb: Fix false leak report for BRT objects Obtained from: OpenZFS OpenZFS commit: e0bd8118d04b55b7adf3d9ba256ad4bb53e66512 sys/contrib/openzfs/cmd/zdb/zdb.c | 11 ++ sys/contrib/openzfs/cmd/zed/agents/fmd_api.c | 57 +++--- sys/contrib/openzfs/cmd/zed/agents/fmd_api.h | 3 +- sys/contrib/openzfs/cmd/zed/agents/fmd_serd.c | 3 +- sys/contrib/openzfs/cmd/zed/agents/fmd_serd.h | 2 +- sys/contrib/openzfs/cmd/zed/agents/zfs_diagnosis.c | 143 +++++++++++--- sys/contrib/openzfs/cmd/zed/agents/zfs_retire.c | 3 + sys/contrib/openzfs/cmd/zfs/zfs_main.c | 22 ++- sys/contrib/openzfs/cmd/zinject/zinject.c | 16 ++ sys/contrib/openzfs/cmd/zpool/zpool_main.c | 8 +- .../openzfs/include/os/linux/spl/sys/taskq.h | 2 +- sys/contrib/openzfs/include/sys/fm/fs/zfs.h | 2 + sys/contrib/openzfs/include/sys/fs/zfs.h | 2 + sys/contrib/openzfs/include/sys/vdev_impl.h | 5 +- sys/contrib/openzfs/lib/libzfs/libzfs.abi | 4 +- sys/contrib/openzfs/lib/libzfs/libzfs_pool.c | 2 + sys/contrib/openzfs/lib/libzfs/libzfs_util.c | 4 +- sys/contrib/openzfs/man/man4/spl.4 | 18 +- sys/contrib/openzfs/man/man7/vdevprops.7 | 4 +- sys/contrib/openzfs/man/man7/zpoolconcepts.7 | 4 +- sys/contrib/openzfs/man/man8/zfs-list.8 | 11 +- sys/contrib/openzfs/man/man8/zfs-snapshot.8 | 16 +- sys/contrib/openzfs/man/man8/zinject.8 | 1 + .../openzfs/module/os/linux/spl/spl-taskq.c | 85 +++------ sys/contrib/openzfs/module/zcommon/zpool_prop.c | 6 + sys/contrib/openzfs/module/zfs/spa_misc.c | 3 +- sys/contrib/openzfs/module/zfs/vdev.c | 30 +++ sys/contrib/openzfs/module/zfs/zfs_fm.c | 26 +++ sys/contrib/openzfs/module/zfs/zio_inject.c | 4 + sys/contrib/openzfs/tests/runfiles/linux.run | 3 +- .../openzfs/tests/zfs-tests/include/default.cfg.in | 2 +- .../openzfs/tests/zfs-tests/tests/Makefile.am | 2 + .../functional/cli_root/zpool_get/vdev_get.cfg | 2 + .../zfs-tests/tests/functional/events/cleanup.ksh | 4 +- .../tests/functional/events/zed_slow_io.ksh | 205 +++++++++++++++++++++ .../functional/events/zed_slow_io_many_vdevs.ksh | 177 ++++++++++++++++++ .../zfs-tests/tests/functional/fault/cleanup.ksh | 1 + .../zfs-tests/tests/functional/fault/setup.ksh | 1 + sys/modules/zfs/zfs_config.h | 7 +- sys/modules/zfs/zfs_gitrev.h | 2 +- 40 files changed, 746 insertions(+), 157 deletions(-) diff --cc sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/zed_slow_io.ksh index 000000000000,d9fabb2c3bc9..d9fabb2c3bc9 mode 000000,100755..100755 --- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/zed_slow_io.ksh +++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/zed_slow_io.ksh diff --cc sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/zed_slow_io_many_vdevs.ksh index 000000000000,3357ae2e3510..3357ae2e3510 mode 000000,100755..100755 --- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/zed_slow_io_many_vdevs.ksh +++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/zed_slow_io_many_vdevs.ksh diff --cc sys/modules/zfs/zfs_config.h index f452cffa20c8,000000000000..5a3e421ab67e mode 100644,000000..100644 --- a/sys/modules/zfs/zfs_config.h +++ b/sys/modules/zfs/zfs_config.h @@@ -1,1191 -1,0 +1,1194 @@@ +/* + */ + +/* zfs_config.h. Generated from zfs_config.h.in by configure. */ +/* zfs_config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if translation of program messages to the user's native + language is requested. */ +/* #undef ENABLE_NLS */ + +/* bio_end_io_t wants 1 arg */ +/* #undef HAVE_1ARG_BIO_END_IO_T */ + +/* lookup_bdev() wants 1 arg */ +/* #undef HAVE_1ARG_LOOKUP_BDEV */ + +/* submit_bio() wants 1 arg */ +/* #undef HAVE_1ARG_SUBMIT_BIO */ + +/* bdi_setup_and_register() wants 2 args */ +/* #undef HAVE_2ARGS_BDI_SETUP_AND_REGISTER */ + +/* vfs_getattr wants 2 args */ +/* #undef HAVE_2ARGS_VFS_GETATTR */ + +/* zlib_deflate_workspacesize() wants 2 args */ +/* #undef HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE */ + +/* bdi_setup_and_register() wants 3 args */ +/* #undef HAVE_3ARGS_BDI_SETUP_AND_REGISTER */ + +/* vfs_getattr wants 3 args */ +/* #undef HAVE_3ARGS_VFS_GETATTR */ + +/* vfs_getattr wants 4 args */ +/* #undef HAVE_4ARGS_VFS_GETATTR */ + +/* kernel has access_ok with 'type' parameter */ +/* #undef HAVE_ACCESS_OK_TYPE */ + +/* posix_acl has refcount_t */ +/* #undef HAVE_ACL_REFCOUNT */ + +/* add_disk() returns int */ +/* #undef HAVE_ADD_DISK_RET */ + +/* Define if host toolchain supports AES */ +#define HAVE_AES 1 + +/* Define if you have [rt] */ +#define HAVE_AIO_H 1 + +#ifdef __amd64__ +#ifndef RESCUE +/* Define if host toolchain supports AVX */ +#define HAVE_AVX 1 +#endif + +/* Define if host toolchain supports AVX2 */ +#define HAVE_AVX2 1 + +/* Define if host toolchain supports AVX512BW */ +#define HAVE_AVX512BW 1 + +/* Define if host toolchain supports AVX512CD */ +#define HAVE_AVX512CD 1 + +/* Define if host toolchain supports AVX512DQ */ +#define HAVE_AVX512DQ 1 + +/* Define if host toolchain supports AVX512ER */ +#define HAVE_AVX512ER 1 + +/* Define if host toolchain supports AVX512F */ +#define HAVE_AVX512F 1 + +/* Define if host toolchain supports AVX512IFMA */ +#define HAVE_AVX512IFMA 1 + +/* Define if host toolchain supports AVX512PF */ +#define HAVE_AVX512PF 1 + +/* Define if host toolchain supports AVX512VBMI */ +#define HAVE_AVX512VBMI 1 + +/* Define if host toolchain supports AVX512VL */ +#define HAVE_AVX512VL 1 +#endif + +/* bdevname() is available */ +/* #undef HAVE_BDEVNAME */ + +/* bdev_check_media_change() exists */ +/* #undef HAVE_BDEV_CHECK_MEDIA_CHANGE */ + +/* bdev_*_io_acct() available */ +/* #undef HAVE_BDEV_IO_ACCT_63 */ + +/* bdev_*_io_acct() available */ +/* #undef HAVE_BDEV_IO_ACCT_OLD */ + +/* bdev_kobj() exists */ +/* #undef HAVE_BDEV_KOBJ */ + +/* bdev_max_discard_sectors() is available */ +/* #undef HAVE_BDEV_MAX_DISCARD_SECTORS */ + +/* bdev_max_secure_erase_sectors() is available */ +/* #undef HAVE_BDEV_MAX_SECURE_ERASE_SECTORS */ + +/* bdev_open_by_path() exists */ +/* #undef HAVE_BDEV_OPEN_BY_PATH */ + +/* bdev_release() exists */ +/* #undef HAVE_BDEV_RELEASE */ + +/* block_device_operations->submit_bio() returns void */ +/* #undef HAVE_BDEV_SUBMIT_BIO_RETURNS_VOID */ + +/* bdev_whole() is available */ +/* #undef HAVE_BDEV_WHOLE */ + +/* bio_alloc() takes 4 arguments */ +/* #undef HAVE_BIO_ALLOC_4ARG */ + +/* bio->bi_bdev->bd_disk exists */ +/* #undef HAVE_BIO_BDEV_DISK */ + +/* bio->bi_opf is defined */ +/* #undef HAVE_BIO_BI_OPF */ + +/* bio->bi_status exists */ +/* #undef HAVE_BIO_BI_STATUS */ + +/* bio has bi_iter */ +/* #undef HAVE_BIO_BVEC_ITER */ + +/* bio_*_io_acct() available */ +/* #undef HAVE_BIO_IO_ACCT */ + +/* bio_max_segs() is implemented */ +/* #undef HAVE_BIO_MAX_SEGS */ + +/* bio_set_dev() is available */ +/* #undef HAVE_BIO_SET_DEV */ + +/* bio_set_dev() GPL-only */ +/* #undef HAVE_BIO_SET_DEV_GPL_ONLY */ + +/* bio_set_dev() is a macro */ +/* #undef HAVE_BIO_SET_DEV_MACRO */ + +/* bio_set_op_attrs is available */ +/* #undef HAVE_BIO_SET_OP_ATTRS */ + +/* blkdev_get_by_path() exists and takes 4 args */ +/* #undef HAVE_BLKDEV_GET_BY_PATH_4ARG */ + +/* blkdev_get_by_path() handles ERESTARTSYS */ +/* #undef HAVE_BLKDEV_GET_ERESTARTSYS */ + +/* blkdev_issue_discard() is available */ +/* #undef HAVE_BLKDEV_ISSUE_DISCARD */ + ++/* __blkdev_issue_discard() is available */ ++/* #undef HAVE_BLKDEV_ISSUE_DISCARD_ASYNC */ ++ +/* blkdev_issue_secure_erase() is available */ +/* #undef HAVE_BLKDEV_ISSUE_SECURE_ERASE */ + +/* blkdev_put() accepts void* as arg 2 */ +/* #undef HAVE_BLKDEV_PUT_HOLDER */ + +/* blkdev_reread_part() exists */ +/* #undef HAVE_BLKDEV_REREAD_PART */ + +/* blkg_tryget() is available */ +/* #undef HAVE_BLKG_TRYGET */ + +/* blkg_tryget() GPL-only */ +/* #undef HAVE_BLKG_TRYGET_GPL_ONLY */ + +/* blk_alloc_disk() exists */ +/* #undef HAVE_BLK_ALLOC_DISK */ + +/* blk_alloc_queue() expects request function */ +/* #undef HAVE_BLK_ALLOC_QUEUE_REQUEST_FN */ + +/* blk_alloc_queue_rh() expects request function */ +/* #undef HAVE_BLK_ALLOC_QUEUE_REQUEST_FN_RH */ + +/* blk_cleanup_disk() exists */ +/* #undef HAVE_BLK_CLEANUP_DISK */ + +/* blk_mode_t is defined */ +/* #undef HAVE_BLK_MODE_T */ + +/* block multiqueue is available */ +/* #undef HAVE_BLK_MQ */ + +/* blk queue backing_dev_info is dynamic */ +/* #undef HAVE_BLK_QUEUE_BDI_DYNAMIC */ + +/* blk_queue_discard() is available */ +/* #undef HAVE_BLK_QUEUE_DISCARD */ + +/* blk_queue_flag_clear() exists */ +/* #undef HAVE_BLK_QUEUE_FLAG_CLEAR */ + +/* blk_queue_flag_set() exists */ +/* #undef HAVE_BLK_QUEUE_FLAG_SET */ + +/* blk_queue_flush() is available */ +/* #undef HAVE_BLK_QUEUE_FLUSH */ + +/* blk_queue_flush() is GPL-only */ +/* #undef HAVE_BLK_QUEUE_FLUSH_GPL_ONLY */ + +/* blk_queue_secdiscard() is available */ +/* #undef HAVE_BLK_QUEUE_SECDISCARD */ + +/* blk_queue_secure_erase() is available */ +/* #undef HAVE_BLK_QUEUE_SECURE_ERASE */ + +/* blk_queue_update_readahead() exists */ +/* #undef HAVE_BLK_QUEUE_UPDATE_READAHEAD */ + +/* blk_queue_write_cache() exists */ +/* #undef HAVE_BLK_QUEUE_WRITE_CACHE */ + +/* blk_queue_write_cache() is GPL-only */ +/* #undef HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY */ + +/* BLK_STS_RESV_CONFLICT is defined */ +/* #undef HAVE_BLK_STS_RESV_CONFLICT */ + +/* Define if release() in block_device_operations takes 1 arg */ +/* #undef HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_1ARG */ + +/* Define if revalidate_disk() in block_device_operations */ +/* #undef HAVE_BLOCK_DEVICE_OPERATIONS_REVALIDATE_DISK */ + +/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the + CoreFoundation framework. */ +/* #undef HAVE_CFLOCALECOPYCURRENT */ + +/* Define to 1 if you have the Mac OS X function + CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ +/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */ + +/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in + the CoreFoundation framework. */ +/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ + +/* check_disk_change() exists */ +/* #undef HAVE_CHECK_DISK_CHANGE */ + +/* clear_inode() is available */ +/* #undef HAVE_CLEAR_INODE */ + +/* dentry uses const struct dentry_operations */ +/* #undef HAVE_CONST_DENTRY_OPERATIONS */ + +/* copy_from_iter() is available */ +/* #undef HAVE_COPY_FROM_ITER */ + +/* copy_splice_read exists */ +/* #undef HAVE_COPY_SPLICE_READ */ + +/* copy_to_iter() is available */ +/* #undef HAVE_COPY_TO_ITER */ + +/* cpu_has_feature() is GPL-only */ +/* #undef HAVE_CPU_HAS_FEATURE_GPL_ONLY */ + +/* yes */ +/* #undef HAVE_CPU_HOTPLUG */ + +/* current_time() exists */ +/* #undef HAVE_CURRENT_TIME */ + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +/* #undef HAVE_DCGETTEXT */ + +/* DECLARE_EVENT_CLASS() is available */ +/* #undef HAVE_DECLARE_EVENT_CLASS */ + +/* dentry aliases are in d_u member */ +/* #undef HAVE_DENTRY_D_U_ALIASES */ + +/* dequeue_signal() takes 4 arguments */ +/* #undef HAVE_DEQUEUE_SIGNAL_4ARG */ + +/* lookup_bdev() wants dev_t arg */ +/* #undef HAVE_DEVT_LOOKUP_BDEV */ + +/* sops->dirty_inode() wants flags */ +/* #undef HAVE_DIRTY_INODE_WITH_FLAGS */ + +/* disk_check_media_change() exists */ +/* #undef HAVE_DISK_CHECK_MEDIA_CHANGE */ + +/* disk_*_io_acct() available */ +/* #undef HAVE_DISK_IO_ACCT */ + +/* disk_update_readahead() exists */ +/* #undef HAVE_DISK_UPDATE_READAHEAD */ + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* d_make_root() is available */ +/* #undef HAVE_D_MAKE_ROOT */ + +/* d_prune_aliases() is available */ +/* #undef HAVE_D_PRUNE_ALIASES */ + +/* dops->d_revalidate() operation takes nameidata */ +/* #undef HAVE_D_REVALIDATE_NAMEIDATA */ + +/* eops->encode_fh() wants child and parent inodes */ +/* #undef HAVE_ENCODE_FH_WITH_INODE */ + +/* sops->evict_inode() exists */ +/* #undef HAVE_EVICT_INODE */ + +/* Define to 1 if you have the `execvpe' function. */ +/* #undef HAVE_EXECVPE */ + +/* FALLOC_FL_ZERO_RANGE is defined */ +/* #undef HAVE_FALLOC_FL_ZERO_RANGE */ + +/* fault_in_iov_iter_readable() is available */ +/* #undef HAVE_FAULT_IN_IOV_ITER_READABLE */ + +/* filemap_range_has_page() is available */ +/* #undef HAVE_FILEMAP_RANGE_HAS_PAGE */ + +/* fops->aio_fsync() exists */ +/* #undef HAVE_FILE_AIO_FSYNC */ + +/* file_dentry() is available */ +/* #undef HAVE_FILE_DENTRY */ + +/* fops->fadvise() exists */ +/* #undef HAVE_FILE_FADVISE */ + +/* file_inode() is available */ +/* #undef HAVE_FILE_INODE */ + +/* flush_dcache_page() is GPL-only */ +/* #undef HAVE_FLUSH_DCACHE_PAGE_GPL_ONLY */ + +/* iops->follow_link() cookie */ +/* #undef HAVE_FOLLOW_LINK_COOKIE */ + +/* iops->follow_link() nameidata */ +/* #undef HAVE_FOLLOW_LINK_NAMEIDATA */ + +/* Define if compiler supports -Wformat-overflow */ +/* #undef HAVE_FORMAT_OVERFLOW */ + +/* fsync_bdev() is declared in include/blkdev.h */ +/* #undef HAVE_FSYNC_BDEV */ + +/* fops->fsync() with range */ +/* #undef HAVE_FSYNC_RANGE */ + +/* fops->fsync() without dentry */ +/* #undef HAVE_FSYNC_WITHOUT_DENTRY */ + +/* yes */ +/* #undef HAVE_GENERIC_FADVISE */ + +/* generic_fillattr requires struct mnt_idmap* */ +/* #undef HAVE_GENERIC_FILLATTR_IDMAP */ + +/* generic_fillattr requires struct mnt_idmap* and u32 request_mask */ +/* #undef HAVE_GENERIC_FILLATTR_IDMAP_REQMASK */ + +/* generic_fillattr requires struct user_namespace* */ +/* #undef HAVE_GENERIC_FILLATTR_USERNS */ + +/* generic_*_io_acct() 3 arg available */ +/* #undef HAVE_GENERIC_IO_ACCT_3ARG */ + +/* generic_*_io_acct() 4 arg available */ +/* #undef HAVE_GENERIC_IO_ACCT_4ARG */ + +/* generic_readlink is global */ +/* #undef HAVE_GENERIC_READLINK */ + +/* generic_setxattr() exists */ +/* #undef HAVE_GENERIC_SETXATTR */ + +/* generic_write_checks() takes kiocb */ +/* #undef HAVE_GENERIC_WRITE_CHECKS_KIOCB */ + +/* Define if the GNU gettext() function is already present or preinstalled. */ +/* #undef HAVE_GETTEXT */ + +/* iops->get_acl() exists */ +/* #undef HAVE_GET_ACL */ + +/* iops->get_acl() takes rcu */ +/* #undef HAVE_GET_ACL_RCU */ + +/* has iops->get_inode_acl() */ +/* #undef HAVE_GET_INODE_ACL */ + +/* iops->get_link() cookie */ +/* #undef HAVE_GET_LINK_COOKIE */ + +/* iops->get_link() delayed */ +/* #undef HAVE_GET_LINK_DELAYED */ + +/* group_info->gid exists */ +/* #undef HAVE_GROUP_INFO_GID */ + +/* has_capability() is available */ +/* #undef HAVE_HAS_CAPABILITY */ + +/* iattr->ia_vfsuid and iattr->ia_vfsgid exist */ +/* #undef HAVE_IATTR_VFSID */ + +/* Define if you have the iconv() function and it works. */ +#define HAVE_ICONV 1 + +/* iops->getattr() takes struct mnt_idmap* */ +/* #undef HAVE_IDMAP_IOPS_GETATTR */ + +/* iops->setattr() takes struct mnt_idmap* */ +/* #undef HAVE_IDMAP_IOPS_SETATTR */ + +/* APIs for idmapped mount are present */ +/* #undef HAVE_IDMAP_MNT_API */ + +/* mnt_idmap does not have user_namespace */ +/* #undef HAVE_IDMAP_NO_USERNS */ + +/* Define if compiler supports -Wimplicit-fallthrough */ +/* #undef HAVE_IMPLICIT_FALLTHROUGH */ + +/* Define if compiler supports -Winfinite-recursion */ +/* #undef HAVE_INFINITE_RECURSION */ + +/* inode_get_atime() exists in linux/fs.h */ +/* #undef HAVE_INODE_GET_ATIME */ + +/* inode_get_ctime() exists in linux/fs.h */ +/* #undef HAVE_INODE_GET_CTIME */ + +/* inode_get_mtime() exists in linux/fs.h */ +/* #undef HAVE_INODE_GET_MTIME */ + +/* yes */ +/* #undef HAVE_INODE_LOCK_SHARED */ + +/* inode_owner_or_capable() exists */ +/* #undef HAVE_INODE_OWNER_OR_CAPABLE */ + +/* inode_owner_or_capable() takes mnt_idmap */ +/* #undef HAVE_INODE_OWNER_OR_CAPABLE_IDMAP */ + +/* inode_owner_or_capable() takes user_ns */ +/* #undef HAVE_INODE_OWNER_OR_CAPABLE_USERNS */ + +/* inode_set_atime_to_ts() exists in linux/fs.h */ +/* #undef HAVE_INODE_SET_ATIME_TO_TS */ + +/* inode_set_ctime_to_ts() exists in linux/fs.h */ +/* #undef HAVE_INODE_SET_CTIME_TO_TS */ + +/* inode_set_flags() exists */ +/* #undef HAVE_INODE_SET_FLAGS */ + +/* inode_set_iversion() exists */ +/* #undef HAVE_INODE_SET_IVERSION */ + +/* inode_set_mtime_to_ts() exists in linux/fs.h */ +/* #undef HAVE_INODE_SET_MTIME_TO_TS */ + +/* inode->i_*time's are timespec64 */ +/* #undef HAVE_INODE_TIMESPEC64_TIMES */ + +/* timestamp_truncate() exists */ +/* #undef HAVE_INODE_TIMESTAMP_TRUNCATE */ + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* in_compat_syscall() is available */ +/* #undef HAVE_IN_COMPAT_SYSCALL */ + +/* iops->create() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_CREATE_IDMAP */ + +/* iops->create() takes struct user_namespace* */ +/* #undef HAVE_IOPS_CREATE_USERNS */ + +/* iops->mkdir() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_MKDIR_IDMAP */ + +/* iops->mkdir() takes struct user_namespace* */ +/* #undef HAVE_IOPS_MKDIR_USERNS */ + +/* iops->mknod() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_MKNOD_IDMAP */ + +/* iops->mknod() takes struct user_namespace* */ +/* #undef HAVE_IOPS_MKNOD_USERNS */ + +/* iops->permission() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_PERMISSION_IDMAP */ + +/* iops->permission() takes struct user_namespace* */ +/* #undef HAVE_IOPS_PERMISSION_USERNS */ + +/* iops->rename() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_RENAME_IDMAP */ + +/* iops->rename() takes struct user_namespace* */ +/* #undef HAVE_IOPS_RENAME_USERNS */ + +/* iops->setattr() exists */ +/* #undef HAVE_IOPS_SETATTR */ + +/* iops->symlink() takes struct mnt_idmap* */ +/* #undef HAVE_IOPS_SYMLINK_IDMAP */ + +/* iops->symlink() takes struct user_namespace* */ +/* #undef HAVE_IOPS_SYMLINK_USERNS */ + +/* iov_iter_advance() is available */ +/* #undef HAVE_IOV_ITER_ADVANCE */ + +/* iov_iter_count() is available */ +/* #undef HAVE_IOV_ITER_COUNT */ + +/* iov_iter_fault_in_readable() is available */ +/* #undef HAVE_IOV_ITER_FAULT_IN_READABLE */ + +/* iov_iter_revert() is available */ +/* #undef HAVE_IOV_ITER_REVERT */ + +/* iov_iter_type() is available */ +/* #undef HAVE_IOV_ITER_TYPE */ + +/* iov_iter types are available */ +/* #undef HAVE_IOV_ITER_TYPES */ + +/* yes */ +/* #undef HAVE_IO_SCHEDULE_TIMEOUT */ + +/* Define to 1 if you have the `issetugid' function. */ +#define HAVE_ISSETUGID 1 + +/* iter_iov() is available */ +/* #undef HAVE_ITER_IOV */ + +/* kernel has kernel_fpu_* functions */ +/* #undef HAVE_KERNEL_FPU */ + +/* kernel has asm/fpu/api.h */ +/* #undef HAVE_KERNEL_FPU_API_HEADER */ + +/* kernel fpu internal */ +/* #undef HAVE_KERNEL_FPU_INTERNAL */ + +/* kernel has asm/fpu/internal.h */ +/* #undef HAVE_KERNEL_FPU_INTERNAL_HEADER */ + +/* uncached_acl_sentinel() exists */ +/* #undef HAVE_KERNEL_GET_ACL_HANDLE_CACHE */ + +/* Define if compiler supports -Winfinite-recursion */ +/* #undef HAVE_KERNEL_INFINITE_RECURSION */ + +/* kernel has kernel_neon_* functions */ +/* #undef HAVE_KERNEL_NEON */ + +/* kernel does stack verification */ +/* #undef HAVE_KERNEL_OBJTOOL */ + +/* kernel has linux/objtool.h */ +/* #undef HAVE_KERNEL_OBJTOOL_HEADER */ + +/* kernel_read() take loff_t pointer */ +/* #undef HAVE_KERNEL_READ_PPOS */ + +/* strlcpy() exists */ +/* #undef HAVE_KERNEL_STRLCPY */ + +/* strscpy() exists */ +/* #undef HAVE_KERNEL_STRSCPY */ + +/* timer_list.function gets a timer_list */ +/* #undef HAVE_KERNEL_TIMER_FUNCTION_TIMER_LIST */ + +/* struct timer_list has a flags member */ +/* #undef HAVE_KERNEL_TIMER_LIST_FLAGS */ + +/* timer_setup() is available */ +/* #undef HAVE_KERNEL_TIMER_SETUP */ + +/* kernel_write() take loff_t pointer */ +/* #undef HAVE_KERNEL_WRITE_PPOS */ + +/* kmem_cache_create_usercopy() exists */ +/* #undef HAVE_KMEM_CACHE_CREATE_USERCOPY */ + +/* kstrtoul() exists */ +/* #undef HAVE_KSTRTOUL */ + +/* ktime_get_coarse_real_ts64() exists */ +/* #undef HAVE_KTIME_GET_COARSE_REAL_TS64 */ + +/* ktime_get_raw_ts64() exists */ +/* #undef HAVE_KTIME_GET_RAW_TS64 */ + +/* kvmalloc exists */ +/* #undef HAVE_KVMALLOC */ + +/* Define if you have [aio] */ +/* #undef HAVE_LIBAIO */ + +/* Define if you have [blkid] */ +/* #undef HAVE_LIBBLKID */ + +/* Define if you have [crypto] */ +#define HAVE_LIBCRYPTO 1 + +/* Define if you have [tirpc] */ +/* #undef HAVE_LIBTIRPC */ + +/* Define if you have [udev] */ +/* #undef HAVE_LIBUDEV */ + +/* Define if you have [uuid] */ +/* #undef HAVE_LIBUUID */ + +/* linux/blk-cgroup.h exists */ +/* #undef HAVE_LINUX_BLK_CGROUP_HEADER */ + +/* lseek_execute() is available */ +/* #undef HAVE_LSEEK_EXECUTE */ + +/* makedev() is declared in sys/mkdev.h */ +/* #undef HAVE_MAKEDEV_IN_MKDEV */ + +/* makedev() is declared in sys/sysmacros.h */ +/* #undef HAVE_MAKEDEV_IN_SYSMACROS */ + +/* Noting that make_request_fn() returns blk_qc_t */ +/* #undef HAVE_MAKE_REQUEST_FN_RET_QC */ + +/* Noting that make_request_fn() returns void */ +/* #undef HAVE_MAKE_REQUEST_FN_RET_VOID */ + +/* iops->mkdir() takes umode_t */ +/* #undef HAVE_MKDIR_UMODE_T */ + +/* Define to 1 if you have the `mlockall' function. */ +#define HAVE_MLOCKALL 1 + +/* lookup_bdev() wants mode arg */ +/* #undef HAVE_MODE_LOOKUP_BDEV */ + +/* Define if host toolchain supports MOVBE */ +#define HAVE_MOVBE 1 + +/* new_sync_read()/new_sync_write() are available */ +/* #undef HAVE_NEW_SYNC_READ */ + +/* folio_wait_bit() exists */ +/* #undef HAVE_PAGEMAP_FOLIO_WAIT_BIT */ + +/* part_to_dev() exists */ +/* #undef HAVE_PART_TO_DEV */ + +/* iops->getattr() takes a path */ +/* #undef HAVE_PATH_IOPS_GETATTR */ + +/* Define if host toolchain supports PCLMULQDQ */ +#define HAVE_PCLMULQDQ 1 + +/* percpu_counter_add_batch() is defined */ +/* #undef HAVE_PERCPU_COUNTER_ADD_BATCH */ + +/* percpu_counter_init() wants gfp_t */ +/* #undef HAVE_PERCPU_COUNTER_INIT_WITH_GFP */ + +/* posix_acl_chmod() exists */ +/* #undef HAVE_POSIX_ACL_CHMOD */ + +/* posix_acl_from_xattr() needs user_ns */ +/* #undef HAVE_POSIX_ACL_FROM_XATTR_USERNS */ + +/* posix_acl_release() is available */ +/* #undef HAVE_POSIX_ACL_RELEASE */ + +/* posix_acl_release() is GPL-only */ +/* #undef HAVE_POSIX_ACL_RELEASE_GPL_ONLY */ + +/* posix_acl_valid() wants user namespace */ +/* #undef HAVE_POSIX_ACL_VALID_WITH_NS */ + +/* proc_ops structure exists */ +/* #undef HAVE_PROC_OPS_STRUCT */ + +/* iops->put_link() cookie */ +/* #undef HAVE_PUT_LINK_COOKIE */ + +/* iops->put_link() delayed */ +/* #undef HAVE_PUT_LINK_DELAYED */ + +/* iops->put_link() nameidata */ +/* #undef HAVE_PUT_LINK_NAMEIDATA */ + +/* If available, contains the Python version number currently in use. */ +#define HAVE_PYTHON "3.7" + +/* qat is enabled and existed */ +/* #undef HAVE_QAT */ + +/* struct reclaim_state has reclaimed */ +/* #undef HAVE_RECLAIM_STATE_RECLAIMED */ + +/* register_shrinker is vararg */ +/* #undef HAVE_REGISTER_SHRINKER_VARARG */ + +/* register_sysctl_table exists */ +/* #undef HAVE_REGISTER_SYSCTL_TABLE */ + +/* iops->rename2() exists */ +/* #undef HAVE_RENAME2 */ + +/* struct inode_operations_wrapper takes .rename2() */ +/* #undef HAVE_RENAME2_OPERATIONS_WRAPPER */ + +/* iops->rename() wants flags */ +/* #undef HAVE_RENAME_WANTS_FLAGS */ + +/* REQ_DISCARD is defined */ +/* #undef HAVE_REQ_DISCARD */ + +/* REQ_FLUSH is defined */ +/* #undef HAVE_REQ_FLUSH */ + +/* REQ_OP_DISCARD is defined */ +/* #undef HAVE_REQ_OP_DISCARD */ + +/* REQ_OP_FLUSH is defined */ +/* #undef HAVE_REQ_OP_FLUSH */ + +/* REQ_OP_SECURE_ERASE is defined */ +/* #undef HAVE_REQ_OP_SECURE_ERASE */ + +/* REQ_PREFLUSH is defined */ +/* #undef HAVE_REQ_PREFLUSH */ + +/* revalidate_disk() is available */ +/* #undef HAVE_REVALIDATE_DISK */ + +/* revalidate_disk_size() is available */ +/* #undef HAVE_REVALIDATE_DISK_SIZE */ + +/* struct rw_semaphore has member activity */ +/* #undef HAVE_RWSEM_ACTIVITY */ + +/* struct rw_semaphore has atomic_long_t member count */ +/* #undef HAVE_RWSEM_ATOMIC_LONG_COUNT */ + +/* linux/sched/signal.h exists */ +/* #undef HAVE_SCHED_SIGNAL_HEADER */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SECURITY_PAM_MODULES_H 1 + +/* setattr_prepare() accepts mnt_idmap */ +/* #undef HAVE_SETATTR_PREPARE_IDMAP */ + +/* setattr_prepare() is available, doesn't accept user_namespace */ +/* #undef HAVE_SETATTR_PREPARE_NO_USERNS */ + +/* setattr_prepare() accepts user_namespace */ +/* #undef HAVE_SETATTR_PREPARE_USERNS */ + +/* iops->set_acl() exists, takes 3 args */ +/* #undef HAVE_SET_ACL */ + +/* iops->set_acl() takes 4 args, arg1 is struct mnt_idmap * */ +/* #undef HAVE_SET_ACL_IDMAP_DENTRY */ + +/* iops->set_acl() takes 4 args */ +/* #undef HAVE_SET_ACL_USERNS */ + +/* iops->set_acl() takes 4 args, arg2 is struct dentry * */ +/* #undef HAVE_SET_ACL_USERNS_DENTRY_ARG2 */ + +/* set_cached_acl() is usable */ +/* #undef HAVE_SET_CACHED_ACL_USABLE */ + +/* set_special_state() exists */ +/* #undef HAVE_SET_SPECIAL_STATE */ + +/* shrinker_register exists */ +/* #undef HAVE_SHRINKER_REGISTER */ + +/* struct shrink_control exists */ +/* #undef HAVE_SHRINK_CONTROL_STRUCT */ + +/* kernel_siginfo_t exists */ +/* #undef HAVE_SIGINFO */ + +/* signal_stop() exists */ +/* #undef HAVE_SIGNAL_STOP */ + +/* new shrinker callback wants 2 args */ +/* #undef HAVE_SINGLE_SHRINKER_CALLBACK */ + +/* cs->count_objects exists */ +/* #undef HAVE_SPLIT_SHRINKER_CALLBACK */ + +#if defined(__amd64__) || defined(__i386__) +/* Define if host toolchain supports SSE */ +#define HAVE_SSE 1 + +/* Define if host toolchain supports SSE2 */ +#define HAVE_SSE2 1 + +/* Define if host toolchain supports SSE3 */ +#define HAVE_SSE3 1 + +/* Define if host toolchain supports SSE4.1 */ +#define HAVE_SSE4_1 1 + +/* Define if host toolchain supports SSE4.2 */ +#define HAVE_SSE4_2 1 + +/* Define if host toolchain supports SSSE3 */ +#define HAVE_SSSE3 1 +#endif + +/* STACK_FRAME_NON_STANDARD is defined */ +/* #undef HAVE_STACK_FRAME_NON_STANDARD */ + +/* standalone exists */ +/* #undef HAVE_STANDALONE_LINUX_STDARG */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDIO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strlcat' function. */ +#define HAVE_STRLCAT 1 + +/* Define to 1 if you have the `strlcpy' function. */ +#define HAVE_STRLCPY 1 + +/* submit_bio is member of struct block_device_operations */ +/* #undef HAVE_SUBMIT_BIO_IN_BLOCK_DEVICE_OPERATIONS */ + +/* have super_block s_shrink */ +/* #undef HAVE_SUPER_BLOCK_S_SHRINK */ + +/* have super_block s_shrink pointer */ +/* #undef HAVE_SUPER_BLOCK_S_SHRINK_PTR */ + +/* super_setup_bdi_name() exits */ +/* #undef HAVE_SUPER_SETUP_BDI_NAME */ + +/* super_block->s_user_ns exists */ +/* #undef HAVE_SUPER_USER_NS */ + +/* sync_blockdev() is declared in include/blkdev.h */ +/* #undef HAVE_SYNC_BLOCKDEV */ + +/* struct kobj_type has default_groups */ +/* #undef HAVE_SYSFS_DEFAULT_GROUPS */ + +/* 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_TYPES_H 1 + +/* i_op->tmpfile() exists */ +/* #undef HAVE_TMPFILE */ + +/* i_op->tmpfile() uses old dentry signature */ +/* #undef HAVE_TMPFILE_DENTRY */ + +/* i_op->tmpfile() has mnt_idmap */ *** 298 LINES SKIPPED *** From nobody Thu Feb 15 12:55: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 4TbFQZ11KHz53XVr; Thu, 15 Feb 2024 12:55: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbFQZ0WpHz59Q7; Thu, 15 Feb 2024 12:55:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708001702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w2Sh6gLToQuQel42YGmi6zNcdNcKRNT78yX9w21281g=; b=Fb8Rt0pw+4uBS4WHXF0IC5KVVBrrEiFveeOkkOsJBTaeg127YU2tV5JmKZzVtNmSVLuwHq wb24OfCqyCfNUUyoewTHBXQD2JlpJu/Ly+A5ransMYZdtCM2QS/b+DuyBlL9UzsIE3CVjV 7EZkb0o01dgjjDm7ZgJ/weOa4Goa1uLhn6Yx+MKvi2LVPT+xyW2xPhewIvzqZ5PWqzJegz luoJKeWgmGoStDRtubhj4+OqqHBduKtEhRIwKbRBEeHiQKWrEVfD8NYKyRv3qAdkS6aYzb +Oj8EPkKRhe14LmpzDtHR8BcuZqkv2Z6x+opBI4doRGuSlz4Nw0t0MMFvy6Vrg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708001702; a=rsa-sha256; cv=none; b=TPM0Mz7M3Koa3+TcsiPyknOqdBnRBBMZzLko1QYtJDfbwBjr61FfZ8/6fZCXpOhV/1MIR/ or+zjqa5aBVrWkrdHgsdPS5CT2hGDDG7jJhauwBva5zwbOEcGPXtHiRj/REayFcqPlwd5g 6KboKBEAQYVf3QAuZ4SiiSwIjz04cBkKHNLjhhJqg7VoZkUwwhKwcfIyE7bq4tyieXOgjH HAOIQT+dWL4GenIMQjRF4MXqH8sURpFWnByezj1195PawP/9g+Vv/yvAfUB9LJdfpyPQiQ H9A5YofuyHx3dTXtxQU61hpToDh7STLGO8JYkiUH2OUwXId/klQnThU32fWrOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708001702; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w2Sh6gLToQuQel42YGmi6zNcdNcKRNT78yX9w21281g=; b=eWVI42xNMYwNgJyfGlAkLAs+eC1O9gB2ecq6CQSAkg9K3Pdb7v0Gmb4fk/zJ1pLwayGfF4 xe4m2fvY8rfb5LG+kRptJm+kWRG3nweLL2dlLM6ON0rYLQzjN+gpM1D9a/bJrvCyfA8WgE 796gpO6nhHNJMXeHrXiv6OHDmXkLhwlmDxhToJ/7bSX08/3t5neSSjOlrcBIpRv+Am7MB4 MsSCPDMUoGezJ5BRsMz92KzfNWg4t30jJQgaRv600P2FKCUeQmNoOD+6Uc2sq3Q+zd722o inhJIgmjEb01SZdomm21qBX7RYFen/OK9Fyp6TRo0lElvsAWk3VsyAfH4aeT+A== 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 4TbFQY6hxhzj4R; Thu, 15 Feb 2024 12:55:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FCt1vO095738; Thu, 15 Feb 2024 12:55:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FCt1Pd095735; Thu, 15 Feb 2024 12:55:01 GMT (envelope-from git) Date: Thu, 15 Feb 2024 12:55:01 GMT Message-Id: <202402151255.41FCt1Pd095735@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: 50edc6307198 - main - pfsync: Fix offset calculation 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 50edc630719827b6c58dd515328997fd196b1d78 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=50edc630719827b6c58dd515328997fd196b1d78 commit 50edc630719827b6c58dd515328997fd196b1d78 Author: Kajetan Staszkiewicz AuthorDate: 2024-02-13 19:41:14 +0000 Commit: Kristof Provost CommitDate: 2024-02-15 11:54:02 +0000 pfsync: Fix offset calculation Even though message version is automatically recognized and the top of the struct is identical for different versions, when iterating over multiple messages proper message length must be used. That's the length of an union member for given version, not of the union itself. Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D43862 --- sys/netpfil/pf/if_pfsync.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c index c57a89ea052a..e90bc60b85fa 100644 --- a/sys/netpfil/pf/if_pfsync.c +++ b/sys/netpfil/pf/if_pfsync.c @@ -1002,15 +1002,17 @@ pfsync_in_ins(struct mbuf *m, int offset, int count, int flags, int action) { struct mbuf *mp; union pfsync_state_union *sa, *sp; - int i, offp, len, msg_version; + int i, offp, total_len, msg_version, msg_len; switch (action) { case PFSYNC_ACT_INS_1301: - len = sizeof(struct pfsync_state_1301) * count; + msg_len = sizeof(struct pfsync_state_1301); + total_len = msg_len * count; msg_version = PFSYNC_MSG_VERSION_1301; break; case PFSYNC_ACT_INS_1400: - len = sizeof(struct pfsync_state_1400) * count; + msg_len = sizeof(struct pfsync_state_1400); + total_len = msg_len * count; msg_version = PFSYNC_MSG_VERSION_1400; break; default: @@ -1018,7 +1020,7 @@ pfsync_in_ins(struct mbuf *m, int offset, int count, int flags, int action) return (-1); } - mp = m_pulldown(m, offset, len, &offp); + mp = m_pulldown(m, offset, total_len, &offp); if (mp == NULL) { V_pfsyncstats.pfsyncs_badlen++; return (-1); @@ -1026,7 +1028,7 @@ pfsync_in_ins(struct mbuf *m, int offset, int count, int flags, int action) sa = (union pfsync_state_union *)(mp->m_data + offp); for (i = 0; i < count; i++) { - sp = &sa[i]; + sp = (union pfsync_state_union *)((char *)sa + msg_len * i); /* Check for invalid values. */ if (sp->pfs_1301.timeout >= PFTM_MAX || @@ -1046,7 +1048,7 @@ pfsync_in_ins(struct mbuf *m, int offset, int count, int flags, int action) break; } - return (len); + return (total_len); } static int @@ -1127,15 +1129,17 @@ pfsync_in_upd(struct mbuf *m, int offset, int count, int flags, int action) union pfsync_state_union *sa, *sp; struct pf_kstate *st; struct mbuf *mp; - int sync, offp, i, len, msg_version; + int sync, offp, i, total_len, msg_len, msg_version; switch (action) { case PFSYNC_ACT_UPD_1301: - len = sizeof(struct pfsync_state_1301) * count; + msg_len = sizeof(struct pfsync_state_1301); + total_len = msg_len * count; msg_version = PFSYNC_MSG_VERSION_1301; break; case PFSYNC_ACT_UPD_1400: - len = sizeof(struct pfsync_state_1400) * count; + msg_len = sizeof(struct pfsync_state_1400); + total_len = msg_len * count; msg_version = PFSYNC_MSG_VERSION_1400; break; default: @@ -1143,7 +1147,7 @@ pfsync_in_upd(struct mbuf *m, int offset, int count, int flags, int action) return (-1); } - mp = m_pulldown(m, offset, len, &offp); + mp = m_pulldown(m, offset, total_len, &offp); if (mp == NULL) { V_pfsyncstats.pfsyncs_badlen++; return (-1); @@ -1151,7 +1155,7 @@ pfsync_in_upd(struct mbuf *m, int offset, int count, int flags, int action) sa = (union pfsync_state_union *)(mp->m_data + offp); for (i = 0; i < count; i++) { - sp = &sa[i]; + sp = (union pfsync_state_union *)((char *)sa + msg_len * i); /* check for invalid values */ if (sp->pfs_1301.timeout >= PFTM_MAX || @@ -1214,7 +1218,7 @@ pfsync_in_upd(struct mbuf *m, int offset, int count, int flags, int action) PF_STATE_UNLOCK(st); } - return (len); + return (total_len); } static int From nobody Thu Feb 15 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 4TbGf31Vx0z53wJW; Thu, 15 Feb 2024 13:50:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbGf30Xl0z44rw; Thu, 15 Feb 2024 13:50:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708005003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LLfXUtw9dOFxGs3jnrAftqxqv2UNnMMxhh/OnIqWOSs=; b=UvQwCXu7RzZ7+NQpfh2sgkP4Ro8k/Vc+cq6pMiE3ERYfjbbRPlQq5+wA8naGRml+iO8Mz7 KHZNlP7Y0e2DObxug+47av2+mNpDqgcdVztV572YXI5UDSY8KmUoz/fprIl4gh/OPAkbKE 1bz1SqIF38vV+VUVtDugD27+HlP/RzOVdSO+nL7dIDDrlaceFgaaGZHIMZIoli67V+uS1j Sjr8eIu5Sd+1b8QfDukArJwEoN0ZSDCGt8kUHhYMyveefK2946O6CtXiqA8PL5UL80pdwK y51dKZfXHTTpRr5N3LOOSNExJB/wOPknFgqxZ7pc5wLhbsjZDLwP6VGw3gbpeA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708005003; a=rsa-sha256; cv=none; b=xlQg5J4d3e7XiCDIRe+s7MzV0zgX2JMPr+aTDrNvpa222WSludi/tzhIT0j/dyva1Xg+b5 hn1HTT5mkCo6+/6hkt4hQfQgE46HTngcln46L1WAvztlwMk2TifndljpIKpfEuPAbHowVz GzLLoQIEp4+pyjm4PXyA1y1PEu8tbZ+i3v8srDz3QaREVYBVNrRyVj28WwY7Nr1gbazn3z T7SwlkPTY07Fwh9JRpuyQl8Z92wmv7YvH1Jh1XVMPX/QgINItaqFa8a4v6jOI9/a3MezLO p3ExDwiijPqo1QFAMbKW9arXzplnGfbnhVxf7jc4lj4Ih1BWjDbRILNSNtXAFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708005003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LLfXUtw9dOFxGs3jnrAftqxqv2UNnMMxhh/OnIqWOSs=; b=Xw5+sNQWwqSY5wq05CUYmj+wdVAnwAUsmtltNwHSb62a2NYVin2pmIpCx5f/n5XPzEzqeO LWeWjVHgHjdNN2GlzyRotZ7bDgaFYqG9AyezBB985oyi7eVWHd+uaKbINE3KvZ0XtUeyOD G4a57Z/53+Cr3QxfeOO47fDlsk2B2+gTzx/593lGFnTHlqkmwkyYB5OxJ9ph74ZRFeltK9 CtiZhqw7UmeffOtw8F3bo6aM2fvBrXKnd+LtEl/eKJy5xe8J7xeZ/0ejPRC5zXGjkrOGwW /sPBi2zLXKHRjDfTJ8ypF5OEg/g87BiTRNXObcWSzFfpChwvZO9NUrAypkOE/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 4TbGf26j2gzjm8; Thu, 15 Feb 2024 13:50:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FDo2QW083099; Thu, 15 Feb 2024 13:50:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FDo2t7083094; Thu, 15 Feb 2024 13:50:02 GMT (envelope-from git) Date: Thu, 15 Feb 2024 13:50:02 GMT Message-Id: <202402151350.41FDo2t7083094@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Philip Paeps Subject: git: 9c59988175ff - main - bsdinstall: prefer HTTP 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: philip X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9c59988175ffd6b42c6927c0939e13abc43f7344 Auto-Submitted: auto-generated The branch main has been updated by philip: URL: https://cgit.FreeBSD.org/src/commit/?id=9c59988175ffd6b42c6927c0939e13abc43f7344 commit 9c59988175ffd6b42c6927c0939e13abc43f7344 Author: Philip Paeps AuthorDate: 2024-02-15 13:49:33 +0000 Commit: Philip Paeps CommitDate: 2024-02-15 13:49:33 +0000 bsdinstall: prefer HTTP In 2024, users are more likely to have working HTTP than working FTP. Present http://ftp.FreeBSD.org as the first option in the installer. Keep ftp://ftp.FreeBSD.org as the second option. MFC after: 3 weeks --- usr.sbin/bsdinstall/scripts/mirrorselect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bsdinstall/scripts/mirrorselect b/usr.sbin/bsdinstall/scripts/mirrorselect index 901f816206ba..8dd50199977d 100755 --- a/usr.sbin/bsdinstall/scripts/mirrorselect +++ b/usr.sbin/bsdinstall/scripts/mirrorselect @@ -40,7 +40,8 @@ MIRROR=`bsddialog --backtitle "$OSNAME Installer" \ --title "Mirror Selection" --extra-button --extra-label "Other" \ --menu "Please select the best suitable site for you or \"other\" if you want to specify a different choice. The \"Main Site\" directs users to the nearest project managed mirror via GeoDNS (they carry the full range of possible distributions and support both IPv4 and IPv6). All other sites are known as \"Community Mirrors\"; not every site listed here carries more than the base distribution kits. Select a site!" \ 0 0 16 \ - ftp://download.freebsd.org "Main Site (GeoDNS)"\ + http://ftp.freebsd.org "Main Site (GeoDNS, HTTP)"\ + ftp://ftp.freebsd.org "Main Site (GeoDNS, FTP)"\ http://ftp.au.freebsd.org "Australia - IPv6"\ ftp://ftp3.au.freebsd.org "Australia #3"\ ftp://ftp.at.freebsd.org "Austria - IPv6"\ From nobody Thu Feb 15 13:50: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 4TbGf42RBqz53wCb; Thu, 15 Feb 2024 13:50: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbGf411T4z455k; Thu, 15 Feb 2024 13:50:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708005004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DyWyNDdbZDQY2/6j32pFkl1r0Cz3ftuRTmMSihuVZP8=; b=DagCxbXB1T5MKStVRbyeIGDzl/uIAuap3okMHK+X9+5ximTG5iJx6l7vL3kuBG8dZ39fMb wLufGtPMpEaZM8dBcZx2QV4cE8KJ6PyrlX9KmFwILqZ4KpNSIs9ag6VP1U3ki9tMiE/L7F W8zUVcj4avwEx1d6H/X7N/cEDsVpAHAC6Pgl/uV6CzREazd3FN6CRlav1U+xINNTB/mCdJ XGf9SIob1OY4dLB5YIWF4ocaGnEtXA5t5Dg1UkOBIUHlP0uiaLwoPaGr5Qt10D0N0whxpu F1lInhtIQFWA8qXXrMaKhjkYDyAS1uZk/o02ka19m8nVdOxxVJflt41ZunHeuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708005004; a=rsa-sha256; cv=none; b=rPA/lHJ4aEyVsB6aAneAJHgR9U/Ux27NRmAe38iVx/j9yhrl8LifmO0tWZnjl56ZJGCPxA 1FSi6KTEcZNWuSJFsWa70uAPiAesHW7+fGXG3NVLtgQEwFvHYbMPT73kHdzBzrS1fwtjJY BOv78u/CIwN/Gr8WKggDkh10QWRPpllpUSdPgnLkJvVlJfpbmlzzz+bvEohNS/3yrxwsH3 3HjbtKCaBwlCXmknVOoZDcDr1m12x8wsj2ErIcYAaBIRW9QcUJNOzORjx+FiTuTDv9p6ih Rtv1aTePuQOuJPMPYZtt69gUb6hmK9ncc6xBOJ2ybyYxWtxnunLLZ/tVJN+uNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708005004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DyWyNDdbZDQY2/6j32pFkl1r0Cz3ftuRTmMSihuVZP8=; b=LZuEZr/zqVJmD9v/wyUYu778vo5byW+VP0EmmVurjykuwPaFzz7UD6hPZ+dwmgOm43RKdH xSqNXQwoRrps7hGaB59hYsG8n+VwWDhd967iYrAXw6iOhdCmAfpl63OxcEY9Im3O36j6Qq hJt7jvghMgLGngOvX3b4MzRoUOS7DSmChEkBwh7dirtAZ9bcGkkQmzg91TxpRK+wG/e7c4 T5wtf2uxmPC92+URvNKsI1fS23G/N2M9ky45V9VkcgU8+PuZqBQOmVX0R2VTU8wCTQ3iIf kcg9Z4utQPA4ydUVpGZSQs0NC32B4RyI5/PB88mpjbmL3Js+NbWHQiCfYK/ppQ== 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 4TbGf405ZnzkLB; Thu, 15 Feb 2024 13:50:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FDo3ZR083372; Thu, 15 Feb 2024 13:50:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FDo3W3083368; Thu, 15 Feb 2024 13:50:03 GMT (envelope-from git) Date: Thu, 15 Feb 2024 13:50:03 GMT Message-Id: <202402151350.41FDo3W3083368@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Philip Paeps Subject: git: 2911c44bafa7 - main - bsdinstall: remove two dead mirrors 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: philip X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2911c44bafa7daef67f528aa9af251d134f8f8ea Auto-Submitted: auto-generated The branch main has been updated by philip: URL: https://cgit.FreeBSD.org/src/commit/?id=2911c44bafa7daef67f528aa9af251d134f8f8ea commit 2911c44bafa7daef67f528aa9af251d134f8f8ea Author: Philip Paeps AuthorDate: 2024-02-15 13:49:33 +0000 Commit: Philip Paeps CommitDate: 2024-02-15 13:49:33 +0000 bsdinstall: remove two dead mirrors --- usr.sbin/bsdinstall/scripts/mirrorselect | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr.sbin/bsdinstall/scripts/mirrorselect b/usr.sbin/bsdinstall/scripts/mirrorselect index 8dd50199977d..05eff9fee56e 100755 --- a/usr.sbin/bsdinstall/scripts/mirrorselect +++ b/usr.sbin/bsdinstall/scripts/mirrorselect @@ -87,8 +87,6 @@ MIRROR=`bsddialog --backtitle "$OSNAME Installer" \ ftp://ftp2.uk.freebsd.org "UK #2 - IPv6"\ ftp://ftp.ua.FreeBSD.org "Ukraine - IPv6"\ ftp://ftp5.us.freebsd.org "USA #5 - IPv6"\ - ftp://ftp11.us.freebsd.org "USA #11 - IPv6"\ - ftp://ftp14.us.freebsd.org "USA #14"\ 2>&1 1>&5` MIRROR_BUTTON=$? exec 5>&- From nobody Thu Feb 15 13:59: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 4TbGrP2Dxfz53xmv; Thu, 15 Feb 2024 13:59: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbGrP1QmKz46QH; Thu, 15 Feb 2024 13:59:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708005541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=r7Nlp3u6Vjxg7nFFKBKuHRvr3exB1YQ9WhFEbGsp1Vw=; b=EWQUuZM6Kkqw4HhGxRshr2/l7hFdhlgYJAIi2iOk/iu7Fc0HBP946GelPpKrg719p72nAe /zYLNuHl5NKH/gBNER1enHwvrz1wo3A27YtZP+cmx73km1F6NGAyK1zFWOar5EgYO7ZH5u oCObwBoFUpeSyt7WF+kYmnkBQHpKkecSjTXjJ3cOyBaF6dyU5P+jkARPadjalFiWYTywQG b7UbBva9qB5pFwfef6SXBjl+dK4okqMxuYeEPakYnJcZpaZ+tRc5SOMxddZ6n6efI6VdB6 nn7oNWLdI5qOnhBOgpOkOuyg2+wB3Bp9abGVdrI6yLUqhKlL38TkZhYDCOoCnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708005541; a=rsa-sha256; cv=none; b=JTaDjIFQDRQKkePIpdzScsLDpgjdQAq8wVhg0oHreXoHqkLmpSOKhgcZnSCSUagyAxnem3 1svoTB2pAAVmvI65jhcyi/e7unX5MH/GSXKPtnUuc9XxtD/KUgMkfc1lvj/auXhmAQ6yZG utmqMEjcfQ4HmcdKJaKN8sYlnAa+rX/HfbXexihWT2L0LkeSQkUiLobGKoMbHS3/o+z41H VxwV3dt8nVxMiLbuwRdC7uDeDpVMbVDm+l2jcx9cfXB5JASG4wyoZJ9kIEe8hg6jECRULh yjVqT1YrLPttMpMPBc+KQXdAFB4sZvscci/BcTH/DdbiFwxFDYA+bIkbsWqgew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708005541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=r7Nlp3u6Vjxg7nFFKBKuHRvr3exB1YQ9WhFEbGsp1Vw=; b=iqybFvlM63UOooNDx2dzpJ3LMmBl4QasDSrchaPhk3u6BadzvQhVXDBRHBPc1Sz2Wk+int i0wBKnPtJlsv34jcrAh1Vq7tFNmm/WjXM1V7ixswj59+6wjLHSu/2hs/pK0fL5RGIztgB2 Y+GMEIlE9t+iGcaUj5HueRfhOTlSiPAFp5OsD6LbCKQ/YDmIl221VA6CDbP80YCi/Y8V/H 9FtJbDCguWSaTcpGb1zLaQFVFI5PaSLwm529sracOuFNfxFHXqwnyww/19wSXEsoL4BdDD SHv45nXjmtfnTaRyCIs13CcW3WE0GTcJ+DcXy1ruCXmL5M3lB05EqNJMkNE6Xw== 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 4TbGrP0PjTzkwH; Thu, 15 Feb 2024 13:59:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FDx0Dk097150; Thu, 15 Feb 2024 13:59:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FDx0uN097147; Thu, 15 Feb 2024 13:59:00 GMT (envelope-from git) Date: Thu, 15 Feb 2024 13:59:00 GMT Message-Id: <202402151359.41FDx0uN097147@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: 8d1348f55aed - main - path_test: fix cap_rights_init usage 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 8d1348f55aed6873f34f54bc3b275b73ef0ff66d Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=8d1348f55aed6873f34f54bc3b275b73ef0ff66d commit 8d1348f55aed6873f34f54bc3b275b73ef0ff66d Author: Ed Maste AuthorDate: 2024-02-15 00:45:42 +0000 Commit: Ed Maste CommitDate: 2024-02-15 13:58:39 +0000 path_test: fix cap_rights_init usage Capability rights passed to cap_rights_* are not simple bitmaks and cannot be ORed together in general (although it will work for certain subsets of rights). PR: 277057 Fixes: e5e1d9c7b781 ("path_test: Add a test case for...") Sponsored by: The FreeBSD Foundation --- tests/sys/file/path_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/sys/file/path_test.c b/tests/sys/file/path_test.c index bd98d7a6955a..911c7c7075f0 100644 --- a/tests/sys/file/path_test.c +++ b/tests/sys/file/path_test.c @@ -235,7 +235,7 @@ ATF_TC_BODY(path_capsicum_empty, tc) /* * CAP_READ and CAP_LOOKUP should be sufficient to open a directory. */ - cap_rights_init(&rights, CAP_READ | CAP_LOOKUP); + cap_rights_init(&rights, CAP_READ, CAP_LOOKUP); ATF_REQUIRE(cap_rights_limit(pathdfd, &rights) == 0); dfd = openat(pathdfd, "", O_DIRECTORY | O_EMPTY_PATH); ATF_REQUIRE(dfd >= 0); @@ -256,7 +256,7 @@ ATF_TC_BODY(path_capsicum_empty, tc) ATF_REQUIRE(fd >= 0); CHECKED_CLOSE(fd); - cap_rights_init(&rights, CAP_READ | CAP_LOOKUP | CAP_WRITE); + cap_rights_init(&rights, CAP_READ, CAP_LOOKUP, CAP_WRITE); ATF_REQUIRE(cap_rights_limit(pathfd, &rights) == 0); fd = openat(pathfd, "", O_RDWR | O_EMPTY_PATH | O_APPEND); ATF_REQUIRE(fd >= 0); @@ -265,7 +265,7 @@ ATF_TC_BODY(path_capsicum_empty, tc) /* * CAP_SEEK is needed to open a file for writing without O_APPEND. */ - cap_rights_init(&rights, CAP_READ | CAP_LOOKUP | CAP_WRITE); + cap_rights_init(&rights, CAP_READ, CAP_LOOKUP, CAP_WRITE); ATF_REQUIRE(cap_rights_limit(pathfd, &rights) == 0); fd = openat(pathfd, "", O_RDWR | O_EMPTY_PATH); ATF_REQUIRE_ERRNO(ENOTCAPABLE, fd == -1); From nobody Thu Feb 15 14:06: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 4TbH0n2b9lz53yYy; Thu, 15 Feb 2024 14:06:17 +0000 (UTC) (envelope-from SRS0=/NNK=JY=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.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 mx1.freebsd.org (Postfix) with ESMTPS id 4TbH0m5fcfz47VX; Thu, 15 Feb 2024 14:06:16 +0000 (UTC) (envelope-from SRS0=/NNK=JY=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Thu, 15 Feb 2024 15:06:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1708005969; 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; bh=O6Kx0bbHXYHYAgue7JRnGa/LxEBGQqCiY9SElJt/gjo=; b=RYlET1mbigG/aCIgF0TRUpiZ5xVSBPNFShO8hNFkXaM8LIXNvhU7yuYePrLFFzgT7ylQyD 3fVhdbQWGAca32RLIkU5x2HPs2htvqzdZDferpZyaymNMMDubCMLvAPyGCyVzE3rGozAYB SWbS6GQjIpPYRFs+K0izuhn3gDPj5fFWtOKawsl12nUyXOGiHyWuBaWYRgCcCyn+oltgPG tnueW7K2wW7IJrXSjKddMN4Cx3C+5Mgq4doVXvH7IYETUpSWzxdf/Xr+WZqZV6JPh7OkVZ 99QiNdIz23Dqhzf6v6HhcrTtwieVXGKhaI8vHJXc1Y6THyQzdGyo922qN5J6RQ== From: Ronald Klop To: Philip Paeps Cc: dev-commits-src-main@FreeBSD.org, src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org Message-ID: <901819076.6938.1708005969197@localhost> In-Reply-To: <202402151350.41FDo2t7083094@gitrepo.freebsd.org> Subject: Re: git: 9c59988175ff - main - bsdinstall: prefer HTTP 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6937_739935540.1708005969142" X-Mailer: Realworks (690.27) Importance: Normal X-Priority: 3 (Normal) X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4TbH0m5fcfz47VX X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated ------=_Part_6937_739935540.1708005969142 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Shouldn=E2=80=99t this be https://download.freebsd.org/ ? Regards, Ronald ------=_Part_6937_739935540.1708005969142 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Shouldn=E2=80=99t this be

https://download.freebsd.org/
<= /div>

?

Regards,
Rona= ld

------=_Part_6937_739935540.1708005969142-- From nobody Thu Feb 15 14:23: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 4TbHNt05Ntz541Z8; Thu, 15 Feb 2024 14:23: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbHNs67S5z4DH5; Thu, 15 Feb 2024 14:23:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708007021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DKE40jHPk4lyUIv05Mi9XyczVp31GYRlul11r3+WMuM=; b=PWxIdkdW9gfP7fqcdEyC8gQxItdep8R+VUJKsMW+girCp8tofYu4ebwVPDjV5mIitUA1cZ RHOyDm+JSs+8heoqxNyv7+dQft6811n4ssRCo9P3C+esgCNZ+jwMGxANs0VPwWahLFRzB8 NkF5qAMBh58xRo0M9FJsYlA5pdQDFk/02gxCCy12yZiu8yum2YTqovT/gTf+rSxFzStIX+ a2Tv4Q6yh5yQWvORqBvgowDyBARYQ5nIoUGek57ZLdzdHfPXE/cjnCI5yz497RBFlG3Pw+ Xnk5tW5uWOO/yKhKmiH6gMZaGsNjwxs+TgGYpXQ3u5po+JXD+CBzDWw7OXVj0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708007021; a=rsa-sha256; cv=none; b=XN2+yJAB2mU7mLJ/b+CQcGk3vpWthoa+F3KTYw5M46Rr1pVpOwCLMj63WwQUXHlM48Zlzy To+7mdf2O2Ya7ssnzUvJI/wliNaAd5xzN2/7NUjiwOBigRA49xNldb1pQB53zoL9UzaD9P ZWG/R7cr5CbvouchtHQOiRksQ0Nqp/v7EiLPVLyN1NlWgOSAarWteXoHeTnCplXVd1d42G o+ypBdQ1siT+VuiLZC4D6b6r2fofmj4R/4+Ga7XS0AwuUJgMKEx0X3sx+RHQ1Cn5XMCjWA ROftld1dcER1ARQjRXmeeoT8MEbyVk08UFOmCkLge8hqOa2BsOCSMg6ApBVFrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708007021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DKE40jHPk4lyUIv05Mi9XyczVp31GYRlul11r3+WMuM=; b=nvEcnt+xWUFCTKPjjjTk5JKwYEoJ8HP4X6ZgOG82jlp7hiWcQjau1WqC2fF5GXMtX6yCaK qCXvLUMVZE2gKxOnbRsZBsVmk3i5MCUF9QWJEAOU0y/74DfVC7IhIDE0zxeKKk2xMYdPHW KExycDtCWSCj06aBqovcPAxXTbAEMlUnq4TJe/AiHSLaUSeA88zDv/yEw2VC8Be+NbDjZF tb7/hgSyya/cZsMx4GUASyXXQ1SkCIWy7HFXAqcytopuyneCBqO0R+om8OwW0HGwx6eZOy aZGB3fuUO0vSQYtKF6cBuU6u2QDbpLooWu0Ig5OGhWISJG+yprY39IfQLQDPLg== 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 4TbHNs5CldzlVk; Thu, 15 Feb 2024 14:23:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FENfCY047583; Thu, 15 Feb 2024 14:23:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FENfH2047580; Thu, 15 Feb 2024 14:23:41 GMT (envelope-from git) Date: Thu, 15 Feb 2024 14:23:41 GMT Message-Id: <202402151423.41FENfH2047580@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: efec2f0d4e17 - stable/14 - md5: Enter capability mode earlier 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: efec2f0d4e1739c94cb2581e6ff25a41fc9e38c2 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=efec2f0d4e1739c94cb2581e6ff25a41fc9e38c2 commit efec2f0d4e1739c94cb2581e6ff25a41fc9e38c2 Author: Ricardo Branco AuthorDate: 2024-01-03 18:00:47 +0000 Commit: Mark Johnston CommitDate: 2024-02-15 14:16:07 +0000 md5: Enter capability mode earlier Reviewed by: markj MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/988 (cherry picked from commit 9b20849bc5f1b500f2de7aeca77f0e6556069bbb) --- sbin/md5/Makefile | 9 ++++++--- sbin/md5/md5.c | 57 +++++++++++++++++++++++++++++++------------------------ 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/sbin/md5/Makefile b/sbin/md5/Makefile index 359c4b96f9fd..e4e6335ae875 100644 --- a/sbin/md5/Makefile +++ b/sbin/md5/Makefile @@ -59,16 +59,19 @@ MLINKS= md5.1 md5sum.1 \ LIBADD= md -.ifndef(BOOTSTRAPPING) +.include + +.if ${MK_CASPER} != "no" && !defined(RESCUE) && !defined(BOOTSTRAPPING) # Avoid depending on capsicum during bootstrap. caph_limit_stdout() is not # available when building for Linux/MacOS or older FreeBSD hosts. # We need to bootstrap md5 when building on Linux since the md5sum command there # produces different output. CFLAGS+=-DHAVE_CAPSICUM +CFLAGS+=-DWITH_CASPER +LIBADD+= casper +LIBADD+= cap_fileargs .endif -.include - HAS_TESTS= SUBDIR.${MK_TESTS}+= tests diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c index 15fd7ebec5d4..eb9a2ffae1cc 100644 --- a/sbin/md5/md5.c +++ b/sbin/md5/md5.c @@ -47,6 +47,8 @@ #ifdef HAVE_CAPSICUM #include #include +#include +#include #endif /* @@ -311,6 +313,7 @@ gnu_check(const char *checksumsfile) const char *digestname; size_t digestnamelen; size_t hashstrlen; + struct stat st; if (strcmp(checksumsfile, "-") == 0) inp = stdin; @@ -358,6 +361,15 @@ gnu_check(const char *checksumsfile) rec = malloc(sizeof(*rec)); if (rec == NULL) errx(1, "malloc failed"); + + if (*filename == '*' || + *filename == ' ' || + *filename == 'U' || + *filename == '^') { + if (lstat(filename, &st) != 0) + filename++; + } + rec->chksum = strdup(hashstr); rec->filename = strdup(filename); if (rec->chksum == NULL || rec->filename == NULL) @@ -385,6 +397,7 @@ main(int argc, char *argv[]) { #ifdef HAVE_CAPSICUM cap_rights_t rights; + fileargs_t *fa = NULL; #endif const struct option *longopts; const char *shortopts; @@ -585,24 +598,25 @@ main(int argc, char *argv[]) rec = head; } +#ifdef HAVE_CAPSICUM + fa = fileargs_init(argc, argv, O_RDONLY, 0, + cap_rights_init(&rights, CAP_READ, CAP_FSTAT, CAP_FCNTL), FA_OPEN | FA_LSTAT); + if (fa == NULL) + err(1, "Unable to initialize casper"); + if (caph_enter_casper() < 0) + err(1, "Unable to enter capability mode"); +#endif + if (*argv) { do { - struct stat st; const char *filename = *argv; const char *filemode = "rb"; - if (*filename == '*' || - *filename == ' ' || - *filename == 'U' || - *filename == '^') { - if (lstat(filename, &st) != 0) { - input_mode = (int)*filename; - filename++; - } - } - if (input_mode == input_text) - filemode = "r"; +#ifdef HAVE_CAPSICUM + if ((f = fileargs_fopen(fa, filename, filemode)) == NULL) { +#else if ((f = fopen(filename, filemode)) == NULL) { +#endif if (errno != ENOENT || !(cflag && ignoreMissing)) { warn("%s", filename); failed = true; @@ -611,20 +625,10 @@ main(int argc, char *argv[]) rec = rec->next; continue; } - /* - * XXX Enter capability mode on the last argv file. - * When a casper file service or other approach is - * available, switch to that and enter capability mode - * earlier. - */ - if (*(argv + 1) == NULL) { #ifdef HAVE_CAPSICUM - cap_rights_init(&rights, CAP_READ, CAP_FSTAT); - if (caph_rights_limit(fileno(f), &rights) < 0 || - caph_enter() < 0) - err(1, "capsicum"); + if (caph_rights_limit(fileno(f), &rights) < 0) + err(1, "capsicum"); #endif - } if (cflag && mode != mode_bsd) { checkAgainst = rec->chksum; rec = rec->next; @@ -635,7 +639,7 @@ main(int argc, char *argv[]) } while (*++argv); } else if (!cflag && string == NULL && !skip) { #ifdef HAVE_CAPSICUM - if (caph_limit_stdin() < 0 || caph_enter() < 0) + if (caph_limit_stdin() < 0) err(1, "capsicum"); #endif if (mode == mode_bsd) @@ -659,6 +663,9 @@ main(int argc, char *argv[]) if (checksFailed != 0 || (strict && malformed > 0)) return (1); } +#ifdef HAVE_CAPSICUM + fileargs_free(fa); +#endif if (failed) return (1); if (checksFailed > 0) From nobody Thu Feb 15 14:28: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 4TbHVx4sD1z542DX; Thu, 15 Feb 2024 14:28:57 +0000 (UTC) (envelope-from philip@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbHVx4JKrz4F2k; Thu, 15 Feb 2024 14:28:57 +0000 (UTC) (envelope-from philip@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708007337; 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=zMwFmkykTyf/9QwhMnZLwQugLB1jVVpM/S9JC2nwKFE=; b=y4pMvRmF0sHJHy0fwgqEy5CkjbL3G6x6uBo3zGRJbmc7rEigLQRsdyWeIvjTYy9LkuWjHV x8qOtN8reZnjFX7rTbgRTepAS+ZP26q4W4mSob4ZZ8oDvBO87ZQklO7IYu/J8J7wAsS0VN 2RFES/T/R9+9vesxFDGd6gPmjgFhQAiPLHOl4BT0aJOw3sIutNLsYH5HafkLN7jOc6EG3H 0Y4XaeLUtCQjtkCYm9ILoDJH0Ecr9s6aiRCi/7fsRqGEms1cLzqPphiGgubMyleOGKidYY oLSebkXRSoLR6vf08MgbJMseA0RDlTgrhfPZ6bR+GAzHZa6pa8NVZxKEfwCnqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708007337; a=rsa-sha256; cv=none; b=fWvY7kgeahbIjEAI5mG/0jQZ4SPolPwpieSXS+xtpiuajJ3QMM9iwFbUoNs3NkGcphXPMw HsVNX8WW2SvcmNylJ0r/g/eSzgk47kHVd7017gtn2h7/rf6AxpVFUOW1aUfQXb/PHG9VgW zjGaXvBt7ggYgb0xqrs/GE43x2G8eLoAVrSHtrBLqqC+ENb4RlVUbbIVfkNjc+VH+iapIj GNxhHQo8BtpDKvGpwHHQUEQvaTPG5Xwu71LtuCyaK2BqRdC6GI98HZJn5h3RZkmf6gN4L8 au5nrBwJj4Un/ZeYIoh7KQoON6b0HVV7iS0VDy2kR9frSoXKJFwM3aY+b1ou2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708007337; 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=zMwFmkykTyf/9QwhMnZLwQugLB1jVVpM/S9JC2nwKFE=; b=MPXxWGAkzfXH/aLUwjFeLM4e3J2fMUjSHYa0mkIZc21kVcuJuauyTKBc6hvUezj/T2z0pG Xg5KMgJodWLAaM2k4DdbedIyHq+07S/TjqZhS64r6BM+//5dZE4R32ObLIkxfBboi8859q +U/xG+FXb1m/Dql/EVFwso8NKFZBVrYjYiqLwvZC+xpEpGuAMSlamS9UVWqPvn9NuGJnsM /vN0LjNnXUXpdXZ9iB+RSgngXIo+6rn53WxkBvuxG0d9NAGm3Dh4WF0vrpG+gPRe7xdRTO k+SF+oKBB9tWSKH/bbiMqwBIN2nwMoQPTE/Sw0kHIPmoZQG7X/XX/aqWBsoprQ== Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com [66.111.4.227]) (using TLSv1.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: philip/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TbHVx30XGz163Q; Thu, 15 Feb 2024 14:28:57 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 2107D27C005B; Thu, 15 Feb 2024 09:28:57 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 15 Feb 2024 09:28:57 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddtgdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffokfgjfhggtgfgsehtke hmtdertdejnecuhfhrohhmpefrhhhilhhiphcurfgrvghpshcuoehphhhilhhiphesfhhr vggvsghsugdrohhrgheqnecuggftrfgrthhtvghrnhepfeeukeekieduieeludethedtie evueefleehtefgkeeigfelfeeigeefkeefgfeunecuffhomhgrihhnpehfrhgvvggsshgu rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epphhhihhlihhpodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduudeiiedv iedvgeekqddvfeehudektddtkedqphhhihhlihhppeepfhhrvggvsghsugdrohhrghesth hrohhusghlvgdrihhs X-ME-Proxy: Feedback-ID: ia691475d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Feb 2024 09:28:55 -0500 (EST) From: Philip Paeps To: Ronald Klop Cc: dev-commits-src-main@FreeBSD.org, src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org Subject: Re: git: 9c59988175ff - main - bsdinstall: prefer HTTP Date: Thu, 15 Feb 2024 22:28:53 +0800 X-Mailer: MailMate (1.14r6016) Message-ID: <7B54789B-90DD-4A85-8E2B-84E13DAE54B5@freebsd.org> In-Reply-To: <901819076.6938.1708005969197@localhost> References: <901819076.6938.1708005969197@localhost> 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-02-15 22:06:09 (+0800), Ronald Klop wrote: > Shouldn’t this be > > https://download.freebsd.org/ No. For hysterical raisins, FTP sites conventionally put FreeBSD under /pub/FreeBSD. HTTP mirrors (including http://ftp.FreeBSD.org) have followed that convention. http://download.FreeBSD.org is a more recent addition, and it has FreeBSD under /, not under /pub/FreeBSD. We could teach nginx to put it under /pub/FreeBSD too, but spelling it ftp.FreeBSD.org was less work. Philip From nobody Thu Feb 15 14:40: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 4TbHm9378Bz54438 for ; Thu, 15 Feb 2024 14:40:25 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbHm82Mjbz4GRt for ; Thu, 15 Feb 2024 14:40:24 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-363b24ecdafso2867155ab.2 for ; Thu, 15 Feb 2024 06:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1708008022; x=1708612822; 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=Ozu1MeC0biMw6Qct8ch8dRRZdN621QyCkDhzdFXaBMU=; b=Rz/nJsPJntt/F07Lj0HSapxLhl83wBjyEig/PtIIwlE2d/6QlSsZALoy31JW8qFriz 9NpXfWHWKE1PjdIXaB5GZ8FvGsPFIOOUx6XOD9iFueG0N3ZgiLXWzwKETByam8ePTolm hZg+ZxGIUhMUL0xdGc2QpXK4SaNsfsrrls90/QZinvUG2rVVfJBxsSh1LemW8OYk5TFF 0DAEkHciPJ4hlsWGCPLNho/yvcRhO6y6mEUPp1Dj7WA7QAsQLApVlZYU4EaA/3e0aWym JYwYd6RtGIHEv0qV44eFi/HoI2fq0r2qUdh7dabjpsCCcmFNOnnPvBlY8JXC8C2wEyK/ QP7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708008022; x=1708612822; 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=Ozu1MeC0biMw6Qct8ch8dRRZdN621QyCkDhzdFXaBMU=; b=mXuEymvXd7Yt6BoOCoaXma37mmqQMWYmKsXKx39I1heUMFMgoKrk9CfRu5HE9ZJfp4 SjPnx7BiT3XvUC2g8urXRF0HnzO83Z0Gi/H51+pk7Vv40DdAVrV6jT4/lH9+PiykY4Ds 2koIVWqaXxAUhxQZlWAzvw0LuHAOV5u4X9OsXWe0gVtqynEWNve2GWUKkjmjOElBxOQG IDufW+ew7hgv7ZLryBwYx2dNe9zOdnxDtD7Go2x7IwUhko22xgqlBDhwOG+ay7SIOF+t bruwmNAspMU4Hiv/AEaD3RAey+oPX8AI1G6FcyYVWjkWJ/rJsiln1kygwVapTh1t9T1t Od2g== X-Forwarded-Encrypted: i=1; AJvYcCX9tjW40yvssXPIKM5ftw+tsXru2j2XN6CxyYwFjpTO884YVKGCqof4uie01aHoU3rCrNixkRfIxUXBp9eo8ksl79GzQ8MEzb89CPhZtfgZ X-Gm-Message-State: AOJu0YyOwehlUUQOlfdBhT+MeQSa8wCIwIXe6nfyzOd/G6e8v1e+R4jC u8zU1Ft5xAp8RDAXy8oM92qzctWajLRJJC3Nr+6c1ftRaZuYO+fIv37u3OOtS44= X-Google-Smtp-Source: AGHT+IEX/26fc/dQMxwgd4AoNfheqZwzl8LO+v39mc/fFuzbu/viSEES9AFozQugOD79kOIRhwajFg== X-Received: by 2002:a92:c98c:0:b0:364:1af1:a49e with SMTP id y12-20020a92c98c000000b003641af1a49emr1698035iln.27.1708008022237; Thu, 15 Feb 2024 06:40:22 -0800 (PST) Received: from mutt-hbsd (174-24-72-211.clsp.qwest.net. [174.24.72.211]) by smtp.gmail.com with ESMTPSA id bb17-20020a056e02001100b00364f695d3d6sm320853ilb.14.2024.02.15.06.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:40:21 -0800 (PST) Date: Thu, 15 Feb 2024 14:40:19 +0000 From: Shawn Webb To: Philip Paeps Cc: Ronald Klop , dev-commits-src-main@freebsd.org, src-committers@freebsd.org, dev-commits-src-all@freebsd.org Subject: Re: git: 9c59988175ff - main - bsdinstall: prefer HTTP 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: <901819076.6938.1708005969197@localhost> <7B54789B-90DD-4A85-8E2B-84E13DAE54B5@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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yax4k7axvi3c57pq" Content-Disposition: inline In-Reply-To: <7B54789B-90DD-4A85-8E2B-84E13DAE54B5@freebsd.org> 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: 4TbHm82Mjbz4GRt X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --yax4k7axvi3c57pq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 15, 2024 at 10:28:53PM +0800, Philip Paeps wrote: > On 2024-02-15 22:06:09 (+0800), Ronald Klop wrote: > > Shouldn=E2=80=99t this be > >=20 > > https://download.freebsd.org/ >=20 > No. >=20 > For hysterical raisins, FTP sites conventionally put FreeBSD under > /pub/FreeBSD. HTTP mirrors (including http://ftp.FreeBSD.org) have follo= wed > that convention. >=20 > http://download.FreeBSD.org is a more recent addition, and it has FreeBSD > under /, not under /pub/FreeBSD. We could teach nginx to put it under > /pub/FreeBSD too, but spelling it ftp.FreeBSD.org was less work. I'm curious to learn why you chose http:// rather than https://. Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --yax4k7axvi3c57pq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmXOIjwACgkQ/y5nonf4 4fqQVA//c94rRRZi2/01Oqc5mI/gD976cg6opOnsUQMUZb38AoYZNbEA4oV8b2qf uE9ElCOwcGWqRmHzaAMFenYEQK4ki1xmNPys+28moRWICo1s3VMcmSfZm2zyvUzk BZ3pvFx0lBsvL5u3YjzSFmaeKQt6TiCyMF/1SYV0hwbXT39PRh3yOyV/SKtExXpo I9l+1zceE8fHtPpTGveH/hy8O6UbzrneGLgA6GJFl5puUE8qHuqU/J5qdGjkdgGJ PJkKF66IbIGA9s7t8a5sHqhplntkBokglnzTO6YJfMt818Sb9l2++nfEOAadmtrF qQEWd5+j0aK0WR++tCSTh2N/J0QWNWyp99xSktKSB5LTNpIob/nu3l6nvHSEwnaa n/OCeINax/r8zJ1G37d2yw7mgRVoSIIgUG+bU0djHRVYPAthQaTtx+gcBleKEs3t WLDccf2Lpqo8ugP/lVbcYhVltrHltH2/58PBOG6cpBvmgTY5o1n7vEi3E1VlCTsB aVA+YBIPwYDUQwlR3iqxCCKfT0+41YRvG+NrrGsLx8qy9Fp6K4L1E0/Ff+wPk8KI 34stY5bqz/mbiwCHZvYPlkpmrjhEvBEjmtm0MO77/XU6UuEMprokhma2P6fTvfTX 6WvQiIiZLdLPNAHhn5nLp9lh+vk20vF+aGxDhcx9D/hTmZ1zQ1E= =1to2 -----END PGP SIGNATURE----- --yax4k7axvi3c57pq-- From nobody Thu Feb 15 14:50: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 4TbHzg6gb9z545FL; Thu, 15 Feb 2024 14:50:23 +0000 (UTC) (envelope-from philip@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbHzg68S2z4Hdh; Thu, 15 Feb 2024 14:50:23 +0000 (UTC) (envelope-from philip@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708008623; 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=J8AHubML11UQLMzCvkuKeAzbIPp5vZMAkgu7lFP42vI=; b=vTz8TJHOhloQZ+QO29hv7P25wzf+VTzkZMI9qHkU/6nPGUukKK9FVRslmCx6Tn0axkNNPU WXIxZY0j5DtuWWdH6S0axAMy5vfDIvQG8U3+WoQm776xhwfcSkEG1mCjphpsiqTc7WLxjf +JZtl5Ok8/bZQ5/AWu9WsGmzKwpFTEoch07QLoQ0mhoNAJjaHjU/DS+T+v6Bp2QYdTbXPL zFG4RT0Uy7WxJQzxQpT4T43R45l65WN1Y2u6kPB1G7SfzH9qPq2M29ywOth1dpcCGuxcZL nLhUS+MljAKlPkt2E2iC1xBV8Ra1PS4lNmFfD9vkpfE3vQq7ZA2cqsc2PKrFUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708008623; a=rsa-sha256; cv=none; b=rVZiw3mqkCNF/OtF7PYnYUc4I0Q2GaYcCBGUkM294k2piz+usf3vY5Q4XUz0kKEk9DQ+oY ZfFFpz2ECxjErYfimK8huvSVUQmiouDXaesOtZj8oHyVezEGiHHnVnPkmXTSrzvHO8zS1X h+4cYRNeELkXhtd5VAdTYV9hKvBzct2mPmXssE0/3y88oGUqUuIByNZnehnXmCecYZqMX6 aKoCQN9PAKI23gCbrseEbjkdQo6dXZdWWM4rF2lc4marHa8v2wJa9QNmpE9AtPTkKWsCzq 7sDO6ROjxS1/tKHoDmtIRWTZiUMGnsOqmGSztfwqFEZCwgqTqbgGneZFf6uwvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708008623; 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=J8AHubML11UQLMzCvkuKeAzbIPp5vZMAkgu7lFP42vI=; b=PSq0nGiu50gKLaQUWCK71eDaNvOlGONtVWBa8a/F5wSVw+1Z2cJXlIQFrlbcoz/R9cqN6K 9wMZbTbPZ+Lmx2vG/c59RBWYrBFuv4894H95D6fSb+c0MxOVKtefKM/3i3X1FesH8OB0XU bN7e6u1IuexHI3I0ujTSZSgzjLuAmkI97QBWrDXlstvL5T2/FQRr9LSlm3BpwoqO5mdHex Y/0SFIqzRYtpp9xlReJWKJFzvD8DMKjqgV9veQHSK15uomTeGz++Mjx3azEC5ZSl9/sMbD HCeGr38qRT6X+cQaF2GHLXd35F3AOYYsR+6KsAWUTE3L6au7zEfscwZazDFdsQ== Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com [66.111.4.227]) (using TLSv1.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: philip/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TbHzg4wkvz16ND; Thu, 15 Feb 2024 14:50:23 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 88DB527C0064; Thu, 15 Feb 2024 09:50:23 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 15 Feb 2024 09:50:23 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddtgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffoffkjghfgggtgfesthekmhdtredtjeenucfhrhhomheprfhhihhl ihhpucfrrggvphhsuceophhhihhlihhpsehfrhgvvggsshgurdhorhhgqeenucggtffrrg htthgvrhhnpeefueekkeeiudeileduteehtdeiveeufeelheetgfekiefgleefieegfeek fefgueenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphhhilhhiphdomhgvshhmthhprghu thhhphgvrhhsohhnrghlihhthidqudduieeivdeivdegkedqvdefhedukedttdekqdhphh hilhhipheppehfrhgvvggsshgurdhorhhgsehtrhhouhgslhgvrdhish X-ME-Proxy: Feedback-ID: ia691475d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Feb 2024 09:50:21 -0500 (EST) From: Philip Paeps To: Shawn Webb Cc: Ronald Klop , dev-commits-src-main@freebsd.org, src-committers@freebsd.org, dev-commits-src-all@freebsd.org Subject: Re: git: 9c59988175ff - main - bsdinstall: prefer HTTP Date: Thu, 15 Feb 2024 22:50:19 +0800 X-Mailer: MailMate (1.14r6016) Message-ID: <4A6EC239-4B9B-442C-ACFB-8F99A951630A@freebsd.org> In-Reply-To: References: <901819076.6938.1708005969197@localhost> <7B54789B-90DD-4A85-8E2B-84E13DAE54B5@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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-02-15 22:40:19 (+0800), Shawn Webb wrote: > On Thu, Feb 15, 2024 at 10:28:53PM +0800, Philip Paeps wrote: >> On 2024-02-15 22:06:09 (+0800), Ronald Klop wrote: >>> Shouldn’t this be >>> >>> https://download.freebsd.org/ >> >> No. >> >> For hysterical raisins, FTP sites conventionally put FreeBSD under >> /pub/FreeBSD. HTTP mirrors (including http://ftp.FreeBSD.org) have >> followed >> that convention. >> >> http://download.FreeBSD.org is a more recent addition, and it has >> FreeBSD >> under /, not under /pub/FreeBSD. We could teach nginx to put it >> under >> /pub/FreeBSD too, but spelling it ftp.FreeBSD.org was less work. > > I'm curious to learn why you chose http:// rather than https://. Because https:// only adds work. And work is heat. bsdinstall uses the MANIFEST to confirm integrity. If your bsdinstall and MANIFEST are from a trustworthy source, anything downloaded over http:// will be trustworthy. Just as trustworthy, in fact, as anything downloaded over ftp://. Philip From nobody Thu Feb 15 14:55: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 4TbJ574WH0z545wb for ; Thu, 15 Feb 2024 14:55:07 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbJ571XMjz4J8b for ; Thu, 15 Feb 2024 14:55:07 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-7bee8858a8aso33569139f.0 for ; Thu, 15 Feb 2024 06:55:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1708008905; x=1708613705; 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=byQ9YHgVa5zpxNbKPTZU0lbyEdYDsjV1usNQccpTCAg=; b=EtKNAVaVDJ9hFdKWRTqEcacB4VsH1AlRn3wok2rwC7UONaevFJO4TJPskqm6SeUG5W ySTy0o0zuypPnMgsBvpHo9cgSSGqxseKVmtMbzNohpYGKdngKa+UckNnwTjMR7uMmVoe 7ouhvWbZwOtzy/9AFNheNf298N2vLUhxX5/toRWyDErzLTdU90g3pqfhSrYEcQFABRnH PbtS8gPBOoQtGLbFAOikZhoZA603CDDt1iTu+ahhk1l+rGnyK3UuxZ9m3WOA3qcP6mVA ekXhwFyd6d5N98RGZm3p1sqZ0L8OyGu0hYGJhik/nQ2wrIGCua03Jq6OR6dfYbNOyAGX 02UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708008905; x=1708613705; 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=byQ9YHgVa5zpxNbKPTZU0lbyEdYDsjV1usNQccpTCAg=; b=Lutbyg7nsJ2rlpKeznC/4jqOm/p4R98Xb4bNImPkc5/peiHTY2v9Oz5TLil64E4mg0 Gev/HZ10qgWV1bq5/oDR3Tj1XsoN8pGqAfQo0GNtod3OfPO2YkmftPtMnwz+fQCo0Uby CSEwbmdGYlJWBi7M3rKDDxANTpCDBsIyWpcNJfECC9ddLlu3TjsgPS3vDobVZkUYzzYT 3zIAa7TlcGcuMDK6ak44MTGfHXbPChL+OCCUTPvZG5CMq9UPkdtPBXd/uCHq9xeAp6eb jhEzw3l0Nwt5NHCWnMWz5Sweu0+VDpCBpIziOgEUPi56EptBuZ1GxF8HObAXf69M4B47 fPVg== X-Forwarded-Encrypted: i=1; AJvYcCXDG2SyZMhgy8cirQzuZpVS1QiiQ15EF6yxA/808UWpfG1kIYK0ruC8vUE3tLlO2mYmZADG7lB3uCc3On0PfNOgRHOCn5UR5ZskjetX4LtN X-Gm-Message-State: AOJu0YzZPGapEguivuzvYKVZv9AP5uG8MbTCDhLupzGUVyDV2J61mtyi 1s7caeHHiv1/6ILsvuv8L3Zh+C6bokz4H4Ez6JdOkz2mZSdhygiCvfxe0Qppp7fy3rpU6cFhSqM o X-Google-Smtp-Source: AGHT+IGR8jLttfRyLWQyfr4g4mUV+A14esEibBdABglU7Zw9r90WdvxJ3z7+h0DWhopf6ghMwxmGcA== X-Received: by 2002:a5e:9901:0:b0:7c4:7a26:60fd with SMTP id t1-20020a5e9901000000b007c47a2660fdmr2148715ioj.16.1708008905505; Thu, 15 Feb 2024 06:55:05 -0800 (PST) Received: from mutt-hbsd (174-24-72-211.clsp.qwest.net. [174.24.72.211]) by smtp.gmail.com with ESMTPSA id v27-20020a056602059b00b007c407999103sm350057iox.53.2024.02.15.06.55.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:55:04 -0800 (PST) Date: Thu, 15 Feb 2024 14:55:03 +0000 From: Shawn Webb To: Philip Paeps Cc: Ronald Klop , dev-commits-src-main@freebsd.org, src-committers@freebsd.org, dev-commits-src-all@freebsd.org Subject: Re: git: 9c59988175ff - main - bsdinstall: prefer HTTP 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: <901819076.6938.1708005969197@localhost> <7B54789B-90DD-4A85-8E2B-84E13DAE54B5@freebsd.org> <4A6EC239-4B9B-442C-ACFB-8F99A951630A@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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="evakntyqaitg5ijt" Content-Disposition: inline In-Reply-To: <4A6EC239-4B9B-442C-ACFB-8F99A951630A@freebsd.org> 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: 4TbJ571XMjz4J8b X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --evakntyqaitg5ijt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 15, 2024 at 10:50:19PM +0800, Philip Paeps wrote: > On 2024-02-15 22:40:19 (+0800), Shawn Webb wrote: > > On Thu, Feb 15, 2024 at 10:28:53PM +0800, Philip Paeps wrote: > > > On 2024-02-15 22:06:09 (+0800), Ronald Klop wrote: > > > > Shouldn=E2=80=99t this be > > > >=20 > > > > https://download.freebsd.org/ > > >=20 > > > No. > > >=20 > > > For hysterical raisins, FTP sites conventionally put FreeBSD under > > > /pub/FreeBSD. HTTP mirrors (including http://ftp.FreeBSD.org) have > > > followed > > > that convention. > > >=20 > > > http://download.FreeBSD.org is a more recent addition, and it has > > > FreeBSD > > > under /, not under /pub/FreeBSD. We could teach nginx to put it > > > under > > > /pub/FreeBSD too, but spelling it ftp.FreeBSD.org was less work. > >=20 > > I'm curious to learn why you chose http:// rather than https://. >=20 > Because https:// only adds work. And work is heat. >=20 > bsdinstall uses the MANIFEST to confirm integrity. >=20 > If your bsdinstall and MANIFEST are from a trustworthy source, anything > downloaded over http:// will be trustworthy. Just as trustworthy, in fac= t, > as anything downloaded over ftp://. There is the problem of metadata leakage, which HTTPS helps to address (though not completely.) Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --evakntyqaitg5ijt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmXOJbwACgkQ/y5nonf4 4fok6A//XmTNIc+pYhy2zWAAIHXGrdlqCENi+GI/IBTqXQDF4YtdPLw6TrjOBz15 jzWTt6mdrKpqDSJkFEU7z/ctr3LIOi5dMQ2+netXABjwQgg1we4Aq1M7IHgjEokA ug/0Vv0TuwKgAA956ImDN6ia1go+KNsUBg+DnkHiwgqSOxTHdJKLzdzhHJAJBZcP WI7kC5LTNUUfAqNQsnJt/RPu1beRpvB+SoxMXDsMyY9s6Ei8D119kIaSwWLughbK pqars+YxtAW5SULNpk8JNQzZrkZirlR2Rmvn2VVe4kV53KyIM7wvl1tGsbkfr2w2 x3+EDf2Xl5auFMEVXC2WX7lSL2S1A8wxjWynoP4oeflc+TdY1bUuvMdhvbL/qd6r dZmlBdvaz0POVKPv+w587nvk5eXnKuJj5L4a6t32kzDBsc3t/3vX9SV1W5WO2jxJ J0/YArMxHeZyPMkFRf8Vcpq1MvzZ1EPWR4vWsyvOt1e3J/UcAmxgjTV0dndyR9TJ wXEzqsOilEMMkgAVJdFhWvwIiw0GtkZaaj4wuoeATB6TYgDxPmYExcu0jP7xlVJv AB/rMZXsRqoA4JvrQcKyDLuo0HIuOugogAS3rQR8h220ZmGsYfKi+o4zGTIruUO+ Ux1uywAZpKm3n9cVnGVaySz7LsN0qw6T3KvSMef+5oa9Xp9ktFg= =wD1R -----END PGP SIGNATURE----- --evakntyqaitg5ijt-- From nobody Thu Feb 15 15:01: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 4TbJDV39Bsz54rSg; Thu, 15 Feb 2024 15:01: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbJDV2hlGz4K6l; Thu, 15 Feb 2024 15:01:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708009290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a11FdLyByk8qkORcxpR4D1+4iUyv9nStMAAQQf7waYQ=; b=GNeQIY//NGGWevUFOYyxRoYl1QwJ1zJJy9X8raTwjXRVXWDbOWsJGtMX8b0jZh1/4SjAWJ QN5QN+/L0A8CFQptQ/C1Yje3x9AxgQMw6DLim9ADG8iBStXRGjA28zLwA2aaeRkCUAKKX9 THmKHFeOYYxVpKoFQOxnWUm1Z0WFF07tJXKF2UqyOqiJG33VOvxeKGbpmkVOBs2qhztVpr F5dLthMp5/MBs/SACF7HJ4gkoHvj+7VtMgSGTVIbtB1gaZxCfrYd8hGvcwhkQPu4m9Dn+z NxlY1B15IaH/MqY6kV+zsJvzAvkk+JYBoj8b2IWdZ/43CMZ2JyqwJ/RPXeeo0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708009290; a=rsa-sha256; cv=none; b=b/oaCjM5jWXTGiLLd8uO2BZv9Ir3JGKcY22NtHpJ0ltR0aLi8mVeWJOIXgc1Q8GjCXRjOU O+s/JlbeoRvJXWTHhieIC3oBHDoEecW5YH5Q9N5N/gmd2d+lv9bjGAZnW09q0aBnr+uq+t 90McGLLMUdJKpjSRrWb75m2Xhy8FM1vrNJc18/ZdMWLU5AnLfOag0xWKNFVTixGfKljF8v YDlDvWydouQwdXJ38EUG6fX0RwPYlvAOitzuzQm4MA4fG4J6MmWHs1rsnetRFOp3vwxuDN oyq9kHh5hOpqjJQbq+Bz2XJffdYAenJOZuSgnmirGoNMg32RGG9jtE+/FObUvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708009290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a11FdLyByk8qkORcxpR4D1+4iUyv9nStMAAQQf7waYQ=; b=jfTh7Njdc7iGOZf4kK2PpukWRDMq4pTF2LZxE82NQyPnwra5TgMnnilLVK5o+3lS9ExOrZ LqKquYB4A5rE/qnejr8nsxmxJe+U2fp2iOo3uSkJaAJu0AvZ65Cl+puI3tJVL6xDJcHLnv f0AUZ9HrmX9N5+tmoQ40l55bWhCliaBAzsBjF8pXszYOC5gpuIhGmLca5TMJcEbZ4ft9Am 6xSl41PPXulkABj5K3Wzpt4vBswQ6VFL9c8cvw3sWVhGTKfxDq67G6/jkBW67pdkSEOPFh VIE6BBuKBdfcsyweD61gNGJLJfsKEEIz6t+K0AcTu9BuzNgOfUg/KrDFkfeMJg== 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 4TbJDV1fy2zmS8; Thu, 15 Feb 2024 15:01:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FF1Urf011607; Thu, 15 Feb 2024 15:01:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FF1UPd011604; Thu, 15 Feb 2024 15:01:30 GMT (envelope-from git) Date: Thu, 15 Feb 2024 15:01:30 GMT Message-Id: <202402151501.41FF1UPd011604@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: 2c5ff9118c1e - main - rights.4: Remove sentence implying that rights are a mask 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 2c5ff9118c1ed8483a9477db3595b1d154615e2c Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2c5ff9118c1ed8483a9477db3595b1d154615e2c commit 2c5ff9118c1ed8483a9477db3595b1d154615e2c Author: Ed Maste AuthorDate: 2024-02-15 14:55:39 +0000 Commit: Ed Maste CommitDate: 2024-02-15 15:00:52 +0000 rights.4: Remove sentence implying that rights are a mask Capability rights passed to cap_rights_* are (now) not simple bitmaks and cannot be ORed together in general (although it will work for certain subsets of rights). Remove sentence that implied rights are masks. We already have the sentence "The complete list of capability rights is provided below" so listing the rights without an introductory sentence seems fine. PR: 277057 --- share/man/man4/rights.4 | 1 - 1 file changed, 1 deletion(-) diff --git a/share/man/man4/rights.4 b/share/man/man4/rights.4 index b9fb5e15cf4f..770f9ea5c979 100644 --- a/share/man/man4/rights.4 +++ b/share/man/man4/rights.4 @@ -68,7 +68,6 @@ The .Xr cap_rights_init 3 family of functions should be used to manage the structure. .Sh RIGHTS -The following rights may be specified in a rights mask: .Bl -tag -width CAP_RENAMEAT_SOURCE .It Dv CAP_ACCEPT Permit From nobody Thu Feb 15 18:10: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 4TbNR0243Yz59nYZ; Thu, 15 Feb 2024 18:10: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbNR01cxtz4pCM; Thu, 15 Feb 2024 18:10:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708020652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fz2DURkpuIkOHc7DKp1t1bqIXH0pUkTOOh71gGbjO18=; b=rwG30HSW9Sj2gSi/UjrWys3JslrLQ5sxxsWfdwk9Fkr/xTSPpV/l7K+kQZ7bWOAFfcPuXA LRgJjusfRFhQyVYOr201Gste/LtALtGEj9fxPELjhEYLmheqCQgzz/0YQJ6KbvTb4MRxQE Cho49scjj0b43AVx+DK++7fFpFyYEO826vhb5/n3efhI3/VkYIPE34zszuRYklW5flWhTd cK2PZxLxV8O5/9rj10CIxaHdZwSOwxYLzybcDx6YdnrM2Rw/Z0tyuSwIKy2duNntt0Lvlm lnV8DQiHVrFQ5sjAYBi6epU36tZ/AcL0XYDIBkFH1qp1aZYQhb0PrunRazDYoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708020652; a=rsa-sha256; cv=none; b=xTPqm1NJPYSLif6F8i0ztxa2iiSSXn8l08nfVL6WZz5BGqqimm6fuRPtDBT5rTIMdRsrKS HSAiw7AXvAplV2XbWaZHVKCIs/DXc2zEVNgAfWHvkiatzW5zfUy+xJouwHOBcTli5hNO6L Xl5BfiibKnkDMblE/IhLbiQo3eQ8RiSLMCb673DMuWFG/h0oE57EX37qso7hK0/lKkCnCF rDwwSL9NtKntW+7JOs1bVgzvNv1iRZC937VjieiJSamFdSBBLZeanfsgMgl6fJMNY44HtG PqOU6qmhiIP3K/NjhR52CRb+1F6aHbudJXk+FuKHKL5s1Pjjjg8nbVJUen5zsg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708020652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fz2DURkpuIkOHc7DKp1t1bqIXH0pUkTOOh71gGbjO18=; b=i1ANnmAIxsr40s2OGk9kz/dvuFO/1fJgczN+5Vf1aAGRsxoM3AD90Lfzu5CaVHSpWtHs+s EFNaXsWvPC+KApMWceEhFyWt3MsnF88Wyv1F5kNWOnfWbhocjkOl3/RsSmJdWmHAA22iQq yjZ3Jg/luskEmMp4jmh/lNDXyV3kxIw48rYd/sdmJ0TppZjyaw1SMSS7x5iMfngOMl/faE wLf1zj1zH9LEFbcOutOXfFBZw5gn7hqnD6Sa/5pa2j5goNDo8a1+ByNWVrSeVMIceELsfp oao/e3DS0wOb4AMs75VEPK2n8zG2T9ghrAItBoSMrAdn1ojlKGhXXIcYqK/Lgw== 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 4TbNR00gkCzrYj; Thu, 15 Feb 2024 18:10:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FIApTX029458; Thu, 15 Feb 2024 18:10:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FIApMI029455; Thu, 15 Feb 2024 18:10:51 GMT (envelope-from git) Date: Thu, 15 Feb 2024 18:10:51 GMT Message-Id: <202402151810.41FIApMI029455@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mike Karels Subject: git: 313b30b6ab1f - releng/13.3 - lld: work around elftoolchain bug which causes bloated RISCV binaries 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: karels X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.3 X-Git-Reftype: branch X-Git-Commit: 313b30b6ab1f0c9549d29129f2fb6b1e31ef5f0f Auto-Submitted: auto-generated The branch releng/13.3 has been updated by karels: URL: https://cgit.FreeBSD.org/src/commit/?id=313b30b6ab1f0c9549d29129f2fb6b1e31ef5f0f commit 313b30b6ab1f0c9549d29129f2fb6b1e31ef5f0f Author: Dimitry Andric AuthorDate: 2024-02-14 19:41:09 +0000 Commit: Mike Karels CommitDate: 2024-02-15 18:09:56 +0000 lld: work around elftoolchain bug which causes bloated RISCV binaries The elftoolchain strip(1) command appears to have trouble with the new .riscv.attributes sections being added by lld 17 to RISCV binaries. This causes huge 'holes' in the files, making them larger than necessary. Since nothing in the base system uses the new section yet, patch lld to leave it out for now. Direct commit to stable/13, since this intended to go into the 13.3 release, while the elftoolchain bug is being investigated. Reported by: karels Submitted by: jrtc27 Approved by: re (cperciva) (cherry picked from commit 42ceb92e6a544fa0956eb660b3c16e38189acf20) --- contrib/llvm-project/lld/ELF/Writer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/llvm-project/lld/ELF/Writer.cpp b/contrib/llvm-project/lld/ELF/Writer.cpp index 368c9aabceae..850a6bb49721 100644 --- a/contrib/llvm-project/lld/ELF/Writer.cpp +++ b/contrib/llvm-project/lld/ELF/Writer.cpp @@ -2044,9 +2044,13 @@ template void Writer::finalizeSections() { addPhdrForSection(part, SHT_MIPS_OPTIONS, PT_MIPS_OPTIONS, PF_R); addPhdrForSection(part, SHT_MIPS_ABIFLAGS, PT_MIPS_ABIFLAGS, PF_R); } +#if 0 + // XXX: This stops elftoolchain strip adjusting .riscv.attributes, + // leaving large holes in binaries. if (config->emachine == EM_RISCV) addPhdrForSection(part, SHT_RISCV_ATTRIBUTES, PT_RISCV_ATTRIBUTES, PF_R); +#endif } Out::programHeaders->size = sizeof(Elf_Phdr) * mainPart->phdrs.size(); From nobody Thu Feb 15 18:14: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 4TbNWP5g0xz59nSd for ; Thu, 15 Feb 2024 18:14: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbNWP4c5bz4qHB; Thu, 15 Feb 2024 18:14:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708020881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0/Ks5fTMFPMZVIFctg6pl7d7lFyknQTY0C/1g6qWwF8=; b=kfls9shnGr6RHdmIA/7mqA+CUBFsgY7vl6ezvzIBbmGZOx8gpJE1ULgg8GxT4z94kAGFll qOmcy6EkysPiJn2nbNrf9ay7xfN/0ruqm+ZnyLHV/V2k14ZfWdTF+1Y106IKSJ5lDTFDBS 7l08FbbszIYcSs4BHAJS8YUM5HGCM9xXLN+6tVNLMpLs6U5/15tEtSUI8TliBlDaAbgQcJ OpquOYoJPOaarQYtqhvKLIp8mqfhOK4yQf9y2rX4FhxXtN/izn/sXuehLiPaSVF93EA03S 6eNM5ApRhifyMnNmVxWVq0Rtc6XH7Ieq6UQHMktGFbR66cSdWY4Sr/LfHVDbaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708020881; a=rsa-sha256; cv=none; b=D52OH1EM1tEjjZitNX5ruUXd/L8WWCtiW5BTA6b281wNauc+7dC1shixsb2LKDQM7F0AIW o/0neO8KpgfbBgzGt+wrCQi01i9EbEjfG7vu6jJ7DbzNqtGyVd+CgysF5+0NygTRzPNJAc nrYTL1vLjklSJgZOIOdwZn01AuLD2EPvRCMzA99qxpjF2O5aykgCxVzyM10PCL3fSKSQRe ZQnG9vzNeIjGsBvGFXZNy6szMfFcjUZlHCgfapxpiqf9mRMgBc0qO1O8Gjxma8VoieRQT3 7kc3hh5lwckwozCFkPivmx1Ry8wLoyXw/o4oEN5IwwP7QXCOLriDQFuA9RUQeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708020881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0/Ks5fTMFPMZVIFctg6pl7d7lFyknQTY0C/1g6qWwF8=; b=OuYwfrw2tTJBF6UBFvYVC3+9l2li7oF49U6aq/vJ5CWvVbUYIuBQEUE1ft1pFUqPRhCTQH oP2fm8oP9XG3wJJfVHSFNneKFSoLZ7aWbB7Xaf32ndcbycsQjkt4T2i9Y1WcuoPKwg7yEL pBBJYsQAI7k74D/vqhRkjQy/eF+Wt12Imi+FWt5/tyUF/A03hHWBgv3wcMo94NdlTnsBqo 45EjCnVbDRN87aO//Z9FwT4o3v+mj5ujkDcwCKHKI3bbiyzclmkG++cYvx4tQaXukYeqVc hKTHVPy2WCZcmV2LuH9orwVUvLISeSfLAAXVKu9cyYB24vN2fWAbEgk4jFtkhg== 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 4TbNWP3dVGzsD1; Thu, 15 Feb 2024 18:14:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FIEfZ0034607; Thu, 15 Feb 2024 18:14:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FIEfHj034604; Thu, 15 Feb 2024 18:14:41 GMT (envelope-from git) Date: Thu, 15 Feb 2024 18:14:41 GMT Message-Id: <202402151814.41FIEfHj034604@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org From: Mark Johnston Subject: git: 5812a317b306 - internal/admin - Welcome Bojan =?utf-8?Q?Novkovi=C4=87?= (bnovkov) as a 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/internal/admin X-Git-Reftype: branch X-Git-Commit: 5812a317b306c609a6611f0d5d1a8bb94f67077e Auto-Submitted: auto-generated The branch internal/admin has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=5812a317b306c609a6611f0d5d1a8bb94f67077e commit 5812a317b306c609a6611f0d5d1a8bb94f67077e Author: Mark Johnston AuthorDate: 2024-02-15 18:09:21 +0000 Commit: Mark Johnston CommitDate: 2024-02-15 18:09:21 +0000 Welcome Bojan Novković (bnovkov) as a src committer markj and jhb will co-mentor. Approved by: core --- access | 1 + mentors | 1 + 2 files changed, 2 insertions(+) diff --git a/access b/access index 746e73ceff74..8f8c658e88aa 100644 --- a/access +++ b/access @@ -32,6 +32,7 @@ avatar avg bapt bdrewery +bnovkov br brd brooks diff --git a/mentors b/mentors index c75bc0bbc18f..cb1c4e7455e2 100644 --- a/mentors +++ b/mentors @@ -10,6 +10,7 @@ # Mentee Mentor Optional comment afedorov vmaffione Co-mentor: jhb akiyano cperciva +bnovkov markj Co-mentor: jhb brd allanjude Co-mentor: bapt bryanv grehan def oshogbo From nobody Thu Feb 15 18:49: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 4TbPH41GKxz59t9V; Thu, 15 Feb 2024 18:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbPH40h5Kz4tQk; Thu, 15 Feb 2024 18:49:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708022944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j6BLEUVc3EBLL4eAqJoaB6g8EaY2MJbtWsvTHRGCHAM=; b=QfsprVFKmfwX1EsGafrJI1ah4rLOgDX5wkDhcr//Us1aDCNuJBsyZzNUnhNphJZqGDe4Fk ZxE6pnOZVTjmVozlRo6N8TIpy3IUiNngoRBQYREYrN8XcvLk2+j8VbTCvb+YcW4O4MlRnk yVW4ORUsJKuLjkjJCfb5J4tIq9WG5MurQJ36udsoq8wCHXSM+RxeNDREc2CquCxy/VD+pi az7khYgI7ggCbEikDjvZ8+6O+hWBmrDLmNZGQPfu0jSv3QYjMcg7nqIPu3ZsuXyxK64+BJ w2uqkAk3MhJgkI0OALmzggme4JFl2cD1GLzY5hrUIwaIIhvdJGrqwOamHBcj7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708022944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j6BLEUVc3EBLL4eAqJoaB6g8EaY2MJbtWsvTHRGCHAM=; b=HBoMZ9Xje8XcNzJtbGWYaik4j1qfl6GZIhUD5TMTsUcN5jbHMN/kYd5NIsEoMP8ha0DsxW xGRl249+2Xfx4FigkEJ4dKcrGBdOpOD4NrFrIWGSkxf78EMfdBIOtLmtLQm/3TEtA4IjEN gA4XwKapH9Ff2pGBwAaoHJbR5Jg0iS4flZo7Y51T81FBxAkUMVCPGRCfs8myRhvGlOXPtj vhswkiat+QIkavs4Ntfmo6eUi2hLenNlVNGj9EZ3CEdOzJ+1HBpJgkeHBtNWIyYx+i8Awm x+dA/8wAhp4E0l/0EwiCoMNNM+fGU2qKYfVHuMs0UMBiOWviWHU/bD6bqOgRUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708022944; a=rsa-sha256; cv=none; b=r83tSfnrxiYGssxLlLq45iekj7kwo+hZpCRWn8P/mKfzFZxjFIrY4Pu1i7sZm8aaGIr+nZ Tgx+RwMsWyYeuP47130uykw513vznVxvSPAaOgZfkIzTAhTtpoD4HcNk4zTjYIoasd342t oYOetStE3fLU8tkCBRFjeAzl4rpDi6pdsEEIixvW0rcPCoCYTHXVaX/SYmRwujF0uL6Jkg a4L9BLof5nkk1qsgiYrt4F++u8eNw7s5IbPuUgAkQo7FZ+vOs9D3PNkK8aVKg3+6I+BPDw CxV4zA0IjtPjbtFHgr8FtDbZqPVt7AC5ZF8o2e+S9ZpcAjXTTmvstPqBw0tpaA== 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 4TbPH36rsHzsrq; Thu, 15 Feb 2024 18:49:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FIn3IE085008; Thu, 15 Feb 2024 18:49:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FIn3dm085005; Thu, 15 Feb 2024 18:49:03 GMT (envelope-from git) Date: Thu, 15 Feb 2024 18:49:03 GMT Message-Id: <202402151849.41FIn3dm085005@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: abe8379b4f24 - main - sockets: repair wakeup of accept(2) by shutdown(2) 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: abe8379b4f244aa12f13a603124eb6b41faabec5 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=abe8379b4f244aa12f13a603124eb6b41faabec5 commit abe8379b4f244aa12f13a603124eb6b41faabec5 Author: Gleb Smirnoff AuthorDate: 2024-02-15 18:48:44 +0000 Commit: Gleb Smirnoff CommitDate: 2024-02-15 18:48:44 +0000 sockets: repair wakeup of accept(2) by shutdown(2) That was lost in transition from one-for-all soshutdown() to protocol specific methods. Only protocols that listen(2) were affected. This is not a documented or specified feature, but some software relies on it. At least the FreeSWITCH telephony software uses this behavior on PF_INET/SOCK_STREAM. Fixes: 5bba2728079ed4da33f727dbc2b6ae1de02ba897 --- sys/kern/uipc_usrreq.c | 17 ++++++++--------- sys/netinet/sctp_usrreq.c | 11 +++++------ sys/netinet/tcp_usrreq.c | 11 +++++------ 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index db226a16674e..20facd9b0a44 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1669,7 +1669,14 @@ uipc_shutdown(struct socket *so, enum shutdown_how how) int error; SOCK_LOCK(so); - if ((so->so_state & + if (SOLISTENING(so)) { + if (how != SHUT_WR) { + so->so_error = ECONNABORTED; + solisten_wakeup(so); /* unlocks so */ + } else + SOCK_UNLOCK(so); + return (ENOTCONN); + } else if ((so->so_state & (SS_ISCONNECTED | SS_ISCONNECTING | SS_ISDISCONNECTING)) == 0) { /* * POSIX mandates us to just return ENOTCONN when shutdown(2) is @@ -1691,14 +1698,6 @@ uipc_shutdown(struct socket *so, enum shutdown_how how) } } else error = 0; - if (SOLISTENING(so)) { - if (how != SHUT_WR) { - so->so_error = ECONNABORTED; - solisten_wakeup(so); /* unlocks so */ - } else - SOCK_UNLOCK(so); - return (0); - } SOCK_UNLOCK(so); switch (how) { diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 70fe021be766..3b0da87edce3 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -794,18 +794,17 @@ sctp_shutdown(struct socket *so, enum shutdown_how how) return (EOPNOTSUPP); SOCK_LOCK(so); - if ((so->so_state & - (SS_ISCONNECTED | SS_ISCONNECTING | SS_ISDISCONNECTING)) == 0) { - SOCK_UNLOCK(so); - return (ENOTCONN); - } if (SOLISTENING(so)) { if (how != SHUT_WR) { so->so_error = ECONNABORTED; solisten_wakeup(so); /* unlocks so */ } else SOCK_UNLOCK(so); - return (0); + return (ENOTCONN); + } else if ((so->so_state & + (SS_ISCONNECTED | SS_ISCONNECTING | SS_ISDISCONNECTING)) == 0) { + SOCK_UNLOCK(so); + return (ENOTCONN); } SOCK_UNLOCK(so); diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index a283d308801f..9bb953617d99 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -807,18 +807,17 @@ tcp_usr_shutdown(struct socket *so, enum shutdown_how how) int error = 0; SOCK_LOCK(so); - if ((so->so_state & - (SS_ISCONNECTED | SS_ISCONNECTING | SS_ISDISCONNECTING)) == 0) { - SOCK_UNLOCK(so); - return (ENOTCONN); - } if (SOLISTENING(so)) { if (how != SHUT_WR) { so->so_error = ECONNABORTED; solisten_wakeup(so); /* unlocks so */ } else SOCK_UNLOCK(so); - return (0); + return (ENOTCONN); + } else if ((so->so_state & + (SS_ISCONNECTED | SS_ISCONNECTING | SS_ISDISCONNECTING)) == 0) { + SOCK_UNLOCK(so); + return (ENOTCONN); } SOCK_UNLOCK(so); From nobody Thu Feb 15 18:49: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 4TbPH52ZG0z59tCj; Thu, 15 Feb 2024 18:49: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbPH51wBHz4tPH; Thu, 15 Feb 2024 18:49:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708022945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UvZHnjjT7IWwHB+s1O1C70AsJpQRqGfYDdxgUxSEg9k=; b=I6YLwxnTDhq+HaQxsU8NOTtN5vB+YX4aih/2+lh3nwRpJT6rNaEoPdyvqSsaD67lUvSUi8 o78TSPBsRL05/Km3jdCR2T/mUszX5V6hcOSpprsAZl+k8F1pfBp8nTrCEhm+i5crteRj37 PFihS12CAr23LRFwN0Beok3y+rvZAzjJmY/Pcrhcbp6OXHchRRh11QZMB2C1qTVD0ojqYK zHPBwv7vIacMRKUIda970ZtaUFItHYk3viG/8R1WZJgNvA9h8R6XpM0DSuYxMvrRdQyWC+ vOcPBeaN6GIbGt3do337fTGQY1zBSkfcMR2MnZjeyInhYqMAKYTiZ2xw5hnHKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708022945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UvZHnjjT7IWwHB+s1O1C70AsJpQRqGfYDdxgUxSEg9k=; b=W2UbPnlkxZUWzwm2loHJENyiwWoMHNdOX/CQFGkfk2tSCuDarB1t2vifWINI+VCCpvbgjf fQHc6uqSfur4w85VPp57XRUroUjBijK5C1ZKdfbSol3RnnFkUNkFSTMm9nOL7+/kloq/WU H5fScxbXnq1R3GzMZVqAUMai0NzbxXvJKdYPIxqkI7OLd/D5FJhq5WN3e/9YCHmGcEleVp 982e78zgMXKNAwo5jYXVD3HvpgitoLRvBta8rEMxzK5e5ij4YUpkCXfEmNRvaMUIyTPCsc fqOU4Fx0MyUEpjFnO8OAaE5kOzK+lap09QAWNsrIW8+T5jz7FIpL1ok6PJnfJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708022945; a=rsa-sha256; cv=none; b=KMCJPVpJ4HY56/KcducjThKeOdeReTUwz5biPKblhqR/ZunlOiSEll3USsCvzGUQdwDznS ZVr4S7zRaEXP/IPpP8xVvshq5C+og3B0aaXrZSfDk12kHAUbcWRTnWC75/p8xX0jxAmkEy pkXRtMp4Y6GdGZHMn3x1wUYsRcalhmo8WSgSVxX2bSZBHoNjpcI5nLCAah2lkq8vgDqicJ z/YG/8ESmeMB2Jf2O0A4c8ICU845sbYaegZkdLuwYCiWyrSN5qsIvtDnn98ap4yZUUeAVN 2FAuFUMn1eNgqGNU7O3gT+Xv0kUj5lUXSSWF5iXSXgFYllI9F1/+K8kH5mYaSg== 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 4TbPH50yYGztBl; Thu, 15 Feb 2024 18:49:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FIn5qV085047; Thu, 15 Feb 2024 18:49:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FIn5q6085044; Thu, 15 Feb 2024 18:49:05 GMT (envelope-from git) Date: Thu, 15 Feb 2024 18:49:05 GMT Message-Id: <202402151849.41FIn5q6085044@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: bc9107f8c405 - main - socket tests: add listener_wakeup 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc9107f8c405ce83f47abc915ae95baadb770d6d Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=bc9107f8c405ce83f47abc915ae95baadb770d6d commit bc9107f8c405ce83f47abc915ae95baadb770d6d Author: Gleb Smirnoff AuthorDate: 2024-02-15 18:48:44 +0000 Commit: Gleb Smirnoff CommitDate: 2024-02-15 18:48:44 +0000 socket tests: add listener_wakeup This test runs several scenarios when sleep(9) on a listen(2)ing socket is interrupted by shutdown(2) or by close(2). What should happen in that case is not specified, neither is documented. However, there is certain behavior that we have and this test makes sure it is preserved. There is software that relies on it, see bug 227259. This test is based on submission with this bug, bugzilla attachment 192260. The test checks TCP and unix(4) stream socket behavior and SCTP can be added easily if needed. The test passes on FreeBSD 11 to 15. It won't pass on FreeBSD 10, although the wakeup behavior of shutdown(2) is the same, but it doesn't return error. PR: 227259 --- tests/sys/kern/Makefile | 2 + tests/sys/kern/listener_wakeup.c | 293 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 295 insertions(+) diff --git a/tests/sys/kern/Makefile b/tests/sys/kern/Makefile index 5a7e27319ddb..e54a43b5fd83 100644 --- a/tests/sys/kern/Makefile +++ b/tests/sys/kern/Makefile @@ -21,6 +21,7 @@ ATF_TESTS_C+= kill_zombie .if ${MK_OPENSSL} != "no" ATF_TESTS_C+= ktls_test .endif +ATF_TESTS_C+= listener_wakeup ATF_TESTS_C+= module_test ATF_TESTS_C+= ptrace_test TEST_METADATA.ptrace_test+= timeout="15" @@ -79,6 +80,7 @@ LIBADD.unix_seqpacket_test+= pthread LIBADD.kcov+= pthread CFLAGS.ktls_test+= -DOPENSSL_API_COMPAT=0x10100000L LIBADD.ktls_test+= crypto util +LIBADD.listener_wakeup+= pthread LIBADD.shutdown_dgram+= pthread LIBADD.socket_msg_waitall+= pthread LIBADD.sendfile_helper+= pthread diff --git a/tests/sys/kern/listener_wakeup.c b/tests/sys/kern/listener_wakeup.c new file mode 100644 index 000000000000..39e8596c335e --- /dev/null +++ b/tests/sys/kern/listener_wakeup.c @@ -0,0 +1,293 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2024 Gleb Smirnoff + * Copyright (c) 2018 Rozhuk Ivan + * + * 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 + +/* + * This test runs several scenarios when sleep(9) on a listen(2)ing socket is + * interrupted by shutdown(2) or by close(2). What should happen in that case + * is not specified, neither is documented. However, there is certain behavior + * that we have and this test makes sure it is preserved. The known software + * to rely on the behavior is FreeSWITCH telephony software (see bug 227259). + * There might be more. This test is based on submission with the bug, bugzilla + * attachment 192260. + */ + +static const struct test { + enum { + SLEEP_ACCEPT = 0, + SLEEP_SELECT, + SLEEP_POLL, + SLEEP_KQUEUE, + NSLEEP + } sleep; + enum { + WAKEUP_SHUTDOWN, + WAKEUP_CLOSE, + } wakeup; + enum { + AFTER, + BEFORE, + } when; + bool nonblock; + int result; +} tests[] = { + { SLEEP_ACCEPT, WAKEUP_SHUTDOWN, AFTER, false, ECONNABORTED }, + { SLEEP_SELECT, WAKEUP_SHUTDOWN, AFTER, false, 0 }, + { SLEEP_POLL, WAKEUP_SHUTDOWN, AFTER, false, 0 }, + { SLEEP_KQUEUE, WAKEUP_SHUTDOWN, AFTER, false, 0 }, + { SLEEP_ACCEPT, WAKEUP_CLOSE, AFTER, false, ETIMEDOUT }, + { SLEEP_SELECT, WAKEUP_CLOSE, AFTER, false, EBADF }, + { SLEEP_POLL, WAKEUP_CLOSE, AFTER, false, 0 }, + { SLEEP_KQUEUE, WAKEUP_CLOSE, AFTER, false, 0 }, + { SLEEP_ACCEPT, WAKEUP_SHUTDOWN, BEFORE, false, ECONNABORTED }, + { SLEEP_SELECT, WAKEUP_SHUTDOWN, BEFORE, false, 0 }, + { SLEEP_POLL, WAKEUP_SHUTDOWN, BEFORE, false, 0 }, + { SLEEP_KQUEUE, WAKEUP_SHUTDOWN, BEFORE, false, 0 }, + { SLEEP_SELECT, WAKEUP_SHUTDOWN, AFTER, true, 0 }, + { SLEEP_POLL, WAKEUP_SHUTDOWN, AFTER, true, 0 }, + { SLEEP_KQUEUE, WAKEUP_SHUTDOWN, AFTER, true, 0 }, + { SLEEP_SELECT, WAKEUP_SHUTDOWN, BEFORE, true, 0 }, + { SLEEP_POLL, WAKEUP_SHUTDOWN, BEFORE, true, 0 }, + { SLEEP_KQUEUE, WAKEUP_SHUTDOWN, BEFORE, true, 0 }, +}; + +static int +tcp_listen(void) +{ + struct sockaddr_in sin = { + .sin_family = PF_INET, + .sin_len = sizeof(sin), + }; + int s; + + ATF_REQUIRE((s = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) != -1); + ATF_REQUIRE(bind(s, (struct sockaddr *)&sin, sizeof(sin)) == 0); + ATF_REQUIRE(listen(s, -1) == 0); + + return (s); +} + +static int +unix_listen(void) +{ + struct sockaddr_un sun = { + .sun_family = AF_UNIX, + .sun_len = sizeof(sun), + .sun_path = "listen-shutdown-test.sock", + }; + int s; + + ATF_REQUIRE((s = socket(PF_UNIX, SOCK_STREAM, 0)) != -1); + (void)unlink(sun.sun_path); + ATF_REQUIRE(bind(s, (struct sockaddr *)&sun, sizeof(sun)) == 0); + ATF_REQUIRE(listen(s, -1) == 0); + + return (s); +} + +static const struct proto { + const char *name; + int (*listen)(void); +} protos[] = { + { "PF_INET", tcp_listen }, + { "PF_UNIX", unix_listen }, +}; + +static int +sleep_accept(int s) +{ + int rv; + + rv = accept(s, NULL, NULL); + + return (rv == -1 ? errno : 0); +} + +static int +sleep_select(int s) +{ + fd_set fds; + int rv; + + FD_ZERO(&fds); + FD_SET(s, &fds); + rv = select(s + 1, &fds, &fds, &fds, NULL); + + return (rv == -1 ? errno : 0); +} + +static int +sleep_poll(int s) +{ + struct pollfd fds = { + .fd = s, + .events = (POLLIN | POLLPRI | POLLRDNORM | POLLWRNORM | + POLLRDBAND | POLLWRBAND), + .revents = 0, + }; + int rv; + + rv = poll(&fds, 1, INFTIM); + + return (rv == -1 ? errno : 0); +} + +static int +sleep_kqueue(int s) +{ + struct kevent kev; + int kq, error; + + ATF_REQUIRE((kq = kqueue()) != -1); + EV_SET(&kev, s, EVFILT_READ, EV_ADD, 0, 0, NULL); + if (kevent(kq, &kev, 1, NULL, 0, NULL) == -1) { + error = errno; + } else { + if (kev.flags & EV_ERROR) + error = (int)kev.data; + else + error = 0; + } + ATF_REQUIRE(close(kq) == 0); + + return (error); +} + +typedef int sleep_syscall_t(int); +static sleep_syscall_t *sleep_syscalls[NSLEEP] = { + [SLEEP_ACCEPT] = sleep_accept, + [SLEEP_SELECT] = sleep_select, + [SLEEP_POLL] = sleep_poll, + [SLEEP_KQUEUE] = sleep_kqueue, +}; + +struct test_ctx { + struct test const *test; + int s; + int result; +}; + +static void * +sleep_syscall_thread(void *data) { + struct test_ctx *ctx = data; + + ctx->result = sleep_syscalls[ctx->test->sleep](ctx->s); + + return (NULL); +} + +static void +run_tests(const struct proto *pr) +{ + pthread_t tid; + struct timespec ts; + int error; + + for (u_int i = 0; i < nitems(tests); i ++) { + struct test const *t = &tests[i]; + struct test_ctx ctx = { + .test = t, + /* Note: tested syscalls don't return this. */ + .result = ETIMEDOUT, + }; + + ctx.s = pr->listen(); + if (t->nonblock) + ATF_REQUIRE(fcntl(ctx.s, F_SETFL, O_NONBLOCK) != -1); + + if (t->when == AFTER) { + ATF_REQUIRE(pthread_create(&tid, NULL, + sleep_syscall_thread, &ctx) == 0); + usleep(100000); + } + + switch (t->wakeup) { + case WAKEUP_SHUTDOWN: + ATF_REQUIRE(shutdown(ctx.s, SHUT_RDWR) == -1); + ATF_REQUIRE(errno == ENOTCONN); + break; + case WAKEUP_CLOSE: + ATF_REQUIRE(close(ctx.s) == 0); + break; + } + + if (t->when == BEFORE) { + ATF_REQUIRE(pthread_create(&tid, NULL, + sleep_syscall_thread, &ctx) == 0); + usleep(100000); + } + + clock_gettime(CLOCK_REALTIME, &ts); + ts.tv_sec++; + if ((error = pthread_timedjoin_np(tid, NULL, &ts)) != 0) { + ATF_REQUIRE(pthread_cancel(tid) == 0); + ATF_REQUIRE(error == ETIMEDOUT); + ATF_REQUIRE(ctx.result == ETIMEDOUT); + } + + ATF_REQUIRE_MSG(ctx.result == t->result, + "proto %s sleeping syscall #%d wakeup #%d nb %d, " + "expected %d, got %d", pr->name, t->sleep, t->wakeup, + t->nonblock, t->result, ctx.result); + + if (t->wakeup == WAKEUP_SHUTDOWN) + ATF_REQUIRE(close(ctx.s) == 0); + } +} + +ATF_TC_WITHOUT_HEAD(all); +ATF_TC_BODY(all, tc) +{ + for (u_int f = 0; f < nitems(protos); f++) + run_tests(&protos[f]); +} + +ATF_TP_ADD_TCS(tp) +{ + ATF_TP_ADD_TC(tp, all); + + return (atf_no_error()); +} From nobody Thu Feb 15 19:24: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 4TbQ3s1PMPz59ycr; Thu, 15 Feb 2024 19:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbQ3s0gfBz42L4; Thu, 15 Feb 2024 19:24:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708025065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ocxct8d+zOdyRvORFyGbJ3jc0+OUbvA703NmJ9TNqFs=; b=c/w0AxKcvYDHTcWRb+V/5bGF0seBcL3h4vHOueJ4PpM4Rg/Vtu4gshyZK+M+Jc4GzlKoBP 7yLgr2YBP7nPcoWWqfT1wu6sLXSM41DAVAV0DlcNJbkf2tEGoBUNSWrZeZ5E6iecdtWw83 qoaVPvuWcDo89imuGDUDP1tKTjET6FvewfTqci37GF5mVUykRQTWU2ENMfMCDt/9LG2m+F jU5Kg62uKM+dneL54OZmpvEnVSgk2oZ67ZigQYK0IshX/Q/x5XG7Ee28qVJ5qYjPbwyXd0 ypYts9cXlQ7xvJHvaxqP3fW/V4zQH55TgLE/2NcWvfrTYOIvksg6h6PRtVJNkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708025065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Ocxct8d+zOdyRvORFyGbJ3jc0+OUbvA703NmJ9TNqFs=; b=fRm1fVOBPvEK89QGADO+0tb5pjMce9g/ijb5JBIRK9VCwhBqOnZgb2gp3zAPIYc37fdgLg CWgTEJ40lOEPtLYD2+MlnHJEV8Gd/2UrJvuuqz2r1XOFtPPpDEdOeX4blDDQ9hEXkEGgcw vsTMvTdt+LzLHkIW83/vcdTJnizyN1430UMmA8fgE5qX5z4K00ZVyqHRvPJH2yCKwfKKJv wpuNz5/XwsIQAOoW5NtgqMwGhnr68FWv8ZNXdIqaVqQ0EjnDA14hRxNqK9D58U+JVd85kp pAe4gHWJUE6mPEJjbYG93wAmDUupSUlOhGqPPNAZrSoSJBPGjhu0yKmH4N2/dQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708025065; a=rsa-sha256; cv=none; b=H3VwqEktiQqg3gxxzyglrfPU0VdpHIT8GehGj03DE+d8aRFISjnxVuVv88/22q5GCTSUgh 9HrER6xTKgTqHSrBXc2E6ObuiDgPC/gOeLdp+SQ6T9T3244zCiemk3hjg9BDep+b/erHlx isxowLNMpl2d3qHvNMCrayn11VeOSZa3j8JZ9kBPEko3D2Spi6eAsaEFeNKbsyjHhHgChX UOHLIl4PU+fJp4w6z4nUxjVyQQH4K52ySa1FAjnh9XEDdjefAkB8NyFecwBcqj/nTli0mL WgtEN0EvL3ZOnvG3uJXOsHleNghVOY1pycwe/87Q4QhEjC7zb6TIoqu8MZ8Y5Q== 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 4TbQ3r6qTtzv0N; Thu, 15 Feb 2024 19:24:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FJOOox052288; Thu, 15 Feb 2024 19:24:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FJOOUG052285; Thu, 15 Feb 2024 19:24:24 GMT (envelope-from git) Date: Thu, 15 Feb 2024 19:24:24 GMT Message-Id: <202402151924.41FJOOUG052285@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Stephen J. Kiernan" Subject: git: 53670ee165f4 - main - psci: Add FDT node status check 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: stevek X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 53670ee165f428fd7d27b9e2d1efb4ab2c9caec6 Auto-Submitted: auto-generated The branch main has been updated by stevek: URL: https://cgit.FreeBSD.org/src/commit/?id=53670ee165f428fd7d27b9e2d1efb4ab2c9caec6 commit 53670ee165f428fd7d27b9e2d1efb4ab2c9caec6 Author: Stephen J. Kiernan AuthorDate: 2024-02-15 16:57:32 +0000 Commit: Stephen J. Kiernan CommitDate: 2024-02-15 19:24:15 +0000 psci: Add FDT node status check Consider the PSCI missing if the FDT node status says it is not okay. Reviewed by: andrew Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D43920 --- sys/dev/psci/psci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/psci/psci.c b/sys/dev/psci/psci.c index 46d7a2f07181..0c8f094e0037 100644 --- a/sys/dev/psci/psci.c +++ b/sys/dev/psci/psci.c @@ -386,6 +386,9 @@ psci_fdt_callfn(psci_callfn_t *callfn) return (PSCI_MISSING); } + if (!ofw_bus_node_status_okay(node)) + return (PSCI_MISSING); + *callfn = psci_fdt_get_callfn(node); return (0); } From nobody Thu Feb 15 20:20: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 4TbRJt2Dlgz5B6Sc; Thu, 15 Feb 2024 20:20: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbRJt1l2Mz47X8; Thu, 15 Feb 2024 20:20:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708028446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QRvBv3uLQlTGVW8M3/JVWpzuJagH/Pgy19Khi6vKTpo=; b=M2P9CkpOTrVkY7NY31UK8D3rZnFfgq/itAbDh3UQLxqKSimXvv8c2fgcVBsbA5RAHvgi+O 84Nm1CqnnjOy8wtr5sHUHqIKD5SDbP9BihX97HiC+gFQc8lzNEGtTuOfn/is0Z59b/Yw9i jYruRBcnGvKrmmZmeFHnfz2wf9/zA4MUBF74getW7l99RT1oYxB0Npc9/6Vs9dPCeDsAXt kFovtY4pJ4v905lxYJGKlpqEjFIGaOGumOcWv9g+ECdpGoY7vgn/cJQYYDkSdoCnbQvH1v gnT5WE2zcTTuI9aiWyrnTV7el/yov9qotRWPtoaKlK2nA0E3k8L4F4/KYP2F+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708028446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QRvBv3uLQlTGVW8M3/JVWpzuJagH/Pgy19Khi6vKTpo=; b=Bi7521P/ggcD77RLIHey+MWB0hTxqFvdr8DHdlzesTrkhJsaTHPHPPmHF58WW2goqtGLrY HexCWnytTNFNcJOGA2znpj0Wk3IiKre5pHZP8WGVcAP222BmrbIotzG+ASS6AVzS4rJghF K9wrsHzb6hft94CCYfDcODRj/LzLflXYf4zMn9bQD8jfCTpcClyYp8GVcKzyqaQLMlIt8J kCPlymBQdWINRkk1UC7yRUye01wQDHcFFuZibluybICfICMptYZempIamTa3JhH8iSjYPF NGQgjYxrE08h+Cy9UruWu4kmLG0f3+YOmclr3gs2jYuG/3ZpBYl6iG5OxHes6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708028446; a=rsa-sha256; cv=none; b=UHU5Go7Ktbz4d7iqS8WYgnjqttxDKeHApWPIEMKGwYCUoWEfTk59/IaQFUPYyYcU/I/kw6 zqD5DPYyzmLLz64RmAR8Ao7ft38CPYS4ETWva6loYystN3RrE2rynnW74fWQ3ngbEdsbIj 2xWK/AVvvpXKTUmX7SSTtxL4GLZrMyfG+VKh/vmz3zh7sAvnVAMoTMCwBLVAfSAJ8Ue25+ Jj5iaC9vVNWOe4A7NA+DhFTpq6aegJDQDb78FxnuBrXM6/VTSIrDQjCw0d3GsnblK4IHCj uT5rSNGhE5EPwy/fSJMoj87HsR9iiHU52LFssJJKhzh7PIRTBe5aQLjzUnC3hg== 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 4TbRJt0r3Zzw7m; Thu, 15 Feb 2024 20:20:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FKKk1d046698; Thu, 15 Feb 2024 20:20:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FKKk28046695; Thu, 15 Feb 2024 20:20:46 GMT (envelope-from git) Date: Thu, 15 Feb 2024 20:20:46 GMT Message-Id: <202402152020.41FKKk28046695@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: 962b0bcbd924 - main - riscv: Add missing includes for DDB 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 962b0bcbd924d308016237abc991280f15777e7f Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=962b0bcbd924d308016237abc991280f15777e7f commit 962b0bcbd924d308016237abc991280f15777e7f Author: John Baldwin AuthorDate: 2024-02-15 20:20:30 +0000 Commit: John Baldwin CommitDate: 2024-02-15 20:20:30 +0000 riscv: Add missing includes for DDB The #ifdef DDB code in parse_metadata was dead code without opt_ddb.h. While here, update the call to db_fetch_ksymtab for changes in commit 02bc014a200a. Reviewed by: mhorne Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D43919 --- sys/riscv/riscv/machdep.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/riscv/riscv/machdep.c b/sys/riscv/riscv/machdep.c index a0ed59cfef87..4e3564b11c9e 100644 --- a/sys/riscv/riscv/machdep.c +++ b/sys/riscv/riscv/machdep.c @@ -33,6 +33,7 @@ * SUCH DAMAGE. */ +#include "opt_ddb.h" #include "opt_kstack_pages.h" #include "opt_platform.h" @@ -91,6 +92,10 @@ #include #include +#ifdef DDB +#include +#endif + #ifdef FDT #include #include @@ -455,7 +460,7 @@ parse_metadata(void) #ifdef DDB ksym_start = MD_FETCH(kmdp, MODINFOMD_SSYM, uintptr_t); ksym_end = MD_FETCH(kmdp, MODINFOMD_ESYM, uintptr_t); - db_fetch_ksymtab(ksym_start, ksym_end); + db_fetch_ksymtab(ksym_start, ksym_end, 0); #endif #ifdef FDT try_load_dtb(kmdp); From nobody Thu Feb 15 20:28: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 4TbRV200vGz5B7jB; Thu, 15 Feb 2024 20:28: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbRV14sThz49bP; Thu, 15 Feb 2024 20:28:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708028921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OBI2XhYnqDO/iVqX8oPX+hCcX5CjItSyyQAlQcYO0BE=; b=qqQjQm8nlZYviE3C5dXFSVFfSLIbd/ZuWpcxRlyFaJROLd850SXuD/EfdXX5crweLdy0DV Pa541hYTMRGOWaB98a0R2ImlitNYoSyWvFVcRg7HpKJuHhge909iE6eGEGbmL3j38d2yBW J52aQjemYgpSUBSh/pnZBpP+RcNDti19vX4Asc86+h4eVXIwI32mZBwM22Em1iEfGFX0Kh migXWtXftrwMtaMkNCdkjAsrMla9BtOtbh4AsknUZNndalJc6mv5t9nrvt3xdYGCAjEesQ /HqXVSr83Nw0IyJemz43m79J4dcphpHrwnLwurlIR0ciAnrZjdWkePJhAnTr9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708028921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OBI2XhYnqDO/iVqX8oPX+hCcX5CjItSyyQAlQcYO0BE=; b=SEXOp/gdxRbpmNDGn6tMwqqkX2I5x4NxdEovPLnHfQuCRRyZvqod3ntuo7J2FGffDLlkS8 /MPJxuaeMX9xLgW3zRc1A1JX7S5dMmJz6x4y/ophp2QSQ3U414qUSRoDspqFYeOJ3ZufLx brq+B2ipLWBtGyp+lifF1ssa5FJHmUwc3pLdq2Eub/vwb+5HxhPxl3lUKiNJqSymR4pbUr HF1vZM5X4N0NYC4pMC0huRdnV6Vk5RnXWOaZuyufj9rzTLg8lqPrj4OBhdCuZEJMiHpe84 5hfp1s45YUCXRSDa3ld+F8lemzyfrCL7pMkEInZKhlzA0AE0+5YT7pSKq7i/uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708028921; a=rsa-sha256; cv=none; b=UcK+SHL20LGkdL6BoVxMNu5T4JbleYWQHzZe2R7WKEvhQb3h5ZzI+LzlXVEKcBDZp1N1s5 6rAibt5KoXvH/8Vl8tsxdrb2xMZ07nQN8/DKoMuXyQJL234XE5v3z4aAJYNrobNgKp1jwQ klEJ2vNJ7oa/hHuENw7y7/Ot0z/w2wmTgB/86qbUdGiz1SwWRrj9xC7hmiGqFM0fkqzJg1 FonD2EV6oGp2kERpwEMkTG7q/8F28HFOVUN2TKF5Tu8n9JTw+SG94Nax/OUoclbq5jxe2b ZDY/0lG2/Ptp0GrXb6Cgpsm6QLcIt/5ZRlpgax+iu44KkBcCvuPfCcD1d9EUQA== 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 4TbRV13gMszwC9; Thu, 15 Feb 2024 20:28:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FKSfYj053234; Thu, 15 Feb 2024 20:28:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FKSfDA053231; Thu, 15 Feb 2024 20:28:41 GMT (envelope-from git) Date: Thu, 15 Feb 2024 20:28:41 GMT Message-Id: <202402152028.41FKSfDA053231@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: 76c678688634 - main - vmd: Use bus_read/write_* instead of bus_space_read/write_* 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 76c678688634e9e2ea5f6369fb979aabddbfe426 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=76c678688634e9e2ea5f6369fb979aabddbfe426 commit 76c678688634e9e2ea5f6369fb979aabddbfe426 Author: John Baldwin AuthorDate: 2024-02-15 20:26:19 +0000 Commit: John Baldwin CommitDate: 2024-02-15 20:26:19 +0000 vmd: Use bus_read/write_* instead of bus_space_read/write_* Using an explicit bus space tag and handle is deprecated. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43885 --- sys/dev/vmd/vmd.c | 21 ++++++--------------- sys/dev/vmd/vmd.h | 2 -- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/sys/dev/vmd/vmd.c b/sys/dev/vmd/vmd.c index 1563d707c6b4..d9afe5746421 100644 --- a/sys/dev/vmd/vmd.c +++ b/sys/dev/vmd/vmd.c @@ -184,14 +184,11 @@ vmd_read_config(device_t dev, u_int b, u_int s, u_int f, u_int reg, int width) switch (width) { case 4: - return (bus_space_read_4(sc->vmd_btag, sc->vmd_bhandle, - offset)); + return (bus_read_4(sc->vmd_regs_res[0], offset)); case 2: - return (bus_space_read_2(sc->vmd_btag, sc->vmd_bhandle, - offset)); + return (bus_read_2(sc->vmd_regs_res[0], offset)); case 1: - return (bus_space_read_1(sc->vmd_btag, sc->vmd_bhandle, - offset)); + return (bus_read_1(sc->vmd_regs_res[0], offset)); default: __assert_unreachable(); return (0xffffffff); @@ -213,14 +210,11 @@ vmd_write_config(device_t dev, u_int b, u_int s, u_int f, u_int reg, switch (width) { case 4: - return (bus_space_write_4(sc->vmd_btag, sc->vmd_bhandle, - offset, val)); + return (bus_write_4(sc->vmd_regs_res[0], offset, val)); case 2: - return (bus_space_write_2(sc->vmd_btag, sc->vmd_bhandle, - offset, val)); + return (bus_write_2(sc->vmd_regs_res[0], offset, val)); case 1: - return (bus_space_write_1(sc->vmd_btag, sc->vmd_bhandle, - offset, val)); + return (bus_write_1(sc->vmd_regs_res[0], offset, val)); default: __assert_unreachable(); } @@ -282,9 +276,6 @@ vmd_attach(device_t dev) } } - sc->vmd_btag = rman_get_bustag(sc->vmd_regs_res[0]); - sc->vmd_bhandle = rman_get_bushandle(sc->vmd_regs_res[0]); - vid = pci_get_vendor(dev); did = pci_get_device(dev); for (t = vmd_devs; t->vmd_name != NULL; t++) { diff --git a/sys/dev/vmd/vmd.h b/sys/dev/vmd/vmd.h index a8156ba88a17..2ab943c07a6d 100644 --- a/sys/dev/vmd/vmd.h +++ b/sys/dev/vmd/vmd.h @@ -53,8 +53,6 @@ struct vmd_softc { #define VMD_MAX_BAR 3 int vmd_regs_rid[VMD_MAX_BAR]; struct resource *vmd_regs_res[VMD_MAX_BAR]; - bus_space_handle_t vmd_bhandle; - bus_space_tag_t vmd_btag; struct vmd_irq *vmd_irq; LIST_HEAD(,vmd_irq_user) vmd_users; int vmd_fist_vector; From nobody Thu Feb 15 20:28: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 4TbRV32LD6z5B7gd; Thu, 15 Feb 2024 20:28: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbRV25bX2z49qM; Thu, 15 Feb 2024 20:28:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708028922; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B6fURIxoxAel2JH3/k+P6y4B94q7LivpO43cSa874G0=; b=xeTQeW//6N4mT+olqfOBzng6COaOIScvByJsS2WqFvody8SR6d7EB/jC9V/l6cZxnt/X/Z NPLFruMuJ1gb+hvaPumnftMAzlp13qhXAxRbMfDby64bIm683kEbL0GDHoFAKcDN/XZHZl m+haWmErjBQjbBfO8qj9W7rrUwjiL3dZJ5CMlPNNbQzgN0RPelEBLi8rIAn8t00ap2s3QJ 1GaAAVTkp01hdlcEFMvlGS9ySPx7DD+gmnawKkiP07sIvCtfEIpFtm71W3O6dKh/EePAcZ 3onkNcKlyhVBFRqz5GnrqLZVlffKGOz6R+EmtFWDnD+6k50krxz/6tCdnmTJOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708028922; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B6fURIxoxAel2JH3/k+P6y4B94q7LivpO43cSa874G0=; b=f38dSDit0wWyMTyVbBiWqS8uM32qEB1WLQziRS0+tgI67hispDRrfRA4ea09s++1HpEudI POLzTv0w22/1HwSuezJTdRLlnJMzgvtEePNitYegBUVAvxyg38mI91GRExZI5nWl+kgv3r z2Qg9vqX08OHc/9chjhXQ0Q839SOXhPr94KQqXdLGjU58jIMiDHt9HlT0FTOQah29AtIgs KTuid9xZRGbMJ1PtvKejdhgZ1bnWV3Ea7NezSyQPMkGvKKZt/LGIpGT3DpbVYInZmX530T fJyEIHCWavUQGCnnMaU9PeSpIZahyk6S3Iot955wmmstEIMNNpJ8r68oO8bN3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708028922; a=rsa-sha256; cv=none; b=WqA99eB//9XZwRtjK91id1QUy0eHgCeLPmdO9prLJgl/9eI7GCPNlMtm4vZ8FughvrmmtF 6PE8y3m751vgThwjNVeYTtsHGDy5kCEyW85d361zMR5ZsRAJbwLVJMmqlmfAZxBZi7RXd3 YBFdKc3if2iSh3S3Suc5/eAo88lfysaj2Tdq29bBTHq08yB9Nsj/X3bPF1jX+Q/F1gQthT Xyzd2flN9DCl+yml6QO/M0qzyujbm1SlWn61WJbn6RMFOPafInIN2JyUapdjx5qImc+R1F zGsRLNh4EY++7G+FHZO+bQFvxWAHrJVOGUWdBVXiUJt96PFhacoWNfwyuCufxQ== 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 4TbRV24j21zwCB; Thu, 15 Feb 2024 20:28:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FKSg3v053290; Thu, 15 Feb 2024 20:28:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FKSgbQ053287; Thu, 15 Feb 2024 20:28:42 GMT (envelope-from git) Date: Thu, 15 Feb 2024 20:28:42 GMT Message-Id: <202402152028.41FKSgbQ053287@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: d714e73f7895 - main - vmd: Use bus_generic_rman_* for PCI bus and memory resources 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: d714e73f789515963a22fe64417bf3883cdb599c Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d714e73f789515963a22fe64417bf3883cdb599c commit d714e73f789515963a22fe64417bf3883cdb599c Author: John Baldwin AuthorDate: 2024-02-15 20:26:40 +0000 Commit: John Baldwin CommitDate: 2024-02-15 20:26:40 +0000 vmd: Use bus_generic_rman_* for PCI bus and memory resources While here, add custom bus_map/unmap_resource methods to request mappings via the window memory resources allocated from the parent bus. Tested by: emaste Differential Revision: https://reviews.freebsd.org/D43886 --- sys/dev/vmd/vmd.c | 133 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 108 insertions(+), 25 deletions(-) diff --git a/sys/dev/vmd/vmd.c b/sys/dev/vmd/vmd.c index d9afe5746421..d885cd15ac26 100644 --- a/sys/dev/vmd/vmd.c +++ b/sys/dev/vmd/vmd.c @@ -418,47 +418,53 @@ vmd_get_dma_tag(device_t dev, device_t child) return (sc->vmd_dma_tag); } +static struct rman * +vmd_get_rman(device_t dev, int type, u_int flags) +{ + struct vmd_softc *sc = device_get_softc(dev); + + switch (type) { + case SYS_RES_MEMORY: + return (&sc->psc.mem.rman); + case PCI_RES_BUS: + return (&sc->psc.bus.rman); + default: + /* VMD hardware does not support I/O ports. */ + return (NULL); + } +} + static struct resource * vmd_alloc_resource(device_t dev, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) { - struct vmd_softc *sc = device_get_softc(dev); struct resource *res; - switch (type) { - case SYS_RES_IRQ: + if (type == SYS_RES_IRQ) { /* VMD hardware does not support legacy interrupts. */ if (*rid == 0) return (NULL); return (bus_generic_alloc_resource(dev, child, type, rid, start, end, count, flags | RF_SHAREABLE)); - case SYS_RES_MEMORY: - res = rman_reserve_resource(&sc->psc.mem.rman, start, end, - count, flags, child); - if (res == NULL) - return (NULL); - if (bootverbose) + } + res = bus_generic_rman_alloc_resource(dev, child, type, rid, start, + end, count, flags); + if (bootverbose && res != NULL) { + switch (type) { + case SYS_RES_MEMORY: device_printf(dev, "allocated memory range (%#jx-%#jx) for rid %d of %s\n", rman_get_start(res), rman_get_end(res), *rid, pcib_child_name(child)); - break; - case PCI_RES_BUS: - res = rman_reserve_resource(&sc->psc.bus.rman, start, end, - count, flags, child); - if (res == NULL) - return (NULL); - if (bootverbose) + break; + case PCI_RES_BUS: device_printf(dev, "allocated bus range (%ju-%ju) for rid %d of %s\n", rman_get_start(res), rman_get_end(res), *rid, pcib_child_name(child)); - break; - default: - /* VMD hardware does not support I/O ports. */ - return (NULL); + break; + } } - rman_set_rid(res, *rid); return (res); } @@ -471,7 +477,8 @@ vmd_adjust_resource(device_t dev, device_t child, int type, return (bus_generic_adjust_resource(dev, child, type, r, start, end)); } - return (rman_adjust_resource(r, start, end)); + return (bus_generic_rman_adjust_resource(dev, child, type, r, start, + end)); } static int @@ -483,7 +490,80 @@ vmd_release_resource(device_t dev, device_t child, int type, int rid, return (bus_generic_release_resource(dev, child, type, rid, r)); } - return (rman_release_resource(r)); + return (bus_generic_rman_release_resource(dev, child, type, rid, r)); +} + +static int +vmd_activate_resource(device_t dev, device_t child, int type, int rid, + struct resource *r) +{ + if (type == SYS_RES_IRQ) { + return (bus_generic_activate_resource(dev, child, type, rid, + r)); + } + return (bus_generic_rman_activate_resource(dev, child, type, rid, r)); +} + +static int +vmd_deactivate_resource(device_t dev, device_t child, int type, int rid, + struct resource *r) +{ + if (type == SYS_RES_IRQ) { + return (bus_generic_deactivate_resource(dev, child, type, rid, + r)); + } + return (bus_generic_rman_deactivate_resource(dev, child, type, rid, r)); +} + +static struct resource * +vmd_find_parent_resource(struct vmd_softc *sc, struct resource *r) +{ + for (int i = 1; i < 3; i++) { + if (rman_get_start(sc->vmd_regs_res[i]) <= rman_get_start(r) && + rman_get_end(sc->vmd_regs_res[i]) >= rman_get_end(r)) + return (sc->vmd_regs_res[i]); + } + return (NULL); +} + +static int +vmd_map_resource(device_t dev, device_t child, int type, struct resource *r, + struct resource_map_request *argsp, struct resource_map *map) +{ + struct vmd_softc *sc = device_get_softc(dev); + struct resource_map_request args; + struct resource *pres; + rman_res_t length, start; + int error; + + /* Resources must be active to be mapped. */ + if (!(rman_get_flags(r) & RF_ACTIVE)) + return (ENXIO); + + resource_init_map_request(&args); + error = resource_validate_map_request(r, argsp, &args, &start, &length); + if (error) + return (error); + + pres = vmd_find_parent_resource(sc, r); + if (pres == NULL) + return (ENOENT); + + args.offset = start - rman_get_start(pres); + args.length = length; + return (bus_generic_map_resource(dev, child, type, pres, &args, map)); +} + +static int +vmd_unmap_resource(device_t dev, device_t child, int type, struct resource *r, + struct resource_map *map) +{ + struct vmd_softc *sc = device_get_softc(dev); + + r = vmd_find_parent_resource(sc, r); + if (r == NULL) + return (ENOENT); + return (bus_generic_unmap_resource(dev, child, type, r, map)); } static int @@ -647,13 +727,16 @@ static device_method_t vmd_pci_methods[] = { /* Bus interface */ DEVMETHOD(bus_get_dma_tag, vmd_get_dma_tag), + DEVMETHOD(bus_get_rman, vmd_get_rman), DEVMETHOD(bus_read_ivar, pcib_read_ivar), DEVMETHOD(bus_write_ivar, pcib_write_ivar), DEVMETHOD(bus_alloc_resource, vmd_alloc_resource), DEVMETHOD(bus_adjust_resource, vmd_adjust_resource), DEVMETHOD(bus_release_resource, vmd_release_resource), - DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), - DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), + DEVMETHOD(bus_activate_resource, vmd_activate_resource), + DEVMETHOD(bus_deactivate_resource, vmd_deactivate_resource), + DEVMETHOD(bus_map_resource, vmd_map_resource), + DEVMETHOD(bus_unmap_resource, vmd_unmap_resource), DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), From nobody Thu Feb 15 20:28: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 4TbRV43Y90z5B7m2; Thu, 15 Feb 2024 20:28: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbRV41Tffz49qQ; Thu, 15 Feb 2024 20:28:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708028924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sRy9rW4QVD+vWHYzWN/pc8aNi9W0cIcouDlDl+UVe+8=; b=IQcZDKKZIJTl65vKKYukmwX11PYaavp/XnJE4j23ZkziPhwZOBSzObkHViPOlBADXvjYq6 x+5zuEgdbIZAmQuzsyF5KU/zFWLej9bat482fsr8UkoiUTXwq8ZEu1rPCC2BA9eIHCym5D b3ji6U+ZnrRyfCGGMYxzNreqgj1vcJH5EbZ9X1azH0X2DganNywksxyDhbBmBMsJJYajId gP3CcbRv0TqmC9/rSoDtX+0vV0btTApVJLfXk7rYytnwAkRoAvWwpLrGSv30LnvTmwzY0z WLpNk2983FbC/CEZxQ5aPQg6yT4E1k+eDy+7aFiNq+dqDJghiHl9pvQa1GO97w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708028924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sRy9rW4QVD+vWHYzWN/pc8aNi9W0cIcouDlDl+UVe+8=; b=D2fQiUadPwQkrId3h6EdGVICoO2NL5oaJU+tNToWVoAQb1UJxdrg/mbty/UOARfVwQ4Jf/ LUff8F/PKnPZJUvZ6Hl8pMAIHDJ3V4IODLRDYLYURe4J7CTIxmVHVnXRPq4ZQxWcNVUs46 YLGXsOHJ3Kjjru5QAd//DvRPvXkVxVG+RgWuerID/bxT654ZBIuFslcs+N+dVX8mLsyrIK 7ShcHBKH5kpbjldsKODqsOPx2tgJUkUwLNGI5hYEievbKMyF9POkk3+YnSZT5Od2ZER9HA Uapd/hfH6pMLCPQhYALsefqwJrusKU8SmDoZm/UqFuDtHGdFOR6Ns5fCSOYfHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708028924; a=rsa-sha256; cv=none; b=WFVoLQVPxZ5yTyF9Y9baxNKl66oWj0F1SNGINkVK4IuykrukNS/H4Y1fAfSF0hBB8eEJBB znmr1vWHu+/Pv9q1pfrP5WhT8OTptl0POERphgi1bQa9GcVnXBmmNivRsoCwPpzjAcCgLX fhczkerJqxJkUVftQQ6FEio2iOli0kauyYCBeMLXVwnUQRfz1Jeejkgc4q8tEJNyEmOYd2 SJKXBXTaVVLQHWaMF0OYJbqXXnEqiaOaBhbjEopPXNr7ixSSFU3Kosjii4m4l/R7ZSbok3 r7vviEEliChwR2Rdx2YwGEAV0gcN8q9EZVoVJVih/kPb3I4sRsSkHK9xhIFpMQ== 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 4TbRV35jJNzwDv; Thu, 15 Feb 2024 20:28:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FKShKv053330; Thu, 15 Feb 2024 20:28:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FKShsA053327; Thu, 15 Feb 2024 20:28:43 GMT (envelope-from git) Date: Thu, 15 Feb 2024 20:28:43 GMT Message-Id: <202402152028.41FKShsA053327@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: 57d312b8eac9 - main - pci_pci: Remove obsolete 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 57d312b8eac9862ae60da32a9aecb6d9ccf08171 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=57d312b8eac9862ae60da32a9aecb6d9ccf08171 commit 57d312b8eac9862ae60da32a9aecb6d9ccf08171 Author: John Baldwin AuthorDate: 2024-02-15 02:04:34 +0000 Commit: John Baldwin CommitDate: 2024-02-15 20:27:45 +0000 pci_pci: Remove obsolete comment This comment referred to the layering violation fixed in commit b377ff8110e3489eb6e6b920b51a2384dfc4eb0b. --- sys/dev/pci/pci_pci.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c index 02fa8cf1fb9e..cda1597ac76e 100644 --- a/sys/dev/pci/pci_pci.c +++ b/sys/dev/pci/pci_pci.c @@ -1931,11 +1931,6 @@ pcib_suballoc_resource(struct pcib_softc *sc, struct pcib_window *w, pcib_child_name(child)); rman_set_rid(res, *rid); - /* - * If the resource should be active, pass that request up the - * tree. This assumes the parent drivers can handle - * activating sub-allocated resources. - */ if (flags & RF_ACTIVE) { if (bus_activate_resource(child, type, *rid, res) != 0) { rman_release_resource(res); From nobody Thu Feb 15 21:30: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 4TbSsQ3sqkz5BHXQ; Thu, 15 Feb 2024 21:30: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbSsQ2d9nz4Sjg; Thu, 15 Feb 2024 21:30:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mpMuPGssXV7JWsR/yrhrwce2tDP+Ehb+Whzc+mKNl4U=; b=i5TU/dqJ6mT2gUDaos/ITYlg00iDEvSfjhppNfraaJj1dwRt/NJUpyScsanGBlmzEWFoKo 1lo3SWh/mZtnJb0GFWbzH6+FETGt7LcUVfUi3rUCyXnf0yMmxQV4QweAvWjlUey+oeXNeP 9qIX9osAZgFk+Mp1LigfKKrhk2iqAX9a0b2HCyCCGl/wRKm5OLe2y0mHmQ5jmRme5dR+Xb qS84C6eCZd2h/6IPbr+hxE8pzNMshR6zMjEYcZwz3tWo+3iCUgVy1o0batetdDKV/tpvB+ EIwVpjhKoOQ+I/SliqE7qXGgcf0RAQbenZxc5/jSL9bTGpTFPE7TeXMwbUO2SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mpMuPGssXV7JWsR/yrhrwce2tDP+Ehb+Whzc+mKNl4U=; b=Uq4QE605bolp8uTZ1z3LrOaQL5tlJ6Rbqr5lQqMw/nAjIEQDlp/B6AsuEUU8ccFrnJqsaA Ui9DmQTXyiQuATkibenIH4Dg1ohRniOYUM1A+vw9rfN0oZl+GSnOPdVyGpcJwWwHaJbAcy SgqdtysIPiiDJxWpwC4pqspuDHEIZ9Zq3s8EcplsJkRI/xzaShO2hBcplrBCWikSy31YA7 wZ85x8ytFKm9dakBPGEpXU93vh95q8Lh7iE+MNfqSkr7nWkYXKuAdFzhxgauD0fx1J2FrB TVGOiWWVK8XLRSB0tyWBVXjBx4ofVtZqzV/yUca/Ja8BFFMGZB9raHz1owyjzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708032634; a=rsa-sha256; cv=none; b=RIoqxphPRpTrR86A0eq43mm3mqYtTovubGzJ39REXI/jyT7C9eyY/I2pLbr+tspgjEUsxX Z+4QgO0WddXztYKqVq2LZGZZZu7/Xex7z2SUMoi3TWthxGt3ZumBGfLyRIYSnWHRsf+kVC DYiLS99rotE7Ki5SjWlaclTsN6EcsyZXffu0/iwiZ5YhCxYy/XBYy72YlmkxEES4jAqvdM oDesBvFA3xTyRJeCCv/YC+5/bKcbZw8xePDaH0dj0atK42peXr9YDfORThuk7dRooaxzLB Mr1wASfGX2HXOSC5DByuh6thZlOzPRfd+8+uiMnJxBGvjB83rXhTQD5dPmVKVg== 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 4TbSsQ1hSczy3V; Thu, 15 Feb 2024 21:30:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FLUYIf063422; Thu, 15 Feb 2024 21:30:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FLUYfZ063419; Thu, 15 Feb 2024 21:30:34 GMT (envelope-from git) Date: Thu, 15 Feb 2024 21:30:34 GMT Message-Id: <202402152130.41FLUYfZ063419@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: f8041e3628bd - main - Heimdal: Fix transit path validation CVE-2017-6594 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f8041e3628bd70cf5562a9c13eb3d6af8463e720 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=f8041e3628bd70cf5562a9c13eb3d6af8463e720 commit f8041e3628bd70cf5562a9c13eb3d6af8463e720 Author: Cy Schubert AuthorDate: 2024-02-14 19:56:18 +0000 Commit: Cy Schubert CommitDate: 2024-02-15 21:27:54 +0000 Heimdal: Fix transit path validation CVE-2017-6594 Apply upstream b1e699103. This fixes a bug introduced by upstream f469fc6 which may in some cases enable bypass of capath policy. Upstream writes in their commit log: Note, this may break sites that rely on the bug. With the bug some incomplete [capaths] worked, that should not have. These may now break authentication in some cross-realm configurations. Reported by: emaste Security: CVE-2017-6594 Obtained from: upstream b1e699103 MFC after: 1 week --- crypto/heimdal/kdc/krb5tgs.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crypto/heimdal/kdc/krb5tgs.c b/crypto/heimdal/kdc/krb5tgs.c index 19d669798830..cde869522e23 100644 --- a/crypto/heimdal/kdc/krb5tgs.c +++ b/crypto/heimdal/kdc/krb5tgs.c @@ -655,8 +655,12 @@ fix_transited_encoding(krb5_context context, "Decoding transited encoding"); return ret; } + + /* + * If the realm of the presented tgt is neither the client nor the server + * realm, it is a transit realm and must be added to transited set. + */ if(strcmp(client_realm, tgt_realm) && strcmp(server_realm, tgt_realm)) { - /* not us, so add the previous realm to transited set */ if (num_realms + 1 > UINT_MAX/sizeof(*realms)) { ret = ERANGE; goto free_realms; @@ -737,6 +741,7 @@ tgs_make_reply(krb5_context context, const char *server_name, hdb_entry_ex *client, krb5_principal client_principal, + const char *tgt_realm, hdb_entry_ex *krbtgt, krb5_enctype krbtgt_etype, krb5_principals spp, @@ -798,7 +803,7 @@ tgs_make_reply(krb5_context context, &tgt->transited, &et, krb5_principal_get_realm(context, client_principal), krb5_principal_get_realm(context, server->entry.principal), - krb5_principal_get_realm(context, krbtgt->entry.principal)); + tgt_realm); if(ret) goto out; @@ -1494,6 +1499,8 @@ tgs_build_reply(krb5_context context, krb5_keyblock sessionkey; krb5_kvno kvno; krb5_data rspac; + const char *tgt_realm = /* Realm of TGT issuer */ + krb5_principal_get_realm(context, krbtgt->entry.principal); hdb_entry_ex *krbtgt_out = NULL; @@ -2240,6 +2247,7 @@ server_lookup: spn, client, cp, + tgt_realm, krbtgt_out, krbtgt_etype, spp, From nobody Thu Feb 15 21:30: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 4TbSsR4Xmfz5BHGy; Thu, 15 Feb 2024 21:30: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbSsR3yjDz4SQM; Thu, 15 Feb 2024 21:30:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SdQZCR3x40C7tkvC3XH2ill+wLRb9gnYRxIhgvN08zM=; b=Ct9/k2S/zDWzVJG1cFYpoRuiS7pimr8QpJGFTUGhUOAEvlvFHQQX5YMYwDQmA+A+ac96I4 /zycxbmsOeBJgtXmvZYrMhpp2gvmzied2Do0qBnT50zj+pNTZCKXCSqfsg8xS8sX+mV7FR c/99ZNwVVHwYet1/oHqggdj9+ZqjSdqt/yUnNWXSmI/V92wBWSlOzzviMUNg44qfe7eNXd DOkYFsopi/GQSDYkLWVUFtaFyRZWOwYslrPzKuDgPkhs/g6bOE+bHHQG6Is8RFVdMOXsJX ZnHoVsi1J0/BOvGB9UxphJQwmcF9wNfm4UnyDmTZKCILULDY5oe0CgTb3tIlCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032635; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SdQZCR3x40C7tkvC3XH2ill+wLRb9gnYRxIhgvN08zM=; b=AyiOjY4qr/JaF0hDPDoj4+lj7IFctarmrUR/+ERFj7WheOmajfDw0tn6dKMXqL+JNVqgtl P5Rkz76cBZh5da7iHYnnMMm+W+EVGlv64kLxYyb9NH7t5qCrjKZyDSdJu3c1cQr5BDw9we Ts5Y8fKa1NuV7ChW05usIdVS4GCULS6/LBDHe1lXHBHfTCF+AW/D5Y5UOM+R10C9rqlupc +GetJF3I3aksJPaAaqGFECCiYIps015sgi5GJtorG0nbqqTZgFnhuww93ueJYfhLkBJIkA v4XAqyC8tQP0FMEYY45AvJHn+dv5vzcHWcIaM1TINTGikwPZVT2kkpAnFmMCQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708032635; a=rsa-sha256; cv=none; b=lDP8ViTOxO7tk8/H8tvVjpKQ4iLr3ytzquIkwKnIqc8yWWKDyIxZ3VgED2PGT3LxG8YSBI 13+9WkHB/JNhV6QzA2bIF3pMOrKFiP0mJoMXWj1t+z6B+VDqGSh7UGfvh5ex3qZTaQ9Z1/ 9EnQ4asrFqrnhLzBkWv2J5g6M18E3pNaH25gkU438zg9o5y00ntDH9mEeZfAcLEeJJlByU AqY8MgzElJVkKGagSu7F0cNx/1KUEV1YqftZ4T7htWTWjfZrGzXNnQljK4iRxhjVwa+sXO GUi8kCWmqgMyebwuyG7tW22p6w3SDLi79jiL0g7wTssS3cSHNAta4ekZNtABBg== 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 4TbSsR2kPJzyC5; Thu, 15 Feb 2024 21:30:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FLUZo4063476; Thu, 15 Feb 2024 21:30:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FLUZJA063473; Thu, 15 Feb 2024 21:30:35 GMT (envelope-from git) Date: Thu, 15 Feb 2024 21:30:35 GMT Message-Id: <202402152130.41FLUZJA063473@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 24339377490f - main - Heimdal: CVE-2018-16860 Heimdal KDC: Reject PA-S4U2Self with unkeyed checksum 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 24339377490f9e362d040712b534d2963decd2d7 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=24339377490f9e362d040712b534d2963decd2d7 commit 24339377490f9e362d040712b534d2963decd2d7 Author: Cy Schubert AuthorDate: 2024-02-14 20:04:30 +0000 Commit: Cy Schubert CommitDate: 2024-02-15 21:27:54 +0000 Heimdal: CVE-2018-16860 Heimdal KDC: Reject PA-S4U2Self with unkeyed checksum Upstream's explanation of the problem: S4U2Self is an extension to Kerberos used in Active Directory to allow a service to request a kerberos ticket to itself from the Kerberos Key Distribution Center (KDC) for a non-Kerberos authenticated user (principal in Kerboros parlance). This is useful to allow internal code paths to be standardized around Kerberos. S4U2Proxy (constrained-delegation) is an extension of this mechanism allowing this impersonation to a second service over the network. It allows a privileged server that obtained a S4U2Self ticket to itself to then assert the identity of that principal to a second service and present itself as that principal to get services from the second service. There is a flaw in Samba's AD DC in the Heimdal KDC. When the Heimdal KDC checks the checksum that is placed on the S4U2Self packet by the server to protect the requested principal against modification, it does not confirm that the checksum algorithm that protects the user name (principal) in the request is keyed. This allows a man-in-the-middle attacker who can intercept the request to the KDC to modify the packet by replacing the user name (principal) in the request with any desired user name (principal) that exists in the KDC and replace the checksum protecting that name with a CRC32 checksum (which requires no prior knowledge to compute). This would allow a S4U2Self ticket requested on behalf of user name (principal) user@EXAMPLE.COM to any service to be changed to a S4U2Self ticket with a user name (principal) of Administrator@EXAMPLE.COM. This ticket would then contain the PAC of the modified user name (principal). Reported by: emaste Security: CVE-2018-16860 Obtained from: Upstream c6257cc2c MFC after: 1 week --- crypto/heimdal/kdc/krb5tgs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crypto/heimdal/kdc/krb5tgs.c b/crypto/heimdal/kdc/krb5tgs.c index cde869522e23..cf1cd3dc1ad0 100644 --- a/crypto/heimdal/kdc/krb5tgs.c +++ b/crypto/heimdal/kdc/krb5tgs.c @@ -1892,6 +1892,13 @@ server_lookup: goto out; } + if (!krb5_checksum_is_keyed(context, self.cksum.cksumtype)) { + free_PA_S4U2Self(&self); + kdc_log(context, config, 0, "Reject PA-S4U2Self with unkeyed checksum"); + ret = KRB5KRB_AP_ERR_INAPP_CKSUM; + goto out; + } + ret = _krb5_s4u2self_to_checksumdata(context, &self, &datack); if (ret) goto out; From nobody Thu Feb 15 21:30: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 4TbSsS6xbCz5BHMH; Thu, 15 Feb 2024 21:30: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbSsS4h9Wz4Sdp; Thu, 15 Feb 2024 21:30:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7gycz8+/iBHndwYYh7Qdv2EeBIFaRJVOhZ47nR3KXOA=; b=EGKiLKCaLU/CzUu6oU7rqNGck2u4eWIVSI9bA1B7CX58hnWAZysiF1sSnSZ6cTqNxQkgAU fwVahg4JUClUBWcOCWNEa/tydW/g0BGkpF7u+7Nk8QydFNJJuhlyqotAHxQsQX+wnKNmFu 71OfAxrG5akThch2YWiY/q0d7heaxGdMr+/NXJqOlG/hJjrSrftdxXpq8wwUuDODvDZU5q iLAB/FkU48ncxVSduLGdAKQyGE8SngWSsJb9AiFzaCJehgL9wACJb9t/pLbSSrsMTn2DRY hAe5KM9G+6O6LEKzFUf3F779HlVCm3IGyV0kXGGGE9zYjlllhS3xEa3wEePWwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7gycz8+/iBHndwYYh7Qdv2EeBIFaRJVOhZ47nR3KXOA=; b=kDq66oDFUhOPIt3HBDzZtr/RBYUxarEx/PCMibp3PR8jyxBhyI5fQGeIzVlIKa5t6NHS1k dBLj7GeUlzwI+3K1QhgTPRAaUl0slH3/xcyWm2kMqCGaZuK3Rl9Jh6JVnp3wIoPTowTEJX uNYcZgbr/myNPl0esUnUG0HGQQZEbI0fPMyi4RDLFQBC00U6B9nPeVqAih5GXVkD4VUoZY aD7VSmgl4/Fkd0KhFmZoTRUD/N1nHIezUM59npZXlisjvY+yfoy1Z8uU5pY2igWFmx51pz O5yb7mte4k/vjlw2TljRgBv74qd3GiOKHUeOJ2UKo9nNMSGxytLcnaCTNYz7og== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708032636; a=rsa-sha256; cv=none; b=QbfzvvRXOF4pNnTJ9T8TATozGXGvcwtlENO6gviY1Rj2V7NoPUzPK0HkztNUjwRGetI/L6 1hdQrH4nzFJPLvRtkFWu4Wr53aZJYCUfLVeQDNeSKGcTALIVT4kXTl755Ey+cEXMcglHmM BkgmAAZsevbp8umVq+I1dOKg+8TrAZfHA6fzzjE6q7BCjo8fwtoEDtulZIclVOov64tPiY mDgxXsVliOHyqpHU/6Rv5tSdFrC27q3XA/UdLsFKvB0U906L9F4rQfnMV06KFvPoGBsJwQ 9slg7n/E3eEWk6MwqLujM7m/+OYrVjmkFqYxc/H78z993ulpSNc0HBJUe4LjUg== 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 4TbSsS3lkFzy0d; Thu, 15 Feb 2024 21:30:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FLUaRK063527; Thu, 15 Feb 2024 21:30:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FLUac3063524; Thu, 15 Feb 2024 21:30:36 GMT (envelope-from git) Date: Thu, 15 Feb 2024 21:30:36 GMT Message-Id: <202402152130.41FLUac3063524@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 9286d46a794f - main - heimdal: CVE-2022-41916: Check for overflow in _gsskrb5_get_mech() 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9286d46a794f25482880d29864a8901ef6666fae Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=9286d46a794f25482880d29864a8901ef6666fae commit 9286d46a794f25482880d29864a8901ef6666fae Author: Cy Schubert AuthorDate: 2024-02-15 00:54:46 +0000 Commit: Cy Schubert CommitDate: 2024-02-15 21:27:55 +0000 heimdal: CVE-2022-41916: Check for overflow in _gsskrb5_get_mech() Apply upstream 22749e918 to fix a buffer overflow. Upstream notes: If len_len is equal to total_len - 1 (i.e. the input consists only of a 0x60 byte and a length), the expression 'total_len - 1 - len_len - 1', used as the 'len' parameter to der_get_length(), will overflow to SIZE_MAX. Then der_get_length() will proceed to read, unconstrained, whatever data follows in memory. Add a check to ensure that doesn't happen This is similar to samba CVE-2022-3437. Reported by: emaste Security: CVE-2022-41916 Obtained from: upstream 22749e918 MFC after: 1 week --- crypto/heimdal/lib/gssapi/krb5/decapsulate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/heimdal/lib/gssapi/krb5/decapsulate.c b/crypto/heimdal/lib/gssapi/krb5/decapsulate.c index 343a3d7acb97..7a18708a633a 100644 --- a/crypto/heimdal/lib/gssapi/krb5/decapsulate.c +++ b/crypto/heimdal/lib/gssapi/krb5/decapsulate.c @@ -56,6 +56,8 @@ _gsskrb5_get_mech (const u_char *ptr, return -1; if (total_len < 1 + len_len + 1) return -1; + if (total_len < 1 + len_len + 1) + return -1; p += len_len; if (*p++ != 0x06) return -1; From nobody Thu Feb 15 21:30: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 4TbSsV0gmhz5BHMK; Thu, 15 Feb 2024 21:30: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbSsT53myz4Sdy; Thu, 15 Feb 2024 21:30:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bGAtK/wUqVvLz4SAscGdicGvcey2QEPBYsQKiKYmS8o=; b=MkeEtqFmHNako68o1YkQqUNdgVDozXSk9qXv5svZpFYOU/P5bktWsY4pFO9azv2NhkhG8j JOr1XnwjDzfrkH+Ep95Vnb3jlyEtrltBqnFsXX+HHbVfDBTXV/RK2b2k9ivrOLJcFfYJBi kuo8FuLHJ18VTOFoUTCKQM/Ewu+/NXwyfKDbf98xhd11SGQ9nnr5CyAkZNX8qVFB039Ev6 fIQljQdomCr3JJ61ibojEmdbTeZRpijpRz3e9zegz73jrtxT9UhMPU9jvwxp4cAaS+TZWo IHV7LcoSSV+nDvx3rvwmshEVKQjEQCFOJkYujGrOKnO7ak6P94CC1EdhiAF4rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bGAtK/wUqVvLz4SAscGdicGvcey2QEPBYsQKiKYmS8o=; b=lLzqVUW1dB5ghaTQ8LnpYjb2rVYxcARMtRbNAGyT9ZTWvD6efhuCOywT/0CooSGa3iQCUb lwslVAoXeJ1y+FEe7229l8DsBLxz7PUks84kCGV2Zdr2YG4IfTv/q0knw+RhrE/zV2ud19 m9l6H3GyMTnq/S06nQCJW1g5BKWGeauxQq37XSc51x+S9EP/r2sHbniMlHwC8xhyp+Zho3 0LcH2ZHf4g7D7aNYmsOkaBpAhBfnSmS68kL58xyFpeBroMYUfC6tOjWMQg+ziGMC2KzevQ /Zknuu82n7N6tELppQlCHxBQEBSCH6ByQ1cRY4CQuzU0N1bb9ptPYNE0kBHKlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708032637; a=rsa-sha256; cv=none; b=D1L/qXrDlrgifviXay2ldmrLF46g/9O4Ag39+BUB1eJkhbF3EZoZoSehemEAOzOFalPAyW jUcGvpFqE39exHRcDy1iXtRQVYNsZSbJa+LZ5RVKMxoSU0SBt5HRRQSiPTH+ZPmu+4L84q Om4pgXRvkNh2H4LjNNuf/mGahNfPav64PzZdCxX/EyuOQH2bMKJRnfddD99jXgxmecoTAv LjEQs8P28Lg5THUGciNOUJC1J5fUR4OhjzCbrRLwBCJx7AGrs5mPCPFCx9qaKWbMoQ8ezu g7r4jJ+5aB6wInSY/UI20S+TGYxZKPPJAMBm75xH5REwwd6W7tFlKO9byRU8IA== 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 4TbSsT49GTzxxr; Thu, 15 Feb 2024 21:30:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FLUbGG063582; Thu, 15 Feb 2024 21:30:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FLUbnO063579; Thu, 15 Feb 2024 21:30:37 GMT (envelope-from git) Date: Thu, 15 Feb 2024 21:30:37 GMT Message-Id: <202402152130.41FLUbnO063579@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 60616b445eb5 - main - heimdal: always confirm PA-PKINIT-KX for anon PKINIT 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 60616b445eb5b01597092fef5b14549f95000130 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=60616b445eb5b01597092fef5b14549f95000130 commit 60616b445eb5b01597092fef5b14549f95000130 Author: Cy Schubert AuthorDate: 2024-02-15 01:58:06 +0000 Commit: Cy Schubert CommitDate: 2024-02-15 21:27:55 +0000 heimdal: always confirm PA-PKINIT-KX for anon PKINIT Import upstream 38c797e1a. Upstream notes: RFC8062 Section 7 requires verification of the PA-PKINIT-KX key excahnge when anonymous PKINIT is used. Failure to do so can permit an active attacker to become a man-in-the-middle. Reported by: emaste Obtained from: upstream 38c797e1a Security: CVE-2019-12098 MFC after: 1 week --- crypto/heimdal/lib/krb5/krb5_locl.h | 1 + crypto/heimdal/lib/krb5/pkinit.c | 92 +++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/crypto/heimdal/lib/krb5/krb5_locl.h b/crypto/heimdal/lib/krb5/krb5_locl.h index d0c68927ffbd..0ea132f94c82 100644 --- a/crypto/heimdal/lib/krb5/krb5_locl.h +++ b/crypto/heimdal/lib/krb5/krb5_locl.h @@ -240,6 +240,7 @@ struct _krb5_get_init_creds_opt_private { #define KRB5_INIT_CREDS_CANONICALIZE 1 #define KRB5_INIT_CREDS_NO_C_CANON_CHECK 2 #define KRB5_INIT_CREDS_NO_C_NO_EKU_CHECK 4 +#define KRB5_INIT_CREDS_PKINIT_KX_VALID 32 struct { krb5_gic_process_last_req func; void *ctx; diff --git a/crypto/heimdal/lib/krb5/pkinit.c b/crypto/heimdal/lib/krb5/pkinit.c index 7164a118c34a..3c914bb31f35 100644 --- a/crypto/heimdal/lib/krb5/pkinit.c +++ b/crypto/heimdal/lib/krb5/pkinit.c @@ -1306,6 +1306,98 @@ pk_rd_pa_reply_enckey(krb5_context context, return ret; } +/* + * RFC 8062 section 7: + * + * The client then decrypts the KDC contribution key and verifies that + * the ticket session key in the returned ticket is the combined key of + * the KDC contribution key and the reply key. + */ +KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL +_krb5_pk_kx_confirm(krb5_context context, + krb5_pk_init_ctx ctx, + krb5_keyblock *reply_key, + krb5_keyblock *session_key, + PA_DATA *pa_pkinit_kx) +{ + krb5_error_code ret; + EncryptedData ed; + krb5_keyblock ck, sk_verify; + krb5_crypto ck_crypto = NULL; + krb5_crypto rk_crypto = NULL; + size_t len; + krb5_data data; + krb5_data p1 = { sizeof("PKINIT") - 1, "PKINIT" }; + krb5_data p2 = { sizeof("KEYEXCHANGE") - 1, "KEYEXCHANGE" }; + + heim_assert(ctx != NULL, "PKINIT context is non-NULL"); + heim_assert(reply_key != NULL, "reply key is non-NULL"); + heim_assert(session_key != NULL, "session key is non-NULL"); + + /* PA-PKINIT-KX is optional unless anonymous */ + if (pa_pkinit_kx == NULL) + return ctx->anonymous ? KRB5_KDCREP_MODIFIED : 0; + + memset(&ed, 0, sizeof(ed)); + krb5_keyblock_zero(&ck); + krb5_keyblock_zero(&sk_verify); + krb5_data_zero(&data); + + ret = decode_EncryptedData(pa_pkinit_kx->padata_value.data, + pa_pkinit_kx->padata_value.length, + &ed, &len); + if (ret) + goto out; + + if (len != pa_pkinit_kx->padata_value.length) { + ret = KRB5_KDCREP_MODIFIED; + goto out; + } + + ret = krb5_crypto_init(context, reply_key, 0, &rk_crypto); + if (ret) + goto out; + + ret = krb5_decrypt_EncryptedData(context, rk_crypto, + KRB5_KU_PA_PKINIT_KX, + &ed, &data); + if (ret) + goto out; + + ret = decode_EncryptionKey(data.data, data.length, + &ck, &len); + if (ret) + goto out; + + ret = krb5_crypto_init(context, &ck, 0, &ck_crypto); + if (ret) + goto out; + + ret = krb5_crypto_fx_cf2(context, ck_crypto, rk_crypto, + &p1, &p2, session_key->keytype, + &sk_verify); + if (ret) + goto out; + + if (sk_verify.keytype != session_key->keytype || + krb5_data_ct_cmp(&sk_verify.keyvalue, &session_key->keyvalue) != 0) { + ret = KRB5_KDCREP_MODIFIED; + goto out; + } + +out: + free_EncryptedData(&ed); + krb5_free_keyblock_contents(context, &ck); + krb5_free_keyblock_contents(context, &sk_verify); + if (ck_crypto) + krb5_crypto_destroy(context, ck_crypto); + if (rk_crypto) + krb5_crypto_destroy(context, rk_crypto); + krb5_data_free(&data); + + return ret; +} + static krb5_error_code pk_rd_pa_reply_dh(krb5_context context, const heim_octet_string *indata, From nobody Thu Feb 15 21:30: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 4TbSsW0DXfz5BHRd; Thu, 15 Feb 2024 21:30: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbSsV6HyQz4Smq; Thu, 15 Feb 2024 21:30:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XNSlEEhwZ5m0tSCEB1bIi7x3K1DCo03iNaXD988YXMs=; b=YITpZMFHHxkvI+C5PHa0UqF37w+/jQJrBEAeDlUxfIDd7q4zzt2QU0wc9Yottlgy44X1pg j9kDGrWhXrgIvfOShEL72Z2HPFHFSp0cqwTxzeszwAt35RIE3Em5g6RAP6eVY0XoqwBqS2 fGRL7FOTG9n/saB0uPO4RhI1bgVjNNjQY8UqlPFfcqB5jdw4QTDc+jEUct3d0QzNi/JUGo 6yzmNdXFOk+hcUsiT/6uK802usxdbvOiBlU/ps8adXkJktQRAMtRCHJnx0H6LJQktDdWLc u1jvyq+6VsL7uxaeu6yDEydFE/TWqjtN9dsU2FVoetsZYY9J2nsLpF3UGw91sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XNSlEEhwZ5m0tSCEB1bIi7x3K1DCo03iNaXD988YXMs=; b=sDN5WVFkPcdKiaHfIDKmBrYMtTS8wEOzUOndujizYXi6Q17ECXpi7EV95KkR61KUcoMaQ1 5LfZwsEK030XE5PFLWcWJUm2X8ikE5khebUNqwKi5Wn0QPXM+Um1rEIW47Psm1fKeAf/KE uS0xOtpbqAkekDYmb2vA4dTFC6gES3+Z5m125xSvfFNslDhnKwsU9RQqFtPsxAZ3WHKyn1 XZJ670b36d6kHPHNf3rWHc2zfapMZ033Xq0Kw8q7SdtGt8u5OghSzjjXU4CUDvBk7Ir/pL FJEZarmMHkArEYSSH9HIYX/WUdIORgLcssogNvi13C0b2+R9oRJiJPxPt12DdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708032638; a=rsa-sha256; cv=none; b=ly2ylg8g6F/yVT/+CwjYSPhEFTmOxAqNxI2JvS+dyEyMN0JPnv2gSZgx235UIOn+uN3S1T VTei/ZASRHNdCTgHmJTGg6RgpZljBkgOuAOYb2i5x9YwXbWGmhET1JSTTG+l2/wIneE2sW 0jI58kX11u80siQgVrkzP7z0Lnrkd7sUHfOnZEX80w7ugVg/q7NHCIl06WsfXzU5H8X/R2 jMtb4OrEL5m4jTne202IA4nOOO7q+FzccU2uYM/lYIFFzovCEucqU3EceGyS8/RuL/bLgq TJls35VgvhFDnI4S4K1W8+vjJKZ7iu9/l1xsHuLAhrFyaPFF49a39QDhg5yEKA== 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 4TbSsV5PdMzyDr; Thu, 15 Feb 2024 21:30:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FLUcfW063629; Thu, 15 Feb 2024 21:30:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FLUcAK063626; Thu, 15 Feb 2024 21:30:38 GMT (envelope-from git) Date: Thu, 15 Feb 2024 21:30:38 GMT Message-Id: <202402152130.41FLUcAK063626@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: fc773115fa2d - main - heimdal: Fix NULL deref 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fc773115fa2dbb6c01377f2ed47dabf79a4e361a Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=fc773115fa2dbb6c01377f2ed47dabf79a4e361a commit fc773115fa2dbb6c01377f2ed47dabf79a4e361a Author: Cy Schubert AuthorDate: 2024-02-15 15:41:07 +0000 Commit: Cy Schubert CommitDate: 2024-02-15 21:27:55 +0000 heimdal: Fix NULL deref A flawed logical condition allows a malicious actor to remotely trigger a NULL pointer dereference using a crafted negTokenInit token. Upstream notes: Reported to Heimdal by Michał Kępień . From the report: Acknowledgement --------------- This flaw was found while working on addressing ZDI-CAN-12302: ISC BIND TKEY Query Heap-based Buffer Overflow Remote Code Execution Vulnerability, which was reported to ISC by Trend Micro's Zero Day Security: CVE-2022-3116 Obtained from: upstream 7a19658c1 MFC after: 1 week --- crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c b/crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c index b60dc19ad8e3..48542f06fcbe 100644 --- a/crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c +++ b/crypto/heimdal/lib/gssapi/spnego/accept_sec_context.c @@ -605,7 +605,7 @@ acceptor_start * If opportunistic token failed, lets try the other mechs. */ - if (!first_ok && ni->mechToken != NULL) { + if (!first_ok) { size_t j; preferred_mech_type = GSS_C_NO_OID; From nobody Thu Feb 15 21:32: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 4TbSw65C7rz5BHqQ; Thu, 15 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbSw64WRKz4VF8; Thu, 15 Feb 2024 21:32:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0u3CPzJiDgIHXUmQayNbwdTx0BEgrz4LzrXLtjbZMAY=; b=GtwZ8FyNaOzDLj62Z6wA/fxWQ/6gw0OqyeKTbSjQjHSW0y3CaGm0AY0xzOPYYX1Vk8AJ58 8mrquHbut5fA0NZECY+v8Kk5Wn6gAoJfmPUJMexQAOz1t27FiXwvRnR8g4h+NegzoWyyur vPzmvlx8lluJx0Li6WVcqX0W79IlfNTC9JcD7mIvYsmNae1fz8UZA5FtysnTHGVzpvRrzK CfD47OqM0h5eQoBCr5IVvKa+wIj/pew++mbcbSmHffByqVCLD0YPNGAVUZGUaC6PK7bfqj RiuN6U2MBy1URXRDveutOUAMMHziIPYXTiRehny3GV/f3rKlK1IIbCM+0foTbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708032774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0u3CPzJiDgIHXUmQayNbwdTx0BEgrz4LzrXLtjbZMAY=; b=YWO9dOfFeNEuUbzSz+1Abj+0d4xiN1pU7o0IHC0glEKLJdc4y1p9l+StTv/N0J0o1Gzsha OBDHnbX/4QA2wq9Yhm/2PdTHvZsasm+dBk1OOuery8K56gfVzC2mJ1fJjwQlklF89RjcaE II2tSpcb32TXHiaCcknKmfWj3ffLDIh+S+pkbNvD7PYFWveTMR9msoA+/h/BGuxjasxZ8k PJLF/MnGvwoMYWdVDEH+1R7nebHzC0QHt5x9rDrsYv0lC4BowSuZQO0gT988rCY9jrkA9S GpmN6r5cbBuYDUeYIIpicdRG2t3MMzWtr9qyHf/N1l/h/IkjS+brPwup7K5V8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708032774; a=rsa-sha256; cv=none; b=PCW15/fKE3czFvLkLHI9kSJ/7r0N66edj2cgJrjPpn12qDkP8FQaxnqKVoY36tCQJQ3G7P pjoqEjFNqEuFsEE/25mhuHUOwTddIAt+MMjcBwM91MHG36Et1Fdbqf2qIWiBr+rAHztsQx CBscrxbUHOP77NRhoHuWQyNvGRupDsu1E5wi+rdWa3XTO1cw835HAFsKsBNIzFkcflYeyg npCAjwhDQCX+Myg9UvbSX+AcCKzYLJkllD546bEyLWRSDc2jbZub4BvUoVi7rZaR6tV7sR W6phBhO1ueWcivtx8MLs45Ok8pfWglM7rETsUVm67Hc1iIjAVJfGVWiYIiqhNQ== 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 4TbSw63ZqCzxyd; Thu, 15 Feb 2024 21:32:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FLWsK5070758; Thu, 15 Feb 2024 21:32:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FLWsjE070755; Thu, 15 Feb 2024 21:32:54 GMT (envelope-from git) Date: Thu, 15 Feb 2024 21:32:54 GMT Message-Id: <202402152132.41FLWsjE070755@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: e32de9626f1a - main - reboot: initialize howto 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e32de9626f1aaf6a564c93a139b43a1bad70fa2e Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e32de9626f1aaf6a564c93a139b43a1bad70fa2e commit e32de9626f1aaf6a564c93a139b43a1bad70fa2e Author: Warner Losh AuthorDate: 2024-02-15 21:28:54 +0000 Commit: Warner Losh CommitDate: 2024-02-15 21:32:04 +0000 reboot: initialize howto Make static analyzers happy by initialzing howto to 0. Coverity is cranky that it could be used unused. But it's analysis is incomplete because the args to getopt when it wasn't initialized preclude it from being used. --- sbin/reboot/reboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index a31c31892745..e9d6487da6a5 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -175,7 +175,7 @@ main(int argc, char *argv[]) { struct utmpx utx; const struct passwd *pw; - int ch, howto, i, sverrno; + int ch, howto = 0, i, sverrno; bool Dflag, fflag, lflag, Nflag, nflag, qflag; uint64_t pageins; const char *user, *kernel = NULL, *getopts = GETOPT_REBOOT; @@ -188,6 +188,7 @@ main(int argc, char *argv[]) donextboot = true; getopts = GETOPT_NEXTBOOT; /* Note: reboot's extra opts return '?' */ } else { + /* reboot */ howto = 0; } Dflag = fflag = lflag = Nflag = nflag = qflag = false; From nobody Thu Feb 15 23:56: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 4TbX6H2hDcz511gL; Thu, 15 Feb 2024 23:56: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbX6H0yQ6z4nVs; Thu, 15 Feb 2024 23:56:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708041415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cJ/0Xx0MYibNLOvZEA0LjSA7kvpQtmktwQptNh1SQEE=; b=ihsDokKn5b/E9fAaqdVfLjfTBZ5rMdqFZT/hkanXoborAM+QLeb/JkOt2CGUzaM60nEQgh Pgu81xlIAL9jI0bNwazoatYVmn2vPWnPokOOmNgIOwopGyBTEPB6jxrLviflH1444PkbHv iA0FNIAiyPI4/1F/qLOIRRFArYv/1b/qxTCiqY6kryZr1KGOaIaXyDUww4r9p950BQOjU8 GJyRVWRPV8sO/4kgPNdvWzKfOvZNj9yyjfkwybsIwUsAwu4CAj8EDoVejGx6RkHVUnD92j X+COkJsulQUnKWzP9noxRL2mTfpu/XrTkM/Iiu7JqBInU9hNOewTLPhqE0MjLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708041415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cJ/0Xx0MYibNLOvZEA0LjSA7kvpQtmktwQptNh1SQEE=; b=KG3hbtH7neb14d2lUNoICmls7IxAgU2w8HfzyvLiOwdCID4Aq4K6ywbsrcJCurmNDRJH16 ke02mV2JmUEx/iU99Q8wG07u/KVIvZd41UK0ZRH8bo+yjm19vGkiQAFt+iVkiwBRi1oY7j ZguT/9gmc5t56eSq0km6aYJMDlMKgGfzwoF1WPDuN4tG4UtRmelEmNmpdg+/eAqpxdogRa kFv5Jr467mEQgIP6veWoRazOYB/EOLJbE+nrmLi6NAGSxK/1tUG601IjYoM84Bi4t8SZXc 7LL4xxx0aZv2YiKZwRviGGbcEadYB24wZn07actZlv8By5xsV4rDLeclegeQrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708041415; a=rsa-sha256; cv=none; b=KwMqczy+VePY7+MBbDqWtcu0/7Z3vbDiNMbymIyShsqDeBLjrTw7Ce8BX9yavIkJ6OGBy+ hoZnO+UTBeri2i9wTrjm0jZjqhrFRs3zENQe20wTTHumjUkw89UWLasnjkYGPusdPtPlm3 jfytgv7b0XvdmhLeTC9MrJpT9wmIzLGpKfuKPbnyWuNduP7BAwpsfoZlMIrKm5r60beNUI HntF+3lIVNQXMBLC/2C4TlDl0nNVagFh7Ye5RxYhp2PaaS6VvHw2I7cbgVHL3qdFOsJ9c9 K9TdS+nRBkn5BRF9JaS+zcMolqs3Dp2I+Kpm1N47muRYXcDSxxzL3V5vCTondw== 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 4TbX6H010fz12PC; Thu, 15 Feb 2024 23:56:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41FNusCK004919; Thu, 15 Feb 2024 23:56:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41FNusZ2004916; Thu, 15 Feb 2024 23:56:54 GMT (envelope-from git) Date: Thu, 15 Feb 2024 23:56:54 GMT Message-Id: <202402152356.41FNusZ2004916@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: a233f7fadfca - releng/13.3 - 13.3: update to BETA3 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13.3 X-Git-Reftype: branch X-Git-Commit: a233f7fadfca5cf806201a97e1e200054c7e87c3 Auto-Submitted: auto-generated The branch releng/13.3 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=a233f7fadfca5cf806201a97e1e200054c7e87c3 commit a233f7fadfca5cf806201a97e1e200054c7e87c3 Author: Colin Percival AuthorDate: 2024-02-15 23:51:17 +0000 Commit: Colin Percival CommitDate: 2024-02-15 23:51:17 +0000 13.3: update to BETA3 Approved by: re (implicit) Sponsored by: https://www.patreon.com/cperciva --- 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 0dd1a0604180..a71331c3bb6f 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -53,7 +53,7 @@ TYPE="FreeBSD" REVISION="13.3" -BRANCH="BETA2" +BRANCH="BETA3" if [ -n "${BRANCH_OVERRIDE}" ]; then BRANCH=${BRANCH_OVERRIDE} fi From nobody Fri Feb 16 00:05: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 4TbXJ22MNqz513Dr; Fri, 16 Feb 2024 00:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbXJ21S1gz4pMP; Fri, 16 Feb 2024 00:05:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708041922; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8iUH40Mkc5viit4oCsSJ2VPRBikhqS2Ji5sociC5QiE=; b=dE463NmmrE4ifiD8k384aqiQ7s63imwRVztB6I3U/UJOdWAJ7uq2JW2oDgbycrtWIRbP+Y NMVPjm5yUfw2yUqOT6Syd0j8TBqgViXuwasGlWiExJAbfZ09HQN3/p/USX2uB0cw1GpWYx lMIwgu9JiI0KLGvW4XjS1Ea59xy/nzkcYnwwr40Po5Vf5E0u+88C3SRcflkgmWVJAwbOmp JAzzS3LcCrE9TN8cEFM27WBqK7CKp5UC3/g2vy/GqY9Utf64V3n8V/ThFrx8GbpH34eBjY iBuU8JE8p2d48Y14b6LGPYJKv5vrCbAN79dD71iM3ejsJKxf9BaVdRpr4BVlUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708041922; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8iUH40Mkc5viit4oCsSJ2VPRBikhqS2Ji5sociC5QiE=; b=UrhUmuBrwh0/wW2emQ66vbqJSyAR/cN6f1bKIIs3U6zjhp4CkRLsYmOlIYrBxmupfhidsH qvZd5U2Rm2ZWMST9NlwiMRI2c1yvkk/kWkUvPTFEgPav7mA8JZ/Q/mRG4WkmqEtzw17ctj 3OlV6nHemwoBubo7G78wAYOfAGsCGjXNOqmY6/iDSrAF4jbroM/1BVtxF2C9qdj8ud0cat juR3OIP5jZM/fLRJRA/7sdY5Jqzu5gPErhuwzLGoGda3huP4RKAHoWq8AudocaFDziu+64 b60MR990tUVjU+f7cPffDHWZqvQQ8mJ3tbcoHt4ysxkhVPddgC+pvu7lEWjCTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708041922; a=rsa-sha256; cv=none; b=yj07h6Fj7nr6gqeeSn4to7j4q7u2oNeZ+KZGwjowjl1CUpr0ipBjNbY4eJyNtLL1GMoloo EJoGa3saNFO9cCtL9vESFCVW/j9DhZCPyxoGq38B9VrOIaqdK2dvRs+eyB7Y50tZ3rheFN XDWoKt0/74knUsvwo/9sD8zkxbU4eOmYs/+79Czh0XaHdcVvbRQnEiCs6vqZRebK8KvQ1h qz0S4IHscrtRWF61pj1B3ck9IDoRUENCZUlpdtTLyVkQhOtVVKiUpYiOrhszab4jHUlUcw BQEGHyAlRF3TiN0+aau+cfMEItLe7GRgNEj7PVFy6MHJVRBekfdcBIqKJI5hpw== 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 4TbXJ20Pwpz12tj; Fri, 16 Feb 2024 00:05:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G05L12023000; Fri, 16 Feb 2024 00:05:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G05LHJ022997; Fri, 16 Feb 2024 00:05:21 GMT (envelope-from git) Date: Fri, 16 Feb 2024 00:05:21 GMT Message-Id: <202402160005.41G05LHJ022997@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: 4505c8924202 - main - simplebus: Map SYS_RES_IOPORT to SYS_RES_MEMORY later in alloc_resource 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 4505c89242025f840023cdf092fdab845586f42d Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4505c89242025f840023cdf092fdab845586f42d commit 4505c89242025f840023cdf092fdab845586f42d Author: John Baldwin AuthorDate: 2024-02-16 00:04:50 +0000 Commit: John Baldwin CommitDate: 2024-02-16 00:04:50 +0000 simplebus: Map SYS_RES_IOPORT to SYS_RES_MEMORY later in alloc_resource Specifically, the set/get_resource methods do not currently remap resource types, so remap the type in alloc_resource only after looking for a matching resource list entry. Fixes: 3cf553288b96 simplebus: Consistently map SYS_RES_IOPORT to SYS_RES_MEMORY --- sys/dev/fdt/simplebus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c index bf6fceb48a9c..71ba8a0a1f7a 100644 --- a/sys/dev/fdt/simplebus.c +++ b/sys/dev/fdt/simplebus.c @@ -447,9 +447,6 @@ simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid, sc = device_get_softc(bus); - if (type == SYS_RES_IOPORT) - type = SYS_RES_MEMORY; - /* * Request for the default allocation with a given rid: use resource * list stored in the local device info. @@ -470,6 +467,9 @@ simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid, count = rle->count; } + if (type == SYS_RES_IOPORT) + type = SYS_RES_MEMORY; + if (type == SYS_RES_MEMORY) { /* Remap through ranges property */ for (j = 0; j < sc->nranges; j++) { From nobody Fri Feb 16 00:05: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 4TbXJ32tkGz5132X; Fri, 16 Feb 2024 00:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbXJ3234Fz4pTv; Fri, 16 Feb 2024 00:05:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708041923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MfBRMizSxRWMcHeXzpn/3S9fvgIcwSaADSfaPiUyeA8=; b=n9BPmojCirGkqdouyl/D6cGDn4TFYXTHwfaDfLecMYpfXpD1eRRjmqHOPZ9wOWVL9bLIs8 O4WFWpcRgMIhfPbogoyPKPAyliuoIwzfNKhIwwu6w1l+e4a5stFJRoBzBfgaaVbLEveyOP 6YEpiA63eJnJOTHsF3i82jCauAAKqtbjsCaNMVfp275qdK/78pqZchsnG1UB8dcx1uWuUh hphsYoyvCTk24q3vxPy0oGlN9SYUZEROuLVBoqG5/718ARi+5cocaXkwi22m2pdTKFePxU WoryKdN5dJQU7z1tL/sXAAxunjuyfdswuQhJRlr9PkCDst7R/8Hxhjq9CNlIIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708041923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MfBRMizSxRWMcHeXzpn/3S9fvgIcwSaADSfaPiUyeA8=; b=bv51zzt6DTQ0O/BGyKnor6COdcFHNy5M/PSf27LrUxqoP0GYsSP8Jqkk7tFjyhLJUjU3DM 326GyyTpooOXwvgTb9a1kTTxR5QwqRmDSlut/C/Ipzm9TSiTQxxoU6WwoZDK13XvzohsET h/975nr6HchUsbfZM/Iw9rpILZpTYY2ncma+trw0iNh2RgQS7wGTHsKxEgTUKVoFNO+bSE HAMqvQY+Z2Zi41Y8aoaaXOx9iWtPiBjUyA7V/9PKovtyI+u8rpmyzneBJxJrE45nHg16Ne 9vWVCJyLHafTbwrb59UugWN0n7opYOXqLr0pX8jdZsUuhYLEQagKlIa2T+OffQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708041923; a=rsa-sha256; cv=none; b=utkUIGFRPKvwy8vUN+o74PalYrghT+CN8UV+y5dAh9H29TQiuk4DzkCgyzHMUpowBxHQhq kVHVvR+tS6CT9IUm7pj84P8ai3YLu+4jVZOjnfvYYAN1A2TrsOTfOlTpUgGfJxqKy9IofU et55vo6k9xe+fU6x/Qq/jhDMeJi34NcrnGbAAaRdwUU13uawJtxV4kwuBw0pXyko9kYJhh 5tDPgxA/IbA6vxxRZNtcR3dI6OJEK7ND6FJrxm3t2x0pDmCXob5LVjuYoUiWK0XoX7FIOO 93iENRJi3sxUMmUyCDKENkpoiuU6wm1dZDetZvA5QK6MdhwMCH+xai2U94ejMg== 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 4TbXJ3151fz12rb; Fri, 16 Feb 2024 00:05:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G05Nuh023036; Fri, 16 Feb 2024 00:05:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G05ND2023033; Fri, 16 Feb 2024 00:05:23 GMT (envelope-from git) Date: Fri, 16 Feb 2024 00:05:23 GMT Message-Id: <202402160005.41G05ND2023033@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: e89d0785ff13 - main - simplebus: Implement bus_delete_resource 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e89d0785ff1332d234ae4382a849f3c23e23573a Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e89d0785ff1332d234ae4382a849f3c23e23573a commit e89d0785ff1332d234ae4382a849f3c23e23573a Author: John Baldwin AuthorDate: 2024-02-16 00:05:00 +0000 Commit: John Baldwin CommitDate: 2024-02-16 00:05:00 +0000 simplebus: Implement bus_delete_resource --- sys/dev/fdt/simplebus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c index 71ba8a0a1f7a..ceb5fdde4bb7 100644 --- a/sys/dev/fdt/simplebus.c +++ b/sys/dev/fdt/simplebus.c @@ -104,6 +104,7 @@ static device_method_t simplebus_methods[] = { DEVMETHOD(bus_unmap_resource, simplebus_unmap_resource), DEVMETHOD(bus_set_resource, bus_generic_rl_set_resource), DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource), + DEVMETHOD(bus_delete_resource, bus_generic_rl_delete_resource), DEVMETHOD(bus_child_pnpinfo, ofw_bus_gen_child_pnpinfo), DEVMETHOD(bus_get_resource_list, simplebus_get_resource_list), DEVMETHOD(bus_get_property, simplebus_get_property), From nobody Fri Feb 16 00:05: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 4TbXJ44HRbz512sw; Fri, 16 Feb 2024 00:05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbXJ42zNqz4pXP; Fri, 16 Feb 2024 00:05:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708041924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QiwuevaVEmM1/CCV4gOAW1uZwvfc+OKMK/XHdP7A0Aw=; b=Gg8EnH1BVBJKXBlZhyuRFULi1BzcRFd9t1y7lOzzZ4ZZVNZwIstwRNA3xOEC3QgpqK3nBy kcPA3EM1joT90KiuLznkhkwNxxOoE2LQGBcbbonsCW8v6EL0NDPBmvc/5mKlZsN+KpmHzv WWiFIYOJkNp4frXHLBaBfgjpwh78LIHpjvyRwTDbo9m+7oTT1wBa2SXy/STs7s5B1y+tH8 MB2RJFmIuRIAPUsz9z65izVePBP7fX8m7Ob2yNGSS1C2Mn9rjqw012VCKwbypbMhh9fCAD EdKr4FU9uxCs0G8T9IRkUfxZJlTr1NSZ4/HabM2FOR7Q43Bp5l1IcCWhF364WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708041924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QiwuevaVEmM1/CCV4gOAW1uZwvfc+OKMK/XHdP7A0Aw=; b=TkNfctdp/M7Kh06IdwHJJnA6Q4HmkGAIeqlz1lhre5cgVUvTurGjcLGbYz70qky6TaiwAJ ZFSO5alahJixevty73zb9LEF3FmcC96EzcTlafplqUq5lpJEmh0NguETlCss+n6FpmrWNv TiUwZfZKuJRmEFoIMQQpWD8SK3iiwwOl49ny9qi1ZSoOsBWWhKYCv2uf0CYx2bjXwsXAFr JIktiohoosHsypUxHNKjy17xDWhq805OWSFYdyhrbBnMKlGO7eqqQDoQkrHMOWhBrH6LCw Npduie8MqV4PuPxkQpjju1jFm3zPcz6fWENcs724gtY/Om2BoXtH69b40vST1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708041924; a=rsa-sha256; cv=none; b=S2OJCNrBvPjz8P93UGFMC+RgH4cxvsD8zCpL39luGNs93xX47q8L+CpcozZpaS9MTjh+93 jzlY+b1u40D1HLUec9CCnb83RaSXBT8xOpsy34zyMNEnUReIy1+AzRItQ1GUAp9Sw/QA2w PrQwjKcdvyguGJvLtoQp7XGVv3i8poP+YStb37mKcW0kt9LHsDeJBtt5EjYV4W+m797rxa WtOQUJGRhemR7wXvaTKLTfxOISJVAIItzIsdlxXUPQduhAWEic5JYbsCA4wK1mW8wxE83c 8F59qAupUrdzEqMLtEu8QWrflpksJ8d2WibBeZRdrljfCPSgR18+yObYxiycrg== 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 4TbXJ424y2z12rc; Fri, 16 Feb 2024 00:05:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G05OKt023096; Fri, 16 Feb 2024 00:05:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G05Ou8023093; Fri, 16 Feb 2024 00:05:24 GMT (envelope-from git) Date: Fri, 16 Feb 2024 00:05:24 GMT Message-Id: <202402160005.41G05Ou8023093@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: 992f5b16afa7 - main - pci_host_generic: Set a valid error if allocating a range resource fails 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 992f5b16afa73d0ea63c8a886a78ad2eda928e37 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=992f5b16afa73d0ea63c8a886a78ad2eda928e37 commit 992f5b16afa73d0ea63c8a886a78ad2eda928e37 Author: John Baldwin AuthorDate: 2024-02-16 00:05:09 +0000 Commit: John Baldwin CommitDate: 2024-02-16 00:05:09 +0000 pci_host_generic: Set a valid error if allocating a range resource fails Previously pci_host_generic_attach was returning 0 (success) incorrectly if allocating a range failed. The error value was 0 from the previously successful call to bus_set_resource in this case. Fixes: d79b6b8ec267 pci_host_generic: Don't rewrite resource start address for translation --- sys/dev/pci/pci_host_generic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c index 45a478634d20..ca384d9a1483 100644 --- a/sys/dev/pci/pci_host_generic.c +++ b/sys/dev/pci/pci_host_generic.c @@ -216,6 +216,7 @@ pci_host_generic_core_attach(device_t dev) if (sc->ranges[tuple].res == NULL) { device_printf(dev, "failed to allocate resource for range %d\n", tuple); + error = ENXIO; goto err_rman_manage; } } From nobody Fri Feb 16 01: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 4TbZmN42mWz51pcY; Fri, 16 Feb 2024 01: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbZmN3YRgz41fh; Fri, 16 Feb 2024 01: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=1708048596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WrJe3BE2W4sKcPjGd37bGMQsocM58OCbFiuziaLH9FI=; b=Q60mlRoppix/PcqV4knvrbGlpLpGmhOaiRcJo9ovmAfhkJKcQmRzogOxSCDj5JdqXzf57S 3YNrMkN/plp4z9ReJJrA2YNg2rIH8yyFze8aItRmh8gGVpAwicqP6sjh4VPXjCT1GWfNJ/ fUzb5nX3AV2pXkFZjyosA5cP7ePsQC5CfAoHffpv457AWHqIJTQ1sU0q1rCov5GckxieTx MtMUb0ITJqkgV6udvQIPHFmHjNBAsLBVct9hr1yz2c/pnB/D0eB7Uk2vTEJDw0GMukfQ5U jBvSWBUjLGGA3YvAhDrd6OuA+wOv0WPLXbL3Ot+4+KB4eEjVFUPVtnDGeJalcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708048596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WrJe3BE2W4sKcPjGd37bGMQsocM58OCbFiuziaLH9FI=; b=RtEseRfLSobIMkskRSEOuz5fop7AO1uzJZFRNLrNf3v5ShSJTudFoyVvlanMCmkLCQ4kGS 7HpxKsRcBc1yIbTNVwGtb3KwGnBpR/5lqmljRZ2JG8pGiJ+ezLoQBm47sHlF7JWefxY7tl q54pprbyViEjThA/1T8Qw2IDR9mjxhFkXcB+ka92bHq3EfWdvVzVWifD0qR8+RUtcPcNnr 69stTA5n5NxeflqtLZD3Wk3zqvuoHnebcvrYFsiV1uDbJlpy4tBhFHmnlZbkLmvNF6OhMH 4r0IW87U688QTzxrfPVK0OBl1Q6R+jyR/rFA0YeuaY1l7i3RyyZx0s1PamUHjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708048596; a=rsa-sha256; cv=none; b=G5cRNYo1kRP76alZOH8kkutToC7dGx33i1uG0qIGRruAMz1eDWWtBX79jKlPsB5Soj7lOd s49PpEShY0H3cS6i57yuW/dU6kmOqNMcl/fh1PPRrI0Di8wwNcOxve8FGSBpZkEthpnTkj h0PMvNEQYpY8cjC9IdbaMCuukm2bqFMhTRphO8m09pUyFiyN46n60GmrZJzxIPmMmQoBXG SGGdwZtHlfQ/Iu7CRzFtYuwHr7J5GcF5vaTsO9reMu0ZXnDf3GAW0w4t3B3QSXebNkIYFL 2sqA2rwL9xxFUe9KT5aLAESNJm6DhgWLDvcDZh/NXT+fu6EXQa+ynBq2iuBprw== 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 4TbZmN2dLZz15Zq; Fri, 16 Feb 2024 01:56:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G1uahF006455; Fri, 16 Feb 2024 01:56:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G1uanE006452; Fri, 16 Feb 2024 01:56:36 GMT (envelope-from git) Date: Fri, 16 Feb 2024 01:56:36 GMT Message-Id: <202402160156.41G1uanE006452@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: feefc3c71e33 - main - pci_host_generic: Properly handle bus_release_resource of IRQ resources 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: feefc3c71e33d8f97879c4889d5cf1ec82e98cd9 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=feefc3c71e33d8f97879c4889d5cf1ec82e98cd9 commit feefc3c71e33d8f97879c4889d5cf1ec82e98cd9 Author: John Baldwin AuthorDate: 2024-02-16 01:56:01 +0000 Commit: John Baldwin CommitDate: 2024-02-16 01:56:01 +0000 pci_host_generic: Properly handle bus_release_resource of IRQ resources Unlike other bus methods updated to use bus_generic_rman_* in commit d79b6b8ec267, the bus_release_resource method was using bus_generic_rman_release_resource for all types other than PCI_RES_BUS. Instead, bus_generic_rman_* should only be used for memory and I/O port resources for this driver. Tested by: cperciva Reviewed by: cperciva Fixes: d79b6b8ec267 pci_host_generic: Don't rewrite resource start address for translation Differential Revision: https://reviews.freebsd.org/D43925 --- sys/dev/pci/pci_host_generic.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c index ca384d9a1483..386b8411d29a 100644 --- a/sys/dev/pci/pci_host_generic.c +++ b/sys/dev/pci/pci_host_generic.c @@ -431,16 +431,24 @@ int pci_host_generic_core_release_resource(device_t dev, device_t child, int type, int rid, struct resource *res) { +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) struct generic_pcie_core_softc *sc; sc = device_get_softc(dev); - +#endif + switch (type) { #if defined(NEW_PCIB) && defined(PCI_RES_BUS) - if (type == PCI_RES_BUS) { + case PCI_RES_BUS: return (pci_domain_release_bus(sc->ecam, child, rid, res)); - } #endif - return (bus_generic_rman_release_resource(dev, child, type, rid, res)); + case SYS_RES_IOPORT: + case SYS_RES_MEMORY: + return (bus_generic_rman_release_resource(dev, child, type, rid, + res)); + default: + return (bus_generic_release_resource(dev, child, type, rid, + res)); + } } static struct pcie_range * From nobody Fri Feb 16 02: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 4Tbb4m0DjVz51s68; Fri, 16 Feb 2024 02:10: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tbb4l6v4vz43T6; Fri, 16 Feb 2024 02: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=1708049448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q+r6RCSIyzXFlNVAJHsCFxolXV1V11sPU0PGzbEdmcE=; b=ZNwfqSunz8Qr/SZa/cGHvtZPKw1t8+IqkBbCaUrmuab81fK3TOHsaasgO1C3Ku9Bfn5qse 2tgyNwB5BGLV5KAwamSmrXm9XXEAAy0IIpQ74K84tBBIY4+1IGVCoLsR/T4lIdhfV8ILjj mPJ9iKFn1rmm4LmvBTYeqRj4o4uV4smH8GKxwVtkuucyzSVUe/aFTDdiAFMqXwcri/59mK P5Wz4NTonZKAp0N6wnLPHEaCemnW9gw+oDi6zZR2RuMaWWEmNhFVkU5/4tL0oNwhinx9wS GwGyk7+NENYT8Qgsfn8k8F7ufjcEVlwErYsPOFeHMM3L6qbWAjNp957KE99xfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708049448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q+r6RCSIyzXFlNVAJHsCFxolXV1V11sPU0PGzbEdmcE=; b=HB/FfioovvDR1rFn5Beb88hF+uW91fd/c3kOQPtOWtC1LIwG8Pv2IWzYgGB1WCLfz1a1ph 9p517kTwmVjDy/JU3SuT1SGvxfg5ENnMXoYiuT8LHdKKwpLARB5pgxQkAWTl0WUEtbOEt2 WvTS/kl+LjJ9n54mBRbei5WRpEFvOJ5ugtkgT5U/5oeexqKccmMBl+BejQuTgzlJhk1DMC TRBO0+jot/p8cSy0qxB27sMTPQLNLdPqMocAEhWDHyx+6N+pisOp7hrVaK6afSRe3ONKxO loyN+UWTgyedyLucW+XSFb3i+UdU9LM7KDsLWrwete+uNADQEoyPHtJ+XbX1zQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708049448; a=rsa-sha256; cv=none; b=C9cFOZ4vt+xnVh5gj9w2AiSceFJYwIYUopOPLWKK91zXPSVMIbR1sRZEs/eCjr42JGN3Xi NSEEfm1FYfpxMsMoN33sp0VFfeo2N56Nzu64HWzFuD11T6ZN/rEsDGOSG9JZZEGRZEIWA/ Nv8VUWAhnnxhQviqgHbg2pnR2wGAAkHGNMSNr0xVFuCEHka72gRgWT9d7XNPX4bpxtKC/3 Amvr0KezqzTMVJysnCVRLJpBtsN+Nag8hCCQ2TOaYOiFzr54PYS6Rm07NZVeeiTBr4/y+r mYp3x2VPti/W/dFRTiQewXH8ksz3g74feBkdkXY+YCv1GIkvlMyUocZagWe2+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 4Tbb4l5y8Dz160F; Fri, 16 Feb 2024 02:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G2AlZA033076; Fri, 16 Feb 2024 02:10:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G2Alrp033073; Fri, 16 Feb 2024 02:10:47 GMT (envelope-from git) Date: Fri, 16 Feb 2024 02:10:47 GMT Message-Id: <202402160210.41G2Alrp033073@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: 62b1faa3b749 - main - ipfw: Skip to the start of the loop when following a keep-state rule 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 62b1faa3b7495de22a3225e42dabe6ce8c371e86 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=62b1faa3b7495de22a3225e42dabe6ce8c371e86 commit 62b1faa3b7495de22a3225e42dabe6ce8c371e86 Author: Karim Fodil-Lemelin AuthorDate: 2024-02-16 01:57:51 +0000 Commit: John Baldwin CommitDate: 2024-02-16 01:57:51 +0000 ipfw: Skip to the start of the loop when following a keep-state rule When a packet matches an existing dynamic rule for a keep-state rule, the matching engine advances the "instruction pointer" to the action portion of the rule skipping over the match conditions. However, the code was merely breaking out of the switch statement rather than doing a continue, so the remainder of the loop body after the switch was still executed. If the first action opcode contains an F_NOT but not an F_OR (such as an "untag" action), then match is toggled to 0, and the code exits the inner loop via a break which aborts processing of the actions. To fix, just use a continue instead of a break. PR: 276732 Reviewed by: jhb, ae MFC after: 2 weeks --- sys/netpfil/ipfw/ip_fw2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/netpfil/ipfw/ip_fw2.c b/sys/netpfil/ipfw/ip_fw2.c index d2b01fde6944..e43d1a8fbbff 100644 --- a/sys/netpfil/ipfw/ip_fw2.c +++ b/sys/netpfil/ipfw/ip_fw2.c @@ -2886,8 +2886,7 @@ do { \ cmd = ACTION_PTR(f); l = f->cmd_len - f->act_ofs; cmdlen = 0; - match = 1; - break; + continue; } /* * Dynamic entry not found. If CHECK_STATE, From nobody Fri Feb 16 04:00: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 4TbdW81TTdz59Z36; Fri, 16 Feb 2024 04: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdW80m6cz4GgF; Fri, 16 Feb 2024 04: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=1708056020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a4Q2HgQws7ZeneMdqgAGtc+wKYpIwE5HwTGGgr+ftL4=; b=qRi92jU3PF9IMx5nO//G0z8eYWkQhSbPXdNWZWizqBggOXJibVdw84hidyfjadx7aZ9MsV dbNeGpNf78BE503j1jYxQ+CtEMGayq4Je6P8CSOWI4VI6f2o6lvUzQNmsikFg/9nsZyZRe qW5BEHkTzyT9Cvtr5kfp63j3JsUF9kCJDVsRTFzxfz26khFqb4rUgvBKwVHpR+25At//mj sOArJtdwzvS/uqRHL+q0XXygt0ojHnayIz7TJMLsdMI+eCQKwvRiXpnBFOF2RHtkFThxOU av+MQHo6y4/K2KBCyFwcb6RNTgpxYNVAkrX7fAFCIOiJKV/H8mv/QIPfTT8qsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a4Q2HgQws7ZeneMdqgAGtc+wKYpIwE5HwTGGgr+ftL4=; b=WNgCD6gFgiUFtOjwMHpDPrIwr2Q2novoUU2RT8CKLDH63MnqAbuIIK53x4voMaRokWZfin woxB+Xs1zMBWMk0SuvKIMhFMoKuL/Rfzpt1JPQQ26VS4jqsUdm5OKMxexYMWdVmdGWwUUd 3egsoexE/UB+26RUh3+so/S4PxvquaeEvSp+I+HvPs5ABl8jQFQgzywvR/H/SJPVsw4Yzg ynZ/9Y1T8mcumTsAQeMPcFV3KUZfBoaaHPsk6nUKrZ5kePr4xTFk206+jqN4xdzK1JIzrE u73mtDGHRjEPsllsZMqgmV+M9GG/OnxH0Hwf5g0SrGh6VMAIoX4HkLkCJCX6pQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056020; a=rsa-sha256; cv=none; b=bOD+z8hPGFk5G7TAKFe1RqbxKmJv1aQ5+GTaCpE1bHczGhCs75zFTPf74FAaTAtpMFfCEq 05fImrFrKSXu7Kgmw3QXtQBkKDmkM8/yIWjDB7claLtBa+3+jvrYJi6IeXuAnNoKL449rI gHgL35Uw00YQpbnyh1KHNDfXiCVTdEor7Aa2MyIsSvFRRQe+q7rjy01EDF7mjEY4XuFxQC 4H5wfpRitD7/UJphohlgcTW2ThMwxB6ToxK4qeUsAV3HEZtRKSsQxHujLHqL4uRyKmwFw+ 9thFy1D0hN7ZoDwTERf8q0oQJUkx1+GtXGrTTW8vxm5LOIKyaUl7xE62+KOjcQ== 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 4TbdW76wXTz18b2; Fri, 16 Feb 2024 04:00:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40JIb018720; Fri, 16 Feb 2024 04:00:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40Jgd018717; Fri, 16 Feb 2024 04:00:19 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:19 GMT Message-Id: <202402160400.41G40Jgd018717@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: 33a2406eed00 - main - reboot: Use posix_spawn instead of system 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 33a2406eed009dbffd7dfa44285c23f0db5a3750 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=33a2406eed009dbffd7dfa44285c23f0db5a3750 commit 33a2406eed009dbffd7dfa44285c23f0db5a3750 Author: Warner Losh AuthorDate: 2024-02-16 03:52:31 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:22 +0000 reboot: Use posix_spawn instead of system Use posix_spawn to avoid having to allocate memory needed for the system command line. Sponsored by: Netflix Reviewed by: jrtc27 Differential Revision: https://reviews.freebsd.org/D43860 --- sbin/reboot/reboot.c | 54 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 16 deletions(-) diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index e9d6487da6a5..d3f1fc9bbb86 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -29,19 +29,21 @@ * SUCH DAMAGE. */ -#include #include #include #include #include #include #include +#include +#include #include #include #include #include #include +#include #include #include #include @@ -69,23 +71,43 @@ static bool donextboot; static void zfsbootcfg(const char *pool, bool force) { - char *k; - int rv; - - asprintf(&k, - "zfsbootcfg -z %s -n freebsd:nvstore -k nextboot_enable -v YES", - pool); - if (k == NULL) - E("No memory for zfsbootcfg"); - - rv = system(k); - if (rv == 0) - return; + const char * const av[] = { + "zfsbootcfg", + "-z", + pool, + "-n", + "freebsd:nvstore", + "-k", + "nextboot_enable" + "-v", + "YES", + NULL + }; + int rv, status; + pid_t p; + extern char **environ; + + rv = posix_spawnp(&p, av[0], NULL, NULL, __DECONST(char **, av), + environ); if (rv == -1) E("system zfsbootcfg"); - if (rv == 127) - E("zfsbootcfg not found in path"); - E("zfsbootcfg returned %d", rv); + if (waitpid(p, &status, WEXITED) < 0) { + if (errno == EINTR) + return; + E("waitpid zfsbootcfg"); + } + if (WIFEXITED(status)) { + int e = WEXITSTATUS(status); + + if (e == 0) + return; + if (e == 127) + E("zfsbootcfg not found in path"); + E("zfsbootcfg returned %d", e); + } + if (WIFSIGNALED(status)) + E("zfsbootcfg died with signal %d", WTERMSIG(status)); + E("zfsbootcfg unexpected status %d", status); } static void From nobody Fri Feb 16 04:00: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 4TbdW924cbz59Yxd; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdW91dTCz4H7c; Fri, 16 Feb 2024 04:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IFtuAHsV90ZmUt+kqcQL4erNzAU/gPLxkXBRKOfjK4A=; b=vzpubdkwJB0i11pDUKneSCbNZkDJ4H5cgkBmbjNfYV+JtYsyTzW/E5iBOvsT+G549bAwxX c1oRRELrH/t9YLmaUfs0TFtHJXXW1A68l76i3lRvYVeyxEgJ4AeckKPU/jyTR9gOCLTYst q679Oz7+WVfcHO76RSYzjEnpRaIOo8KQaRclRYOJDCXSYV7gHYxQHveFWODqRwLcRaHnwT tmdzI28zJGNLrVNdZWQv+T2B1yWfJLWeqQYr3lKmf7bVzk6zZ/g6ZmZKi02F+z+PuNhb3/ SHs/UGVxT7un0L0CCrSGkvCh1k9+PhW/89nA/PQq14GxpL4f6QQu2MNNF5yS2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IFtuAHsV90ZmUt+kqcQL4erNzAU/gPLxkXBRKOfjK4A=; b=kriQ2prYQAbb/7pCPyNKbuxl+Bs6QlsRobZssEu74zK9JW+a3ogSWYFnpbeHPvbwMTvnFY wvHH9eqYc1jj7alL52SJTBn6AYw0IzwNOH68t0X+12Po5omsVOd+c9yt+RHup/t0PwboT9 zXN6sEQlLals1jzKPDqZo0aFXKvWX33Qr2u9KvYmOB79IhBVncokH1f2yxVEyik2dckm0s w4Lhk6kifcUZ58XFTftO/g3RtTLy3BMIWu9R+1BTvTC3062RcTpvQs7r8gXHAQsybYVRP5 cjubOpW8+Imjqn/Ot7pm+HNlJ41NeftNLiECTElnsCgBfrPbGWejL6+CI3PlMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056021; a=rsa-sha256; cv=none; b=GV9USp+9xyBfoT7Lw6V5296vdsOszOoJZNO0JUdeWluvD5dAS6buIR2jDtKPxS6xXJ71lJ FzDucOrvGYbkXkOnp1vyariuV6Jo2avZ//IwWkw0MsPI/dO14dcVZ9ocn0jE2RdzYDyoBy zq28GbeNjQ83MF1EcrJ4xh8f12Vp2RnVAwb7LY/QUSOKMNXcE5wkedJbwsfXO744RhZne9 aGoWUDW9rgqj236vOc9Bj215DIaiR2Iur0t7euN1N8uuTDZd5bnX535UbNOYRvVCf2yDGx /G2ZUYikY+uqmTZHVYa2eTAa9E/pX/pMmJ6QDuSdpp0LFNp0sdNO8/VErQyQQw== 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 4TbdW90lTGz18Jj; Fri, 16 Feb 2024 04:00:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40LkI018765; Fri, 16 Feb 2024 04:00:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40LGi018762; Fri, 16 Feb 2024 04:00:21 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:21 GMT Message-Id: <202402160400.41G40LGi018762@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: 7fc95c31f007 - main - loader: Simplify the loader.has_command 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 7fc95c31f007ef01c53aa5f9d8802e9579f408ee Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7fc95c31f007ef01c53aa5f9d8802e9579f408ee commit 7fc95c31f007ef01c53aa5f9d8802e9579f408ee Author: Warner Losh AuthorDate: 2024-02-16 03:52:41 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:22 +0000 loader: Simplify the loader.has_command luaL_checkstring already checks for the right number of arguments. There's no need to do that by hand here. Now an exception will be thrown like any other function with the wrong args. Also, push a boolean instead of an int. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43820 --- stand/liblua/lutils.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/stand/liblua/lutils.c b/stand/liblua/lutils.c index 8066d3f685f7..182bd699dbc3 100644 --- a/stand/liblua/lutils.c +++ b/stand/liblua/lutils.c @@ -65,14 +65,15 @@ lua_has_command(lua_State *L) { const char *cmd; - if (lua_gettop(L) != 1) { - lua_pushnil(L); + cmd = luaL_checkstring(L, 1); + if (interp_has_builtin_cmd(cmd)) { + lua_pushboolean(L, 1); return 1; } - cmd = luaL_checkstring(L, 1); - lua_pushinteger(L, interp_has_builtin_cmd(cmd)); - return 1; + lua_pushnil(L); + lua_pushstring(L, "Builtin command not found"); + return 2; } static int From nobody Fri Feb 16 04:00: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 4TbdWB4phVz59ZBQ; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWB2gGPz4H65; Fri, 16 Feb 2024 04:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2GlpBGzlkvOqTyO9AOg1ihYEj1jOZ4x8uA2H2aiMj34=; b=qeT0vizrg9Oo38zvRtPVN8Wwe29v9omRNIJbrTtc0BpYO4LQgiukrreylAgMbWvb+xYpbd kbM/YA4mqLKkqhIJFXQUZyrfs7MxUaWuPolKd4Ds9i4R6PJGV0FKtsuFUkwGKI4ckritwH K2X446dmZC0Ar8MnKl5IDw4m5feba9fAhndP9S5p7FSwup3RE7nl2nHbu6A8xpKVpnx0bJ jz7xMgN5uDv6TxCMjHoq6BaRmaYqFdB5IiqCwNrol+Pk4L5z17r7HP/FIv/SC0K22h3lLa iBWTEoPzme9CpwLgGgLEMjKFvaYd8W7jsxRKl/Mv4H/aJDklNdkwMbu4xXCaBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2GlpBGzlkvOqTyO9AOg1ihYEj1jOZ4x8uA2H2aiMj34=; b=uqaLtLTjSnrotymexGvxU9NvDOuhzM1DBldSj3xkE9Yo12GnHo6wm70R5pmVzziJ03MClx VilgNVi73qFxJmF9K6l2yIRP7CTL8LvdIKmMLhhhqBJQKcJK5pS+YR1JUBzig3Sv7uJC3Y jk0Bk/Kq3mk4Vcp/gRfcWQ+QRi+1hRZKF1lRctx0WvQD0/ChFDzMOvSUQLImAR+xyY+BzE +nAqT0VRJ971CYCvdQbespMgcQzVFKaZbO0ekb2V33xGLDE4hXqHHJ27TgbeY0Sxw/4bdg ySRMQrR/OodC1KrtI3dnl4VGTVOdedXC6zHJn9jEhetwu/tBe6snsakUVkrhSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056022; a=rsa-sha256; cv=none; b=a26AcuTz/raW1z93r8KfV3CwCwAy05VDslzmHEFy/fO4oF4GNPwMk7z3d852zTf3cRBQVy 73aP9Uc3L5P8A/kTOJtuDMTbN+b9P743OwwM42hi0AsHR9lBtO/VknN41eht5RZeggnalq Hwdk5EolxYIab37JRfed63VvVZFvB1tvoUePGAcLxaxGRPsqUP3BKMjGxiOfQnsX94H2Fz 4PnwKpojYeRDM/sXXhQp1bT7kDwQY3tXq9y08we+Uz+F0M27kRfupNbXNpXQADeBhSf8IZ /wOd58ox58tD+/3IPOD3BACNaAijli9xFeDr+EegAih3D5juf7kgj3abBiaQLQ== 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 4TbdWB1kYtz18Xc; Fri, 16 Feb 2024 04:00:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40Mbq018816; Fri, 16 Feb 2024 04:00:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40MXc018813; Fri, 16 Feb 2024 04:00:22 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:22 GMT Message-Id: <202402160400.41G40MXc018813@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: 1dac5a34b64e - main - loader: Register the gfx stuff separately. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 1dac5a34b64e2573236f38b23f8b1f92bd6a1d7c Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1dac5a34b64e2573236f38b23f8b1f92bd6a1d7c commit 1dac5a34b64e2573236f38b23f8b1f92bd6a1d7c Author: Warner Losh AuthorDate: 2024-02-16 03:52:48 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:22 +0000 loader: Register the gfx stuff separately. Move registration of the gfx stuff to separate function. However, no change in functionality is intended. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43900 --- stand/liblua/lutils.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stand/liblua/lutils.c b/stand/liblua/lutils.c index 182bd699dbc3..0dbd8a6f720b 100644 --- a/stand/liblua/lutils.c +++ b/stand/liblua/lutils.c @@ -578,6 +578,10 @@ static const struct luaL_Reg loaderlib[] = { REG_SIMPLE(setenv), REG_SIMPLE(time), REG_SIMPLE(unsetenv), + { NULL, NULL }, +}; + +static const struct luaL_Reg gfxlib[] = { REG_SIMPLE(fb_bezier), REG_SIMPLE(fb_drawrect), REG_SIMPLE(fb_line), @@ -627,10 +631,17 @@ lua_add_features(lua_State *L) lua_setfield(L, -2, "features"); } +static void +luaopen_gfx(lua_State *L) +{ + luaL_newlib(L, gfxlib); +} + int luaopen_loader(lua_State *L) { luaL_newlib(L, loaderlib); + luaopen_gfx(L); /* Add loader.machine and loader.machine_arch properties */ lua_pushstring(L, MACHINE); lua_setfield(L, -2, "machine"); From nobody Fri Feb 16 04:00: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 4TbdWC5PJYz59ZK0; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWC3f54z4H1y; Fri, 16 Feb 2024 04:00:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VZwDpXDeKU+S1XVkeo3+wqvJDocRmmyhwVxGOrQSOa8=; b=IwxMBQiEa1zNe7qofSMtocx/zIiPm22hRnQPoIqlxhyGmfTpUTbKLR+OR1eBl4XwVl0Iac E9TjUzUiKyN4HdPEF863zCPyVGA6JIPFpqLtcd54jjkauuZLCw+FsaxD8nzUp0TbUASTVt aIYOwIWgaP6PiTJuWBntjTGxuglpQorIt6g2wTzkwEeet9Lz0NnQ4ZcZI2uwp0eGn2sQAT diZo0xc3imxy23kn313WTE+I4iB/wL03AczqdSUkotm4ksVL9y/Z9QLoRDe/XIXvBGCXso BjHJmDXVrXyAf+6FvP7QDqTCSHHB3Y5GZpC1H455sBeHqlXYMFvSsiLsVOwJUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VZwDpXDeKU+S1XVkeo3+wqvJDocRmmyhwVxGOrQSOa8=; b=cNlg6v3cq6XtK/b75jRcx/AlcjLC/4HptWDUb10jIzzDRJvYmG7Y/EjFzTdJNirfc0xIlx 6S6F8AJHW/JDFuiFj9dpO1Hm5Qli+49j3CsbqeV5o6gBco9f5Jah0g6P9Bh9eNiDsB3Igh w76g2wwyQYmVHvrgR2KkrX3XsGKUIR2+xSQN1YWLCDKlN3cCZwPT8LuWvaXTJ0yf8jCevn Gud0OowSiNHf7p33mxfFFtj0msJ6/TUKhU6ulyiKsMboRxJ7oa4ioQXlOb+pvZZncqE6Le qnXPUxDyJv8xs5wJoqUSJ+9E64J+lAugU87VjSZrEbqvv3Y42RlikiArekXFpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056023; a=rsa-sha256; cv=none; b=eKIJaWp+CudRwFbUB1WAdluaGfB/Fpxs9Ydr5fbF+p0PZH9GddkdblieL+cuEwhTOg9PDC cdOkB7dJbzKFeCP1njLRsTt/l4j70KkhwEmA3l7pfVOuyEL0700/U6+Jz02ONYsny/+g7U k6fq7QMwM93PT4AbJU7eFz3/VSybLayxdrMgeWv6UguoMkSLFKe4YjT0Tfjz2ZIhXBYtqc wQvnnQol6VVugugj2vQEOecVQfHOiKEgxlSzdPPkQ+h+f7u4LpOSslgyK4L1JeBmplRrAc /ap+J0ZZfXT9TGRigH6SyYRcFeCKvEfXLAp6IgmJez9P+cqzrG8mZZLxtY9s8A== 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 4TbdWC2lVpz18Jk; Fri, 16 Feb 2024 04:00:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40NJs018864; Fri, 16 Feb 2024 04:00:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40NMe018861; Fri, 16 Feb 2024 04:00:23 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:23 GMT Message-Id: <202402160400.41G40NMe018861@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: 061b68a76030 - main - loader: Separate gfx to a new file. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 061b68a76030f4147f5a30e60ab5f4296c1376b7 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=061b68a76030f4147f5a30e60ab5f4296c1376b7 commit 061b68a76030f4147f5a30e60ab5f4296c1376b7 Author: Warner Losh AuthorDate: 2024-02-16 03:52:59 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:22 +0000 loader: Separate gfx to a new file. Move gfx lua hook registration to a new file. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43901 --- stand/liblua/Makefile | 3 +- stand/liblua/gfx_utils.c | 242 +++++++++++++++++++++++++++++++++++++++++++++++ stand/liblua/lutils.c | 202 --------------------------------------- stand/liblua/lutils.h | 1 + 4 files changed, 245 insertions(+), 203 deletions(-) diff --git a/stand/liblua/Makefile b/stand/liblua/Makefile index b2f17811ff84..bbfa21e07f53 100644 --- a/stand/liblua/Makefile +++ b/stand/liblua/Makefile @@ -23,6 +23,7 @@ SRCS+= lauxlib.c lbaselib.c lstrlib.c loadlib.c # Our utilities. SRCS+= lerrno.c lpager.c lstd.c lutils.c +SRCS+= gfx_utils.c .PATH: ${FLUASRC}/modules SRCS+= lfs.c @@ -34,7 +35,7 @@ CFLAGS+= -ffreestanding -nostdlib -DLUA_USE_POSIX CFLAGS+= -fno-stack-protector -D__BSD_VISIBLE CFLAGS+= -I${BOOTSRC}/include -I${LIBLUASRC} -I${LUASRC} -I${LDRSRC} -CFLAGS.lutils.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite +CFLAGS.gfx_utils.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite .if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0 CFLAGS+= -fPIC diff --git a/stand/liblua/gfx_utils.c b/stand/liblua/gfx_utils.c new file mode 100644 index 000000000000..fe208dc990d8 --- /dev/null +++ b/stand/liblua/gfx_utils.c @@ -0,0 +1,242 @@ +/*- + * Copyright (c) 2024 Netflix, Inc. + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +/* Copied from a file that likely shoulve have had this at the top */ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright 2020 Toomas Soome + * Copyright 2020 RackTop Systems, Inc. + * + * 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 "lua.h" +#include "lauxlib.h" +#include "lutils.h" +#include +#include + +/* + * put image using terminal coordinates. + */ +static int +lua_term_putimage(lua_State *L) +{ + const char *name; + png_t png; + uint32_t x1, y1, x2, y2, f; + int nargs, ret = 0, error; + + nargs = lua_gettop(L); + if (nargs != 6) { + lua_pushboolean(L, 0); + return 1; + } + + name = luaL_checkstring(L, 1); + x1 = luaL_checknumber(L, 2); + y1 = luaL_checknumber(L, 3); + x2 = luaL_checknumber(L, 4); + y2 = luaL_checknumber(L, 5); + f = luaL_checknumber(L, 6); + + x1 = gfx_state.tg_origin.tp_col + x1 * gfx_state.tg_font.vf_width; + y1 = gfx_state.tg_origin.tp_row + y1 * gfx_state.tg_font.vf_height; + if (x2 != 0) { + x2 = gfx_state.tg_origin.tp_col + + x2 * gfx_state.tg_font.vf_width; + } + if (y2 != 0) { + y2 = gfx_state.tg_origin.tp_row + + y2 * gfx_state.tg_font.vf_height; + } + + if ((error = png_open(&png, name)) != PNG_NO_ERROR) { + if (f & FL_PUTIMAGE_DEBUG) + printf("%s\n", png_error_string(error)); + } else { + if (gfx_fb_putimage(&png, x1, y1, x2, y2, f) == 0) + ret = 1; + (void) png_close(&png); + } + lua_pushboolean(L, ret); + return 1; +} + +static int +lua_fb_putimage(lua_State *L) +{ + const char *name; + png_t png; + uint32_t x1, y1, x2, y2, f; + int nargs, ret = 0, error; + + nargs = lua_gettop(L); + if (nargs != 6) { + lua_pushboolean(L, 0); + return 1; + } + + name = luaL_checkstring(L, 1); + x1 = luaL_checknumber(L, 2); + y1 = luaL_checknumber(L, 3); + x2 = luaL_checknumber(L, 4); + y2 = luaL_checknumber(L, 5); + f = luaL_checknumber(L, 6); + + if ((error = png_open(&png, name)) != PNG_NO_ERROR) { + if (f & FL_PUTIMAGE_DEBUG) + printf("%s\n", png_error_string(error)); + } else { + if (gfx_fb_putimage(&png, x1, y1, x2, y2, f) == 0) + ret = 1; + (void) png_close(&png); + } + lua_pushboolean(L, ret); + return 1; +} + +static int +lua_fb_setpixel(lua_State *L) +{ + uint32_t x, y; + int nargs; + + nargs = lua_gettop(L); + if (nargs != 2) { + lua_pushnil(L); + return 1; + } + + x = luaL_checknumber(L, 1); + y = luaL_checknumber(L, 2); + gfx_fb_setpixel(x, y); + return 0; +} + +static int +lua_fb_line(lua_State *L) +{ + uint32_t x0, y0, x1, y1, wd; + int nargs; + + nargs = lua_gettop(L); + if (nargs != 5) { + lua_pushnil(L); + return 1; + } + + x0 = luaL_checknumber(L, 1); + y0 = luaL_checknumber(L, 2); + x1 = luaL_checknumber(L, 3); + y1 = luaL_checknumber(L, 4); + wd = luaL_checknumber(L, 5); + gfx_fb_line(x0, y0, x1, y1, wd); + return 0; +} + +static int +lua_fb_bezier(lua_State *L) +{ + uint32_t x0, y0, x1, y1, x2, y2, width; + int nargs; + + nargs = lua_gettop(L); + if (nargs != 7) { + lua_pushnil(L); + return 1; + } + + x0 = luaL_checknumber(L, 1); + y0 = luaL_checknumber(L, 2); + x1 = luaL_checknumber(L, 3); + y1 = luaL_checknumber(L, 4); + x2 = luaL_checknumber(L, 5); + y2 = luaL_checknumber(L, 6); + width = luaL_checknumber(L, 7); + gfx_fb_bezier(x0, y0, x1, y1, x2, y2, width); + return 0; +} + +static int +lua_fb_drawrect(lua_State *L) +{ + uint32_t x0, y0, x1, y1, fill; + int nargs; + + nargs = lua_gettop(L); + if (nargs != 5) { + lua_pushnil(L); + return 1; + } + + x0 = luaL_checknumber(L, 1); + y0 = luaL_checknumber(L, 2); + x1 = luaL_checknumber(L, 3); + y1 = luaL_checknumber(L, 4); + fill = luaL_checknumber(L, 5); + gfx_fb_drawrect(x0, y0, x1, y1, fill); + return 0; +} + +static int +lua_term_drawrect(lua_State *L) +{ + uint32_t x0, y0, x1, y1; + int nargs; + + nargs = lua_gettop(L); + if (nargs != 4) { + lua_pushnil(L); + return 1; + } + + x0 = luaL_checknumber(L, 1); + y0 = luaL_checknumber(L, 2); + x1 = luaL_checknumber(L, 3); + y1 = luaL_checknumber(L, 4); + gfx_term_drawrect(x0, y0, x1, y1); + return 0; +} + +#define REG_SIMPLE(n) { #n, lua_ ## n } +static const struct luaL_Reg gfxlib[] = { + REG_SIMPLE(fb_bezier), + REG_SIMPLE(fb_drawrect), + REG_SIMPLE(fb_line), + REG_SIMPLE(fb_putimage), + REG_SIMPLE(fb_setpixel), + REG_SIMPLE(term_drawrect), + REG_SIMPLE(term_putimage), + { NULL, NULL }, +}; + +int +luaopen_gfx(lua_State *L) +{ + luaL_newlib(L, gfxlib); + return 1; +} diff --git a/stand/liblua/lutils.c b/stand/liblua/lutils.c index 0dbd8a6f720b..20876f965f0c 100644 --- a/stand/liblua/lutils.c +++ b/stand/liblua/lutils.c @@ -32,8 +32,6 @@ #include "lstd.h" #include "lutils.h" #include "bootstrap.h" -#include -#include /* * Like loader.perform, except args are passed already parsed @@ -380,189 +378,6 @@ lua_writefile(lua_State *L) return 1; } -/* - * put image using terminal coordinates. - */ -static int -lua_term_putimage(lua_State *L) -{ - const char *name; - png_t png; - uint32_t x1, y1, x2, y2, f; - int nargs, ret = 0, error; - - nargs = lua_gettop(L); - if (nargs != 6) { - lua_pushboolean(L, 0); - return 1; - } - - name = luaL_checkstring(L, 1); - x1 = luaL_checknumber(L, 2); - y1 = luaL_checknumber(L, 3); - x2 = luaL_checknumber(L, 4); - y2 = luaL_checknumber(L, 5); - f = luaL_checknumber(L, 6); - - x1 = gfx_state.tg_origin.tp_col + x1 * gfx_state.tg_font.vf_width; - y1 = gfx_state.tg_origin.tp_row + y1 * gfx_state.tg_font.vf_height; - if (x2 != 0) { - x2 = gfx_state.tg_origin.tp_col + - x2 * gfx_state.tg_font.vf_width; - } - if (y2 != 0) { - y2 = gfx_state.tg_origin.tp_row + - y2 * gfx_state.tg_font.vf_height; - } - - if ((error = png_open(&png, name)) != PNG_NO_ERROR) { - if (f & FL_PUTIMAGE_DEBUG) - printf("%s\n", png_error_string(error)); - } else { - if (gfx_fb_putimage(&png, x1, y1, x2, y2, f) == 0) - ret = 1; - (void) png_close(&png); - } - lua_pushboolean(L, ret); - return 1; -} - -static int -lua_fb_putimage(lua_State *L) -{ - const char *name; - png_t png; - uint32_t x1, y1, x2, y2, f; - int nargs, ret = 0, error; - - nargs = lua_gettop(L); - if (nargs != 6) { - lua_pushboolean(L, 0); - return 1; - } - - name = luaL_checkstring(L, 1); - x1 = luaL_checknumber(L, 2); - y1 = luaL_checknumber(L, 3); - x2 = luaL_checknumber(L, 4); - y2 = luaL_checknumber(L, 5); - f = luaL_checknumber(L, 6); - - if ((error = png_open(&png, name)) != PNG_NO_ERROR) { - if (f & FL_PUTIMAGE_DEBUG) - printf("%s\n", png_error_string(error)); - } else { - if (gfx_fb_putimage(&png, x1, y1, x2, y2, f) == 0) - ret = 1; - (void) png_close(&png); - } - lua_pushboolean(L, ret); - return 1; -} - -static int -lua_fb_setpixel(lua_State *L) -{ - uint32_t x, y; - int nargs; - - nargs = lua_gettop(L); - if (nargs != 2) { - lua_pushnil(L); - return 1; - } - - x = luaL_checknumber(L, 1); - y = luaL_checknumber(L, 2); - gfx_fb_setpixel(x, y); - return 0; -} - -static int -lua_fb_line(lua_State *L) -{ - uint32_t x0, y0, x1, y1, wd; - int nargs; - - nargs = lua_gettop(L); - if (nargs != 5) { - lua_pushnil(L); - return 1; - } - - x0 = luaL_checknumber(L, 1); - y0 = luaL_checknumber(L, 2); - x1 = luaL_checknumber(L, 3); - y1 = luaL_checknumber(L, 4); - wd = luaL_checknumber(L, 5); - gfx_fb_line(x0, y0, x1, y1, wd); - return 0; -} - -static int -lua_fb_bezier(lua_State *L) -{ - uint32_t x0, y0, x1, y1, x2, y2, width; - int nargs; - - nargs = lua_gettop(L); - if (nargs != 7) { - lua_pushnil(L); - return 1; - } - - x0 = luaL_checknumber(L, 1); - y0 = luaL_checknumber(L, 2); - x1 = luaL_checknumber(L, 3); - y1 = luaL_checknumber(L, 4); - x2 = luaL_checknumber(L, 5); - y2 = luaL_checknumber(L, 6); - width = luaL_checknumber(L, 7); - gfx_fb_bezier(x0, y0, x1, y1, x2, y2, width); - return 0; -} - -static int -lua_fb_drawrect(lua_State *L) -{ - uint32_t x0, y0, x1, y1, fill; - int nargs; - - nargs = lua_gettop(L); - if (nargs != 5) { - lua_pushnil(L); - return 1; - } - - x0 = luaL_checknumber(L, 1); - y0 = luaL_checknumber(L, 2); - x1 = luaL_checknumber(L, 3); - y1 = luaL_checknumber(L, 4); - fill = luaL_checknumber(L, 5); - gfx_fb_drawrect(x0, y0, x1, y1, fill); - return 0; -} - -static int -lua_term_drawrect(lua_State *L) -{ - uint32_t x0, y0, x1, y1; - int nargs; - - nargs = lua_gettop(L); - if (nargs != 4) { - lua_pushnil(L); - return 1; - } - - x0 = luaL_checknumber(L, 1); - y0 = luaL_checknumber(L, 2); - x1 = luaL_checknumber(L, 3); - y1 = luaL_checknumber(L, 4); - gfx_term_drawrect(x0, y0, x1, y1); - return 0; -} - #define REG_SIMPLE(n) { #n, lua_ ## n } static const struct luaL_Reg loaderlib[] = { REG_SIMPLE(delay), @@ -581,17 +396,6 @@ static const struct luaL_Reg loaderlib[] = { { NULL, NULL }, }; -static const struct luaL_Reg gfxlib[] = { - REG_SIMPLE(fb_bezier), - REG_SIMPLE(fb_drawrect), - REG_SIMPLE(fb_line), - REG_SIMPLE(fb_putimage), - REG_SIMPLE(fb_setpixel), - REG_SIMPLE(term_drawrect), - REG_SIMPLE(term_putimage), - { NULL, NULL }, -}; - static const struct luaL_Reg iolib[] = { { "close", lua_closefile }, REG_SIMPLE(getchar), @@ -631,12 +435,6 @@ lua_add_features(lua_State *L) lua_setfield(L, -2, "features"); } -static void -luaopen_gfx(lua_State *L) -{ - luaL_newlib(L, gfxlib); -} - int luaopen_loader(lua_State *L) { diff --git a/stand/liblua/lutils.h b/stand/liblua/lutils.h index 280fb77aa665..c1fd6af496e5 100644 --- a/stand/liblua/lutils.h +++ b/stand/liblua/lutils.h @@ -26,6 +26,7 @@ #include +int luaopen_gfx(lua_State *); int luaopen_loader(lua_State *); int luaopen_io(lua_State *); int luaopen_pager(lua_State *); From nobody Fri Feb 16 04:00: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 4TbdWD67Kvz59ZDR; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWD48lxz4H6b; Fri, 16 Feb 2024 04:00:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TQ17omXinxVTKXbU9hVPgZxnG/4LAgiEaUt/mUWFqAU=; b=gVVY/tu6FfSCr9XBw4H/xiO+HP11XT/SmW+sx25Kldi2JEF+GEHtZQm/SMivgyLl+NxIi3 Fg312gyHj16oqFrGw+GjFMqiTPr1Wv8m2oqmkficllk5iW5mq30KmkIdWcBwhRYq65qfUF +VgS5A9fhfaREGuWqoLz56APm/9DEMXUwLyxuN7D7WdJjFDPr3GnP33nituO0jh/hPuxHz wE98cDzGH+fEWg9cGpfdK895g5SW6vEqoKj7TUzNEvOVi3WkGaTTTU7bmFQJH27b94L4OR URIY3nnQ1Q+QseVku2Gsp4GWMZexEbZ8I1AMJxRhYd3BF7P1FtfzHn9m8ZHTtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TQ17omXinxVTKXbU9hVPgZxnG/4LAgiEaUt/mUWFqAU=; b=jSmL/algHCoV9bviQzUhSdXYXnWDeemLbJuR01GGLzrIatXQyEqswOW9ldmzWYisMN9nfz 1ejjqPIunHuOpLH9OPS/fV8MLqE1xNOJcWV8XxQcUeiGhF585NEt7rvlqm7iq2a4ZAcuS8 D+3k0fhZ2ALC/i/SxlAd5mQUzlh2mAejSOueNHYi2pP48waZXAoH14KNXPsrBI42LyDVdt QXuF+KyBbBRoRV7jocCdlO57DeRhToZUw4zOwUPWQHMwgQ3j2Z08h/GwUJq9ao06VIj3H1 OrQCAddZ+5Gz4NIracFZsZxBtbK5cAMBNPycHAATKgPUIFDPU4chKcAFQi1YzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056024; a=rsa-sha256; cv=none; b=XhiKHnZ38QE3dSiu/QPFC/w5g4Wa5bfRaX/vfbzDNJK9yx49AEZg3yh9fe5M3Y8kG+J3TI /bdH0Yn52itfWF05bqj95cQlGEsreG6l+FRB3GbrOPf0z5j6QYd+3KlJ3kNdmW6jB9aW8t k6kQDC9lik/wv673Cuk/pomTXVJRdFRtUZqr3Nty8mUuk5X3Snlyetr8LD1KGFsAJ8Rfie /3PgBAp9Q2dBexbZTdLecHAES1o4wHT5oJF/9hFQDtjLKdYV8wjkCygMXF5CkBgCDdYUNl U+tJZCoWCpDuXhhlvAWAxdRz4MI5tMuFG0wDZHz4vCnLhY0o8aduKEuXqHkA5Q== 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 4TbdWD3FLZz18Xd; Fri, 16 Feb 2024 04:00:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40OhA018906; Fri, 16 Feb 2024 04:00:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40OI7018903; Fri, 16 Feb 2024 04:00:24 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:24 GMT Message-Id: <202402160400.41G40OI7018903@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: 9b16231032dd - main - loader: Create new gfx table 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 9b16231032ddb40be282d76ec0d82b3a0ec96d60 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9b16231032ddb40be282d76ec0d82b3a0ec96d60 commit 9b16231032ddb40be282d76ec0d82b3a0ec96d60 Author: Warner Losh AuthorDate: 2024-02-16 03:53:07 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:22 +0000 loader: Create new gfx table Create a new gfx global table. Put into it all the graphics bindings that we have in loader today. For now, have compatability binding for loader. Remove them from loader. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43902 --- stand/common/interp_lua.c | 27 +++++++++++++++++++++++++++ stand/liblua/lutils.c | 1 - 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/stand/common/interp_lua.c b/stand/common/interp_lua.c index 3f758baebc2d..a347526b67c9 100644 --- a/stand/common/interp_lua.c +++ b/stand/common/interp_lua.c @@ -97,6 +97,31 @@ static const luaL_Reg loadedlibs[] = { {NULL, NULL} }; +static void +interp_init_md(lua_State *L) +{ + luaL_requiref(L, "gfx", luaopen_gfx, 1); + lua_pop(L, 1); /* Remove lib */ + + /* + * Add in the comparability references in the loader table. Doing it with + * a pseudo-embedded script is easier than the raw calls. + */ + if (luaL_dostring(L, + "loader.fb_bezier = gfx.fb_bezier\n" + "loader.fb_drawrect = gfx.fb_drawrect\n" + "loader.fb_line = gfx.fb_line\n" + "loader.fb_putimage = gfx.fb_putimage\n" + "loader.fb_setpixel = gfx.fb_setpixel\n" + "loader.term_drawrect = gfx.term_drawrect\n" + "loader.term_putimage = gfx.term_putimage") != 0) { + lua_pop(L, 1); + const char *errstr = lua_tostring(L, -1); + errstr = errstr == NULL ? "unknown" : errstr; + printf("Error adding compat loader bindings: %s.\n", errstr); + } +} + void interp_init(void) { @@ -123,6 +148,8 @@ interp_init(void) lua_pop(luap, 1); /* remove lib */ } + interp_init_md(luap); + filename = getenv("loader_lua"); if (filename == NULL) filename = LOADER_LUA; diff --git a/stand/liblua/lutils.c b/stand/liblua/lutils.c index 20876f965f0c..0be9f5f28ac3 100644 --- a/stand/liblua/lutils.c +++ b/stand/liblua/lutils.c @@ -439,7 +439,6 @@ int luaopen_loader(lua_State *L) { luaL_newlib(L, loaderlib); - luaopen_gfx(L); /* Add loader.machine and loader.machine_arch properties */ lua_pushstring(L, MACHINE); lua_setfield(L, -2, "machine"); From nobody Fri Feb 16 04:00: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 4TbdWG0nhvz59Z8b; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWF5MlQz4H6w; Fri, 16 Feb 2024 04:00:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QM1RZPOIyR0PNR/CxiU+e6bYoC2gD9cW/a4M/tsPCEk=; b=wueijX65TlilVtlAMVgyNeaX0mcHkoG8QRbX0eAWXaksrbwTYFml/Bf5FyUMzsV0HvIUNk 8ZSm1EHQ4MuU5jVOlifHdfXJEyoUpzj7fxAgxbLU1QaAabU9il2Ec75whXSBfCegJcvjMg Gy5VGCTXfFqMg/82NKoNtVzz+EcMCi+8Y2RrpcrVsJNy2t3idr8+HklkP5bNbWBJ3ITjeU SuN46fg8DRDUzPJ8FPE5mT1twYxs1uRKji4QxGsxQRdit6SgNyxtQyaW21/3EOHA929leN ey81doVoN4JGq+X7hGeJa/wte6SRt7dZa693EfQwIkWCs0vK672KhfllaDWKUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QM1RZPOIyR0PNR/CxiU+e6bYoC2gD9cW/a4M/tsPCEk=; b=qOsgekxTUJ+jbc0pbrlr0DtFmpV7lnZuaQXZK8Hw8gCbJzWWGkqHdT5xJlhO76eFk3IHXp AsUlbmYC5EUs/tS/bbKYi4Xd0mfCPJjB0qEHRYdjQxGkqO3099/eRDek6eTjUcKCiaNa5q uBAKYDVxppivwmP7/1BK6cLZ6DQ8NuEDppDdKuNsXg0aVQ5Oa7HVQt8ty8KRuYGIHeAeqK HAB7vv+7rRLkKp8XTtlpCp/GAHkWsseRzCRCqkA4iqavYeUTVfZq/fjhz9o7YyM4afb95c CwSH2JU9tOViC3ImYxn78MHnaGjW7yWuV3VnduaIJw+QaeRxGcZ/DMrFXJFzSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056025; a=rsa-sha256; cv=none; b=KAIJLSulZyu6gW9Vv/QbH7gsjsLdCsY0WP7EeSnYDFIxAZt01q9YvPjuyfC1rj7wR3SSjg IDT8cSkW3FJJhOU/VeBgGRLlaS56gJBzxvjV78CPwkPY3fT2eIvZIgx6cMEk2vP9t8MqOr jPpC2FL9eoxdryEoiJG6pVklAcX4YKFSYti8AKMV0zbemYZUJZVWGMmZs37Alc2wPU9t/m O+K/zIGKTt/iTRfRw3VgiX0QwO9owCXbxn+dx2XLW6Ry2KbjZnn1XfIYRFBlYKMM/n6tNq 74mF/Yy2DSvBuyS42Rj5r5IZTmpx4psZZ+Cc4ocUAQ3e47v60nN1Hvrwd5E68w== 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 4TbdWF4TxVz18Pl; Fri, 16 Feb 2024 04:00:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40PgT018948; Fri, 16 Feb 2024 04:00:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40PdK018945; Fri, 16 Feb 2024 04:00:25 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:25 GMT Message-Id: <202402160400.41G40PdK018945@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: 60e199d9fde1 - main - loader: Add prototype for gfx_interp_md 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 60e199d9fde1c3c60a96b969bf6982278cbc1e88 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=60e199d9fde1c3c60a96b969bf6982278cbc1e88 commit 60e199d9fde1c3c60a96b969bf6982278cbc1e88 Author: Warner Losh AuthorDate: 2024-02-16 03:53:19 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:22 +0000 loader: Add prototype for gfx_interp_md This function will be used to draw in the graphics bindings when the loader is compiled with graphics (gfx) support. Provide definitions for lua and the simple interpreter. 4th support is forthcoming. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43903 --- stand/common/gfx_fb.h | 2 ++ stand/common/interp_simple.c | 8 ++++++++ stand/liblua/gfx_utils.c | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/stand/common/gfx_fb.h b/stand/common/gfx_fb.h index adb60c673ea9..84062864c57f 100644 --- a/stand/common/gfx_fb.h +++ b/stand/common/gfx_fb.h @@ -281,6 +281,8 @@ void term_image_display(teken_gfx_t *, const teken_rect_t *); void reset_font_flags(void); +void gfx_interp_md(void); + #ifdef __cplusplus } #endif diff --git a/stand/common/interp_simple.c b/stand/common/interp_simple.c index fa021c796308..61ed724af9d0 100644 --- a/stand/common/interp_simple.c +++ b/stand/common/interp_simple.c @@ -198,3 +198,11 @@ interp_include(const char *filename) } return(res); } + +/* + * There's no graphics commands for the simple interpreter. + */ +void +gfx_interp_md(void) +{ +} diff --git a/stand/liblua/gfx_utils.c b/stand/liblua/gfx_utils.c index fe208dc990d8..d2d22738c929 100644 --- a/stand/liblua/gfx_utils.c +++ b/stand/liblua/gfx_utils.c @@ -240,3 +240,8 @@ luaopen_gfx(lua_State *L) luaL_newlib(L, gfxlib); return 1; } + +void +gfx_interp_md(void) +{ +} From nobody Fri Feb 16 04:00: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 4TbdWH1wf2z59ZK7; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWG6Fjjz4HHh; Fri, 16 Feb 2024 04:00:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=09RywJpyORvv3yoH/3bQk4JGW7+OsOc8Y5zzACFcVVw=; b=p6MMsHIxaUir63DUDvvSNhqLMLTXQvZDAjACetCMrnpJl0yv2F9J4lLoW9ubJyRMhlwPiN mB/WKn3ob5lDNEku5MOUPQVZAas8HZMjBMqFl+Vyt44k0718FtZ254lv0UPvwFMxKR6QcD Cz00CX5knZEy6RM6m/pMdmEwv9ZWxg59ePDu8QWG22ZFfLBsQrjx0XRKzbetVVrSw1kQ5B m46Owpd63bixl0XFmxZqM7xXiMqE4naXCjYF3JOVE7JcHovMV4lcCBw0E5YhVlFyqmz7i9 KjWL0cBlbvUm1OLZSSiQ2KbniJS5uHxC9e5f/cW96jtrsphcwOUJshw7Tztlrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=09RywJpyORvv3yoH/3bQk4JGW7+OsOc8Y5zzACFcVVw=; b=JUJukx9hhcoz2rj7UK/Am5+AwyToucUc3KzMpVuay0JZ4/Q3ZrsRnmUvPtgMWLEoBLLBoK tx6UqTCtHlxYyxufNgzmZ4PWB59vYiEsmhp8mKVGH59/fqVCq0qMfIeX/37Nalc4BLCMVn AVysparFoJ5Yf5ysSohsSDD7Rgco2cc/VORgfKs3j7T2kWcM+aHPyZdo9DxtF8FxWnbTSN ih4OeCbUQwFpvi8PtS9bzIF8j6ZpQG0fuMH9AcCGcPfe+W6ZHPzqm68Lz6Car5RtgQfGQ3 +bmYC1qktnJyAHKiQlX/88xqVh3H3giiFj1kY1BQQb9UT6qnluYftZnsCOGhOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056026; a=rsa-sha256; cv=none; b=FZDkZdshNlhbTfovXPWb2Tu12BOrOLncrdsTkf1aoCOmi6QwfIo8o283ACFCMHVpKXWul4 utXwKN4OIIFog4Kg84zTRorcHU1HmT4dtx6ymbTkkdjBI9rWR8imtlr98FldRNfbuE7BUa on8Vked5+HlHA5Pxco0Yr4OBpG90bjyuNpJ1xO5Tlsy7DLJaC2wWPTMiVn/aklWMvPJmWj zdWTQcDQo1yl0qrXOj9TgmCjir2KUEDR4403yUGQfxMqiYbr4EuXZr4JZ+Hmz5R35RFXQ/ azaMjjpYAGt5sgM//7RuusOPcxxVg3C0ReyNyXfpdrxSiTK8GC95rSrBhkWhVw== 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 4TbdWG5GMXz18mY; Fri, 16 Feb 2024 04:00:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40QNJ019005; Fri, 16 Feb 2024 04:00:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40QUI019002; Fri, 16 Feb 2024 04:00:26 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:26 GMT Message-Id: <202402160400.41G40QUI019002@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: 9c8bf69a53f6 - main - loader: Only create gfx 4th bindings when gfx is available 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 9c8bf69a53f628b62fb196182ea55fb34c1c19e1 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9c8bf69a53f628b62fb196182ea55fb34c1c19e1 commit 9c8bf69a53f628b62fb196182ea55fb34c1c19e1 Author: Warner Losh AuthorDate: 2024-02-16 03:53:28 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:22 +0000 loader: Only create gfx 4th bindings when gfx is available Only create the gfx bindings for 4th when it's compiled into the loader. We do this with a linker set that only gets brought in to those loaders that call gfx_framework_init. This calls gfx_interp_md() will will drag in gfx_loader.c which will add to the linker set that registers these bindings. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43904 --- stand/common/gfx_fb.c | 1 + stand/ficl/Makefile | 5 +- stand/ficl/gfx_loader.c | 259 ++++++++++++++++++++++++++++++++++++++++++++++++ stand/ficl/loader.c | 188 ----------------------------------- 4 files changed, 263 insertions(+), 190 deletions(-) diff --git a/stand/common/gfx_fb.c b/stand/common/gfx_fb.c index b61591bf3d45..3a5b851915e0 100644 --- a/stand/common/gfx_fb.c +++ b/stand/common/gfx_fb.c @@ -181,6 +181,7 @@ gfx_framework_init(void) * Setup font list to have builtin font. */ (void) insert_font(NULL, FONT_BUILTIN); + gfx_interp_md(); /* Draw in the gfx interpreter for this thing */ } static uint8_t * diff --git a/stand/ficl/Makefile b/stand/ficl/Makefile index a9b384024667..fe4ee03974b1 100644 --- a/stand/ficl/Makefile +++ b/stand/ficl/Makefile @@ -11,8 +11,8 @@ BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \ SRCS= ${BASE_SRCS} sysdep.c softcore.c CLEANFILES+= softcore.c testmain testmain.o -CFLAGS.loader.c += -I${SRCTOP}/sys/teken -CFLAGS.loader.c += -I${SRCTOP}/contrib/pnglite +CFLAGS.gfx_loader.c += -I${SRCTOP}/sys/teken +CFLAGS.gfx_loader.c += -I${SRCTOP}/contrib/pnglite .ifmake testmain CFLAGS= -DTESTMAIN -D_TESTMAIN CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC} @@ -21,6 +21,7 @@ PROG= testmain .include .else LIB= ficl +BASE_SRCS+= gfx_loader.c # Not TESTMAINable .include .endif diff --git a/stand/ficl/gfx_loader.c b/stand/ficl/gfx_loader.c new file mode 100644 index 000000000000..a4501a7d3c39 --- /dev/null +++ b/stand/ficl/gfx_loader.c @@ -0,0 +1,259 @@ +/*- + * Copyright (c) 2024 Netflix, Inc + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +/* Copied from a file that likely shoulve have had this at the top */ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright 2020 Toomas Soome + * Copyright 2020 RackTop Systems, Inc. + * + * 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. + */ + +/******************************************************************* +** g f x _ l o a d e r . c +** Additional FICL words designed for FreeBSD's loader +** for graphics +*******************************************************************/ + +#include +#include "bootstrap.h" +#include +#include +#include "ficl.h" + +/* FreeBSD's loader interaction words and extras + * for graphics + * fb-bezier ( x0 y0 x1 y1 x2 y2 wd -- ) + * fb-drawrect ( x1 y1 x2 y2 fill -- ) + * fb-line ( x0 y0 x1 y1 wd -- ) + * fb-putimage ( flags x1 y1 x2 y2 -- flag ) + * fb-setpixel ( x y -- ) + * term-drawrect ( x1 y1 x2 y2 fill -- ) + * term-putimage ( flags x1 y1 x2 y2 -- flag ) + */ + +/* ( flags x1 y1 x2 y2 -- flag ) */ +void +ficl_term_putimage(FICL_VM *pVM) +{ + char *namep, *name; + int names; + unsigned long ret = FICL_FALSE; + uint32_t x1, y1, x2, y2, f; + png_t png; + int error; + +#if FICL_ROBUST > 1 + vmCheckStack(pVM, 7, 1); +#endif + names = stackPopINT(pVM->pStack); + namep = (char *) stackPopPtr(pVM->pStack); + y2 = stackPopINT(pVM->pStack); + x2 = stackPopINT(pVM->pStack); + y1 = stackPopINT(pVM->pStack); + x1 = stackPopINT(pVM->pStack); + f = stackPopINT(pVM->pStack); + + x1 = gfx_state.tg_origin.tp_col + x1 * gfx_state.tg_font.vf_width; + y1 = gfx_state.tg_origin.tp_row + y1 * gfx_state.tg_font.vf_height; + if (x2 != 0) { + x2 = gfx_state.tg_origin.tp_col + + x2 * gfx_state.tg_font.vf_width; + } + if (y2 != 0) { + y2 = gfx_state.tg_origin.tp_row + + y2 * gfx_state.tg_font.vf_height; + } + + name = ficlMalloc(names + 1); + if (!name) + vmThrowErr(pVM, "Error: out of memory"); + (void) strncpy(name, namep, names); + name[names] = '\0'; + + if ((error = png_open(&png, name)) != PNG_NO_ERROR) { + if (f & FL_PUTIMAGE_DEBUG) + printf("%s\n", png_error_string(error)); + } else { + if (gfx_fb_putimage(&png, x1, y1, x2, y2, f) == 0) + ret = FICL_TRUE; /* success */ + (void) png_close(&png); + } + ficlFree(name); + stackPushUNS(pVM->pStack, ret); +} + +/* ( flags x1 y1 x2 y2 -- flag ) */ +void +ficl_fb_putimage(FICL_VM *pVM) +{ + char *namep, *name; + int names; + unsigned long ret = FICL_FALSE; + uint32_t x1, y1, x2, y2, f; + png_t png; + int error; + +#if FICL_ROBUST > 1 + vmCheckStack(pVM, 7, 1); +#endif + names = stackPopINT(pVM->pStack); + namep = (char *) stackPopPtr(pVM->pStack); + y2 = stackPopINT(pVM->pStack); + x2 = stackPopINT(pVM->pStack); + y1 = stackPopINT(pVM->pStack); + x1 = stackPopINT(pVM->pStack); + f = stackPopINT(pVM->pStack); + + name = ficlMalloc(names + 1); + if (!name) + vmThrowErr(pVM, "Error: out of memory"); + (void) strncpy(name, namep, names); + name[names] = '\0'; + + if ((error = png_open(&png, name)) != PNG_NO_ERROR) { + if (f & FL_PUTIMAGE_DEBUG) + printf("%s\n", png_error_string(error)); + } else { + if (gfx_fb_putimage(&png, x1, y1, x2, y2, f) == 0) + ret = FICL_TRUE; /* success */ + (void) png_close(&png); + } + ficlFree(name); + stackPushUNS(pVM->pStack, ret); +} + +void +ficl_fb_setpixel(FICL_VM *pVM) +{ + FICL_UNS x, y; + +#if FICL_ROBUST > 1 + vmCheckStack(pVM, 2, 0); +#endif + + y = stackPopUNS(pVM->pStack); + x = stackPopUNS(pVM->pStack); + gfx_fb_setpixel(x, y); +} + +void +ficl_fb_line(FICL_VM *pVM) +{ + FICL_UNS x0, y0, x1, y1, wd; + +#if FICL_ROBUST > 1 + vmCheckStack(pVM, 5, 0); +#endif + + wd = stackPopUNS(pVM->pStack); + y1 = stackPopUNS(pVM->pStack); + x1 = stackPopUNS(pVM->pStack); + y0 = stackPopUNS(pVM->pStack); + x0 = stackPopUNS(pVM->pStack); + gfx_fb_line(x0, y0, x1, y1, wd); +} + +void +ficl_fb_bezier(FICL_VM *pVM) +{ + FICL_UNS x0, y0, x1, y1, x2, y2, width; + +#if FICL_ROBUST > 1 + vmCheckStack(pVM, 7, 0); +#endif + + width = stackPopUNS(pVM->pStack); + y2 = stackPopUNS(pVM->pStack); + x2 = stackPopUNS(pVM->pStack); + y1 = stackPopUNS(pVM->pStack); + x1 = stackPopUNS(pVM->pStack); + y0 = stackPopUNS(pVM->pStack); + x0 = stackPopUNS(pVM->pStack); + gfx_fb_bezier(x0, y0, x1, y1, x2, y2, width); +} + +void +ficl_fb_drawrect(FICL_VM *pVM) +{ + FICL_UNS x1, x2, y1, y2, fill; + +#if FICL_ROBUST > 1 + vmCheckStack(pVM, 5, 0); +#endif + + fill = stackPopUNS(pVM->pStack); + y2 = stackPopUNS(pVM->pStack); + x2 = stackPopUNS(pVM->pStack); + y1 = stackPopUNS(pVM->pStack); + x1 = stackPopUNS(pVM->pStack); + gfx_fb_drawrect(x1, y1, x2, y2, fill); +} + +void +ficl_term_drawrect(FICL_VM *pVM) +{ + FICL_UNS x1, x2, y1, y2; + +#if FICL_ROBUST > 1 + vmCheckStack(pVM, 4, 0); +#endif + + y2 = stackPopUNS(pVM->pStack); + x2 = stackPopUNS(pVM->pStack); + y1 = stackPopUNS(pVM->pStack); + x1 = stackPopUNS(pVM->pStack); + gfx_term_drawrect(x1, y1, x2, y2); +} + +/************************************************************************** + f i c l C o m p i l e G f x +** Build FreeBSD platform extensions into the system dictionary +** for gfx +**************************************************************************/ +static void ficlCompileGfx(FICL_SYSTEM *pSys) +{ + ficlCompileFcn **fnpp; + FICL_DICT *dp = pSys->dp; + assert (dp); + + dictAppendWord(dp, "fb-setpixel", ficl_fb_setpixel, FW_DEFAULT); + dictAppendWord(dp, "fb-line", ficl_fb_line, FW_DEFAULT); + dictAppendWord(dp, "fb-bezier", ficl_fb_bezier, FW_DEFAULT); + dictAppendWord(dp, "fb-drawrect", ficl_fb_drawrect, FW_DEFAULT); + dictAppendWord(dp, "fb-putimage", ficl_fb_putimage, FW_DEFAULT); + dictAppendWord(dp, "term-drawrect", ficl_term_drawrect, FW_DEFAULT); + dictAppendWord(dp, "term-putimage", ficl_term_putimage, FW_DEFAULT); + + return; +} +FICL_COMPILE_SET(ficlCompileGfx); + +void +gfx_interp_md(void) +{ +} diff --git a/stand/ficl/loader.c b/stand/ficl/loader.c index edde4f477d55..618d9483fbd9 100644 --- a/stand/ficl/loader.c +++ b/stand/ficl/loader.c @@ -44,8 +44,6 @@ #include "bootstrap.h" #include #include -#include -#include #include "ficl.h" /* FreeBSD's loader interaction words and extras @@ -65,182 +63,6 @@ * .# ( value -- ) */ -#ifndef TESTMAIN -/* ( flags x1 y1 x2 y2 -- flag ) */ -void -ficl_term_putimage(FICL_VM *pVM) -{ - char *namep, *name; - int names; - unsigned long ret = FICL_FALSE; - uint32_t x1, y1, x2, y2, f; - png_t png; - int error; - -#if FICL_ROBUST > 1 - vmCheckStack(pVM, 7, 1); -#endif - names = stackPopINT(pVM->pStack); - namep = (char *) stackPopPtr(pVM->pStack); - y2 = stackPopINT(pVM->pStack); - x2 = stackPopINT(pVM->pStack); - y1 = stackPopINT(pVM->pStack); - x1 = stackPopINT(pVM->pStack); - f = stackPopINT(pVM->pStack); - - x1 = gfx_state.tg_origin.tp_col + x1 * gfx_state.tg_font.vf_width; - y1 = gfx_state.tg_origin.tp_row + y1 * gfx_state.tg_font.vf_height; - if (x2 != 0) { - x2 = gfx_state.tg_origin.tp_col + - x2 * gfx_state.tg_font.vf_width; - } - if (y2 != 0) { - y2 = gfx_state.tg_origin.tp_row + - y2 * gfx_state.tg_font.vf_height; - } - - name = ficlMalloc(names + 1); - if (!name) - vmThrowErr(pVM, "Error: out of memory"); - (void) strncpy(name, namep, names); - name[names] = '\0'; - - if ((error = png_open(&png, name)) != PNG_NO_ERROR) { - if (f & FL_PUTIMAGE_DEBUG) - printf("%s\n", png_error_string(error)); - } else { - if (gfx_fb_putimage(&png, x1, y1, x2, y2, f) == 0) - ret = FICL_TRUE; /* success */ - (void) png_close(&png); - } - ficlFree(name); - stackPushUNS(pVM->pStack, ret); -} - -/* ( flags x1 y1 x2 y2 -- flag ) */ -void -ficl_fb_putimage(FICL_VM *pVM) -{ - char *namep, *name; - int names; - unsigned long ret = FICL_FALSE; - uint32_t x1, y1, x2, y2, f; - png_t png; - int error; - -#if FICL_ROBUST > 1 - vmCheckStack(pVM, 7, 1); -#endif - names = stackPopINT(pVM->pStack); - namep = (char *) stackPopPtr(pVM->pStack); - y2 = stackPopINT(pVM->pStack); - x2 = stackPopINT(pVM->pStack); - y1 = stackPopINT(pVM->pStack); - x1 = stackPopINT(pVM->pStack); - f = stackPopINT(pVM->pStack); - - name = ficlMalloc(names + 1); - if (!name) - vmThrowErr(pVM, "Error: out of memory"); - (void) strncpy(name, namep, names); - name[names] = '\0'; - - if ((error = png_open(&png, name)) != PNG_NO_ERROR) { - if (f & FL_PUTIMAGE_DEBUG) - printf("%s\n", png_error_string(error)); - } else { - if (gfx_fb_putimage(&png, x1, y1, x2, y2, f) == 0) - ret = FICL_TRUE; /* success */ - (void) png_close(&png); - } - ficlFree(name); - stackPushUNS(pVM->pStack, ret); -} - -void -ficl_fb_setpixel(FICL_VM *pVM) -{ - FICL_UNS x, y; - -#if FICL_ROBUST > 1 - vmCheckStack(pVM, 2, 0); -#endif - - y = stackPopUNS(pVM->pStack); - x = stackPopUNS(pVM->pStack); - gfx_fb_setpixel(x, y); -} - -void -ficl_fb_line(FICL_VM *pVM) -{ - FICL_UNS x0, y0, x1, y1, wd; - -#if FICL_ROBUST > 1 - vmCheckStack(pVM, 5, 0); -#endif - - wd = stackPopUNS(pVM->pStack); - y1 = stackPopUNS(pVM->pStack); - x1 = stackPopUNS(pVM->pStack); - y0 = stackPopUNS(pVM->pStack); - x0 = stackPopUNS(pVM->pStack); - gfx_fb_line(x0, y0, x1, y1, wd); -} - -void -ficl_fb_bezier(FICL_VM *pVM) -{ - FICL_UNS x0, y0, x1, y1, x2, y2, width; - -#if FICL_ROBUST > 1 - vmCheckStack(pVM, 7, 0); -#endif - - width = stackPopUNS(pVM->pStack); - y2 = stackPopUNS(pVM->pStack); - x2 = stackPopUNS(pVM->pStack); - y1 = stackPopUNS(pVM->pStack); - x1 = stackPopUNS(pVM->pStack); - y0 = stackPopUNS(pVM->pStack); - x0 = stackPopUNS(pVM->pStack); - gfx_fb_bezier(x0, y0, x1, y1, x2, y2, width); -} - -void -ficl_fb_drawrect(FICL_VM *pVM) -{ - FICL_UNS x1, x2, y1, y2, fill; - -#if FICL_ROBUST > 1 - vmCheckStack(pVM, 5, 0); -#endif - - fill = stackPopUNS(pVM->pStack); - y2 = stackPopUNS(pVM->pStack); - x2 = stackPopUNS(pVM->pStack); - y1 = stackPopUNS(pVM->pStack); - x1 = stackPopUNS(pVM->pStack); - gfx_fb_drawrect(x1, y1, x2, y2, fill); -} - -void -ficl_term_drawrect(FICL_VM *pVM) -{ - FICL_UNS x1, x2, y1, y2; - -#if FICL_ROBUST > 1 - vmCheckStack(pVM, 4, 0); -#endif - - y2 = stackPopUNS(pVM->pStack); - x2 = stackPopUNS(pVM->pStack); - y1 = stackPopUNS(pVM->pStack); - x1 = stackPopUNS(pVM->pStack); - gfx_term_drawrect(x1, y1, x2, y2); -} -#endif /* TESTMAIN */ - void ficlSetenv(FICL_VM *pVM) { @@ -1042,16 +864,6 @@ void ficlCompilePlatform(FICL_SYSTEM *pSys) dictAppendWord(dp, "ccall", ficlCcall, FW_DEFAULT); dictAppendWord(dp, "uuid-from-string", ficlUuidFromString, FW_DEFAULT); dictAppendWord(dp, "uuid-to-string", ficlUuidToString, FW_DEFAULT); -#ifndef TESTMAIN - dictAppendWord(dp, "fb-setpixel", ficl_fb_setpixel, FW_DEFAULT); - dictAppendWord(dp, "fb-line", ficl_fb_line, FW_DEFAULT); - dictAppendWord(dp, "fb-bezier", ficl_fb_bezier, FW_DEFAULT); - dictAppendWord(dp, "fb-drawrect", ficl_fb_drawrect, FW_DEFAULT); - dictAppendWord(dp, "fb-putimage", ficl_fb_putimage, FW_DEFAULT); - dictAppendWord(dp, "term-drawrect", ficl_term_drawrect, FW_DEFAULT); - dictAppendWord(dp, "term-putimage", ficl_term_putimage, FW_DEFAULT); - dictAppendWord(dp, "isvirtualized?",ficlIsvirtualizedQ, FW_DEFAULT); -#endif SET_FOREACH(fnpp, Xficl_compile_set) (*fnpp)(pSys); From nobody Fri Feb 16 04:00: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 4TbdWJ2Cqxz59ZGk; Fri, 16 Feb 2024 04:00:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWJ0BgYz4HNW; Fri, 16 Feb 2024 04:00:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=puoDqWPSMZ9KdgUk03lczYLaPDXictUrUlnXIH7sx+E=; b=m/U0l9uysUfCTH9pgtpObT1hDVOCuokphYqfFnIFWes4CnmzAsbow9qMZd2CH6SfPXSZVY VEjdsxq2hYdnXrwa/Cr+LOqxtCVhsRGAuLavSGd4/wABokAcDhk7xpaQ93mBG8MhNulPvJ YEo8KGIPhS3m7y+L6ST7eicDO4U3xjlJQ/8sznkhCQ5skmUKSLiijhTO7rdztEc3QlxUlr Wr67ngpn9LtkpYRElqLo56ZaTAbbMUDcbObxin77PPzJiFiYcBNlun16F4Xa5KP4UMEPWQ Aow1IwHb1BHastFwndwc9pfNqoQIUnloTULnKyeVuWXrOBxLJHnAkQKwxBxJgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=puoDqWPSMZ9KdgUk03lczYLaPDXictUrUlnXIH7sx+E=; b=cjUImclHv3m8IhMQMTOYidoyz5NgbHV7xZHqJREo4D+Kwbl2YzPIXgT5KFBJauqN71CFjq ykytw7It3gptmuwoCmbJE93HN8wHH56alO7Nol7Pt/1y8tNZnpwB1roaq/3EMwMsSBA9Yn l5o0UaEvt+fNasxwKtTypcH1qxP3aZVxOEM9zijgtjH+vQL/7WNR3oYSZfLG822ibM2VGm BNR3m008X0y5aItF9IKaSeZV5Xfp6eSRYhiwc1QEALmheqdY93jxB3/tCxWxVhu2C9ALLY +CkMJO8oSU0jLWyaFfhmoaw3E3DHhOH1TIsUvAAweZbKVu+/4VJH7j6axDfg5w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056028; a=rsa-sha256; cv=none; b=CtPE0FD8XEnPfFny8IxH6+trX3Vc9LhvYzzxKZy7/gQ/2kDSJPuJqJcuVlDkGVwjiUsD4P uq328xw3bWlRzUuWdzjWEXF3vZK18K5IAYGJXT1d09brYZ+oaYoW1Ub5de1FGYaGXsY5u0 Vc90Ls5AK54sTl7Y8Bzbd3UvcFg8wj0XSQ5hqGrng0SgmhXd+O1ocWO/P9cxAqNNV83i1/ zKkkF96io21osYXmyfKmcS8043/Xw6VFOYpY2E+HboLAbmpfDUhH79JBoeI7vyYvwOz7VM CgmPoVGIk4k6aaXcpvFYayYcpaNBYiCxKUv3QSxFjfDFmYFgZmKscqxl9u2GSw== 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 4TbdWH6HTzz18Pm; Fri, 16 Feb 2024 04:00:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40RZg019053; Fri, 16 Feb 2024 04:00:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40RiK019050; Fri, 16 Feb 2024 04:00:27 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:27 GMT Message-Id: <202402160400.41G40RiK019050@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: 23d9b5c9febf - main - loader: Remove gfx_fb_stub.c, it's no longer needed 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 23d9b5c9febf4b02957d01bc46ee75530b0dcb4a Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=23d9b5c9febf4b02957d01bc46ee75530b0dcb4a commit 23d9b5c9febf4b02957d01bc46ee75530b0dcb4a Author: Warner Losh AuthorDate: 2024-02-16 03:53:39 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:23 +0000 loader: Remove gfx_fb_stub.c, it's no longer needed Now that we draw in the gfx bindings for all our interpreters only when graphics support is compiled in, we can eliminate this from all the loaders that don't have graphics support. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43905 --- stand/common/gfx_fb_stub.c | 76 ---------------------------------------- stand/kboot/kboot/Makefile | 2 -- stand/powerpc/ofw/Makefile | 4 +-- stand/uboot/Makefile | 3 +- stand/userboot/userboot/Makefile | 2 -- 5 files changed, 2 insertions(+), 85 deletions(-) diff --git a/stand/common/gfx_fb_stub.c b/stand/common/gfx_fb_stub.c deleted file mode 100644 index a4ebdeb8c388..000000000000 --- a/stand/common/gfx_fb_stub.c +++ /dev/null @@ -1,76 +0,0 @@ -/*- - * Copyright 2021 Toomas Soome - * All rights reserved. - * - * 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 -/* - * Generic gfx stubs. - */ - -#include -#include -#include "bootstrap.h" -#include "gfx_fb.h" - -font_list_t fonts = STAILQ_HEAD_INITIALIZER(fonts); -teken_gfx_t gfx_state = { 0 }; - -void -gfx_fb_setpixel(uint32_t x __unused, uint32_t y __unused) -{ -} - -void -gfx_fb_drawrect(uint32_t x1 __unused, uint32_t y1 __unused, - uint32_t x2 __unused, uint32_t y2 __unused, uint32_t fill __unused) -{ -} - -void -gfx_term_drawrect(uint32_t x1 __unused, uint32_t y1 __unused, - uint32_t x2 __unused, uint32_t y2 __unused) -{ -} - -void -gfx_fb_line(uint32_t x0 __unused, uint32_t y0 __unused, - uint32_t x1 __unused, uint32_t y1 __unused, uint32_t w __unused) -{ -} - -void -gfx_fb_bezier(uint32_t x0 __unused, uint32_t y0 __unused, - uint32_t x1 __unused, uint32_t y1 __unused, uint32_t x2 __unused, - uint32_t y2 __unused, uint32_t w __unused) -{ -} - -int -gfx_fb_putimage(png_t *png __unused, uint32_t ux1 __unused, - uint32_t uy1 __unused, uint32_t ux2 __unused, uint32_t uy2 __unused, - uint32_t flags __unused) -{ - return (1); -} diff --git a/stand/kboot/kboot/Makefile b/stand/kboot/kboot/Makefile index 055027b85eb2..2e68a9ba9214 100644 --- a/stand/kboot/kboot/Makefile +++ b/stand/kboot/kboot/Makefile @@ -21,7 +21,6 @@ INSTALLFLAGS= -b SRCS= \ bootinfo.c \ conf.c \ - gfx_fb_stub.c \ hostcons.c \ hostdisk.c \ hostfs.c \ @@ -32,7 +31,6 @@ SRCS= \ util.c \ vers.c -CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken .if ${MK_LOADER_ZFS} != "no" CFLAGS+= -I${ZFSSRC} CFLAGS+= -I${SYSDIR}/contrib/openzfs/include diff --git a/stand/powerpc/ofw/Makefile b/stand/powerpc/ofw/Makefile index 3e4c92220fac..b7cbbd9fca00 100644 --- a/stand/powerpc/ofw/Makefile +++ b/stand/powerpc/ofw/Makefile @@ -17,9 +17,7 @@ INSTALLFLAGS= -b # Architecture-specific loader code SRCS= conf.c vers.c main.c elf_freebsd.c ppc64_elf_freebsd.c start.c -SRCS+= ucmpdi2.c gfx_fb_stub.c - -CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken +SRCS+= ucmpdi2.c .include "${BOOTSRC}/fdt.mk" .if ${MK_FDT} == "yes" diff --git a/stand/uboot/Makefile b/stand/uboot/Makefile index 83ac5949cbb3..4405f09408bf 100644 --- a/stand/uboot/Makefile +++ b/stand/uboot/Makefile @@ -46,10 +46,9 @@ LDFLAGS+= -Wl,-znotext SRCS+= main.c vers.c SRCS+= copy.c devicename.c elf_freebsd.c glue.c -SRCS+= net.c reboot.c time.c gfx_fb_stub.c +SRCS+= net.c reboot.c time.c SRCS+= uboot_console.c uboot_disk.c uboot_fdt.c uboot_module.c -CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken CFLAGS.glue.c+= -DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib CFLAGS+= -I${BOOTSRC}/common diff --git a/stand/userboot/userboot/Makefile b/stand/userboot/userboot/Makefile index d652f2b53968..15ac8701e4d4 100644 --- a/stand/userboot/userboot/Makefile +++ b/stand/userboot/userboot/Makefile @@ -31,7 +31,6 @@ SRCS+= main.c SRCS+= userboot_cons.c SRCS+= userboot_disk.c SRCS+= vers.c -SRCS+= gfx_fb_stub.c CFLAGS+= -Wall CFLAGS+= -I${BOOTSRC}/userboot @@ -43,7 +42,6 @@ CFLAGS.main.c+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs .endif CWARNFLAGS.main.c += -Wno-implicit-function-declaration -CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken NEWVERSWHAT= "User boot ${LOADER_INTERP}" ${MACHINE_CPUARCH} VERSION_FILE= ${.CURDIR}/../userboot/version From nobody Fri Feb 16 04:00: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 4TbdWK3rJKz59ZGq; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWK1SYfz4HNd; Fri, 16 Feb 2024 04:00:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p4z/ddsiMDmZ87DQplUCTHjptwiY31LyQBhkJANy3TI=; b=abTGCOsw1okEKkj+8YK/6AqgrgkX/G7OLbLhbRKvigYL283/67QrEb+o3IFk0T6j0nNcZi s23rGTFWS22UUBq9L2nY7QUI/0uAdRTxpLM2YjVAmzN0dR2VMJYQBHDs3opUboiBoat5tB +6le1akefH3rUNzy3prmXPj8OippuD7blJdrYRFOFGUv6SOiRKH6wvLsGPw+gnZXDEDVJK DJ9zwKOWJ/FVKHJ6f0Mv2FNfM0PsM4pV5YXGlvbRpGKm7+s6jC0nf6i0abIJa7eH4TmVN5 rmXm2aCcpKJsOTcxsM/WE5Vn/V8i2U4qSQwP+mS2orZ2twlhZ3/KVX7DJbGpsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p4z/ddsiMDmZ87DQplUCTHjptwiY31LyQBhkJANy3TI=; b=qNRAlmfR2Pwu+4OAarccf93HbR6GzfAhEzgL6w3jSxf8NwSVx4w9vNLB3X9A4pwNs/nYBn SlH1LhClwPaTjrzS3ogKT08AePrKaPhE+kV4nsb2X3YKsQi5XjBVhq6NPC3EcbYT+B/NVv A5Jf3zFV3vYxg8wTbHmr8rp7F3wND87V7Fqc28WY35W8FPAF9dAA9xvdkoJfXpS+VzfNzJ I1qDqcPEpvI94XF+PmBjofBKJdsdpaovpq2Gacn8Lk2yg1scU4tyY3oyRb6ePDASXtkWYE 4Qqp9/9w+pEXX9A0qf5PrKwSbPUlGG9I0w34DZ/Kai1Hw1S7Hw/MzumxR6ko6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056029; a=rsa-sha256; cv=none; b=kYCOqNHQmrZH6zKXQ4Bspl99/XizzSfrfLDGIUF1uW31ZCzHH0HjyFqwkVevWVdfig1tdv gFuDtANpKGhpLK7kYQfGkKpVLVNpbOIL3fMmLlTm/ZGY8ZPj9qglgzj1Xz6m31PXBMWYjd 1dsEV5rMYpJVwPNvXD0M1doeyVbBktfePX1zYQrG/sfRxSA2tYOosGWf/3LZiJhxFpKbf5 Bo99jplaKc8EZF/XQxJ85ofUKayRy5HX4sgrTQNU2aOcb9edH+glga/cspzuvZWBsThk6p A9zRmX7NzTIm5Oh8jiw7Mem4gzsCoxhcTd35OH4iVdZPPHzP17fbtMcYM8pLDg== 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 4TbdWK02FNz18mZ; Fri, 16 Feb 2024 04:00:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40SeN019113; Fri, 16 Feb 2024 04:00:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40S0w019110; Fri, 16 Feb 2024 04:00:28 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:28 GMT Message-Id: <202402160400.41G40S0w019110@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: 0921a771da8a - main - loader: Move to using linker sets to bring in optional 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 0921a771da8a9117edf26352a8a047bacbfcee45 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0921a771da8a9117edf26352a8a047bacbfcee45 commit 0921a771da8a9117edf26352a8a047bacbfcee45 Author: Warner Losh AuthorDate: 2024-02-16 03:53:47 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:23 +0000 loader: Move to using linker sets to bring in optional bits The graphics stuff is optional. When it is pulled into the system, we use a linker set to initialize the lua bindings for it now. Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43906 --- stand/common/interp_lua.c | 29 +++-------------------------- stand/liblua/gfx_utils.c | 27 +++++++++++++++++++++++++++ stand/liblua/lutils.h | 9 +++++++++ 3 files changed, 39 insertions(+), 26 deletions(-) diff --git a/stand/common/interp_lua.c b/stand/common/interp_lua.c index a347526b67c9..11595b78a7bd 100644 --- a/stand/common/interp_lua.c +++ b/stand/common/interp_lua.c @@ -97,31 +97,6 @@ static const luaL_Reg loadedlibs[] = { {NULL, NULL} }; -static void -interp_init_md(lua_State *L) -{ - luaL_requiref(L, "gfx", luaopen_gfx, 1); - lua_pop(L, 1); /* Remove lib */ - - /* - * Add in the comparability references in the loader table. Doing it with - * a pseudo-embedded script is easier than the raw calls. - */ - if (luaL_dostring(L, - "loader.fb_bezier = gfx.fb_bezier\n" - "loader.fb_drawrect = gfx.fb_drawrect\n" - "loader.fb_line = gfx.fb_line\n" - "loader.fb_putimage = gfx.fb_putimage\n" - "loader.fb_setpixel = gfx.fb_setpixel\n" - "loader.term_drawrect = gfx.term_drawrect\n" - "loader.term_putimage = gfx.term_putimage") != 0) { - lua_pop(L, 1); - const char *errstr = lua_tostring(L, -1); - errstr = errstr == NULL ? "unknown" : errstr; - printf("Error adding compat loader bindings: %s.\n", errstr); - } -} - void interp_init(void) { @@ -129,6 +104,7 @@ interp_init(void) struct interp_lua_softc *softc = &lua_softc; const char *filename; const luaL_Reg *lib; + lua_init_md_t **fnpp; TSENTER(); @@ -148,7 +124,8 @@ interp_init(void) lua_pop(luap, 1); /* remove lib */ } - interp_init_md(luap); + LUA_FOREACH_SET(fnpp) + (*fnpp)(luap); filename = getenv("loader_lua"); if (filename == NULL) diff --git a/stand/liblua/gfx_utils.c b/stand/liblua/gfx_utils.c index d2d22738c929..8d2aaacbd688 100644 --- a/stand/liblua/gfx_utils.c +++ b/stand/liblua/gfx_utils.c @@ -245,3 +245,30 @@ void gfx_interp_md(void) { } + +static void +gfx_init_md(lua_State *L) +{ + luaL_requiref(L, "gfx", luaopen_gfx, 1); + lua_pop(L, 1); /* Remove lib */ + + /* + * Add in the compatibility references in the loader table. Doing it with + * a pseudo-embedded script is easier than the raw calls. + */ + if (luaL_dostring(L, + "loader.fb_bezier = gfx.fb_bezier\n" + "loader.fb_drawrect = gfx.fb_drawrect\n" + "loader.fb_line = gfx.fb_line\n" + "loader.fb_putimage = gfx.fb_putimage\n" + "loader.fb_setpixel = gfx.fb_setpixel\n" + "loader.term_drawrect = gfx.term_drawrect\n" + "loader.term_putimage = gfx.term_putimage") != 0) { + lua_pop(L, 1); + const char *errstr = lua_tostring(L, -1); + errstr = errstr == NULL ? "unknown" : errstr; + printf("Error adding compat loader bindings: %s.\n", errstr); + } +} + +LUA_COMPILE_SET(gfx_init_md); diff --git a/stand/liblua/lutils.h b/stand/liblua/lutils.h index c1fd6af496e5..522abfd3d0d4 100644 --- a/stand/liblua/lutils.h +++ b/stand/liblua/lutils.h @@ -30,3 +30,12 @@ int luaopen_gfx(lua_State *); int luaopen_loader(lua_State *); int luaopen_io(lua_State *); int luaopen_pager(lua_State *); + +#include + +typedef void lua_init_md_t(lua_State *); +#define LUA_COMPILE_SET(func) \ + DATA_SET(Xficl_compile_set, func) /* XXX linker set know by ldscrips */ +#define LUA_FOREACH_SET(s) \ + SET_FOREACH((s), Xficl_compile_set) +SET_DECLARE(Xficl_compile_set, lua_init_md_t); From nobody Fri Feb 16 04:00: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 4TbdWL2KPxz59Z8n; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWL1K2Dz4HD5; Fri, 16 Feb 2024 04:00:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JQY2rei76Fo25IZUe5OjPmmxjlJ0bw+I6UDUXiFs4W8=; b=GAnmRCD9skJxR9Jfqjaw/C/qweUgKYfNbu6p/gUT4w/L9ebeNOfHDghoUDsxpQK3fsP4nw RVdWyhYyIekYTRUoNsUr3c0ylAzj5756zQFRVSWxzz6WlwoOA/dGTtdM1fWBKO+K0cze8l 0sk1fkogv1O1t9r0d5GA4adoZh7AIaNUAnEURWSgB5NlDD/0xMetSxooumcDmgc+KGFNdw DNlJpp1qV4zfzDVOV+y576dUVpruK7JCJTNeLxhdJ7s7LNat6kitLLZfP0BZt1jxxtEfyI eqfKEtlvEMHWikXEBOZEu/q8YqfvhAvNPJSkT5WzeOHxRi1znz0mB5l7K/CxUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JQY2rei76Fo25IZUe5OjPmmxjlJ0bw+I6UDUXiFs4W8=; b=dhBEAEp76QV4EN+QsYBZFSRYySoekV8UbYfN8neHM7N3vaEUEnnfpW1EGFgdB/FbB5R4xR ByGj1C0hX1AKVbvyLus6RxzBsiyehv+K/VwNFMbjW7EbVemg/whAU473361SQ6mZuhPh1u tpHaRIOfqozPeDcqI6OhsmGzF/mbP0T3Wez+le+R5R0rc2oAcLY6KESD+mO3Be6FluQF6a XtBynygVsiPMdGPbSOOoamdIyuhZpiTdp4ZhA2/fjFeHgnfWxSf8091GFAHRH3BYc5qxW+ oT3RVOlYQGLI1xGXofTHSpTgVxQ/mJ94qJYRnUx1cvC0TueLPriq+6s32ys0WA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056030; a=rsa-sha256; cv=none; b=JbQh+Fu4++EdkJ86e+tG28XLZ/X8vsW9C9X5lP8kfiHWYXoXCLrB22ogha/TXstTANI/ld IRdTbqD/ybmeyB3bRhY1skuRAGMIgtBNvknfyGlDHM6EgmZN+4B46bO13kHJoHElaE9J9R Nf71f6CO+8ITJ8uF5yN2+XyqYecEc16Yockb+mmTjFFR4eDjGuvsGh5MSoG5CGbwtbNZ4K BYFb+0/eyM9+nBYG3fVzV5IVhREao2oBM0OCzcdsnndDV5pGEXdmzwQlIMs6M+yLo3MmSl IjXqAoujoH0WDEK6w7sexmWAnXe+6LHV7mLt9P34HmIm95WlvfWk838MVqclKg== 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 4TbdWL0PwCz18Xf; Fri, 16 Feb 2024 04:00:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40TWf019158; Fri, 16 Feb 2024 04:00:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40T2a019155; Fri, 16 Feb 2024 04:00:29 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:29 GMT Message-Id: <202402160400.41G40T2a019155@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: a8f8c53761c4 - main - loader: Move gfx functions to gfx.lua.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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: a8f8c53761c4b0436c9d546ebe046003f1b3d88f Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a8f8c53761c4b0436c9d546ebe046003f1b3d88f commit a8f8c53761c4b0436c9d546ebe046003f1b3d88f Author: Warner Losh AuthorDate: 2024-02-16 03:53:55 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:23 +0000 loader: Move gfx functions to gfx.lua.8 Now that the fb_* and term_* functions are available in the gfx table, move the documentation to gfx.lua.8. Add information about backwards compatibility. Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D43907 --- stand/lua/Makefile | 1 + stand/lua/gfx.lua.8 | 106 +++++++++++++++++++++++++++++++++++++++++++++++++ stand/lua/loader.lua.8 | 89 ++++++++--------------------------------- 3 files changed, 124 insertions(+), 72 deletions(-) diff --git a/stand/lua/Makefile b/stand/lua/Makefile index e8fa16e6b589..4462a803beef 100644 --- a/stand/lua/Makefile +++ b/stand/lua/Makefile @@ -7,6 +7,7 @@ MAN= loader.conf.lua.5 \ config.lua.8 \ core.lua.8 \ drawer.lua.8 \ + gfx.lua.8 \ hook.lua.8 \ loader.lua.8 \ menu.lua.8 \ diff --git a/stand/lua/gfx.lua.8 b/stand/lua/gfx.lua.8 new file mode 100644 index 000000000000..82d3f90f4af7 --- /dev/null +++ b/stand/lua/gfx.lua.8 @@ -0,0 +1,106 @@ +.\" +.\" Copyright (c) 2024 Netflix, Inc. +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd February 6, 2024 +.Dt GFX.LUA 8 +.Os +.Sh NAME +.Nm gfx.lua +.Nd Fx Lua gfx module +.Sh DESCRIPTION +The built-in graphics related Lua bindings for the +.Fx +boot loaders using the Lua interpreter are available via the +.Ic gfx +table. +.Ss Exported Functions +The following functions are exported in the +.Nm loader +table. +.Bl -tag -width term_putimage +.It Fn fb_bezier x0 y0 x1 y1 x2 y2 width +Draw a bezier curve through the points +.Pq Va x0 , Va y0 , +.Pq Va x1 , Va y1 , +and +.Pq Va x2 , Va y2 +of width +.Va width . +The units are in pixels and have an origin of +.Pq 0 , 0 . +.It Fn fb_drawrect x0 y0 x1 y1 fill +Fill in a rectangle with the pixel +.Va fill +with the corners +.Pq Va x0 , Va y0 +and +.Pq Va x1 , Va y1 . +The units are in pixels and have an origin of +.Pq 0 , 0 . +.It Fn fb_line x0 y0 x1 y1 width +Draw a line from +.Pq Va x0 , Va y0 +to +.Pq Va x1 , Va y1 +with a width of +.Va width . +The units are in pixels and have an origin of +.Pq 0 , 0 . +.It Fn fb_putimage name x0 y0 x1 y1 f +Load the PNG file +.Va name +and place it in the rectangle +with the corners +.Pq Va x0 , Va y0 +and +.Pq Va x1 , Va y1 +and fill with pixel +.Va f . +The units are in pixels and have an origin of +.Pq 0 , 0 . +.It Fn fb_set_pixel x y +Sets the pixel at +.Pq Va x , Va y . +The units are in pixels and have an origin of +.Pq 0 , 0 . +.It Fn term_drawrect x0 y0 x1 y1 +Draw the outline of a rectangle with the text coordinate corners of +.Pq Va x0 , Va y0 +and +.Pq Va x1 , Va y1 . +The units are in character cells and have an origin of +.Pq 1 , 1 . +.It Fn term_putimage name x0 y0 x1 y1 f +Load the PNG file +.Va name +and place it in the rectangle +with the text coordinate corners +.Pq Va x0 , Va y0 +and +.Pq Va x1 , Va y1 +and fill with pixel +.Va f . +The units are in character cells and have an origin of +.Pq 1 , 1 . +.El +.Pp +This table is optional and should only be used if it is non-nil and if +.Fn core.isFramebufferConsole +is true. +.Ss Compatibility +All the interfaces described above are also available via the +.Ic loader +table through at last FreeBSD 15.0. +.Sh SEE ALSO +.Xr loader.conf 5 , +.Xr core.lua 8 , +.Xr loader 8 , +.Xr loader.lua 8 +.Sh AUTHORS +The +.Nm +man page was written by +.An Warner Losh Aq Mt imp@FreeBSD.org . + diff --git a/stand/lua/loader.lua.8 b/stand/lua/loader.lua.8 index cd436255d4a5..ff3b91ddfb09 100644 --- a/stand/lua/loader.lua.8 +++ b/stand/lua/loader.lua.8 @@ -147,80 +147,24 @@ environments. Removes the environment variable .Va name from the loader's environment list. -.It Fn fb_bezier x0 y0 x1 y1 x2 y2 width -Draw a bezier curve through the points -.Pq Va x0 , Va y0 , -.Pq Va x1 , Va y1 , -and -.Pq Va x2 , Va y2 -of width -.Va width . -The units are in pixels and have an origin of -.Pq 0 , 0 . -.It Fn fb_drawrect x0 y0 x1 y1 fill -Fill in a rectangle with the pixel -.Va fill -with the corners -.Pq Va x0 , Va y0 -and -.Pq Va x1 , Va y1 . -The units are in pixels and have an origin of -.Pq 0 , 0 . -.It Fn fb_line x0 y0 x1 y1 width -Draw a line from -.Pq Va x0 , Va y0 -to -.Pq Va x1 , Va y1 -with a width of -.Va width . -The units are in pixels and have an origin of -.Pq 0 , 0 . -.It Fn fb_putimage name x0 y0 x1 y1 f -Load the PNG file -.Va name -and place it in the rectangle -with the corners -.Pq Va x0 , Va y0 -and -.Pq Va x1 , Va y1 -and fill with pixel -.Va f . -The units are in pixels and have an origin of -.Pq 0 , 0 . -.It Fn fb_set_pixel x y -Sets the pixel at -.Pq Va x , Va y . -The units are in pixels and have an origin of -.Pq 0 , 0 . -.It Fn term_drawrect x0 y0 x1 y1 -Draw the outline of a rectangle with the text coordinate corners of -.Pq Va x0 , Va y0 -and -.Pq Va x1 , Va y1 . -The units are in character cells and have an origin of -.Pq 1 , 1 . -.It Fn term_putimage name x0 y0 x1 y1 f -Load the PNG file -.Va name -and place it in the rectangle -with the text coordinate corners -.Pq Va x0 , Va y0 -and -.Pq Va x1 , Va y1 -and fill with pixel -.Va f . -The units are in character cells and have an origin of -.Pq 1 , 1 . .El -.Pp -The functions starting with -.Fn fb_ +.Ss Compatibility +The functions +.Fn fb_bezier , +.Fn fb_drawrect , +.Fn fb_line , +.Fn fb_putimage , +.Fn fb_set_pixel , +.Fn term_drawrect , and -.Fn term_ -are optional. -They should only be used if they are non-nil and if -.Fn core.isFramebufferConsole -is true. +.Fn term_putimage +have moved to the +.Ic gfx +table. +They remain in the +.Ic loader +table for a transition period and are documented in +.Xr gfx.lua 8 . .Ss Default File In addition, the Lua interpreters start with the file .Pa /boot/lua/loader.lua @@ -231,6 +175,7 @@ If autoboot is enabled, the loaded files will boot. .Sh SEE ALSO .Xr loader.conf 5 , .Xr core.lua 8 , +.Xr gfx.lua 8 , .Xr loader 8 , .Xr sysctl 8 .Sh AUTHORS From nobody Fri Feb 16 04:00: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 4TbdWM6jQVz59ZKH; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWM2tGZz4HTT; Fri, 16 Feb 2024 04:00:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i6SxmD3taaDQ89aw9rkbd3gdBiYzZjb2upMl0HUnEGE=; b=UpaltDj5D9ddPpSZHtCPAI+DcunC/65VK3Ptv0RUE8eEwI9ayS2k6Nxa7Etvx6JZTesXIe PMTzU+4fcqNmZ4iQl6iueHnTERiEuLuKvkkJvvvAQjxMZS4QjmPX4qsG29Rl5OnmbkS4iV 0SRLZFoEM8eIY1zOLPDCgiEa1J8maNZuGDaWeXRif5gm+4yz+G/KwV4Fy/fXJWxVEStPEk /t+t3qLn5jAJnsGFtUjbToLtSJRNqefM4u1d1Cr/a6Wiv9DJLljaCFjeNWfuUrgWk4AKGv hX7EePFwM+p2lssD2B8JP0fzKJ6PB4DBnZBQkx8kZa+or7iE1v5ZMpFMagL76Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i6SxmD3taaDQ89aw9rkbd3gdBiYzZjb2upMl0HUnEGE=; b=tH/BX7aqNYCVaAMkD0PE/SEO19kITodvUVKHpBFmvbbGqZ3WL8nGz+vC8G5XVLq2CI0xNc 480tZPX7iPgcucSqGeyW/l4s6tlewxrAeueriHWPobj6XMca8WdA8JlDn2TNtJu88tw61J w3OK8phB8BLxPhAwJSTx1n6WAYSdhZNWtmpZZn72mWHiDRcCZKBILaNAGjSrAyZDUz4jdB jQAh57FPhVuCwFB/aoTGskfwWpS1q/Sl0qpejjMootHLSbUGvMvM656ZusA3qCoeO45G3m tR8Q7RC5/pzPz0luyCUrRjCrroGC4bKoYPTkH74b+k1oT5wvqaQt0arNdO83Vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056031; a=rsa-sha256; cv=none; b=fTb+kKI9ff7y08tPIre5mTsJx79rz+zRYdWr9vEKJ3GHbf72wVahqaqvMzAd55nOsy6ad7 aLrV2Kxo52tbhx+iwMH1KsrzoIaOpx4/NTwKfimj8wwj85mspLzZ3NcvIPumopi5i0uJEh YwXJJ+/7mRZeo0+3NV/2e4F8AI3fIkvwZ2gVwCYdVx54aPHbKWdgHyYG+M2a+0m89XV4sF yrlUfBIAHwx0BIwHirRrhjU7rZ576gJW2CfrwJu7iWDVIa7lnVt5hjvN/FKFlquOU95R9/ 8Vphjz8BT/J9e3C8TZ8V8SJj7TIMnKi1XWi7V8SLV1CMB2iokMDSd/vcemRXHg== 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 4TbdWM1hpyz18b3; Fri, 16 Feb 2024 04:00:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40Vkd019206; Fri, 16 Feb 2024 04:00:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40VHa019203; Fri, 16 Feb 2024 04:00:31 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:31 GMT Message-Id: <202402160400.41G40VHa019203@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: 0fd98b8a7691 - main - loader: Move drawer.lua over to gfx table. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 0fd98b8a7691b4f11e1bfbcb53a3a7c68d7c1fb7 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0fd98b8a7691b4f11e1bfbcb53a3a7c68d7c1fb7 commit 0fd98b8a7691b4f11e1bfbcb53a3a7c68d7c1fb7 Author: Warner Losh AuthorDate: 2024-02-16 03:54:04 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:23 +0000 loader: Move drawer.lua over to gfx table. Drawer.lua is the only bit of lua code in the base that uses any of the functons moved from the loader table to the gfx table. Move the main code to using the gfx dispatch. Add compat code for running on old loaders that creates the newer-style gfx table with the term_* functions we call in it populated. This will even work on the super old versions of the loader that don't have them (we'll still skip using them). Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D43908 --- stand/lua/drawer.lua | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/stand/lua/drawer.lua b/stand/lua/drawer.lua index 2dcf7d5de0f8..a009b78164df 100644 --- a/stand/lua/drawer.lua +++ b/stand/lua/drawer.lua @@ -47,6 +47,19 @@ local frame_size local default_shift local shift +-- Make this code compatible with older loader binaries. We moved the term_* +-- functions from loader to the gfx. if we're running on an older loader that +-- has these functions, create aliases for them in gfx. The loader binary might +-- be so old as to not have them, but in that case, we want to copy the nil +-- values. The new loader will provide loader.* versions of all the gfx.* +-- functions for backwards compatibility, so we only define the functions we use +-- here. +if gfx == nil then + gfx = {} + gfx.term_drawrect = loader.term_drawrect + gfx.term_putimage = loader.term_putimage +end + local function menuEntryName(drawing_menu, entry) local name_handler = menu_name_handlers[entry.entry_type] @@ -225,8 +238,8 @@ local function drawframe() x = x + shift.x y = y + shift.y - if core.isFramebufferConsole() and loader.term_drawrect ~= nil then - loader.term_drawrect(x, y, x + w, y + h) + if core.isFramebufferConsole() and gfx.term_drawrect ~= nil then + gfx.term_drawrect(x, y, x + w, y + h) return true end @@ -312,9 +325,9 @@ local function drawbrand() end if core.isFramebufferConsole() and - loader.term_putimage ~= nil and + gfx.term_putimage ~= nil and branddef.image ~= nil then - if loader.term_putimage(branddef.image, 1, 1, 0, 7, 0) + if gfx.term_putimage(branddef.image, 1, 1, 0, 7, 0) then return true end @@ -363,14 +376,14 @@ local function drawlogo() end if core.isFramebufferConsole() and - loader.term_putimage ~= nil and + gfx.term_putimage ~= nil and logodef.image ~= nil then local y1 = 15 if logodef.image_rl ~= nil then y1 = logodef.image_rl end - if loader.term_putimage(logodef.image, x, y, 0, y + y1, 0) + if gfx.term_putimage(logodef.image, x, y, 0, y + y1, 0) then return true end From nobody Fri Feb 16 04:00: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 4TbdWN5sdKz59ZBh; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWN3PS9z4H9T; Fri, 16 Feb 2024 04:00:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iKAA73VbNlvqAMRKJM4G9LpqJAbowROdjnP5qglgWWg=; b=Zuv2JNvd6WXRbjUOuKWJXUpko+1XZoZKWgZ5dFuFqd0IPXlnVqfKGn6PE2RDxXvjc931ji zr5OKFO2qyTUyxce9FsR2cSDTSmVim8VUYd40gvAFIsDIcvuoTxfhoxW6SyHDS8U/WHvXi eBO+b+FX74pdC1nlQldhoLdqoSbLPwdheWgWbkhNOLbR0iZZ1ti4YmbnQlADn2FnyOu7+c /f7awUitXxoAPwky+SwWYgbmxffxdt2FL5EZvvK9tUUSnbTmPXYvn9KrYgynhFRMDMEe2p 58MnUNhQeYgBLK4nNQD8a7hQZCJRWJDkTTm2/MRzh7jmG0Pg96qmVCCfPPCLXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iKAA73VbNlvqAMRKJM4G9LpqJAbowROdjnP5qglgWWg=; b=vQVQ7kVwyFMe1U9M5bcNPin0bLBQbe4XWojTPi6CCZBFZeojwX/a8H7PPHcRJrj/yiyw9J dC7g0IG4C+UsgkDx76qU0gO9BHwKWA3fqE+cpAWhTWvFpweugoDMjJusyCF117sUqMisds +7g0xylv+iTmXyXf1/6hYrQrtpmSsYln0z2jFCmsNMAwqrzQXGpbarIC55KL1cvbG8Fms9 oHO0prB3PS5QWBAWbQqo2W5MAyyMa+IsTUYkP+XuoswSMtIHowdDYDxeKXuvCYQIfAnRyD u7Yh2pgb4yJspKsRW5gMIZYLxe79CrSH9cVl2+LhVlwK06ehq4qqaBu8GDw/qA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056032; a=rsa-sha256; cv=none; b=xjmYxGxvKcGFM2azvDzmP+t0aSeTZTryC1mMNekvZaGcuN8p2Kg6X8hq6VA8RcWZCQmwXw 0mqO+QB9Etx15ra3G3qGw9gFSuLatGTnuNQBhB53FA6Fr2EzZO2LvS72bakmbglWTQWifp 6757XRNx/Zgv66BtnLGHoiNpqeHjbk6d2pAMJNxGrIJ5Jq8GidVbTLW/GIosa6wR4O6JyR Rfya6DC7cifijTLgvtvTlNqWN9h8upEgOCDwIIvs+RzXy3CvWF6zRLqhSTDjfrA5yGq0Gy dwqjY72YmKX2UYy1bwrxd3BwUWwpI1VUl/1RNxyP0vLhoFG2rvwhug4p6SovyQ== 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 4TbdWN2WM4z18b4; Fri, 16 Feb 2024 04:00:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40WxJ019245; Fri, 16 Feb 2024 04:00:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40WVx019242; Fri, 16 Feb 2024 04:00:32 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:32 GMT Message-Id: <202402160400.41G40WVx019242@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: f7781d030ccd - main - flua: Add hash 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: f7781d030ccd18b1d4c864ecfade122ea19dafb1 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f7781d030ccd18b1d4c864ecfade122ea19dafb1 commit f7781d030ccd18b1d4c864ecfade122ea19dafb1 Author: Warner Losh AuthorDate: 2024-02-16 03:54:36 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:23 +0000 flua: Add hash module Add lua bindings to hashing functions. sha256 is available. sha256.new craetes a new object. sha256.update updates the digest. sha256.digest returns the digest as a binary string and resets the context. sha256.hexdigest returns the digest as a string of hex digits and then resets the cotnext. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43872 --- lib/flua/Makefile | 4 +- lib/flua/libhash/Makefile | 14 ++++ lib/flua/libhash/hash.3lua | 54 ++++++++++++++ lib/flua/libhash/lhash.c | 177 +++++++++++++++++++++++++++++++++++++++++++++ lib/flua/libhash/lhash.h | 11 +++ 5 files changed, 258 insertions(+), 2 deletions(-) diff --git a/lib/flua/Makefile b/lib/flua/Makefile index eb148c2125fd..769736039f7e 100644 --- a/lib/flua/Makefile +++ b/lib/flua/Makefile @@ -1,4 +1,4 @@ - -SUBDIR= libjail +SUBDIR+= libhash +SUBDIR+= libjail .include diff --git a/lib/flua/libhash/Makefile b/lib/flua/libhash/Makefile new file mode 100644 index 000000000000..f166ff90a392 --- /dev/null +++ b/lib/flua/libhash/Makefile @@ -0,0 +1,14 @@ +SHLIB_NAME= hash.so +SHLIBDIR= ${LIBDIR}/flua + +SRCS+= lhash.c + +CFLAGS+= \ + -I${SRCTOP}/contrib/lua/src \ + -I${SRCTOP}/lib/liblua \ + +LIBADD+= md + +MAN= hash.3lua + +.include diff --git a/lib/flua/libhash/hash.3lua b/lib/flua/libhash/hash.3lua new file mode 100644 index 000000000000..1662e87f7c68 --- /dev/null +++ b/lib/flua/libhash/hash.3lua @@ -0,0 +1,54 @@ +.\" +.\" Copyright (c) 2024 Netflix, Inc. +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" +.Dd February 6, 2024 +.Dt HASH 3lua +.Os +.Sh NAME +.Nm new , +.Nm update , +.Nm digest , +.Nm hexdigest +.Nd Lua Cryptographic hash module. +.Sh DESCRIPTION +The built-in cryptographic hashing Lua bindings for the are available via the +.Ic hash +table. +.Ss Supported Hashing Schemes +The following hashing schemes are supported by the hash module. +.Bl -bullet -compact +.It +sha256 +.El +.Ss APIs Supported +.Bl -tag -width asdf -compact +.It Fn new data +Compute a digest based on the +.Va data . +.It Fn update Va data +Using the current digest, process +.Va data +to compute a new digest as if all prior data had been concatenated together. +.It Fn digest +Return the hashed digest as a binary array. +This resets the context. +.It Fn hexdigest +Take +.Fn digest +and convert it to an upper case hex string. +This resets the context. +.It Va digest_size +Return the size of the digest, in bytes. +.It Va block_size +Return the block size used in bytes. +.El +.Sh EXAMPLES +.Sh SEE ALSO +.Xr sha256 3 +.Sh AUTHORS +The +.Nm +man page was written by +.An Warner Losh Aq Mt imp@FreeBSD.org . diff --git a/lib/flua/libhash/lhash.c b/lib/flua/libhash/lhash.c new file mode 100644 index 000000000000..4587961fe8a0 --- /dev/null +++ b/lib/flua/libhash/lhash.c @@ -0,0 +1,177 @@ +/*- + * Copyright (c) 2024 Netflix, Inc + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include +#include "lauxlib.h" +#include "lhash.h" + +#include +#include + +#define SHA256_META "SHA256 meta table" +#define SHA256_DIGEST_LEN 32 + +/* + * Note C++ comments indicate the before -- after state of the stack, in with a + * similar convention to forth's ( ) comments. Lua indexes are from 1 and can be + * read left to right (leftmost is 1). Negative are relative to the end (-1 is + * rightmost). A '.' indicates a return value left on the stack (all values to + * its right). Trivial functions don't do this. + */ + +/* + * Updates the digest with the new data passed in. Takes 1 argument, which + * is converted to a string. + */ +static int +lua_sha256_update(lua_State *L) +{ + size_t len; + const unsigned char *data; + SHA256_CTX *ctx; + + ctx = luaL_checkudata(L, 1, SHA256_META); + data = luaL_checklstring(L, 2, &len); + SHA256_Update(ctx, data, len); + + lua_settop(L, 1); + + return (1); +} + +/* + * Finalizes the digest value and returns it as a 32-byte binary string. The ctx + * is zeroed. + */ +static int +lua_sha256_digest(lua_State *L) +{ + SHA256_CTX *ctx; + unsigned char digest[SHA256_DIGEST_LEN]; + + ctx = luaL_checkudata(L, 1, SHA256_META); + SHA256_Final(digest, ctx); + lua_pushlstring(L, digest, sizeof(digest)); + + return (1); +} + +/* + * Finalizes the digest value and returns it as a 64-byte ascii string of hex + * numbers. The ctx is zeroed. + */ +static int +lua_sha256_hexdigest(lua_State *L) +{ + SHA256_CTX *ctx; + char buf[SHA256_DIGEST_LEN * 2 + 1]; + unsigned char digest[SHA256_DIGEST_LEN]; + static const char hex[]="0123456789abcdef"; + int i; + + ctx = luaL_checkudata(L, 1, SHA256_META); + SHA256_Final(digest, ctx); + for (i = 0; i < SHA256_DIGEST_LEN; i++) { + buf[i+i] = hex[digest[i] >> 4]; + buf[i+i+1] = hex[digest[i] & 0x0f]; + } + buf[i+i] = '\0'; + + lua_pushstring(L, buf); + + return (1); +} + +/* + * Zeros out the ctx before garbage collection. Normally this is done in + * obj:digest or obj:hexdigest, but if not, it will be wiped here. Lua + * manages freeing the ctx memory. + */ +static int +lua_sha256_done(lua_State *L) +{ + SHA256_CTX *ctx; + + ctx = luaL_checkudata(L, 1, SHA256_META); + memset(ctx, 0, sizeof(*ctx)); + + return (0); +} + +/* + * Create object obj which accumulates the state of the sha256 digest + * for its contents and any subsequent obj:update call. It takes zero + * or 1 arguments. + */ +static int +lua_sha256(lua_State *L) +{ + SHA256_CTX *ctx; + int top; + + /* We take 0 or 1 args */ + top = lua_gettop(L); // data -- data + if (top > 1) { + lua_pushnil(L); + return (1); + } + + ctx = lua_newuserdata(L, sizeof(*ctx)); // data -- data ctx + SHA256_Init(ctx); + if (top == 1) { + size_t len; + const unsigned char *data; + + data = luaL_checklstring(L, 1, &len); + SHA256_Update(ctx, data, len); + } + luaL_setmetatable(L, SHA256_META); // data ctx -- data ctx + + return (1); // data . ctx +} + +/* + * Setup the metatable to manage our userdata that we create in lua_sha256. We + * request a finalization call with __gc so we can zero out the ctx buffer so + * that we don't leak secrets if obj:digest or obj:hexdigest aren't called. + */ +static void +register_metatable_sha256(lua_State *L) +{ + luaL_newmetatable(L, SHA256_META); // -- meta + + lua_newtable(L); // meta -- meta tbl + lua_pushcfunction(L, lua_sha256_update); // meta tbl -- meta tbl fn + lua_setfield(L, -2, "update"); // meta tbl fn -- meta tbl + lua_pushcfunction(L, lua_sha256_digest); // meta tbl -- meta tbl fn + lua_setfield(L, -2, "digest"); // meta tbl fn -- meta tbl + lua_pushcfunction(L, lua_sha256_hexdigest); // meta tbl -- meta tbl fn + lua_setfield(L, -2, "hexdigest"); // meta tbl fn -- meta tbl + + /* Associate tbl with metatable */ + lua_setfield(L, -2, "__index"); // meta tbl -- meta + lua_pushcfunction(L, lua_sha256_done); // meta -- meta fn + lua_setfield(L, -2, "__gc"); // meta fn -- meta + + lua_pop(L, 1); // meta -- +} + +#define REG_SIMPLE(n) { #n, lua_ ## n } +static const struct luaL_Reg hashlib[] = { + REG_SIMPLE(sha256), + { NULL, NULL }, +}; +#undef REG_SIMPLE + +int +luaopen_hash(lua_State *L) +{ + register_metatable_sha256(L); + + luaL_newlib(L, hashlib); + + return 1; +} diff --git a/lib/flua/libhash/lhash.h b/lib/flua/libhash/lhash.h new file mode 100644 index 000000000000..c1e9788a55a3 --- /dev/null +++ b/lib/flua/libhash/lhash.h @@ -0,0 +1,11 @@ +/*- + * Copyright (c) 2024 Netflix, Inc + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include + +int luaopen_hash(lua_State *L); From nobody Fri Feb 16 04:00: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 4TbdWP6BMLz59ZKP; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWP4M91z4HLx; Fri, 16 Feb 2024 04:00:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WRXo4zfsB6pW0goeaYQ45WTckws3tiwxjhReYHU/yBk=; b=T86jh3nDd5D2EftB1ZC3SEoaPUwJ/079MzzNJxBSygQdF5VXiccTqssuSRrzXV8nkL9DYl 4WM9lnglB5ngbCi+p5TaRcuys0OfGZJ9dBDrfuTZbxvhg8dd5m+xVHf6l75CAdbpGJXwmm VOWf+XRpVtBqmbajmOF3CG4QGjxRVHq4Vq8p572v1KKa6+YIQKa/OOXq3CMLJ5/Ue1sQNY +h4SGt0yILr8HBlOQCWDhTjm7yPNFVL39Z2VWHu7z/pFek9DZ9vSbgXI5f6CxYsii7gm+Y kO6mFqFyHJKIfB60JiXbn3M4Ev3R9/kyX0q7NSIY0SHtHRBTQ3jipu7yFNFBfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WRXo4zfsB6pW0goeaYQ45WTckws3tiwxjhReYHU/yBk=; b=SCaV+nLqbHsTu0YwcybSbyXajK0ULxw3AGI9t4382luQNswb/GKUidkUuvxsdTpJz+nxW6 CEk84ZlTO3Y4yZEuG+wA5xt7ozpwAAQ8WTQn5hb7fW5EwquGW9FlUIMVDapH7m1NWS6g0b EvJC11NnljSCrpxVt+Z7KbdELk7/cGMC3jVxLcBk8rGe6hjCXkcJ2QwdTiHZF7MMSAu2zL gQ72LCQQlOjmzUgQxScZt13aKxujbCfT+CxVaaKrtuSCJJQh9bso68nIPkhmjSef0L1b6Y Yx500JMp/yzxZccp790/0It5QBvcoaTn0XEAvYtL6/zQswvFNbT0AR75AG4hMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056033; a=rsa-sha256; cv=none; b=bwUwYOy95OY99SXSfyCjAmNaXhdDGbgNP7ZspBFj0VRMSy/hInbEgWMIBrt4lwqXUpOLaf TsZLfeHDEZBqnj9tSqx+c3xxCtD4/CYljc0WGRehFZaSKoMalULvr4JdgQVMKrQ01q3Pbi qJPX0Y8oaiulvE5E8X729MA2mSRsCyHLpNw/ammEIuXoF8TtE9tNlyxMDLfugkafLC+o+F grP07l/+b1Xw1yUzy0HR466fyf2xB4vzuIrfQZqfNJz8YfWH6u/ruqzivln7ZuEIwBZUL/ Vm7eY4zH//FfAZbYibICpkuHeyJ+f0eIcW5ZMmukuIx1JhffCCz33+VewRj8LQ== 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 4TbdWP3RLLz18b6; Fri, 16 Feb 2024 04:00:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40X6U019296; Fri, 16 Feb 2024 04:00:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40XDY019293; Fri, 16 Feb 2024 04:00:33 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:33 GMT Message-Id: <202402160400.41G40XDY019293@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: e34fd722cafe - main - kboot: Add our own lua bindings 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e34fd722cafe8639214c72997f08b5f5faa9c21f Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e34fd722cafe8639214c72997f08b5f5faa9c21f commit e34fd722cafe8639214c72997f08b5f5faa9c21f Author: Warner Losh AuthorDate: 2024-02-16 03:54:55 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:23 +0000 kboot: Add our own lua bindings Create a small wrapper around the new flua hash module so we can use it here too. There's no 4th bindings, nor will they be created. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43874 --- stand/defs.mk | 1 + stand/i386/loader/Makefile | 2 +- stand/kboot/kboot/Makefile | 7 +++++++ stand/kboot/kboot/lua_bindings.c | 19 +++++++++++++++++++ stand/liblua/Makefile | 3 +++ 5 files changed, 31 insertions(+), 1 deletion(-) diff --git a/stand/defs.mk b/stand/defs.mk index e8480a8c2b1e..3624b9311161 100644 --- a/stand/defs.mk +++ b/stand/defs.mk @@ -62,6 +62,7 @@ BINDIR?= /boot # LUAPATH is where we search for and install lua scripts. LUAPATH?= /boot/lua FLUASRC?= ${SRCTOP}/libexec/flua +FLUALIB?= ${SRCTOP}/lib/flua LIBSA= ${BOOTOBJ}/libsa/libsa.a .if ${MACHINE} == "i386" diff --git a/stand/i386/loader/Makefile b/stand/i386/loader/Makefile index de96e1329b2f..57191b3c8f78 100644 --- a/stand/i386/loader/Makefile +++ b/stand/i386/loader/Makefile @@ -33,7 +33,7 @@ VERSION_FILE= ${.CURDIR}/../loader/version # # will tell you how many kiB of lomem are available. # -LOADERSIZE?= 550000 # Largest known safe size for loader.bin +LOADERSIZE?= 570000 # Largest known safe size for loader.bin .PATH: ${BOOTSRC}/i386/loader diff --git a/stand/kboot/kboot/Makefile b/stand/kboot/kboot/Makefile index 2e68a9ba9214..b571c3acada1 100644 --- a/stand/kboot/kboot/Makefile +++ b/stand/kboot/kboot/Makefile @@ -60,4 +60,11 @@ CFLAGS+= -Wall DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA} ${LIBKBOOT} LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA} ${LIBKBOOT} +# Add our own lua bindings until they are universal +.if ${LOADER_INTERP} == "lua" +SRCS+= \ + lua_bindings.c +CFLAGS.lua_bindings.c+= -I${FLUALIB}/libhash +.endif + .include diff --git a/stand/kboot/kboot/lua_bindings.c b/stand/kboot/kboot/lua_bindings.c new file mode 100644 index 000000000000..ca5d0253c21f --- /dev/null +++ b/stand/kboot/kboot/lua_bindings.c @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2024 Netflix, Inc. + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include "lua.h" +#include "lauxlib.h" +#include "lutils.h" +#include "lhash.h" + +static void +lua_hash_bindings(lua_State *L) +{ + luaL_requiref(L, "hash", luaopen_hash, 1); + lua_pop(L, 1); /* Remove lib */ +} + +LUA_COMPILE_SET(lua_hash_bindings); diff --git a/stand/liblua/Makefile b/stand/liblua/Makefile index bbfa21e07f53..b0d89bec4f02 100644 --- a/stand/liblua/Makefile +++ b/stand/liblua/Makefile @@ -27,6 +27,8 @@ SRCS+= gfx_utils.c .PATH: ${FLUASRC}/modules SRCS+= lfs.c +.PATH: ${FLUALIB}/libhash +SRCS+= lhash.c WARNS?= 3 @@ -36,6 +38,7 @@ CFLAGS+= -fno-stack-protector -D__BSD_VISIBLE CFLAGS+= -I${BOOTSRC}/include -I${LIBLUASRC} -I${LUASRC} -I${LDRSRC} CFLAGS.gfx_utils.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite +CFLAGS.lhash.c+= -I${FLUALIB}/libhash -I${SRCTOP}/sys/crypto/sha2 .if ${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 0 CFLAGS+= -fPIC From nobody Fri Feb 16 04:00: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 4TbdWQ6hT6z59ZGx; Fri, 16 Feb 2024 04:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdWQ5V91z4HWt; Fri, 16 Feb 2024 04:00:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lIVLsZRnKwxuO7oWVADVEDxPiQysvgyxiD6Q/Hrts4A=; b=L6ejnZxB6Llc1Z2L46uzTaBAhMni/L3FUL0u07+oyXOxiPlwffO9c8o0oW2n8no/nMsbtL nmu7WPdGs1Yb07HGzRkq4a8tNixz6jDo88dOwqMyA3vIJUMyvp2RaoGadbK3aIU3ObW0yd 12CfuP9g2rqLnY8KgrLSvx3wgLTud/bwq0LhDHA4e+qKJ/eM1T4Ebtr6eKBDAR42wrDYr1 1LuiQYvM/HjwD1vLESPHwg4qaabTS93M3nl4UU4hYnoCJBqKW+wwL99FHzUDJ5yjOuStsA cY9GdO4AcheGV4mUDb+PA9ObESNvDqHCqmhZFeSRh6tt6m7WtNDC2FRimjynhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lIVLsZRnKwxuO7oWVADVEDxPiQysvgyxiD6Q/Hrts4A=; b=ywRoZRejbSEc0gHAriOQ5lfOLF2IDb4m8izA0X5Gt7zIoswOjANHdZ0poxAglWAOkAfU44 Juk0ttCkMXhqJQkBM41jNDP29Iw+KLvhsVWjChnQ6uhAiz0rXRZvpOUTj2OzEnRGWHYAo/ 0RQmv8Irs2RWvybeha6A2NeoRAziyYtFP3v4XU1BHaODC7ZikKz9YsgxBW1ocjKAg+WkU/ 8tS/FstwRZ3h90E+rNmye5d5FkqERaT9LwbmswH8GF/9rFlMTx05TqBegF/1NTaSEWQtXu PRhoaQ2wQLiTU4q7g1uUNYzh2pT2dW17qjJOotgpARzUMDoYv7+bq0uhpmK99A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056034; a=rsa-sha256; cv=none; b=wBlZ20oM6sshqrMHjtg7Iwq6/RPctsp6Byxncf9pFilGAyzNVNmjUgPWQ1bVnY6tqc2/8c SDKySY8gURJ8Xcx0riA6IgyE7rvBJ3mwQPW3P6mLUh6LZ2/k4tnBdKd4HjKj1yiZzmL+3r a5mZD+IljCaNHTZH+iV3xwHFt0jccsj1YEeewuwAmIEs1H2tDjUnWdxVUGEgo8vc2x8owE AVzKGV+hT4JYeDWIvbQIgdKA5e4eOpPICr54/kRNDBPbdXpGpAh+dazkYT/9fGR7R/A8J9 vPnEdydrBOn8aajKT648KBisv2ASLpK3fA+s9enuKrPFUPYHZnrBm6+QdpDCow== 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 4TbdWQ4bDPz18mb; Fri, 16 Feb 2024 04:00:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G40Yon019338; Fri, 16 Feb 2024 04:00:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G40Yqx019335; Fri, 16 Feb 2024 04:00:34 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:00:34 GMT Message-Id: <202402160400.41G40Yqx019335@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: 588ff0748f4a - main - loader: Simplify build a little 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 588ff0748f4acf8e00395f86e4956f184c7d3795 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=588ff0748f4acf8e00395f86e4956f184c7d3795 commit 588ff0748f4acf8e00395f86e4956f184c7d3795 Author: Warner Losh AuthorDate: 2024-02-16 03:55:05 +0000 Commit: Warner Losh CommitDate: 2024-02-16 03:59:23 +0000 loader: Simplify build a little Confine -DDISK_DEBUG to biosdisc.c, the only file it affects. Use modern variable arrays instead of alloca and add a sanity size minimum for biospnp nodes. These nodes are tiny enough that we needn't do a malloc/free pair: the stack is fine. Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D43914 --- stand/i386/libi386/Makefile | 8 ++------ stand/i386/libi386/biospnp.c | 3 ++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/stand/i386/libi386/Makefile b/stand/i386/libi386/Makefile index 0bc0efd35f22..fcba20fa26c4 100644 --- a/stand/i386/libi386/Makefile +++ b/stand/i386/libi386/Makefile @@ -23,7 +23,7 @@ CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED} .ifdef(BOOT_BIOSDISK_DEBUG) # Make the disk code more talkative -CFLAGS+= -DDISK_DEBUG +CFLAGS.biosdisk.c+= -DDISK_DEBUG .endif # terminal emulation @@ -35,11 +35,7 @@ CFLAGS.teken.c+= -I${SRCTOP}/sys/teken CFLAGS.bootinfo.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite CFLAGS.vbe.c+= -I${SRCTOP}/sys/teken -I${SRCTOP}/contrib/pnglite -# XXX: make alloca() useable -CFLAGS+= -Dalloca=__builtin_alloca - -CFLAGS+= -I${BOOTSRC}/ficl -I${BOOTSRC}/ficl/i386 \ - -I${LDRSRC} -I${BOOTSRC}/i386/common \ +CFLAGS+= -I${LDRSRC} -I${BOOTSRC}/i386/common \ -I${SYSDIR}/contrib/dev/acpica/include # Handle FreeBSD specific %b and %D printf format specifiers diff --git a/stand/i386/libi386/biospnp.c b/stand/i386/libi386/biospnp.c index 7e3bc97a35ee..a26c0d4d52d8 100644 --- a/stand/i386/libi386/biospnp.c +++ b/stand/i386/libi386/biospnp.c @@ -155,6 +155,7 @@ biospnp_enumerate(void) { uint8_t Node; struct pnp_devNode *devNodeBuffer; + uint8_t buffer[max(pnp_NodeSize, sizeof(*devNodeBuffer))]; int result; struct pnpinfo *pi; int count; @@ -163,7 +164,7 @@ biospnp_enumerate(void) if (biospnp_init()) return; - devNodeBuffer = (struct pnp_devNode *)alloca(pnp_NodeSize); + devNodeBuffer = (struct pnp_devNode *)buffer; Node = 0; count = 1000; while((Node != 0xff) && (count-- > 0)) { From nobody Fri Feb 16 04:03: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 4TbdZQ46Lwz59ZJG; Fri, 16 Feb 2024 04:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdZQ3MpLz4MgS; Fri, 16 Feb 2024 04:03:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6vK9TpWLiSr8hG0BuxF2Za4fhbIktxGGPlS8DcKNvqs=; b=hVh08rREKmryd3Cp1r75iDVkZFGjClBda0npe6RbOcWV7Q6vxV6EsMmN8FeWjll3slmJ3t wa1A4S73xDeGes3ms3X8urPSdg3ZA/uLWkI9Vy/tJ6KczaUY8LqhbIloaGSQqRJCUsD1av Rx2MEafJ3tX6uO8TkTRXMy/q/YxuTsBjaeYaIJR02Gai29mMBwGjzatWjdoxk/ss4bwSpJ rfUySZ9WHQEqv4YJ7GC3o9Bey9y/sCJMjb7UmKapdDU7Hgt9/N/HwOhxqsVxOv/qzLqWjX 2XwWvRGTvE/CmZb3aaMmas8m6hgR926e2Egzx3V7AVQ5eZ9WveNdNbfvRHxAZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708056190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6vK9TpWLiSr8hG0BuxF2Za4fhbIktxGGPlS8DcKNvqs=; b=lgjFehRNuIexgPfLb1L/NEURtPqZc2pkRSYFcz8ztAetSMAcXG+cqLU/PoQ2Rjpq7DbHoN hVn3lcbuJ0NTWC8bLWLbXXg2IxAjpHMXD+WRnwfYTdTcUVboKVJ9e9iWnv+euW0fE2Kq1J P6Rk0IxeXX4AkB7PcmfFl0B7+Q0aSQ5v4qGcr9dyLneZ5tgKMpca5GF2WmLslzFsFGFa7h w1EEDRYEX9rkPGvIMvu6Wv6wS6NdKivycLzx7S3ViVqW2et/q3VR0xxX4DtCq388uaxweM sQZ5lgKDdaMM+Q9GrX25Sl3tPZGm6MfhVku3UnA6NdQP7XTvfj5pizi/crR9gg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708056190; a=rsa-sha256; cv=none; b=u/twQgp6/B1qXZBNcgQBrlYEX9hVWiCgF0A2qICddhATSSWzgdKQjwPDnDLjPcJ9XlxvPx oljK2lD6RU9uNtmjXz5kwEt3B5UlklaCIKtk9eSe3uJ2OaNOeHDR5cmbs5HL6Xxundvn2C LwQ2nocITiMyM4E8n5dN9LPrigTr9Qkyxom/0xU54KqF+HCaQDmxMTfxLNL7wEbOciz6GP c6xBINt2E+GOjlWCF5t0DgxRdttINJpWgXSxWpFimqFLM35+ax8dAaZU6IhYhgohlzKEHH itkbAMKmJaD99LUQ6tC5ecdn0691cIZynE0aV3U5ry7QOePxPkBWEI3JcNQMpA== 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 4TbdZQ2QNvz18Z1; Fri, 16 Feb 2024 04:03:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G43Anj026965; Fri, 16 Feb 2024 04:03:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G43AiN026962; Fri, 16 Feb 2024 04:03:10 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:03:10 GMT Message-Id: <202402160403.41G43AiN026962@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: 26c8dedef118 - main - loader: line line per src file in libi386 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 26c8dedef118cebdda4a0e22949ae35bc60c45c9 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=26c8dedef118cebdda4a0e22949ae35bc60c45c9 commit 26c8dedef118cebdda4a0e22949ae35bc60c45c9 Author: Warner Losh AuthorDate: 2024-02-16 04:02:37 +0000 Commit: Warner Losh CommitDate: 2024-02-16 04:02:37 +0000 loader: line line per src file in libi386 Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43913 --- stand/i386/libi386/Makefile | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/stand/i386/libi386/Makefile b/stand/i386/libi386/Makefile index fcba20fa26c4..ac12d67e3475 100644 --- a/stand/i386/libi386/Makefile +++ b/stand/i386/libi386/Makefile @@ -1,14 +1,35 @@ .include -LIB= i386 - -SRCS= bio.c biosacpi.c biosdisk.c biosmem.c biospnp.c \ - biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \ - comconsole.c devicename.c elf32_freebsd.c \ - elf64_freebsd.c multiboot.c multiboot_tramp.S relocater_tramp.S \ - i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.S \ - time.c vidconsole.c vbe.c amd64_tramp.S spinconsole.c +LIB= i386 + +SRCS+= amd64_tramp.S +SRCS+= bio.c +SRCS+= biosacpi.c +SRCS+= biosdisk.c +SRCS+= biosmem.c +SRCS+= biospci.c +SRCS+= biospnp.c +SRCS+= biossmap.c +SRCS+= bootinfo.c +SRCS+= bootinfo32.c +SRCS+= bootinfo64.c +SRCS+= comconsole.c +SRCS+= devicename.c +SRCS+= elf32_freebsd.c +SRCS+= elf64_freebsd.c +SRCS+= i386_copy.c +SRCS+= i386_module.c +SRCS+= multiboot.c +SRCS+= multiboot_tramp.S +SRCS+= nullconsole.c +SRCS+= pxe.c +SRCS+= pxetramp.S +SRCS+= relocater_tramp.S +SRCS+= spinconsole.c +SRCS+= time.c +SRCS+= vbe.c +SRCS+= vidconsole.c .PATH: ${SYSDIR}/teken SRCS+= teken.c From nobody Fri Feb 16 04: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 4TbdtD4clgz59cLS; Fri, 16 Feb 2024 04: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbdtD44gjz4Psq; Fri, 16 Feb 2024 04: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=1708057012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LcNGzilS90pHp3O1kn6xa8a8wGG4PqixDwgBVuHO0tg=; b=E3hzWLhnEdszkj0ATVB0y0s20ctQzQdgqRX3t7aRcXPkz5E1/Kmi6Y/7h/+wnusgkWnOY6 Og8TlfLUG9w7emoZOGjxxOg8lS9ZtaE7sH1YWAzVpAgNKs5orNppFEYXYtszv7FY7pJPic 16C5Z/wfSnzj3ElFG/hD+suA8W9eEMCmNepIASxLiB8p9fHhCM6wuXWM+qjDno6+GAGlOo NduVEhlJU57U623Ec58fgJB2NdGNlg7uQ1/3u4d8Nm9zJ0ONfYtpKjQS8WCWtnxnEUtHe5 qK/3Eo1KRIQL6vb6NjJYCwXpaRtLzFO6+TnLdw3feNo/j8ve+kNp7ywxQXQwmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708057012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LcNGzilS90pHp3O1kn6xa8a8wGG4PqixDwgBVuHO0tg=; b=t73QUsBxl2Vd70AwAdF1d5T80u0wp6+rdMd1ggM5Ha4yMDTqdKwzVHC+nTvLzDbfK7vVOC lJ+RsMo6mPEM4zcwWYLveqhKoEuBz934BfAlc40cMjiGgr1ontdWhKdL6aK6LAyPQv+fOB lIYSIFkqoPgP5x7uyjog50iLEDGV++nmGl7SIRBbAa8kvRGx3fwzil40GiCwkRFF4Yfbrh 93btAd1Xt6nKYqktAK2nUgBmnJr2rW5Mwvks2cquLSMkeRCXDrzoo198S7wX5h1s1g1oJE BD9g8TQo9mPoQHYCxMl0nsp1YED4aworEvagv8OntvUq1fO3VUOB1mcAixvLQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708057012; a=rsa-sha256; cv=none; b=JZT4+bYOLQSxD/mo+EO8D72HWRhJD3gOLUpmgUwxmP2f53Dy23BSzAf3B2X8o2oM3Twc4E geCk6iWvHrZ/H9bwj+QKhgrQBUV7mh3iWjTwiJI7Plhi6BKNmHOsrFDDFM3CbnsVX2SPVq tHTK22V2frHvnPpP33GCIBr5B+I9h0NuB0vfClMo1iGAn1a8DYvV/Iw0NTspnM5L0kbGql EaH2Fo8sl4Nwd4QTZN10NUKVAjJLNA2brF1TMNfcrD8lxWNMHc3/U8LtouXNeubBh3iRnm z6Oi8NPDi7clK73FGZLAOaUX+w1R6rtTGmmd8ZV/vsqKbVoRYgMGAyKUtsVQmw== 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 4TbdtD37jbz190Y; Fri, 16 Feb 2024 04:16:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G4GqW6044289; Fri, 16 Feb 2024 04:16:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G4GqoK044286; Fri, 16 Feb 2024 04:16:52 GMT (envelope-from git) Date: Fri, 16 Feb 2024 04:16:52 GMT Message-Id: <202402160416.41G4GqoK044286@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: e5d1a21e5001 - main - loader: Bump the limit to 560,000 bytes for BIOS loader 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e5d1a21e500142c02fd44ce2f7822f2815a74fcc Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e5d1a21e500142c02fd44ce2f7822f2815a74fcc commit e5d1a21e500142c02fd44ce2f7822f2815a74fcc Author: Warner Losh AuthorDate: 2024-02-16 04:12:52 +0000 Commit: Warner Losh CommitDate: 2024-02-16 04:16:36 +0000 loader: Bump the limit to 560,000 bytes for BIOS loader Further experience suggests we do not need as much margin. This was mistakenly bumped to 570,000 in a prior commit, so this undoes that. Sponsored by: Netflix --- stand/i386/loader/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stand/i386/loader/Makefile b/stand/i386/loader/Makefile index 57191b3c8f78..525561b7c4d1 100644 --- a/stand/i386/loader/Makefile +++ b/stand/i386/loader/Makefile @@ -1,4 +1,3 @@ - HAVE_ZFS= ${MK_LOADER_ZFS} LOADER_NET_SUPPORT?= yes @@ -23,7 +22,7 @@ VERSION_FILE= ${.CURDIR}/../loader/version # non-random survey suggests that 20k-25k is a good value for 'most' machines. # We also need to subtract maximum stack usage (20-25k). # -# So 640k - 40k - 25k - 25k = 550k = 563,200 bytes, but use 550,000 below for +# So 640k - 40k - 25k - 25k = 550k = 563,200 bytes, but use 560,000 below for # some extra buffer for more complex setups and/or wider BIOS lomem variation. # # Some systems use more stack or have BIOS reserve more RAM (or both), and will @@ -33,7 +32,7 @@ VERSION_FILE= ${.CURDIR}/../loader/version # # will tell you how many kiB of lomem are available. # -LOADERSIZE?= 570000 # Largest known safe size for loader.bin +LOADERSIZE?= 560000 # Largest known safe size for loader.bin .PATH: ${BOOTSRC}/i386/loader From nobody Fri Feb 16 05: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 4TbgGK0kM2z59llP; Fri, 16 Feb 2024 05: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbgGK012tz4XHk; Fri, 16 Feb 2024 05: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=1708060761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jKGK9h4gF2IXP+ZAah17i7klUEpi/bxUoJj2E5P2SJ0=; b=q1YuEtV2Wk53oswEBjefkMepWGifOD6YBUI7xnnTsbL0C7ZE/ogcpSrh1QnUqObTEn7xnt WVAzTi2HR2a+JT522h8ixwkV3oFpmJ4wWDFHV2tZptzTk7axkiFMNuyVKYdozsGx/j/sWJ aiJvdOEeIamHMmgeDRkNfGfFagpJ8u7sbljDsiaDfawNpyyD8E/uZVOaRFcIJE7QHHWwaf qlIEGm01zFF2RpauuUtu+ATLbaBERTMuLY7o+o3Vq5KjL4exrxH4hJRUr9IpwR5mm2oZ8d Beobx+H/zp1rhWClurudiPg8mFkqUWgoSAT8hPd1KGqvgHZ0WCiyiS56pbE2Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708060761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jKGK9h4gF2IXP+ZAah17i7klUEpi/bxUoJj2E5P2SJ0=; b=eID5hQHl9LRe5VELXNkMUvKW7VQ87ckxHoXPJFSqR50FUZH9lyfa9pIKO0bJYTCSkgZTDy 1D20dJEZOxpX8akQuiNq78VP1h0vHPWD8K7nK0oom0bsXi/oIBLNIoLNMt2m7bx1j5Gtvx LVK/+j3hD9n69WAy6Mrjce0BW/IGuMtyvPe9zavdMJZB6qFkYbXVwpNUP0wo03TskVN98H +/52yHvwF+UDXOe5WYbRWPs1bpV5Y//0swEBwPgm+gPRyoM1TxMWEFvKCzZ/WWaWYKAFVS 67gUB3eyOUdDvJrmecoBq14n5bs+XYgvmNBoPVmwNMKFwUFjwzxMV/KZ545cQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708060761; a=rsa-sha256; cv=none; b=Rh88l2EY7MgOYeOf+NAtziRgx6QV/jETdMfRJdtXWTGv3F1XyIpDEJqPGLU5XchUvNKJcp Z2Ym1Bb6mI70Xn3LN0jG1Sc0kIHNIAJO1JbiOOjMuztkyShcZ1VnXE8QvmPgH1YsHuCkGF 16kdGOOVq1OguBqK54lCBYiwMGlaA23FKCbadNsdVtlMB+NWYsffAQw5KZV/oMQkM7KFUK pcb1+7tSIP8fP7cfXtn8U0Pjf6uNi6llYu2OH2s3LpNktcEA4UygBarYfHLrL+wIgBZd3m JZkj/n2KkYkk46VdC+FmzD6cFx5DPf0z2m+un1gkbVDnPDj/mQ3RsiKumcjF0Q== 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 4TbgGJ69KZz1BFW; Fri, 16 Feb 2024 05:19:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G5JKwO045831; Fri, 16 Feb 2024 05:19:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G5JKkN045828; Fri, 16 Feb 2024 05:19:20 GMT (envelope-from git) Date: Fri, 16 Feb 2024 05:19:20 GMT Message-Id: <202402160519.41G5JKkN045828@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 52d7bd8c4268 - stable/14 - graid: MFC: unbreak Promise RAID1 with 4+ providers 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 52d7bd8c42689e44e6de4808c284b6213104b910 Auto-Submitted: auto-generated The branch stable/14 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=52d7bd8c42689e44e6de4808c284b6213104b910 commit 52d7bd8c42689e44e6de4808c284b6213104b910 Author: Eugene Grosbein AuthorDate: 2024-02-12 07:24:28 +0000 Commit: Eugene Grosbein CommitDate: 2024-02-16 05:18:43 +0000 graid: MFC: unbreak Promise RAID1 with 4+ providers Fix a problem in graid implementation of Promise RAID1 created with 4+ disks. Such an array generally works fine until reboot only due to a bug in metadata writing code. Before the fix, next taste erronously created RAID1E (kind of RAID10) instead of RAID1, hence graid used wrong offsets for I/O operations. The bug did not affect Promise RAID1 arrays with 2 or 3 disks only. Reviewed by: mav (cherry picked from commit 81092e92ea5184c4eeedad58044d72cfef72dd24) --- sys/geom/raid/md_promise.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/geom/raid/md_promise.c b/sys/geom/raid/md_promise.c index 1c22c0756dfd..da2ea3d7da4e 100644 --- a/sys/geom/raid/md_promise.c +++ b/sys/geom/raid/md_promise.c @@ -1763,8 +1763,9 @@ g_raid_md_write_promise(struct g_raid_md_object *md, struct g_raid_volume *tvol, meta->total_disks = vol->v_disks_count; meta->stripe_shift = ffs(vol->v_strip_size / 1024); meta->array_width = vol->v_disks_count; - if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1 || - vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) + if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1) + meta->array_width = 1; + else if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) meta->array_width /= 2; meta->array_number = vol->v_global_id; meta->total_sectors = vol->v_mediasize / 512; From nobody Fri Feb 16 05:24: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 4TbgNm5xgYz59mlb; Fri, 16 Feb 2024 05:24: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbgNm5RxGz4YGn; Fri, 16 Feb 2024 05:24:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708061096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d7c3csSrlDCamk8skKb6eWNKGn8Pv82rr9SdSJvm53M=; b=GoQrCzrbMkPPgFvt7zPiCUcnfGlHugpUQd34W8Gt4ePDx9zdxkQDv2IGRpve1A4kIv4w8m DCT98ggBJjdmzLzFck5FPUlIZMDNpRptsgWuZ9RVZuB8BPjpsTjMAR14UHDs1CvGCKhddh TvdSMO8SqsIdsP3MvM96VjDUz9xcrzxGICXi37idpV2AYZg7plzhQS6VIbVmdtmybKLn5U 9saLmfzCC4+dMY5xq4CLN7m9hSl57wbVgsQoTYK1iG1z59qWgFayCZgSFd5Z/Q/FxA+/Yd 7u0lS0Wbz+Zkrb+Dm+iFGi0J3BD3WsXQPUdCU1fNS3S0ImIQ54TxLjvcvsR9bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708061096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d7c3csSrlDCamk8skKb6eWNKGn8Pv82rr9SdSJvm53M=; b=YB0F5greFifs3JxHpTs9+p9YeEvHrAbo3+qGX5FGq9uoOTSBmvNvF0W54I7eGcuU1WDjg3 oeFBosDfnIA4M1/hazcX3g35MLxepDoCJQozHlTwUN4jNjZzE582bhlicqHDF+WsPZAhyc gV5EGIY4I6PzTrA2m7EKsIIPyd326daMS2kotlNuGVt4rIa3qXvOPEUj1Q3NXn0+up5UDA 7OxafaOqb4FmqhX5DoiJY5x0t5eQswh/YKUtqDZWAls1jtcQP4w+VkJTScotbo+oOqcAZ0 wuH8kNmNqZ5N8zMxraLUbOpwgcMETvVE8BvtqXIYKeNAPSmOBeDKIv4Exg420Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708061096; a=rsa-sha256; cv=none; b=Dsg0S8ZZskiec2EVT43fwwiJgowen7pUMs2HUqFWpp0knZL4yhw0FOIs789L83vnT675tA o3w6zply5TA0GdZkW2eCJ4I+xv6wgVeIEp8LpVR9tUiZJo4HxahaJTu+e8wqdcjxDUDDGZ m3HHdXn5oJaqEDoEo4L/N55CE26P2BtbDyGK8CYY/OWuCQoAUTCj8gqTWxtaxs8Zebx2qs 6hnAfxmQNfH3fdlgS6U+BbOKHWyLgMkRNEi/Eov34eZLVNBAnfsz++BfGFWeHUpndHP3zX Z3apEmFW+65/JMHjmXaSXekVs6kazl/fgQitZ6bAzlAH/V2fhks1/NILjPLRgw== 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 4TbgNm4Vynz1Blk; Fri, 16 Feb 2024 05:24:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G5OuEn062568; Fri, 16 Feb 2024 05:24:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G5OuMB062565; Fri, 16 Feb 2024 05:24:56 GMT (envelope-from git) Date: Fri, 16 Feb 2024 05:24:56 GMT Message-Id: <202402160524.41G5OuMB062565@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 77814c95994a - stable/13 - graid: MFC: unbreak Promise RAID1 with 4+ providers 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 77814c95994aab102be0e327de788dc1c00c023d Auto-Submitted: auto-generated The branch stable/13 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=77814c95994aab102be0e327de788dc1c00c023d commit 77814c95994aab102be0e327de788dc1c00c023d Author: Eugene Grosbein AuthorDate: 2024-02-12 07:24:28 +0000 Commit: Eugene Grosbein CommitDate: 2024-02-16 05:24:32 +0000 graid: MFC: unbreak Promise RAID1 with 4+ providers Fix a problem in graid implementation of Promise RAID1 created with 4+ disks. Such an array generally works fine until reboot only due to a bug in metadata writing code. Before the fix, next taste erronously created RAID1E (kind of RAID10) instead of RAID1, hence graid used wrong offsets for I/O operations. The bug did not affect Promise RAID1 arrays with 2 or 3 disks only. Reviewed by: mav (cherry picked from commit 81092e92ea5184c4eeedad58044d72cfef72dd24) --- sys/geom/raid/md_promise.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/geom/raid/md_promise.c b/sys/geom/raid/md_promise.c index 1c22c0756dfd..da2ea3d7da4e 100644 --- a/sys/geom/raid/md_promise.c +++ b/sys/geom/raid/md_promise.c @@ -1763,8 +1763,9 @@ g_raid_md_write_promise(struct g_raid_md_object *md, struct g_raid_volume *tvol, meta->total_disks = vol->v_disks_count; meta->stripe_shift = ffs(vol->v_strip_size / 1024); meta->array_width = vol->v_disks_count; - if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1 || - vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) + if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1) + meta->array_width = 1; + else if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) meta->array_width /= 2; meta->array_number = vol->v_global_id; meta->total_sectors = vol->v_mediasize / 512; From nobody Fri Feb 16 05:31: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 4TbgXX1VDJz59nB7; Fri, 16 Feb 2024 05:31: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbgXX0p40z4Yhv; Fri, 16 Feb 2024 05:31:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708061500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RGzxuCBgbKfIrutoCr+XveJ41Fzs9xrAejGtSt4t0AM=; b=nEFZF2/2XqTDeygEne8IWTkQZQlmOAKPbDjEoM86hk7Yop5NTjCvVpbdKRgK3Zko3axOnJ CztduLS0ZlpL/IsNWRLCQKI1Ljl67PIQsu7vpJodlEinCl8TjwlD+2Dy/EsDSGoVg+oHh5 DE/kVWXYXp1KqEIhoevbvCi9i7NjivWtHj0hRFLhTyB88+soFQ1acBBfm5ZfqpGxBFGyQq BlxnBwfhYBlEAB7VoW0uIbPB3gsmaI4dOfqwOLyB0Dvhz0/9Goo/8e7TUj1lAoHC8cM+Uq 83oD35cYuV6Dd0+/Sfi5A5QDgaUkpErs9S/NCAK+ofyfhIgcqm55wiMEorvlwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708061500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RGzxuCBgbKfIrutoCr+XveJ41Fzs9xrAejGtSt4t0AM=; b=nRAfRrJ/JDc4ZSXqofHemu1dRTnRJWmMYQS+zsgTJpaP+IWsJcnmIGFG9u8OBiPJEH3K6l ZEahf4MHnJOwHt/IhIgwglId820lQmNgaQqQ9T73/vxsx/5/AuXntrOfu758CcTr7oyoJL ZOJBzh56cxH9asQ/GupUE5E2egiAfLzZCiyCB1YfKnPw8j1yzlfS3D2RBI13g89AcQGnWq ShNgza+BOyVQlqZLWzg85HVu8N5o+BFDPak3sQ3EE05r8ZLgGPjFlyLv5/bAyNDuDI58Ib Y4BilrWS6QCKoHVTp8GFo25HRIIehRwRyjDF56+bXtFVMUe4gi+CfNlhgxMoLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708061500; a=rsa-sha256; cv=none; b=ZzDyrdEvUMfY5e+qi8q2jNituL4d9NXpSR7JWh4+jo2ez6b/cnNFMp4aBniid0FawPK8wQ 6qtNt5GLxZyEkjNb26pT7dIOsL8/u3Ir7TKgEofaYXY4B5kKj3XFU2UfIEdPRwiR32T/6h A5EekIUlmTDG9UYW8NgMKNuiLVfcSJt6T6YyDJj9EMWyQ886NFgIzxvHsLriiTKMcAr5xz AoRPQ4lSqnE+lvc6piG8CVmXYynp7AxS/7QIDx7EECAkF4WPv23CCWjurDzCgLogpAK7aw +7FtJ1bMl1rGK3g2/p+4XvLULyc/OeNPHsgRs+pOCpEQLevTgaOhMaSVFNb/jQ== 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 4TbgXW6ywKz1C16; Fri, 16 Feb 2024 05:31:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41G5VdfB074908; Fri, 16 Feb 2024 05:31:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41G5VdQQ074905; Fri, 16 Feb 2024 05:31:39 GMT (envelope-from git) Date: Fri, 16 Feb 2024 05:31:39 GMT Message-Id: <202402160531.41G5VdQQ074905@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 68bc302ed0e0 - stable/12 - graid: MFC: unbreak Promise RAID1 with 4+ providers 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 68bc302ed0e08d496ee1d7be3cdc9e880ed12893 Auto-Submitted: auto-generated The branch stable/12 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=68bc302ed0e08d496ee1d7be3cdc9e880ed12893 commit 68bc302ed0e08d496ee1d7be3cdc9e880ed12893 Author: Eugene Grosbein AuthorDate: 2024-02-12 07:24:28 +0000 Commit: Eugene Grosbein CommitDate: 2024-02-16 05:31:12 +0000 graid: MFC: unbreak Promise RAID1 with 4+ providers Fix a problem in graid implementation of Promise RAID1 created with 4+ disks. Such an array generally works fine until reboot only due to a bug in metadata writing code. Before the fix, next taste erronously created RAID1E (kind of RAID10) instead of RAID1, hence graid used wrong offsets for I/O operations. The bug did not affect Promise RAID1 arrays with 2 or 3 disks only. Reviewed by: mav (cherry picked from commit 81092e92ea5184c4eeedad58044d72cfef72dd24) --- sys/geom/raid/md_promise.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/geom/raid/md_promise.c b/sys/geom/raid/md_promise.c index edbcd074184f..a7a4a3b637b6 100644 --- a/sys/geom/raid/md_promise.c +++ b/sys/geom/raid/md_promise.c @@ -1766,8 +1766,9 @@ g_raid_md_write_promise(struct g_raid_md_object *md, struct g_raid_volume *tvol, meta->total_disks = vol->v_disks_count; meta->stripe_shift = ffs(vol->v_strip_size / 1024); meta->array_width = vol->v_disks_count; - if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1 || - vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) + if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1) + meta->array_width = 1; + else if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) meta->array_width /= 2; meta->array_number = vol->v_global_id; meta->total_sectors = vol->v_mediasize / 512; From nobody Fri Feb 16 11:25: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 4TbqNj2J2Sz5BcxQ; Fri, 16 Feb 2024 11:25: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbqNj0n1tz4KZN; Fri, 16 Feb 2024 11:25:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708082725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/0nRf2D7RaSQoVRpUvxbMgs09q8I44e77/GnSICun5c=; b=oBN/OdoXR+iIxmPur+Rl7H3jOH76ialLDYxu2RsEkqcUxpip2XsrlYeNaZt5LhUOAOtJPn T6ZM9jcDksxxNzZqLFuTqLDQXkM9dlJtwyW99Oz8jmKxSte1+y6VYngDfL2LPrFKhNJ3Uc rMiNZaZ1YhssUScqGXNYg+3AlLZ35QSRcJKpIApVYgdPZqRlkyGdkh+QlP+3DfhBeOtNuP WEf+tek553pPsmPjw1QvIMMGvtlhNgmmHUt6uaXozhWGVMYPrWz14zvG8QylLdlWpXVb6y NZH5vE5HpjvO9jSuJhUQsGM76QWzOuIh/KP/q49qSqJcc9d1tNuLGEfKVrL+cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708082725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/0nRf2D7RaSQoVRpUvxbMgs09q8I44e77/GnSICun5c=; b=BH4Cj56UYeVIz/ggMll2dUVLptGjl+BRE3ztXdoLersRo3JU0u30PHVDPLaDKZDS0frkPw Ay+Zu2ie31eewv2d18x65m2rqAv0u82WXWdJm6FcUuEppzDRJOnPdGjx11Ow55MYyUhAnW Q7xCZWs617TD3hk4Rhyy+oUfbseHMohnhac7qazTOdM7GFCaiBL5YkdLWdxSgXYUsYJM8f jIdRMo8j5Dl2+02Tl49uiHv5dbYutnOnTWBnhDQOIiiDk91k0F5Kswpgfe7DdlQrmof3RA dxOzSfVG0P+LKuJV7I6+T/Z0HArlULSPiTh24+px35dsMbv3cJA3CwuHCGyDuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708082725; a=rsa-sha256; cv=none; b=F2ZuLYvRCPpCO4PI71u0mAEJdbsXQpE6WgnhHEBT/2/agWWhQzyawcPySpCTLkeKDtdqWu Oi4O7HGlt8ipP9+BGXL6jmkS+Fg/1aLKdMGEuQ7bSDs5Sa+X3cX8dNdZQh9GhWkPVqAKR2 ru95CZzx6cebDT4VuUExq/02DU50ps0WMqSzEJsvSaTl6LXJLPXFjKgrAKzdY0GyY4rmIz KZcUfp3A+kKGwOf5eEU0SGYPAgB5PIA8atNQwOnxGkY2/a4pmEfhPQjNBBZHV55FkAjF3K PDgOw6V739Sucu863junyILTdBu2FUJABsI//GR6Tw6vTqI4e+sbiR48qCmBgA== 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 4TbqNh6z2TzMXw; Fri, 16 Feb 2024 11:25:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GBPOTV067157; Fri, 16 Feb 2024 11:25:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GBPOxV067154; Fri, 16 Feb 2024 11:25:24 GMT (envelope-from git) Date: Fri, 16 Feb 2024 11:25:24 GMT Message-Id: <202402161125.41GBPOxV067154@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: 2f4e46dfdd71 - main - RACK, BBR: handle EACCES like EPERM for IP output handling 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 2f4e46dfdd710c6679f233480c9de430e6c4ef9b Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=2f4e46dfdd710c6679f233480c9de430e6c4ef9b commit 2f4e46dfdd710c6679f233480c9de430e6c4ef9b Author: Michael Tuexen AuthorDate: 2024-02-16 11:19:24 +0000 Commit: Michael Tuexen CommitDate: 2024-02-16 11:19:24 +0000 RACK, BBR: handle EACCES like EPERM for IP output handling The FreeBSD TCP base stack handles them also the same way. In case of packet filters dropping packets in the output path, this avoids retranmitting the dropped packet every 10ms or so. Reviewed by: rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43773 --- sys/netinet/tcp_stacks/bbr.c | 1 + sys/netinet/tcp_stacks/rack.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/netinet/tcp_stacks/bbr.c b/sys/netinet/tcp_stacks/bbr.c index c643f0321099..931beba7a262 100644 --- a/sys/netinet/tcp_stacks/bbr.c +++ b/sys/netinet/tcp_stacks/bbr.c @@ -13809,6 +13809,7 @@ nomore: return (error); } case EPERM: + case EACCES: tp->t_softerror = error; /* FALLTHROUGH */ case EHOSTDOWN: diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c index 0ec50bb5e5c5..49d946dbb63b 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -22376,6 +22376,7 @@ nomore: sendalot = 0; switch (error) { case EPERM: + case EACCES: tp->t_softerror = error; #ifdef TCP_ACCOUNTING crtsc = get_cyclecount(); From nobody Fri Feb 16 11: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 4TbqYy0zn6z5BdvB; Fri, 16 Feb 2024 11:33: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbqYy0Hjcz4LXw; Fri, 16 Feb 2024 11:33:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708083206; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=szjzUM3+MOwlgcLBI86881uQ4fdKqCo0AYejO3+AxBU=; b=ChyUND8egUQl/nSGTgkrR0Pj/nQgBJxl2xvDMmKIlmuXIOnO48PF7MIqkLmNJd5dppy/Nw TYLIJGVTspoIzc3ivuUd2aaG5ZSnYf9GYPpSscYJ47vdhsqcdVly59AIHPZQzdr2h1o0YF yyEcUBCKq8mRtHIIhMDnG0/NLPsTOGci436kWi8kJTcgxKDdF3Tkz7WjSCkHtzQPGAW4HD sva9ntrLKp8z58xoKK7OajdSmAHSW96wTm4H9csNJ6kZgarTCWx4Z6d63VRcRpq8hKIWs0 KwpnFEYUyts+/iYz8hoF3zcp8O6PEAOInjusYFKBGQ8ZLqeTLu/4wWnd3DL34Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708083206; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=szjzUM3+MOwlgcLBI86881uQ4fdKqCo0AYejO3+AxBU=; b=XYJab9TSjHzi9OVKZIBtBvcv4x37H5sy9ohRhFa2o8dsPyRE/PpTX9lByrtlIvuSJdk7ny z/wDv9JujKHna90r7n4RHd2LW+MFKELQwOtEfVMKZR3dz9TT3Fuq/6aRQ8AOGp1OGRJTtK Dg2uz4bFo8iXaP1EPfu4A/lgH+NywEz1xLYKuDFjb5Add00dlJLbrcQfQRCzgPh6QuO0gb eVmXJ1mz1YfocbQ9aGAt/8NnwTmiDrb0/MRgekUioDoMeiuBtD0JXdSa/MhBhCV5s6W3xw IWvRnm8nk7XcNClOyRj+hVic4EBjtDChpdYkMKqgcb3lXRg0D7ubQh8eqfSBKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708083206; a=rsa-sha256; cv=none; b=C03CoHAMQL64uknFw1AtuHVb/drvP7TEySFbt8kgd/21GRK0VPLODutQzEDVOPEinONXBf E0zjet/3NZf5uzSz2MOPCznRSoYOqvyWqNSVj5bJnNiUFki+Kn6AphJ4EuOtYiyPhJEud1 WaQ9JGgb2T6qmF0ks162iil9EYpwSBQxidm6AjI1yJaLaZCIn31op8v9OiyhDg6K91be9b 5Ctd1WzZJixZgjGHfmgY/O7x+0EVAwJKJuyd30v9liTkLSs23Mz9mXxZYLNJ8T/D6gAwjr rAHDVjWZbolFtE/fuhWLzbnb37KD/HfHgjIr9HhOcaY+R5F+nZO+BvgeVUJ0oQ== 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 4TbqYx6SYCzNfd; Fri, 16 Feb 2024 11:33:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GBXPdd083514; Fri, 16 Feb 2024 11:33:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GBXP78083511; Fri, 16 Feb 2024 11:33:25 GMT (envelope-from git) Date: Fri, 16 Feb 2024 11:33:25 GMT Message-Id: <202402161133.41GBXP78083511@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: e00fd2426294 - main - dtrace: allow NULL interface pointer for ifinfo_t translator 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e00fd24262945fdc7f16198c8abd977f743e66e4 Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=e00fd24262945fdc7f16198c8abd977f743e66e4 commit e00fd24262945fdc7f16198c8abd977f743e66e4 Author: Michael Tuexen AuthorDate: 2024-02-16 11:28:48 +0000 Commit: Michael Tuexen CommitDate: 2024-02-16 11:28:48 +0000 dtrace: allow NULL interface pointer for ifinfo_t translator This is similar to other translators and will be used in static probes where the interface is not known. Reviewed by: markj MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43728 --- cddl/lib/libdtrace/ip.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cddl/lib/libdtrace/ip.d b/cddl/lib/libdtrace/ip.d index 172d7d54bc36..2fe98858efc2 100644 --- a/cddl/lib/libdtrace/ip.d +++ b/cddl/lib/libdtrace/ip.d @@ -262,8 +262,8 @@ inline int IFF_LOOPBACK = 0x8; #pragma D binding "1.5" translator translator ifinfo_t < struct ifnet *p > { - if_name = p->if_xname; - if_local = (p->if_flags & IFF_LOOPBACK) == 0 ? 0 : 1; + if_name = p == NULL ? "" : p->if_xname; + if_local = p == NULL ? 0 : (p->if_flags & IFF_LOOPBACK) == 0 ? 0 : 1; if_addr = (uintptr_t)p; }; From nobody Fri Feb 16 12:50: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 4TbsHH4hWLz5BpKl; Fri, 16 Feb 2024 12:50: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbsHH27mlz4V9t; Fri, 16 Feb 2024 12:50:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708087851; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RPLHWoW1NI0z+VWnLNK7DhJpXrSh4IGpZMEwN21gDJE=; b=v0VNtv9tgRoWiJmf23cPys91oe1cXZf6qQhEwW3+/p6HFsOwXGAQwWb4RvFZFqVFSwZLRb kWGrzl80Lc0KbpbqZnOAAVu4LyToNA4LdNpmd31RuOGemLV1QlwXkFCzwfZjeLFw575fqm 11HlRErlFkP2Wk3SJyGarOsR9JUhxE+dJ8aMQeBvrObfU0XfKs88iaqKUtxyidiPiiOf9R rySs3w129gZTDbGUqcU1UIuoCEU0s/atl21qv4vs1XusLU1c6DrRlPFi+bdkQGh1BuLsCU RW+DyTRla5hdCRsFVoXLr+/ktb4ALZVoABChCLN6X9F563bX63rlDms6bjwFvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708087851; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RPLHWoW1NI0z+VWnLNK7DhJpXrSh4IGpZMEwN21gDJE=; b=uWF+4Qrsihomv6GLncOeDGNa3frgVqd+Eu3THERKWoVxYKL4/JXbXDuQ63le8FTkmWE0EV +76oqsmfcrDDaGea2YBzACMDMf3iEax5vbekItR2oZu4+SiCtnyeYuzauWhNJPAoV+WHTr qZBukiU2KRsZHcmCWpY4itCECFdxbYrlb7Wttp/VYxTgOmv4GcNgFypnGM4qQgq8HNbFZX eSL7ksBgPKSt+59MH5Stz7MNjxAF7yJZqe3rHV6CFwQRSUe9qiThYn1LuKXj5RV/j3XsVM TJgsRWD3Cl097shJIMQNSMI/kVlfAcM4AxJdbvT76TN86Ak9rg1gh+vq4v55Fw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708087851; a=rsa-sha256; cv=none; b=WAKv4jO1A4RQqfouN0cl2rk6dgdNZDu+kbxpyt5SKwRvCHvr/QLpGjYxOAuniMA22aLA/6 esvebkMkVD0FQcm4Uu7hYLgpxJkSC23JLSS77q6IQcTXu6yo8fhxDJ02yt7n8HcmbPSmhm Tw/n7U5XvAj5lNL+sqFeFJ6pJjYhWp+4k+uJzpvPG8eiH//eb2WbNY9qJMajr7dZxO1q5e BUVjZWKBx3SduGSZAZVmigoAPe9NpsDhEsNrqcQd6hiBHj5ifNfcw1S3ddeqm7X0ADEGdk wJw6h7eAjcvxp3uwOMiWtPZ7VslEGmxLEFcPn+gF4HiV6L9XZmnLC9O3n/9pOg== 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 4TbsHH1Cp1zPy1; Fri, 16 Feb 2024 12:50:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GCoplZ013772; Fri, 16 Feb 2024 12:50:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GCop6T013769; Fri, 16 Feb 2024 12:50:51 GMT (envelope-from git) Date: Fri, 16 Feb 2024 12:50:51 GMT Message-Id: <202402161250.41GCop6T013769@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 72ee91fed4cf - main - md5: Accept "-" as alias for stdin. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 72ee91fed4cfdcfbfb767cc166370b40e50d446a Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=72ee91fed4cfdcfbfb767cc166370b40e50d446a commit 72ee91fed4cfdcfbfb767cc166370b40e50d446a Author: Dag-Erling Smørgrav AuthorDate: 2024-02-16 12:36:58 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-02-16 12:37:29 +0000 md5: Accept "-" as alias for stdin. (based on a patch by jhb) MFC after: 1 week PR: 276915 Reported by: Hannes Hauswedell Reviewed by: allanjude, markj, jhb, emaste Differential Revision: https://reviews.freebsd.org/D43870 --- sbin/md5/md5.1 | 7 ++++++- sbin/md5/md5.c | 12 +++++++++--- sbin/md5/tests/md5_test.sh | 10 ++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1 index 0cdfff928211..a17ef5ae30b7 100644 --- a/sbin/md5/md5.1 +++ b/sbin/md5/md5.1 @@ -1,4 +1,4 @@ -.Dd May 10, 2023 +.Dd February 13, 2024 .Dt MD5 1 .Os .Sh NAME @@ -79,6 +79,11 @@ utility does the same, but with command-line options and an output format that match those of the similarly named utility that ships with Perl. .Pp +In all cases, each file listed on the command line is processed separately. +If no files are listed on the command line, or a file name is given as +.Pa - , +input is taken from stdin instead. +.Pp It is conjectured that it is computationally infeasible to produce two messages having the same message digest, or to produce any message having a given prespecified target message digest. diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c index c8292fe2f692..29f212148ce3 100644 --- a/sbin/md5/md5.c +++ b/sbin/md5/md5.c @@ -611,11 +611,16 @@ main(int argc, char *argv[]) const char *filename = *argv; const char *filemode = "rb"; + if (strcmp(filename, "-") == 0) { + f = stdin; + } else { #ifdef HAVE_CAPSICUM - if ((f = fileargs_fopen(fa, filename, filemode)) == NULL) { + f = fileargs_fopen(fa, filename, filemode); #else - if ((f = fopen(filename, filemode)) == NULL) { + f = fopen(filename, filemode); #endif + } + if (f == NULL) { if (errno != ENOENT || !(cflag && ignoreMissing)) { warn("%s", filename); failed = true; @@ -633,7 +638,8 @@ main(int argc, char *argv[]) rec = rec->next; } p = MDInput(&Algorithm[digest], f, buf, false); - (void)fclose(f); + if (f != stdin) + (void)fclose(f); MDOutput(&Algorithm[digest], p, filename); } while (*++argv); } else if (!cflag && string == NULL && !skip) { diff --git a/sbin/md5/tests/md5_test.sh b/sbin/md5/tests/md5_test.sh index c6bc1dfd7be0..6b00a6b102c4 100644 --- a/sbin/md5/tests/md5_test.sh +++ b/sbin/md5/tests/md5_test.sh @@ -197,7 +197,9 @@ bsd_${alg}_vec${i}_body() { printf '%s' \"\$inp_${i}\" >in atf_check -o inline:\"\$out_${i}_${alg}\n\" ${alg} To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 5b44edb40583 - main - md5: Ignore files in string and passthrough 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5b44edb4058365ba8e4ccfdb5176c1cddd4394fe Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=5b44edb4058365ba8e4ccfdb5176c1cddd4394fe commit 5b44edb4058365ba8e4ccfdb5176c1cddd4394fe Author: Dag-Erling Smørgrav AuthorDate: 2024-02-16 12:37:04 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-02-16 12:37:36 +0000 md5: Ignore files in string and passthrough mode. MFC after: 1 week Reviewed by: allanjude, markj Differential Revision: https://reviews.freebsd.org/D43871 --- sbin/md5/md5.1 | 2 ++ sbin/md5/md5.c | 2 +- sbin/md5/tests/md5_test.sh | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1 index a17ef5ae30b7..0a8dc46f3b1f 100644 --- a/sbin/md5/md5.1 +++ b/sbin/md5/md5.1 @@ -129,6 +129,7 @@ option, the calculated digest is printed in addition to the exit status being se .Pq Note that this option is not yet useful if multiple files are specified. .It Fl p , -passthrough Echo stdin to stdout and append the checksum to stdout. +In this mode, any files specified on the command line are silently ignored. .It Fl q , -quiet Quiet mode \(em only the checksum is printed out. Overrides the @@ -146,6 +147,7 @@ options. .It Fl s Ar string , Fl -string= Ns Ar string Print a checksum of the given .Ar string . +In this mode, any files specified on the command line are silently ignored. .It Fl t , Fl -time-trial Run a built-in time trial. For the diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c index 29f212148ce3..2045b623ff57 100644 --- a/sbin/md5/md5.c +++ b/sbin/md5/md5.c @@ -606,7 +606,7 @@ main(int argc, char *argv[]) err(1, "Unable to enter capability mode"); #endif - if (*argv) { + if (*argv && !pflag && string == NULL) { do { const char *filename = *argv; const char *filemode = "rb"; diff --git a/sbin/md5/tests/md5_test.sh b/sbin/md5/tests/md5_test.sh index 6b00a6b102c4..5b018b18c220 100644 --- a/sbin/md5/tests/md5_test.sh +++ b/sbin/md5/tests/md5_test.sh @@ -204,6 +204,8 @@ bsd_${alg}_vec${i}_body() { for opt in -q -qr -rq ; do atf_check -o inline:\"\$out_${i}_${alg}\n\" ${alg} \${opt} in done + atf_check -o inline:\"\$inp_${i}\$out_${i}_${alg}\n\" ${alg} -p To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 17d5b027c192 - main - md5: Clean up input stream rights. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 17d5b027c1921d0c6ba2de7993dd808dbf4df078 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=17d5b027c1921d0c6ba2de7993dd808dbf4df078 commit 17d5b027c1921d0c6ba2de7993dd808dbf4df078 Author: Dag-Erling Smørgrav AuthorDate: 2024-02-16 12:37:08 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-02-16 12:37:41 +0000 md5: Clean up input stream rights. Keep it simple, caph_limit_stdio() and fileargs_fopen() already take care of everything for us. MFC after: 1 week Reviewed by: markj, jhb, emaste Differential Revision: https://reviews.freebsd.org/D43897 --- sbin/md5/md5.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c index 2045b623ff57..b6405635a5a1 100644 --- a/sbin/md5/md5.c +++ b/sbin/md5/md5.c @@ -574,7 +574,7 @@ main(int argc, char *argv[]) argv += optind; #ifdef HAVE_CAPSICUM - if (caph_limit_stdout() < 0 || caph_limit_stderr() < 0) + if (caph_limit_stdio() < 0) err(1, "unable to limit rights for stdio"); #endif @@ -629,10 +629,6 @@ main(int argc, char *argv[]) rec = rec->next; continue; } -#ifdef HAVE_CAPSICUM - if (caph_rights_limit(fileno(f), &rights) < 0) - err(1, "capsicum"); -#endif if (cflag && mode != mode_bsd) { checkAgainst = rec->chksum; rec = rec->next; @@ -643,10 +639,6 @@ main(int argc, char *argv[]) MDOutput(&Algorithm[digest], p, filename); } while (*++argv); } else if (!cflag && string == NULL && !skip) { -#ifdef HAVE_CAPSICUM - if (caph_limit_stdin() < 0) - err(1, "capsicum"); -#endif if (mode == mode_bsd) output_mode = output_bare; p = MDInput(&Algorithm[digest], stdin, buf, pflag); From nobody Fri Feb 16 13:17: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 4Tbssc2R9Qz5Bs3p; Fri, 16 Feb 2024 13:17: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tbssc1jn7z4YZw; Fri, 16 Feb 2024 13:17:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708089428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=64va3I4ZmRjSy2WpAhooJs+muIcPaOh0FARL4daaAmM=; b=QaGDvYgC8ifxNunLmlFbyfol/SYrfVczszag7YmhvyBdm8TNjEqR6tQB49PdJ0Jz9w33N6 2oJCKu27WlJRzUBzkP5TigoaPMme1XkKnSdMIBabFJniQbIVvcEaSFp3Puwan6O2i8LL0k g8z6rUdbcxQ59jPefdIXzq5S6Fsihk05lToiv75lrJ6mGGEplOtrzZIPDAypfqLFrXBDSR aQmfDOuDb3jldjepD1LfXC9ZhvfEmjYGsTaN3DoQnsmBvDUY6Iunp6icb3dUTsYtkoOugB 62ZmF9PUPmeugUh5Ghf7EFm9ep8pZhRA8GMYrrx0zirVHZhAQ+TLuM57sNtX3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708089428; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=64va3I4ZmRjSy2WpAhooJs+muIcPaOh0FARL4daaAmM=; b=HLuev/ccSi8NLERGzZLUoXi6kJdE0Bcoh7xuzxnEJupnUTUYGzn6dx0DsGROAOOSzfAnVv gjsS+euV01WaTpRIBqb8WeAFbu1ujICrHy0AX3my0ntJuoKTI5+CJ+wPI1X93XVdUx0tp6 KQe1EBzJeZjPVhaCMGZKAMuuhr6whoILwH99R8cvvwG+Dw6Z6Qc5wjsZQpMpITpKsSsVIe biwdUZD3u6k+Bim0q3+lHX0IeUNGGFIPNgjeS3MRjjzKslnz+wfqeH6SWvBlrDSaMXfMHp qz2FJ94YY4NL3P1XPOKdlciACxWyWJ/FnxB3GU2xBi3dCPSkFxSeW2mXijHf1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708089428; a=rsa-sha256; cv=none; b=yQHDSt943ToAA+lxRvbpOIpSpLiHSmRxVDnoz+nZ3CKtLZyOEMbWJ1VPjyb4dKTWJRerEv arlMd3AhgUwpLh3HuHLUmJ+UrMCjrRZeiMlImB8SvMBYnb9f8hlcWdKpJy7VsftUh6WOw1 gFifrw/ts9lGB1caFdrQz86aepkjv2VYXoZW7K4fPHPktwdwGiArQMz13hu3bWieJOMsxX P6CQqnUI1RWWC+/xj4Odkku4kgnC+90cUGIU9/nzknnscZDQYQ8YMvhdPBmHQljxbd5PRz PVP8yxDCClE4DemvCX6WLB01JCiK6UkHoeCC6/v7C9pfhWKIy731ggKTcvMbug== 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 4Tbssc0nyBzPwL; Fri, 16 Feb 2024 13:17:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GDH8Lo053088; Fri, 16 Feb 2024 13:17:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GDH86q053085; Fri, 16 Feb 2024 13:17:08 GMT (envelope-from git) Date: Fri, 16 Feb 2024 13:17:08 GMT Message-Id: <202402161317.41GDH86q053085@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: e7e2431586a4 - main - x86/xen: fix migration when ACPI suspend is not available 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e7e2431586a4f1d81fc37410f1ca1a9ae794857b Auto-Submitted: auto-generated The branch main has been updated by royger: URL: https://cgit.FreeBSD.org/src/commit/?id=e7e2431586a4f1d81fc37410f1ca1a9ae794857b commit e7e2431586a4f1d81fc37410f1ca1a9ae794857b Author: Roger Pau Monné AuthorDate: 2024-02-06 08:16:44 +0000 Commit: Roger Pau Monné CommitDate: 2024-02-16 13:16:18 +0000 x86/xen: fix migration when ACPI suspend is not available Xen PVH guests expose a very minimal set of ACPI tables, and due to the lack of SCI interrupt FreeBSD doesn't allocate the suspend stacks for saving CPU and FPU contexts. Lack of allocated stacks would lead to a page-fault in cpususpend_handler() when CPUs attempted to use the save context area as a result of a Xen suspend request. However there's no need to save the CPU or the FPU registers in the Xen case, as that's all handled by the hypervisor. Hence avoid saving all this state if the suspend stacks are not allocated. Note that this will currently only apply to PVH guests, HVM ones will still get the stack allocated and the context saved even when not strictly required. I find it easier rather that having to provide cpususpend_handler() with extra information whether the context needs to be saved or not. Sponsored by: Cloud Software Group Reviewed by: markj Differential revision: https://reviews.freebsd.org/D43765 --- sys/x86/x86/mp_x86.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sys/x86/x86/mp_x86.c b/sys/x86/x86/mp_x86.c index 11b11471d736..1027c2c8972b 100644 --- a/sys/x86/x86/mp_x86.c +++ b/sys/x86/x86/mp_x86.c @@ -1594,6 +1594,24 @@ cpususpend_handler(void) mtx_assert(&smp_ipi_mtx, MA_NOTOWNED); cpu = PCPU_GET(cpuid); + +#ifdef XENHVM + /* + * Some Xen guest types (PVH) expose a very minimal set of ACPI tables, + * and for example have no support for SCI. That leads to the suspend + * stacks not being allocated, and hence when attempting to perform a + * Xen triggered suspension FreeBSD will hit a #PF. Avoid saving the + * CPU and FPU contexts if the stacks are not allocated, as the + * hypervisor will already take care of this. Note that we could even + * do this for Xen triggered suspensions on guests that have full ACPI + * support, but doing so would introduce extra complexity. + */ + if (susppcbs == NULL) { + KASSERT(vm_guest == VM_GUEST_XEN, ("Missing suspend stack")); + CPU_SET_ATOMIC(cpu, &suspended_cpus); + CPU_SET_ATOMIC(cpu, &resuming_cpus); + } else +#endif if (savectx(&susppcbs[cpu]->sp_pcb)) { #ifdef __amd64__ fpususpend(susppcbs[cpu]->sp_fpususpend); From nobody Fri Feb 16 13:33: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 4TbtFt14D5z5BvgN; Fri, 16 Feb 2024 13:34:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [176.36.249.139]) (using TLSv1.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 mx1.freebsd.org (Postfix) with ESMTPS id 4TbtFs59nVz4bLs; Fri, 16 Feb 2024 13:34:41 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 41GDXAmM056350; Fri, 16 Feb 2024 15:33:13 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 41GDXAmM056350 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 41GDXA89056349; Fri, 16 Feb 2024 15:33:10 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 16 Feb 2024 15:33:10 +0200 From: Konstantin Belousov To: Warner Losh Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 33a2406eed00 - main - reboot: Use posix_spawn instead of system Message-ID: References: <202402160400.41G40Jgd018717@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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202402160400.41G40Jgd018717@gitrepo.freebsd.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on tom.home X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4TbtFs59nVz4bLs 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:39608, ipnet:176.36.0.0/16, country:UA] On Fri, Feb 16, 2024 at 04:00:19AM +0000, Warner Losh wrote: > The branch main has been updated by imp: > > URL: https://cgit.FreeBSD.org/src/commit/?id=33a2406eed009dbffd7dfa44285c23f0db5a3750 > > commit 33a2406eed009dbffd7dfa44285c23f0db5a3750 > Author: Warner Losh > AuthorDate: 2024-02-16 03:52:31 +0000 > Commit: Warner Losh > CommitDate: 2024-02-16 03:59:22 +0000 > > reboot: Use posix_spawn instead of system > > Use posix_spawn to avoid having to allocate memory needed for the system > command line. > > Sponsored by: Netflix > Reviewed by: jrtc27 > Differential Revision: https://reviews.freebsd.org/D43860 > --- > sbin/reboot/reboot.c | 54 ++++++++++++++++++++++++++++++++++++---------------- > 1 file changed, 38 insertions(+), 16 deletions(-) > > diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c > index e9d6487da6a5..d3f1fc9bbb86 100644 > --- a/sbin/reboot/reboot.c > +++ b/sbin/reboot/reboot.c > @@ -29,19 +29,21 @@ > * SUCH DAMAGE. > */ > > -#include > #include > #include > #include > #include > #include > #include > +#include > +#include sys/types.h should go first, the previous location was right > > #include > #include > #include > #include > #include > +#include > #include > #include > #include > @@ -69,23 +71,43 @@ static bool donextboot; > static void > zfsbootcfg(const char *pool, bool force) > { > - char *k; > - int rv; > - > - asprintf(&k, > - "zfsbootcfg -z %s -n freebsd:nvstore -k nextboot_enable -v YES", > - pool); > - if (k == NULL) > - E("No memory for zfsbootcfg"); > - > - rv = system(k); > - if (rv == 0) > - return; > + const char * const av[] = { Why not 'static'? > + "zfsbootcfg", > + "-z", > + pool, > + "-n", > + "freebsd:nvstore", > + "-k", > + "nextboot_enable" > + "-v", > + "YES", > + NULL > + }; > + int rv, status; > + pid_t p; > + extern char **environ; > + > + rv = posix_spawnp(&p, av[0], NULL, NULL, __DECONST(char **, av), > + environ); > if (rv == -1) > E("system zfsbootcfg"); > - if (rv == 127) > - E("zfsbootcfg not found in path"); > - E("zfsbootcfg returned %d", rv); > + if (waitpid(p, &status, WEXITED) < 0) { > + if (errno == EINTR) > + return; > + E("waitpid zfsbootcfg"); > + } > + if (WIFEXITED(status)) { > + int e = WEXITSTATUS(status); > + > + if (e == 0) > + return; > + if (e == 127) > + E("zfsbootcfg not found in path"); > + E("zfsbootcfg returned %d", e); > + } > + if (WIFSIGNALED(status)) > + E("zfsbootcfg died with signal %d", WTERMSIG(status)); > + E("zfsbootcfg unexpected status %d", status); > } > > static void From nobody Fri Feb 16 14:51: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 4TbvyS5hSbz51hs7; Fri, 16 Feb 2024 14:51:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbvyS5Dt5z4mK1; Fri, 16 Feb 2024 14:51:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708095088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NgyBjgMe7AO0iyIUhznVjgIgPdxqNalo/9Di6SHoJnU=; b=Dd/ydv0Rr7ONP2XGepNDxd2JnJnuWLySeOTM2ts6UU1V+apeF8qaK/5alDxzKn80cTpexr u9Lqt3QMjJ9DtQ+wklite9LP8wL6w+tsymUa0zcjViZCUMlhgIJWuW6vMgSvvgMaKpwjZG 5b1mVyjMncZIM4Z6hS4CSa86tqfbQ9bmv5HBTVC90daQTDtd7qBIpymd+/fMobGr2396qg Ab23sgBNjMK6KQH6lVQ2KhFWp8wCPx/zLDXbYH1g/FvrN6ue010+E+ey0C6wWmMKF8XCtz Hkcf/HuAfYHWYYtSQ6RVMwUzZtg2LdkqE2Ht+FDn1j25e5omBUcR5nzleBpGxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708095088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NgyBjgMe7AO0iyIUhznVjgIgPdxqNalo/9Di6SHoJnU=; b=kzOfdCjbQ6ygMevDvw2GXkDSunftJhfwjeoZYjgFPyOkJqesvYuTSuGf3jllIRyHdEqYPV xQdn3gLNrh/oBITDGhWXwMuERKxdAazm7pHgfkOLXRPxmwxrwkb/4lMxgLGWPe2RBZbE0/ 79CeJmCjJQgi7ydretFKtVArjJ4wpwJoyNqhNtW8kuDQClJHYYvVBUF0YAYQ4UI/WptF9V 84FmEWQmUy1j+vVaHbQPCybkw5T0XO3T90Ix3TYh+4gY4zHjzcK8c513qw/pMFtFGpkeJN TIu4f8YK5UPV+llNvRDkB2T59/Iwgljcywj9TJzlsG+nS7NIGaZyncc4ywI9Hg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708095088; a=rsa-sha256; cv=none; b=NVCfJSphvui99//5PUgDJA/XDciWLSrSbiPI1kjWfqPqiTQ72rKR2wbanLnwqscGu1Rg4v 58BF5ObG2cTrQEXG9THHf7LyRhZYFTqYUgcEnjbZoOgcgzc/l9mSg2HP11flE+NGx45lLf 8nn11GCX3GpUnDcnPJJ/PXyBwAf4i+BKZkq995enRaxxmS8ynX83Su2zxjW4t7pyAhOKf1 ZhWNQPApeAVldWoh5RTlt4xXbM7qiRwSXjl/vDepO/06z4OcNRPJufI8jCQFnjOA71yrZy 1FcJYzZgNOIWSiF8PEjyFsv0fB2bgPw8bXMmIMJeDodr3Bl80/9Uh0jOSq7ZCw== 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 4TbvyS4KXTzT8V; Fri, 16 Feb 2024 14:51:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GEpSni016171; Fri, 16 Feb 2024 14:51:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GEpSwE016168; Fri, 16 Feb 2024 14:51:28 GMT (envelope-from git) Date: Fri, 16 Feb 2024 14:51:28 GMT Message-Id: <202402161451.41GEpSwE016168@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: 23d4d0fcc1be - main - pmc: Fix some problems with the makefile 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 23d4d0fcc1be3d2f44054dd12725098ac7ee34a9 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=23d4d0fcc1be3d2f44054dd12725098ac7ee34a9 commit 23d4d0fcc1be3d2f44054dd12725098ac7ee34a9 Author: Mark Johnston AuthorDate: 2024-02-15 18:17:37 +0000 Commit: Mark Johnston CommitDate: 2024-02-16 14:50:43 +0000 pmc: Fix some problems with the makefile - For some reason we don't build it as a PIE, but I don't have any problems doing so with either clang or gcc. - There is no apparent need to override WARNS, so don't. - Some building with -O0, presumably that's left over from debugging. MFC after: 1 week Reviewed by: imp, brooks Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D43923 --- usr.sbin/pmc/Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/usr.sbin/pmc/Makefile b/usr.sbin/pmc/Makefile index dda72c85a106..3f73dd398958 100644 --- a/usr.sbin/pmc/Makefile +++ b/usr.sbin/pmc/Makefile @@ -1,18 +1,11 @@ -# -# - .include + PROG_CXX= pmc MAN= -WARNS?= 3 -CXXFLAGS+= -O0 CXXSTD= c++14 CWARNFLAGS.gcc+= -Wno-redundant-decls CFLAGS+= -I${SRCTOP}/lib/libpmcstat -# Does not link when built position-independent. -MK_PIE=no - LIBADD= pmc m pmcstat elf SRCS= pmc.c pmc_util.c cmd_pmc_stat.c \ From nobody Fri Feb 16 15:50: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 4TbxH50hK2z51rfd; Fri, 16 Feb 2024 15:50: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbxH50FRtz4sbV; Fri, 16 Feb 2024 15:50:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708098657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IBAhm0x9q8yjNTHplHA/NogyRWxeYvZ30/sCtuqMoDY=; b=qSn2dmLZM4pbEpjaa8cc/Jh9/wRbtulDLZopgRNrxvaAc7xHu7elivVeiYHKn7tmNHblVE ehVPKPEqw+9opLBn0orxgFx0wu+lGK+510zIzTkuSIKsH8bcy17OsG6sEWlEU1je2M3MWw VV9otT6uteWJ4GOf2qU9ESPhC1HWYZplE0+g5oPI7Qfc/YNCzF8EQFi3SNxdSd5XkpkxSl mKjft2p98umFuQVOXBZintuOIKOsI+GCWRkod5CPGSXzsckPDpA8LuYUhvfazyfQgBp+pm 4c27OomEGgo4Nhb/T0hDO2YKNm0R4irWFESSAj26ZjzXWCUlFty7ebHukTm2Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708098657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IBAhm0x9q8yjNTHplHA/NogyRWxeYvZ30/sCtuqMoDY=; b=tdiH3/3cM+guGxu3GVgN2URX8Oa+6PaHLGzMSYE1NtvpGWEFYmyNNvw2ch7Q9Rx1nEpAXu cyxV/+QMLxEap0HD4Xf8fr2ivslkTwkaRqg8P3S1MnzzrL0NubnZIcmMkJIosi03zwS8LA bN3dqcQnAg6mE3EyeppI0d2JShpNpZeiSYyAMG0YLB1/2Aa/wzqTx3saJVE7hxp2A/O35M of153FXwqew1cC4nyPzf6N1ddmWk+sJLTyuRyqsve9Hm7srN0ClozzWmZsXG50hKoBFniI z29enEMSSQo/4rBRz9fXtwriZ9reO9SNM4fNXGfUJ1I89CqEGwci5inMgJG98A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708098657; a=rsa-sha256; cv=none; b=JYzgmlvYsQmkTdYsx4QY3tqteSpC/w/LFSr1ZPlwBzcPnEYii9VVpJd0Ic59EzomBjsCCK 2jgHOE/xTlYqjEEm5PkYDqdiRfPrwn7e0R66mTmBLBFTPU/HGAWw+Ad7WS3ad7Liak4ZIj EtwWyOnp8PBC6tjbCo1gLmTS8dGUZlYKgyvnfjNSXsPkBSbWw2UOZYnbJlfaeWjUeYExVQ PfCDAiP8cICanjeG7PGiPmSw0wK8KeLZsfr9y/aAh5oozFBgGeTz4Kk741CphxacRFwW/j 5QXdFC9m7YNg+W4Q20yZmAXXJLSXIQ2K120WB5J1DSAqmZM9TGncxZ0BSH/OxA== 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 4TbxH46Q7tzWv9; Fri, 16 Feb 2024 15:50:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GFouCp018322; Fri, 16 Feb 2024 15:50:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GFouxo018319; Fri, 16 Feb 2024 15:50:56 GMT (envelope-from git) Date: Fri, 16 Feb 2024 15:50:56 GMT Message-Id: <202402161550.41GFouxo018319@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: fa4e42579436 - main - LinuxKPI: 802.11: lsta txq locking 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: fa4e4257943650c0b5f58c01bb0bdfadea61dfb2 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=fa4e4257943650c0b5f58c01bb0bdfadea61dfb2 commit fa4e4257943650c0b5f58c01bb0bdfadea61dfb2 Author: Bjoern A. Zeeb AuthorDate: 2024-02-14 21:56:48 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-16 15:50:11 +0000 LinuxKPI: 802.11: lsta txq locking cleanup Rename the LSTA lock to LSTA_TXQ lock as that is really what it is and put down the full set of macros. Replace the init and destroy with the macro invocation rather than direct code. Put locking around the txq_ready unset and check. Move the taskq_enqueue call under lock to be sure we do not call it anymore after txq_ready got unset. Leave a comment related to the node reference which is passed into the TX path on the recvif mbuf pointer. Fixes: 0936c648ad0ee PR: 274382 (possibly) MFC after: 1 day Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43909 --- sys/compat/linuxkpi/common/src/linux_80211.c | 31 ++++++++++++++++++---------- sys/compat/linuxkpi/common/src/linux_80211.h | 14 +++++++++++-- 2 files changed, 32 insertions(+), 13 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index 99984569f35e..6ed5722ab998 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -366,7 +366,7 @@ lkpi_lsta_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN], } /* Deferred TX path. */ - mtx_init(&lsta->txq_mtx, "lsta_txq", NULL, MTX_DEF); + LKPI_80211_LSTA_TXQ_LOCK_INIT(lsta); TASK_INIT(&lsta->txq_task, 0, lkpi_80211_txq_task, lsta); mbufq_init(&lsta->txq, IFQ_MAXLEN); lsta->txq_ready = true; @@ -398,8 +398,11 @@ lkpi_lsta_free(struct lkpi_sta *lsta, struct ieee80211_node *ni) /* XXX-BZ free resources, ... */ IMPROVE(); - /* XXX locking */ + /* Drain sta->txq[] */ + + LKPI_80211_LSTA_TXQ_LOCK(lsta); lsta->txq_ready = false; + LKPI_80211_LSTA_TXQ_UNLOCK(lsta); /* Drain taskq, won't be restarted until added_to_drv is set again. */ while (taskqueue_cancel(taskqueue_thread, &lsta->txq_task, NULL) != 0) @@ -418,9 +421,7 @@ lkpi_lsta_free(struct lkpi_sta *lsta, struct ieee80211_node *ni) } KASSERT(mbufq_empty(&lsta->txq), ("%s: lsta %p has txq len %d != 0\n", __func__, lsta, mbufq_len(&lsta->txq))); - - /* Drain sta->txq[] */ - mtx_destroy(&lsta->txq_mtx); + LKPI_80211_LSTA_TXQ_LOCK_DESTROY(lsta); /* Remove lsta from vif; that is done by the state machine. Should assert it? */ @@ -3536,16 +3537,21 @@ lkpi_ic_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, struct lkpi_sta *lsta; lsta = ni->ni_drv_data; - /* XXX locking */ + LKPI_80211_LSTA_TXQ_LOCK(lsta); if (!lsta->txq_ready) { + LKPI_80211_LSTA_TXQ_UNLOCK(lsta); + /* + * Free the mbuf (do NOT release ni ref for the m_pkthdr.rcvif! + * ieee80211_raw_output() does that in case of error). + */ m_free(m); return (ENETDOWN); } /* Queue the packet and enqueue the task to handle it. */ - LKPI_80211_LSTA_LOCK(lsta); mbufq_enqueue(&lsta->txq, m); - LKPI_80211_LSTA_UNLOCK(lsta); + taskqueue_enqueue(taskqueue_thread, &lsta->txq_task); + LKPI_80211_LSTA_TXQ_UNLOCK(lsta); #ifdef LINUXKPI_DEBUG_80211 if (linuxkpi_debug_80211 & D80211_TRACE_TX) @@ -3554,7 +3560,6 @@ lkpi_ic_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, mbufq_len(&lsta->txq)); #endif - taskqueue_enqueue(taskqueue_thread, &lsta->txq_task); return (0); } @@ -3769,9 +3774,13 @@ lkpi_80211_txq_task(void *ctx, int pending) mbufq_init(&mq, IFQ_MAXLEN); - LKPI_80211_LSTA_LOCK(lsta); + LKPI_80211_LSTA_TXQ_LOCK(lsta); + /* + * Do not re-check lsta->txq_ready here; we may have a pending + * disassoc frame still. + */ mbufq_concat(&mq, &lsta->txq); - LKPI_80211_LSTA_UNLOCK(lsta); + LKPI_80211_LSTA_TXQ_UNLOCK(lsta); m = mbufq_dequeue(&mq); while (m != NULL) { diff --git a/sys/compat/linuxkpi/common/src/linux_80211.h b/sys/compat/linuxkpi/common/src/linux_80211.h index b36b27168566..d25614de56dc 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.h +++ b/sys/compat/linuxkpi/common/src/linux_80211.h @@ -310,8 +310,18 @@ struct lkpi_wiphy { #define LKPI_80211_LVIF_LOCK(_lvif) mtx_lock(&(_lvif)->mtx) #define LKPI_80211_LVIF_UNLOCK(_lvif) mtx_unlock(&(_lvif)->mtx) -#define LKPI_80211_LSTA_LOCK(_lsta) mtx_lock(&(_lsta)->txq_mtx) -#define LKPI_80211_LSTA_UNLOCK(_lsta) mtx_unlock(&(_lsta)->txq_mtx) +#define LKPI_80211_LSTA_TXQ_LOCK_INIT(_lsta) \ + mtx_init(&(_lsta)->txq_mtx, "lsta-txq", NULL, MTX_DEF); +#define LKPI_80211_LSTA_TXQ_LOCK_DESTROY(_lsta) \ + mtx_destroy(&(_lsta)->txq_mtx); +#define LKPI_80211_LSTA_TXQ_LOCK(_lsta) \ + mtx_lock(&(_lsta)->txq_mtx) +#define LKPI_80211_LSTA_TXQ_UNLOCK(_lsta) \ + mtx_unlock(&(_lsta)->txq_mtx) +#define LKPI_80211_LSTA_TXQ_LOCK_ASSERT(_lsta) \ + mtx_assert(&(_lsta)->txq_mtx, MA_OWNED) +#define LKPI_80211_LSTA_TXQ_UNLOCK_ASSERT(_lsta) \ + mtx_assert(&(_lsta)->txq_mtx, MA_NOTOWNED) #define LKPI_80211_LTXQ_LOCK_INIT(_ltxq) \ mtx_init(&(_ltxq)->ltxq_mtx, "ltxq", NULL, MTX_DEF); From nobody Fri Feb 16 17: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 4TbzZ65y7Zz53sQd; Fri, 16 Feb 2024 17: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbzZ635rYz56C5; Fri, 16 Feb 2024 17: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=1708104846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GI18JAzZ1rNvzX3Mbwvc9nKd1hCF0Z5GxhkO1O6nSsM=; b=mL5NW/SjLZnjcIMSj3GKm0bi3PGKkX0YurnPhJUp3gERuIB7VsuMNX2hGZm9lWGX5h6rZF aNv26jyQsLf6rULpHUUfe4rNOSuNQnLsvkdL57TmXMHxEgptlSX8AgTKK3zeFptOj2TK0u xIZXIO2W6yc7iCBvzOAAQAJHfmXnVDY0l1M/4aae17zR0hGGXByYI5l34F8LfP/jLMnQSf EAS9fEYQS17anLuuSfBleq6M0GtxClB+tywSSyjvfG+SQsBYNbcdFUGMPU2X72kfgf3VNI LiTgD86yObzUtAbk9DplJEpNKaf4Fx5SJuYe57oRsuS/zRdIfsTda1TPiLIKZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708104846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GI18JAzZ1rNvzX3Mbwvc9nKd1hCF0Z5GxhkO1O6nSsM=; b=eAf4Mq5PzcjLyExrDij5EMmCMUC1pU+pDJ1Ky5+Bk8G8SEWn0j7fztsEk4W82BqVkcNVx0 Gtir6izivzc/d4SsrSeBluimZZK/135C90NTzQ7o2Ifrste0IwTJgIHW+/6BmUi7Em0/6U RKdFQ1dyCxDNFH+hf2NmyTuBxwBi2RDyy1ru2PAxM0tTVWYY6oBQruaN0zdgG55RbQ+fCP 6iaCun004hh80/i+/OZxod26QfvqQ04sU4qHkAvdxMFSoFww5Ouq6CKIx1mISWFLRHISFy gBG+tWjIFMxrA52od+23FlIN8Fi+gxa4V7gEPmNZLi03p8keBKCn3Pu2Vt+OmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708104846; a=rsa-sha256; cv=none; b=N3FcLE22FQrq4Gg1kioMxKog3iOi7cvQTiKGoA/evQVckcSCEDJ+0lbbwgExRgd5cADW4R yehsxAaqcShIos16+h6I+y3fvDYRu4Zf02Md7D9ftasyztq6/1TyTTYvcBJrqxqocjq6Nr RE7ICYaNCFZ7XfmZFnc+gW6V6klVrzG+D+eqeEQpcpGhh5iiGVBmpbpF4g8cY2ugwJy7Tt wz8tAQQKSDuXtL+mQreFW1GMfaF+JmPUiThA+4gm40+0+aG1vxwX7iiZR7q/EXMfD4rMiY GvfRzyq9lJkMm0xS8Szkh27rIZQHnw6MIhgeE+gfhFgUneMenChsid80NCYjfA== 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 4TbzZ62B05zZhK; Fri, 16 Feb 2024 17:34:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GHY6Y9089563; Fri, 16 Feb 2024 17:34:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GHY6al089560; Fri, 16 Feb 2024 17:34:06 GMT (envelope-from git) Date: Fri, 16 Feb 2024 17:34:06 GMT Message-Id: <202402161734.41GHY6al089560@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 5130b35ef561 - main - Revert "heimdal: CVE-2022-41916: Check for overflow in _gsskrb5_get_mech()" 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5130b35ef561edf87be53721ed68de7927843fd4 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=5130b35ef561edf87be53721ed68de7927843fd4 commit 5130b35ef561edf87be53721ed68de7927843fd4 Author: Cy Schubert AuthorDate: 2024-02-16 17:31:13 +0000 Commit: Cy Schubert CommitDate: 2024-02-16 17:31:13 +0000 Revert "heimdal: CVE-2022-41916: Check for overflow in _gsskrb5_get_mech()" This was already applied by ed549cb0c53f. Repored by: Gunther Nikl This reverts commit 9286d46a794f25482880d29864a8901ef6666fae. --- crypto/heimdal/lib/gssapi/krb5/decapsulate.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/crypto/heimdal/lib/gssapi/krb5/decapsulate.c b/crypto/heimdal/lib/gssapi/krb5/decapsulate.c index 7a18708a633a..343a3d7acb97 100644 --- a/crypto/heimdal/lib/gssapi/krb5/decapsulate.c +++ b/crypto/heimdal/lib/gssapi/krb5/decapsulate.c @@ -56,8 +56,6 @@ _gsskrb5_get_mech (const u_char *ptr, return -1; if (total_len < 1 + len_len + 1) return -1; - if (total_len < 1 + len_len + 1) - return -1; p += len_len; if (*p++ != 0x06) return -1; From nobody Fri Feb 16 17:43: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 4TbznG0pLcz53tL2; Fri, 16 Feb 2024 17:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbznF6rr3z57sL; Fri, 16 Feb 2024 17:43:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708105426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rWixekZFVsO4wPqCri4cy6mp2V5fvfEG1Mj1Z7T8nSc=; b=kc+Gnb3t3Mk8yWI9k6IOXL4idjTTixeeklbVOuIKbJG2v2z78pqLU2XREIs2gbDw6+mN6Z P/JGWL7ppN37TdbUOpfh3+cKG5jT8CHMfy03cf+E7hUhYgVfezsK+9FrnNaF7FAAwWfzTZ OgaMieyBEywvHjpewaujWQR9L1erzk317Lyk8txpvcq4WvAplVmMx05fmqGfH547JWq/mA 2S91p+Oby5Ctw15RsiSG2XifuSXgimzy6Pa8rQ0+fRwscB4OrIQonA06g0OjP4DN7CtfBx 54AeXG/FpT9pE/Hx7Kip77Nnm8Jjnyzy02mi+I90tkKVhww9GnbXKa0QLHWxJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708105426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rWixekZFVsO4wPqCri4cy6mp2V5fvfEG1Mj1Z7T8nSc=; b=oOwtkiznx444ujzVIipSTel+AaVrIou0cZ3vXR7WnEG9hgcvyBg21PYM1BB5bPb41rwcdd 15X6ZtM8auf3GIAXY/EK5ufxgJnpEx+xvv9UUQARz1FciRKzGI7q8eE5uvlunoH5QjFUkP OCL/lJ1csJ2VF2d+Ld2kCm7i9eb7ouNZH9vSCuJIntm4i9aVAQCE/eIAaf+vw+oEfDo1jd XEhgNNqvXF97gp2yeL+Q0SXy2j3HW88F5spoq8F2kz31ZfGStmUAw9rint5VcmfLmC79JS l7GOj+vcmhNUtB00NZmH36IHq9UloQon6Yj4QJW/L57IZzFvriMRFkq1tlUelg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708105426; a=rsa-sha256; cv=none; b=dNnqnuwXABimgp2Vb6C3Lvuqq9xJePWz6afm3xrpjmc5eZ1MHGTQiqmD6XKOXL6IUSJOpv FRzYHbfBg2oJZIFc7c1ExoT2jm5w8SHJW3cLGUIdJU5Kxz7a1tcAYAjmPlJ7mecaWTty6Q FCNdgps+KE6PzkLfasQsCmrY0aknaXLpsSiGyHZ/8okYnW53K/Tqwprf6var6Zi4oTavA0 kRkZi2la6UQuOLE0cNGCux/EjsFx5a5LMncgUQVFf3vQlV9HAXyr53wfLcWtEfWmMejqmU YMUkpaZ5H2vJ7TSF5BZUkWPNYY0xapxRifCSwYMu1nrbpd69fzU1toyoPBSOrg== 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 4TbznF5vbrzZTK; Fri, 16 Feb 2024 17:43:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GHhj1V006087; Fri, 16 Feb 2024 17:43:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GHhjOs006084; Fri, 16 Feb 2024 17:43:45 GMT (envelope-from git) Date: Fri, 16 Feb 2024 17:43:45 GMT Message-Id: <202402161743.41GHhjOs006084@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: 68a3ff041129 - main - powerpc mpc85xx: Fix infinite recursion in bus_adjust_resource method 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 68a3ff041129208ea98a3bd5142061176ab4165e Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=68a3ff041129208ea98a3bd5142061176ab4165e commit 68a3ff041129208ea98a3bd5142061176ab4165e Author: John Baldwin AuthorDate: 2024-02-16 17:40:34 +0000 Commit: John Baldwin CommitDate: 2024-02-16 17:40:34 +0000 powerpc mpc85xx: Fix infinite recursion in bus_adjust_resource method The default case needs to call bus_generic_adjust_resource to pass the request up the tree, not bus_adjust_resource which will just call this method again. Fixes: 5a7e717fb790 powerpc mpc85xx: Use bus_generic_rman_* --- sys/powerpc/mpc85xx/lbc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/powerpc/mpc85xx/lbc.c b/sys/powerpc/mpc85xx/lbc.c index 7db2d49955a3..151d77739c4a 100644 --- a/sys/powerpc/mpc85xx/lbc.c +++ b/sys/powerpc/mpc85xx/lbc.c @@ -773,7 +773,8 @@ lbc_adjust_resource(device_t dev, device_t child, int type, struct resource *r, return (bus_generic_rman_adjust_resource(dev, child, type, r, start, end)); case SYS_RES_IRQ: - return (bus_adjust_resource(dev, type, r, start, end)); + return (bus_generic_adjust_resource(dev, child, type, r, start, + end)); default: return (EINVAL); } From nobody Fri Feb 16 17:43: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 4TbznH1ksBz53tL3; Fri, 16 Feb 2024 17:43: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TbznH0LjHz58BN; Fri, 16 Feb 2024 17:43:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708105427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J9OR27v5VKhvI2p1BgEpRnLLvzopexkmrqPdc4HGhhE=; b=OXGB+cvvb0uAFVXGaKtTWypSywC05mC/ALylcUHicx9qyHFEeF7sTX2BfuEx6u2HL9ySNE f2DFVceIItVqxNJJ+XK0ISn0ueWZkYkgJOotnn0o+ZWDbDJWaxo2Osjz99JGXXLwDbsHLI 9SQBJyxd8liu/sB/OSYoosczsET5BukGAcacsbvv4/Gser+tW4rgG8EaxJR7s2wQZkQ7Ne oFRFej3Ak8v533ouXhXuR4pjNIwUu/g7rBkm/5gPrbmKxbtw+nJ5pxsEgpiFB9y0OQy1EM efecm34jyob5C+8eZc7RkPcS5OOIAw8v1wcT67Nvk41MxpR0g3ABGd/qO5wR2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708105427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J9OR27v5VKhvI2p1BgEpRnLLvzopexkmrqPdc4HGhhE=; b=yIDKNYxC3ekkUVlOBO9ccotm64c4mWz736IYpi3zF4Ee+L+xvuJKJ/WpXzllTfIpB1ZGUE wpl1ceYmO6hpy2UMDReURiLyTVYizgnPobQTFaR2/3LWEfjsayULU6CSS3qPszBU1k1Bfs Jw2Q5kqJuebSMftK7gT0SMuUu/vGzQSQWtTA04CSXPGkUC1FPcB/KzUVuZ7WAxI1GBo0dq Nfk1jwMoBy8igvrElZIN5ZbD/7VQ8T6ixubRHeBwvgjuApqPlOrdbFHSjN17OAPFcY+Pn9 DY6P76e6ZVQ5Yu8DBwFbF6rNaHzCXxwuLdeqKPP6H4t9s/g0WyFk14lmRQZ0/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708105427; a=rsa-sha256; cv=none; b=MK9M5aiwMkHHgnwRDGqjXuQvuhHyhD+EaMHss4YEnF+bCxoaO+/k9APCux35Hhh5p7wIUK BAT6/CfS7zuSbNZP6ngKeNGnORZMmb5IFmaWxWIvSd0IHhVtuuZ4ipAHBonsItN54ChCQU Lm9KSmtCa10GzDsRwQ93Pl/5hLARehgfig+I7XaSe7rs3WvfUeJKJPbBXsIXUEVGKwHubV Baipqkg8UiQj/ph7cNGnF4GfOaKwmhTFNmyAq3PnGCdyESikjKDzgLVnLCteNVP7kM3cWS AE9fHQdMJaWZnoZEWlQM/OzOo28LcAfqmhY/gZFzF5coWbmPF1KViQEobQkaoA== 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 4TbznG6XCVzZR8; Fri, 16 Feb 2024 17:43:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GHhkS3006139; Fri, 16 Feb 2024 17:43:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GHhkRZ006136; Fri, 16 Feb 2024 17:43:46 GMT (envelope-from git) Date: Fri, 16 Feb 2024 17:43:46 GMT Message-Id: <202402161743.41GHhkRZ006136@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: ccb1b43e20f5 - main - powerpc psim: Fix infinite recursion in bus_adjust_resource method 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: ccb1b43e20f5a1a0795b14f3ef39d5c2e15b424d Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ccb1b43e20f5a1a0795b14f3ef39d5c2e15b424d commit ccb1b43e20f5a1a0795b14f3ef39d5c2e15b424d Author: John Baldwin AuthorDate: 2024-02-16 17:42:30 +0000 Commit: John Baldwin CommitDate: 2024-02-16 17:42:30 +0000 powerpc psim: Fix infinite recursion in bus_adjust_resource method The default case needs to call bus_generic_adjust_resource to pass the request up the tree, not bus_adjust_resource which will just call this method again. Fixes: d7c16b333455 powerpc psim: Use bus_generic_rman_* --- sys/powerpc/psim/iobus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/powerpc/psim/iobus.c b/sys/powerpc/psim/iobus.c index 497ef42d82e6..c572a1fdc12b 100644 --- a/sys/powerpc/psim/iobus.c +++ b/sys/powerpc/psim/iobus.c @@ -352,7 +352,8 @@ iobus_adjust_resource(device_t bus, device_t child, int type, return (bus_generic_rman_adjust_resource(bus, child, type, r, start, end)); case SYS_RES_IRQ: - return (bus_adjust_resource(bus, type, r, start, end)); + return (bus_generic_adjust_resource(bus, child, type, r, start, + end)); default: return (EINVAL); } From nobody Fri Feb 16 18:39: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 4Tc11h3xs2z542ly; Fri, 16 Feb 2024 18:39: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc11h3Mv4z44p3; Fri, 16 Feb 2024 18:39:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708108776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kdsQn4jfD2aJsMDLJ/9gzg3RyHPuQLvtME+ou9xbzw4=; b=uyl1jKEXn3t+UdkxSx/bTn0UVVLvHX0v6UCczC2hcqVaEUm5Qpbku0XUPsz6EZc3xsz6Ao JKumCeM1mpwIw8XA6ImYCN9pIQGmzoNBmOtElmOnuTio5Sm4K8omPCbTfyoF5C3+sXUs8j xTQBVkoDyPFRU9sGv65wI2bqyeGv3ifPOgP1wGftL6B4i/Zp6luchEAxHBdWROeHxb7+Pu 6CjEAoxvhX9KgC4uC68yuWyKCXOOOGFvtANZro28Dt/kiow8LV0cTq04LZF4qLQVSHn0XT R9uSufnoi4vj/rHJ7N7/vhrVQocZHQpyRN1mAv9J0VKA317T+FfhCLdggI3feg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708108776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kdsQn4jfD2aJsMDLJ/9gzg3RyHPuQLvtME+ou9xbzw4=; b=ZcIjD4xyYUyKJ8F4+dtkRXqUtrz3/sBSrzxQD+HrYCwwPRoIWS9brdC32dAHSeduu0jOHp e+WRh3shk4PvwBt2foQH+FUAc2huh8OTMILlJR3pIGCbzFgXZkhRwOTMrTBPfjQBViOMXD upP4t4g9tv/bJkvsRlCizOh6fWt1L2Lcbi6L8tlfSKOCWTRVH3gfefG+qYBLZF4jeBTeUb SqyBgFiEzP7iLgPeNUf8Dk/huGMfbvNNEDrLGB0SgiW1fhNRg/FbIECkqUZQs5dGMNuvnw kbr4qHocARnSSIu7o9wAIktGdYcxtezXkLXwiVfQ3BWfN23QEaxgFL0jeRUD/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708108776; a=rsa-sha256; cv=none; b=Z9M9rPPiYgUEYBolLBYe4GT4BfTehnyhcdNKElH76clIe3QbtldMAw5IBfTLgk2I5SApkc DI98qdP6jJEwfccl10FILhsElaVdq6Xv7ITKbXGeAvW2hrODCD5KGz1S0oP24z2+Y5y1CO jO5ImRGKshFudIa7bruLBLF7FgbDrWMPrdHqe4J6RrkegJFmlCU4Klw20sV0qxsk9zlJWU MQvHXQPtOV89S1LTBkbqxXZNdRbYYeB7IkZ0xjc0u/Gjv/SE4rU0lQSr7rvZjQGB9misBV P8bU8sfiGcGmDarcwGPhJV1rtuozvYeqaz8xVNjevNK/BMt1DtEcgTV+/wEgtw== 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 4Tc11h2Kpjzbvc; Fri, 16 Feb 2024 18:39:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GIdaef093039; Fri, 16 Feb 2024 18:39:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GIdaGo093036; Fri, 16 Feb 2024 18:39:36 GMT (envelope-from git) Date: Fri, 16 Feb 2024 18:39:36 GMT Message-Id: <202402161839.41GIdaGo093036@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: b134c10d658c - main - busdma: fix page miscount for small segment sizes 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: b134c10d658c3b350e04aa8dbd2628e955ddcce0 Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=b134c10d658c3b350e04aa8dbd2628e955ddcce0 commit b134c10d658c3b350e04aa8dbd2628e955ddcce0 Author: Mitchell Horne AuthorDate: 2021-05-25 21:04:56 +0000 Commit: Mitchell Horne CommitDate: 2024-02-16 18:38:48 +0000 busdma: fix page miscount for small segment sizes For small segments (< PAGE_SIZE) there is a mismatch between how required bounce pages are counted in _bus_dmamap_count_pages() and bounce_bus_dmamap_load_buffer(). This problem has been observed on the RISC-V VisionFive v2 SoC (and earlier revisions of the hardware) which has memory physically addressed above 4GB. This requires some bouncing for the dwmmc driver, which has has a maximum segment size of 2048 bytes. When attempting to load a page-aligned 4-page buffer that requires bouncing, we can end up counting 4 bounce pages for an 8-segment transfer. These pages will be incorrectly configured to cover only the first half of the transfer (4 x 2048 bytes). Fix the immediate issue by adding the maxsegsz check to _bus_dmamap_count_pages(); this is what _bus_dmamap_count_phys() does already. The result is that we will inefficiently allocate a separate bounce page for each segment (8 pages for the example above), but the transfer will proceed in its entirety. The more complete fix is to address the shortcomings in how small segments are assigned to bounce pages, so that we opportunistically batch multiple segments to a page whenever they fit (e.g. two 2048 bytes segments per 4096 page). This will be addressed more holistically in the future. For now this change will prevent the (silent) incomplete transfers that have been observed. PR: 273694 Reported by: Jari Sihvola Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34118 --- sys/arm/arm/busdma_machdep.c | 11 ++++++----- sys/arm64/arm64/busdma_bounce.c | 1 + sys/powerpc/powerpc/busdma_machdep.c | 1 + sys/riscv/riscv/busdma_bounce.c | 1 + sys/x86/x86/busdma_bounce.c | 1 + 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/sys/arm/arm/busdma_machdep.c b/sys/arm/arm/busdma_machdep.c index 9f4c6e561bbc..9ae74892ebd4 100644 --- a/sys/arm/arm/busdma_machdep.c +++ b/sys/arm/arm/busdma_machdep.c @@ -812,6 +812,7 @@ _bus_dmamap_count_pages(bus_dma_tag_t dmat, pmap_t pmap, bus_dmamap_t map, vm_offset_t vaddr; vm_offset_t vendaddr; bus_addr_t paddr; + bus_size_t sg_len; if (map->pagesneeded == 0) { CTR5(KTR_BUSDMA, "lowaddr= %d, boundary= %d, alignment= %d" @@ -826,16 +827,16 @@ _bus_dmamap_count_pages(bus_dma_tag_t dmat, pmap_t pmap, bus_dmamap_t map, vendaddr = (vm_offset_t)buf + buflen; while (vaddr < vendaddr) { + sg_len = MIN(vendaddr - vaddr, + (PAGE_SIZE - ((vm_offset_t)vaddr & PAGE_MASK))); + sg_len = MIN(sg_len, dmat->maxsegsz); if (__predict_true(pmap == kernel_pmap)) paddr = pmap_kextract(vaddr); else paddr = pmap_extract(pmap, vaddr); - if (must_bounce(dmat, map, paddr, - min(vendaddr - vaddr, (PAGE_SIZE - ((vm_offset_t)vaddr & - PAGE_MASK)))) != 0) { + if (must_bounce(dmat, map, paddr, sg_len) != 0) map->pagesneeded++; - } - vaddr += (PAGE_SIZE - ((vm_offset_t)vaddr & PAGE_MASK)); + vaddr += sg_len; } CTR1(KTR_BUSDMA, "pagesneeded= %d", map->pagesneeded); } diff --git a/sys/arm64/arm64/busdma_bounce.c b/sys/arm64/arm64/busdma_bounce.c index 57551a2edb47..ec2dfe76894c 100644 --- a/sys/arm64/arm64/busdma_bounce.c +++ b/sys/arm64/arm64/busdma_bounce.c @@ -693,6 +693,7 @@ _bus_dmamap_count_pages(bus_dma_tag_t dmat, bus_dmamap_t map, pmap_t pmap, while (vaddr < vendaddr) { sg_len = PAGE_SIZE - ((vm_offset_t)vaddr & PAGE_MASK); + sg_len = MIN(sg_len, dmat->common.maxsegsz); if (pmap == kernel_pmap) paddr = pmap_kextract(vaddr); else diff --git a/sys/powerpc/powerpc/busdma_machdep.c b/sys/powerpc/powerpc/busdma_machdep.c index aa1a29e1f1ce..bc28619372f0 100644 --- a/sys/powerpc/powerpc/busdma_machdep.c +++ b/sys/powerpc/powerpc/busdma_machdep.c @@ -520,6 +520,7 @@ _bus_dmamap_count_pages(bus_dma_tag_t dmat, bus_dmamap_t map, pmap_t pmap, bus_size_t sg_len; sg_len = PAGE_SIZE - ((vm_offset_t)vaddr & PAGE_MASK); + sg_len = MIN(sg_len, dmat->maxsegsz); if (pmap == kernel_pmap) paddr = pmap_kextract(vaddr); else diff --git a/sys/riscv/riscv/busdma_bounce.c b/sys/riscv/riscv/busdma_bounce.c index c9fdb0e38e40..e504b122ebd1 100644 --- a/sys/riscv/riscv/busdma_bounce.c +++ b/sys/riscv/riscv/busdma_bounce.c @@ -531,6 +531,7 @@ _bus_dmamap_count_pages(bus_dma_tag_t dmat, bus_dmamap_t map, pmap_t pmap, while (vaddr < vendaddr) { sg_len = PAGE_SIZE - ((vm_offset_t)vaddr & PAGE_MASK); + sg_len = MIN(sg_len, dmat->common.maxsegsz); if (pmap == kernel_pmap) paddr = pmap_kextract(vaddr); else diff --git a/sys/x86/x86/busdma_bounce.c b/sys/x86/x86/busdma_bounce.c index f56ecd9e7e1e..ef96f5ba7bdc 100644 --- a/sys/x86/x86/busdma_bounce.c +++ b/sys/x86/x86/busdma_bounce.c @@ -560,6 +560,7 @@ _bus_dmamap_count_pages(bus_dma_tag_t dmat, bus_dmamap_t map, pmap_t pmap, while (vaddr < vendaddr) { sg_len = PAGE_SIZE - ((vm_offset_t)vaddr & PAGE_MASK); + sg_len = MIN(sg_len, dmat->common.maxsegsz); if (pmap == kernel_pmap) paddr = pmap_kextract(vaddr); else From nobody Fri Feb 16 18:51: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 4Tc1Hj1pGkz544Z5; Fri, 16 Feb 2024 18:51: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc1Hj1L5yz46tL; Fri, 16 Feb 2024 18:51:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708109505; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vMMcECqXAx/E8/yY8+agSoG1FV16GcfCuBqbhT6E7LE=; b=FlL3xIs1IozZhoO66PUcFtAqC3GbTbtSY+Sivbnr8ZoXwrV7J1lVKk5Vm7/A9l2+qZq8v4 GarQYnNFN8P0bWEYHq9JvM9B0cjYVbMEEG1dCrxoms/veS76uYK2fYeU6cMTJgb2kfHJPJ Y7eAdEQwVF5qqknRMDK5y6tsuDk9EU6na3YFxHLPiFwblyHNJKzJ0O74Dq2D+igb4SH+gm NkLAooSj+M7FdYYnhFA0pQlTpZSkr3QDMs4u+MUkb7C/rVmn/S4EjeRaRrtjD2Av0vI6n7 FgoR9LEK6bZxytHp9Yg4gu6whfS8Vkb8McwLt89Axy5iDxxu6wwa9bBmnQyO+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708109505; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vMMcECqXAx/E8/yY8+agSoG1FV16GcfCuBqbhT6E7LE=; b=cM0D/QmG9t9axKmu4Qc8ds9X8P5818eEi3PU99UTR7YxJw9m8nmL26Kg67qT/Al1sP6CN/ 9ou9yWU8llvmxzQhsYJAssuED+hh/hvRtYH9U9Q7eGP35o3HzidBEFT0YkzIVkQoUWZOYw 8cVt23BseKzLzFGED+JqjV1VhCjaaANziBMy+NIjruAWk6tjfLAm5ICSEk3dp73h6o2p8v UvuOXoM5nmSewkmoycIo7WaQPExxsHTJ5EmrynmALxh9+xRV/ned1sHT4Z0fjIv3a+LTxc 4K4j1XICI3sIM/RNBQIQry1F1ALN2Q6QzTaV9HSJmD44ZcuIfuVMR4CyWK3Bpg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708109505; a=rsa-sha256; cv=none; b=Rbs8j4KoUBnpc49nVKlbQJse4XQiC5XyJoqBKWTH0Sn38M6Rte2WH+NjILxhgNlVQzO+4T n7RNLTm52AWkL+0d8jRQ8YaIQaza2QVAdCufTpEjSTxgWVP9nRQYuyyNehn237YxyNU9Hx 5VFKCjOjlbEcusHTE1nGiQdMiWPNJi9PtUxxqZycbRWpgmAqCoDRvOrL0x0SFUqweLe3b1 1W4oVALO8euadFtvWf3rOvh81/eEm0q1rnZ2taKDj7S4SVhc1Kx2Bg0QbMfx0K18DjotsD Cuzlj+k7BdffGZlqnMuX+gdp0D0ZykXa23U97Zqzewl/qZUzVdUQf44Dj7OwbQ== 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 4Tc1Hj0NFnzbjn; Fri, 16 Feb 2024 18:51:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GIpiDx025089; Fri, 16 Feb 2024 18:51:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GIpiLO025085; Fri, 16 Feb 2024 18:51:44 GMT (envelope-from git) Date: Fri, 16 Feb 2024 18:51:44 GMT Message-Id: <202402161851.41GIpiLO025085@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Maxim Konovalov Subject: git: 1250c9647959 - main - fclose.3: remove a confusing sentence 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: maxim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1250c9647959fab955fb8d9046cb41bc749e6855 Auto-Submitted: auto-generated The branch main has been updated by maxim: URL: https://cgit.FreeBSD.org/src/commit/?id=1250c9647959fab955fb8d9046cb41bc749e6855 commit 1250c9647959fab955fb8d9046cb41bc749e6855 Author: Maxim Konovalov AuthorDate: 2024-02-16 18:50:12 +0000 Commit: Maxim Konovalov CommitDate: 2024-02-16 18:50:12 +0000 fclose.3: remove a confusing sentence PR: 277037 Reviewed by: oshogbo --- lib/libc/stdio/fclose.3 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/libc/stdio/fclose.3 b/lib/libc/stdio/fclose.3 index 188c35b1f0c7..524ff9754bb4 100644 --- a/lib/libc/stdio/fclose.3 +++ b/lib/libc/stdio/fclose.3 @@ -30,7 +30,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd July 4, 2015 +.Dd February 13, 2024 .Dt FCLOSE 3 .Os .Sh NAME @@ -69,9 +69,6 @@ If is not .Dv NULL , the file descriptor will be written to it. -If the -.Fa fdp -argument will be different then NULL the file descriptor will be returned in it, If the stream does not have an associated file descriptor, .Fa fdp will be set to -1. From nobody Fri Feb 16 19:45: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 4Tc2Tg2FJ6z56Rtw for ; Fri, 16 Feb 2024 19:45:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc2Tg0SGSz4H6M for ; Fri, 16 Feb 2024 19:45:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-56399fb02b3so3080666a12.1 for ; Fri, 16 Feb 2024 11:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1708112724; x=1708717524; 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=rh2WqiG0+XRxdOIKmO/bJyrwo0vBbVBU0iAspO7PaSg=; b=fv637LYFc5NL8pT8OuOwmnl2sSVyrHMZW7f0fWF0xXgBdCLSwcBKPcVFCXg2t8N0e5 PuCWcCbwKDb5EJXM3cRy7aSm3hVlM8r8Yvnag6vwP+V/jo4ejpnpsnUn5zf2JFSVBvOG KB/RNwojhM8NIYvxnbzSXxI4quP9M5El9DrnyCzo5KhH/GBUg5+Pgc1ZYltZwgXsuur8 oDIDJkeHZcX7XTSoEyYxPlDYtegMnAuKX2f9xwiyXzyygIVuiXSp0KWeh0pQSBLBlgwJ Y8T/WU/QLsn2/Ch3JEps3+Er1M7TC5mPVdRxHe7CMk1l0S3A/HFUZJIL2z0r/6ntmOOB S2HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708112724; x=1708717524; 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=rh2WqiG0+XRxdOIKmO/bJyrwo0vBbVBU0iAspO7PaSg=; b=hxp1TPVgc9vCULgXDYIxOi9FwHF1BjblHMLFyXk+evGEdB7sK4v3pJXOTeTTCPTqq5 Z8kmh3j4H/3bVPw50yB0kns2WYL6eyj6VLU0UFxnW0GSdNs4GiKP63duumeQu8sWYIF3 lqn6BmolLibktLdOswXAy14kkJ6CqfZ89vu2KwD2lVCjPVOYhddabMssB/1Xns6dov23 atszSREdonEPmQYpIMwpyI1J+Od6Kp4bCUIgjDUyfdtH5TXk4wMak8OaLYEVM1TYt1mD pcaYUVrCLt/65N1eIsIKjk762ZDbQQlwBJQh/DzEqTa3bujwNNAxwA8hQrnF9mxXk3+j 1oWg== X-Forwarded-Encrypted: i=1; AJvYcCXZzIFN/3Ac/2XX+5zEYwAJ49b50JbU18ry3HmVRMeMdbOCmS+NLeWTS7gAu5+YyUdNtaKeB3L+Gp/K9pyz0rqvs4dkY4bD0dvgEaZt8d/9 X-Gm-Message-State: AOJu0YyYnwKyc83LtM4xkRKyk+7drUu8nT7bnDSHglAVGTp/DSb8fVyL d0hVyFJ4cLmwNJ9n9lkkOV5b+QhmNkP2HZ3kn96QcX8wfzGPdjnmsF/rPPRu2HoBu7Ebt9A52Vz VC4hV3Nv+NqymWMqTIrqfNadc5dyZu8Y49/7dqg== X-Google-Smtp-Source: AGHT+IHpns15Q8AmvB2pKhQ3Xd0QYB2TRSfJp7g9j8EptzNWd5CaSgpoUQsnHAY8GI6afHHi0oqrMIuTpez3UoQaDgc= X-Received: by 2002:a05:6402:ca3:b0:563:d32f:544a with SMTP id cn3-20020a0564020ca300b00563d32f544amr3040674edb.1.1708112724271; Fri, 16 Feb 2024 11:45:24 -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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 References: <202402160400.41G40Jgd018717@gitrepo.freebsd.org> In-Reply-To: From: Warner Losh Date: Fri, 16 Feb 2024 12:45:14 -0700 Message-ID: Subject: Re: git: 33a2406eed00 - main - reboot: Use posix_spawn instead of system To: Konstantin Belousov Cc: Warner Losh , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Type: multipart/alternative; boundary="0000000000002ab542061184fcaa" X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Tc2Tg0SGSz4H6M 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:2a00:1450::/32, country:US] --0000000000002ab542061184fcaa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 16, 2024 at 6:34=E2=80=AFAM Konstantin Belousov wrote: > On Fri, Feb 16, 2024 at 04:00:19AM +0000, Warner Losh wrote: > > The branch main has been updated by imp: > > > > URL: > https://cgit.FreeBSD.org/src/commit/?id=3D33a2406eed009dbffd7dfa44285c23f= 0db5a3750 > > > > commit 33a2406eed009dbffd7dfa44285c23f0db5a3750 > > Author: Warner Losh > > AuthorDate: 2024-02-16 03:52:31 +0000 > > Commit: Warner Losh > > CommitDate: 2024-02-16 03:59:22 +0000 > > > > reboot: Use posix_spawn instead of system > > > > Use posix_spawn to avoid having to allocate memory needed for the > system > > command line. > > > > Sponsored by: Netflix > > Reviewed by: jrtc27 > > Differential Revision: https://reviews.freebsd.org/D43860 > > --- > > sbin/reboot/reboot.c | 54 > ++++++++++++++++++++++++++++++++++++---------------- > > 1 file changed, 38 insertions(+), 16 deletions(-) > > > > diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c > > index e9d6487da6a5..d3f1fc9bbb86 100644 > > --- a/sbin/reboot/reboot.c > > +++ b/sbin/reboot/reboot.c > > @@ -29,19 +29,21 @@ > > * SUCH DAMAGE. > > */ > > > > -#include > > #include > > #include > > #include > > #include > > #include > > #include > > +#include > > +#include > sys/types.h should go first, the previous location was right > Yea, it's not needed at all, so I'm removing it. > > > > #include > > #include > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -69,23 +71,43 @@ static bool donextboot; > > static void > > zfsbootcfg(const char *pool, bool force) > > { > > - char *k; > > - int rv; > > - > > - asprintf(&k, > > - "zfsbootcfg -z %s -n freebsd:nvstore -k nextboot_enable -v > YES", > > - pool); > > - if (k =3D=3D NULL) > > - E("No memory for zfsbootcfg"); > > - > > - rv =3D system(k); > > - if (rv =3D=3D 0) > > - return; > > + const char * const av[] =3D { > Why not 'static'? > > > + "zfsbootcfg", > > + "-z", > > + pool, > > + "-n", > > + "freebsd:nvstore", > > + "-k", > > + "nextboot_enable" > > + "-v", > > + "YES", > > + NULL > > + }; > Because 'pool' is not a compile time constant? Warner > > + int rv, status; > > + pid_t p; > > + extern char **environ; > > + > > + rv =3D posix_spawnp(&p, av[0], NULL, NULL, __DECONST(char **, av)= , > > + environ); > > if (rv =3D=3D -1) > > E("system zfsbootcfg"); > > - if (rv =3D=3D 127) > > - E("zfsbootcfg not found in path"); > > - E("zfsbootcfg returned %d", rv); > > + if (waitpid(p, &status, WEXITED) < 0) { > > + if (errno =3D=3D EINTR) > > + return; > > + E("waitpid zfsbootcfg"); > > + } > > + if (WIFEXITED(status)) { > > + int e =3D WEXITSTATUS(status); > > + > > + if (e =3D=3D 0) > > + return; > > + if (e =3D=3D 127) > > + E("zfsbootcfg not found in path"); > > + E("zfsbootcfg returned %d", e); > > + } > > + if (WIFSIGNALED(status)) > > + E("zfsbootcfg died with signal %d", WTERMSIG(status)); > > + E("zfsbootcfg unexpected status %d", status); > > } > > > > static void > --0000000000002ab542061184fcaa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, Feb 16, 2024 at 6:34=E2=80=AF= AM Konstantin Belousov <kostikbel= @gmail.com> wrote:
On Fri, Feb 16, 2024 at 04:00:19AM +0000, Warner Losh wrote:
> The branch main has been updated by imp:
>
> URL: https://= cgit.FreeBSD.org/src/commit/?id=3D33a2406eed009dbffd7dfa44285c23f0db5a3750<= /a>
>
> commit 33a2406eed009dbffd7dfa44285c23f0db5a3750
> Author:=C2=A0 =C2=A0 =C2=A0Warner Losh <imp@FreeBSD.org>
> AuthorDate: 2024-02-16 03:52:31 +0000
> Commit:=C2=A0 =C2=A0 =C2=A0Warner Losh <imp@FreeBSD.org>
> CommitDate: 2024-02-16 03:59:22 +0000
>
>=C2=A0 =C2=A0 =C2=A0reboot: Use posix_spawn instead of system
>=C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0Use posix_spawn to avoid having to allocate memory = needed for the system
>=C2=A0 =C2=A0 =C2=A0command line.
>=C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0 =C2=A0Sponsored by:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0Netflix
>=C2=A0 =C2=A0 =C2=A0Reviewed by:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 jrtc27
>=C2=A0 =C2=A0 =C2=A0Differential Revision:=C2=A0
https://revie= ws.freebsd.org/D43860
> ---
>=C2=A0 sbin/reboot/reboot.c | 54 ++++++++++++++++++++++++++++++++++++--= --------------
>=C2=A0 1 file changed, 38 insertions(+), 16 deletions(-)
>
> diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
> index e9d6487da6a5..d3f1fc9bbb86 100644
> --- a/sbin/reboot/reboot.c
> +++ b/sbin/reboot/reboot.c
> @@ -29,19 +29,21 @@
>=C2=A0 =C2=A0* SUCH DAMAGE.
>=C2=A0 =C2=A0*/
>=C2=A0
> -#include <sys/types.h>
>=C2=A0 #include <sys/boottrace.h>
>=C2=A0 #include <sys/mount.h>
>=C2=A0 #include <sys/reboot.h>
>=C2=A0 #include <sys/stat.h>
>=C2=A0 #include <sys/sysctl.h>
>=C2=A0 #include <sys/time.h>
> +#include <sys/types.h>
> +#include <sys/wait.h>
sys/types.h should go first, the previous location was right

Yea, it's not needed at all, so I'm removing = it.
=C2=A0
>=C2=A0
>=C2=A0 #include <err.h>
>=C2=A0 #include <errno.h>
>=C2=A0 #include <fcntl.h>
>=C2=A0 #include <pwd.h>
>=C2=A0 #include <signal.h>
> +#include <spawn.h>
>=C2=A0 #include <stdbool.h>
>=C2=A0 #include <stdio.h>
>=C2=A0 #include <stdlib.h>
> @@ -69,23 +71,43 @@ static bool donextboot;
>=C2=A0 static void
>=C2=A0 zfsbootcfg(const char *pool, bool force)
>=C2=A0 {
> -=C2=A0 =C2=A0 =C2=A0char *k;
> -=C2=A0 =C2=A0 =C2=A0int rv;
> -
> -=C2=A0 =C2=A0 =C2=A0asprintf(&k,
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"zfsbootcfg -z %s -n freebsd:n= vstore -k nextboot_enable -v YES",
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pool);
> -=C2=A0 =C2=A0 =C2=A0if (k =3D=3D NULL)
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0E("No memory for= zfsbootcfg");
> -
> -=C2=A0 =C2=A0 =C2=A0rv =3D system(k);
> -=C2=A0 =C2=A0 =C2=A0if (rv =3D=3D 0)
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return;
> +=C2=A0 =C2=A0 =C2=A0const char * const av[] =3D {
Why not 'static'?

> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"zfsbootcfg"= ;,
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"-z",
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pool,
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"-n",
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"freebsd:nvstore= ",
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"-k",
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"nextboot_enable= "
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"-v",
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"YES",
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0NULL
> +=C2=A0 =C2=A0 =C2=A0};

Because &#= 39;pool' is not a compile time constant?

Warne= r
=C2=A0
> +=C2=A0 =C2=A0 =C2=A0int rv, status;
> +=C2=A0 =C2=A0 =C2=A0pid_t p;
> +=C2=A0 =C2=A0 =C2=A0extern char **environ;
> +
> +=C2=A0 =C2=A0 =C2=A0rv =3D posix_spawnp(&p, av[0], NULL, NULL, __= DECONST(char **, av),
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0environ);
>=C2=A0 =C2=A0 =C2=A0 =C2=A0if (rv =3D=3D -1)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0E("system z= fsbootcfg");
> -=C2=A0 =C2=A0 =C2=A0if (rv =3D=3D 127)
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0E("zfsbootcfg no= t found in path");
> -=C2=A0 =C2=A0 =C2=A0E("zfsbootcfg returned %d", rv);
> +=C2=A0 =C2=A0 =C2=A0if (waitpid(p, &status, WEXITED) < 0) { > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (errno =3D=3D EINT= R)
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0return;
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0E("waitpid zfsbo= otcfg");
> +=C2=A0 =C2=A0 =C2=A0}
> +=C2=A0 =C2=A0 =C2=A0if (WIFEXITED(status)) {
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0int e =3D WEXITSTATUS= (status);
> +
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (e =3D=3D 0)
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0return;
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (e =3D=3D 127)
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0E("zfsbootcfg not found in path");
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0E("zfsbootcfg re= turned %d", e);
> +=C2=A0 =C2=A0 =C2=A0}
> +=C2=A0 =C2=A0 =C2=A0if (WIFSIGNALED(status))
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0E("zfsbootcfg di= ed with signal %d", WTERMSIG(status));
> +=C2=A0 =C2=A0 =C2=A0E("zfsbootcfg unexpected status %d", st= atus);
>=C2=A0 }
>=C2=A0
>=C2=A0 static void
--0000000000002ab542061184fcaa-- From nobody Fri Feb 16 20: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 4Tc32L09CVz56WD4; Fri, 16 Feb 2024 20:10: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc32K6N9Jz4K0G; Fri, 16 Feb 2024 20:10:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708114217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gNOAzD9IFpw6NU05nLlQLOE388BBNjOcyCsZNS+YB84=; b=hoEL1mgUJmwus38omkqxhSkvo1ky3Bv6lTmzjLtQxSd4zsSYiu7hpbOkJC902litHtC29M fD0mPR7SxAdmorr+L0U06Fpkz7o06skgXkA+sONizQJiGRcRZos9K+AGUtpGDAleYr5B37 SWGcmUUnF7lTDCve8P+LkOWCkCZ422oakr2EX6U0265Z/4M6iHJGsKsxc0aQg3h4t3HpF2 GbE5/zC0p5t0hebaijMn323psH4oFfvL39ISMc8cl3n0V/vcs/q0+ClQqdLIi9ipTG2lUm PL/OOMfLNVAVMry9isU7DSG0H8oYBNFM3aKaIfqSnn5yPRb9FQjeFpjEcqoCkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708114217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gNOAzD9IFpw6NU05nLlQLOE388BBNjOcyCsZNS+YB84=; b=PNlcTyBvQmLrEMi/o3Ftw5yzNRHHSngOoEFspWLk9KA59PWJRarhsX6YMUJQst/WyNLDAw Vjf6+LjwWHY8j392f6x68OPeNP0ooIa1MXsnmYhpIIZIWckoKwBtyOdzoSXc58CRbE2fiO L5aWccXt63ZPOScdVsXhMLy5DgpkTahF+g/siRyfvrCGxwW3DpW7//sFRru6S4id7DYgPH B88z2yaLOTzWg7KBLdNdnh9K5VfxZMdR9bKejDRgfIhHJDW10pMIsmx+BwMHVzgUnHxw9B Q1fsybZqh4/jDh9itjQhMx0ratGUxO93qMEOlTilQeJNMbD4eSlON5MzJxL8Sw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708114217; a=rsa-sha256; cv=none; b=Bo+jzHayxg/L3BVeLtLx2YApQ+oR0DwDeI6SjOTLrmx9ByigLqdWDzO6MZIk9N8aSfhqlO tbjm3CEJdgU42Z6dQoALhPolw8TPms9lezzsRxyBspZPKNSKlZ/igkev67OcGpcAzF+YGf 9cUQ7FlrUbWQxC/sESgWi1seQsSm0Q+crPp3K5NvLTEvznWGWQBij0v9pQK1jSa/Q/9Hid ghgMWjz4HwrwamLIXySTDPdKPKTjtLvR4UG0anMXrGRLZW9jEGlBsXa72z+Zi6IDAEcX/l UzCx3Kmc7b8aE/MzNKC2iqhyOyrUg2BkYYuNPTFUYftTNVjax2fATw77DHCSUw== 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 4Tc32K5R3Mzf29; Fri, 16 Feb 2024 20:10:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GKAH5C054868; Fri, 16 Feb 2024 20:10:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GKAHMd054864; Fri, 16 Feb 2024 20:10:17 GMT (envelope-from git) Date: Fri, 16 Feb 2024 20:10:17 GMT Message-Id: <202402162010.41GKAHMd054864@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: 66d37dbedfbf - main - pci_host_generic: Fix build without PCI_RES_BUS 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 66d37dbedfbf2dc94ccf49e6983c3652d5909b91 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=66d37dbedfbf2dc94ccf49e6983c3652d5909b91 commit 66d37dbedfbf2dc94ccf49e6983c3652d5909b91 Author: John Baldwin AuthorDate: 2024-02-16 20:09:46 +0000 Commit: John Baldwin CommitDate: 2024-02-16 20:09:46 +0000 pci_host_generic: Fix build without PCI_RES_BUS Fixes: d79b6b8ec267 pci_host_generic: Don't rewrite resource start address for translation --- sys/dev/pci/pci_host_generic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c index 386b8411d29a..520462972a66 100644 --- a/sys/dev/pci/pci_host_generic.c +++ b/sys/dev/pci/pci_host_generic.c @@ -537,10 +537,14 @@ struct resource * pci_host_generic_core_alloc_resource(device_t dev, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) { +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) struct generic_pcie_core_softc *sc; +#endif struct resource *res; +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) sc = device_get_softc(dev); +#endif switch (type) { #if defined(NEW_PCIB) && defined(PCI_RES_BUS) From nobody Fri Feb 16 22:03: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 4Tc5Xh0w4xz59mZJ; Fri, 16 Feb 2024 22:03: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc5Xh0TD2z4Zh7; Fri, 16 Feb 2024 22:03:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708120996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+VJDjz7JFWM/ivAnHP9+McKc0e2E8xOlu7+Ub/BJ0CI=; b=wxg6ibE+/mIcVwUWK1TUzffGEmGFOffOu8MU/imIB7Pmw+cichbW+2rcvnZbGR2eDsM2uq bbC/Y9igTAc8uX85lz8CMXUVYEhzgGCiPvcvcBOSYK34TzQVe23WWOkqqoNY4kNoRA3gST +YkfxNnniIBcX+uok8gnyEKPgFFLi2DAEanGs4KRu9tm9VwOutJ3vMOZlxoZ520iJyFiTq rlBYfefWefJ66FoerwDJEB3lf6E2bE7iiY8Iv4mdSEgrFdqBuIAzixKupynkb+NcRceHjD sLqP1BarcDceGb7M+wvokVil3OxcL71XnzKljA1cV10m0qpKA3Bwy+dbOogCbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708120996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+VJDjz7JFWM/ivAnHP9+McKc0e2E8xOlu7+Ub/BJ0CI=; b=K9ktBlde0UvnIQEw5G/uiz6C6y9a+WQ8fHg79d32+uoZeAjtV1r9DBKMB51/NZThq/cVVc lzDPDDYlsTDHklhK277MmqDCTaD/pktIpO+FS6WYu1ra/WzsZQJjKOFhCuFy8A1fn/JpXv OFWy5F/ekqaJEm4s7rKr3c1mMd77xG0d8FpJGe8ybVsoJg6oL2anNFM7KizPLPdrDEYEqx IrYkjrWygIrjpGFHBr5t2C+SB4dowsXRTRGywdkdTfFaNj/J4lFnWfN48ZuFyD62CQ/xnU hBUXAVvw/AC/iB7N9xZYySR881gijn+czfpg8TOlAUc4ZAdF58Z1NbJNX36BIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708120996; a=rsa-sha256; cv=none; b=Dr3urOyIsZK0fRFH/VeSrpNtymTO9LaZqSQ5kM4B+Zzg+yGRF8hTO9R5SU52rI/Jr6Z01W y5ynXDp0Fqgnr8CYSV+ccd6K2gk/jPXhWKUT1oBrAJUrHWrpIaQoWEFIVn7WEWVyJCmX30 IZd1Cv0RbvpWYgdNEckqD52J7e4Fpd9wi08L50uEpD4t2EHIJFKfkrbdZYxSa8JHPPc42B 2pUnOlhQu7//UlK0qBeeygPi87K8LQ5bZ2qUA/6Xgft5OMaf/aS/8Ub1NL+6g3JuSLkRbD QfEKpi1HCp0ILoivImH1uyRXPR3l9IvhBu1S66mAMd0iBXcFr+S+MtauAiTvPA== 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 4Tc5Xg6g5DzjRd; Fri, 16 Feb 2024 22:03:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GM3Fie048033; Fri, 16 Feb 2024 22:03:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GM3FVE048030; Fri, 16 Feb 2024 22:03:15 GMT (envelope-from git) Date: Fri, 16 Feb 2024 22:03:15 GMT Message-Id: <202402162203.41GM3FVE048030@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Eric Joyner Subject: git: 5b5f7d0e77a9 - main - irdma(4): Upgrade to 1.2.36-k 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: erj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5b5f7d0e77a9eee73eb5d596f43aef4e1a3674d8 Auto-Submitted: auto-generated The branch main has been updated by erj: URL: https://cgit.FreeBSD.org/src/commit/?id=5b5f7d0e77a9eee73eb5d596f43aef4e1a3674d8 commit 5b5f7d0e77a9eee73eb5d596f43aef4e1a3674d8 Author: Bartosz Sobczak AuthorDate: 2024-02-16 21:55:08 +0000 Commit: Eric Joyner CommitDate: 2024-02-16 22:01:34 +0000 irdma(4): Upgrade to 1.2.36-k Update Intel irdma driver to version 1.2.36-k. Notable changes: - Start using ib_sge directly instead of irdma_sge - Turn off flush completion generator for libirdma - Minor formatting changes Signed-off-by: Bartosz Sobczak Signed-off-by: Eric Joyner Reviewed by: erj@ MFC after: 3 days Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D43567 --- contrib/ofed/libirdma/abi.h | 9 +- contrib/ofed/libirdma/i40e_devids.h | 1 - contrib/ofed/libirdma/i40iw_hw.h | 3 +- contrib/ofed/libirdma/ice_devids.h | 1 - contrib/ofed/libirdma/irdma-abi.h | 12 +- contrib/ofed/libirdma/irdma.h | 2 - contrib/ofed/libirdma/irdma_defs.h | 14 - contrib/ofed/libirdma/irdma_uk.c | 108 +++--- contrib/ofed/libirdma/irdma_umain.c | 5 +- contrib/ofed/libirdma/irdma_umain.h | 3 - contrib/ofed/libirdma/irdma_uquery.h | 1 - contrib/ofed/libirdma/irdma_user.h | 197 +--------- contrib/ofed/libirdma/irdma_uverbs.c | 90 ++--- contrib/ofed/libirdma/osdep.h | 5 - sys/dev/irdma/fbsd_kcompat.c | 3 +- sys/dev/irdma/fbsd_kcompat.h | 76 +--- sys/dev/irdma/icrdma.c | 4 +- sys/dev/irdma/icrdma_hw.c | 9 +- sys/dev/irdma/icrdma_hw.h | 3 +- sys/dev/irdma/irdma-abi.h | 11 + sys/dev/irdma/irdma.h | 4 +- sys/dev/irdma/irdma_cm.c | 49 ++- sys/dev/irdma/irdma_ctrl.c | 104 +++--- sys/dev/irdma/irdma_defs.h | 3 - sys/dev/irdma/irdma_hw.c | 46 ++- sys/dev/irdma/irdma_kcompat.c | 688 ++--------------------------------- sys/dev/irdma/irdma_main.h | 15 +- sys/dev/irdma/irdma_puda.c | 9 +- sys/dev/irdma/irdma_puda.h | 2 +- sys/dev/irdma/irdma_type.h | 29 +- sys/dev/irdma/irdma_uda.h | 1 + sys/dev/irdma/irdma_uk.c | 80 ++-- sys/dev/irdma/irdma_user.h | 33 +- sys/dev/irdma/irdma_utils.c | 52 +-- sys/dev/irdma/irdma_verbs.c | 389 +++----------------- sys/dev/irdma/irdma_verbs.h | 26 +- sys/dev/irdma/irdma_ws.c | 4 +- sys/dev/irdma/irdma_ws.h | 2 +- sys/dev/irdma/osdep.h | 8 +- 39 files changed, 428 insertions(+), 1673 deletions(-) diff --git a/contrib/ofed/libirdma/abi.h b/contrib/ofed/libirdma/abi.h index 6553ebcbcaca..a3e159828bec 100644 --- a/contrib/ofed/libirdma/abi.h +++ b/contrib/ofed/libirdma/abi.h @@ -1,7 +1,7 @@ /*- * SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB * - * Copyright (C) 2019 - 2022 Intel Corporation + * Copyright (C) 2019 - 2023 Intel Corporation * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef PROVIDER_IRDMA_ABI_H #define PROVIDER_IRDMA_ABI_H @@ -86,6 +85,7 @@ struct irdma_ucreate_qp { struct ibv_create_qp ibv_cmd; __aligned_u64 user_wqe_bufs; __aligned_u64 user_compl_ctx; + __aligned_u64 comp_mask; }; struct irdma_ucreate_qp_resp { @@ -98,6 +98,9 @@ struct irdma_ucreate_qp_resp { __u8 lsmm; __u8 rsvd; __u32 qp_caps; + __aligned_u64 comp_mask; + __u8 start_wqe_idx; + __u8 rsvd2[7]; }; struct irdma_umodify_qp_resp { @@ -138,6 +141,8 @@ struct irdma_get_context_resp { __u8 hw_rev; __u8 rsvd2; __aligned_u64 comp_mask; + __u16 min_hw_wq_size; + __u8 rsvd3[6]; }; struct irdma_ureg_mr { diff --git a/contrib/ofed/libirdma/i40e_devids.h b/contrib/ofed/libirdma/i40e_devids.h index 1b0eaae95b82..e775a75bade5 100644 --- a/contrib/ofed/libirdma/i40e_devids.h +++ b/contrib/ofed/libirdma/i40e_devids.h @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef I40E_DEVIDS_H #define I40E_DEVIDS_H diff --git a/contrib/ofed/libirdma/i40iw_hw.h b/contrib/ofed/libirdma/i40iw_hw.h index d04c37d689cb..fcbfea8dfe09 100644 --- a/contrib/ofed/libirdma/i40iw_hw.h +++ b/contrib/ofed/libirdma/i40iw_hw.h @@ -1,7 +1,7 @@ /*- * SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB * - * Copyright (c) 2015 - 2022 Intel Corporation + * Copyright (c) 2015 - 2023 Intel Corporation * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef I40IW_HW_H #define I40IW_HW_H diff --git a/contrib/ofed/libirdma/ice_devids.h b/contrib/ofed/libirdma/ice_devids.h index 57f26bc33260..57a7f2f7c2af 100644 --- a/contrib/ofed/libirdma/ice_devids.h +++ b/contrib/ofed/libirdma/ice_devids.h @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef ICE_DEVIDS_H #define ICE_DEVIDS_H diff --git a/contrib/ofed/libirdma/irdma-abi.h b/contrib/ofed/libirdma/irdma-abi.h index b7d4b61c162d..ae805919ea55 100644 --- a/contrib/ofed/libirdma/irdma-abi.h +++ b/contrib/ofed/libirdma/irdma-abi.h @@ -35,7 +35,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef IRDMA_ABI_H #define IRDMA_ABI_H @@ -55,6 +54,11 @@ enum irdma_memreg_type { enum { IRDMA_ALLOC_UCTX_USE_RAW_ATTR = 1 << 0, + IRDMA_ALLOC_UCTX_MIN_HW_WQ_SIZE = 1 << 1, +}; + +enum { + IRDMA_CREATE_QP_USE_START_WQE_IDX = 1 << 0, }; struct irdma_alloc_ucontext_req { @@ -83,6 +87,8 @@ struct irdma_alloc_ucontext_resp { __u8 hw_rev; __u8 rsvd2; __aligned_u64 comp_mask; + __u16 min_hw_wq_size; + __u8 rsvd3[6]; }; struct irdma_alloc_pd_resp { @@ -102,6 +108,7 @@ struct irdma_create_cq_req { struct irdma_create_qp_req { __aligned_u64 user_wqe_bufs; __aligned_u64 user_compl_ctx; + __aligned_u64 comp_mask; }; struct irdma_mem_reg_req { @@ -131,6 +138,9 @@ struct irdma_create_qp_resp { __u8 lsmm; __u8 rsvd; __u32 qp_caps; + __aligned_u64 comp_mask; + __u8 start_wqe_idx; + __u8 rsvd2[7]; }; struct irdma_modify_qp_resp { diff --git a/contrib/ofed/libirdma/irdma.h b/contrib/ofed/libirdma/irdma.h index 1dd09c36c7ea..f4a5a4796f82 100644 --- a/contrib/ofed/libirdma/irdma.h +++ b/contrib/ofed/libirdma/irdma.h @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef IRDMA_H #define IRDMA_H @@ -47,7 +46,6 @@ enum irdma_vers { IRDMA_GEN_RSVD = 0, IRDMA_GEN_1 = 1, IRDMA_GEN_2 = 2, - IRDMA_GEN_MAX = 2, }; struct irdma_uk_attrs { diff --git a/contrib/ofed/libirdma/irdma_defs.h b/contrib/ofed/libirdma/irdma_defs.h index 9276490793a0..39d4e7772c31 100644 --- a/contrib/ofed/libirdma/irdma_defs.h +++ b/contrib/ofed/libirdma/irdma_defs.h @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef IRDMA_DEFS_H #define IRDMA_DEFS_H @@ -457,19 +456,6 @@ enum irdma_qp_wqe_size { IRDMA_WQE_SIZE_256 = 256, }; -enum irdma_ws_op_type { - IRDMA_WS_OP_TYPE_NODE = 0, - IRDMA_WS_OP_TYPE_LEAF_NODE_GROUP, -}; - -enum irdma_ws_rate_limit_flags { - IRDMA_WS_RATE_LIMIT_FLAGS_VALID = 0x1, - IRDMA_WS_NO_RDMA_RATE_LIMIT = 0x2, - IRDMA_WS_LEAF_NODE_IS_PART_GROUP = 0x4, - IRDMA_WS_TREE_RATE_LIMITING = 0x8, - IRDMA_WS_PACING_CONTROL = 0x10, -}; - /** * set_64bit_val - set 64 bit value to hw wqe * @wqe_words: wqe addr to write diff --git a/contrib/ofed/libirdma/irdma_uk.c b/contrib/ofed/libirdma/irdma_uk.c index a1b796b318f4..115c5f0a27f0 100644 --- a/contrib/ofed/libirdma/irdma_uk.c +++ b/contrib/ofed/libirdma/irdma_uk.c @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #include "osdep.h" #include "irdma_defs.h" @@ -46,16 +45,16 @@ * @valid: The wqe valid */ static void -irdma_set_fragment(__le64 * wqe, u32 offset, struct irdma_sge *sge, +irdma_set_fragment(__le64 * wqe, u32 offset, struct ibv_sge *sge, u8 valid) { if (sge) { set_64bit_val(wqe, offset, - FIELD_PREP(IRDMAQPSQ_FRAG_TO, sge->tag_off)); + FIELD_PREP(IRDMAQPSQ_FRAG_TO, sge->addr)); set_64bit_val(wqe, offset + IRDMA_BYTE_8, FIELD_PREP(IRDMAQPSQ_VALID, valid) | - FIELD_PREP(IRDMAQPSQ_FRAG_LEN, sge->len) | - FIELD_PREP(IRDMAQPSQ_FRAG_STAG, sge->stag)); + FIELD_PREP(IRDMAQPSQ_FRAG_LEN, sge->length) | + FIELD_PREP(IRDMAQPSQ_FRAG_STAG, sge->lkey)); } else { set_64bit_val(wqe, offset, 0); set_64bit_val(wqe, offset + IRDMA_BYTE_8, @@ -72,14 +71,14 @@ irdma_set_fragment(__le64 * wqe, u32 offset, struct irdma_sge *sge, */ static void irdma_set_fragment_gen_1(__le64 * wqe, u32 offset, - struct irdma_sge *sge, u8 valid) + struct ibv_sge *sge, u8 valid) { if (sge) { set_64bit_val(wqe, offset, - FIELD_PREP(IRDMAQPSQ_FRAG_TO, sge->tag_off)); + FIELD_PREP(IRDMAQPSQ_FRAG_TO, sge->addr)); set_64bit_val(wqe, offset + IRDMA_BYTE_8, - FIELD_PREP(IRDMAQPSQ_GEN1_FRAG_LEN, sge->len) | - FIELD_PREP(IRDMAQPSQ_GEN1_FRAG_STAG, sge->stag)); + FIELD_PREP(IRDMAQPSQ_GEN1_FRAG_LEN, sge->length) | + FIELD_PREP(IRDMAQPSQ_GEN1_FRAG_STAG, sge->lkey)); } else { set_64bit_val(wqe, offset, 0); set_64bit_val(wqe, offset + IRDMA_BYTE_8, 0); @@ -210,8 +209,7 @@ irdma_qp_push_wqe(struct irdma_qp_uk *qp, __le64 * wqe, u16 quanta, if (IRDMA_RING_CURRENT_HEAD(qp->initial_ring) != IRDMA_RING_CURRENT_TAIL(qp->sq_ring) && !qp->push_mode) { - if (post_sq) - irdma_uk_qp_post_wr(qp); + irdma_uk_qp_post_wr(qp); } else { push = (__le64 *) ((uintptr_t)qp->push_wqe + (wqe_idx & 0x7) * 0x20); @@ -339,7 +337,7 @@ irdma_uk_rdma_write(struct irdma_qp_uk *qp, struct irdma_post_sq_info *info, return EINVAL; for (i = 0; i < op_info->num_lo_sges; i++) - total_size += op_info->lo_sg_list[i].len; + total_size += op_info->lo_sg_list[i].length; read_fence |= info->read_fence; @@ -358,7 +356,7 @@ irdma_uk_rdma_write(struct irdma_qp_uk *qp, struct irdma_post_sq_info *info, qp->sq_wrtrk_array[wqe_idx].signaled = info->signaled; set_64bit_val(wqe, IRDMA_BYTE_16, - FIELD_PREP(IRDMAQPSQ_FRAG_TO, op_info->rem_addr.tag_off)); + FIELD_PREP(IRDMAQPSQ_FRAG_TO, op_info->rem_addr.addr)); if (info->imm_data_valid) { set_64bit_val(wqe, IRDMA_BYTE_0, @@ -387,7 +385,7 @@ irdma_uk_rdma_write(struct irdma_qp_uk *qp, struct irdma_post_sq_info *info, ++addl_frag_cnt; } - hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.stag) | + hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.lkey) | FIELD_PREP(IRDMAQPSQ_OPCODE, info->op_type) | FIELD_PREP(IRDMAQPSQ_IMMDATAFLAG, info->imm_data_valid) | FIELD_PREP(IRDMAQPSQ_REPORTRTT, info->report_rtt) | @@ -438,7 +436,7 @@ irdma_uk_rdma_read(struct irdma_qp_uk *qp, struct irdma_post_sq_info *info, return EINVAL; for (i = 0; i < op_info->num_lo_sges; i++) - total_size += op_info->lo_sg_list[i].len; + total_size += op_info->lo_sg_list[i].length; ret_code = irdma_fragcnt_to_quanta_sq(op_info->num_lo_sges, &quanta); if (ret_code) @@ -476,8 +474,8 @@ irdma_uk_rdma_read(struct irdma_qp_uk *qp, struct irdma_post_sq_info *info, ++addl_frag_cnt; } set_64bit_val(wqe, IRDMA_BYTE_16, - FIELD_PREP(IRDMAQPSQ_FRAG_TO, op_info->rem_addr.tag_off)); - hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.stag) | + FIELD_PREP(IRDMAQPSQ_FRAG_TO, op_info->rem_addr.addr)); + hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.lkey) | FIELD_PREP(IRDMAQPSQ_REPORTRTT, (info->report_rtt ? 1 : 0)) | FIELD_PREP(IRDMAQPSQ_ADDFRAGCNT, addl_frag_cnt) | FIELD_PREP(IRDMAQPSQ_OPCODE, @@ -526,7 +524,7 @@ irdma_uk_send(struct irdma_qp_uk *qp, struct irdma_post_sq_info *info, return EINVAL; for (i = 0; i < op_info->num_sges; i++) - total_size += op_info->sg_list[i].len; + total_size += op_info->sg_list[i].length; if (info->imm_data_valid) frag_cnt = op_info->num_sges + 1; @@ -621,15 +619,15 @@ irdma_set_mw_bind_wqe_gen_1(__le64 * wqe, * @polarity: compatibility parameter */ static void -irdma_copy_inline_data_gen_1(u8 *wqe, struct irdma_sge *sge_list, +irdma_copy_inline_data_gen_1(u8 *wqe, struct ibv_sge *sge_list, u32 num_sges, u8 polarity) { u32 quanta_bytes_remaining = 16; u32 i; for (i = 0; i < num_sges; i++) { - u8 *cur_sge = (u8 *)(uintptr_t)sge_list[i].tag_off; - u32 sge_len = sge_list[i].len; + u8 *cur_sge = (u8 *)(uintptr_t)sge_list[i].addr; + u32 sge_len = sge_list[i].length; while (sge_len) { u32 bytes_copied; @@ -684,7 +682,7 @@ irdma_set_mw_bind_wqe(__le64 * wqe, * @polarity: polarity of wqe valid bit */ static void -irdma_copy_inline_data(u8 *wqe, struct irdma_sge *sge_list, +irdma_copy_inline_data(u8 *wqe, struct ibv_sge *sge_list, u32 num_sges, u8 polarity) { u8 inline_valid = polarity << IRDMA_INLINE_VALID_S; @@ -695,8 +693,8 @@ irdma_copy_inline_data(u8 *wqe, struct irdma_sge *sge_list, wqe += 8; for (i = 0; i < num_sges; i++) { - u8 *cur_sge = (u8 *)(uintptr_t)sge_list[i].tag_off; - u32 sge_len = sge_list[i].len; + u8 *cur_sge = (u8 *)(uintptr_t)sge_list[i].addr; + u32 sge_len = sge_list[i].length; while (sge_len) { u32 bytes_copied; @@ -776,7 +774,7 @@ irdma_uk_inline_rdma_write(struct irdma_qp_uk *qp, return EINVAL; for (i = 0; i < op_info->num_lo_sges; i++) - total_size += op_info->lo_sg_list[i].len; + total_size += op_info->lo_sg_list[i].length; if (unlikely(total_size > qp->max_inline_data)) return EINVAL; @@ -789,9 +787,9 @@ irdma_uk_inline_rdma_write(struct irdma_qp_uk *qp, qp->sq_wrtrk_array[wqe_idx].signaled = info->signaled; read_fence |= info->read_fence; set_64bit_val(wqe, IRDMA_BYTE_16, - FIELD_PREP(IRDMAQPSQ_FRAG_TO, op_info->rem_addr.tag_off)); + FIELD_PREP(IRDMAQPSQ_FRAG_TO, op_info->rem_addr.addr)); - hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.stag) | + hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.lkey) | FIELD_PREP(IRDMAQPSQ_OPCODE, info->op_type) | FIELD_PREP(IRDMAQPSQ_INLINEDATALEN, total_size) | FIELD_PREP(IRDMAQPSQ_REPORTRTT, info->report_rtt ? 1 : 0) | @@ -847,7 +845,7 @@ irdma_uk_inline_send(struct irdma_qp_uk *qp, return EINVAL; for (i = 0; i < op_info->num_sges; i++) - total_size += op_info->sg_list[i].len; + total_size += op_info->sg_list[i].length; if (unlikely(total_size > qp->max_inline_data)) return EINVAL; @@ -912,7 +910,7 @@ irdma_uk_stag_local_invalidate(struct irdma_qp_uk *qp, u64 hdr; u32 wqe_idx; bool local_fence = false; - struct irdma_sge sge = {0}; + struct ibv_sge sge = {0}; u16 quanta = IRDMA_QP_WQE_MIN_QUANTA; info->push_wqe = qp->push_db ? true : false; @@ -923,7 +921,7 @@ irdma_uk_stag_local_invalidate(struct irdma_qp_uk *qp, if (!wqe) return ENOSPC; - sge.stag = op_info->target_stag; + sge.lkey = op_info->target_stag; qp->wqe_ops.iw_set_fragment(wqe, IRDMA_BYTE_0, &sge, 0); set_64bit_val(wqe, IRDMA_BYTE_16, 0); @@ -1437,8 +1435,7 @@ irdma_uk_cq_poll_cmpl(struct irdma_cq_uk *cq, IRDMA_RING_MOVE_TAIL(cq->cq_ring); set_64bit_val(cq->shadow_area, IRDMA_BYTE_0, IRDMA_RING_CURRENT_HEAD(cq->cq_ring)); - memset(info, 0, - sizeof(struct irdma_cq_poll_info)); + memset(info, 0, sizeof(*info)); return irdma_uk_cq_poll_cmpl(cq, info); } } @@ -1511,7 +1508,6 @@ exit: if (pring && IRDMA_RING_MORE_WORK(*pring)) move_cq_head = false; } - if (move_cq_head) { IRDMA_RING_MOVE_HEAD_NOCHECK(cq->cq_ring); if (!IRDMA_RING_CURRENT_HEAD(cq->cq_ring)) @@ -1592,10 +1588,12 @@ irdma_get_wqe_shift(struct irdma_uk_attrs *uk_attrs, u32 sge, int irdma_get_sqdepth(struct irdma_uk_attrs *uk_attrs, u32 sq_size, u8 shift, u32 *sqdepth) { + u32 min_size = (u32)uk_attrs->min_hw_wq_size << shift; + *sqdepth = irdma_round_up_wq((sq_size << shift) + IRDMA_SQ_RSVD); - if (*sqdepth < ((u32)uk_attrs->min_hw_wq_size << shift)) - *sqdepth = uk_attrs->min_hw_wq_size << shift; + if (*sqdepth < min_size) + *sqdepth = min_size; else if (*sqdepth > uk_attrs->max_hw_wq_quanta) return EINVAL; @@ -1609,10 +1607,12 @@ irdma_get_sqdepth(struct irdma_uk_attrs *uk_attrs, u32 sq_size, u8 shift, u32 *s int irdma_get_rqdepth(struct irdma_uk_attrs *uk_attrs, u32 rq_size, u8 shift, u32 *rqdepth) { + u32 min_size = (u32)uk_attrs->min_hw_wq_size << shift; + *rqdepth = irdma_round_up_wq((rq_size << shift) + IRDMA_RQ_RSVD); - if (*rqdepth < ((u32)uk_attrs->min_hw_wq_size << shift)) - *rqdepth = uk_attrs->min_hw_wq_size << shift; + if (*rqdepth < min_size) + *rqdepth = min_size; else if (*rqdepth > uk_attrs->max_hw_rq_quanta) return EINVAL; @@ -1645,41 +1645,16 @@ irdma_setup_connection_wqes(struct irdma_qp_uk *qp, { u16 move_cnt = 1; - if (qp->uk_attrs->feature_flags & IRDMA_FEATURE_RTS_AE) + if (info->start_wqe_idx) + move_cnt = info->start_wqe_idx; + else if (qp->uk_attrs->feature_flags & IRDMA_FEATURE_RTS_AE) move_cnt = 3; - qp->conn_wqes = move_cnt; IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(qp->sq_ring, move_cnt); IRDMA_RING_MOVE_TAIL_BY_COUNT(qp->sq_ring, move_cnt); IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(qp->initial_ring, move_cnt); } -/** - * irdma_uk_calc_shift_wq - calculate WQE shift for both SQ and RQ - * @ukinfo: qp initialization info - * @sq_shift: Returns shift of SQ - * @rq_shift: Returns shift of RQ - */ -void -irdma_uk_calc_shift_wq(struct irdma_qp_uk_init_info *ukinfo, u8 *sq_shift, - u8 *rq_shift) -{ - bool imm_support = ukinfo->uk_attrs->hw_rev >= IRDMA_GEN_2 ? true : false; - - irdma_get_wqe_shift(ukinfo->uk_attrs, - imm_support ? ukinfo->max_sq_frag_cnt + 1 : - ukinfo->max_sq_frag_cnt, - ukinfo->max_inline_data, sq_shift); - - irdma_get_wqe_shift(ukinfo->uk_attrs, ukinfo->max_rq_frag_cnt, 0, - rq_shift); - - if (ukinfo->uk_attrs->hw_rev == IRDMA_GEN_1) { - if (ukinfo->abi_ver > 4) - *rq_shift = IRDMA_MAX_RQ_WQE_SHIFT_GEN1; - } -} - /** * irdma_uk_calc_depth_shift_sq - calculate depth and shift for SQ size. * @ukinfo: qp initialization info @@ -1692,6 +1667,7 @@ irdma_uk_calc_depth_shift_sq(struct irdma_qp_uk_init_info *ukinfo, { bool imm_support = ukinfo->uk_attrs->hw_rev >= IRDMA_GEN_2 ? true : false; int status; + irdma_get_wqe_shift(ukinfo->uk_attrs, imm_support ? ukinfo->max_sq_frag_cnt + 1 : ukinfo->max_sq_frag_cnt, @@ -1786,6 +1762,8 @@ irdma_uk_qp_init(struct irdma_qp_uk *qp, struct irdma_qp_uk_init_info *info) qp->wqe_ops = iw_wqe_uk_ops_gen_1; else qp->wqe_ops = iw_wqe_uk_ops; + qp->start_wqe_idx = info->start_wqe_idx; + return ret_code; } diff --git a/contrib/ofed/libirdma/irdma_umain.c b/contrib/ofed/libirdma/irdma_umain.c index 9e223cae429f..e8d27c31a0dc 100644 --- a/contrib/ofed/libirdma/irdma_umain.c +++ b/contrib/ofed/libirdma/irdma_umain.c @@ -1,7 +1,7 @@ /*- * SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB * - * Copyright (c) 2021 - 2023 Intel Corporation + * Copyright (c) 2021 - 2022 Intel Corporation * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #include @@ -49,7 +48,7 @@ /** * Driver version */ -char libirdma_version[] = "1.2.17-k"; +char libirdma_version[] = "1.2.36-k"; unsigned int irdma_dbg; diff --git a/contrib/ofed/libirdma/irdma_umain.h b/contrib/ofed/libirdma/irdma_umain.h index 7ff850c46b72..269609f8c77f 100644 --- a/contrib/ofed/libirdma/irdma_umain.h +++ b/contrib/ofed/libirdma/irdma_umain.h @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef IRDMA_UMAIN_H #define IRDMA_UMAIN_H @@ -97,7 +96,6 @@ struct irdma_cq_buf { LIST_ENTRY(irdma_cq_buf) list; struct irdma_cq_uk cq; struct verbs_mr vmr; - size_t buf_size; }; extern pthread_mutex_t sigusr1_wait_mutex; @@ -143,7 +141,6 @@ struct irdma_uqp { struct ibv_recv_wr *pend_rx_wr; struct irdma_qp_uk qp; enum ibv_qp_type qp_type; - struct irdma_sge *recv_sges; }; /* irdma_uverbs.c */ diff --git a/contrib/ofed/libirdma/irdma_uquery.h b/contrib/ofed/libirdma/irdma_uquery.h index cf56818e4d51..4660c05f0a91 100644 --- a/contrib/ofed/libirdma/irdma_uquery.h +++ b/contrib/ofed/libirdma/irdma_uquery.h @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef IRDMA_UQUERY_H diff --git a/contrib/ofed/libirdma/irdma_user.h b/contrib/ofed/libirdma/irdma_user.h index 8d71a37d7bf4..aeb6aa9feebd 100644 --- a/contrib/ofed/libirdma/irdma_user.h +++ b/contrib/ofed/libirdma/irdma_user.h @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #ifndef IRDMA_USER_H #define IRDMA_USER_H @@ -51,7 +50,7 @@ #define irdma_access_privileges u32 #define irdma_physical_fragment u64 #define irdma_address_list u64 * -#define irdma_sgl struct irdma_sge * +#define irdma_sgl struct ibv_sge * #define IRDMA_MAX_MR_SIZE 0x200000000000ULL @@ -81,96 +80,6 @@ #define IRDMA_OP_TYPE_REC_IMM 0x3f #define IRDMA_FLUSH_MAJOR_ERR 1 -#define IRDMA_SRQFLUSH_RSVD_MAJOR_ERR 0xfffe - -/* Async Events codes */ -#define IRDMA_AE_AMP_UNALLOCATED_STAG 0x0102 -#define IRDMA_AE_AMP_INVALID_STAG 0x0103 -#define IRDMA_AE_AMP_BAD_QP 0x0104 -#define IRDMA_AE_AMP_BAD_PD 0x0105 -#define IRDMA_AE_AMP_BAD_STAG_KEY 0x0106 -#define IRDMA_AE_AMP_BAD_STAG_INDEX 0x0107 -#define IRDMA_AE_AMP_BOUNDS_VIOLATION 0x0108 -#define IRDMA_AE_AMP_RIGHTS_VIOLATION 0x0109 -#define IRDMA_AE_AMP_TO_WRAP 0x010a -#define IRDMA_AE_AMP_FASTREG_VALID_STAG 0x010c -#define IRDMA_AE_AMP_FASTREG_MW_STAG 0x010d -#define IRDMA_AE_AMP_FASTREG_INVALID_RIGHTS 0x010e -#define IRDMA_AE_AMP_FASTREG_INVALID_LENGTH 0x0110 -#define IRDMA_AE_AMP_INVALIDATE_SHARED 0x0111 -#define IRDMA_AE_AMP_INVALIDATE_NO_REMOTE_ACCESS_RIGHTS 0x0112 -#define IRDMA_AE_AMP_INVALIDATE_MR_WITH_BOUND_WINDOWS 0x0113 -#define IRDMA_AE_AMP_MWBIND_VALID_STAG 0x0114 -#define IRDMA_AE_AMP_MWBIND_OF_MR_STAG 0x0115 -#define IRDMA_AE_AMP_MWBIND_TO_ZERO_BASED_STAG 0x0116 -#define IRDMA_AE_AMP_MWBIND_TO_MW_STAG 0x0117 -#define IRDMA_AE_AMP_MWBIND_INVALID_RIGHTS 0x0118 -#define IRDMA_AE_AMP_MWBIND_INVALID_BOUNDS 0x0119 -#define IRDMA_AE_AMP_MWBIND_TO_INVALID_PARENT 0x011a -#define IRDMA_AE_AMP_MWBIND_BIND_DISABLED 0x011b -#define IRDMA_AE_PRIV_OPERATION_DENIED 0x011c -#define IRDMA_AE_AMP_INVALIDATE_TYPE1_MW 0x011d -#define IRDMA_AE_AMP_MWBIND_ZERO_BASED_TYPE1_MW 0x011e -#define IRDMA_AE_AMP_FASTREG_INVALID_PBL_HPS_CFG 0x011f -#define IRDMA_AE_AMP_MWBIND_WRONG_TYPE 0x0120 -#define IRDMA_AE_AMP_FASTREG_PBLE_MISMATCH 0x0121 -#define IRDMA_AE_UDA_XMIT_DGRAM_TOO_LONG 0x0132 -#define IRDMA_AE_UDA_XMIT_BAD_PD 0x0133 -#define IRDMA_AE_UDA_XMIT_DGRAM_TOO_SHORT 0x0134 -#define IRDMA_AE_UDA_L4LEN_INVALID 0x0135 -#define IRDMA_AE_BAD_CLOSE 0x0201 -#define IRDMA_AE_RDMAP_ROE_BAD_LLP_CLOSE 0x0202 -#define IRDMA_AE_CQ_OPERATION_ERROR 0x0203 -#define IRDMA_AE_RDMA_READ_WHILE_ORD_ZERO 0x0205 -#define IRDMA_AE_STAG_ZERO_INVALID 0x0206 -#define IRDMA_AE_IB_RREQ_AND_Q1_FULL 0x0207 -#define IRDMA_AE_IB_INVALID_REQUEST 0x0208 -#define IRDMA_AE_WQE_UNEXPECTED_OPCODE 0x020a -#define IRDMA_AE_WQE_INVALID_PARAMETER 0x020b -#define IRDMA_AE_WQE_INVALID_FRAG_DATA 0x020c -#define IRDMA_AE_IB_REMOTE_ACCESS_ERROR 0x020d -#define IRDMA_AE_IB_REMOTE_OP_ERROR 0x020e -#define IRDMA_AE_WQE_LSMM_TOO_LONG 0x0220 -#define IRDMA_AE_DDP_INVALID_MSN_GAP_IN_MSN 0x0301 -#define IRDMA_AE_DDP_UBE_DDP_MESSAGE_TOO_LONG_FOR_AVAILABLE_BUFFER 0x0303 -#define IRDMA_AE_DDP_UBE_INVALID_DDP_VERSION 0x0304 -#define IRDMA_AE_DDP_UBE_INVALID_MO 0x0305 -#define IRDMA_AE_DDP_UBE_INVALID_MSN_NO_BUFFER_AVAILABLE 0x0306 -#define IRDMA_AE_DDP_UBE_INVALID_QN 0x0307 -#define IRDMA_AE_DDP_NO_L_BIT 0x0308 -#define IRDMA_AE_RDMAP_ROE_INVALID_RDMAP_VERSION 0x0311 -#define IRDMA_AE_RDMAP_ROE_UNEXPECTED_OPCODE 0x0312 -#define IRDMA_AE_ROE_INVALID_RDMA_READ_REQUEST 0x0313 -#define IRDMA_AE_ROE_INVALID_RDMA_WRITE_OR_READ_RESP 0x0314 -#define IRDMA_AE_ROCE_RSP_LENGTH_ERROR 0x0316 -#define IRDMA_AE_ROCE_EMPTY_MCG 0x0380 -#define IRDMA_AE_ROCE_BAD_MC_IP_ADDR 0x0381 -#define IRDMA_AE_ROCE_BAD_MC_QPID 0x0382 -#define IRDMA_AE_MCG_QP_PROTOCOL_MISMATCH 0x0383 -#define IRDMA_AE_INVALID_ARP_ENTRY 0x0401 -#define IRDMA_AE_INVALID_TCP_OPTION_RCVD 0x0402 -#define IRDMA_AE_STALE_ARP_ENTRY 0x0403 -#define IRDMA_AE_INVALID_AH_ENTRY 0x0406 -#define IRDMA_AE_LLP_CLOSE_COMPLETE 0x0501 -#define IRDMA_AE_LLP_CONNECTION_RESET 0x0502 -#define IRDMA_AE_LLP_FIN_RECEIVED 0x0503 -#define IRDMA_AE_LLP_RECEIVED_MARKER_AND_LENGTH_FIELDS_DONT_MATCH 0x0504 -#define IRDMA_AE_LLP_RECEIVED_MPA_CRC_ERROR 0x0505 -#define IRDMA_AE_LLP_SEGMENT_TOO_SMALL 0x0507 -#define IRDMA_AE_LLP_SYN_RECEIVED 0x0508 -#define IRDMA_AE_LLP_TERMINATE_RECEIVED 0x0509 -#define IRDMA_AE_LLP_TOO_MANY_RETRIES 0x050a -#define IRDMA_AE_LLP_TOO_MANY_KEEPALIVE_RETRIES 0x050b -#define IRDMA_AE_LLP_DOUBT_REACHABILITY 0x050c -#define IRDMA_AE_LLP_CONNECTION_ESTABLISHED 0x050e -#define IRDMA_AE_RESOURCE_EXHAUSTION 0x0520 -#define IRDMA_AE_RESET_SENT 0x0601 -#define IRDMA_AE_TERMINATE_SENT 0x0602 -#define IRDMA_AE_RESET_NOT_SENT 0x0603 -#define IRDMA_AE_LCE_QP_CATASTROPHIC 0x0700 -#define IRDMA_AE_LCE_FUNCTION_CATASTROPHIC 0x0701 -#define IRDMA_AE_LCE_CQ_CATASTROPHIC 0x0702 -#define IRDMA_AE_QP_SUSPEND_COMPLETE 0x0900 enum irdma_device_caps_const { IRDMA_WQE_SIZE = 4, @@ -202,8 +111,7 @@ enum irdma_device_caps_const { IRDMA_MAX_OUTBOUND_MSG_SIZE = 65537, /* 64K +1 */ IRDMA_MAX_INBOUND_MSG_SIZE = 65537, - IRDMA_MAX_PUSH_PAGE_COUNT = 1024, - IRDMA_MAX_PE_ENA_VF_COUNT = 32, + IRDMA_MAX_PE_ENA_VF_COUNT = 32, IRDMA_MAX_VF_FPM_ID = 47, IRDMA_MAX_SQ_PAYLOAD_SIZE = 2145386496, IRDMA_MAX_INLINE_DATA_SIZE = 101, @@ -230,12 +138,7 @@ enum irdma_flush_opcode { FLUSH_RETRY_EXC_ERR, FLUSH_MW_BIND_ERR, FLUSH_REM_INV_REQ_ERR, -}; - -enum irdma_qp_event_type { - IRDMA_QP_EVENT_CATASTROPHIC, - IRDMA_QP_EVENT_ACCESS_ERR, - IRDMA_QP_EVENT_REQ_ERR, + FLUSH_RNR_RETRY_EXC_ERR, }; enum irdma_cmpl_status { @@ -283,12 +186,6 @@ struct irdma_cq_uk; struct irdma_qp_uk_init_info; struct irdma_cq_uk_init_info; -struct irdma_sge { - irdma_tagged_offset tag_off; - u32 len; - irdma_stag stag; -}; - struct irdma_ring { volatile u32 head; volatile u32 tail; /* effective tail */ @@ -320,13 +217,13 @@ struct irdma_post_rq_info { struct irdma_rdma_write { irdma_sgl lo_sg_list; u32 num_lo_sges; - struct irdma_sge rem_addr; + struct ibv_sge rem_addr; }; struct irdma_rdma_read { irdma_sgl lo_sg_list; u32 num_lo_sges; - struct irdma_sge rem_addr; + struct ibv_sge rem_addr; }; struct irdma_bind_window { @@ -400,11 +297,6 @@ struct irdma_cq_poll_info { } stat; }; -struct qp_err_code { - enum irdma_flush_opcode flush_code; - enum irdma_qp_event_type event_type; -}; - int irdma_uk_inline_rdma_write(struct irdma_qp_uk *qp, struct irdma_post_sq_info *info, bool post_sq); int irdma_uk_inline_send(struct irdma_qp_uk *qp, @@ -427,9 +319,9 @@ int irdma_uk_stag_local_invalidate(struct irdma_qp_uk *qp, bool post_sq); struct irdma_wqe_uk_ops { - void (*iw_copy_inline_data)(u8 *dest, struct irdma_sge *sge_list, u32 num_sges, u8 polarity); + void (*iw_copy_inline_data)(u8 *dest, struct ibv_sge *sge_list, u32 num_sges, u8 polarity); u16 (*iw_inline_data_size_to_quanta)(u32 data_size); - void (*iw_set_fragment)(__le64 *wqe, u32 offset, struct irdma_sge *sge, + void (*iw_set_fragment)(__le64 *wqe, u32 offset, struct ibv_sge *sge, u8 valid); void (*iw_set_mw_bind_wqe)(__le64 *wqe, struct irdma_bind_window *op_info); @@ -445,8 +337,6 @@ int irdma_uk_cq_init(struct irdma_cq_uk *cq, struct irdma_cq_uk_init_info *info); int irdma_uk_qp_init(struct irdma_qp_uk *qp, struct irdma_qp_uk_init_info *info); -void irdma_uk_calc_shift_wq(struct irdma_qp_uk_init_info *ukinfo, u8 *sq_shift, - u8 *rq_shift); int irdma_uk_calc_depth_shift_sq(struct irdma_qp_uk_init_info *ukinfo, u32 *sq_depth, u8 *sq_shift); int irdma_uk_calc_depth_shift_rq(struct irdma_qp_uk_init_info *ukinfo, @@ -495,6 +385,7 @@ struct irdma_qp_uk { u8 rwqe_polarity; u8 rq_wqe_size; u8 rq_wqe_size_multiplier; + u8 start_wqe_idx; bool deferred_flag:1; bool push_mode:1; /* whether the last post wqe was pushed */ bool push_dropped:1; @@ -542,6 +433,7 @@ struct irdma_qp_uk_init_info { u32 sq_depth; u32 rq_depth; u8 first_sq_wq; + u8 start_wqe_idx; u8 type; u8 sq_shift; u8 rq_shift; @@ -575,75 +467,4 @@ int irdma_get_rqdepth(struct irdma_uk_attrs *uk_attrs, u32 rq_size, u8 shift, u3 void irdma_qp_push_wqe(struct irdma_qp_uk *qp, __le64 *wqe, u16 quanta, u32 wqe_idx, bool post_sq); void irdma_clr_wqes(struct irdma_qp_uk *qp, u32 qp_wqe_idx); - -static inline struct qp_err_code irdma_ae_to_qp_err_code(u16 ae_id) -{ - struct qp_err_code qp_err = { 0 }; - - switch (ae_id) { - case IRDMA_AE_AMP_BOUNDS_VIOLATION: - case IRDMA_AE_AMP_INVALID_STAG: - case IRDMA_AE_AMP_RIGHTS_VIOLATION: - case IRDMA_AE_AMP_UNALLOCATED_STAG: - case IRDMA_AE_AMP_BAD_PD: - case IRDMA_AE_AMP_BAD_QP: - case IRDMA_AE_AMP_BAD_STAG_KEY: - case IRDMA_AE_AMP_BAD_STAG_INDEX: - case IRDMA_AE_AMP_TO_WRAP: - case IRDMA_AE_PRIV_OPERATION_DENIED: - qp_err.flush_code = FLUSH_PROT_ERR; - qp_err.event_type = IRDMA_QP_EVENT_ACCESS_ERR; - break; - case IRDMA_AE_UDA_XMIT_BAD_PD: - case IRDMA_AE_WQE_UNEXPECTED_OPCODE: - qp_err.flush_code = FLUSH_LOC_QP_OP_ERR; - qp_err.event_type = IRDMA_QP_EVENT_CATASTROPHIC; - break; - case IRDMA_AE_UDA_XMIT_DGRAM_TOO_SHORT: - case IRDMA_AE_UDA_XMIT_DGRAM_TOO_LONG: - case IRDMA_AE_UDA_L4LEN_INVALID: - case IRDMA_AE_DDP_UBE_INVALID_MO: - case IRDMA_AE_DDP_UBE_DDP_MESSAGE_TOO_LONG_FOR_AVAILABLE_BUFFER: - qp_err.flush_code = FLUSH_LOC_LEN_ERR; - qp_err.event_type = IRDMA_QP_EVENT_CATASTROPHIC; - break; - case IRDMA_AE_AMP_INVALIDATE_NO_REMOTE_ACCESS_RIGHTS: - case IRDMA_AE_IB_REMOTE_ACCESS_ERROR: - qp_err.flush_code = FLUSH_REM_ACCESS_ERR; - qp_err.event_type = IRDMA_QP_EVENT_ACCESS_ERR; - break; - case IRDMA_AE_AMP_MWBIND_INVALID_RIGHTS: - case IRDMA_AE_AMP_MWBIND_BIND_DISABLED: - case IRDMA_AE_AMP_MWBIND_INVALID_BOUNDS: - case IRDMA_AE_AMP_MWBIND_VALID_STAG: - qp_err.flush_code = FLUSH_MW_BIND_ERR; - qp_err.event_type = IRDMA_QP_EVENT_ACCESS_ERR; - break; - case IRDMA_AE_LLP_TOO_MANY_RETRIES: - qp_err.flush_code = FLUSH_RETRY_EXC_ERR; - qp_err.event_type = IRDMA_QP_EVENT_CATASTROPHIC; - break; - case IRDMA_AE_IB_INVALID_REQUEST: - qp_err.flush_code = FLUSH_REM_INV_REQ_ERR; - qp_err.event_type = IRDMA_QP_EVENT_REQ_ERR; - break; - case IRDMA_AE_LLP_SEGMENT_TOO_SMALL: - case IRDMA_AE_LLP_RECEIVED_MPA_CRC_ERROR: - case IRDMA_AE_ROCE_RSP_LENGTH_ERROR: - case IRDMA_AE_IB_REMOTE_OP_ERROR: - qp_err.flush_code = FLUSH_REM_OP_ERR; - qp_err.event_type = IRDMA_QP_EVENT_CATASTROPHIC; - break; - case IRDMA_AE_LCE_QP_CATASTROPHIC: - qp_err.flush_code = FLUSH_FATAL_ERR; - qp_err.event_type = IRDMA_QP_EVENT_CATASTROPHIC; - break; - default: - qp_err.flush_code = FLUSH_GENERAL_ERR; - qp_err.event_type = IRDMA_QP_EVENT_CATASTROPHIC; - break; - } - - return qp_err; -} #endif /* IRDMA_USER_H */ diff --git a/contrib/ofed/libirdma/irdma_uverbs.c b/contrib/ofed/libirdma/irdma_uverbs.c index bc6bec34e6cd..e52ce1cfa229 100644 --- a/contrib/ofed/libirdma/irdma_uverbs.c +++ b/contrib/ofed/libirdma/irdma_uverbs.c @@ -31,7 +31,6 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -/*$FreeBSD$*/ #include #include @@ -153,6 +152,7 @@ irdma_ualloc_pd(struct ibv_context *context) err_free: free(iwupd); + errno = err; return NULL; } @@ -164,7 +164,6 @@ err_free: int irdma_ufree_pd(struct ibv_pd *pd) { - struct irdma_uvcontext *iwvctx = container_of(pd->context, struct irdma_uvcontext, ibv_ctx); struct irdma_upd *iwupd; int ret; @@ -375,12 +374,12 @@ irdma_free_hw_buf(void *buf, size_t size) * @cqe_64byte_ena: enable 64byte cqe */ static inline int -get_cq_size(int ncqe, u8 hw_rev, bool cqe_64byte_ena) +get_cq_size(int ncqe, u8 hw_rev) { ncqe++; /* Completions with immediate require 1 extra entry */ - if (!cqe_64byte_ena && hw_rev > IRDMA_GEN_1) + if (hw_rev > IRDMA_GEN_1) ncqe *= 2; *** 4007 LINES SKIPPED *** From nobody Fri Feb 16 23: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 4Tc7Fq1VR9z59yJm; Fri, 16 Feb 2024 23: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc7Fq0tqgz4hXw; Fri, 16 Feb 2024 23: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=1708125631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qeyzyD5kI9h8u7tHoJAMac8GF2F3jqG+FRHrfEQulYE=; b=DgBuVHwnbXP1yqfP1sDA8v7Ta3NRmHxdJXL1XfbdXbU+MOjezXc8LhaDIyPr/xge9EqMJN OxGmHWhZ/SA/19AiNI+y5om76GQFOuFrHm6vRBtXa2O2fkw6VwPAtwo93XVJQ/B6UwGFlq CRmrAMxwTg1d8oLHYm1EU9heP8ieHxn7QF3nzrRLO1ff6RkQAKyw3z/iWRQ2rGf/95QI1z RemCpTj0nZbjDIOGb3MPoxFJk51iyZ+0P8j/JFFa8o6J70luuLLQnXV27v8qRJxUkGzeQL VoW+ywzAVXNsIccuCaHw6eoKt+/tUtS9lLKd1cbBjkWaJNf+aFKE1WSrAAOv3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708125631; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qeyzyD5kI9h8u7tHoJAMac8GF2F3jqG+FRHrfEQulYE=; b=Ju1/BnONEKh1zD50ePmxb77sloGn+ATvw1vGulLytjYsph4YueLZch8kbmfQS7VW8mc8us YqfLLZyqvd2MrAgas77ojQr+bOvrBngFG44UDISP/LaQvwPPQJkzpkr9OUvUtGvAEy7mUY Ndl3/uOsEFdaQsMMKOtH65hj5vkix1imMQJ3RdMZwIQ4CA9VZObz5y+tidVX5O3+qvt2zc eZVqUemilhD0bXyz4LVQwbdZn894NSEmzxGmEoqMWGtGWV4LwRj4gFeiuE5nEDP46nKIwB O2EyBlyhKVRHuBxw9bkN329gWrHaiYOpIzIkaQK/f6BvB+S0ZpPnPvnPaVU29g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708125631; a=rsa-sha256; cv=none; b=rIj7bhfgZAODY+6KhM9bTpaGELzFpdwY16WN4uAfJb+I4sm4qiBMBimsRkusrXZG7gNZya 9U/T+C+JOdkWUmaSG8Bpu0jUshQrrvC8CVvg0GFuGi752IE5ov6/hF7tE+yQuBlgNPWZfk kricHmkc4IahKvDKdTvp4vIdUovyYnQm1bP4mNhsZTV4l+yEzUNtQDc6/fpCzYxj8SjwT1 jVWFu41XqF8lMJNPBJ7+Ht+1gh3iJJP6S/Ke+Bju77cxFaw2JynqaYjqj1PGcL05VTRL57 W4+w8G9CTgAwSz4cCcH3OYgpQZlJppDDzyQ+mYgI5F4n66CTqz+iRuNgzsvFHA== 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 4Tc7Fp5nRbzl27; Fri, 16 Feb 2024 23:20:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GNKUgF075493; Fri, 16 Feb 2024 23:20:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GNKUm3075490; Fri, 16 Feb 2024 23:20:30 GMT (envelope-from git) Date: Fri, 16 Feb 2024 23:20:30 GMT Message-Id: <202402162320.41GNKUm3075490@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: 73ff7384e025 - main - Optionally create full debuginfo for llvm-related executables 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 73ff7384e025033abc98fd5437a48beb8077a90b Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=73ff7384e025033abc98fd5437a48beb8077a90b commit 73ff7384e025033abc98fd5437a48beb8077a90b Author: Dimitry Andric AuthorDate: 2024-02-11 19:02:51 +0000 Commit: Dimitry Andric CommitDate: 2024-02-16 23:15:32 +0000 Optionally create full debuginfo for llvm-related executables Commit de6feefdb7cfd limited the amount of debuginfo generated for clang and other llvm-related executables. This was done to save disk space and memory during building, but it makes debugging any of these executables much harder. Add a new src.conf(5) setting, WITH_LLVM_FULL_DEBUGINFO, to generate full debuginfo instead. This is off by default, but could for example be enabled for release builds or snapshots, so llvm executables are easier to debug. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43839 --- lib/clang/Makefile.inc | 4 +++- lib/clang/headers/Makefile | 1 + lib/clang/libclang/Makefile | 2 +- lib/clang/libclangminimal/Makefile | 1 + lib/clang/liblldb/Makefile | 1 + lib/clang/libllvm/Makefile | 2 +- lib/clang/libllvmminimal/Makefile | 1 + share/man/man5/src.conf.5 | 5 ++++- share/mk/src.opts.mk | 1 + tools/build/options/WITH_LLVM_FULL_DEBUGINFO | 2 ++ usr.bin/clang/Makefile.inc | 8 +++++--- 11 files changed, 21 insertions(+), 7 deletions(-) diff --git a/lib/clang/Makefile.inc b/lib/clang/Makefile.inc index 2dfc966726b0..37da7ac759b1 100644 --- a/lib/clang/Makefile.inc +++ b/lib/clang/Makefile.inc @@ -1,13 +1,15 @@ -.include +.include PACKAGE= clang MK_PIE:= no # Explicit libXXX.a references +.if ${MK_LLVM_FULL_DEBUGINFO} == "no" .if ${COMPILER_TYPE} == "clang" DEBUG_FILES_CFLAGS= -gline-tables-only .else DEBUG_FILES_CFLAGS= -g1 .endif +.endif WARNS?= 0 diff --git a/lib/clang/headers/Makefile b/lib/clang/headers/Makefile index 49f78b0a4d97..f72567514f20 100644 --- a/lib/clang/headers/Makefile +++ b/lib/clang/headers/Makefile @@ -1,4 +1,5 @@ +.include .include "../clang.pre.mk" .PATH: ${CLANG_SRCS}/lib/Headers diff --git a/lib/clang/libclang/Makefile b/lib/clang/libclang/Makefile index 51c209d879f1..8d911905808d 100644 --- a/lib/clang/libclang/Makefile +++ b/lib/clang/libclang/Makefile @@ -1,5 +1,5 @@ -.include +.include .include "../clang.pre.mk" LIB= clang diff --git a/lib/clang/libclangminimal/Makefile b/lib/clang/libclangminimal/Makefile index 744e1a835f90..22faa7b98aeb 100644 --- a/lib/clang/libclangminimal/Makefile +++ b/lib/clang/libclangminimal/Makefile @@ -1,4 +1,5 @@ +.include .include "../clang.pre.mk" LIB= clangminimal diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile index c32e4a387b2e..e6e1e638abce 100644 --- a/lib/clang/liblldb/Makefile +++ b/lib/clang/liblldb/Makefile @@ -1,4 +1,5 @@ +.include .include "../lldb.pre.mk" LIB= lldb diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile index df39f2eb212e..b59d881ad99a 100644 --- a/lib/clang/libllvm/Makefile +++ b/lib/clang/libllvm/Makefile @@ -1,5 +1,5 @@ -.include +.include .include "../llvm.pre.mk" LIB= llvm diff --git a/lib/clang/libllvmminimal/Makefile b/lib/clang/libllvmminimal/Makefile index 83c7101b04f5..ce5535a59072 100644 --- a/lib/clang/libllvmminimal/Makefile +++ b/lib/clang/libllvmminimal/Makefile @@ -1,4 +1,5 @@ +.include .include "../llvm.pre.mk" LIB= llvmminimal diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5 index e6affc81ab9c..a32b267afeb4 100644 --- a/share/man/man5/src.conf.5 +++ b/share/man/man5/src.conf.5 @@ -1,5 +1,5 @@ .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman. -.Dd November 13, 2023 +.Dd February 16, 2024 .Dt SRC.CONF 5 .Os .Sh NAME @@ -929,6 +929,9 @@ Do not build the tool. .It Va WITHOUT_LLVM_CXXFILT Install ELF Tool Chain's cxxfilt as c++filt, instead of LLVM's llvm-cxxfilt. +.It Va WITH_LLVM_FULL_DEBUGINFO +Generate full debug information for LLVM libraries and tools, which uses +more disk space and build resources, but allows for easier debugging. .It Va WITHOUT_LLVM_TARGET_AARCH64 Do not build LLVM target support for AArch64. The diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk index cf7f3f7dffa7..20c98cf45567 100644 --- a/share/mk/src.opts.mk +++ b/share/mk/src.opts.mk @@ -205,6 +205,7 @@ __DEFAULT_NO_OPTIONS = \ LOADER_VERBOSE \ LOADER_VERIEXEC_PASS_MANIFEST \ LLVM_BINUTILS \ + LLVM_FULL_DEBUGINFO \ MALLOC_PRODUCTION \ OFED_EXTRA \ OPENLDAP \ diff --git a/tools/build/options/WITH_LLVM_FULL_DEBUGINFO b/tools/build/options/WITH_LLVM_FULL_DEBUGINFO new file mode 100644 index 000000000000..4362de9eb762 --- /dev/null +++ b/tools/build/options/WITH_LLVM_FULL_DEBUGINFO @@ -0,0 +1,2 @@ +Generate full debug information for LLVM libraries and tools, which uses +more disk space and build resources, but allows for easier debugging. diff --git a/usr.bin/clang/Makefile.inc b/usr.bin/clang/Makefile.inc index 831cd56a8c25..99e993b57cb2 100644 --- a/usr.bin/clang/Makefile.inc +++ b/usr.bin/clang/Makefile.inc @@ -1,14 +1,16 @@ -WARNS?= 0 - -.include +.include MK_PIE:= no # Explicit libXXX.a references +.if ${MK_LLVM_FULL_DEBUGINFO} == "no" .if ${COMPILER_TYPE} == "clang" DEBUG_FILES_CFLAGS= -gline-tables-only .else DEBUG_FILES_CFLAGS= -g1 .endif +.endif + +WARNS?= 0 .include "../Makefile.inc" From nobody Sat Feb 17 07:19: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 4TcKtc57f6z541gD; Sat, 17 Feb 2024 07:19: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcKtc4Hdzz4b8Z; Sat, 17 Feb 2024 07:19:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708154376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jb/QLm+NQ7MsLo4F0/nnWbm8TYLbUTiBL35mYP/bhjg=; b=nQWWOQcFe2l+84xWsBsc03TqhAjjT6Yj7uQy0D027rQqGhpG8CSks6RoKfRlUCHBUL8a6G wmwXitWP1E0/tF+1KQDQTBnE1gom1zSk/13eQroYqNQAoChUIYMEgAHQnVI1kpjq0CMga3 eKrqgAHkz5tULmC6e6teF3WrXPoc0IRqjfZpLRknqWNfC2RApEwJ9U4bIXNCz0zri3/47n 1SuFdd4wQcAZ7mdrEID15xfiJuIXNn05aObqKlCrOkr8vif7MvwbfzQNtuCfwVKs6lPd4q mxbQugGAMTfTewmpwGa2LdUX0WQXLpGnYbf+xb+RFzkXvASYM56LqP9HUyr6Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708154376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jb/QLm+NQ7MsLo4F0/nnWbm8TYLbUTiBL35mYP/bhjg=; b=cXyuQpz8khB4tTGH+NrumPQWBP5O8vKqnze4tCs9L9/1tll+g29oBOgzzrGXnsmMqrfPK0 RXBt1QDzfRGndS5HHVQ6Ipg23KS/a3NwmvB0scfYREQspKPwWuaktZBfRSQWmqU4vpX4Ce toUawBjLphmMAxRtkpLMw69d5s0oCAQQe8qF4LmC+4jUcwVLb/BZIE9dhASiRjhkLdAjj5 YfOV82FD/3Embq2PfgayR6lZ5VRzLmUza1G8bACiQSa6AkeyAvZCUK8Q/RVMNEHWgXpihA 0167a0XU8Hq1OWSgmYAlxbeXqoyg+YG8ld0op1LTwPCxHRcfLjeiQXfwcQhfpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708154376; a=rsa-sha256; cv=none; b=w7M4xpW0eLw2Qc6lDMOKwchhcJUgnPrp50SPPiIZ+X5frSd114ma6Z/hvj1Da3YObOYIXJ BQ6frqM5kqd9xl67wA0qih6WZz53jQ1hAFk9TnRZInLg02Jq6EZdOHeR/vpP+DGa6Xhb34 EkF0q5idB4n2HthG5nyRHk8Lpf/8fVMB4f7CjENMKOXFyOPLMpb1Hy7iaoyNaqG9xytRPC BIRR4BjuQBxS/deBupboRvvDetKq1TqCBdZ+QykZ7tiaepeUkfnndVil/CaDFLekUOwhS/ 4weGghcj1iuEHBatHWzM5GSSQZp8QAHdX60SLh5KHPvLQn+dcDZplK2ftC8/dQ== 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 4TcKtc3KT9z100P; Sat, 17 Feb 2024 07:19:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41H7Ja4h072390; Sat, 17 Feb 2024 07:19:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41H7Jacc072387; Sat, 17 Feb 2024 07:19:36 GMT (envelope-from git) Date: Sat, 17 Feb 2024 07:19:36 GMT Message-Id: <202402170719.41H7Jacc072387@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: cd9d26ed91c0 - main - powerpc mpc85xx: Fix infinite recursion in multiple bus methods 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: cd9d26ed91c049dd60919c71badced89e18a882a Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=cd9d26ed91c049dd60919c71badced89e18a882a commit cd9d26ed91c049dd60919c71badced89e18a882a Author: John Baldwin AuthorDate: 2024-02-17 07:15:52 +0000 Commit: John Baldwin CommitDate: 2024-02-17 07:19:06 +0000 powerpc mpc85xx: Fix infinite recursion in multiple bus methods Similar to 68a3ff041129208ea98a3bd5142061176ab4165e, the default case needs to call bus_generic_* to pass the request up the tree, not bus_* which will just call this method again. Fixes: 5a7e717fb790 powerpc mpc85xx: Use bus_generic_rman_* --- sys/powerpc/mpc85xx/lbc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/powerpc/mpc85xx/lbc.c b/sys/powerpc/mpc85xx/lbc.c index 151d77739c4a..f6f38f22beb6 100644 --- a/sys/powerpc/mpc85xx/lbc.c +++ b/sys/powerpc/mpc85xx/lbc.c @@ -792,7 +792,7 @@ lbc_release_resource(device_t dev, device_t child, int type, int rid, return (bus_generic_rman_release_resource(dev, child, type, rid, res)); case SYS_RES_IRQ: - return (bus_release_resource(dev, type, rid, res)); + return (bus_generic_release_resource(dev, child, type, rid, res)); default: return (EINVAL); } @@ -810,7 +810,7 @@ lbc_activate_resource(device_t bus, device_t child, int type, int rid, return (bus_generic_rman_activate_resource(bus, child, type, rid, r)); case SYS_RES_IRQ: - return (bus_activate_resource(bus, type, rid, r)); + return (bus_generic_activate_resource(bus, child, type, rid, r)); default: return (EINVAL); } @@ -828,7 +828,7 @@ lbc_deactivate_resource(device_t bus, device_t child, int type, int rid, return (bus_generic_rman_deactivate_resource(bus, child, type, rid, r)); case SYS_RES_IRQ: - return (bus_deactivate_resource(bus, type, rid, r)); + return (bus_generic_deactivate_resource(bus, child, type, rid, r)); default: return (EINVAL); } From nobody Sat Feb 17 07:19: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 4TcKtd687rz541Y0; Sat, 17 Feb 2024 07:19: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcKtd5GxSz4bLN; Sat, 17 Feb 2024 07:19:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708154377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2EMiande2YYTyVc0bI4UfWOCt9YSP8Fwonrj3CMuT2k=; b=FM93o3mNI8TDq/upUHqN6tPzMUVy09CVQAbncsBERKzB4oHYwakJU9LLurBxl8bTKOD+6s oL6ztNecdK13EXGoPE/d7/DGV85AUenaG69p9RCnr0edcNK5a0UGwIoBQJZlVAms5A8DM/ lrISdB5Du5zDtHjhh853ShCPXkmNEhx211AD4cQXggJuR3kRj5FQEHv5Vk8zJaKX56yg4H 5iRkjb/pjCjio+jPz0Ao3H0y0zX7Ofw+nMftSbvLwC8aR6WQesO27X7ccaOHUP/7/42g/G +1dSd1zG5PBg1ewHHYCc6fTVTYwfzOpOgmlQNuFq4yD3QaJgUUX+1t2oy+6XWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708154377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2EMiande2YYTyVc0bI4UfWOCt9YSP8Fwonrj3CMuT2k=; b=suSDS5yBHvSXeQKG4oMXOmNPL9q5ftn7XtHfQid4kpLIyI3TsFNNcp1/2YL7H34hjsUpNG ayH/myLngBs8C6oNOIO3gaGbmIQbX5VS08uZ23vQbm6ufYR2j13T94GmSbiBF7f8vJAHwA sbNvJ0BNOCwjRNyDDRtn8uALrUx3r9szLjXb93st2MVae88/qxggytVIakkymIfLJRrvYE wBXODti2QHHnZNHqKuTGgSH6fH/x5izBIUNgGalFB6gIviDZo8eyP5C7Vj70LmrDBl7ab6 4/7eFJlci39Qp+bkfvR5CP8pzRYyRZUj4bQ6GKcMSpHLycuETzOXOxQrMqDneA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708154377; a=rsa-sha256; cv=none; b=ffaBRagvVd9fZlsaVPvk0qf4IpMy/rY/SZsMiw3/KGkQZ7mT+aOHQqA+LH/QiukR9UhWoL khdxt36cVNypow7BvIdhuhYeDfSk3ahRvLcVzMxA3LQDs/e+dfmyqJMxIn6qhylN/Lg7zO Y0jjfD1PzNiamvRMv90hwoZiMjxlddpaYmkRU/9BWu97pTodTsIByvATq9MD9YFCsav/KO r/H0OXTlOzDmxwyYlpTHSMv9ZJE0WyqPKLYJojKH7xRv2KJepj1aBY6hN+BAsPBeVF03wS 6W98QBLhfnJa191yV0CymWd433XlgJVEMe18Dzi8EiZuE6JGrR3QkOilIzkggg== 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 4TcKtd4LdxzyfY; Sat, 17 Feb 2024 07:19:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41H7JbLU072444; Sat, 17 Feb 2024 07:19:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41H7Jb92072441; Sat, 17 Feb 2024 07:19:37 GMT (envelope-from git) Date: Sat, 17 Feb 2024 07:19:37 GMT Message-Id: <202402170719.41H7Jb92072441@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: 61d9bd21e9d6 - main - powerpc psim: Fix infinite recursion in multiple bus methods 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 61d9bd21e9d6c3f876c4c8549fafaaaa4de75983 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=61d9bd21e9d6c3f876c4c8549fafaaaa4de75983 commit 61d9bd21e9d6c3f876c4c8549fafaaaa4de75983 Author: John Baldwin AuthorDate: 2024-02-17 07:17:42 +0000 Commit: John Baldwin CommitDate: 2024-02-17 07:19:06 +0000 powerpc psim: Fix infinite recursion in multiple bus methods Similar to 68a3ff041129208ea98a3bd5142061176ab4165e, the default case needs to call bus_generic_* to pass the request up the tree, not bus_* which will just call this method again. Fixes: d7c16b333455 powerpc psim: Use bus_generic_rman_* --- sys/powerpc/psim/iobus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/powerpc/psim/iobus.c b/sys/powerpc/psim/iobus.c index c572a1fdc12b..eea0255aa21c 100644 --- a/sys/powerpc/psim/iobus.c +++ b/sys/powerpc/psim/iobus.c @@ -370,7 +370,7 @@ iobus_release_resource(device_t bus, device_t child, int type, int rid, return (bus_generic_rman_release_resource(bus, child, type, rid, res)); case SYS_RES_IRQ: - return (bus_release_resource(bus, type, rid, res)); + return (bus_generic_release_resource(bus, child, type, rid, res)); default: return (EINVAL); } @@ -383,7 +383,7 @@ iobus_activate_resource(device_t bus, device_t child, int type, int rid, switch (type) { case SYS_RES_IRQ: - return (bus_activate_resource(bus, type, rid, res)); + return (bus_generic_activate_resource(bus, child, type, rid, res)); case SYS_RES_IOPORT: case SYS_RES_MEMORY: return (bus_generic_rman_activate_resource(bus, child, type, @@ -400,7 +400,7 @@ iobus_deactivate_resource(device_t bus, device_t child, int type, int rid, switch (type) { case SYS_RES_IRQ: - return (bus_deactivate_resource(bus, type, rid, res)); + return (bus_generic_deactivate_resource(bus, child, type, rid, res)); case SYS_RES_IOPORT: case SYS_RES_MEMORY: return (bus_generic_rman_deactivate_resource(bus, child, type, From nobody Sat Feb 17 11:31: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 4TcRSs2qjRz5B8dy; Sat, 17 Feb 2024 11:31: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcRSs1dYsz47j2; Sat, 17 Feb 2024 11:31:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708169469; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fdy1oNi2AHDI6mffZ49R3iM3wMG9I1na8T9fwbv3JWg=; b=JsMr46rSoc1YKCEBTeqycq6I9rrecJFeKYHLz8HHhz+h3kWpd84ejaAnXqX7B57AHjCTla Rh5L6taD/Idt5F/1nKtWZsmnIJlzDoXLbSqF+7IZlYDsj2x02277nibXsj+DK1ASK/HNUf eRQbnphRaRJO2l2fnpSUDXMacu2wn2OpbNc/yuHI14LpNWX50PhUzgkteiSeymcZJDQJxB ytws8yb+ysmZDP3bO4ZD0TdYKyqZnw8HBocmMFZ2wtd6DL11F3y80RUMqeMAnFdjfRvNOj X7tknaffwHaAknA/HLNlP6WBR7QP+NX5PePZh1kYFDqfpTfpFyeAdUv1RwIeOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708169469; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fdy1oNi2AHDI6mffZ49R3iM3wMG9I1na8T9fwbv3JWg=; b=AWaC9JcxaFBNATCZUJ0YV+EeNEJu0FyMpz7sDS51bKmTrZZwWcXmnYuxKEAjT9hyCA3jSa Ju/jfD/14ueDXTZQPpU+eywdJSgBt/8n+WFnLlxlzePBuhQHHNN6Z74PZn9nIN+pGDGI+F 5CyCx+yD9tUCijXmk1bUD1BbwCLY+EeYpQPLpEVB+kD5nhfUYinmE0VAMcdayHMWNe8hi7 bCKtIPH92QWBxvYTopLS2yMOr+ZSM0pFYd+jZMWU3mdpqjqoK2cgdl0qb+56K15LeRGby2 s11gT89vyRa0PvF81PGzT6NbGoYywmS6fzNeCW+VIMU2sLllYp3v8VADpTPo4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708169469; a=rsa-sha256; cv=none; b=Ex73UZc8TgklsK62o+XdTEnZWHLUTmStItBJkic1GSFX3siBBewVOjZN6cAxCFnmx4NCiy juHBx5+FYMCKQ3q4nocWAn+Chp4flUkSP6iqB4dM+KBYq0y32vPfxvUXuNN8rKv/C8Q7Nf 5na3CK7Ze9iwlUanuSwkxcY0V+mVme7A6WTKEI+h+IyHp3nt700tw10Kaf5Xdqf3VdM3KK rBh9KvjL2420W1/KZoJisDbX4ogRU6158mIakB0MfUvkUcCV612MM3M+SoLK8EsIIrL5ZY pjsPv4xMRbuu8TCbX/mId+FVeIi1+VYFDGjeU5XHbilRtXIXa3kf9J+5w9BGUw== 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 4TcRSs0hw3z15pH; Sat, 17 Feb 2024 11:31:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HBV9gh005575; Sat, 17 Feb 2024 11:31:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HBV9wg005572; Sat, 17 Feb 2024 11:31:09 GMT (envelope-from git) Date: Sat, 17 Feb 2024 11:31:09 GMT Message-Id: <202402171131.41HBV9wg005572@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: e368e9b75677 - main - Proactively remove /usr/lib/kgdb file that became a directory 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: e368e9b756772264acdbc11f3cc1d223bcd48dee Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e368e9b756772264acdbc11f3cc1d223bcd48dee commit e368e9b756772264acdbc11f3cc1d223bcd48dee Author: Dimitry Andric AuthorDate: 2024-02-17 11:27:33 +0000 Commit: Dimitry Andric CommitDate: 2024-02-17 11:27:33 +0000 Proactively remove /usr/lib/kgdb file that became a directory This was already handled in ObsoleteFiles.inc (see the 20201215 entry), but some people never run "make delete-old", or want to upgrade directly from a revision that still had the file to the most recent revision. They would then encounter a failure during installworld, similar to: install: /usr/libexec/kgdb exists but is not a directory Therefore, clean it up in the distrib-cleanup phase, similar to the earlier instances of libc++ header files that became a directory. MFC after: 3 days --- etc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/Makefile b/etc/Makefile index 745ca91c60bf..229d9380901d 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -126,6 +126,7 @@ MTREES+= ../${mtree} / # scenario. DISTRIB_CLEANUP_FILES+= ${INCLUDEDIR}/c++/v1/__string DISTRIB_CLEANUP_FILES+= ${INCLUDEDIR}/c++/v1/__tuple +DISTRIB_CLEANUP_FILES+= ${LIBEXECDIR}/kgdb distrib-cleanup: .PHONY for file in ${DISTRIB_CLEANUP_FILES}; do \ if [ -f ${DESTDIR}/$${file} ]; then \ From nobody Sat Feb 17 13:45: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 4TcVS91Bpmz5B1Qx; Sat, 17 Feb 2024 13:45: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcVS86NSgz4PkX; Sat, 17 Feb 2024 13:45:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708177544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QUla53S5m0HMRX5q0cYZDlCUm4dTUYF2Gt74ygvmVSQ=; b=NWsPwB8ey6NSUfWPe36/DKKzWKnXrdXzPtEByJfhobY6h+T9YzdzFCWqOHPEBijiKBZ/vr 9z8pmZQSLVI/CqMbtX5zaRdlCPvWDl8QgtG+Vsnjg3pGpBP9Avfw65WQMHBqyFR6lnwRFF 9nrASkl20G0gvWopikHdZUuFkcaW3QSX35vrYAol/fyBmoq2IFftuHl4XqkUTRJU7oC8Zq vsJtiAyjIgUA+9wfnehCPvcf9CJY1ux1munCgAFr6jS1gasPwVmY10JwVRI35hEM7EduJb 46nCZPMjOI83md7l4APFLmWDMmgUR/uFVSskXven96reIWze4GNKBiCACMAIbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708177544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QUla53S5m0HMRX5q0cYZDlCUm4dTUYF2Gt74ygvmVSQ=; b=rQuOEpsGdwT528tPBuqVnuZZn4rAzrByTjDvsfejpLXvF8kcW83SoNQCZ9IE2kK6ZUw/Fc zQmhk8tjNe2Ecp91qCZfFMs1GNSgTWkvN2kScfHXCKH4QvrY3zjwOoiMDLddww4Q1s43zq ZWaT4SD1PLcHHIodSZFudjqW+Uegi9saLrABr6KyxwGBLwe+zAKn1io21QDW6oGd+ndLwR LLFeplQz+WqHX+OrydybJBiLilrjXDKyUunSO+8c8Mvk7qhE7MqLQz+JrR5wEEzFgiybTY U/R9chcF4yRBg4al3XUa6wQNZ0OpPtTaXrheRPepx7IArg0CIiQwucbSx6mpTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708177544; a=rsa-sha256; cv=none; b=nxXoNOWSHz6LJHxGkZnh3fA/zCFz5Fm4H5eq4b7IQ2ZAi5NFveKeOBUbZeIaKJ0JokpHNR YMkoYc/GU4SnCLyLmMNZ0Crd6Asr9tJ67OTS62J06y8njDM7TcAydMGDMXSysoBq+5Vpfn 3b/2AznqgiEGP2VF4IDU8ut9/PhPGs7lXHHF7R6mGhlq79thGqnH7IZ+JiZrEY4rqESEzg MVT/sz1SYL8Td9UMQs0G9Qtfe7gGccNNU4pZp1SwdFcjIP/lK6nMXxs+vWFqKLkbnJlU4R E3ZnApppGTaiollKJZZIecDSQnCSooLmzlaGkqzuXuv1KhrAmas3zfZ3iOavpg== 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 4TcVS85Scvz18KY; Sat, 17 Feb 2024 13:45:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HDji86028826; Sat, 17 Feb 2024 13:45:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HDji8t028823; Sat, 17 Feb 2024 13:45:44 GMT (envelope-from git) Date: Sat, 17 Feb 2024 13:45:44 GMT Message-Id: <202402171345.41HDji8t028823@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Cy Schubert Subject: git: e2b44c401cc2 - stable/14 - unbound: Vendor import 1.19.1 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e2b44c401cc2a59da8c4c0515c6bcb533d09cc73 Auto-Submitted: auto-generated The branch stable/14 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=e2b44c401cc2a59da8c4c0515c6bcb533d09cc73 commit e2b44c401cc2a59da8c4c0515c6bcb533d09cc73 Author: Cy Schubert AuthorDate: 2023-11-13 19:44:16 +0000 Commit: Cy Schubert CommitDate: 2024-02-17 13:44:30 +0000 unbound: Vendor import 1.19.1 Release notes at https://www.nlnetlabs.nl/news/2024/Feb/13/unbound-1.19.1-released/ Security: CVE-2023-50387, CVE-2023-50868 (cherry picked from commit b76ef9a7cb8a7c62d10ae8101f41014f34819174) --- contrib/unbound/config.guess | 11 +- contrib/unbound/config.sub | 29 +- contrib/unbound/configure | 25 +- contrib/unbound/configure.ac | 5 +- contrib/unbound/doc/README | 2 +- contrib/unbound/doc/example.conf.in | 2 +- contrib/unbound/doc/libunbound.3.in | 4 +- contrib/unbound/doc/unbound-anchor.8.in | 2 +- contrib/unbound/doc/unbound-checkconf.8.in | 2 +- contrib/unbound/doc/unbound-control.8.in | 2 +- contrib/unbound/doc/unbound-host.1.in | 2 +- contrib/unbound/doc/unbound.8.in | 4 +- contrib/unbound/doc/unbound.conf.5.in | 2 +- contrib/unbound/services/authzone.c | 3 +- contrib/unbound/services/cache/dns.c | 22 ++ contrib/unbound/services/cache/dns.h | 9 + contrib/unbound/testdata/val_any_negcache.rpl | 3 + contrib/unbound/util/fptr_wlist.c | 1 + contrib/unbound/validator/val_nsec.c | 3 +- contrib/unbound/validator/val_nsec3.c | 316 ++++++++++++---- contrib/unbound/validator/val_nsec3.h | 60 +++- contrib/unbound/validator/val_sigcrypt.c | 37 +- contrib/unbound/validator/val_sigcrypt.h | 3 +- contrib/unbound/validator/val_utils.c | 22 +- contrib/unbound/validator/val_utils.h | 4 +- contrib/unbound/validator/validator.c | 499 ++++++++++++++++++++++---- contrib/unbound/validator/validator.h | 18 + lib/libunbound/config.h | 4 +- 28 files changed, 889 insertions(+), 207 deletions(-) diff --git a/contrib/unbound/config.guess b/contrib/unbound/config.guess index cdfc4392047c..f6d217a49f8f 100755 --- a/contrib/unbound/config.guess +++ b/contrib/unbound/config.guess @@ -1,10 +1,10 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2023 Free Software Foundation, Inc. +# Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2023-08-22' +timestamp='2024-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -60,7 +60,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2023 Free Software Foundation, Inc. +Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -165,6 +165,8 @@ Linux|GNU|GNU/*) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu + #elif defined(__LLVM_LIBC__) + LIBC=llvm #else #include /* First heuristic to detect musl libc. */ @@ -1593,6 +1595,9 @@ EOF *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; + *:Ironclad:*:*) + GUESS=$UNAME_MACHINE-unknown-ironclad + ;; esac # Do we have a guess based on uname results? diff --git a/contrib/unbound/config.sub b/contrib/unbound/config.sub index defe52c0c874..2c6a07ab3c34 100755 --- a/contrib/unbound/config.sub +++ b/contrib/unbound/config.sub @@ -1,10 +1,10 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2023 Free Software Foundation, Inc. +# Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2023-09-19' +timestamp='2024-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -76,7 +76,7 @@ Report bugs and patches to ." version="\ GNU config.sub ($timestamp) -Copyright 1992-2023 Free Software Foundation, Inc. +Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -1222,6 +1222,7 @@ case $cpu-$vendor in | moxie \ | mt \ | msp430 \ + | nanomips* \ | nds32 | nds32le | nds32be \ | nfp \ | nios | nios2 | nios2eb | nios2el \ @@ -1253,6 +1254,7 @@ case $cpu-$vendor in | ubicom32 \ | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | vax \ + | vc4 \ | visium \ | w65 \ | wasm32 | wasm64 \ @@ -1597,7 +1599,7 @@ case $cpu-$vendor in os= obj=elf ;; - mips*-*) + mips*-*|nanomips*-*) os= obj=elf ;; @@ -1721,7 +1723,7 @@ fi case $os in # Sometimes we do "kernel-libc", so those need to count as OSes. - musl* | newlib* | relibc* | uclibc*) + llvm* | musl* | newlib* | relibc* | uclibc*) ;; # Likewise for "kernel-abi" eabi* | gnueabi*) @@ -1766,12 +1768,19 @@ case $os in | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ - | fiwix* | mlibc* | cos* | mbr* ) + | fiwix* | mlibc* | cos* | mbr* | ironclad* ) ;; # This one is extra strict with allowed versions sco3.2v2 | sco3.2v[4-9]* | sco5v6*) # Don't forget version if it is 3.2v4 or newer. ;; + # This refers to builds using the UEFI calling convention + # (which depends on the architecture) and PE file format. + # Note that this is both a different calling convention and + # different file format than that of GNU-EFI + # (x86_64-w64-mingw32). + uefi) + ;; none) ;; kernel* | msvc* ) @@ -1818,8 +1827,9 @@ esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os-$obj in - linux-gnu*- | linux-dietlibc*- | linux-android*- | linux-newlib*- \ - | linux-musl*- | linux-relibc*- | linux-uclibc*- | linux-mlibc*- ) + linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ + | linux-mlibc*- | linux-musl*- | linux-newlib*- \ + | linux-relibc*- | linux-uclibc*- ) ;; uclinux-uclibc*- ) ;; @@ -1827,7 +1837,8 @@ case $kernel-$os-$obj in ;; windows*-msvc*-) ;; - -dietlibc*- | -newlib*- | -musl*- | -relibc*- | -uclibc*- | -mlibc*- ) + -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ + | -uclibc*- ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 diff --git a/contrib/unbound/configure b/contrib/unbound/configure index fbe6f8697742..c87c669c8435 100755 --- a/contrib/unbound/configure +++ b/contrib/unbound/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for unbound 1.19.0. +# Generated by GNU Autoconf 2.69 for unbound 1.19.1. # # Report bugs to . # @@ -591,8 +591,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='unbound' PACKAGE_TARNAME='unbound' -PACKAGE_VERSION='1.19.0' -PACKAGE_STRING='unbound 1.19.0' +PACKAGE_VERSION='1.19.1' +PACKAGE_STRING='unbound 1.19.1' PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues' PACKAGE_URL='' @@ -1477,7 +1477,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures unbound 1.19.0 to adapt to many kinds of systems. +\`configure' configures unbound 1.19.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1543,7 +1543,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of unbound 1.19.0:";; + short | recursive ) echo "Configuration of unbound 1.19.1:";; esac cat <<\_ACEOF @@ -1785,7 +1785,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -unbound configure 1.19.0 +unbound configure 1.19.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2494,7 +2494,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by unbound $as_me 1.19.0, which was +It was created by unbound $as_me 1.19.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2846,11 +2846,11 @@ UNBOUND_VERSION_MAJOR=1 UNBOUND_VERSION_MINOR=19 -UNBOUND_VERSION_MICRO=0 +UNBOUND_VERSION_MICRO=1 LIBUNBOUND_CURRENT=9 -LIBUNBOUND_REVISION=23 +LIBUNBOUND_REVISION=24 LIBUNBOUND_AGE=1 # 1.0.0 had 0:12:0 # 1.0.1 had 0:13:0 @@ -2941,6 +2941,7 @@ LIBUNBOUND_AGE=1 # 1.17.1 had 9:21:1 # 1.18.0 had 9:22:1 # 1.19.0 had 9:23:1 +# 1.19.1 had 9:24:1 # Current -- the number of the binary API that we're implementing # Revision -- which iteration of the implementation of the binary @@ -21894,7 +21895,7 @@ _ACEOF -version=1.19.0 +version=1.19.1 date=`date +'%b %e, %Y'` @@ -22413,7 +22414,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by unbound $as_me 1.19.0, which was +This file was extended by unbound $as_me 1.19.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -22479,7 +22480,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -unbound config.status 1.19.0 +unbound config.status 1.19.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/contrib/unbound/configure.ac b/contrib/unbound/configure.ac index 1b999596d09a..70fc7e7fdf49 100644 --- a/contrib/unbound/configure.ac +++ b/contrib/unbound/configure.ac @@ -11,14 +11,14 @@ sinclude(dnscrypt/dnscrypt.m4) # must be numbers. ac_defun because of later processing m4_define([VERSION_MAJOR],[1]) m4_define([VERSION_MINOR],[19]) -m4_define([VERSION_MICRO],[0]) +m4_define([VERSION_MICRO],[1]) AC_INIT([unbound],m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]),[unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues],[unbound]) AC_SUBST(UNBOUND_VERSION_MAJOR, [VERSION_MAJOR]) AC_SUBST(UNBOUND_VERSION_MINOR, [VERSION_MINOR]) AC_SUBST(UNBOUND_VERSION_MICRO, [VERSION_MICRO]) LIBUNBOUND_CURRENT=9 -LIBUNBOUND_REVISION=23 +LIBUNBOUND_REVISION=24 LIBUNBOUND_AGE=1 # 1.0.0 had 0:12:0 # 1.0.1 had 0:13:0 @@ -109,6 +109,7 @@ LIBUNBOUND_AGE=1 # 1.17.1 had 9:21:1 # 1.18.0 had 9:22:1 # 1.19.0 had 9:23:1 +# 1.19.1 had 9:24:1 # Current -- the number of the binary API that we're implementing # Revision -- which iteration of the implementation of the binary diff --git a/contrib/unbound/doc/README b/contrib/unbound/doc/README index 592a9f4ae8d2..eef91ce02836 100644 --- a/contrib/unbound/doc/README +++ b/contrib/unbound/doc/README @@ -1,4 +1,4 @@ -README for Unbound 1.19.0 +README for Unbound 1.19.1 Copyright 2007 NLnet Labs http://unbound.net diff --git a/contrib/unbound/doc/example.conf.in b/contrib/unbound/doc/example.conf.in index fe0dde69fa19..fcfb1da815db 100644 --- a/contrib/unbound/doc/example.conf.in +++ b/contrib/unbound/doc/example.conf.in @@ -1,7 +1,7 @@ # # Example configuration file. # -# See unbound.conf(5) man page, version 1.19.0. +# See unbound.conf(5) man page, version 1.19.1. # # this is a comment. diff --git a/contrib/unbound/doc/libunbound.3.in b/contrib/unbound/doc/libunbound.3.in index fa090d58186f..4a55eaa9e2ca 100644 --- a/contrib/unbound/doc/libunbound.3.in +++ b/contrib/unbound/doc/libunbound.3.in @@ -1,4 +1,4 @@ -.TH "libunbound" "3" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "libunbound" "3" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" libunbound.3 -- unbound library functions manual .\" @@ -44,7 +44,7 @@ .B ub_ctx_zone_remove, .B ub_ctx_data_add, .B ub_ctx_data_remove -\- Unbound DNS validating resolver 1.19.0 functions. +\- Unbound DNS validating resolver 1.19.1 functions. .SH "SYNOPSIS" .B #include .LP diff --git a/contrib/unbound/doc/unbound-anchor.8.in b/contrib/unbound/doc/unbound-anchor.8.in index a108db9faa72..fee56e9dfa51 100644 --- a/contrib/unbound/doc/unbound-anchor.8.in +++ b/contrib/unbound/doc/unbound-anchor.8.in @@ -1,4 +1,4 @@ -.TH "unbound-anchor" "8" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound-anchor" "8" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound-anchor.8 -- unbound anchor maintenance utility manual .\" diff --git a/contrib/unbound/doc/unbound-checkconf.8.in b/contrib/unbound/doc/unbound-checkconf.8.in index b80c723cd3f0..9a14ef06bc3d 100644 --- a/contrib/unbound/doc/unbound-checkconf.8.in +++ b/contrib/unbound/doc/unbound-checkconf.8.in @@ -1,4 +1,4 @@ -.TH "unbound-checkconf" "8" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound-checkconf" "8" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound-checkconf.8 -- unbound configuration checker manual .\" diff --git a/contrib/unbound/doc/unbound-control.8.in b/contrib/unbound/doc/unbound-control.8.in index 44e73c93dfd5..e747ec47e25a 100644 --- a/contrib/unbound/doc/unbound-control.8.in +++ b/contrib/unbound/doc/unbound-control.8.in @@ -1,4 +1,4 @@ -.TH "unbound-control" "8" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound-control" "8" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound-control.8 -- unbound remote control manual .\" diff --git a/contrib/unbound/doc/unbound-host.1.in b/contrib/unbound/doc/unbound-host.1.in index 36f22ee9b6d1..9c9e9e2bf4a0 100644 --- a/contrib/unbound/doc/unbound-host.1.in +++ b/contrib/unbound/doc/unbound-host.1.in @@ -1,4 +1,4 @@ -.TH "unbound\-host" "1" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound\-host" "1" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound-host.1 -- unbound DNS lookup utility .\" diff --git a/contrib/unbound/doc/unbound.8.in b/contrib/unbound/doc/unbound.8.in index 3d56b7bfa190..4967a22d328c 100644 --- a/contrib/unbound/doc/unbound.8.in +++ b/contrib/unbound/doc/unbound.8.in @@ -1,4 +1,4 @@ -.TH "unbound" "8" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound" "8" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound.8 -- unbound manual .\" @@ -9,7 +9,7 @@ .\" .SH "NAME" .B unbound -\- Unbound DNS validating resolver 1.19.0. +\- Unbound DNS validating resolver 1.19.1. .SH "SYNOPSIS" .B unbound .RB [ \-h ] diff --git a/contrib/unbound/doc/unbound.conf.5.in b/contrib/unbound/doc/unbound.conf.5.in index ac8fa7953f3c..79ca04904c96 100644 --- a/contrib/unbound/doc/unbound.conf.5.in +++ b/contrib/unbound/doc/unbound.conf.5.in @@ -1,4 +1,4 @@ -.TH "unbound.conf" "5" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound.conf" "5" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound.conf.5 -- unbound.conf manual .\" diff --git a/contrib/unbound/services/authzone.c b/contrib/unbound/services/authzone.c index 87844870a25a..761bcc6d9a75 100644 --- a/contrib/unbound/services/authzone.c +++ b/contrib/unbound/services/authzone.c @@ -7774,6 +7774,7 @@ static int zonemd_dnssec_verify_rrset(struct auth_zone* z, enum sec_status sec; struct val_env* ve; int m; + int verified = 0; m = modstack_find(mods, "validator"); if(m == -1) { auth_zone_log(z->name, VERB_ALGO, "zonemd dnssec verify: have " @@ -7797,7 +7798,7 @@ static int zonemd_dnssec_verify_rrset(struct auth_zone* z, "zonemd: verify %s RRset with DNSKEY", typestr); } sec = dnskeyset_verify_rrset(env, ve, &pk, dnskey, sigalg, why_bogus, NULL, - LDNS_SECTION_ANSWER, NULL); + LDNS_SECTION_ANSWER, NULL, &verified); if(sec == sec_status_secure) { return 1; } diff --git a/contrib/unbound/services/cache/dns.c b/contrib/unbound/services/cache/dns.c index 9b4ad5888721..7bc1b7b47bf1 100644 --- a/contrib/unbound/services/cache/dns.c +++ b/contrib/unbound/services/cache/dns.c @@ -690,6 +690,28 @@ tomsg(struct module_env* env, struct query_info* q, struct reply_info* r, return msg; } +struct dns_msg* +dns_msg_deepcopy_region(struct dns_msg* origin, struct regional* region) +{ + size_t i; + struct dns_msg* res = NULL; + res = gen_dns_msg(region, &origin->qinfo, origin->rep->rrset_count); + if(!res) return NULL; + *res->rep = *origin->rep; + if(origin->rep->reason_bogus_str) { + res->rep->reason_bogus_str = regional_strdup(region, + origin->rep->reason_bogus_str); + } + for(i=0; irep->rrset_count; i++) { + res->rep->rrsets[i] = packed_rrset_copy_region( + origin->rep->rrsets[i], region, 0); + if(!res->rep->rrsets[i]) { + return NULL; + } + } + return res; +} + /** synthesize RRset-only response from cached RRset item */ static struct dns_msg* rrset_msg(struct ub_packed_rrset_key* rrset, struct regional* region, diff --git a/contrib/unbound/services/cache/dns.h b/contrib/unbound/services/cache/dns.h index 147f992cbc74..c2bf23c6de54 100644 --- a/contrib/unbound/services/cache/dns.h +++ b/contrib/unbound/services/cache/dns.h @@ -164,6 +164,15 @@ struct dns_msg* tomsg(struct module_env* env, struct query_info* q, struct reply_info* r, struct regional* region, time_t now, int allow_expired, struct regional* scratch); +/** + * Deep copy a dns_msg to a region. + * @param origin: the dns_msg to copy. + * @param region: the region to copy all the data to. + * @return the new dns_msg or NULL on malloc error. + */ +struct dns_msg* dns_msg_deepcopy_region(struct dns_msg* origin, + struct regional* region); + /** * Find cached message * @param env: module environment with the DNS cache. diff --git a/contrib/unbound/testdata/val_any_negcache.rpl b/contrib/unbound/testdata/val_any_negcache.rpl index 77aacba8cc13..8800a2140219 100644 --- a/contrib/unbound/testdata/val_any_negcache.rpl +++ b/contrib/unbound/testdata/val_any_negcache.rpl @@ -199,6 +199,9 @@ SECTION QUESTION example.com. IN ANY ENTRY_END +; Allow validation resuming for the RRSIGs +STEP 21 TIME_PASSES ELAPSE 0.05 + ; recursion happens here. STEP 30 CHECK_ANSWER ENTRY_BEGIN diff --git a/contrib/unbound/util/fptr_wlist.c b/contrib/unbound/util/fptr_wlist.c index 43d38dc3797d..a792a3429549 100644 --- a/contrib/unbound/util/fptr_wlist.c +++ b/contrib/unbound/util/fptr_wlist.c @@ -131,6 +131,7 @@ fptr_whitelist_comm_timer(void (*fptr)(void*)) else if(fptr == &pending_udp_timer_delay_cb) return 1; else if(fptr == &worker_stat_timer_cb) return 1; else if(fptr == &worker_probe_timer_cb) return 1; + else if(fptr == &validate_suspend_timer_cb) return 1; #ifdef UB_ON_WINDOWS else if(fptr == &wsvc_cron_cb) return 1; #endif diff --git a/contrib/unbound/validator/val_nsec.c b/contrib/unbound/validator/val_nsec.c index 17c90d83f594..d0cc67ff5d0b 100644 --- a/contrib/unbound/validator/val_nsec.c +++ b/contrib/unbound/validator/val_nsec.c @@ -181,6 +181,7 @@ nsec_verify_rrset(struct module_env* env, struct val_env* ve, { struct packed_rrset_data* d = (struct packed_rrset_data*) nsec->entry.data; + int verified = 0; if(!d) return 0; if(d->security == sec_status_secure) return 1; @@ -188,7 +189,7 @@ nsec_verify_rrset(struct module_env* env, struct val_env* ve, if(d->security == sec_status_secure) return 1; d->security = val_verify_rrset_entry(env, ve, nsec, kkey, reason, - reason_bogus, LDNS_SECTION_AUTHORITY, qstate); + reason_bogus, LDNS_SECTION_AUTHORITY, qstate, &verified); if(d->security == sec_status_secure) { rrset_update_sec_status(env->rrset_cache, nsec, *env->now); return 1; diff --git a/contrib/unbound/validator/val_nsec3.c b/contrib/unbound/validator/val_nsec3.c index a2b3794f6019..95d1e4d7e4fe 100644 --- a/contrib/unbound/validator/val_nsec3.c +++ b/contrib/unbound/validator/val_nsec3.c @@ -57,6 +57,19 @@ /* we include nsec.h for the bitmap_has_type function */ #include "validator/val_nsec.h" #include "sldns/sbuffer.h" +#include "util/config_file.h" + +/** + * Max number of NSEC3 calculations at once, suspend query for later. + * 8 is low enough and allows for cases where multiple proofs are needed. + */ +#define MAX_NSEC3_CALCULATIONS 8 +/** + * When all allowed NSEC3 calculations at once resulted in error treat as + * bogus. NSEC3 hash errors are not cached and this helps breaks loops with + * erroneous data. + */ +#define MAX_NSEC3_ERRORS -1 /** * This function we get from ldns-compat or from base system @@ -532,6 +545,17 @@ nsec3_hash_cmp(const void* c1, const void* c2) return memcmp(s1, s2, s1len); } +int +nsec3_cache_table_init(struct nsec3_cache_table* ct, struct regional* region) +{ + if(ct->ct) return 1; + ct->ct = (rbtree_type*)regional_alloc(region, sizeof(*ct->ct)); + if(!ct->ct) return 0; + ct->region = region; + rbtree_init(ct->ct, &nsec3_hash_cmp); + return 1; +} + size_t nsec3_get_hashed(sldns_buffer* buf, uint8_t* nm, size_t nmlen, int algo, size_t iter, uint8_t* salt, size_t saltlen, uint8_t* res, size_t max) @@ -646,7 +670,7 @@ nsec3_hash_name(rbtree_type* table, struct regional* region, sldns_buffer* buf, c = (struct nsec3_cached_hash*)rbtree_search(table, &looki); if(c) { *hash = c; - return 1; + return 2; } /* create a new entry */ c = (struct nsec3_cached_hash*)regional_alloc(region, sizeof(*c)); @@ -658,10 +682,10 @@ nsec3_hash_name(rbtree_type* table, struct regional* region, sldns_buffer* buf, c->dname_len = dname_len; r = nsec3_calc_hash(region, buf, c); if(r != 1) - return r; + return r; /* returns -1 or 0 */ r = nsec3_calc_b32(region, buf, c); if(r != 1) - return r; + return r; /* returns 0 */ #ifdef UNBOUND_DEBUG n = #else @@ -704,6 +728,7 @@ nsec3_hash_matches_owner(struct nsec3_filter* flt, struct nsec3_cached_hash* hash, struct ub_packed_rrset_key* s) { uint8_t* nm = s->rk.dname; + if(!hash) return 0; /* please clang */ /* compare, does hash of name based on params in this NSEC3 * match the owner name of this NSEC3? * name must be: base32 . zone name @@ -730,34 +755,50 @@ nsec3_hash_matches_owner(struct nsec3_filter* flt, * @param nmlen: length of name. * @param rrset: nsec3 that matches is returned here. * @param rr: rr number in nsec3 rrset that matches. + * @param calculations: current hash calculations. * @return true if a matching NSEC3 is found, false if not. */ static int find_matching_nsec3(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, uint8_t* nm, size_t nmlen, - struct ub_packed_rrset_key** rrset, int* rr) + struct nsec3_cache_table* ct, uint8_t* nm, size_t nmlen, + struct ub_packed_rrset_key** rrset, int* rr, + int* calculations) { size_t i_rs; int i_rr; struct ub_packed_rrset_key* s; struct nsec3_cached_hash* hash = NULL; int r; + int calc_errors = 0; /* this loop skips other-zone and unknown NSEC3s, also non-NSEC3 RRs */ for(s=filter_first(flt, &i_rs, &i_rr); s; s=filter_next(flt, &i_rs, &i_rr)) { + /* check if we are allowed more calculations */ + if(*calculations >= MAX_NSEC3_CALCULATIONS) { + if(calc_errors == *calculations) { + *calculations = MAX_NSEC3_ERRORS; + } + break; + } /* get name hashed for this NSEC3 RR */ - r = nsec3_hash_name(ct, env->scratch, env->scratch_buffer, + r = nsec3_hash_name(ct->ct, ct->region, env->scratch_buffer, s, i_rr, nm, nmlen, &hash); if(r == 0) { log_err("nsec3: malloc failure"); break; /* alloc failure */ - } else if(r != 1) - continue; /* malformed NSEC3 */ - else if(nsec3_hash_matches_owner(flt, hash, s)) { - *rrset = s; /* rrset with this name */ - *rr = i_rr; /* matches hash with these parameters */ - return 1; + } else if(r < 0) { + /* malformed NSEC3 */ + calc_errors++; + (*calculations)++; + continue; + } else { + if(r == 1) (*calculations)++; + if(nsec3_hash_matches_owner(flt, hash, s)) { + *rrset = s; /* rrset with this name */ + *rr = i_rr; /* matches hash with these parameters */ + return 1; + } } } *rrset = NULL; @@ -775,6 +816,7 @@ nsec3_covers(uint8_t* zone, struct nsec3_cached_hash* hash, if(!nsec3_get_nextowner(rrset, rr, &next, &nextlen)) return 0; /* malformed RR proves nothing */ + if(!hash) return 0; /* please clang */ /* check the owner name is a hashed value . apex * base32 encoded values must have equal length. * hash_value and next hash value must have equal length. */ @@ -823,35 +865,51 @@ nsec3_covers(uint8_t* zone, struct nsec3_cached_hash* hash, * @param nmlen: length of name. * @param rrset: covering NSEC3 rrset is returned here. * @param rr: rr of cover is returned here. + * @param calculations: current hash calculations. * @return true if a covering NSEC3 is found, false if not. */ static int find_covering_nsec3(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, uint8_t* nm, size_t nmlen, - struct ub_packed_rrset_key** rrset, int* rr) + struct nsec3_cache_table* ct, uint8_t* nm, size_t nmlen, + struct ub_packed_rrset_key** rrset, int* rr, + int* calculations) { size_t i_rs; int i_rr; struct ub_packed_rrset_key* s; struct nsec3_cached_hash* hash = NULL; int r; + int calc_errors = 0; /* this loop skips other-zone and unknown NSEC3s, also non-NSEC3 RRs */ for(s=filter_first(flt, &i_rs, &i_rr); s; s=filter_next(flt, &i_rs, &i_rr)) { + /* check if we are allowed more calculations */ + if(*calculations >= MAX_NSEC3_CALCULATIONS) { + if(calc_errors == *calculations) { + *calculations = MAX_NSEC3_ERRORS; + } + break; + } /* get name hashed for this NSEC3 RR */ - r = nsec3_hash_name(ct, env->scratch, env->scratch_buffer, + r = nsec3_hash_name(ct->ct, ct->region, env->scratch_buffer, s, i_rr, nm, nmlen, &hash); if(r == 0) { log_err("nsec3: malloc failure"); break; /* alloc failure */ - } else if(r != 1) - continue; /* malformed NSEC3 */ - else if(nsec3_covers(flt->zone, hash, s, i_rr, - env->scratch_buffer)) { - *rrset = s; /* rrset with this name */ - *rr = i_rr; /* covers hash with these parameters */ - return 1; + } else if(r < 0) { + /* malformed NSEC3 */ + calc_errors++; + (*calculations)++; + continue; + } else { + if(r == 1) (*calculations)++; + if(nsec3_covers(flt->zone, hash, s, i_rr, + env->scratch_buffer)) { + *rrset = s; /* rrset with this name */ + *rr = i_rr; /* covers hash with these parameters */ + return 1; + } } } *rrset = NULL; @@ -869,11 +927,13 @@ find_covering_nsec3(struct module_env* env, struct nsec3_filter* flt, * @param ct: cached hashes table. * @param qinfo: query that is verified for. * @param ce: closest encloser information is returned in here. + * @param calculations: current hash calculations. * @return true if a closest encloser candidate is found, false if not. */ static int -nsec3_find_closest_encloser(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, struct query_info* qinfo, struct ce_response* ce) +nsec3_find_closest_encloser(struct module_env* env, struct nsec3_filter* flt, + struct nsec3_cache_table* ct, struct query_info* qinfo, + struct ce_response* ce, int* calculations) { uint8_t* nm = qinfo->qname; size_t nmlen = qinfo->qname_len; @@ -888,8 +948,12 @@ nsec3_find_closest_encloser(struct module_env* env, struct nsec3_filter* flt, * may be the case. */ while(dname_subdomain_c(nm, flt->zone)) { + if(*calculations >= MAX_NSEC3_CALCULATIONS || + *calculations == MAX_NSEC3_ERRORS) { + return 0; + } if(find_matching_nsec3(env, flt, ct, nm, nmlen, - &ce->ce_rrset, &ce->ce_rr)) { + &ce->ce_rrset, &ce->ce_rr, calculations)) { ce->ce = nm; ce->ce_len = nmlen; return 1; @@ -933,22 +997,38 @@ next_closer(uint8_t* qname, size_t qnamelen, uint8_t* ce, * If set true, and the return value is true, then you can be * certain that the ce.nc_rrset and ce.nc_rr are set properly. * @param ce: closest encloser information is returned in here. + * @param calculations: pointer to the current NSEC3 hash calculations. * @return bogus if no closest encloser could be proven. * secure if a closest encloser could be proven, ce is set. * insecure if the closest-encloser candidate turns out to prove * that an insecure delegation exists above the qname. + * unchecked if no more hash calculations are allowed at this point. */ static enum sec_status -nsec3_prove_closest_encloser(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, struct query_info* qinfo, int prove_does_not_exist, - struct ce_response* ce) +nsec3_prove_closest_encloser(struct module_env* env, struct nsec3_filter* flt, + struct nsec3_cache_table* ct, struct query_info* qinfo, + int prove_does_not_exist, struct ce_response* ce, int* calculations) { uint8_t* nc; size_t nc_len; /* robust: clean out ce, in case it gets abused later */ memset(ce, 0, sizeof(*ce)); - if(!nsec3_find_closest_encloser(env, flt, ct, qinfo, ce)) { + if(!nsec3_find_closest_encloser(env, flt, ct, qinfo, ce, calculations)) { + if(*calculations == MAX_NSEC3_ERRORS) { + verbose(VERB_ALGO, "nsec3 proveClosestEncloser: could " + "not find a candidate for the closest " + "encloser; all attempted hash calculations " + "were erroneous; bogus"); + return sec_status_bogus; + } else if(*calculations >= MAX_NSEC3_CALCULATIONS) { + verbose(VERB_ALGO, "nsec3 proveClosestEncloser: could " + "not find a candidate for the closest " + "encloser; reached MAX_NSEC3_CALCULATIONS " + "(%d); unchecked still", + MAX_NSEC3_CALCULATIONS); + return sec_status_unchecked; + } verbose(VERB_ALGO, "nsec3 proveClosestEncloser: could " "not find a candidate for the closest encloser."); return sec_status_bogus; @@ -989,9 +1069,23 @@ nsec3_prove_closest_encloser(struct module_env* env, struct nsec3_filter* flt, /* Otherwise, we need to show that the next closer name is covered. */ next_closer(qinfo->qname, qinfo->qname_len, ce->ce, &nc, &nc_len); if(!find_covering_nsec3(env, flt, ct, nc, nc_len, - &ce->nc_rrset, &ce->nc_rr)) { + &ce->nc_rrset, &ce->nc_rr, calculations)) { + if(*calculations == MAX_NSEC3_ERRORS) { + verbose(VERB_ALGO, "nsec3: Could not find proof that the " + "candidate encloser was the closest encloser; " + "all attempted hash calculations were " + "erroneous; bogus"); + return sec_status_bogus; + } else if(*calculations >= MAX_NSEC3_CALCULATIONS) { + verbose(VERB_ALGO, "nsec3: Could not find proof that the " + "candidate encloser was the closest encloser; " + "reached MAX_NSEC3_CALCULATIONS (%d); " + "unchecked still", + MAX_NSEC3_CALCULATIONS); + return sec_status_unchecked; + } verbose(VERB_ALGO, "nsec3: Could not find proof that the " - "candidate encloser was the closest encloser"); + "candidate encloser was the closest encloser"); return sec_status_bogus; } return sec_status_secure; @@ -1019,8 +1113,8 @@ nsec3_ce_wildcard(struct regional* region, uint8_t* ce, size_t celen, /** Do the name error proof */ static enum sec_status -nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, struct query_info* qinfo) +nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, + struct nsec3_cache_table* ct, struct query_info* qinfo, int* calc) { struct ce_response ce; uint8_t* wc; @@ -1032,11 +1126,15 @@ nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, /* First locate and prove the closest encloser to qname. We will * use the variant that fails if the closest encloser turns out * to be qname. */ - sec = nsec3_prove_closest_encloser(env, flt, ct, qinfo, 1, &ce); + sec = nsec3_prove_closest_encloser(env, flt, ct, qinfo, 1, &ce, calc); if(sec != sec_status_secure) { if(sec == sec_status_bogus) verbose(VERB_ALGO, "nsec3 nameerror proof: failed " "to prove a closest encloser"); + else if(sec == sec_status_unchecked) + verbose(VERB_ALGO, "nsec3 nameerror proof: will " + "continue proving closest encloser after " + "suspend"); else verbose(VERB_ALGO, "nsec3 nameerror proof: closest " "nsec3 is an insecure delegation"); return sec; @@ -1046,9 +1144,27 @@ nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, /* At this point, we know that qname does not exist. Now we need * to prove that the wildcard does not exist. */ log_assert(ce.ce); - wc = nsec3_ce_wildcard(env->scratch, ce.ce, ce.ce_len, &wclen); - if(!wc || !find_covering_nsec3(env, flt, ct, wc, wclen, - &wc_rrset, &wc_rr)) { + wc = nsec3_ce_wildcard(ct->region, ce.ce, ce.ce_len, &wclen); + if(!wc) { + verbose(VERB_ALGO, "nsec3 nameerror proof: could not prove " + "that the applicable wildcard did not exist."); + return sec_status_bogus; + } + if(!find_covering_nsec3(env, flt, ct, wc, wclen, &wc_rrset, &wc_rr, calc)) { + if(*calc == MAX_NSEC3_ERRORS) { + verbose(VERB_ALGO, "nsec3 nameerror proof: could not prove " + "that the applicable wildcard did not exist; " + "all attempted hash calculations were " + "erroneous; bogus"); + return sec_status_bogus; + } else if(*calc >= MAX_NSEC3_CALCULATIONS) { + verbose(VERB_ALGO, "nsec3 nameerror proof: could not prove " + "that the applicable wildcard did not exist; " + "reached MAX_NSEC3_CALCULATIONS (%d); " + "unchecked still", + MAX_NSEC3_CALCULATIONS); + return sec_status_unchecked; + } verbose(VERB_ALGO, "nsec3 nameerror proof: could not prove " "that the applicable wildcard did not exist."); return sec_status_bogus; @@ -1064,14 +1180,13 @@ nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, enum sec_status nsec3_prove_nameerror(struct module_env* env, struct val_env* ve, struct ub_packed_rrset_key** list, size_t num, - struct query_info* qinfo, struct key_entry_key* kkey) + struct query_info* qinfo, struct key_entry_key* kkey, + struct nsec3_cache_table* ct, int* calc) { - rbtree_type ct; struct nsec3_filter flt; if(!list || num == 0 || !kkey || !key_entry_isgood(kkey)) return sec_status_bogus; /* no valid NSEC3s, bogus */ - rbtree_init(&ct, &nsec3_hash_cmp); /* init names-to-hash cache */ filter_init(&flt, list, num, qinfo); /* init RR iterator */ if(!flt.zone) return sec_status_bogus; /* no RRs */ @@ -1079,7 +1194,7 @@ nsec3_prove_nameerror(struct module_env* env, struct val_env* ve, return sec_status_insecure; /* iteration count too high */ log_nametypeclass(VERB_ALGO, "start nsec3 nameerror proof, zone", flt.zone, 0, 0); - return nsec3_do_prove_nameerror(env, &flt, &ct, qinfo); + return nsec3_do_prove_nameerror(env, &flt, ct, qinfo, calc); } /* @@ -1089,8 +1204,9 @@ nsec3_prove_nameerror(struct module_env* env, struct val_env* ve, /** Do the nodata proof */ static enum sec_status -nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, struct query_info* qinfo) +nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, + struct nsec3_cache_table* ct, struct query_info* qinfo, + int* calc) { struct ce_response ce; uint8_t* wc; @@ -1100,7 +1216,7 @@ nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, enum sec_status sec; if(find_matching_nsec3(env, flt, ct, qinfo->qname, qinfo->qname_len, - &rrset, &rr)) { + &rrset, &rr, calc)) { /* cases 1 and 2 */ if(nsec3_has_type(rrset, rr, qinfo->qtype)) { verbose(VERB_ALGO, "proveNodata: Matching NSEC3 " @@ -1144,11 +1260,23 @@ nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, } return sec_status_secure; } + if(*calc == MAX_NSEC3_ERRORS) { + verbose(VERB_ALGO, "proveNodata: all attempted hash " + "calculations were erroneous while finding a matching " + "NSEC3, bogus"); + return sec_status_bogus; + } else if(*calc >= MAX_NSEC3_CALCULATIONS) { + verbose(VERB_ALGO, "proveNodata: reached " + "MAX_NSEC3_CALCULATIONS (%d) while finding a " + "matching NSEC3; unchecked still", *** 1722 LINES SKIPPED *** From nobody Sat Feb 17 13:48: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 4TcVWK5mjmz5B26n; Sat, 17 Feb 2024 13:48: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcVWK2Szbz4QNS; Sat, 17 Feb 2024 13:48:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708177709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mfQ8LgzI2Jx3FHhAH8/ZAQh0UfeCOXcqXUoYCGrHfyo=; b=jYkn39l+5YE8vMECnzlj7sr7Xs9LfzFDLcByy49PzV06TuSDo/1Ezrb24VXauVoPuEwsVm SinredFl1UlD665Ruu36JZJWzzTFjQJL9TYDvlGp9ZQu9jqf17zxguNjYT4F7x8OAuGTT5 x6UN0HEb4Yxr4WP2ztqkaqjeOmCOM64d3aW3Vwv5xESviSPJ9v6FG3268z3Ov3JVRuEIA4 D+Z6A+P4Z2YfQqPUPyzltRkbhy72E/JMxXVf/ga4wiILEkBmACvAu+KgJR3U+baLxga0sA SynmE1TYjkVD2KdNxIttG0FkdGRMICmmvtt8kbEMO4jC9OcdH46uhxOL83Jt8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708177709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mfQ8LgzI2Jx3FHhAH8/ZAQh0UfeCOXcqXUoYCGrHfyo=; b=wJ2mGJcgjtr8xe7/OfDykSjZlC/2pUdYYPyK+MgCd3HTQqj4LcMTvnD+FdI+tS8NW/GJFz CPkTRskKxyBUxqdYvEjaASVB16ltNKOw7hAD0VkACbacWvw00oxbCnZMES+m2mzJ/gPjBU HbpkjNX6wbm4ze1SkwXo5pQW+0Sf9loPrGocNMyu1iVini5j3yoZzppLlCFfRsVYRMlyUK tOoKPJs0kGbT3ZdkTU2bj0RO7tEMHX5nxX7mUc4dhHY1AyWAoEoRpGGmEBGV5rpP6Cg82J 8PZrkxjtbMPXeX76QExP6rVnMnh2dq1RTIubjZ1wHX65sS1UUT2ucCXM4FFlKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708177709; a=rsa-sha256; cv=none; b=NW65deukS7ekAWwZKFAmWJ5hzjSa85u/GrMiYsEBB/UYet4p6y94U1KxPIebX+2fJJ5+8b leaFLFRqHvkBYAJma09n6bVo7g5Ho7a6D8D6IDvU3v7vG8yqmxoMFbpCtj/Flu5SmUyHLg VtfWclE4d+lKWWZGLZ5q85DG/mP9g5XnZB2sXhI2FBn6GeVuwaBjPk1TyK9NdtkPwGtWkM 8Cp8Fkw3tFPKYtJ4lZ99hQ3e1K9UcgTCf81Zs0kyaLVXA8JVsgcfYJdei3ZxzD4+V6y3Xf 9Ti9C+PcWgfA3qqC3CKjv9h4Xn0A3Z0dFfg9YPHaFWpOeJSCdHnKDKZewvibpQ== 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 4TcVWK1Wcqz19Cs; Sat, 17 Feb 2024 13:48:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HDmT32029299; Sat, 17 Feb 2024 13:48:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HDmT47029296; Sat, 17 Feb 2024 13:48:29 GMT (envelope-from git) Date: Sat, 17 Feb 2024 13:48:29 GMT Message-Id: <202402171348.41HDmT47029296@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Cy Schubert Subject: git: abe4ced2b9de - stable/13 - unbound: Vendor import 1.19.1 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: abe4ced2b9de0a3dd44d7e2068cfd7fa2b428c16 Auto-Submitted: auto-generated The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=abe4ced2b9de0a3dd44d7e2068cfd7fa2b428c16 commit abe4ced2b9de0a3dd44d7e2068cfd7fa2b428c16 Author: Cy Schubert AuthorDate: 2023-11-13 19:44:16 +0000 Commit: Cy Schubert CommitDate: 2024-02-17 13:47:29 +0000 unbound: Vendor import 1.19.1 Release notes at https://www.nlnetlabs.nl/news/2024/Feb/13/unbound-1.19.1-released/ Security: CVE-2023-50387, CVE-2023-50868 MFC after: 3 days (cherry picked from commit b76ef9a7cb8a7c62d10ae8101f41014f34819174) --- contrib/unbound/config.guess | 11 +- contrib/unbound/config.sub | 29 +- contrib/unbound/configure | 25 +- contrib/unbound/configure.ac | 5 +- contrib/unbound/doc/README | 2 +- contrib/unbound/doc/example.conf.in | 2 +- contrib/unbound/doc/libunbound.3.in | 4 +- contrib/unbound/doc/unbound-anchor.8.in | 2 +- contrib/unbound/doc/unbound-checkconf.8.in | 2 +- contrib/unbound/doc/unbound-control.8.in | 2 +- contrib/unbound/doc/unbound-host.1.in | 2 +- contrib/unbound/doc/unbound.8.in | 4 +- contrib/unbound/doc/unbound.conf.5.in | 2 +- contrib/unbound/services/authzone.c | 3 +- contrib/unbound/services/cache/dns.c | 22 ++ contrib/unbound/services/cache/dns.h | 9 + contrib/unbound/testdata/val_any_negcache.rpl | 3 + contrib/unbound/util/fptr_wlist.c | 1 + contrib/unbound/validator/val_nsec.c | 3 +- contrib/unbound/validator/val_nsec3.c | 316 ++++++++++++---- contrib/unbound/validator/val_nsec3.h | 60 +++- contrib/unbound/validator/val_sigcrypt.c | 37 +- contrib/unbound/validator/val_sigcrypt.h | 3 +- contrib/unbound/validator/val_utils.c | 22 +- contrib/unbound/validator/val_utils.h | 4 +- contrib/unbound/validator/validator.c | 499 ++++++++++++++++++++++---- contrib/unbound/validator/validator.h | 18 + usr.sbin/unbound/config.h | 4 +- 28 files changed, 889 insertions(+), 207 deletions(-) diff --git a/contrib/unbound/config.guess b/contrib/unbound/config.guess index cdfc4392047c..f6d217a49f8f 100755 --- a/contrib/unbound/config.guess +++ b/contrib/unbound/config.guess @@ -1,10 +1,10 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2023 Free Software Foundation, Inc. +# Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2023-08-22' +timestamp='2024-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -60,7 +60,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2023 Free Software Foundation, Inc. +Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -165,6 +165,8 @@ Linux|GNU|GNU/*) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu + #elif defined(__LLVM_LIBC__) + LIBC=llvm #else #include /* First heuristic to detect musl libc. */ @@ -1593,6 +1595,9 @@ EOF *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; + *:Ironclad:*:*) + GUESS=$UNAME_MACHINE-unknown-ironclad + ;; esac # Do we have a guess based on uname results? diff --git a/contrib/unbound/config.sub b/contrib/unbound/config.sub index defe52c0c874..2c6a07ab3c34 100755 --- a/contrib/unbound/config.sub +++ b/contrib/unbound/config.sub @@ -1,10 +1,10 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2023 Free Software Foundation, Inc. +# Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2023-09-19' +timestamp='2024-01-01' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -76,7 +76,7 @@ Report bugs and patches to ." version="\ GNU config.sub ($timestamp) -Copyright 1992-2023 Free Software Foundation, Inc. +Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -1222,6 +1222,7 @@ case $cpu-$vendor in | moxie \ | mt \ | msp430 \ + | nanomips* \ | nds32 | nds32le | nds32be \ | nfp \ | nios | nios2 | nios2eb | nios2el \ @@ -1253,6 +1254,7 @@ case $cpu-$vendor in | ubicom32 \ | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | vax \ + | vc4 \ | visium \ | w65 \ | wasm32 | wasm64 \ @@ -1597,7 +1599,7 @@ case $cpu-$vendor in os= obj=elf ;; - mips*-*) + mips*-*|nanomips*-*) os= obj=elf ;; @@ -1721,7 +1723,7 @@ fi case $os in # Sometimes we do "kernel-libc", so those need to count as OSes. - musl* | newlib* | relibc* | uclibc*) + llvm* | musl* | newlib* | relibc* | uclibc*) ;; # Likewise for "kernel-abi" eabi* | gnueabi*) @@ -1766,12 +1768,19 @@ case $os in | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ - | fiwix* | mlibc* | cos* | mbr* ) + | fiwix* | mlibc* | cos* | mbr* | ironclad* ) ;; # This one is extra strict with allowed versions sco3.2v2 | sco3.2v[4-9]* | sco5v6*) # Don't forget version if it is 3.2v4 or newer. ;; + # This refers to builds using the UEFI calling convention + # (which depends on the architecture) and PE file format. + # Note that this is both a different calling convention and + # different file format than that of GNU-EFI + # (x86_64-w64-mingw32). + uefi) + ;; none) ;; kernel* | msvc* ) @@ -1818,8 +1827,9 @@ esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os-$obj in - linux-gnu*- | linux-dietlibc*- | linux-android*- | linux-newlib*- \ - | linux-musl*- | linux-relibc*- | linux-uclibc*- | linux-mlibc*- ) + linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ + | linux-mlibc*- | linux-musl*- | linux-newlib*- \ + | linux-relibc*- | linux-uclibc*- ) ;; uclinux-uclibc*- ) ;; @@ -1827,7 +1837,8 @@ case $kernel-$os-$obj in ;; windows*-msvc*-) ;; - -dietlibc*- | -newlib*- | -musl*- | -relibc*- | -uclibc*- | -mlibc*- ) + -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ + | -uclibc*- ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 diff --git a/contrib/unbound/configure b/contrib/unbound/configure index fbe6f8697742..c87c669c8435 100755 --- a/contrib/unbound/configure +++ b/contrib/unbound/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for unbound 1.19.0. +# Generated by GNU Autoconf 2.69 for unbound 1.19.1. # # Report bugs to . # @@ -591,8 +591,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='unbound' PACKAGE_TARNAME='unbound' -PACKAGE_VERSION='1.19.0' -PACKAGE_STRING='unbound 1.19.0' +PACKAGE_VERSION='1.19.1' +PACKAGE_STRING='unbound 1.19.1' PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues' PACKAGE_URL='' @@ -1477,7 +1477,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures unbound 1.19.0 to adapt to many kinds of systems. +\`configure' configures unbound 1.19.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1543,7 +1543,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of unbound 1.19.0:";; + short | recursive ) echo "Configuration of unbound 1.19.1:";; esac cat <<\_ACEOF @@ -1785,7 +1785,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -unbound configure 1.19.0 +unbound configure 1.19.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2494,7 +2494,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by unbound $as_me 1.19.0, which was +It was created by unbound $as_me 1.19.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2846,11 +2846,11 @@ UNBOUND_VERSION_MAJOR=1 UNBOUND_VERSION_MINOR=19 -UNBOUND_VERSION_MICRO=0 +UNBOUND_VERSION_MICRO=1 LIBUNBOUND_CURRENT=9 -LIBUNBOUND_REVISION=23 +LIBUNBOUND_REVISION=24 LIBUNBOUND_AGE=1 # 1.0.0 had 0:12:0 # 1.0.1 had 0:13:0 @@ -2941,6 +2941,7 @@ LIBUNBOUND_AGE=1 # 1.17.1 had 9:21:1 # 1.18.0 had 9:22:1 # 1.19.0 had 9:23:1 +# 1.19.1 had 9:24:1 # Current -- the number of the binary API that we're implementing # Revision -- which iteration of the implementation of the binary @@ -21894,7 +21895,7 @@ _ACEOF -version=1.19.0 +version=1.19.1 date=`date +'%b %e, %Y'` @@ -22413,7 +22414,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by unbound $as_me 1.19.0, which was +This file was extended by unbound $as_me 1.19.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -22479,7 +22480,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -unbound config.status 1.19.0 +unbound config.status 1.19.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/contrib/unbound/configure.ac b/contrib/unbound/configure.ac index 1b999596d09a..70fc7e7fdf49 100644 --- a/contrib/unbound/configure.ac +++ b/contrib/unbound/configure.ac @@ -11,14 +11,14 @@ sinclude(dnscrypt/dnscrypt.m4) # must be numbers. ac_defun because of later processing m4_define([VERSION_MAJOR],[1]) m4_define([VERSION_MINOR],[19]) -m4_define([VERSION_MICRO],[0]) +m4_define([VERSION_MICRO],[1]) AC_INIT([unbound],m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]),[unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues],[unbound]) AC_SUBST(UNBOUND_VERSION_MAJOR, [VERSION_MAJOR]) AC_SUBST(UNBOUND_VERSION_MINOR, [VERSION_MINOR]) AC_SUBST(UNBOUND_VERSION_MICRO, [VERSION_MICRO]) LIBUNBOUND_CURRENT=9 -LIBUNBOUND_REVISION=23 +LIBUNBOUND_REVISION=24 LIBUNBOUND_AGE=1 # 1.0.0 had 0:12:0 # 1.0.1 had 0:13:0 @@ -109,6 +109,7 @@ LIBUNBOUND_AGE=1 # 1.17.1 had 9:21:1 # 1.18.0 had 9:22:1 # 1.19.0 had 9:23:1 +# 1.19.1 had 9:24:1 # Current -- the number of the binary API that we're implementing # Revision -- which iteration of the implementation of the binary diff --git a/contrib/unbound/doc/README b/contrib/unbound/doc/README index 592a9f4ae8d2..eef91ce02836 100644 --- a/contrib/unbound/doc/README +++ b/contrib/unbound/doc/README @@ -1,4 +1,4 @@ -README for Unbound 1.19.0 +README for Unbound 1.19.1 Copyright 2007 NLnet Labs http://unbound.net diff --git a/contrib/unbound/doc/example.conf.in b/contrib/unbound/doc/example.conf.in index fe0dde69fa19..fcfb1da815db 100644 --- a/contrib/unbound/doc/example.conf.in +++ b/contrib/unbound/doc/example.conf.in @@ -1,7 +1,7 @@ # # Example configuration file. # -# See unbound.conf(5) man page, version 1.19.0. +# See unbound.conf(5) man page, version 1.19.1. # # this is a comment. diff --git a/contrib/unbound/doc/libunbound.3.in b/contrib/unbound/doc/libunbound.3.in index fa090d58186f..4a55eaa9e2ca 100644 --- a/contrib/unbound/doc/libunbound.3.in +++ b/contrib/unbound/doc/libunbound.3.in @@ -1,4 +1,4 @@ -.TH "libunbound" "3" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "libunbound" "3" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" libunbound.3 -- unbound library functions manual .\" @@ -44,7 +44,7 @@ .B ub_ctx_zone_remove, .B ub_ctx_data_add, .B ub_ctx_data_remove -\- Unbound DNS validating resolver 1.19.0 functions. +\- Unbound DNS validating resolver 1.19.1 functions. .SH "SYNOPSIS" .B #include .LP diff --git a/contrib/unbound/doc/unbound-anchor.8.in b/contrib/unbound/doc/unbound-anchor.8.in index a108db9faa72..fee56e9dfa51 100644 --- a/contrib/unbound/doc/unbound-anchor.8.in +++ b/contrib/unbound/doc/unbound-anchor.8.in @@ -1,4 +1,4 @@ -.TH "unbound-anchor" "8" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound-anchor" "8" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound-anchor.8 -- unbound anchor maintenance utility manual .\" diff --git a/contrib/unbound/doc/unbound-checkconf.8.in b/contrib/unbound/doc/unbound-checkconf.8.in index b80c723cd3f0..9a14ef06bc3d 100644 --- a/contrib/unbound/doc/unbound-checkconf.8.in +++ b/contrib/unbound/doc/unbound-checkconf.8.in @@ -1,4 +1,4 @@ -.TH "unbound-checkconf" "8" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound-checkconf" "8" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound-checkconf.8 -- unbound configuration checker manual .\" diff --git a/contrib/unbound/doc/unbound-control.8.in b/contrib/unbound/doc/unbound-control.8.in index 44e73c93dfd5..e747ec47e25a 100644 --- a/contrib/unbound/doc/unbound-control.8.in +++ b/contrib/unbound/doc/unbound-control.8.in @@ -1,4 +1,4 @@ -.TH "unbound-control" "8" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound-control" "8" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound-control.8 -- unbound remote control manual .\" diff --git a/contrib/unbound/doc/unbound-host.1.in b/contrib/unbound/doc/unbound-host.1.in index 36f22ee9b6d1..9c9e9e2bf4a0 100644 --- a/contrib/unbound/doc/unbound-host.1.in +++ b/contrib/unbound/doc/unbound-host.1.in @@ -1,4 +1,4 @@ -.TH "unbound\-host" "1" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound\-host" "1" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound-host.1 -- unbound DNS lookup utility .\" diff --git a/contrib/unbound/doc/unbound.8.in b/contrib/unbound/doc/unbound.8.in index 3d56b7bfa190..4967a22d328c 100644 --- a/contrib/unbound/doc/unbound.8.in +++ b/contrib/unbound/doc/unbound.8.in @@ -1,4 +1,4 @@ -.TH "unbound" "8" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound" "8" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound.8 -- unbound manual .\" @@ -9,7 +9,7 @@ .\" .SH "NAME" .B unbound -\- Unbound DNS validating resolver 1.19.0. +\- Unbound DNS validating resolver 1.19.1. .SH "SYNOPSIS" .B unbound .RB [ \-h ] diff --git a/contrib/unbound/doc/unbound.conf.5.in b/contrib/unbound/doc/unbound.conf.5.in index ac8fa7953f3c..79ca04904c96 100644 --- a/contrib/unbound/doc/unbound.conf.5.in +++ b/contrib/unbound/doc/unbound.conf.5.in @@ -1,4 +1,4 @@ -.TH "unbound.conf" "5" "Nov 8, 2023" "NLnet Labs" "unbound 1.19.0" +.TH "unbound.conf" "5" "Feb 13, 2024" "NLnet Labs" "unbound 1.19.1" .\" .\" unbound.conf.5 -- unbound.conf manual .\" diff --git a/contrib/unbound/services/authzone.c b/contrib/unbound/services/authzone.c index 87844870a25a..761bcc6d9a75 100644 --- a/contrib/unbound/services/authzone.c +++ b/contrib/unbound/services/authzone.c @@ -7774,6 +7774,7 @@ static int zonemd_dnssec_verify_rrset(struct auth_zone* z, enum sec_status sec; struct val_env* ve; int m; + int verified = 0; m = modstack_find(mods, "validator"); if(m == -1) { auth_zone_log(z->name, VERB_ALGO, "zonemd dnssec verify: have " @@ -7797,7 +7798,7 @@ static int zonemd_dnssec_verify_rrset(struct auth_zone* z, "zonemd: verify %s RRset with DNSKEY", typestr); } sec = dnskeyset_verify_rrset(env, ve, &pk, dnskey, sigalg, why_bogus, NULL, - LDNS_SECTION_ANSWER, NULL); + LDNS_SECTION_ANSWER, NULL, &verified); if(sec == sec_status_secure) { return 1; } diff --git a/contrib/unbound/services/cache/dns.c b/contrib/unbound/services/cache/dns.c index 9b4ad5888721..7bc1b7b47bf1 100644 --- a/contrib/unbound/services/cache/dns.c +++ b/contrib/unbound/services/cache/dns.c @@ -690,6 +690,28 @@ tomsg(struct module_env* env, struct query_info* q, struct reply_info* r, return msg; } +struct dns_msg* +dns_msg_deepcopy_region(struct dns_msg* origin, struct regional* region) +{ + size_t i; + struct dns_msg* res = NULL; + res = gen_dns_msg(region, &origin->qinfo, origin->rep->rrset_count); + if(!res) return NULL; + *res->rep = *origin->rep; + if(origin->rep->reason_bogus_str) { + res->rep->reason_bogus_str = regional_strdup(region, + origin->rep->reason_bogus_str); + } + for(i=0; irep->rrset_count; i++) { + res->rep->rrsets[i] = packed_rrset_copy_region( + origin->rep->rrsets[i], region, 0); + if(!res->rep->rrsets[i]) { + return NULL; + } + } + return res; +} + /** synthesize RRset-only response from cached RRset item */ static struct dns_msg* rrset_msg(struct ub_packed_rrset_key* rrset, struct regional* region, diff --git a/contrib/unbound/services/cache/dns.h b/contrib/unbound/services/cache/dns.h index 147f992cbc74..c2bf23c6de54 100644 --- a/contrib/unbound/services/cache/dns.h +++ b/contrib/unbound/services/cache/dns.h @@ -164,6 +164,15 @@ struct dns_msg* tomsg(struct module_env* env, struct query_info* q, struct reply_info* r, struct regional* region, time_t now, int allow_expired, struct regional* scratch); +/** + * Deep copy a dns_msg to a region. + * @param origin: the dns_msg to copy. + * @param region: the region to copy all the data to. + * @return the new dns_msg or NULL on malloc error. + */ +struct dns_msg* dns_msg_deepcopy_region(struct dns_msg* origin, + struct regional* region); + /** * Find cached message * @param env: module environment with the DNS cache. diff --git a/contrib/unbound/testdata/val_any_negcache.rpl b/contrib/unbound/testdata/val_any_negcache.rpl index 77aacba8cc13..8800a2140219 100644 --- a/contrib/unbound/testdata/val_any_negcache.rpl +++ b/contrib/unbound/testdata/val_any_negcache.rpl @@ -199,6 +199,9 @@ SECTION QUESTION example.com. IN ANY ENTRY_END +; Allow validation resuming for the RRSIGs +STEP 21 TIME_PASSES ELAPSE 0.05 + ; recursion happens here. STEP 30 CHECK_ANSWER ENTRY_BEGIN diff --git a/contrib/unbound/util/fptr_wlist.c b/contrib/unbound/util/fptr_wlist.c index 43d38dc3797d..a792a3429549 100644 --- a/contrib/unbound/util/fptr_wlist.c +++ b/contrib/unbound/util/fptr_wlist.c @@ -131,6 +131,7 @@ fptr_whitelist_comm_timer(void (*fptr)(void*)) else if(fptr == &pending_udp_timer_delay_cb) return 1; else if(fptr == &worker_stat_timer_cb) return 1; else if(fptr == &worker_probe_timer_cb) return 1; + else if(fptr == &validate_suspend_timer_cb) return 1; #ifdef UB_ON_WINDOWS else if(fptr == &wsvc_cron_cb) return 1; #endif diff --git a/contrib/unbound/validator/val_nsec.c b/contrib/unbound/validator/val_nsec.c index 17c90d83f594..d0cc67ff5d0b 100644 --- a/contrib/unbound/validator/val_nsec.c +++ b/contrib/unbound/validator/val_nsec.c @@ -181,6 +181,7 @@ nsec_verify_rrset(struct module_env* env, struct val_env* ve, { struct packed_rrset_data* d = (struct packed_rrset_data*) nsec->entry.data; + int verified = 0; if(!d) return 0; if(d->security == sec_status_secure) return 1; @@ -188,7 +189,7 @@ nsec_verify_rrset(struct module_env* env, struct val_env* ve, if(d->security == sec_status_secure) return 1; d->security = val_verify_rrset_entry(env, ve, nsec, kkey, reason, - reason_bogus, LDNS_SECTION_AUTHORITY, qstate); + reason_bogus, LDNS_SECTION_AUTHORITY, qstate, &verified); if(d->security == sec_status_secure) { rrset_update_sec_status(env->rrset_cache, nsec, *env->now); return 1; diff --git a/contrib/unbound/validator/val_nsec3.c b/contrib/unbound/validator/val_nsec3.c index a2b3794f6019..95d1e4d7e4fe 100644 --- a/contrib/unbound/validator/val_nsec3.c +++ b/contrib/unbound/validator/val_nsec3.c @@ -57,6 +57,19 @@ /* we include nsec.h for the bitmap_has_type function */ #include "validator/val_nsec.h" #include "sldns/sbuffer.h" +#include "util/config_file.h" + +/** + * Max number of NSEC3 calculations at once, suspend query for later. + * 8 is low enough and allows for cases where multiple proofs are needed. + */ +#define MAX_NSEC3_CALCULATIONS 8 +/** + * When all allowed NSEC3 calculations at once resulted in error treat as + * bogus. NSEC3 hash errors are not cached and this helps breaks loops with + * erroneous data. + */ +#define MAX_NSEC3_ERRORS -1 /** * This function we get from ldns-compat or from base system @@ -532,6 +545,17 @@ nsec3_hash_cmp(const void* c1, const void* c2) return memcmp(s1, s2, s1len); } +int +nsec3_cache_table_init(struct nsec3_cache_table* ct, struct regional* region) +{ + if(ct->ct) return 1; + ct->ct = (rbtree_type*)regional_alloc(region, sizeof(*ct->ct)); + if(!ct->ct) return 0; + ct->region = region; + rbtree_init(ct->ct, &nsec3_hash_cmp); + return 1; +} + size_t nsec3_get_hashed(sldns_buffer* buf, uint8_t* nm, size_t nmlen, int algo, size_t iter, uint8_t* salt, size_t saltlen, uint8_t* res, size_t max) @@ -646,7 +670,7 @@ nsec3_hash_name(rbtree_type* table, struct regional* region, sldns_buffer* buf, c = (struct nsec3_cached_hash*)rbtree_search(table, &looki); if(c) { *hash = c; - return 1; + return 2; } /* create a new entry */ c = (struct nsec3_cached_hash*)regional_alloc(region, sizeof(*c)); @@ -658,10 +682,10 @@ nsec3_hash_name(rbtree_type* table, struct regional* region, sldns_buffer* buf, c->dname_len = dname_len; r = nsec3_calc_hash(region, buf, c); if(r != 1) - return r; + return r; /* returns -1 or 0 */ r = nsec3_calc_b32(region, buf, c); if(r != 1) - return r; + return r; /* returns 0 */ #ifdef UNBOUND_DEBUG n = #else @@ -704,6 +728,7 @@ nsec3_hash_matches_owner(struct nsec3_filter* flt, struct nsec3_cached_hash* hash, struct ub_packed_rrset_key* s) { uint8_t* nm = s->rk.dname; + if(!hash) return 0; /* please clang */ /* compare, does hash of name based on params in this NSEC3 * match the owner name of this NSEC3? * name must be: base32 . zone name @@ -730,34 +755,50 @@ nsec3_hash_matches_owner(struct nsec3_filter* flt, * @param nmlen: length of name. * @param rrset: nsec3 that matches is returned here. * @param rr: rr number in nsec3 rrset that matches. + * @param calculations: current hash calculations. * @return true if a matching NSEC3 is found, false if not. */ static int find_matching_nsec3(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, uint8_t* nm, size_t nmlen, - struct ub_packed_rrset_key** rrset, int* rr) + struct nsec3_cache_table* ct, uint8_t* nm, size_t nmlen, + struct ub_packed_rrset_key** rrset, int* rr, + int* calculations) { size_t i_rs; int i_rr; struct ub_packed_rrset_key* s; struct nsec3_cached_hash* hash = NULL; int r; + int calc_errors = 0; /* this loop skips other-zone and unknown NSEC3s, also non-NSEC3 RRs */ for(s=filter_first(flt, &i_rs, &i_rr); s; s=filter_next(flt, &i_rs, &i_rr)) { + /* check if we are allowed more calculations */ + if(*calculations >= MAX_NSEC3_CALCULATIONS) { + if(calc_errors == *calculations) { + *calculations = MAX_NSEC3_ERRORS; + } + break; + } /* get name hashed for this NSEC3 RR */ - r = nsec3_hash_name(ct, env->scratch, env->scratch_buffer, + r = nsec3_hash_name(ct->ct, ct->region, env->scratch_buffer, s, i_rr, nm, nmlen, &hash); if(r == 0) { log_err("nsec3: malloc failure"); break; /* alloc failure */ - } else if(r != 1) - continue; /* malformed NSEC3 */ - else if(nsec3_hash_matches_owner(flt, hash, s)) { - *rrset = s; /* rrset with this name */ - *rr = i_rr; /* matches hash with these parameters */ - return 1; + } else if(r < 0) { + /* malformed NSEC3 */ + calc_errors++; + (*calculations)++; + continue; + } else { + if(r == 1) (*calculations)++; + if(nsec3_hash_matches_owner(flt, hash, s)) { + *rrset = s; /* rrset with this name */ + *rr = i_rr; /* matches hash with these parameters */ + return 1; + } } } *rrset = NULL; @@ -775,6 +816,7 @@ nsec3_covers(uint8_t* zone, struct nsec3_cached_hash* hash, if(!nsec3_get_nextowner(rrset, rr, &next, &nextlen)) return 0; /* malformed RR proves nothing */ + if(!hash) return 0; /* please clang */ /* check the owner name is a hashed value . apex * base32 encoded values must have equal length. * hash_value and next hash value must have equal length. */ @@ -823,35 +865,51 @@ nsec3_covers(uint8_t* zone, struct nsec3_cached_hash* hash, * @param nmlen: length of name. * @param rrset: covering NSEC3 rrset is returned here. * @param rr: rr of cover is returned here. + * @param calculations: current hash calculations. * @return true if a covering NSEC3 is found, false if not. */ static int find_covering_nsec3(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, uint8_t* nm, size_t nmlen, - struct ub_packed_rrset_key** rrset, int* rr) + struct nsec3_cache_table* ct, uint8_t* nm, size_t nmlen, + struct ub_packed_rrset_key** rrset, int* rr, + int* calculations) { size_t i_rs; int i_rr; struct ub_packed_rrset_key* s; struct nsec3_cached_hash* hash = NULL; int r; + int calc_errors = 0; /* this loop skips other-zone and unknown NSEC3s, also non-NSEC3 RRs */ for(s=filter_first(flt, &i_rs, &i_rr); s; s=filter_next(flt, &i_rs, &i_rr)) { + /* check if we are allowed more calculations */ + if(*calculations >= MAX_NSEC3_CALCULATIONS) { + if(calc_errors == *calculations) { + *calculations = MAX_NSEC3_ERRORS; + } + break; + } /* get name hashed for this NSEC3 RR */ - r = nsec3_hash_name(ct, env->scratch, env->scratch_buffer, + r = nsec3_hash_name(ct->ct, ct->region, env->scratch_buffer, s, i_rr, nm, nmlen, &hash); if(r == 0) { log_err("nsec3: malloc failure"); break; /* alloc failure */ - } else if(r != 1) - continue; /* malformed NSEC3 */ - else if(nsec3_covers(flt->zone, hash, s, i_rr, - env->scratch_buffer)) { - *rrset = s; /* rrset with this name */ - *rr = i_rr; /* covers hash with these parameters */ - return 1; + } else if(r < 0) { + /* malformed NSEC3 */ + calc_errors++; + (*calculations)++; + continue; + } else { + if(r == 1) (*calculations)++; + if(nsec3_covers(flt->zone, hash, s, i_rr, + env->scratch_buffer)) { + *rrset = s; /* rrset with this name */ + *rr = i_rr; /* covers hash with these parameters */ + return 1; + } } } *rrset = NULL; @@ -869,11 +927,13 @@ find_covering_nsec3(struct module_env* env, struct nsec3_filter* flt, * @param ct: cached hashes table. * @param qinfo: query that is verified for. * @param ce: closest encloser information is returned in here. + * @param calculations: current hash calculations. * @return true if a closest encloser candidate is found, false if not. */ static int -nsec3_find_closest_encloser(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, struct query_info* qinfo, struct ce_response* ce) +nsec3_find_closest_encloser(struct module_env* env, struct nsec3_filter* flt, + struct nsec3_cache_table* ct, struct query_info* qinfo, + struct ce_response* ce, int* calculations) { uint8_t* nm = qinfo->qname; size_t nmlen = qinfo->qname_len; @@ -888,8 +948,12 @@ nsec3_find_closest_encloser(struct module_env* env, struct nsec3_filter* flt, * may be the case. */ while(dname_subdomain_c(nm, flt->zone)) { + if(*calculations >= MAX_NSEC3_CALCULATIONS || + *calculations == MAX_NSEC3_ERRORS) { + return 0; + } if(find_matching_nsec3(env, flt, ct, nm, nmlen, - &ce->ce_rrset, &ce->ce_rr)) { + &ce->ce_rrset, &ce->ce_rr, calculations)) { ce->ce = nm; ce->ce_len = nmlen; return 1; @@ -933,22 +997,38 @@ next_closer(uint8_t* qname, size_t qnamelen, uint8_t* ce, * If set true, and the return value is true, then you can be * certain that the ce.nc_rrset and ce.nc_rr are set properly. * @param ce: closest encloser information is returned in here. + * @param calculations: pointer to the current NSEC3 hash calculations. * @return bogus if no closest encloser could be proven. * secure if a closest encloser could be proven, ce is set. * insecure if the closest-encloser candidate turns out to prove * that an insecure delegation exists above the qname. + * unchecked if no more hash calculations are allowed at this point. */ static enum sec_status -nsec3_prove_closest_encloser(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, struct query_info* qinfo, int prove_does_not_exist, - struct ce_response* ce) +nsec3_prove_closest_encloser(struct module_env* env, struct nsec3_filter* flt, + struct nsec3_cache_table* ct, struct query_info* qinfo, + int prove_does_not_exist, struct ce_response* ce, int* calculations) { uint8_t* nc; size_t nc_len; /* robust: clean out ce, in case it gets abused later */ memset(ce, 0, sizeof(*ce)); - if(!nsec3_find_closest_encloser(env, flt, ct, qinfo, ce)) { + if(!nsec3_find_closest_encloser(env, flt, ct, qinfo, ce, calculations)) { + if(*calculations == MAX_NSEC3_ERRORS) { + verbose(VERB_ALGO, "nsec3 proveClosestEncloser: could " + "not find a candidate for the closest " + "encloser; all attempted hash calculations " + "were erroneous; bogus"); + return sec_status_bogus; + } else if(*calculations >= MAX_NSEC3_CALCULATIONS) { + verbose(VERB_ALGO, "nsec3 proveClosestEncloser: could " + "not find a candidate for the closest " + "encloser; reached MAX_NSEC3_CALCULATIONS " + "(%d); unchecked still", + MAX_NSEC3_CALCULATIONS); + return sec_status_unchecked; + } verbose(VERB_ALGO, "nsec3 proveClosestEncloser: could " "not find a candidate for the closest encloser."); return sec_status_bogus; @@ -989,9 +1069,23 @@ nsec3_prove_closest_encloser(struct module_env* env, struct nsec3_filter* flt, /* Otherwise, we need to show that the next closer name is covered. */ next_closer(qinfo->qname, qinfo->qname_len, ce->ce, &nc, &nc_len); if(!find_covering_nsec3(env, flt, ct, nc, nc_len, - &ce->nc_rrset, &ce->nc_rr)) { + &ce->nc_rrset, &ce->nc_rr, calculations)) { + if(*calculations == MAX_NSEC3_ERRORS) { + verbose(VERB_ALGO, "nsec3: Could not find proof that the " + "candidate encloser was the closest encloser; " + "all attempted hash calculations were " + "erroneous; bogus"); + return sec_status_bogus; + } else if(*calculations >= MAX_NSEC3_CALCULATIONS) { + verbose(VERB_ALGO, "nsec3: Could not find proof that the " + "candidate encloser was the closest encloser; " + "reached MAX_NSEC3_CALCULATIONS (%d); " + "unchecked still", + MAX_NSEC3_CALCULATIONS); + return sec_status_unchecked; + } verbose(VERB_ALGO, "nsec3: Could not find proof that the " - "candidate encloser was the closest encloser"); + "candidate encloser was the closest encloser"); return sec_status_bogus; } return sec_status_secure; @@ -1019,8 +1113,8 @@ nsec3_ce_wildcard(struct regional* region, uint8_t* ce, size_t celen, /** Do the name error proof */ static enum sec_status -nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, struct query_info* qinfo) +nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, + struct nsec3_cache_table* ct, struct query_info* qinfo, int* calc) { struct ce_response ce; uint8_t* wc; @@ -1032,11 +1126,15 @@ nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, /* First locate and prove the closest encloser to qname. We will * use the variant that fails if the closest encloser turns out * to be qname. */ - sec = nsec3_prove_closest_encloser(env, flt, ct, qinfo, 1, &ce); + sec = nsec3_prove_closest_encloser(env, flt, ct, qinfo, 1, &ce, calc); if(sec != sec_status_secure) { if(sec == sec_status_bogus) verbose(VERB_ALGO, "nsec3 nameerror proof: failed " "to prove a closest encloser"); + else if(sec == sec_status_unchecked) + verbose(VERB_ALGO, "nsec3 nameerror proof: will " + "continue proving closest encloser after " + "suspend"); else verbose(VERB_ALGO, "nsec3 nameerror proof: closest " "nsec3 is an insecure delegation"); return sec; @@ -1046,9 +1144,27 @@ nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, /* At this point, we know that qname does not exist. Now we need * to prove that the wildcard does not exist. */ log_assert(ce.ce); - wc = nsec3_ce_wildcard(env->scratch, ce.ce, ce.ce_len, &wclen); - if(!wc || !find_covering_nsec3(env, flt, ct, wc, wclen, - &wc_rrset, &wc_rr)) { + wc = nsec3_ce_wildcard(ct->region, ce.ce, ce.ce_len, &wclen); + if(!wc) { + verbose(VERB_ALGO, "nsec3 nameerror proof: could not prove " + "that the applicable wildcard did not exist."); + return sec_status_bogus; + } + if(!find_covering_nsec3(env, flt, ct, wc, wclen, &wc_rrset, &wc_rr, calc)) { + if(*calc == MAX_NSEC3_ERRORS) { + verbose(VERB_ALGO, "nsec3 nameerror proof: could not prove " + "that the applicable wildcard did not exist; " + "all attempted hash calculations were " + "erroneous; bogus"); + return sec_status_bogus; + } else if(*calc >= MAX_NSEC3_CALCULATIONS) { + verbose(VERB_ALGO, "nsec3 nameerror proof: could not prove " + "that the applicable wildcard did not exist; " + "reached MAX_NSEC3_CALCULATIONS (%d); " + "unchecked still", + MAX_NSEC3_CALCULATIONS); + return sec_status_unchecked; + } verbose(VERB_ALGO, "nsec3 nameerror proof: could not prove " "that the applicable wildcard did not exist."); return sec_status_bogus; @@ -1064,14 +1180,13 @@ nsec3_do_prove_nameerror(struct module_env* env, struct nsec3_filter* flt, enum sec_status nsec3_prove_nameerror(struct module_env* env, struct val_env* ve, struct ub_packed_rrset_key** list, size_t num, - struct query_info* qinfo, struct key_entry_key* kkey) + struct query_info* qinfo, struct key_entry_key* kkey, + struct nsec3_cache_table* ct, int* calc) { - rbtree_type ct; struct nsec3_filter flt; if(!list || num == 0 || !kkey || !key_entry_isgood(kkey)) return sec_status_bogus; /* no valid NSEC3s, bogus */ - rbtree_init(&ct, &nsec3_hash_cmp); /* init names-to-hash cache */ filter_init(&flt, list, num, qinfo); /* init RR iterator */ if(!flt.zone) return sec_status_bogus; /* no RRs */ @@ -1079,7 +1194,7 @@ nsec3_prove_nameerror(struct module_env* env, struct val_env* ve, return sec_status_insecure; /* iteration count too high */ log_nametypeclass(VERB_ALGO, "start nsec3 nameerror proof, zone", flt.zone, 0, 0); - return nsec3_do_prove_nameerror(env, &flt, &ct, qinfo); + return nsec3_do_prove_nameerror(env, &flt, ct, qinfo, calc); } /* @@ -1089,8 +1204,9 @@ nsec3_prove_nameerror(struct module_env* env, struct val_env* ve, /** Do the nodata proof */ static enum sec_status -nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, - rbtree_type* ct, struct query_info* qinfo) +nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, + struct nsec3_cache_table* ct, struct query_info* qinfo, + int* calc) { struct ce_response ce; uint8_t* wc; @@ -1100,7 +1216,7 @@ nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, enum sec_status sec; if(find_matching_nsec3(env, flt, ct, qinfo->qname, qinfo->qname_len, - &rrset, &rr)) { + &rrset, &rr, calc)) { /* cases 1 and 2 */ if(nsec3_has_type(rrset, rr, qinfo->qtype)) { verbose(VERB_ALGO, "proveNodata: Matching NSEC3 " @@ -1144,11 +1260,23 @@ nsec3_do_prove_nodata(struct module_env* env, struct nsec3_filter* flt, } return sec_status_secure; } + if(*calc == MAX_NSEC3_ERRORS) { + verbose(VERB_ALGO, "proveNodata: all attempted hash " + "calculations were erroneous while finding a matching " + "NSEC3, bogus"); + return sec_status_bogus; + } else if(*calc >= MAX_NSEC3_CALCULATIONS) { + verbose(VERB_ALGO, "proveNodata: reached " + "MAX_NSEC3_CALCULATIONS (%d) while finding a " *** 1723 LINES SKIPPED *** From nobody Sat Feb 17 15:12: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 4TcXMy6q7Rz5BFYs; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXMy6Ntxz4XxV; Sat, 17 Feb 2024 15:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SeIdYOcqfIG6iIHLejXK+ZQZ7pBbYFvZZLtfrRfheXo=; b=AzaE/XBMYpCKxcx+ROjlPJoNOi2jb3WOe43VPu/xpFaa87C5MTwJnQl2LwQSmnJ+OWt+cO EmjH05lK6vOLu64cGTsIzlFIxjFRhiuU7qnODuTwAJvPdyLys6ksstw0+L9KGr61RXtOEr +Vd7mAb38lKdFbIiltBtT/RRSX/vV0Vd7xzoCefUivlNYewDJI1bHtHjrsrV6fjH8Rdaem VL4r9KHSbHhoyaly7DEKtuWIukknKwqOubebOSv7BNQaxT03EokxxRnaZLOJFQuy6vb9bl KoV2BvIHzQIieVpqYP2eNN4y0UuEPmd6OP4awvTcKvH3VlVq+04QMvC4lmLTMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SeIdYOcqfIG6iIHLejXK+ZQZ7pBbYFvZZLtfrRfheXo=; b=csESPgtycfJOq/IQp8Kr0mgLKCPqGN0r7G/Ic3hMbQ7Ns5Przw5NTccFda2hDsZxSyTes7 UHZFUBVgnWEs24r4Q4pnxL663ZFBWuwErp7EwrTXNeSiyLIWonMRafZq6qi6j9PBnctAIM nYdNvsAhp52ki9826SSd4YYNjkTiXkLDKorg7nXBaZVCTpJYYov99rzNLY4g1dxhoReVWh sGm1X0BBtDf6p3g4Xq3G+NHfKa2FECfEn9/7O2rnrLCVQqQ0+gpSqhuD8q3p63Sr7mJLyR EqQUf+LNQ8HEj4semyVb3NAX0VHxWRGbzp/YAl46gO9Y5PTpusg/Hg+8zm2wow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182734; a=rsa-sha256; cv=none; b=fg2WHL19vSXOqoqwZxgtA5U/gp8nix4+qkmLN8iSoTHzYVZspibHdWk0pVN0/Ms35Voq5B xAjFx9WMrNRD5vwB6ooYtIxY9Sjkqntm5thUrmXlPRtwXy/Z64Kex06Ccm1AN7cea0pNGk wKolEKUZhg3afomSrxBwSFGgC99t9/V0AJCn8hc5AGp0shCgB5fvX9pHwkXy3W4k2G5y7v IIlMlr37MNRLe+Tcm52iq+vgs+1yjaoeuO4y1UX4cOw2n7JjrtBdlAJrGYSYNlhqlN2nBb NC5DiQ0TWMilcjBC9BWI4I6kxoMi7CWF1IqASQeZeKHIT5gT3wMfEi0PomKefA== 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 4TcXMy5S3Jz1CG0; Sat, 17 Feb 2024 15:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCEl8077038; Sat, 17 Feb 2024 15:12:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCEd0077035; Sat, 17 Feb 2024 15:12:14 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:14 GMT Message-Id: <202402171512.41HFCEd0077035@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 1efdba436281 - stable/14 - ds1307: restore hints-based configuration on FDT systems 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1efdba436281337bfd54e941cf60c74492780598 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=1efdba436281337bfd54e941cf60c74492780598 commit 1efdba436281337bfd54e941cf60c74492780598 Author: Andriy Gapon AuthorDate: 2023-05-02 20:46:39 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:10 +0000 ds1307: restore hints-based configuration on FDT systems Fall-through to non-FDT probe code if no matching device node is found. While here, fix indentation of the switch statement. Also, make the device description for the hints-based attachment the same as for FDT attachment. Fixes: 2486b446db ds1307: add support for the EPSON RX-8035SA I2C RTC (cherry picked from commit 34694f3da7f9537c34b1878206c65a8cda16c6c0) --- sys/dev/iicbus/rtc/ds1307.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/dev/iicbus/rtc/ds1307.c b/sys/dev/iicbus/rtc/ds1307.c index e8d24880571c..cc232bae0e94 100644 --- a/sys/dev/iicbus/rtc/ds1307.c +++ b/sys/dev/iicbus/rtc/ds1307.c @@ -225,10 +225,8 @@ ds1307_probe(device_t dev) return (ENXIO); compat = ofw_bus_search_compatible(dev, ds1307_compat_data); - if (compat->ocd_str == NULL) - return (ENXIO); - - switch(compat->ocd_data) { + if (compat->ocd_str != NULL) { + switch(compat->ocd_data) { case TYPE_DS1307: device_set_desc(dev, "Dallas DS1307"); break; @@ -244,11 +242,12 @@ ds1307_probe(device_t dev) default: device_set_desc(dev, "Unknown DS1307-like device"); break; + } + return (BUS_PROBE_DEFAULT); } - return (BUS_PROBE_DEFAULT); #endif - device_set_desc(dev, "Maxim DS1307 RTC"); + device_set_desc(dev, "Maxim DS1307"); return (BUS_PROBE_NOWILDCARD); } From nobody Sat Feb 17 15:12: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 4TcXN01rbqz5BFTl; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN001bBz4XvF; Sat, 17 Feb 2024 15:12:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=174vmQNg0LvFkysB+y1O5fF/G7d8HJjCDJSv78jDM3Y=; b=EJJwTsuUSnsQN0PHgcdt2QPdR+er0+0IuULy9CI//3czOVfM0Ga3z6Idq+aTHc3WptMufx VtnaVfDzy2fGgYMBmfE+Ht3CdsQ6jlY1Xjhgw684aqojHTenLRP4NZyuz0nz45u3aJY45J 3LzL7xlar6DpINJl9x+M7JKmvR8BeGly448HQYf/fbsNr8TQfVuVkJ1DFwcunOKBXfxsuM a3j/UpMHcs+9KtSCG+1XYgROto+oyX/zJ0hcqWiQ8svKvGsB5CsqFW+mkDcSDeAHj6qhil FKri+cfrIR2Z49ZpGz3hPaR1VNJk7w0z6CoEaTDG91/86vHo+H3tNcYd6sgqkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=174vmQNg0LvFkysB+y1O5fF/G7d8HJjCDJSv78jDM3Y=; b=c+LUL9HixbNm0NnVxfulG+o6bNEhlNU3cHTusC3+nCTRiVqueUrBOYCSd2FvCBqndtgc+J eGzZ3cywE9APck9tEL8N+GdTPqIzSM6kKDU8gWdhkWbGidzfDmc0Dn3hvrx5vhj9DCA75n edDh2FMb3U4d41QAsNTW7ycWfD/3pOMxPT7FADn1/BBmdfT8DzV9XAGE7VpOWh9fxlhTVi Pj0YWvnbIYfpRrSHQ7mfcdwAqleH9o0QfsWNKm+vKZMEkejDerW7OkZ0chM6nv2minRckD A2QnenHj5E34VH4YK8o4qQgQUTlyYedgd2V1Nl4GBwUBjs3LCMxTjjVfpQU9yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182736; a=rsa-sha256; cv=none; b=bpm08qzrmr4ToBH+YDNUhWOnDR+FH59K6GZA3/hNPNPeW4OzhwcpWz6voU0QJ0yO2LL+rM DGZxhGOlbPlQde2xcXXhEvgEYX0CdjYsd+drPBYRpD5g6FoQ9EGm0A86h4LHULRNoCrYB9 4BNnFS8Kh037pF1LBx9qdihRhIi8cJ6EbKavITpCElknFq8qOIEGlWE83LzgekYDdIYsjy mhAUWVZ3pVTOlzcuUl/harajl+yBRkFd7dKCj3xs2ntIijOynWr9Csw2ewjbpFPpbCdwTt qoC1gAmTOmccCBnp1YeV9fDchCS+0KruPMIUr7aFquMHsvE83VYEPQHWROEkKg== 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 4TcXMz6CKQz1CD2; Sat, 17 Feb 2024 15:12:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCFgj077083; Sat, 17 Feb 2024 15:12:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCFCc077080; Sat, 17 Feb 2024 15:12:15 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:15 GMT Message-Id: <202402171512.41HFCFCc077080@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 2036512135c9 - stable/14 - usbdevs: add Ralink RT7601 aka MT7601 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 2036512135c921e82c97c956c99b4c750a353c83 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=2036512135c921e82c97c956c99b4c750a353c83 commit 2036512135c921e82c97c956c99b4c750a353c83 Author: Andriy Gapon AuthorDate: 2022-07-10 20:11:56 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:10 +0000 usbdevs: add Ralink RT7601 aka MT7601 This is a popular USB WiFi chip. Unfortunately, it's not supported by FreeBSD yet. (cherry picked from commit 5b54b6ac8ca1bc0653a3b31e79c1bffd9b227c6e) --- sys/dev/usb/usbdevs | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index 221761af4fe7..65dcb06c2f3f 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -4042,6 +4042,7 @@ product RALINK RT3573 0x3573 RT3573 product RALINK RT5370 0x5370 RT5370 product RALINK RT5372 0x5372 RT5372 product RALINK RT5572 0x5572 RT5572 +product RALINK RT7601 0x7601 RT7601 product RALINK RT8070 0x8070 RT8070 product RALINK RT2570_3 0x9020 RT2500USB Wireless Adapter product RALINK RT2573_2 0x9021 RT2501USB Wireless Adapter From nobody Sat Feb 17 15:12: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 4TcXN16ctDz5BFX1; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN116svz4XdJ; Sat, 17 Feb 2024 15:12:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182737; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=y7/er6UhvarUWrZFLDU5avATaNXqZbshK6YuuhOMPbI=; b=Z7rRl/ba0TBjwYUPuYnOY425m7FV5SeauGe9EbmFyuKVyRa+DKdNchMfmMJOxYe8qBTrmU 8XEAR6AY7bGnwJMwy0hvN+9P6uO0xDrZC7Zhmqdo/Yd8C4LOKOwb9/gnIBVg1V+nyt0DOf 4LykepOiTnaUOcVPIf26MIBgrE+h2rfyNjh7fYDB6sbPg42MazrirS9gEA8JYhX8IZnxR9 j3TLSyqxs0yp47cCECHLpullpDzz16flEYXeSJb5A6xZMnWlm8zqFH9NiJltkWLZgbbZAI jwehdl4TjdTO4+jpAWE+mIMQAeN8ReFsP3tpt5HAI5VYWswlPwPYI/Iv91Hd6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182737; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=y7/er6UhvarUWrZFLDU5avATaNXqZbshK6YuuhOMPbI=; b=gO6/U/eedKcL5ay3ao/1ER0AaakeX0Vx/Pad2lSFGU4+7mh04RDDZuRJm++odUOIVhWmLP +xoDjUXvbsbSLmsuxFF3tG8H0l3R/aTVimvMj124BIm340yTtknTxEjxYbXDw/oPsGSGkV AQnZiaTUDTLoSC19bgIpWpsE407ppaqz9PCbDWexa0CZeeK6hAFgGzzoLJsTPgOywY5awM 0ltYzlRRWMFkA8e0WJ6rRZ5LKt5h2jwzNmX3dUFQPizr1MUXjlb7QB9yImWB07dZyZayIh ihDQQ2LW/1VMFaDvk0tL0EoChXqUFQ4/S++vD+FzTQWRYOognX4Vxpwz/+TkQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182737; a=rsa-sha256; cv=none; b=udeDGYy3uKRBKViz5ClQMDpKM+Cjefen19YT+u81xSdw0o1Fbsi9EyF4hoZNCwBEDNv9a2 obAZiK8t8wNUlq2yvl3ERk8SIU3B8KxzGWdoWH3AVadYD9WAsU4utVefwHjCdj4VV78Prd kHdkJxcITxaLpvR9LzJxVvX3Ueac3HK6kX3TbLuQG3dzo6r6Dx6AnAYlFANfFuUxdVeHhn 6D0i18t5VigDPGZHa4l54q7cwCzjwyCEvphBdTY9tgOBTCIEaydXNst0JXAmGi8771kIBS A4ZmjRO8FreETheBt22nyGKez30CXQBSJtTBWBzhTcPua5kMl6zeOlFOjuapZQ== 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 4TcXN10DfGz1C98; Sat, 17 Feb 2024 15:12:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCGBQ077135; Sat, 17 Feb 2024 15:12:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCG9S077132; Sat, 17 Feb 2024 15:12:16 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:16 GMT Message-Id: <202402171512.41HFCG9S077132@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 87a7011b0974 - stable/14 - add allwinner overlays for enabling additional USB ports 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 87a7011b0974492c3244fbd97516c24de7f2755f Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=87a7011b0974492c3244fbd97516c24de7f2755f commit 87a7011b0974492c3244fbd97516c24de7f2755f Author: Andriy Gapon AuthorDate: 2022-07-10 20:09:23 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:10 +0000 add allwinner overlays for enabling additional USB ports For instance, on NanoPi NEO two additional ports are available via a GPIO header. (cherry picked from commit 197944948e6229f625306f38403737ed723e544e) --- sys/dts/arm/overlays/sun8i-h3-usb1.dtso | 14 ++++++++++++++ sys/dts/arm/overlays/sun8i-h3-usb2.dtso | 14 ++++++++++++++ sys/modules/dtb/allwinner/Makefile | 4 +++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/sys/dts/arm/overlays/sun8i-h3-usb1.dtso b/sys/dts/arm/overlays/sun8i-h3-usb1.dtso new file mode 100644 index 000000000000..247faa370a14 --- /dev/null +++ b/sys/dts/arm/overlays/sun8i-h3-usb1.dtso @@ -0,0 +1,14 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-h3"; +}; + +&{/soc/usb@1c1b000} { + status = "okay"; +}; + +&{/soc/usb@1c1b400} { + status = "okay"; +}; diff --git a/sys/dts/arm/overlays/sun8i-h3-usb2.dtso b/sys/dts/arm/overlays/sun8i-h3-usb2.dtso new file mode 100644 index 000000000000..02533289e3dc --- /dev/null +++ b/sys/dts/arm/overlays/sun8i-h3-usb2.dtso @@ -0,0 +1,14 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-h3"; +}; + +&{/soc/usb@1c1c000} { + status = "okay"; +}; + +&{/soc/usb@1c1c400} { + status = "okay"; +}; diff --git a/sys/modules/dtb/allwinner/Makefile b/sys/modules/dtb/allwinner/Makefile index 524636e380d6..f04be9ca0dc9 100644 --- a/sys/modules/dtb/allwinner/Makefile +++ b/sys/modules/dtb/allwinner/Makefile @@ -29,7 +29,9 @@ DTSO= sun8i-a83t-sid.dtso \ sun8i-h3-mmc0-disable.dtso \ sun8i-h3-mmc1-disable.dtso \ sun8i-h3-mmc2-disable.dtso \ - sun8i-h3-spi0.dtso + sun8i-h3-spi0.dtso \ + sun8i-h3-usb1.dtso \ + sun8i-h3-usb2.dtso LINKS= \ ${DTBDIR}/sun4i-a10-cubieboard.dtb ${DTBDIR}/cubieboard.dtb \ From nobody Sat Feb 17 15:12: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 4TcXN25Cxcz5BFSJ; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN22hDcz4XZg; Sat, 17 Feb 2024 15:12:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RQ1uRPaRxAImZme9+Vwf+N9FoCmC1pDIewIo2VtoycA=; b=eBKT7+XN7by1/hyBV4EVZGbIwK1sG0SxUDOL9e1mxneVl5KQYjE3A6l6jzlaQ9esRq6LIk /RBeZziFi0XJ+KLSQPuab3HtF+e8gBCROyf1m1BucdX0b4j0yJMbYIcgS9+4220BCI2SuQ qBzu94QEDZm67sFi05nXHtLZ21kz4uyqRAYGvB3BU/kCCDc3E5QIa/94My2amgcyE/FdRv hPQbNwwMx3bqkD0vTyv5Ax9LXmXV1p9KruoBeP0/Lpz+3ck5EMVrgwfZPkHNNokMUpHXAn NVP39VGaxBE/YUe+fCmeJMTN36oFpeQ/6r6HMyaX9iC/Bbfd4zeabEdRrHOivw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RQ1uRPaRxAImZme9+Vwf+N9FoCmC1pDIewIo2VtoycA=; b=xoGlZwFZ3XxzhD9eIdroAv7qtFVIfjyxg+9hC1TwTbFt7qAyacdnKDCjnYPvgBWwKcvBzW 2TeCE5W+2qEtrPqgzpicYfWoDJmDdwEkl2B/eC+eaC02iYPN6eE7WMhGQi3Lx3Ow8qxsN+ 4stSGxLzLjz95B0w/gPtH7x4fwKrTT+L2NO8h8ervprbGq+KnBkjhGbJ5Y2ZnmUAr9j3xa 7phYxYjGLV85OQ+G0YzIyXTTXxONiqSePNreJkuf8rWiAjOjKKj6k5H0OuJnvoE0I2xUOp mlw8LQ5ZjndfZPfo5Ih97QpvC6g+3Bz8LQHYmWPwLNH+mSvFDYj1P4wKm3x3tQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182738; a=rsa-sha256; cv=none; b=AVBZjNDLvuf62CK+YqGaA+OucRgif+477JhvLPZz5IWgd/CLiF7AlXXNrnwp5EaZ4ggx8B WaU2YbrMGLzyKy96x/gZsbjo7PtbXTGeWKpI3hbJjEQhxjJuSHcdgfFVjwM1w1AZv54uJs bywJvo6rXUEbDbr4Svd2I0mJauMLB7zP34mlp/n6Kr0izyfqypLUXSH5/dybKRqcEMw63K vB/9BNdfJvhXWqfQCYlkrRPv7gHkMc99mp9SZ7FUzliYgf4XmKsqSqTDIxdrbQ18mT5EkC vQkwM2rxmageXsn9DFb3Wn3+LkLf/m52xQNtEhDX2L9VUyFXDtM4TxsEQdV66A== 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 4TcXN21Vc4z1CD3; Sat, 17 Feb 2024 15:12:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCI0R077183; Sat, 17 Feb 2024 15:12:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCI4p077180; Sat, 17 Feb 2024 15:12:18 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:18 GMT Message-Id: <202402171512.41HFCI4p077180@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 1595c09ee252 - stable/14 - gpiopower: trigger low, high and both edges 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1595c09ee2527f9d1a50a07e922c003889be1769 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=1595c09ee2527f9d1a50a07e922c003889be1769 commit 1595c09ee2527f9d1a50a07e922c003889be1769 Author: Andriy Gapon AuthorDate: 2024-01-28 11:29:41 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:10 +0000 gpiopower: trigger low, high and both edges Power off or reset may be activated either by low or high signal or by an edge. So, try everything. Also, the driver now supports DTS properties for timings. Finally, the driver does not change the pin configuration during attach. It is assumed that the pin is already in a state that does not trigger the power event (otherwise we wouldn't be running). (cherry picked from commit 320e4beb97618c6964380bfa404a3e96c5de7663) --- sys/dev/gpio/gpiopower.c | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/sys/dev/gpio/gpiopower.c b/sys/dev/gpio/gpiopower.c index 5c369396813f..2f09f79850d5 100644 --- a/sys/dev/gpio/gpiopower.c +++ b/sys/dev/gpio/gpiopower.c @@ -34,6 +34,7 @@ #include #include +#include #include #include @@ -41,6 +42,9 @@ struct gpiopower_softc { gpio_pin_t sc_pin; int sc_rbmask; + int sc_hi_period; + int sc_lo_period; + int sc_timeout; }; static void gpiopower_assert(device_t dev, int howto); @@ -65,6 +69,7 @@ gpiopower_attach(device_t dev) { struct gpiopower_softc *sc; phandle_t node; + uint32_t prop; sc = device_get_softc(dev); @@ -80,9 +85,20 @@ gpiopower_attach(device_t dev) sc->sc_rbmask = RB_HALT | RB_POWEROFF; else sc->sc_rbmask = 0; + + sc->sc_hi_period = 100000; + sc->sc_lo_period = 100000; + sc->sc_timeout = 1000000; + + if ((OF_getprop(node, "active-delay-ms", &prop, sizeof(prop))) > 0) + sc->sc_hi_period = fdt32_to_cpu(prop) * 1000; + if ((OF_getprop(node, "inactive-delay-ms", &prop, sizeof(prop))) > 0) + sc->sc_lo_period = fdt32_to_cpu(prop) * 1000; + if ((OF_getprop(node, "timeout-ms", &prop, sizeof(prop))) > 0) + sc->sc_timeout = fdt32_to_cpu(prop) * 1000; + EVENTHANDLER_REGISTER(shutdown_final, gpiopower_assert, dev, SHUTDOWN_PRI_LAST); - gpio_pin_setflags(sc->sc_pin, GPIO_PIN_OUTPUT); return (0); } @@ -107,10 +123,16 @@ gpiopower_assert(device_t dev, int howto) else return; + gpio_pin_setflags(sc->sc_pin, GPIO_PIN_OUTPUT); + gpio_pin_set_active(sc->sc_pin, true); + DELAY(sc->sc_hi_period); + gpio_pin_set_active(sc->sc_pin, false); + DELAY(sc->sc_lo_period); gpio_pin_set_active(sc->sc_pin, true); + DELAY(sc->sc_timeout); - /* Wait a second for it to trip */ - DELAY(10000000); + device_printf(dev, "%s failed\n", + (howto & RB_POWEROFF) != 0 ? "power off" : "reset"); } static device_method_t gpiopower_methods[] = { From nobody Sat Feb 17 15:12: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 4TcXN34cg6z5BFZ1; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN32YBWz4Xdk; Sat, 17 Feb 2024 15:12:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bcrF18OFybjIvYib1v9tACPI8ujc2nvboJKoyao2HoY=; b=XuGtoWyrkIbXRHgtKZC2kHYk3ulG72540ueicxpI/5yZjelXZImeJcLK5o0eSetXdsHVC0 7gNkQH6dgF021I/1cq8w3iedmBVJspZdKxPcfEVYW2uYwNi+DpW3Gre4cH/ZlrBreZ1EQG Ymsqu+lJNScJgqVg/Ga5ChGj7LP3gALjlqb7n51jVuXdDJta2qtjgLXKCxtpLp3w20igMC sWchpsNAak2Fc5MQ6KyRW+nW97aKMwcm4uj3+ALmL0keAinGc3W2GJtea1C3xRsphurr77 cq8dzudL+O1L4vjjkzZTvRHeZ1GYoyEBrFr3zRPRYX3XzeqGREQNGMZl3EzbXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bcrF18OFybjIvYib1v9tACPI8ujc2nvboJKoyao2HoY=; b=Zw5hcPX4QqvxNPTBAGO6GHwVhAdGZp4mk+QhaQwtfsgBbszfABxn7ez8EA5ozd/r0APy0L F827yqHmzEP2BaoXMyCHZPgllnXXFIfAKLQu/HYX17CxGH1rRDCQ3J9bN/ooln1utWrSFv 5aqNr7obgw7hgA+22IYDTMLvOWO/SHx++IQwqs5XurhP0xm+XDuK1a1aJscTd4F3I/d8rK 2HZ5otsan+ApIIWMxjjdJuheIED6IBAOWWy56RQ6461zNTgjQvph9dnwlWuwEEWQzw5PCM wVxlqZgIatkRJM3C2puAzEHe0vL9otY4OJzTuHEfYFA8Hb/OVd4vcQ9/W8uQPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182739; a=rsa-sha256; cv=none; b=SGKL8GiD6hLTBUbsLDYeXhXqusqaLEhteWfpnXSbJRm6m3o7e2qGzYA8qL7W0eTBVYQGCw FABEE//JRti5xlWKxzjT6ib6zA6oP0tyUQj3O2izfWKud/cOdJ4OlnizKViyID7SfmMha8 O7M2BQ72nRKDk5FSkFsQrqNfhrkBbRoEY6irxn+WnzPw2ljG0NRGH76cJNGr/nW8J14T/J 3iQ1fyDmPVf9oemq/uX71l0d5Fiuh+RdCF2hEvGbtXe/H2QX7AjD7k7ht0RGpObOqOnnMr bAVxXslL2FF4Qyl201LogKM0c304KK7x6bDYpLktxt+LJjqbq+UdzBVZdnYP4w== 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 4TcXN31f4Sz1C9C; Sat, 17 Feb 2024 15:12:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCJWb077431; Sat, 17 Feb 2024 15:12:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCJ70077417; Sat, 17 Feb 2024 15:12:19 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:19 GMT Message-Id: <202402171512.41HFCJ70077417@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: d6e54e538e83 - stable/14 - audio_soc: set "status" as being at simplebus 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d6e54e538e833c88b0eaa1d391af6afc22b1b6b9 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=d6e54e538e833c88b0eaa1d391af6afc22b1b6b9 commit d6e54e538e833c88b0eaa1d391af6afc22b1b6b9 Author: Andriy Gapon AuthorDate: 2022-01-11 12:28:48 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:10 +0000 audio_soc: set "status" as being at simplebus This is more true and less confusing than previous "at EXPERIMENT". (cherry picked from commit b587cb69f35cd7bd280fe1f8c82b37f56f10d5cf) --- sys/dev/sound/fdt/audio_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sound/fdt/audio_soc.c b/sys/dev/sound/fdt/audio_soc.c index c7f09e3787db..3e937720bb5b 100644 --- a/sys/dev/sound/fdt/audio_soc.c +++ b/sys/dev/sound/fdt/audio_soc.c @@ -408,7 +408,7 @@ 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 EXPERIMENT"); + pcm_setstatus(sc->dev, "at simplebus"); AUDIO_DAI_SETUP_INTR(sc->cpu_dev, audio_soc_intr, sc); AUDIO_DAI_SETUP_MIXER(sc->codec_dev, sc->dev); From nobody Sat Feb 17 15:12: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 4TcXN44ftrz5BFJc; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN43MkBz4Y1k; Sat, 17 Feb 2024 15:12:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GlitcDUPrsj9iNlCty++56VSOYw9QZLYmAaX2VYJSKA=; b=jLoU2CbCDnoxcHsx7vPn3sUOAyP4NMa+IfQjbfAlJalw2khXhmOhnU/NLOqkbreX6Agtqb xBQHt7GcFFzvXXpgBTYJUmUwgG6uIpdPV/6uVM46lDbsCSg/ICzf5bkXqc35wikIcl/Jl2 iLWxkH7cGwBufMYnaYe7ah0RiEpqhpgR5RbNbdy87k+49FKSu8ANhjCyIykW2kspW8Wsf8 eVttttqCXkY4OQJdjhJ19aaHQbGV80h6B+7pvMUyKClxTASsuTBOp9Lnmciyq5yiJ1oqoD y6JMiP8YuIw/zZIW8t/WeiIqeNufgspOpWGVNyVl6r4fVM980oq5NNPFfw6PDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GlitcDUPrsj9iNlCty++56VSOYw9QZLYmAaX2VYJSKA=; b=ZPNnzueyzZD5yGmT/DJaZ7CLYvjlOEnNnwlDKebWEFXekXA/DGjjBnPTDB7wle1l6QacWm cKJBwe0h4gEXkQyUeIsjr3WZkGik7YmsBjcZSilEqSZA04vev6dDyIa4lR/hhr/oZ0Xz4f ch43Q0ZMnMeHF4GvjN79+fMsXegN/7hnTx4ySbNE31kztQ1+Qv1aZu59neqaSwkVBjV8/E eJa7BZb5Rj6u0XCBGZ6KNGfnIV1gw+FNJUaiMLQUdIhH0Cps/VhSB05PlNwtZaX9xOTAcH jGpaJRoiMRk/Isg5PpG8V98nPSsoBXpfnpaQ4My4xsWkvdhwLWVMfyrEc07ibQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182740; a=rsa-sha256; cv=none; b=RJk9C3jKdmwxfuwGnZxaxHoY6XUMv+czgQGiHeemV3wMlh6cTsXHyG3rPtZUMz9aS07NvD EJeHzw2B+dUGbDGl8pyRLC2oPOW5r6AybJ9JNrTqFSPLlUD6H+TfVYlswjMfB6HW/DsUPP XdPD0GkyZdPg6oEYz6P3209tTTt9je4FKJqRU1fi7TB2F00tLRUaHwevg1Yjnj8dp9WO0p IHYKAWcF9eEA+m/rlqWlC4zASwfIlnEHCYd+KDBbVA6S0SIs1btIEOqCeL3K/Bt5i6FVWR CRLHoPMxXv8oRuBY1QjG0DZ0Kr8DhG7pdsYgKA7Wwa79R67JE+gbMYbnY6dibQ== 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 4TcXN42R3Mz1CQh; Sat, 17 Feb 2024 15:12:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCKbl078919; Sat, 17 Feb 2024 15:12:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCKFX078905; Sat, 17 Feb 2024 15:12:20 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:20 GMT Message-Id: <202402171512.41HFCKFX078905@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 7742d4d404db - stable/14 - rk3328_codec: remove diagostic printfs 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7742d4d404db92e05d50eaabe48a8c7bfc77fa62 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=7742d4d404db92e05d50eaabe48a8c7bfc77fa62 commit 7742d4d404db92e05d50eaabe48a8c7bfc77fa62 Author: Andriy Gapon AuthorDate: 2022-01-11 12:01:31 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:10 +0000 rk3328_codec: remove diagostic printfs Most likeyly there were intended as reminders for unimplemented functions, but they do not seem to be useful. Also, a small style nit. (cherry picked from commit 408a9efd75ddcf59a05069681c3b32cb1118aa9a) --- sys/arm64/rockchip/rk3328_codec.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/sys/arm64/rockchip/rk3328_codec.c b/sys/arm64/rockchip/rk3328_codec.c index e4aa05c4dfc8..b797ac3d26b4 100644 --- a/sys/arm64/rockchip/rk3328_codec.c +++ b/sys/arm64/rockchip/rk3328_codec.c @@ -435,11 +435,9 @@ rkcodec_mixer_set(struct snd_mixer *m, unsigned dev, unsigned left, unsigned rig RKCODEC_LOCK(sc); switch(dev) { case SOUND_MIXER_VOLUME: - printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__); break; case SOUND_MIXER_MIC: - printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__); break; default: break; @@ -547,27 +545,15 @@ rkcodec_dai_trigger(device_t dev, int go, int pcm_dir) { // struct rkcodec_softc *sc = device_get_softc(dev); - if ((pcm_dir != PCMDIR_PLAY) && (pcm_dir != PCMDIR_REC)) + if (pcm_dir != PCMDIR_PLAY && pcm_dir != PCMDIR_REC) return (EINVAL); switch (go) { case PCMTRIG_START: - if (pcm_dir == PCMDIR_PLAY) { - printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__); - } - else if (pcm_dir == PCMDIR_REC) { - printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__); - } break; case PCMTRIG_STOP: case PCMTRIG_ABORT: - if (pcm_dir == PCMDIR_PLAY) { - printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__); - } - else if (pcm_dir == PCMDIR_REC) { - printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__); - } break; } From nobody Sat Feb 17 15:12: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 4TcXN54Z1Tz5BFcL; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN53fTTz4XbR; Sat, 17 Feb 2024 15:12:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yjMJWQT5PTIWTWK/52TsBKu/MtnkPl+Zkc2qudeN+lw=; b=Dxk1KwQLb8qRypsVPNn9GbuwAPlnG5axoGx3KC3ajqydecFRhIgA5PxpQgt475pu6itCOF UGRFSDrkgkUEid9JqINRAPy6WuBI2qEkxmv3Os+6PbV1/pB3KOvjj92EHWksHnwjA6Pe91 JAb8y+bqROhBj3tbioVp6g6CUr6yxOmM9I5VbdE16zSIwpbKJw9Mbv9JHeB4k5VSrgd0uT z2rDda+zyGJfjeIqbfE8rKJt4FrHA5o0b37hIAfavH5+UhEcIa0UgMreKTa6nEdDuGnDXN WikpderniZ9HYG1eoyphSDojppWtNdnVQDKVSSb/NcbU2lYUH8DuZ9tkBC4Hmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yjMJWQT5PTIWTWK/52TsBKu/MtnkPl+Zkc2qudeN+lw=; b=Judr+aEVoWXP/+oez1NF3ODi25dp+TJfKzfS0tE71oAUvdwPySx43XYqxXOFIwJIYaVIpJ HRUYjpidB/bzs1GO9U2QDtlowUNjgfvXJ8V7wvnOeu8kkkw+9Kpift4ekRPH9WWR4nMfJq +SKtNzkjiXkTwIq/MpylZM+PZq39d+RSk1GuM0bhgXeNkhNoSBzIm0WK/eTbXozxUWP8aL nnZ+6v09x+SjPwyMLxmS4j4Jb4Hwd0iKb7LV6R4QDGzwL4A4nEAd6LPDF9bnuMjmJ1VZXp 33c87tgcKDVTyjrOPHs/S+/faHH3boAUl4NFcovN8ahYPBCEvoKhnf+jJbUvGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182741; a=rsa-sha256; cv=none; b=Y8H/aA1fP64ikplnu2JIZ9W9lYCEVpBDEcKufOHJWXkWYRUeukzhM6+O6fDaisxOIpr1p9 LATw8UlvqXrFucwavU+UyOcphPsm3OhPCvljGEaIfV6Gmj1axlq9+xeDO5QRVjb2SaMbnk jLBCv9kLOOGyVR3o/31WfPbRdv2iOOul+SIGL9Vkc98Jo49K1orYEM9/RHCQxXHOpQY/8F Sb4d6qNSeXJSCxMq31yPHkwWWEnDTmCPmNMNYNjSjkwJbN8EH3wMu84J1GTdLtcRxeONSk biINiPl0cuBaxTCUXIUrj3mTTsCdGIst1I7510n1Xi8l5fn0R6Ws7h+8CBQZ2A== 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 4TcXN52mVCz1C9D; Sat, 17 Feb 2024 15:12:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCL6T080167; Sat, 17 Feb 2024 15:12:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCL2Z080156; Sat, 17 Feb 2024 15:12:21 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:21 GMT Message-Id: <202402171512.41HFCL2Z080156@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 52dfb8b11453 - stable/14 - rk_i2s: change interrupt type from MISC to AV (audio/video) 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 52dfb8b11453c30e9afcdafc9bf581401eb912a6 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=52dfb8b11453c30e9afcdafc9bf581401eb912a6 commit 52dfb8b11453c30e9afcdafc9bf581401eb912a6 Author: Andriy Gapon AuthorDate: 2021-09-24 17:06:49 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:10 +0000 rk_i2s: change interrupt type from MISC to AV (audio/video) This gives a higher priority to the interrupt handling thread. We need it because its work (filling the hardware FIFO) is time sensitive. (cherry picked from commit 406e959d07c78521fb755d94dc784d377f302cfe) --- sys/arm64/rockchip/rk_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm64/rockchip/rk_i2s.c b/sys/arm64/rockchip/rk_i2s.c index b1356a17987e..85a45af50af8 100644 --- a/sys/arm64/rockchip/rk_i2s.c +++ b/sys/arm64/rockchip/rk_i2s.c @@ -545,7 +545,7 @@ rk_i2s_dai_setup_intr(device_t dev, driver_intr_t intr_handler, void *intr_arg) struct rk_i2s_softc *sc = device_get_softc(dev); if (bus_setup_intr(dev, sc->res[1], - INTR_TYPE_MISC | INTR_MPSAFE, NULL, intr_handler, intr_arg, + INTR_TYPE_AV | INTR_MPSAFE, NULL, intr_handler, intr_arg, &sc->intrhand)) { device_printf(dev, "cannot setup interrupt handler\n"); return (ENXIO); From nobody Sat Feb 17 15:12: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 4TcXN70KQXz5BFV9; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN64nLMz4Xyl; Sat, 17 Feb 2024 15:12:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KFo8uE+YgxrtgBgCLcuz6MyrS86cnrtmUFqs/uv7cL0=; b=EcxH/na5beRGoatjFYKM1BQwG0vTdd710Foc1SqMhXfOmM0nga9OatCiZo7XJWDuU5yTqY i+wtIH9EXq0/j6gGX3yyFn2llsa/t0jd28xYUSBVCNwzk3yrpANsuzPvmks5QCWfwAtSNe 3lcHV0nBzDn6+0Cg1joz3w2V1I91gko5XGJtWYiBIxntUo/XO3cB6KovSN6X7LEksKL7Q1 RO6aFDbbVD1x0rqZ7ey5mud2s5zz0KcwsXxYTrOpNLR+kItKToiz25fR/r2Qz6zma0QNrm NJmSy8tsqYefjmlyQwhcfHhGUxOf62tLl5og0LTJSId6b5iL9FLobxhGjrO3FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KFo8uE+YgxrtgBgCLcuz6MyrS86cnrtmUFqs/uv7cL0=; b=ezQBeKIScwm2Y5npPGNmgHMEaG7GnprGwnd1yayuXGZt8vASajYMONJbO3qDGfRCCo+LGD //R83t/Mo/Dvx56ccXwzvIUKNVhrM8OWUjWRp8FQkXK7JdP7X5co3TWAe42E4P9LmVhRpq EnmAaddm2DKJjkhwRSJ95KOKfX7aUlYllNhcuPR4uS5nseWTj2pWZs9aBg5wV8jx0xVJdH aPDhV0kODCuzDdhc3cG2IMDHjhta5sPGU+9nEmA+2pVOdVDwr/Oh8yut2LecmotSXhPX78 LScLwpYZBtkjHi99bk9tNFaUJs6zKLff2SzJAYY5PEmQkA1ksDKsCmfDZJTgAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182742; a=rsa-sha256; cv=none; b=tRdeCdeMnAuRE8oS6q03VGtP+PbAqiR09rbSuCiH39GVwD26XIAHVPR/8KcgXyGmMfx0Nu aNOce4IXC89NQvIxXQRYNzrSlPJrswJN3KPkG3W2r5LyKClN4Ry67mtDJbOvx1N9PH8gt1 MXLRA3hb1cNmsX1YzwhuEvF8Dk8of5LcLlVvNi9fLvqkqgxj1Y2SiNeNpwQqP1m4ggzJbn XuRR9PplkgRxfvPSb3hQpHBNY/s2czz7ipiSzuVUVK3tj45vmc7RDV7cwsJzHfOvvVbByh Z4PZRHkduHXKjOwrYdWLedoo93cHlhGqf7OVMNIYZSwredElp/hWVD1tUgP5Ig== 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 4TcXN63vDzz1Bt8; Sat, 17 Feb 2024 15:12:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCMmv080508; Sat, 17 Feb 2024 15:12:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCMdj080505; Sat, 17 Feb 2024 15:12:22 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:22 GMT Message-Id: <202402171512.41HFCMdj080505@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 1dd72f26e3a3 - stable/14 - rk_i2s: remove unused definition 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1dd72f26e3a3d3afdde27658ce91a3373cf62cf8 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=1dd72f26e3a3d3afdde27658ce91a3373cf62cf8 commit 1dd72f26e3a3d3afdde27658ce91a3373cf62cf8 Author: Andriy Gapon AuthorDate: 2021-09-24 17:04:27 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:10 +0000 rk_i2s: remove unused definition (cherry picked from commit 89cb925fddac372f74068b9e57528090299032a2) --- sys/arm64/rockchip/rk_i2s.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/arm64/rockchip/rk_i2s.c b/sys/arm64/rockchip/rk_i2s.c index 85a45af50af8..2ec7d21ad7e8 100644 --- a/sys/arm64/rockchip/rk_i2s.c +++ b/sys/arm64/rockchip/rk_i2s.c @@ -51,8 +51,6 @@ #include #include "audio_dai_if.h" -#define AUDIO_BUFFER_SIZE 48000 * 4 - #define I2S_TXCR 0x0000 #define I2S_CSR_2 (0 << 15) #define I2S_CSR_4 (1 << 15) From nobody Sat Feb 17 15:12: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 4TcXN81HBvz5BFP8; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN75kqFz4XlC; Sat, 17 Feb 2024 15:12:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C5zUlMVTkxlnx4XnLiB/NLBF4ZPx0vbYMtQt9+RD2Zk=; b=cCVDOdgxEimLWfosjLiCYWC5W0SxjL/LYDA3Iy/VZB8aNfmFkR7iQTbGrHz8T42aq4MBkI tcyIwJpamBIawrQJhlPIEUudjjjxi5/ibksAW2ibJ54UC2Dp4aJYlp2zGcpXjB6SkBPztv mqUOafFcbtijCmoV/ToKm6oMCa4vZsbcUe4/+i6ERtIL4Otaex6UWyLmqZjkc1BTpKaYyV fW8kBIWykSPrUmDrmt0Wv+EY4fxKzGCGwY47nAc/ml0qS18FRn3yH+fYdfmrTtNY/+Ehvm 3M73Dnoitg9sesNBGn2h8U53KQkiuxK7hNTb4iqMz0aKugvV/h/BsLHxS49Gxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C5zUlMVTkxlnx4XnLiB/NLBF4ZPx0vbYMtQt9+RD2Zk=; b=exaCm56FS1LXuX99Ufp87AHwRFrY4Pirzn4XUUVloTaYaKW+fZTTOJL/pkiG40Qx1etSxw 7Ocu6/xRP8qyDMySMF7iYEXGcWBd2lidE290/sH1CeUzJv2JwF8yJeeOSTdZI9RhGpy3qn DdwK71DdTUNjcje9KvpNEyEQYr0mDS9477nxJ2z0J/xjU+XbttLqG+T8NEjpZpUkIlOy7h xDgne8ANROHPSy19tVsKrFaBenS6kATZlpY/sb79XAHmU4k8aqfE6fHPA8ZbV2h2NXSudN gNcT3ED00GIBcOJcEAbeLL0/9NppZtM1x7tB7f02W+0/xM8B9RWRz+xfOAHb6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182743; a=rsa-sha256; cv=none; b=xyKajKg35nWFrRjfvhqRcCn+tqTW/fhSBUl4vIjTzP9MMGszlYw1WeJurir9CmRCHp54tb EYDtxL03f31vCuiKQplyB7cEIkLktCq3HiqgQ1RsX/s4jn9mCusmeN6ZkdulIYpWSMTgEp 4LcT+FJAZuQluvZemMn8Vo71GzUqC2x2lbrNRAsQETDWNAm/N5dbKlir4kx3RMfbQjmGuN ex8aV7kB62z7nDVXjD8BAA+WKf5iQHA64mC7LtUlHFjo2Vt98DwWA4U45bH2YOpLxBuuZ8 Q8LHTSdFQMjkagg/35U4LV6uGOl4w09c3YaE0s2RLknRDyuX+UxhVP34q4yY7w== 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 4TcXN74rvjz1C6t; Sat, 17 Feb 2024 15:12:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCNOu080547; Sat, 17 Feb 2024 15:12:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCNKp080544; Sat, 17 Feb 2024 15:12:23 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:23 GMT Message-Id: <202402171512.41HFCNKp080544@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 96b8d8a62bd7 - stable/14 - dwmmc: fix a 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 96b8d8a62bd73383db36802e00e70b441e5eb1bc Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=96b8d8a62bd73383db36802e00e70b441e5eb1bc commit 96b8d8a62bd73383db36802e00e70b441e5eb1bc Author: Andriy Gapon AuthorDate: 2021-09-24 16:32:39 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:11 +0000 dwmmc: fix a typo (cherry picked from commit ea7f45d3d8d5d41a9cded5765dea43ed215a663b) --- sys/dev/mmc/host/dwmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mmc/host/dwmmc.c b/sys/dev/mmc/host/dwmmc.c index 53c3e0b646fe..be6f5e9de2d1 100644 --- a/sys/dev/mmc/host/dwmmc.c +++ b/sys/dev/mmc/host/dwmmc.c @@ -879,7 +879,7 @@ dwmmc_update_ios(device_t brdev, device_t reqdev) sc = device_get_softc(brdev); ios = &sc->host.ios; - dprintf("Setting up clk %u bus_width %d, timming: %d\n", + dprintf("Setting up clk %u bus_width %d, timing: %d\n", ios->clock, ios->bus_width, ios->timing); switch (ios->power_mode) { From nobody Sat Feb 17 15:12: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 4TcXN935mJz5BFXV; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXN86YWgz4YC2; Sat, 17 Feb 2024 15:12:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WcpdIVY6huOLOzts0hp6zTcozwx51PG5aE+wYk4g74Q=; b=GXaXb6jxOAVzoOv5yZIGwe6J9UiZjudrsAtbK2dMcJ9S9PP044YRQzyICRnIscYT397IEi zCi3BkHE2u1s8jWwBGt9e+qWwk/1NI4nkO4yxHvowGhP9TUgaN8zGbZerCQLreKnAPw8jo g6oo1Uog2SBdsDqLyei2tR3Yb8ML3oSBiXmTG41O5Ou8mweAFfQw4seUJNLAu1y320ItRZ Fo4RsETg4ti/Ul2e+iMg7vmErm42EWruxROKBiC/ZpS5B9ie3PeDXkAYq+jTn3PLbHW9lz k1AH0eKPyYY59xGtAvG+nv8xHddR1y+gL1lQAeCX0ZHze044Z/jLEA93kjmq1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WcpdIVY6huOLOzts0hp6zTcozwx51PG5aE+wYk4g74Q=; b=ZlCetHkI7RN+1K/0Q6rJ936UgGGIVcGnKiu6tsLQj1SobrgUaiYLBFKSkNSU7OrinEz7/A ZYs43y9OiGSVx2d3dwqp1mSvui4pSZc+GbaKi8d4MKzwCFcISIeQA9MS3z7CBn1/oKxCHv yFHplj3ssRENJFdDVFo1cI9eyhT4/EZs+J+R9McxpSvn4X8elebFY+BuwgSuGF7VH2kPn0 z2+qs/kO6Jqb7iisM18Qy9fHua62Iel5dM9gr7o2NHqayN2rBHo0hbXoN6KWNiaq9kGJX1 5X+Yc8HOTmuQQ+BLeHsWxgWb4TGm0U9xT0aG86GXlRf9thXbAeyp906r77E51Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182744; a=rsa-sha256; cv=none; b=OSQfLlyabRdDu2At95jlJjalnPA+mhGpJ4ZwlPtOAyFMA1OoFNdGxv2j5tDTlntQTN7Gla PrafoWUcYvkFGISxXEZLofrmesOhrLlqjVNUuisrsM9QIs7ezHjpAN0y6DUNYuGss5QNSS OXwm6d1hnwSAXXbipi5GAENZIrS0neQWvbZVFr3bgUK63Ug2Kha4+/Tedrf94xewtEBcDA lVrGy2LR8vANzfojYuLDhIphe1F2p8KsAgDLJx0EMHqaWxrV+nq36BThOayQxxakHKpfkB wO44NZI/BciMlLuyVrkezyuliMiRglGDKKeO6Bxro+DD+SqDLeKgwsYB56I9zQ== 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 4TcXN85gBQz1BkD; Sat, 17 Feb 2024 15:12:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCOlZ080589; Sat, 17 Feb 2024 15:12:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCO2f080586; Sat, 17 Feb 2024 15:12:24 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:24 GMT Message-Id: <202402171512.41HFCO2f080586@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: cd5038b62ec2 - stable/14 - mmc_fdt_parse: remove redundant bootverbose check 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: cd5038b62ec2a256e5f85c67358f7b73a4d4c22b Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=cd5038b62ec2a256e5f85c67358f7b73a4d4c22b commit cd5038b62ec2a256e5f85c67358f7b73a4d4c22b Author: Andriy Gapon AuthorDate: 2021-09-24 16:26:06 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:11 +0000 mmc_fdt_parse: remove redundant bootverbose check (cherry picked from commit 43ca38eb59ff194fb6d8ad589e74147d94717bf4) --- sys/dev/mmc/mmc_fdt_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mmc/mmc_fdt_helpers.c b/sys/dev/mmc/mmc_fdt_helpers.c index 56d6037f86f9..30538ea20ca3 100644 --- a/sys/dev/mmc/mmc_fdt_helpers.c +++ b/sys/dev/mmc/mmc_fdt_helpers.c @@ -67,7 +67,7 @@ mmc_fdt_parse(device_t dev, phandle_t node, struct mmc_helper *helper, device_printf(dev, "vmmc-supply regulator found\n"); } if (regulator_get_by_ofw_property(dev, 0, "vqmmc-supply", - &helper->vqmmc_supply) == 0 && bootverbose) { + &helper->vqmmc_supply) == 0) { if (bootverbose) device_printf(dev, "vqmmc-supply regulator found\n"); } From nobody Sat Feb 17 15:12: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 4TcXNB2lcJz5BFXY; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXNB0Ycwz4Y0K; Sat, 17 Feb 2024 15:12:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zhc7w9TmGAxedIHr87dbuoxW93IXB2iUk0xl7PV+T8g=; b=HiORWCKeS6gBKkxJU4FMxFNB053vJELCyUFtZaq65OmdPEaxMRIHSycNg6ThlRZgbcoquC nc74ymPEuUrWn1btQ5OfBhhHkq6RjwX2NjDi+5iDs754y9FJfrGZ1JgZXcHfdJQLbZ7BI7 BBMiCNj5qZ/7kOTsY3yGjhPZkVVUoeMhB1+GgxN2RSk3fJHOHLKsxDQb0hr6I+IifNzvrK /HSWbm63iyAwpNAOWdf8oqldDWTnbCnMKt5qJlkUO9PCcJGcqRMMAQ7qUoK0ogps/hFHcr Gg3PCdBz33emn0XnFTZfpV6lHbggOW7FnW4R3w5CmvDwCjNUSagjOyX0eyirsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zhc7w9TmGAxedIHr87dbuoxW93IXB2iUk0xl7PV+T8g=; b=ZVKyMgXoOiIPS2yb4Xspj6mqCSqmCeRRhJ9mZju17HC21Ry6zkENrm/wl3UwARqSg2xjKY d82BgjJWaLg/prxnXWYioeiMp8aPXrhtNGmGzFSHvMaYHUe1z1LCKt5RmseGrWBbVLUfas xn7yqQc8KCIrI0sZijQ1r6NGfi9kamZnF/PkQWsfDuNfRyyTpAzXWkj5DnAibTMdOc62gq 9+vFaCyavLDoEatojt4np/G+yOeBwCb9sgpfQrYKBtMhNaPBI0r1/4AxqDYHR0uGI00k0g oC1N7y7rBZJNB3ZVqSSUpTBmY0s5Vnl/4aqtdqo/6Fkrt5Evd6hhYYMafstGcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182746; a=rsa-sha256; cv=none; b=D6kfJ1AbCUszAXjHPHZBZUuYIoqY8eZtzF8vGOX3H7UflqZkQ3CpIsJbs8XjdIlkGnq0Yq DbQcmTfeHS5zLuAYGh8786UhWfwW+TTuntOqKMedPTilUHot1b0daEjLcR1pgGABYOdHb8 GGS80FnKal62dBYC4eaihiPnwLoezMJ5rxnveNwt2pCqKZZ3FuytMeUwPcbD27To7s2w71 MTguhdORu2EYwmPWphbVNdghXHGv/A3FkoHFjiy/OJmkHNUKijgxXqMI3D+SlC81xlyMrt Szbc4ZZmcz2tXGgSD71ZlwBfPx+HZJrljfq6w2E0TS984PRFqJG4P1khcQOhwQ== 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 4TcXN96fjqz1C9F; Sat, 17 Feb 2024 15:12:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCPlu080643; Sat, 17 Feb 2024 15:12:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCPFB080640; Sat, 17 Feb 2024 15:12:25 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:25 GMT Message-Id: <202402171512.41HFCPFB080640@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: e009f28ea46d - stable/14 - fix signature of ipmi_shutdown_event 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e009f28ea46d7a14f374ce42062b29ce28d564c0 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=e009f28ea46d7a14f374ce42062b29ce28d564c0 commit e009f28ea46d7a14f374ce42062b29ce28d564c0 Author: Andriy Gapon AuthorDate: 2023-01-03 17:22:21 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:11 +0000 fix signature of ipmi_shutdown_event The function had a signature of watchdog_fn while in fact it is used as shutdown_fn. (cherry picked from commit 90dc7889825d13290955d0eb7e1fb4388c0a0135) --- sys/dev/ipmi/ipmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ipmi/ipmi.c b/sys/dev/ipmi/ipmi.c index 262c24051025..3f66c3c199e3 100644 --- a/sys/dev/ipmi/ipmi.c +++ b/sys/dev/ipmi/ipmi.c @@ -754,7 +754,7 @@ ipmi_wd_event(void *arg, unsigned int cmd, int *error) } static void -ipmi_shutdown_event(void *arg, unsigned int cmd, int *error) +ipmi_shutdown_event(void *arg, int howto) { struct ipmi_softc *sc = arg; From nobody Sat Feb 17 15:12: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 4TcXNC2ntpz5BFXZ; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXNC1SBYz4Y5g; Sat, 17 Feb 2024 15:12:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wx+803ighEo8jozgAdMtZSXxq1EwcKhyYL2tZEJ04kA=; b=db23hJwshjoj8bB0yzD/Fj8ROW4mq5YogTZKioRF3Ffgzu6wcvsxAAtP5yd/el3YVL/S0w Ej4ZU+O/t6V1f1aHgazMnWMo2XoYOlv+fdidWakgFHm1Lc11Iwp/Ng5DRK3RQDoyYeiFeH tdKZOKtrUeV846Py2Y60BwelougAFWZ/AU01Jw6Ry2/NtbejOsfOEvZMNk6vNLwqgpzmXk xPBGGfLO8mtD1040ehw+gkPfGpED6FPtmY4XU9h2gKqYWtGa8ISC2IedJOb3syPyGKppfh oof9L72GTFXU0TJqqJ/OeL1aJclqOW4PQ2AXsPkxUjNNFp8XDzJM2qUbXb81Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wx+803ighEo8jozgAdMtZSXxq1EwcKhyYL2tZEJ04kA=; b=TgNTCx98RGrRgUvqjeb9aahOejPU5qiEcBMSxOEQoRhavVydEFGlKnkQaQ5M0IoePUGgw/ +qqdBPJ1eRyKR6w3Zt2r+EwweJeAPzaWjQTIt5Z9I39ITmhdfp8+9zr1e+OBoXPP04neoI rR0lUXVeZxW7JhfNNY9qmKiBB31YRKNKNDagREIH73+Shlb1IGqUGGcyB31nvK+SKxG1FG oO1Hz8aJPu31N3O/k09uHDsbAtoK7nz2hjMJRs+WB5bkDmfMm/u8hkTm98Qxrc9nm4N48d NHImbproYcu/WhJSJsv0abGhP0i2orpQ28089IbIGR+FBYjhNfkmWtQnuKmGLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182747; a=rsa-sha256; cv=none; b=ZNJCoxjdEk/sT/wPC+G7NozmXvQB5scQ5J5t+poFwavIm9vxlInWGjemiZoWO2usKpQi06 DF7bcYcseqSpIMiYbYZAb9rggkKyc60u1rXf3I3eh4Tjzuj/VqxwGzaZ2IM80B6WBhPhEv AyIUF/PXWaqoEkjRSk7UDnVezH87d+JYa8JxSIcidO4/jID+Mceo/J6R6AIFOTSqqgIsGr O0ebEPKc1FxiGaHDVcfpALAhs2nOkTKSM3X/Y90hp0bWbJUVwiX0U4qVz04p9se90BrbMq 1bZVu6gd/7ydCDsRI5PuSLztEOaix9k/utRyxT5yviU9/IlnQ3hbLDU9YGAEoQ== 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 4TcXNC0YnTz1CG4; Sat, 17 Feb 2024 15:12:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCQ49080711; Sat, 17 Feb 2024 15:12:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCQ5B080709; Sat, 17 Feb 2024 15:12:26 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:26 GMT Message-Id: <202402171512.41HFCQ5B080709@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: b5d826b1b6bc - stable/14 - change ipmi watchdog to awlays stop when system is halted 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b5d826b1b6bc863ae2d72b6ba18d0ece424e9824 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=b5d826b1b6bc863ae2d72b6ba18d0ece424e9824 commit b5d826b1b6bc863ae2d72b6ba18d0ece424e9824 Author: Andriy Gapon AuthorDate: 2023-01-03 17:26:45 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:11 +0000 change ipmi watchdog to awlays stop when system is halted That is, wd_shutdown_countdown value is ignored when halting. A halted system should remain halted for as long as needed until a power cycle, so the watchdog should not reset the system. (cherry picked from commit 8fdb26160160c4507eb2f644a982a3e05984cdf6) --- sys/dev/ipmi/ipmi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/ipmi/ipmi.c b/sys/dev/ipmi/ipmi.c index 3f66c3c199e3..d311f168baf5 100644 --- a/sys/dev/ipmi/ipmi.c +++ b/sys/dev/ipmi/ipmi.c @@ -767,6 +767,10 @@ ipmi_shutdown_event(void *arg, int howto) * Zero value in wd_shutdown_countdown will disable watchdog; * Negative value in wd_shutdown_countdown will keep existing state; * + * System halt is a special case of shutdown where wd_shutdown_countdown + * is ignored and watchdog is disabled to ensure that the system remains + * halted as requested. + * * Revert to using a power cycle to ensure that the watchdog will * do something useful here. Having the watchdog send an NMI * instead is useless during shutdown, and might be ignored if an @@ -774,7 +778,7 @@ ipmi_shutdown_event(void *arg, int howto) */ wd_in_shutdown = true; - if (wd_shutdown_countdown == 0) { + if (wd_shutdown_countdown == 0 || (howto & RB_HALT) != 0) { /* disable watchdog */ ipmi_set_watchdog(sc, 0); sc->ipmi_watchdog_active = 0; From nobody Sat Feb 17 15:12: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 4TcXND5ztMz5BFXc; Sat, 17 Feb 2024 15:12:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXND2Smyz4YP3; Sat, 17 Feb 2024 15:12:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jt4DYKJaeIIqOVM/CLuhvfiks6i6zvwL+TovUQr2LbE=; b=WDh4zsnLP33WB6ING5V9/RFdpEIJ6K/o4etpLlSZpfqFuXDHyGr3BqTc2OlifovSSgkDnx oY1ZUvW0gi/foREO7GfT/TwRNM3rdqir2ev22eZ8xExfYIlrd0LBTOoxV8ayIBzkBBhFAE kNufI6W7pI0TXn7FcqZzN3xGmdViXQqM9PlVW9i1tEUJvRj2om1LJyHOAMgQVFbN37gF7s 62/PbNbB+2j23p/28jMuVw9rSbwdBH0j+MF8TCY+B2aHbZzleYd4WH00dXZhlrcRZE+Rgi UeFSDMG/ycSW9nJGi1AVDuGEi1tpQhNOrUayLM71SU0+qfwoc4hOsbzKbkq+uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jt4DYKJaeIIqOVM/CLuhvfiks6i6zvwL+TovUQr2LbE=; b=P1FJBRSdedznDDx7sYSJTGe15jtVloKU1ft6UN31vRkH07hbrQgDa1pA6bWsFboic7TEvc XehTZdvchzIfN55bdUYdAG0V96xOOC8jb8Goh1VBuVVa3oQ9n7oS301quPcjqOVDJSZpmi f9PlANjtCW+fm6oDmGrhj1i26fVWYJvP5FNk2ekCJQi4TCst2sV2gbtTzDhw0UldYP3mVg xoTWK7Mj5hVC5pOsnhb5ScMklDKgXgDvqXxg766CaRnohCHRBeUb+y1SW/xVR7yPYGCv0G zpLji/ilumLRw9kbvGE26szWhPYUSdGu7nY0+U+HPuiutGel0bPNvgcby5dXCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182748; a=rsa-sha256; cv=none; b=k8jTqLAUQp3vwAn9TQ3r3R/p8Bn4JreCkmX+9KqlZ5L9p5O7rVYubKN1+Bdvi8Qm585t6n toHRAn72CwgEWapTY9SNTfNY717Toau/h8dlpyJju32VD4pq6DX6OlpPjV8bs2m4Y/WVXL Er2LWf86sZXvBo4im+aQ6v2uSjJ5Wgt80sXdH5wQ9IlVGFf6TlJt0uthLCyaB54ThnQeiP 38T3fle8/sPziB+rdHGt9QkaWEau67eWhA1qyJECa/PsLJs5L9V6oOg0vzT3qzYhDoUC+C ksK4G9w8VbbIFjTu3K7Q214FK5CBEXYpE/Y0KqVcvWdMBHiDKD6nmdwyDI3Mpw== 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 4TcXND1ZnKz1CG5; Sat, 17 Feb 2024 15:12:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCSeM080753; Sat, 17 Feb 2024 15:12:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCSF1080750; Sat, 17 Feb 2024 15:12:28 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:28 GMT Message-Id: <202402171512.41HFCSF1080750@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: a9bab712eb10 - stable/14 - ichsmb: fix block read operation 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a9bab712eb10de15d28ada67e369e75dcbd09d9e Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=a9bab712eb10de15d28ada67e369e75dcbd09d9e commit a9bab712eb10de15d28ada67e369e75dcbd09d9e Author: Andriy Gapon AuthorDate: 2022-09-13 21:26:35 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:15:11 +0000 ichsmb: fix block read operation First of all and unlike I2C, it's not the master that dictates how many bytes to read in block read operation. It's the device that informs the master how many bytes it's sending back. Thus, for ichsmb_bread() the count parameter is purely an output parameter. The code has been changed to reflect that. The sanity checking of the response length is now done once it (the first byte of the response) is received. While here, handling of ICH_HST_STA_FAILED status bit has been added. Plus some code style improvements and some new code comments in the vicinity of the changed code. (cherry picked from commit cbf7c81b608bb9311e50df9481447dc843083a0e) --- sys/dev/ichsmb/ichsmb.c | 61 ++++++++++++++++++++++++++++++++------------- sys/dev/ichsmb/ichsmb_var.h | 5 ++-- 2 files changed, 46 insertions(+), 20 deletions(-) diff --git a/sys/dev/ichsmb/ichsmb.c b/sys/dev/ichsmb/ichsmb.c index 7405f625e69f..94fc03d2bc67 100644 --- a/sys/dev/ichsmb/ichsmb.c +++ b/sys/dev/ichsmb/ichsmb.c @@ -389,8 +389,8 @@ ichsmb_bwrite(device_t dev, u_char slave, char cmd, u_char count, char *buf) return (SMB_EINVAL); bcopy(buf, sc->block_data, count); sc->block_count = count; - sc->block_index = 1; - sc->block_write = 1; + sc->block_index = 1; /* buf[0] is written here */ + sc->block_write = true; mtx_lock(&sc->mutex); sc->ich_cmd = ICH_HST_CNT_SMB_CMD_BLOCK; @@ -413,26 +413,23 @@ ichsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) const sc_p sc = device_get_softc(dev); int smb_error; - DBG("slave=0x%02x cmd=0x%02x count=%d\n", slave, (u_char)cmd, count); + DBG("slave=0x%02x cmd=0x%02x\n", slave, (u_char)cmd); KASSERT(sc->ich_cmd == -1, ("%s: ich_cmd=%d\n", __func__ , sc->ich_cmd)); - if (*count < 1 || *count > 32) - return (SMB_EINVAL); bzero(sc->block_data, sizeof(sc->block_data)); sc->block_count = 0; sc->block_index = 0; - sc->block_write = 0; + sc->block_write = false; mtx_lock(&sc->mutex); sc->ich_cmd = ICH_HST_CNT_SMB_CMD_BLOCK; bus_write_1(sc->io_res, ICH_XMIT_SLVA, slave | ICH_XMIT_SLVA_READ); bus_write_1(sc->io_res, ICH_HST_CMD, cmd); - bus_write_1(sc->io_res, ICH_D0, *count); /* XXX? */ bus_write_1(sc->io_res, ICH_HST_CNT, ICH_HST_CNT_START | ICH_HST_CNT_INTREN | sc->ich_cmd); if ((smb_error = ichsmb_wait(sc)) == SMB_ENOERR) { - bcopy(sc->block_data, buf, min(sc->block_count, *count)); + bcopy(sc->block_data, buf, sc->block_count); *count = sc->block_count; } mtx_unlock(&sc->mutex); @@ -515,21 +512,35 @@ ichsmb_device_intr(void *cookie) /* Check for unexpected interrupt */ ok_bits = ICH_HST_STA_SMBALERT_STS; - cmd_index = sc->ich_cmd >> 2; + + if (sc->killed) { + sc->killed = 0; + ok_bits |= ICH_HST_STA_FAILED; + bus_write_1(sc->io_res, ICH_HST_CNT, + ICH_HST_CNT_INTREN); + } + if (sc->ich_cmd != -1) { + cmd_index = sc->ich_cmd >> 2; KASSERT(cmd_index < sizeof(ichsmb_state_irqs), ("%s: ich_cmd=%d", device_get_nameunit(dev), sc->ich_cmd)); ok_bits |= ichsmb_state_irqs[cmd_index]; } if ((status & ~ok_bits) != 0) { - device_printf(dev, "irq 0x%02x during %d\n", status, - cmd_index); + device_printf(dev, "irq 0x%02x during 0x%02x\n", status, + sc->ich_cmd); bus_write_1(sc->io_res, ICH_HST_STA, (status & ~ok_bits)); continue; } + /* Check for killed / aborted command */ + if (status & ICH_HST_STA_FAILED) { + sc->smb_error = SMB_EABORT; + goto finished; + } + /* Check for bus error */ if (status & ICH_HST_STA_BUS_ERR) { sc->smb_error = SMB_ECOLLI; /* XXX SMB_EBUSERR? */ @@ -558,6 +569,18 @@ ichsmb_device_intr(void *cookie) if (sc->block_index == 0) { sc->block_count = bus_read_1( sc->io_res, ICH_D0); + if (sc->block_count < 1 || + sc->block_count > 32) { + device_printf(dev, "block read " + "wrong length: %d\n", + sc->block_count); + bus_write_1(sc->io_res, + ICH_HST_CNT, + ICH_HST_CNT_KILL | + ICH_HST_CNT_INTREN); + sc->block_count = 0; + sc->killed = true; + } } /* Get next byte, if any */ @@ -568,15 +591,17 @@ ichsmb_device_intr(void *cookie) bus_read_1(sc->io_res, ICH_BLOCK_DB); - /* Set "LAST_BYTE" bit before reading - the last byte of block data */ - if (sc->block_index - >= sc->block_count - 1) { + /* + * Set "LAST_BYTE" bit before reading + * the last byte of block data + */ + if (sc->block_index == + sc->block_count - 1) { bus_write_1(sc->io_res, ICH_HST_CNT, - ICH_HST_CNT_LAST_BYTE - | ICH_HST_CNT_INTREN - | sc->ich_cmd); + ICH_HST_CNT_LAST_BYTE | + ICH_HST_CNT_INTREN | + sc->ich_cmd); } } } diff --git a/sys/dev/ichsmb/ichsmb_var.h b/sys/dev/ichsmb/ichsmb_var.h index abef219465e6..7fb14804d3c4 100644 --- a/sys/dev/ichsmb/ichsmb_var.h +++ b/sys/dev/ichsmb/ichsmb_var.h @@ -58,8 +58,9 @@ struct ichsmb_softc { int smb_error; /* result of smb command */ int block_count; /* count for block read/write */ int block_index; /* index for block read/write */ - u_char block_write; /* 0=read, 1=write */ - u_char block_data[32]; /* block read/write data */ + bool block_write; /* block write or block read */ + uint8_t block_data[32]; /* block read/write data */ + bool killed; /* killed current transfer */ struct mtx mutex; /* device mutex */ }; typedef struct ichsmb_softc *sc_p; From nobody Sat Feb 17 15:12: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 4TcXNF6wlLz5BFPG; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXNF3Vn5z4YRd; Sat, 17 Feb 2024 15:12:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182749; h=from:from:reply-to:subject:subject: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/KOY4Qkiok19C2UadZTr7vjePAmjyNleDUKUQuaDZA=; b=ErYSsYzcp1mQhxK8hC+K0Y5VhKR6RHPBDhPAlxVb8gBy8F3u3Aja/pptA1fwv5DaPGHy6J KklptBJijOSwZNeDs8n+Cn4zPMTX092589PtcpzZTkQUFHpZAZ8Lchxf4z0r31lFE9tP+J pD1qxWD8u30yEjGq+uzFAuXYCIE13LkzsPz2BurDerAfEikxm7suJ4RTfL0L4HA50dl/y1 VKWUiZBroSICN+8tQ0abZYO+VTwzNw1Dx5uCI2vvOx8s0oc4hcEsZEL0Bp7l66n3BoAjft qvd2wAdwOd0b3lYRDilPnWYIQFZF1rR04+hqvB+bFpw3NQXNElv4liFki344Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182749; h=from:from:reply-to:subject:subject: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/KOY4Qkiok19C2UadZTr7vjePAmjyNleDUKUQuaDZA=; b=yqXx4WSkpYb3I6PqpitBb2ZS5R58hwPs5ixwvmbv8Ds/b2WrnBZx3Sxi/7tRdNRDCynY+7 qfgSSRGyg2yMMVdWxagqBYFOjvt+jutUf2sB2DjtJ981sd+qbcb8B1v1Q+mvW6ntCABAwQ FlvWE1xwZLTWGQTInzY+0l7Fnk9YYLvE4GCkb7+NwrRRWZe/CTEnslOQqAWuwjCwaEEsXj 3TOxA75sJRoAGlM8G9pC4YxOOxB6U34zj4aG4KIfbeB5Dyzs6o9thscfS+wDt+jsPaftu/ KFCjLCiyc9K2S+B1h7KFA2bIBdftfhsunIkAtCS5K1LXu5G7Ge9ctVef6PMsZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182749; a=rsa-sha256; cv=none; b=em8cr0tzQPcSR4lzguVRJ1a77GG+FlDDLBMsK8KLyX530BHfiGveQhn6Qn2FYUalmYP8uL yoWEYRBgY7m1Yun0Y0wsZWb6JVCaOvdNd6C5Mgo8GlUHvfEdX01QWvnby2qBxlVG78x4UY DvGbPspr9zVIOtPYHnThQHMXdIyzBINiH0FRtFZtq4FOJN8UEBK1HusYyHH3RvBDq0ICkJ lZd4a9SN1fv5dkkoXnG4xq5o+e+BKwqEHaarCQ2TvUaxr3fougdXwuy7S9TVuoWc3cb56/ /l7dNoftPwEsw3CMdzGh4eoQi8wcNbwPOxv+WDQQe3Zq+MmBd7V01rl6/zdcuQ== 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 4TcXNF2c3Gz1BkF; Sat, 17 Feb 2024 15:12:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCTdq080807; Sat, 17 Feb 2024 15:12:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCT15080804; Sat, 17 Feb 2024 15:12:29 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:29 GMT Message-Id: <202402171512.41HFCT15080804@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: fb9c50f983ff - stable/14 - dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fb9c50f983ff6bdd6f33a22ae7d5b391435dd02a Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=fb9c50f983ff6bdd6f33a22ae7d5b391435dd02a commit fb9c50f983ff6bdd6f33a22ae7d5b391435dd02a Author: Andriy Gapon AuthorDate: 2021-12-24 09:38:38 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:18:04 +0000 dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag This should disable allocation of the second per-CPU principal buffer which is never used. This will also enable additional asserts for buffers that are never switched. (cherry picked from commit e92491d95ff3500e140eafa614e88ca84ffb0d26) --- sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c index ce02676e0dc1..83c0648b23b1 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c @@ -12058,7 +12058,6 @@ dtrace_buffer_switch(dtrace_buffer_t *buf) hrtime_t now; ASSERT(!(buf->dtb_flags & DTRACEBUF_NOSWITCH)); - ASSERT(!(buf->dtb_flags & DTRACEBUF_RING)); cookie = dtrace_interrupt_disable(); now = dtrace_gethrtime(); @@ -14866,10 +14865,10 @@ dtrace_state_buffer(dtrace_state_t *state, dtrace_buffer_t *buf, int which) if (which == DTRACEOPT_BUFSIZE) { if (opt[DTRACEOPT_BUFPOLICY] == DTRACEOPT_BUFPOLICY_RING) - flags |= DTRACEBUF_RING; + flags |= DTRACEBUF_RING | DTRACEBUF_NOSWITCH; if (opt[DTRACEOPT_BUFPOLICY] == DTRACEOPT_BUFPOLICY_FILL) - flags |= DTRACEBUF_FILL; + flags |= DTRACEBUF_FILL | DTRACEBUF_NOSWITCH; if (state != dtrace_anon.dta_state || state->dts_activity != DTRACE_ACTIVITY_ACTIVE) From nobody Sat Feb 17 15:12: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 4TcXNG6zj3z5BFXk; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXNG4d8Jz4YK9; Sat, 17 Feb 2024 15:12:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dThkLWguHA71YkuwloxcfxrKZp4Iv3Rqd8wVmRqXlXM=; b=ML0fuws4MGcd03oGIridemLQhJkhQ/nqLTrXCrBA8aV/xjqScfk9pVD3A6u+oVRLf8bj7g GgenffcZt5WM21gP69wVK6Aqwa/g4QmEqwKnNaLr99qj2XUK0SJ/fhEKtGigebCtZ+yFJN 7nAVqIkpfMNFT9c/O1POryVn+vhbHd5R0yPMWQhzi8Kc+vraiYUQXaFXdhnQu83xj9Wfbr LHePW5sQ3VXRQK6QUCqp/p3LqbkB7RF4IxIhq2668AEf4huy6ZD0DEQnzFMtebbkX3CL/j T2waZvRJia2dRBQNuh9NVYkaoAWYJAjlX9jcCbcYpUb0erzQ6roUh0G07LfPUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dThkLWguHA71YkuwloxcfxrKZp4Iv3Rqd8wVmRqXlXM=; b=YklKDJG3vMdPRVJ8gPeiV615ZKNvyEy7sgsRk6TwEUqGW5iAnJo2AvPT3EIAIgZs1fZfFI cxsR4V4N/qVNImxDy4lsDhSOzbWFiV8BGSbUyglwtvvvfqW6HlXkkymqbF7rMdAN2gBKW/ fuR83V9mOhYMA/9YNj1LqzX1JuhrJCi2BCw4Ll/u/1LIUC2tJVp/ti/kLmEWLXnLE/u6ec v+8NNX+Z9oQ7dvywtsGphhUIxA5Q/aC7ibcx2kciLOlQnkQSnWTM3HJoAGTULXUGTyDYyx co0cgj7+y7fQJZbgY/7Z613vZZNd2M4Go4pAboCt5m8a0iV4WROHmyTNpPDjhA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182750; a=rsa-sha256; cv=none; b=CukPbJ4bvtA9TcIw9nsFZQyfbbYB/mZxRg6/QtzT++GQk90FAYxJd3PR//e740fUzfBrZU r1D8cFX99FWks7OgkvAm+9yPKL+xk1AIerTMmg7nBnqF7uxLTfphtkHNyUHtG4kpxDgjqS Sa78h2/AbsNLfRDdT6u3sLJafTs07FHqagYFkqko+R6PVY4UhnzkteJosB+ciYKn3o2j3r 8jRfKGRRoa7QV7RH/tGpMvt7fLg6lVcveLATKJtf/NZFP0ndWMO6JqSd1uLM+jHmERVXVU Cj7pEi/smz3WrcdLQnKQja2Ez0hsOE4EaRdC1DA7xMmxLXCu91C2sQFmKC/cXg== 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 4TcXNG3ks0z1CD8; Sat, 17 Feb 2024 15:12:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCUP1080853; Sat, 17 Feb 2024 15:12:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCUit080850; Sat, 17 Feb 2024 15:12:30 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:30 GMT Message-Id: <202402171512.41HFCUit080850@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 782b71ccfb1c - stable/14 - hdaa_pcmchannel_setup: do not advertise AC3 8+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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 782b71ccfb1cd83a6c58e955a92ec7ace949036a Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=782b71ccfb1cd83a6c58e955a92ec7ace949036a commit 782b71ccfb1cd83a6c58e955a92ec7ace949036a Author: Andriy Gapon AuthorDate: 2024-01-28 13:18:02 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:18:04 +0000 hdaa_pcmchannel_setup: do not advertise AC3 8+0 The rest of the sound system supports 7+1 maximum and is not aware of 8+0. I believe that these messages are caused by 8+0: kernel: feeder_init(0xfffff801f935d680) on feeder_matrix returned 22 kernel: pcm0: feeder_build_matrix(): can't add feeder_matrix (cherry picked from commit c053a56c0f5df6db5223316831142e1d8afff64f) --- sys/dev/sound/pci/hda/hdaa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/sound/pci/hda/hdaa.c b/sys/dev/sound/pci/hda/hdaa.c index 02f4babcd331..dcd10cb36510 100644 --- a/sys/dev/sound/pci/hda/hdaa.c +++ b/sys/dev/sound/pci/hda/hdaa.c @@ -5426,7 +5426,6 @@ hdaa_pcmchannel_setup(struct hdaa_chan *ch) if (HDA_PARAM_SUPP_STREAM_FORMATS_AC3(fmtcap)) { ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 2, 0); if (channels >= 8) { - ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 0); ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 1); } } From nobody Sat Feb 17 15:12: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 4TcXNJ15yMz5BFrq; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXNH5fr4z4YHP; Sat, 17 Feb 2024 15:12:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EMYtqtJ6WaoD0Fc7kkOIlYdmSheXpPzOoVHBWHsEQjM=; b=XlZeq+xNaxf55G+l1/OSCaxQPegRP79EJtP9VNgVNIczOk47zIznZDu2ATzsm+ewlOevWj +MsiTmZAFF6uv0AhF4fc/vhUT5CR9p/poiQU0MKlDw6atLy3udkHBmtdw7cG7D1wVcQpAC vutDbWhxvafs18v1eHXf8B/o/Ybfb8nyhuhv3tpGHyHi9acmsGZDHUbg8pbpbyg9WDe+sF 6MPcLDhaQDtJeYukADtHVhuvhncw9ZKRFflqWJOgCL9DdPC3p66R2BABRRlKlyeje2E8za E2l6mxHUXe7uwB+JclcmtevDHd30Y/eJtR7LbnL/qY+424JqvqoOtc7NxDTRBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EMYtqtJ6WaoD0Fc7kkOIlYdmSheXpPzOoVHBWHsEQjM=; b=FqyN9vKGBtmiTleaOyjZ62TauDhPsPcskD/m+qlc0tQZ0H8RtqEFoesjNSBKsP8rXST+5m J2xDJ+03FkQdRxCrWsUHijY6eqxYMKU2OU5VtmBvrc5LjMEhb93hPV4VbMjS/Djl6bLbl7 kxEmp9IS9NidHiTczv7lr+YDVwVCPo1G6abm2pxm33vbWb1xM289dMtcCVEeR6ET8nA4iP VHudbuVxbCA/x+hgs45Yol/Otsew0mGMwpMP6poPX1llDA3vVklrMiLZsPWEfMkXUUxxLC OULj5vtuNyJOyUAS6Lie69u3tEr7yb59/VZzBJiKJdMNRsGn3da+XhCqQNIURw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182751; a=rsa-sha256; cv=none; b=kNjq+ozq0rlLJzsbAUrZ/cMIlt/+pCBeSNjD1f7i79+tpAZy+jgxbnZsjhmj5JvSIB8eYU izSxU5fpNCdiUhvYDfPbR5kPnmk8tna/dLiU8jMksmjeZSEVs00ja4B9upFRiyY48pN4A4 yq2eLdRH37MigYmTYVxKC+qtfL5+Wl8QRZoU+GBa59BqIihNomme9sZpHqWdO23SbTwAEO 6e9F6Qbh2Fqp4HDo/xZmy6y5S01wEJN/ss73e42MDOKusOIGyec1+JoUTJR8A6Ur3Whily zEiSHTpkYCxPDhyzOvxFzgWQoZXB34WgYHeF+OaCVWT4t+OHl/v453+d5XrBVA== 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 4TcXNH4msDz1CQn; Sat, 17 Feb 2024 15:12:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCVVb080909; Sat, 17 Feb 2024 15:12:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCVYP080906; Sat, 17 Feb 2024 15:12:31 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:31 GMT Message-Id: <202402171512.41HFCVYP080906@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 191462cb674c - stable/14 - efibootmgr: fix potential endless loop with -v 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 191462cb674c092de392aa8e31054115d9aa74f8 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=191462cb674c092de392aa8e31054115d9aa74f8 commit 191462cb674c092de392aa8e31054115d9aa74f8 Author: Andriy Gapon AuthorDate: 2022-10-25 21:10:39 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:18:04 +0000 efibootmgr: fix potential endless loop with -v I observed the problem on a system with fairly old and, apparently, buggy EFI implementation. A list of boot devices had an invalid trailing entry. efidp_size() for that entry returned zero, which means that the code got stuck looping on that entry. (cherry picked from commit bf87d4a4bfaa86e97079754e93fe14595adf07c5) --- usr.sbin/efibootmgr/efibootmgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c index 8dcf9876486d..be1157b4aa84 100644 --- a/usr.sbin/efibootmgr/efibootmgr.c +++ b/usr.sbin/efibootmgr/efibootmgr.c @@ -784,6 +784,8 @@ print_loadopt_str(uint8_t *data, size_t datalen) */ indent = 1; while (dp < edp) { + if (efidp_size(dp) == 0) + break; efidp_format_device_path(buf, sizeof(buf), dp, (intptr_t)(void *)edp - (intptr_t)(void *)dp); printf("%*s%s\n", indent, "", buf); From nobody Sat Feb 17 15:12: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 4TcXNK0b9Zz5BFVx; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXNJ6fd8z4YDZ; Sat, 17 Feb 2024 15:12:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bIA0F7cMdEV2Xd1mDadkHu5+DrsKxR+Z8Xq8QZk3mUY=; b=hN0EkqgYIk5m2IpxfHFevLhNID0g85wH8WUY2bkemUiPVluyfi/BnaORUdn70QZcMbo+Ue Kz7DbQ0m7e1l7hKdN8uXpL6wy++EFCSEB2iISZKr5V3Jt2BW4IGZ0jgJQn2oFGDd4HvFEZ mwWSXjLhZGcu16afMPVTAoRfP1zDAUTnJKLBPndn4riV7rVOHx1pGlnyRwiXAYZwq3pZpA WZUOY55cwxBrP1QUMlSvxrlSQI+IFLEiDiD5NipAzO8qbXZFt39tuc6PqQ3juQnJOmWOaT Cb3frbstOYqxKWqs6qE1qADxdT4qHOdtO5i6TPjn+35ln2sJuZAVlt15xMHVMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bIA0F7cMdEV2Xd1mDadkHu5+DrsKxR+Z8Xq8QZk3mUY=; b=B7A5vw4GXt0sPIEgBrY7N334lbWyUoI4PPtLYUgLE4JNyFYdoOHyouLCF27qq0uOpLil8U E98Fke55xoaWSSHoLnlbn3nUrTH0qDievWgglS0ZMmCHK3qRB4uZ2qmUaDqsW2k5Xtsm0g zrzL4+DFd4ZqYlakOW8EH6EsEURn9RU/YddGHce1gft8FBB9g1lYRuADrnmYYcLBJMxzGl lDOcO+j1/flg0zTbbxOEGLSjupkjnmDzGWd+/+zT56JvXe8/Rx1cv8nGso8XIRm2pr9q/z C7tEnMREFoeb7kV4maKxWNa2af0fVupec94G1L8Em1Qa3U7sN0tvaCm+RHigIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182752; a=rsa-sha256; cv=none; b=LxBxBEkfv+t0mJboasR1LUNMGa81b2nR4lvtySyCMnL9lczqZZ8vqmjCQDDXo9N5DDk2OQ EAnr9dV8HtRCUgI2oTYokC20bfN/FdO/Wb8EjrpWwOYLD6FrYVYrW9Xi/AqZh7xFQjdyBd 1iJJpiX+vuT7+dO6A+ve+5bVTNMocVCuyWY0GnCNor7T5RrGb9szVE/TTPoGSWNUOCoTSN BU/BQqOtfbgOvhaK25RLCIJVg/wXPsiSBsBk50E93IEgVmrJzBHNdjUdYsSxR7Ocldog9Y 5ZSpxM0J6fouwcxZ8K6e4VeI/sGBeRbolXjn6tVKmt56xmnz+qs1l4s2yrJ1zA== 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 4TcXNJ5mplz1CG6; Sat, 17 Feb 2024 15:12:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCWlI080948; Sat, 17 Feb 2024 15:12:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCW0q080945; Sat, 17 Feb 2024 15:12:32 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:32 GMT Message-Id: <202402171512.41HFCW0q080945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 4cb348eaf6ac - stable/14 - subr_bus: report DEVICE_SUSPEND failures 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4cb348eaf6ac1326e79bf6c6679dbf1e219574ee Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=4cb348eaf6ac1326e79bf6c6679dbf1e219574ee commit 4cb348eaf6ac1326e79bf6c6679dbf1e219574ee Author: Andriy Gapon AuthorDate: 2023-01-03 08:39:32 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:18:04 +0000 subr_bus: report DEVICE_SUSPEND failures This greatly aids with diagnosing system suspend failures when they are due to a device driver or hardware. (cherry picked from commit 4d1161f094dd90428847f7e5989767e9957055f4) --- sys/kern/subr_bus.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index d3db7ca5431c..38c646593a85 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -3463,8 +3463,12 @@ bus_generic_suspend_child(device_t dev, device_t child) error = DEVICE_SUSPEND(child); - if (error == 0) + if (error == 0) { child->flags |= DF_SUSPENDED; + } else { + printf("DEVICE_SUSPEND(%s) failed: %d\n", + device_get_nameunit(child), error); + } return (error); } From nobody Sat Feb 17 15:12: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 4TcXNN4D5Yz5BFvD; Sat, 17 Feb 2024 15:12: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXNM6ycjz4YXs; Sat, 17 Feb 2024 15:12:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8GsiafOm4WrRmkI+oZPobVN2ET46ahECSjFpopWwsXo=; b=TTpQKu2j0vwrJX5nY+AsYVuP5RfCIE9m63f0obfZ9w60y65c1dLmFYExGEu7TjVENbEuo8 zySMs1B0X8NlN8rGEZvFWrFP+wvlLicSP9S9UwamZLechBkgQNtcgaXdZlQlNFDExDoX2J utdb7hF1Tkf14tGFxwmhl0RFioGARz+XIYm1G4GF56MAAElbTHOy8f/XKGbntnCTl6WInT 8bT5pueqcxag+NDp9Jt70f6fPhHAHTAflD5DL217TeIrovKUJ62toxnRF5A1CRwlmRIACW vPT/rRCdPxhucQ1osqWod7p12PVUpjATsgIyROf2Rx6CaTLjGAHqIxLRwTKQEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708182756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8GsiafOm4WrRmkI+oZPobVN2ET46ahECSjFpopWwsXo=; b=SSFUfaUHPc9DvTXzXmAdVYI0r60abrVGIdxBM2mHqv7F+3S3Bib03V+6JhshYmJyV+lkt8 vBvvCNBHMcTBjjK9loIyNOdlaPSXesn7FE/Cs/3RmoIMX/1BZNXOQ6oH7uXJ48VUZvN3aj 7Vyibt+HL2yYez8sgCe2R29/OSL5QGsjL6MGS0jbgfGZ6MNBWFlWk5Dgoi8a/A0YL8zthz ktR0Ql0+cgJuJKnLYXVm06Ph2tdLmrfyCuecZzo1b5PpEbMV0CE8LOa6hao3rMrmb7J1eO DPmb0OCCiSEx1tTsmJ9XxXeXgacRQrJFMdE0gaYWNLqbZO1cczkjUhirfhgugA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708182756; a=rsa-sha256; cv=none; b=o+ken1haYKmULjrU7kMZG/BmNRUSecQHn3N91hfSx6j1XWwQmzlK/wsXjZc04xFB2Q8PeG drbY3wAqT9Oj7HDbHtgv85WJHhI7Jn8ggH2VbWSDWLCr1r03/EvztSC9Lh6xdaLmQTs1lU TLkivLWQm1du6y55rRSWNVkPE5KFEJL9hVdLsLihlhSqY46/NDAaQRN+j2wCDk9FAog89G mdszcI0Rc7bSN+9zuOh07+uj7d/W61FucQ5t55Qo9D0GmPzROmVmBHTg7tGv6060aBcs5y dOkvjiYwZdu1LMOsnSnevHtevW3PArSuCTqvpIZm2mus/CFWzBxhdXGG2fQLkQ== 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 4TcXNK6t3gz1CD9; Sat, 17 Feb 2024 15:12:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFCXs5080987; Sat, 17 Feb 2024 15:12:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFCXsM080984; Sat, 17 Feb 2024 15:12:33 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:12:33 GMT Message-Id: <202402171512.41HFCXsM080984@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 007b84e6c159 - stable/14 - rdmsr_safe/wrmsr_safe: handle pcb_onfault nesting 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 007b84e6c159c5cf0d42923877868afee6c2d523 Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=007b84e6c159c5cf0d42923877868afee6c2d523 commit 007b84e6c159c5cf0d42923877868afee6c2d523 Author: Andriy Gapon AuthorDate: 2024-01-30 06:45:01 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 14:18:20 +0000 rdmsr_safe/wrmsr_safe: handle pcb_onfault nesting rdmsr_safe and wrmsr_safe can be called while pcb_onfault is already set, so the functions are modified to preserve the handler rather than resetting it before returning. One case where that happens is when AMD microcode update routine is executed on a stack where copyin / copyout was already active. Here is a sample panic message from a crash caused by resetting the handler: <118>Updating CPU Microcode... Fatal trap 12: page fault while in kernel mode cpuid = 3; apic id = 03 fault virtual address = 0x11ed0de6000 fault code = supervisor write data, page not present instruction pointer = 0x20:0xffffffff80c2df03 stack pointer = 0x28:0xfffffe01ce4a4c70 frame pointer = 0x28:0xfffffe01ce4a4c70 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 117 (logger) trap number = 12 panic: page fault cpuid = 3 time = 1681462027 KDB: stack backtrace: db_trace_self_wrapper() at 0xffffffff80615deb = db_trace_self_wrapper+0x2b/frame 0xfffffe01ce4a4830 kdb_backtrace() at 0xffffffff80943c77 = kdb_backtrace+0x37/frame 0xfffffe01ce4a48e0 vpanic() at 0xffffffff808f5fe5 = vpanic+0x185/frame 0xfffffe01ce4a4940 panic() at 0xffffffff808f5da3 = panic+0x43/frame 0xfffffe01ce4a49a0 trap_fatal() at 0xffffffff80c31849 = trap_fatal+0x379/frame 0xfffffe01ce4a4a00 trap_pfault() at 0xffffffff80c318b5 = trap_pfault+0x65/frame 0xfffffe01ce4a4a60 trap() at 0xffffffff80c30f5f = trap+0x29f/frame 0xfffffe01ce4a4b80 trap_check() at 0xffffffff80c31c29 = trap_check+0x29/frame 0xfffffe01ce4a4ba0 calltrap() at 0xffffffff80c07fd8 = calltrap+0x8/frame 0xfffffe01ce4a4ba0 --- trap 0xc, rip = 0xffffffff80c2df03, rsp = 0xfffffe01ce4a4c70, rbp = 0xfffffe01ce4a4c70 --- copyout_nosmap_std() at 0xffffffff80c2df03 = copyout_nosmap_std+0x63/frame 0xfffffe01ce4a4c70 uiomove_faultflag() at 0xffffffff8095f0d5 = uiomove_faultflag+0xe5/frame 0xfffffe01ce4a4cb0 uiomove() at 0xffffffff8095efeb = uiomove+0xb/frame 0xfffffe01ce4a4cc0 pipe_read() at 0xffffffff80968860 = pipe_read+0x230/frame 0xfffffe01ce4a4d30 dofileread() at 0xffffffff809653cb = dofileread+0x8b/frame 0xfffffe01ce4a4d80 sys_read() at 0xffffffff80964fa0 = sys_read+0xc0/frame 0xfffffe01ce4a4df0 amd64_syscall() at 0xffffffff80c3221a = amd64_syscall+0x18a/frame 0xfffffe01ce4a4f30 fast_syscall_common() at 0xffffffff80c088eb = fast_syscall_common+0xf8/frame 0xfffffe01ce4a4f30 --- syscall (3, FreeBSD ELF64, read), rip = 0x11ece41cfaa, rsp = 0x11ecbec4908, rbp = 0x11ecbec4920 --- Uptime: 41s And another one: Fatal trap 12: page fault while in kernel mode cpuid = 4; apic id = 04 fault virtual address = 0x800a22000 fault code = supervisor write data, page not present instruction pointer = 0x20:0xffffffff80b2c7ca stack pointer = 0x28:0xfffffe01c55b5480 frame pointer = 0x28:0xfffffe01c55b5480 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 68418 (pfctl) trap number = 12 panic: page fault cpuid = 4 time = 1625184463 KDB: stack backtrace: db_trace_self_wrapper() at 0xffffffff805c1e8b = db_trace_self_wrapper+0x2b/frame 0xfffffe01c55b5040 kdb_backtrace() at 0xffffffff808874b7 = kdb_backtrace+0x37/frame 0xfffffe01c55b50f0 vpanic() at 0xffffffff808449d8 = vpanic+0x188/frame 0xfffffe01c55b5150 panic() at 0xffffffff808445f3 = panic+0x43/frame 0xfffffe01c55b51b0 trap_fatal() at 0xffffffff80b300a5 = trap_fatal+0x375/frame 0xfffffe01c55b5210 trap_pfault() at 0xffffffff80b30180 = trap_pfault+0x80/frame 0xfffffe01c55b5280 trap() at 0xffffffff80b2f729 = trap+0x289/frame 0xfffffe01c55b5390 trap_check() at 0xffffffff80b304d9 = trap_check+0x29/frame 0xfffffe01c55b53b0 calltrap() at 0xffffffff80b0bb28 = calltrap+0x8/frame 0xfffffe01c55b53b0 --- trap 0xc, rip = 0xffffffff80b2c7ca, rsp = 0xfffffe01c55b5480, rbp = 0xfffffe01c55b5480 --- copyout_nosmap_std() at 0xffffffff80b2c7ca = copyout_nosmap_std+0x15a/frame 0xfffffe01c55b5480 pfioctl() at 0xffffffff85539358 = pfioctl+0x4d28/frame 0xfffffe01c55b5940 devfs_ioctl() at 0xffffffff807176cf = devfs_ioctl+0xcf/frame 0xfffffe01c55b59a0 VOP_IOCTL_APV() at 0xffffffff80bb26e2 = VOP_IOCTL_APV+0x92/frame 0xfffffe01c55b59c0 VOP_IOCTL() at 0xffffffff80928014 = VOP_IOCTL+0x34/frame 0xfffffe01c55b5a10 vn_ioctl() at 0xffffffff80923330 = vn_ioctl+0xc0/frame 0xfffffe01c55b5b00 devfs_ioctl_f() at 0xffffffff80717bbe = devfs_ioctl_f+0x1e/frame 0xfffffe01c55b5b20 fo_ioctl() at 0xffffffff808abc6b = fo_ioctl+0xb/frame 0xfffffe01c55b5b30 kern_ioctl() at 0xffffffff808abc01 = kern_ioctl+0x1d1/frame 0xfffffe01c55b5b80 sys_ioctl() at 0xffffffff808ab982 = sys_ioctl+0x132/frame 0xfffffe01c55b5c50 syscallenter() at 0xffffffff80b30cc9 = syscallenter+0x159/frame 0xfffffe01c55b5ca0 amd64_syscall() at 0xffffffff80b309a5 = amd64_syscall+0x15/frame 0xfffffe01c55b5d30 fast_syscall_common() at 0xffffffff80b0c44e = fast_syscall_common+0xf8/frame 0xfffffe01c55b5d30 PR: 276426 Reviewed by: kib, markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D43639 (cherry picked from commit 486b265a8fb6b2aad37f2819fa04feacf8184d53) --- sys/amd64/amd64/support.S | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index 6e541b75cdae..c95696bbe7ef 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -1532,6 +1532,7 @@ ENTRY(rdmsr_safe) /* int rdmsr_safe(u_int msr, uint64_t *data) */ PUSH_FRAME_POINTER movq PCPU(CURPCB),%r8 + movq PCB_ONFAULT(%r8),%r9 movq $msr_onfault,PCB_ONFAULT(%r8) movl %edi,%ecx rdmsr /* Read MSR pointed by %ecx. Returns @@ -1540,8 +1541,8 @@ ENTRY(rdmsr_safe) movl %eax,%eax /* zero-extend %eax -> %rax */ orq %rdx,%rax movq %rax,(%rsi) - xorq %rax,%rax - movq %rax,PCB_ONFAULT(%r8) + movq %r9,PCB_ONFAULT(%r8) + xorl %eax,%eax POP_FRAME_POINTER ret @@ -1553,6 +1554,7 @@ ENTRY(wrmsr_safe) /* int wrmsr_safe(u_int msr, uint64_t data) */ PUSH_FRAME_POINTER movq PCPU(CURPCB),%r8 + movq PCB_ONFAULT(%r8),%r9 movq $msr_onfault,PCB_ONFAULT(%r8) movl %edi,%ecx movl %esi,%eax @@ -1560,8 +1562,8 @@ ENTRY(wrmsr_safe) movl %esi,%edx wrmsr /* Write MSR pointed by %ecx. Accepts hi byte in edx, lo in %eax. */ - xorq %rax,%rax - movq %rax,PCB_ONFAULT(%r8) + movq %r9,PCB_ONFAULT(%r8) + xorl %eax,%eax POP_FRAME_POINTER ret @@ -1570,7 +1572,7 @@ ENTRY(wrmsr_safe) */ ALIGN_TEXT msr_onfault: - movq $0,PCB_ONFAULT(%r8) + movq %r9,PCB_ONFAULT(%r8) movl $EFAULT,%eax POP_FRAME_POINTER ret From nobody Sat Feb 17 15:28: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 4TcXk94N4wz5BHlW; Sat, 17 Feb 2024 15:28: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcXk93c5sz4fcx; Sat, 17 Feb 2024 15:28:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708183681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M8Az3tMV/BpUU7R/79Qf+eEt/pdEbadS9r7dNxvWwyg=; b=W8BLqiaUe49DS73QgJ79xk//CzrlOu77WsOZtBsQNFPxbCaIYQOMu2nIzgNszQYZ6/FoBt wC56N0w7q6OchTAXnyfILgZIQHtTsDckOrCI6Pae1ZfTSKmrzpNGcObs+e8Fw1ycJZpHbs s93z+wNs4Zlzys8dZHGstU64ttgBpz/UDcMlxrMnvfiCRnEFJkPCAlvajlNv3Bhk1h918I vowZhXeP9PsSAx6YCwlOdxFlWaKdk8l9K6CB/Q3NtI7ESQOD/OnlzJheJURQc6e84+3O4G eXwzdEEYxmmRzIZHoeS+iQcWaCvw3iiSb/mynKSoFBSB3WWcfVrnXwP/xVNQEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708183681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M8Az3tMV/BpUU7R/79Qf+eEt/pdEbadS9r7dNxvWwyg=; b=opz3BzRDmzGF16ysTJQmYE/4wjCg8INBDl5iLfL+PRlPU1bbOG11MIFPEuPy8Oeqnht27W WZ0YO9tRZwT/rpHCKkS/M1drdR6GXXAnvKTMWBQSxZloeQTbGKvckUoU34xbe7C4Fg9xAR vP2GK/5yd6LvLSV/tR33Zj0OC4RoOuE+ZbFlNxVEFne7ukQaFoNL1JWewgNtrimMDpJk40 D10YcAw0X89ZZAZVqjChKSRvEIvcUzhpNM3FvaxtdDHuFH5+50WJXLQWkvXTSw/kDzRFZC uJqECjkwrGZzQkwfFdBjxtkD8Ak2RD1QhVMUnFVqaxpcbwmMA6rCAwBDIEf3WA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708183681; a=rsa-sha256; cv=none; b=DDnTPODBzzSSUmXGkalxEjKLhLIU5YH8Jm+2n4w5fDUEpPeI5Atq70AavDJWmssZbbKVoa z8TeiyuwhQ0gP0rV63u/sIiPUyx46vO0Mt2VWnu2iys5oUMn8NqGcO6VH+oLYDFA3/1X9U Xdz1kVS6xaoFO/ZGByBK1+ENuFIHgbmSpY8ZrOx6Eg3f052HHlp9fvdf1U5WaAShfwA8Mr adPYs80BXKKNJ7c5vX9ghQ56cmIgjJzVan+M6aEXZf+YiNq11MlJoB8xbe+Thcnld3orOk B3Sqh0eMJ14YofxVYn2P7y3kTf/IeN/7Z0S4TfwItOoB5n/YE0Uso85zY6ArPg== 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 4TcXk92YV9z1ClH; Sat, 17 Feb 2024 15:28:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HFS1Gm098044; Sat, 17 Feb 2024 15:28:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HFS1rx098041; Sat, 17 Feb 2024 15:28:01 GMT (envelope-from git) Date: Sat, 17 Feb 2024 15:28:01 GMT Message-Id: <202402171528.41HFS1rx098041@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: b46dedfa48ef - stable/14 - run acpi_shutdown_final later to give other handlers a chance 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b46dedfa48efd5b448c33b5ea920df05241c04aa Auto-Submitted: auto-generated The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=b46dedfa48efd5b448c33b5ea920df05241c04aa commit b46dedfa48efd5b448c33b5ea920df05241c04aa Author: Andriy Gapon AuthorDate: 2021-12-20 11:01:56 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 15:14:17 +0000 run acpi_shutdown_final later to give other handlers a chance For example, shutdown_panic wants to produce some output and maybe take some input before a system is actually reset. The change should only make difference for the case of system reset (reboot), poweroff and halt should not be affected. The change makes difference only if hw.acpi.handle_reboot is set. It used to default to zero until r213755 / ac731af5670c7. Also, run shutdown_halt even later, after acpi_shutdown_final. The reason for that is that poweroff is requested by RB_POWEROFF | RB_HALT combination of flags. In my opinion, that command is a bit bipolar, but since we've been doing that forever, then so be it. Because of that flag combination, the order of shutdown_final handlers that check for either flag does matter. Some additional complexity comes from platform-specific shutdown_final handlers that aim to handle multiple reboot options at once. E.g., acpi_shutdown_final handles both poweroff and reboot / reset. As explained in 9cdf326b4f, such a handler must run after shutdown_panic to give it a chance. But as the change revealed, the handler must also run before shutdown_halt, so that the system can actually power off before entering the halt limbo. Previously, shutdown_panic and shutdown_halt had the same priority which appears to be incompatible with handlers that can do both poweroff and reset. The above also applies to power cycle handlers. (cherry picked from commit 9cdf326b4faef97f0d3314b5dd693308ac494d48) (cherry picked from commit e4ab361e53945a6c3e9d68c5e5ffc11de40a35f2) --- sys/dev/acpica/acpi.c | 2 +- sys/kern/kern_shutdown.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 9196c446ae80..7d1fc10afb9e 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -675,7 +675,7 @@ acpi_attach(device_t dev) /* Register our shutdown handler. */ EVENTHANDLER_REGISTER(shutdown_final, acpi_shutdown_final, sc, - SHUTDOWN_PRI_LAST); + SHUTDOWN_PRI_LAST + 150); /* * Register our acpi event handlers. diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index ea86a7e24d06..149a9456173f 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -264,10 +264,10 @@ shutdown_conf(void *unused) EVENTHANDLER_REGISTER(shutdown_final, poweroff_wait, NULL, SHUTDOWN_PRI_FIRST); - EVENTHANDLER_REGISTER(shutdown_final, shutdown_halt, NULL, - SHUTDOWN_PRI_LAST + 100); EVENTHANDLER_REGISTER(shutdown_final, shutdown_panic, NULL, SHUTDOWN_PRI_LAST + 100); + EVENTHANDLER_REGISTER(shutdown_final, shutdown_halt, NULL, + SHUTDOWN_PRI_LAST + 200); } SYSINIT(shutdown_conf, SI_SUB_INTRINSIC, SI_ORDER_ANY, shutdown_conf, NULL); From nobody Sat Feb 17 18:36: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 4Tccv70SyGz5BlNw; Sat, 17 Feb 2024 18:36:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tccv66kR3z46NJ; Sat, 17 Feb 2024 18:36:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708194962; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9DTvrihq2VFdY9//BxJbir+GKDlSKguDofbMZNqL+jk=; b=tRry6W6PFif76dBgCI3aubYvbxThA055cU44SDyvTJ1ua0KBXT8riHwp532L6ZxGamC7o+ uOOqrs1ZFMQobkKw8pANtYy4GrMuZessfOgrxuQ9jTsqueXi4L5cQZ/b6VD7KfmtuDOAed mwsq4gOR2keks8S2GwQM5s9rBAye5Wou4MidUHPONl7gDxeMK59eLHm2oZjMCWob83JXki oH76yzeNBHmr7KUZrsEjh6XqdH8edmIqoz7vKOPLrXzQKO26UkBH4RZOq/ye6W2221Rc6f 5pTte3AinkUMfjuKGMWeVSCIiCyc9Kc6rTtY6Gm/zH6piegWhQDYM5YIXnZcHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708194962; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9DTvrihq2VFdY9//BxJbir+GKDlSKguDofbMZNqL+jk=; b=A47RES7itorHKv2WwgJ0V44SJmF7OX0EWtK2w8KD7ck8b5WNkp/x2ONTg3UfhmVsy08n/1 XotYxr+oYPdXOWjPcEAdGg6wZXzXELyUIvFAEwruI2MReMQUT1HtVieF8JX/H/nCQc0Mjf x8Za192B36fc81rWkTsZZ//vmWlTXI5b91wY5WXnlfERqTFAsPppaRwQ3IznVsaSPG0bUe DKxjlCfCOzRojH/IHW8crg4aKwdIF8X0CwGr1q0kFCcS/1/tm2DrFk9hh3pP8rIUQU8Hcx WuCkBJKPQ0ju8jOxTHh90zoroQagQnaXFuNnFoY+71qbBrUyjVdZY+LOw5UFfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708194962; a=rsa-sha256; cv=none; b=vUB24jF+mZ0gC11NEDGk3TsAPx1O/16Tv1kdYuU4eTpyLbmRgHPW0cR6x1guEabqHCbfw2 TRhg/26Y5xHUNDU287/+MlzEgK06mgDHJLZeekxCjJoQRBe7SZMTWSOnQrCYAy68j7uKXY kp2sNmSUE8OVktEEXBV6g08F5xVLQzxMk6nQ8ApnbxlVn3owxvjBjJmiVIekkWPqYvVsR7 1OvzQuE3YtPZ03sEMnwaNaStykoW3aVSPz23hmbZ0N/0xVC50G9bfaBgnq/MxRwHa/R570 WR0Vc8qaolEhq39nzle8Kczy6FW7ssHxy6aimj57GoYmZZA4QqRN8UjSw83ZJQ== 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 4Tccv65mvxzJGJ; Sat, 17 Feb 2024 18:36:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HIa2KI016675; Sat, 17 Feb 2024 18:36:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HIa2Et016672; Sat, 17 Feb 2024 18:36:02 GMT (envelope-from git) Date: Sat, 17 Feb 2024 18:36:02 GMT Message-Id: <202402171836.41HIa2Et016672@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 394ceefc2f2f - releng/13.3 - graid: MFC: unbreak Promise RAID1 with 4+ providers 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.3 X-Git-Reftype: branch X-Git-Commit: 394ceefc2f2f586f303461428497d3961b89d078 Auto-Submitted: auto-generated The branch releng/13.3 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=394ceefc2f2f586f303461428497d3961b89d078 commit 394ceefc2f2f586f303461428497d3961b89d078 Author: Eugene Grosbein AuthorDate: 2024-02-12 07:24:28 +0000 Commit: Eugene Grosbein CommitDate: 2024-02-17 18:35:20 +0000 graid: MFC: unbreak Promise RAID1 with 4+ providers Fix a problem in graid implementation of Promise RAID1 created with 4+ disks. Such an array generally works fine until reboot only due to a bug in metadata writing code. Before the fix, next taste erronously created RAID1E (kind of RAID10) instead of RAID1, hence graid used wrong offsets for I/O operations. The bug did not affect Promise RAID1 arrays with 2 or 3 disks only. Reviewed by: mav Approved-by: re (cperciva) (cherry picked from commit 81092e92ea5184c4eeedad58044d72cfef72dd24) (cherry picked from commit 77814c95994aab102be0e327de788dc1c00c023d) --- sys/geom/raid/md_promise.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/geom/raid/md_promise.c b/sys/geom/raid/md_promise.c index 1c22c0756dfd..da2ea3d7da4e 100644 --- a/sys/geom/raid/md_promise.c +++ b/sys/geom/raid/md_promise.c @@ -1763,8 +1763,9 @@ g_raid_md_write_promise(struct g_raid_md_object *md, struct g_raid_volume *tvol, meta->total_disks = vol->v_disks_count; meta->stripe_shift = ffs(vol->v_strip_size / 1024); meta->array_width = vol->v_disks_count; - if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1 || - vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) + if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1) + meta->array_width = 1; + else if (vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) meta->array_width /= 2; meta->array_number = vol->v_global_id; meta->total_sectors = vol->v_mediasize / 512; From nobody Sat Feb 17 19:22: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 4Tcdwk01khz53xmY; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwj4Xzxz4Fdt; Sat, 17 Feb 2024 19:22:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+X8nugIZmZyAHMYHDAeSxPftwnUqziRE12FM3aCDd2w=; b=Iaqfo7y++3e8VpZZlZazJMtrXNXeoyL3AtmWTUOJu+zsTB4yFxeyZcqemQfNZQCngbdGfL H6XvYunwjzbDyIaajzjeAlCq/Sy1evomtO7JAfHlR2jYLrQUV6pLsaRm+gNPzBzpBt5ZpX zRYidd+hKe6gOjolj0PbVKNS7XMl0duY8CdbwcuA1sLPc2QQ+WDemAl+fnpdX+cK2gJxwr 5PZ3yjeC6CxYYZ6QZ9mlW/w/+E5JADoMP1eXsOPQnW3VMpH5rclJMZu03LEinq2NrpCAvT jN4V/PHfLpDUtSQssjkgbKRRrD08m61Wa+42h+RAFTpnJ0de3P1r6uRsgVHafQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+X8nugIZmZyAHMYHDAeSxPftwnUqziRE12FM3aCDd2w=; b=OOKSITSm6oX/eiMgJ7XPu8sVeQ6PdJgsmMc4wpCTKvfOiyHXAeYjiu4vRILDhNFjXiKMpp zQszDmy+0/UVEo1W7cWf9uOtML5wCbjZ8efmj/FnyllchpUf5z0REmv5ltITS18KTYsh/k ILMH/B21q2xgWoju6shCQCkypCS3w5gr/pn7mPhJTZJBZh90wNMO7s34O/ztRLPJrI+vWx JOnHGAlziHAnAK6m51HarEFgpbrPlWWqBPx6w+nET8/h9FV1QOmQGRWjCzBx0t5zeiip6j HHwWySS+mGG1PxMkemc5haGv6oQJ+MvNcFG+/qF8c6kx9sCrPZ/LH0oWu/NNTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197749; a=rsa-sha256; cv=none; b=dV2pkkrIp2c+kCk+aWtQKdwjKsgeY+8nbLg8O/wfF5iNcncGosT9gKHug54mNppU6BMs3W lDwwGb7DVWgrX1FN3P/bMwL7AtXcqpKhLFEIV4n7f9cJVXINz2rjaeBiYBtQr0hOLUF0QC wI/5otuWYwFq+FA8hNO3sqOWl5LulASucU25/uELlKKTQFDRvYX/5/EcK+jS6hTtwHBOjr CKX5oTAz/XTxKlEXcS8og4M304FbVRiQTvA9cJrKkHvQTzvIs7e4nBR2Vy5Khx/YSZDENq QGd0xFrgBkLZoIZliT94GBmqs94WmptrOv3LXOE2pOg999BzXScDP8GwDx78wA== 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 4Tcdwj3dQJzKvT; Sat, 17 Feb 2024 19:22:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMTES000252; Sat, 17 Feb 2024 19:22:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMTxk000249; Sat, 17 Feb 2024 19:22:29 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:29 GMT Message-Id: <202402171922.41HJMTxk000249@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: ac918f4354e0 - stable/13 - ds1307: restore hints-based configuration on FDT systems 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ac918f4354e0dd6cfcf895d395f4c03918a72eed Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=ac918f4354e0dd6cfcf895d395f4c03918a72eed commit ac918f4354e0dd6cfcf895d395f4c03918a72eed Author: Andriy Gapon AuthorDate: 2023-05-02 20:46:39 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:07 +0000 ds1307: restore hints-based configuration on FDT systems Fall-through to non-FDT probe code if no matching device node is found. While here, fix indentation of the switch statement. Also, make the device description for the hints-based attachment the same as for FDT attachment. Fixes: 2486b446db ds1307: add support for the EPSON RX-8035SA I2C RTC (cherry picked from commit 34694f3da7f9537c34b1878206c65a8cda16c6c0) --- sys/dev/iicbus/ds1307.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/dev/iicbus/ds1307.c b/sys/dev/iicbus/ds1307.c index f7a01e652390..8fe425f40a4a 100644 --- a/sys/dev/iicbus/ds1307.c +++ b/sys/dev/iicbus/ds1307.c @@ -225,10 +225,8 @@ ds1307_probe(device_t dev) return (ENXIO); compat = ofw_bus_search_compatible(dev, ds1307_compat_data); - if (compat->ocd_str == NULL) - return (ENXIO); - - switch(compat->ocd_data) { + if (compat->ocd_str != NULL) { + switch(compat->ocd_data) { case TYPE_DS1307: device_set_desc(dev, "Dallas DS1307"); break; @@ -244,11 +242,12 @@ ds1307_probe(device_t dev) default: device_set_desc(dev, "Unknown DS1307-like device"); break; + } + return (BUS_PROBE_DEFAULT); } - return (BUS_PROBE_DEFAULT); #endif - device_set_desc(dev, "Maxim DS1307 RTC"); + device_set_desc(dev, "Maxim DS1307"); return (BUS_PROBE_NOWILDCARD); } From nobody Sat Feb 17 19:22: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 4Tcdwl0QzJz53y3H; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwk5ZWyz4Fc6; Sat, 17 Feb 2024 19:22:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d4kgI43oyF1t3z6qE5f8VWd4yV62hwgRIEFpQlmkqsA=; b=Rp7Jt0DeYPhco+qFmq6WSU7dkdjXK4Ii7pRxZnIKf8vUiHyrKDsawVawnEm+7X+EGYK1n/ D717b2UWgfQCTllM7Qg8yqCTheTdsNYprbWGJiIPdcExlZn8MBfDwEwgO0qdFMu4zptsof b54itI08NXs5uAYJgPF0UbG/GXFRifG/HMMqWkWNDjNe1S1eg22Wb+SyGOSRNMVMNAvTa7 KUQw1/T68aRgvEqxbx0WrOQxE+AA9VkESRJVlaqF2JxTEb9OjZ4MVlvJyPUqqvb3iU/TIU n7EnNkd6BSpZ7hU6qKvIk1uZHzZtZWolGsm3E/gj/vSZ7do+6a1r+Yo1pWPrvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d4kgI43oyF1t3z6qE5f8VWd4yV62hwgRIEFpQlmkqsA=; b=Dms5+E7Db8cNH5ru/lUBSR+ccdICwY+Udd83+3+rwyWtXhVcMhklDL5/P7iPjNCThSy8iC I3IMLWU6L8NdGAxVNuAOTdtq/z4SVOhHSO13hZgcqumjiPcsC7urPUpoiPFFQVH1S5+vTF fzFFRNgFBs7ol8yw8SAvY3RQsLNUBILI52cjZybgY8RJFT6EbQ4OoE8ETaAz6G3hgbLCKj e39b2qXaANP97J5xNvOwJT0NbeH7caR9nl5mCLAf7Mt9zXSOwQ6W1LwxZaZpNhu4duc3b4 PuGCQvORtb1jJwJD6bHr2mi3uRXoDtbKz2UA/CVmaRBNOzmkEO9rH5TBipVX3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197750; a=rsa-sha256; cv=none; b=t3FM3PsaSzv3XzqdSexKiRtjaA/uTdQ3RFPRvrI/7QWvVQcA07KoICT9BfOE0jd6q4bXwW cZ+LL2Ep81fXuLaqDTa/qrvfKT1gsYlP+cdJwtQ/hWWS3CRyn5ymA8xTW4nYZD7Zpao8F6 5TeHdT3j/9qP0IeJvb6bgHPddi42B/toJ8VM3FOFnb2UKax82FGYh8ZC867vN8KMjjl2NV ZpgwZ/HqbURHGgqJmFipztGzifXoe1eYtBOTC1YLhr7G9jLTJJO7mWiQt6se0/mai2DitO fRplgya4B89TeiFEXV+8ht+HexfToSe5ifJ+UCOykmUzLHampeP3uzQabmv1Bg== 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 4Tcdwk4fmrzKdR; Sat, 17 Feb 2024 19:22:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMUMp000298; Sat, 17 Feb 2024 19:22:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMUCs000295; Sat, 17 Feb 2024 19:22:30 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:30 GMT Message-Id: <202402171922.41HJMUCs000295@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: bd51dc9408d2 - stable/13 - usbdevs: add Ralink RT7601 aka MT7601 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: bd51dc9408d26279c7ab5e016a5806f5448d16a2 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=bd51dc9408d26279c7ab5e016a5806f5448d16a2 commit bd51dc9408d26279c7ab5e016a5806f5448d16a2 Author: Andriy Gapon AuthorDate: 2022-07-10 20:11:56 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 usbdevs: add Ralink RT7601 aka MT7601 This is a popular USB WiFi chip. Unfortunately, it's not supported by FreeBSD yet. (cherry picked from commit 5b54b6ac8ca1bc0653a3b31e79c1bffd9b227c6e) --- sys/dev/usb/usbdevs | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index a54b0b0956b8..602420b44ce7 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -4021,6 +4021,7 @@ product RALINK RT3573 0x3573 RT3573 product RALINK RT5370 0x5370 RT5370 product RALINK RT5372 0x5372 RT5372 product RALINK RT5572 0x5572 RT5572 +product RALINK RT7601 0x7601 RT7601 product RALINK RT8070 0x8070 RT8070 product RALINK RT2570_3 0x9020 RT2500USB Wireless Adapter product RALINK RT2573_2 0x9021 RT2501USB Wireless Adapter From nobody Sat Feb 17 19:22: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 4Tcdwm2Lypz53xrq; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwl6hvnz4FV5; Sat, 17 Feb 2024 19:22:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5OIVGoyNodAP19UqfZ1IaDUneQFsKv0EpHw7xPAAQN8=; b=mwHvYtt7m0Uhg6/+2WFcF5d+aeMAgEi3UWsi2WPN9IvPBgk5XFqrgUstxyoMwV2GfqJ2Ws Y+uOaJmvsuLCh1UW2MQZJ9jxHZ7KW+rGAtRP3Xb+RU+n1WpVI5JxYxvfKEcyiBt/0Mb+JN Bt7mMYxfi3RIzwZz0hWZ7kwmN1jQ+ltyUEIK0jzATyRR76ecf8rPoAwkPMo6AafSOwAz6e fRuBpbZpIpuJ0UiCOOXF7kMcHI2fnoM5fBD0AuFcFXEKNcpXLH5E8f7ci5FHN5oEWV2kOb VphQ5oaVyw2kTH+tQPVyki45QPOb6aHCQCxRNBZlW30U3cJwaFl1RejV8z3PXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5OIVGoyNodAP19UqfZ1IaDUneQFsKv0EpHw7xPAAQN8=; b=RfwZY94dSQe1/sI+Y1wLPXZ5ib+DNZP6RZOdDX44s0LmLVxsSuieAp8KbdIfV4c3Gw43gW 4m3O1ZrCQUE56ccVcQQaYbJ6iqYK/lnrihhrFCVe4ON0C29v8nFE6Q8XTCPqJu95pfEK66 yAyE4GXWp7O4AWlLANKleKb2OW39oAfU6lJvQTh1apxE4zb0WZzbsn/aKefZ388HgeBIFm fXCRh2JdM8fwNV6Fkp4XTtKagR3gzmZ++XkmoeRHYWFSNcAJ4XwD0/TOrVsw35ZRMUNvdn WqeSGJb9vS86kxlBoyii21ygGuhFW4Um0r1hleu3lhji0jJ4eH1+21f8Z2n1EA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197752; a=rsa-sha256; cv=none; b=b6OxMqiHMwNZ3/D+BAPy2JaxOaW2/wUDsHmcrELsfXcOUtli0EZPDqArgsc3R7jlJ2opMv Ryk2n9dpxVGT1VEtbSoAHqcB3xnjOHXcJmGdw6TB8nN7hhU/FKIn2gR1hijxAWYTTtdIno JlyfkRqR62hJmQojYef1iWedqBBZAO1SCXxXuKLQ98/IogZjS1dMhDRZgbv2CnGEDwc2fv QKcpug/YPh6M89xXxNw180IkrPE9PjaRh0yjG9te3idxatGKBkC5Hgg1cyh/wQDnM+/c72 fDJ6GeD1RZwmvAxzEhcGv+LGAmY2lIxUn3lbZaJKwERHiNbXsvPXj8r4pp6qkg== 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 4Tcdwl5gjGzKvV; Sat, 17 Feb 2024 19:22:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMVBc000355; Sat, 17 Feb 2024 19:22:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMVEp000352; Sat, 17 Feb 2024 19:22:31 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:31 GMT Message-Id: <202402171922.41HJMVEp000352@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: bad04f1ebc3a - stable/13 - add allwinner overlays for enabling additional USB ports 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: bad04f1ebc3a3a979535a53ee109ede94b636aa9 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=bad04f1ebc3a3a979535a53ee109ede94b636aa9 commit bad04f1ebc3a3a979535a53ee109ede94b636aa9 Author: Andriy Gapon AuthorDate: 2022-07-10 20:09:23 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 add allwinner overlays for enabling additional USB ports For instance, on NanoPi NEO two additional ports are available via a GPIO header. (cherry picked from commit 197944948e6229f625306f38403737ed723e544e) --- sys/dts/arm/overlays/sun8i-h3-usb1.dtso | 14 ++++++++++++++ sys/dts/arm/overlays/sun8i-h3-usb2.dtso | 14 ++++++++++++++ sys/modules/dtb/allwinner/Makefile | 4 +++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/sys/dts/arm/overlays/sun8i-h3-usb1.dtso b/sys/dts/arm/overlays/sun8i-h3-usb1.dtso new file mode 100644 index 000000000000..247faa370a14 --- /dev/null +++ b/sys/dts/arm/overlays/sun8i-h3-usb1.dtso @@ -0,0 +1,14 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-h3"; +}; + +&{/soc/usb@1c1b000} { + status = "okay"; +}; + +&{/soc/usb@1c1b400} { + status = "okay"; +}; diff --git a/sys/dts/arm/overlays/sun8i-h3-usb2.dtso b/sys/dts/arm/overlays/sun8i-h3-usb2.dtso new file mode 100644 index 000000000000..02533289e3dc --- /dev/null +++ b/sys/dts/arm/overlays/sun8i-h3-usb2.dtso @@ -0,0 +1,14 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "allwinner,sun8i-h3"; +}; + +&{/soc/usb@1c1c000} { + status = "okay"; +}; + +&{/soc/usb@1c1c400} { + status = "okay"; +}; diff --git a/sys/modules/dtb/allwinner/Makefile b/sys/modules/dtb/allwinner/Makefile index 517c1028d12b..c4a48addef14 100644 --- a/sys/modules/dtb/allwinner/Makefile +++ b/sys/modules/dtb/allwinner/Makefile @@ -29,7 +29,9 @@ DTSO= sun8i-a83t-sid.dtso \ sun8i-h3-mmc0-disable.dtso \ sun8i-h3-mmc1-disable.dtso \ sun8i-h3-mmc2-disable.dtso \ - sun8i-h3-spi0.dtso + sun8i-h3-spi0.dtso \ + sun8i-h3-usb1.dtso \ + sun8i-h3-usb2.dtso LINKS= \ ${DTBDIR}/sun4i-a10-cubieboard.dtb ${DTBDIR}/cubieboard.dtb \ From nobody Sat Feb 17 19:22: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 4Tcdwn24fxz53y3C; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwn0XcLz4FXh; Sat, 17 Feb 2024 19:22:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aNhM/9Gu1A/YoC8YFoFTSTn+RDyPEqnQPoAm/AYWCFk=; b=tudPX4RlXG8e08ityIkP7iKQgxqqAMkz7NmpRRgstGycQPLreUDTrNVF8O47v6CJ+th+le D3aou95EeBwd8UrDGt8322Qp7efo3/4gG4MeUEFYUIlPqfI83iH831mik1KEyT8a/x8R1G HJLVjlNXam9Emx28nzgt5yShpeO7foskrwGGskaDGkpJraBCZ1W+YUQcVhRJT1Lqy0KwNQ m97bvRCiastdbzdvlhOh/2ZUq6UcWEu3BYfGoAFoc3Licy34YxHbAu7l22NOYuF955bv9t s8NeGtlo1ffVUkpM0Li5MGWguoEcv9PVGyL4cf3vFd8QoQSwSE+G3Gi38tZe+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aNhM/9Gu1A/YoC8YFoFTSTn+RDyPEqnQPoAm/AYWCFk=; b=i6TitXquej7kwW8Ga233B3Q3W/snJyiggFa72vfcnXc66ioDstlYl4Gu+jbglZ6ZIVnuHJ ua5dvFz2UGLs3+owSUAdaHUpW0nkInZZ/bTJLUSPDlmkjD7opeX4OAZlxTLO+gOvz7OJQJ eJaiQ5QbCgZup5Nvox+u57UZGGpowFbBBBo3miWGI+k1FyLjd+sB5IEpUKhNd3K+G5A55f 14uoqFbhd9aTer97qWW5ieKX3GSL+YhtIWpN5WKy5W8DBifcaX3QGD1czVpb1n8UrGRE4V 2HHIHFSuQNNZEEqkt5SRVTQ5VcNsVDy2Jid1+axRB4a4PaJo8gHmCZLYRV3+tA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197753; a=rsa-sha256; cv=none; b=mIMzBXOcRIO3kqz5NKU3VEosh65qJw7DcxkbwLLGfVUVNGdEZ/JPQlQLbVg4lZkC7+7IX2 wSx8B9E9HWo9eFbwT4oJX3OhxtUnG7hFc8NUDl7XLlw+UKi1gXMnNHIMHt6tHDMTOZciRd PgRjAyjnn/VJVK9p4LAHpOJRNeXZur9pLlNeBuK8RRuSFl/yUxp2XkU7TGj1mk4B2ITmeK sE9As+Xy+dsqMBNyRMQcVPK/fKMQ739HbdKQMHlK+pzoAhjuuO4RE7a2FuVTg+uKSjdVQ5 1IQgo06DdvUdVVnbR41cUy+No+H57x5ZbXOLTFzXfCib5eJcamFHyUDR30gQiQ== 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 4Tcdwm6lgwzKvW; Sat, 17 Feb 2024 19:22:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMWOx000404; Sat, 17 Feb 2024 19:22:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMWPv000401; Sat, 17 Feb 2024 19:22:32 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:32 GMT Message-Id: <202402171922.41HJMWPv000401@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 929db0457513 - stable/13 - gpiopower: trigger low, high and both edges 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 929db0457513b577c4e256f6633dc72f76151c91 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=929db0457513b577c4e256f6633dc72f76151c91 commit 929db0457513b577c4e256f6633dc72f76151c91 Author: Andriy Gapon AuthorDate: 2024-01-28 11:29:41 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 gpiopower: trigger low, high and both edges Power off or reset may be activated either by low or high signal or by an edge. So, try everything. Also, the driver now supports DTS properties for timings. Finally, the driver does not change the pin configuration during attach. It is assumed that the pin is already in a state that does not trigger the power event (otherwise we wouldn't be running). (cherry picked from commit 320e4beb97618c6964380bfa404a3e96c5de7663) --- sys/dev/gpio/gpiopower.c | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/sys/dev/gpio/gpiopower.c b/sys/dev/gpio/gpiopower.c index a3dd8b02622f..a60214e2a51e 100644 --- a/sys/dev/gpio/gpiopower.c +++ b/sys/dev/gpio/gpiopower.c @@ -34,6 +34,7 @@ #include #include +#include #include #include @@ -41,6 +42,9 @@ struct gpiopower_softc { gpio_pin_t sc_pin; int sc_rbmask; + int sc_hi_period; + int sc_lo_period; + int sc_timeout; }; static void gpiopower_assert(device_t dev, int howto); @@ -65,6 +69,7 @@ gpiopower_attach(device_t dev) { struct gpiopower_softc *sc; phandle_t node; + uint32_t prop; sc = device_get_softc(dev); @@ -81,9 +86,20 @@ gpiopower_attach(device_t dev) sc->sc_rbmask = RB_HALT | RB_POWEROFF; else sc->sc_rbmask = 0; + + sc->sc_hi_period = 100000; + sc->sc_lo_period = 100000; + sc->sc_timeout = 1000000; + + if ((OF_getprop(node, "active-delay-ms", &prop, sizeof(prop))) > 0) + sc->sc_hi_period = fdt32_to_cpu(prop) * 1000; + if ((OF_getprop(node, "inactive-delay-ms", &prop, sizeof(prop))) > 0) + sc->sc_lo_period = fdt32_to_cpu(prop) * 1000; + if ((OF_getprop(node, "timeout-ms", &prop, sizeof(prop))) > 0) + sc->sc_timeout = fdt32_to_cpu(prop) * 1000; + EVENTHANDLER_REGISTER(shutdown_final, gpiopower_assert, dev, SHUTDOWN_PRI_LAST); - gpio_pin_setflags(sc->sc_pin, GPIO_PIN_OUTPUT); return (0); } @@ -108,10 +124,16 @@ gpiopower_assert(device_t dev, int howto) else return; + gpio_pin_setflags(sc->sc_pin, GPIO_PIN_OUTPUT); + gpio_pin_set_active(sc->sc_pin, true); + DELAY(sc->sc_hi_period); + gpio_pin_set_active(sc->sc_pin, false); + DELAY(sc->sc_lo_period); gpio_pin_set_active(sc->sc_pin, true); + DELAY(sc->sc_timeout); - /* Wait a second for it to trip */ - DELAY(10000000); + device_printf(dev, "%s failed\n", + (howto & RB_POWEROFF) != 0 ? "power off" : "reset"); } static devclass_t gpiopower_devclass; From nobody Sat Feb 17 19:22: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 4Tcdwp5r6Pz53xg3; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwp1NsJz4FZb; Sat, 17 Feb 2024 19:22:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uzLMpoqaYCP+RpRNr3K8fTk7fzj6O3d3mL0VR2wCS3U=; b=toZwQk2uYrpramCFS5TpKUZgRgEaS6jDbYVzcUpzAW34jSEUPnRiIH1TSvHTEJs1T7BJCN 4yEUdGmtW/z6dZ/McePigbPD4+NlLML0qlanPEk60nzRn0El6KHIPzhz8kq2bZSuvhDneL RVDZd5eY0IAdSWWO8ezUUdLepUa6blMcrACJIOnWE1zzVHJhDR2XkiexVn8hoslUUh90Lp eWaSiCWeMRqVi+q8woEyLUaKKp5hioWVuslARPtWyPtcLJNafCkpl2GcqMrgLdXiccF+t+ CwexvpTP1qQBwx85hb0emP+SaYvTzJ2c7D0J7T8I8w9wK06rKhkH4CK/1/ZOfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197754; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uzLMpoqaYCP+RpRNr3K8fTk7fzj6O3d3mL0VR2wCS3U=; b=KLpS/dFzutRUsmWEYxh4iqG4VnZCrbjvgV1h2dSRT7GD+xNf0mX4eskiFamX1xI4qPnush DdGf7/kInEtbI7Mbp1RP4LORiJpu/WByuRAjuZOynKONtjXjIVchjVbBvjkjnKpqLvlGio bN0phS0Ncd+nwcV9BjnQNeBBvJNg0N4aRpTU5S+4HvyM/scgYaNC6zFksfMfPzd8fNLWCc hBqBy4KmJ2nWJTOq6aoSe/rEnt0//q7CLJ4AfnvLvGGEYL1uTcmf37dhh3oLh5leC5UN1f yrWY2E40ihuIjGedrz5zcyFJ1TbM3tbGHotEQIzEgAzqsea0clUqh6WVBdQtKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197754; a=rsa-sha256; cv=none; b=wod+vJyRlvlk8dkK2ylyjmlz6kR2RxJw14qgdBjKRWx4754UdMxLdLu23ByZhEB6icIwH+ RgDebBAmVDwpi1fSlLslJktEv+oReWuxir2ImEot+FOL/mSdMQRNFbeJkzlPYJznbNkxV9 ff3vce6IeIUEOx5fcAroQZq0RAhN0ucir2XuhGrxFjXBPcqSehANKveBhkT7l0QM35j9Lx SC5RgnNDVmPQLiH5uI060UNidmOQSKiMZgGdUlr4lG4jdLknJLmKLUS5JAnP6vD0tndWQI T1jyFf6Lt9jL7/6ZcuW98JxhurCMichqwia7zWDJA/S2CLZxDRU1uQQiSQtWtg== 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 4Tcdwp0Vx6zKdS; Sat, 17 Feb 2024 19:22:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMXNS000443; Sat, 17 Feb 2024 19:22:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMXHx000440; Sat, 17 Feb 2024 19:22:33 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:33 GMT Message-Id: <202402171922.41HJMXHx000440@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: b44d933e2617 - stable/13 - dwmmc: fix a 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b44d933e26170f92c797dd3daab3eab16589acc0 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=b44d933e26170f92c797dd3daab3eab16589acc0 commit b44d933e26170f92c797dd3daab3eab16589acc0 Author: Andriy Gapon AuthorDate: 2021-09-24 16:32:39 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 dwmmc: fix a typo (cherry picked from commit ea7f45d3d8d5d41a9cded5765dea43ed215a663b) --- sys/dev/mmc/host/dwmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mmc/host/dwmmc.c b/sys/dev/mmc/host/dwmmc.c index 5e8ae3b39508..f41c15eacd14 100644 --- a/sys/dev/mmc/host/dwmmc.c +++ b/sys/dev/mmc/host/dwmmc.c @@ -878,7 +878,7 @@ dwmmc_update_ios(device_t brdev, device_t reqdev) sc = device_get_softc(brdev); ios = &sc->host.ios; - dprintf("Setting up clk %u bus_width %d, timming: %d\n", + dprintf("Setting up clk %u bus_width %d, timing: %d\n", ios->clock, ios->bus_width, ios->timing); switch (ios->power_mode) { From nobody Sat Feb 17 19:22: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 4Tcdwq53Dnz53y3S; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwq2Rq8z4Fns; Sat, 17 Feb 2024 19:22:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TOPMUn9Coq/sGrtNVbZIZ7a7NwSQw6Yh+33IGPwdiv8=; b=J+0pc5s33i7fjTGBk3bfF0g/jGNwaP6lRPdvl3lwmOpT+PIs/KQNuVYfPP6U5G++fwgJL7 JA+uzsoQehz0W0cijiTDoEUty/ANcK0GkWvjGyqMVf7XbrTwe5OSWXkHO6EmWYRLZo+UPQ mdJnLS7mvtcNVNvPORiMvOINTIPN/5YdOBrsEbMXwAvBphnM+ctq6mZDNeQH5rWQ2QC88R +6+s4jdK8LZ6uaSxTsczdhZsPVa+9PM/i1juDDeANuovevGVNSppKcgpYvNDkzMUipfEI8 8Etv4jD05wF489mo8UpndIyyoTHkjGd3nKidvdSec3uKP0I1ZliswdbxIzYLIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TOPMUn9Coq/sGrtNVbZIZ7a7NwSQw6Yh+33IGPwdiv8=; b=nG448IKeWX6xNrLuvtqU8TNRd6iIppBEanMzznETC9AbwIWEjeC/2EUYvoToNE068svYlG k7tThxn8FpcARdZlvQ5bJZfsqYixEDRmCVbM1bPM05jtCqbWQ+Kbqv9D+MBC7/uPltOKhl aGzdfefWtZiYlRzqvSkWwqP0A1b0lz4LiGiy9NZYcWze0tIF4JqopJLGM/BW/cAiRpL+Kn Cl0Gcp5BEaVEgESNc/mkzuYOIVMwxt4es7LTVrUJs0kQ7qAHY4dWKMoYl+5C4HAxthsrjK o8Wp7NFyXRyoxgsog7+9h0ggTapjiCYXdnXIP35F0CpuOsevNUqQEtNurJocnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197755; a=rsa-sha256; cv=none; b=ihEj6IJ72Pceity+I37hqZadaGQEuFBNmYIUsd/bWxqxN8M4VJbyeLC5K+j9RdhDGnJRVh zTt0BAFn3iNPFRpEcnmsTPrtU8KBrGffiodGqkNxO7jHQ3XSXFTkYsS/ejSKWNPSi17HMs uQqgh4HZdjtaY7V5qBS0rf4F7xcrbaE/65k5jFW30OtkWj1ZzvSjZyWzlElAGB0WHbD9zG W2FIUDe3sV1Th9vSw3c80dKCYEfV0Y1knYqhhQB7zj3rVv2i1PYhPwC/nj1Ig90IfyyhVc MwVDNH0BhZXkRZi2IZjI2JKvGBw0a4VoMUNFdV9KSfsTXRgHuLtWxTQDgherXQ== 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 4Tcdwq1YGgzLHw; Sat, 17 Feb 2024 19:22:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMZm7000489; Sat, 17 Feb 2024 19:22:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMZLd000486; Sat, 17 Feb 2024 19:22:35 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:35 GMT Message-Id: <202402171922.41HJMZLd000486@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: a4e1bf22796a - stable/13 - mmc_fdt_parse: remove redundant bootverbose check 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a4e1bf22796a070f3fbf43d387277f056e59bedc Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=a4e1bf22796a070f3fbf43d387277f056e59bedc commit a4e1bf22796a070f3fbf43d387277f056e59bedc Author: Andriy Gapon AuthorDate: 2021-09-24 16:26:06 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 mmc_fdt_parse: remove redundant bootverbose check (cherry picked from commit 43ca38eb59ff194fb6d8ad589e74147d94717bf4) --- sys/dev/mmc/mmc_fdt_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mmc/mmc_fdt_helpers.c b/sys/dev/mmc/mmc_fdt_helpers.c index d53216e19da3..809b59c28167 100644 --- a/sys/dev/mmc/mmc_fdt_helpers.c +++ b/sys/dev/mmc/mmc_fdt_helpers.c @@ -67,7 +67,7 @@ mmc_fdt_parse(device_t dev, phandle_t node, struct mmc_helper *helper, device_printf(dev, "vmmc-supply regulator found\n"); } if (regulator_get_by_ofw_property(dev, 0, "vqmmc-supply", - &helper->vqmmc_supply) == 0 && bootverbose) { + &helper->vqmmc_supply) == 0) { if (bootverbose) device_printf(dev, "vqmmc-supply regulator found\n"); } From nobody Sat Feb 17 19:22: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 4Tcdwr5Z8Bz53y5s; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwr3Nrkz4Fgc; Sat, 17 Feb 2024 19:22:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=07IeVfJxvGHvmwZ24yhEP3A2vZju4MI7sxt5NF9C1C8=; b=sSzRKcsSNxZ5FN0ZiXbwoIfUgBntoQzayV2SRy9LSTHEv5qScz9TKGJDmi4RJYtDzUM3wR z1YLy+X0MwTWE3xtWpOtGc5DJInDfpRa7DHPwz9W4w//gZVZ2bLfO5CszRlGczMl0WoBEs CsCz15Y4ob78k7SO22w+rm8hZLwkhdSPJ80w+LNmi6azDXXHlGOS4UO2X8jXL6rxjH47Db vFBEJ4lG3p9sH9RUydL3nW2vP2QBhSCXz7tXVaoFMqd3q27PkLUHkao11y0U7qQsw1utw/ GjYPNZxhYVjdDAS1pnl36l+kwt7AtkFQpPiakps2rEiYCqp5LlItZRR69JuGcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=07IeVfJxvGHvmwZ24yhEP3A2vZju4MI7sxt5NF9C1C8=; b=L+8+QfI3CppE4w2RxwVfjqMK19qF9G6+1UdLnY8Rgd0pNmn6dLaz05NlCB3UzX60BifDR/ oefKLzHsEhLMqcqSIfu8SKiHO4uHqid/0boWtLOCfXo2KQpyRYolnI97tVdKNZso7naxKC ftb7FGaW9bB+Fcy+iIUjYbFS6YNdOiBOMfz3hM+6WUFgdm0OFMdlcM4z9H5UNHPsawjFZ5 I1AGB3X5TmjVDsYtY/ayKoJmYriCl+qEAYFrfaefH0E3GNCOv1DqYVhPCXV+NLVg1qbFVI PDorTlv3e0alGPXrZ8J5cFhClWTDVMIlLHhd+ty7SN7U32JkG9QKRKl0cThSag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197756; a=rsa-sha256; cv=none; b=dYSiX47PxLAvkeKIUhm63EFjYtRZeLrcM0/CAkD946hnapQOUNn1Y+W7bjT32vWcku2gJm /akbTcgP/1O4mFDeJBuj55hfMd1qaXXoJFUO/pIuhI9LbngViwSvhIOw8aJCwozCaVGQTG H78WT4vCFeQpVoUN3vs8dR3uz9wL7ArBIJzLnh7+2yQSPGXYkq0Ril1rJpW/hNNGAHTjqv 5skJG2bKAwxqe4pOgDFn2VuugJyJt3fKrauL1so3VKr9goLLLEPA5c324CwSyhjRX7UCEg 2BeRY/vnWBBdCODDwy6ZsesEDCaO/BTK30UQgdQHbPiuBD908VFwAwwkGjdGBw== 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 4Tcdwr2VWvzKLf; Sat, 17 Feb 2024 19:22:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMax9000536; Sat, 17 Feb 2024 19:22:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMaQc000533; Sat, 17 Feb 2024 19:22:36 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:36 GMT Message-Id: <202402171922.41HJMaQc000533@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 392953c490da - stable/13 - fix signature of ipmi_shutdown_event 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 392953c490da99739feeb51e8917325ba30b802a Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=392953c490da99739feeb51e8917325ba30b802a commit 392953c490da99739feeb51e8917325ba30b802a Author: Andriy Gapon AuthorDate: 2023-01-03 17:22:21 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 fix signature of ipmi_shutdown_event The function had a signature of watchdog_fn while in fact it is used as shutdown_fn. (cherry picked from commit 90dc7889825d13290955d0eb7e1fb4388c0a0135) --- sys/dev/ipmi/ipmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ipmi/ipmi.c b/sys/dev/ipmi/ipmi.c index eaf58425fa3c..7fef4d5ad103 100644 --- a/sys/dev/ipmi/ipmi.c +++ b/sys/dev/ipmi/ipmi.c @@ -728,7 +728,7 @@ ipmi_wd_event(void *arg, unsigned int cmd, int *error) } static void -ipmi_shutdown_event(void *arg, unsigned int cmd, int *error) +ipmi_shutdown_event(void *arg, int howto) { struct ipmi_softc *sc = arg; From nobody Sat Feb 17 19:22: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 4Tcdwt13t3z53xd1; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdws4Cnmz4Ftn; Sat, 17 Feb 2024 19:22:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MM8scwRe86QvGy8h1qf7EoM+fAAWIJqGnaFUN4fFQB8=; b=EZywAPf3NkpOQEUJxPUc5hTk0F5/z1EzJ6p0Qp0hGTLQZH/xtzuePsPG/n6I7pN99NZBVD +KGW52NNxC7hr7UevJcC7GzAV6EVXy5c+TyXk4FoJQPNyDbTWl9gmFfXOLjfPBXJZdSk+l Y6yGGCG2EOIk/rTI987wiJA00I5X+se2/e5cflNT12YQsGBy5XEXWvuIvtcJcRxPU9+iLw D9p6hi3wm0JksnIETlmmOQtIjvrf45KtGAAEymQulNdEQJmtt3sqDFUG4WG1sVFOpkd4+z Csb2ADLhCRNR2pBjDVwPBzB0XUK9baiOaiTmqTZ4YC/C3S3HOi08lqLU29qGGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MM8scwRe86QvGy8h1qf7EoM+fAAWIJqGnaFUN4fFQB8=; b=mgIz4dHHvN519V5QtHmt+FzpzOo7/+0NKTSisoYqEv0Ax/2FI+xzsBPytunU6R53UIg/8z H2Enz/t4Ae9FUANpCA834wp3XqiAQijdAkOuqkTmNEpoVNcTsgrkozivgVRPxgZheuwpr9 O1awkn6rVRmU9aT6RpREWA2K+hyBr5sm/NvC/DQz8iftYVXzjLvvnhP8aok8AMCetzFny7 KHQ7jV0gehjgS63hpbs+MHChFJtlfsOVeerC0tHn+LbfGiSKWMI+2y2SHR7H1gAxQHyQgv gU9GF7+sQMh6hbDOxAujH2yrjr03zDA8GYx0aCfk4WYyvTjRREalyefhfzV5eQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197757; a=rsa-sha256; cv=none; b=rdco/L939/bgUWUNidwVEiVSNMZb4KN86RBqV2/0kK06EaDqGIt0+cvFBA1E0wUc2qN2vG ZAER7Mv8jzRLXaFpJpkCkfq6uGZinN8xnHXx/ct6BkuY4dBK8akYCfDG8gROEYyMvQmTgS 1ipuI+tgLGTa3Cz2bI3SvYQawKkSvk26+y85XKTeWiMq1piCRMeJX41OeC0opg63JrvGt5 e/il6/mP5QwuEHddHaTO/iiAF7IvGI/9dtadfzFoDTHVxguQQsK6mZrmhmQPFAoxuQfbv8 OtlOstI9Y8/LvJIRYAgTp1McfJ9YOrCZFrJkCVQRGoc5fvNZEVukldQfvylZOw== 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 4Tcdws3K1JzLHx; Sat, 17 Feb 2024 19:22:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMbGQ000597; Sat, 17 Feb 2024 19:22:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMbXv000594; Sat, 17 Feb 2024 19:22:37 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:37 GMT Message-Id: <202402171922.41HJMbXv000594@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 9ca7451d86dc - stable/13 - change ipmi watchdog to awlays stop when system is halted 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 9ca7451d86dcf8fb072491028e3b0fb50b2299c5 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=9ca7451d86dcf8fb072491028e3b0fb50b2299c5 commit 9ca7451d86dcf8fb072491028e3b0fb50b2299c5 Author: Andriy Gapon AuthorDate: 2023-01-03 17:26:45 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 change ipmi watchdog to awlays stop when system is halted That is, wd_shutdown_countdown value is ignored when halting. A halted system should remain halted for as long as needed until a power cycle, so the watchdog should not reset the system. (cherry picked from commit 8fdb26160160c4507eb2f644a982a3e05984cdf6) --- sys/dev/ipmi/ipmi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/ipmi/ipmi.c b/sys/dev/ipmi/ipmi.c index 7fef4d5ad103..ff2a31859485 100644 --- a/sys/dev/ipmi/ipmi.c +++ b/sys/dev/ipmi/ipmi.c @@ -741,6 +741,10 @@ ipmi_shutdown_event(void *arg, int howto) * Zero value in wd_shutdown_countdown will disable watchdog; * Negative value in wd_shutdown_countdown will keep existing state; * + * System halt is a special case of shutdown where wd_shutdown_countdown + * is ignored and watchdog is disabled to ensure that the system remains + * halted as requested. + * * Revert to using a power cycle to ensure that the watchdog will * do something useful here. Having the watchdog send an NMI * instead is useless during shutdown, and might be ignored if an @@ -748,7 +752,7 @@ ipmi_shutdown_event(void *arg, int howto) */ wd_in_shutdown = true; - if (wd_shutdown_countdown == 0) { + if (wd_shutdown_countdown == 0 || (howto & RB_HALT) != 0) { /* disable watchdog */ ipmi_set_watchdog(sc, 0); sc->ipmi_watchdog_active = 0; From nobody Sat Feb 17 19:22: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 4Tcdwv1Zqtz53y5y; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwt6Gt2z4Frl; Sat, 17 Feb 2024 19:22:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qv97pJQFwgVPQFwnF3ZgkgHVsJb9R7APwmmDyuepJuI=; b=bjHFkJawXmBNN2YOMrXsLDlk0PU1WCigmBvQavtZ2+46va3VhfNdqFbbLumTw104cFEO0N G7fHkoWBoAzedvCu/tWFIfwUB/3VlvaViA/3785oyC+6MW2MjTHzgIdURVQMnO/3tDYLwL rkP7j3kILcYG9oxLaZOCCKGhDwZh9/ATRc/A11aY+tRHGovX3HJRo7WCasix63HoRdXVal Wnh+2PxL5bGVcbSV8mWHEN+y+MFY+HgkoYDHarMvWXPrC1FXK+qPXcgs07c7kfxWahDb4/ IwqRqy2Aki9MQHRp6VI5nJtfi9Tc+IOjT8p6XsycUT4V+Eb2EbwK0zXVYaQklw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qv97pJQFwgVPQFwnF3ZgkgHVsJb9R7APwmmDyuepJuI=; b=BxYR+yGG06jcZoOunL7TzuLNo7gbyud4BwXSvaNJZtbtBDGEE7dfMN23Sd14n8CaLDZsIl 0wfi75SVOOiT+B/kgHfE0/2OLAOhQq6QA3AKzzrtjiMLChsOLydYjljZDwgqtd0U0uytBh PAEl3ZbznJCi7gnoupPm+vVxw3ajpNXjUipwrYRiEyB/0YRVMLJyoHroM/zoVoKBJVSDzZ G/S8KaSPI7qBxhrwbgqnPHH1Y3X8MFp1eh3i/MypqVpdhjuXY0exsotPecyypojsG8P2rZ i9oNjrU354t9sUUgTRoj2vxAm6Wz4oyjHpA2A0K+21QpJStEE0wt+H/b1PiGMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197758; a=rsa-sha256; cv=none; b=Q9Os09bferHwlm7Sj5AOAStpDVo66q6UFx9qJ30uJb7nu2g7NmseukVh+nuwkXjGJECyyZ jSFNOw5V/Z9hqVMM/n0WoakaGtdt2T/MHPvxD1Qi4qMD63evPdWgs2NO46YmG97VPn4FHH HU0CURFhTeqWJlu9RXtjes+QqhpwAB+DbZeCRVqdxOtkOxADXi6jeMjVKCXv/b20OT4W2l 549mjLJvNve3yzxSOeA/w0z6wl1dRU5XUz242JwAKKDTpTnWxFysBosEQSi2xBnS6NCbW4 a8ZBTlrIlK7Ige3OsNBywF6wB4XcPmGxjGTuwTxkAEkylrFqMiLqRos0VOgKtg== 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 4Tcdwt4L3rzLHy; Sat, 17 Feb 2024 19:22:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMco2000650; Sat, 17 Feb 2024 19:22:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMcBT000647; Sat, 17 Feb 2024 19:22:38 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:38 GMT Message-Id: <202402171922.41HJMcBT000647@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: faa59e9ab402 - stable/13 - ichsmb: fix block read operation 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: faa59e9ab402b12f3c3d3386175a178e45308b22 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=faa59e9ab402b12f3c3d3386175a178e45308b22 commit faa59e9ab402b12f3c3d3386175a178e45308b22 Author: Andriy Gapon AuthorDate: 2022-09-13 21:26:35 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 ichsmb: fix block read operation First of all and unlike I2C, it's not the master that dictates how many bytes to read in block read operation. It's the device that informs the master how many bytes it's sending back. Thus, for ichsmb_bread() the count parameter is purely an output parameter. The code has been changed to reflect that. The sanity checking of the response length is now done once it (the first byte of the response) is received. While here, handling of ICH_HST_STA_FAILED status bit has been added. Plus some code style improvements and some new code comments in the vicinity of the changed code. (cherry picked from commit cbf7c81b608bb9311e50df9481447dc843083a0e) --- sys/dev/ichsmb/ichsmb.c | 61 ++++++++++++++++++++++++++++++++------------- sys/dev/ichsmb/ichsmb_var.h | 5 ++-- 2 files changed, 46 insertions(+), 20 deletions(-) diff --git a/sys/dev/ichsmb/ichsmb.c b/sys/dev/ichsmb/ichsmb.c index 30c408a92c59..9d99838ef2ad 100644 --- a/sys/dev/ichsmb/ichsmb.c +++ b/sys/dev/ichsmb/ichsmb.c @@ -389,8 +389,8 @@ ichsmb_bwrite(device_t dev, u_char slave, char cmd, u_char count, char *buf) return (SMB_EINVAL); bcopy(buf, sc->block_data, count); sc->block_count = count; - sc->block_index = 1; - sc->block_write = 1; + sc->block_index = 1; /* buf[0] is written here */ + sc->block_write = true; mtx_lock(&sc->mutex); sc->ich_cmd = ICH_HST_CNT_SMB_CMD_BLOCK; @@ -413,26 +413,23 @@ ichsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) const sc_p sc = device_get_softc(dev); int smb_error; - DBG("slave=0x%02x cmd=0x%02x count=%d\n", slave, (u_char)cmd, count); + DBG("slave=0x%02x cmd=0x%02x\n", slave, (u_char)cmd); KASSERT(sc->ich_cmd == -1, ("%s: ich_cmd=%d\n", __func__ , sc->ich_cmd)); - if (*count < 1 || *count > 32) - return (SMB_EINVAL); bzero(sc->block_data, sizeof(sc->block_data)); sc->block_count = 0; sc->block_index = 0; - sc->block_write = 0; + sc->block_write = false; mtx_lock(&sc->mutex); sc->ich_cmd = ICH_HST_CNT_SMB_CMD_BLOCK; bus_write_1(sc->io_res, ICH_XMIT_SLVA, slave | ICH_XMIT_SLVA_READ); bus_write_1(sc->io_res, ICH_HST_CMD, cmd); - bus_write_1(sc->io_res, ICH_D0, *count); /* XXX? */ bus_write_1(sc->io_res, ICH_HST_CNT, ICH_HST_CNT_START | ICH_HST_CNT_INTREN | sc->ich_cmd); if ((smb_error = ichsmb_wait(sc)) == SMB_ENOERR) { - bcopy(sc->block_data, buf, min(sc->block_count, *count)); + bcopy(sc->block_data, buf, sc->block_count); *count = sc->block_count; } mtx_unlock(&sc->mutex); @@ -514,16 +511,24 @@ ichsmb_device_intr(void *cookie) /* Check for unexpected interrupt */ ok_bits = ICH_HST_STA_SMBALERT_STS; - cmd_index = sc->ich_cmd >> 2; + + if (sc->killed) { + sc->killed = 0; + ok_bits |= ICH_HST_STA_FAILED; + bus_write_1(sc->io_res, ICH_HST_CNT, + ICH_HST_CNT_INTREN); + } + if (sc->ich_cmd != -1) { + cmd_index = sc->ich_cmd >> 2; KASSERT(cmd_index < sizeof(ichsmb_state_irqs), ("%s: ich_cmd=%d", device_get_nameunit(dev), sc->ich_cmd)); ok_bits |= ichsmb_state_irqs[cmd_index]; } if ((status & ~ok_bits) != 0) { - device_printf(dev, "irq 0x%02x during %d\n", status, - cmd_index); + device_printf(dev, "irq 0x%02x during 0x%02x\n", status, + sc->ich_cmd); bus_write_1(sc->io_res, ICH_HST_STA, (status & ~ok_bits)); continue; @@ -541,6 +546,12 @@ ichsmb_device_intr(void *cookie) } } + /* Check for killed / aborted command */ + if (status & ICH_HST_STA_FAILED) { + sc->smb_error = SMB_EABORT; + goto finished; + } + /* Check for bus error */ if (status & ICH_HST_STA_BUS_ERR) { sc->smb_error = SMB_ECOLLI; /* XXX SMB_EBUSERR? */ @@ -569,6 +580,18 @@ ichsmb_device_intr(void *cookie) if (sc->block_index == 0) { sc->block_count = bus_read_1( sc->io_res, ICH_D0); + if (sc->block_count < 1 || + sc->block_count > 32) { + device_printf(dev, "block read " + "wrong length: %d\n", + sc->block_count); + bus_write_1(sc->io_res, + ICH_HST_CNT, + ICH_HST_CNT_KILL | + ICH_HST_CNT_INTREN); + sc->block_count = 0; + sc->killed = true; + } } /* Get next byte, if any */ @@ -579,15 +602,17 @@ ichsmb_device_intr(void *cookie) bus_read_1(sc->io_res, ICH_BLOCK_DB); - /* Set "LAST_BYTE" bit before reading - the last byte of block data */ - if (sc->block_index - >= sc->block_count - 1) { + /* + * Set "LAST_BYTE" bit before reading + * the last byte of block data + */ + if (sc->block_index == + sc->block_count - 1) { bus_write_1(sc->io_res, ICH_HST_CNT, - ICH_HST_CNT_LAST_BYTE - | ICH_HST_CNT_INTREN - | sc->ich_cmd); + ICH_HST_CNT_LAST_BYTE | + ICH_HST_CNT_INTREN | + sc->ich_cmd); } } } diff --git a/sys/dev/ichsmb/ichsmb_var.h b/sys/dev/ichsmb/ichsmb_var.h index abef219465e6..7fb14804d3c4 100644 --- a/sys/dev/ichsmb/ichsmb_var.h +++ b/sys/dev/ichsmb/ichsmb_var.h @@ -58,8 +58,9 @@ struct ichsmb_softc { int smb_error; /* result of smb command */ int block_count; /* count for block read/write */ int block_index; /* index for block read/write */ - u_char block_write; /* 0=read, 1=write */ - u_char block_data[32]; /* block read/write data */ + bool block_write; /* block write or block read */ + uint8_t block_data[32]; /* block read/write data */ + bool killed; /* killed current transfer */ struct mtx mutex; /* device mutex */ }; typedef struct ichsmb_softc *sc_p; From nobody Sat Feb 17 19:22: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 4Tcdww0JyKz53y3W; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwv5zr5z4FvP; Sat, 17 Feb 2024 19:22:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pLxTNj7YOWC03MfZgg+k+ylYE+dkL1qLO6dqh6K+eek=; b=uTAulCXHQh98STru2Aul6adexshneBwPcLzizR0w1hMRbwTqteOFCa1tX7f/gvbvIbSddM D2L5W8UZpCSjjYBbHpZU/kqyMIdSyUXtMijn1wYTkS4atI4VdpmEldnwjWPUwufoPcjbbw u1ZWJQFZnPQ6meV9DDlIkX6XoTy5unfl6du0hkQ17oP3ehdvY3Xz3ne8wJmPBY7NdzAhBL mkewQD+LaylALaNScPWWet3nHl9NuNOGYBEfuAJuQIPx5tLTGGeDJle/7yLKK1I/dnEXKy uDL36KgurNs0uJQbBM7VaxjE4Q84EV2gSjI05jsnkIfNAVaGg7d54sK/x8wB9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pLxTNj7YOWC03MfZgg+k+ylYE+dkL1qLO6dqh6K+eek=; b=noM51fjI3UmUKuVks/ZyOD84qBEt17BxEzFvs+kpjcJuR3jff50/ykoF9uWnOoc5eNAUjc w8sR/vwzlxlI/DjmICSuOO6SyLH4al9XyAGkRHKffthv4X85SIfOA9uRwv6jYBTawUQP0/ uwaPZIFrSZ8Razzn2zm6gW7v27DuN/VY9kA03y25VdMn1m/6nAlmVh/nmVnVq8AdJGOUlA kro/xm0A960XAhmjECeZNvOjdynWhqcST1GNhYR9hS+aCZuN+MK+Z084FRYLEMthhk4/dg PdVZLH+jd6cqG/Gp1aWm/DcN/wsacogG6sJfC1CI+NVuP4l2GQJQ+ZiSCfDqNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197759; a=rsa-sha256; cv=none; b=pgVj4FkkalU3LHS667IHILga3QGKtImgHUQ9XDI/9SUjjAEKtVDjQFZvwUdxZ5MabAcRzv S7OVWEOjHM+AkcVK3rA7dOO9achh7bg/6wxwVzaiVVOahRZjqMVdp3dftHq0OJHtPqYHB0 OGHigsqcnE7bhsduSPpJH0UEYDcc2mLHijOkxxhm1i5V2rasL6jpRB05Gr/0osY8+wEga6 q7wza2xVuZUwNeplSpTzZbJqVVhxP7+FlRSqwpJl/c70svZJfun7NB6eHzj3HPE+c/NmAp 4CWnAqDU/xqXtwkI4LfxC7SJdDEHjBJKEG/Y8oLjNRW0zJcwLyucl7PU6J2xSQ== 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 4Tcdwv54wwzKgX; Sat, 17 Feb 2024 19:22:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMdaP000704; Sat, 17 Feb 2024 19:22:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMdSJ000701; Sat, 17 Feb 2024 19:22:39 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:39 GMT Message-Id: <202402171922.41HJMdSJ000701@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: f0ed49921c28 - stable/13 - dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f0ed49921c2891733b7ee65679a8dcba5398e3b6 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=f0ed49921c2891733b7ee65679a8dcba5398e3b6 commit f0ed49921c2891733b7ee65679a8dcba5398e3b6 Author: Andriy Gapon AuthorDate: 2021-12-24 09:38:38 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag This should disable allocation of the second per-CPU principal buffer which is never used. This will also enable additional asserts for buffers that are never switched. (cherry picked from commit e92491d95ff3500e140eafa614e88ca84ffb0d26) --- sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c index 6ae0322ebb0f..17d9536b2428 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c @@ -12055,7 +12055,6 @@ dtrace_buffer_switch(dtrace_buffer_t *buf) hrtime_t now; ASSERT(!(buf->dtb_flags & DTRACEBUF_NOSWITCH)); - ASSERT(!(buf->dtb_flags & DTRACEBUF_RING)); cookie = dtrace_interrupt_disable(); now = dtrace_gethrtime(); @@ -14863,10 +14862,10 @@ dtrace_state_buffer(dtrace_state_t *state, dtrace_buffer_t *buf, int which) if (which == DTRACEOPT_BUFSIZE) { if (opt[DTRACEOPT_BUFPOLICY] == DTRACEOPT_BUFPOLICY_RING) - flags |= DTRACEBUF_RING; + flags |= DTRACEBUF_RING | DTRACEBUF_NOSWITCH; if (opt[DTRACEOPT_BUFPOLICY] == DTRACEOPT_BUFPOLICY_FILL) - flags |= DTRACEBUF_FILL; + flags |= DTRACEBUF_FILL | DTRACEBUF_NOSWITCH; if (state != dtrace_anon.dta_state || state->dts_activity != DTRACE_ACTIVITY_ACTIVE) From nobody Sat Feb 17 19:22: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 4Tcdwx40DLz53xd4; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwx05BGz4G0m; Sat, 17 Feb 2024 19:22:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lYdHOyo98a0XKRhq0jZ9q9o/8lrAM9m00h08BjSIyPk=; b=l669xKjC9I4OXNTO4fbAWf4/r1xXzEKh4lYyYwhxtcxS6PmN9NHp2W0EIhIkq2uE3rS3oC wPYTJiWdE3miiYiAYpgWxuGLBGZt1WtTa7k7gvg2iuT3cbU24eqeXhp6RiQUGFrksbyqfd dq685Q5LpOhqY2LQc60xnuwm18vECJp4x6CI+7TylVOTrqIwcZmG6qOQS+RWyHY6mIJS+c nDJZZHXNoVxCsatiefiY2Xl8yWTyl16NvlHMEgMY3wOsDcSOdBBuUZUUYnyM+7I3Xb9cPM yP07PN0S5P8xZFCutC6pQiAjFuxOvkBxaEnM4csWcdRZBIXU7XaGDa5wM5wj6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lYdHOyo98a0XKRhq0jZ9q9o/8lrAM9m00h08BjSIyPk=; b=WE7LydeAf/9Hww/CT5s7LqNGHA1f/Q2zKhOsegRl1/CtgrrrVi4rihhkDzHOHCPiDX3yCb rJwZkjvm13us5xxUOSyLJL/XACQCaG4jIY7i5quDm/8UkzHbG5vzxNz810e5b+NSu8CH81 +0sE2MKrXf5LQgWIbLpeqslkJkKHoObdNflytJpD5tajuI3F63pAlEGTUhWi69DbpyVvfT Y3B7owYWR0SwO6BqV7PrEZ1yIsCidzi/5otVH5s/6/YV85/bapGYuFMwuymP4RzfE1xJrs x2JveshjR0cz5ttiHFQJ3+IffwrcBrMnVG9OFwidBfnQ6tkpb8esmbfjDmpkOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197761; a=rsa-sha256; cv=none; b=KdAjv96KrAQ7mD+bZDE5va0wUtYn/16Qd0C5dYlQIwSy+Z22g0Iwe8al0z1RgHqbhcO/Me AmmRu+SDB4t5U3LwDvkGcVumV5IWAcap5lFlhX3+s/E57swRr59/PQb6TBmecZ2HIhu321 Pitb6sbryRoM5ErPeQrsTtI3wfBSRNOXSk1+ZKJya48iOxT82InIkHxk1nlBelXiuI6J4T rZRxT/KCZJ8zwc2FUPbVv8h8ZErcjWN8MEZA7UIuAlDVubI0kCg5crjWcHRYCgUpADwkwV fhf950chv7vSCZKQP1bfpBwIQ8eXSRfe3+mtYTbWA/CUi6l30JdgrqquDFKR4w== 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 4Tcdww6KKjzKgY; Sat, 17 Feb 2024 19:22:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMeKD000751; Sat, 17 Feb 2024 19:22:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMesl000748; Sat, 17 Feb 2024 19:22:40 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:40 GMT Message-Id: <202402171922.41HJMesl000748@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 4df1b9cc2bff - stable/13 - hdaa_pcmchannel_setup: do not advertise AC3 8+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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4df1b9cc2bff6098f29ab8af4f12e7bdec3ee9be Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=4df1b9cc2bff6098f29ab8af4f12e7bdec3ee9be commit 4df1b9cc2bff6098f29ab8af4f12e7bdec3ee9be Author: Andriy Gapon AuthorDate: 2024-01-28 13:18:02 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 hdaa_pcmchannel_setup: do not advertise AC3 8+0 The rest of the sound system supports 7+1 maximum and is not aware of 8+0. I believe that these messages are caused by 8+0: kernel: feeder_init(0xfffff801f935d680) on feeder_matrix returned 22 kernel: pcm0: feeder_build_matrix(): can't add feeder_matrix (cherry picked from commit c053a56c0f5df6db5223316831142e1d8afff64f) --- sys/dev/sound/pci/hda/hdaa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/sound/pci/hda/hdaa.c b/sys/dev/sound/pci/hda/hdaa.c index 6d5e27b88b1f..20297f069d26 100644 --- a/sys/dev/sound/pci/hda/hdaa.c +++ b/sys/dev/sound/pci/hda/hdaa.c @@ -5428,7 +5428,6 @@ hdaa_pcmchannel_setup(struct hdaa_chan *ch) if (HDA_PARAM_SUPP_STREAM_FORMATS_AC3(fmtcap)) { ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 2, 0); if (channels >= 8) { - ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 0); ch->fmtlist[i++] = SND_FORMAT(AFMT_AC3, 8, 1); } } From nobody Sat Feb 17 19:22: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 4Tcdwz4XjJz53xgF; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwz26LLz4G3g; Sat, 17 Feb 2024 19:22:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6UNvMRc4c6XslDBGTDvUirNs4lonWMvMGJJ+03uFPtY=; b=TWtBdzItJQEx+uMq/fchSPRjaqoS2KlHYLI0pnZ5Lv/L518SayF5l0uRvs2GO36ViB680e 8dBE2ouKqiBEc+BTVOtyfC4AnRmcEUjh6rS3yaSlP50EOcmCasjAwITldauzRqG2qErbZY RJXLAjA2BWHRbTHh0nJ2xcRW243ZKl4oextUbTKwJLxcy0Ye7P/aunEQy1asFuv/O3ccT9 O2CPSFrEwccTCCbUPH6Kj9AfUks5ykk02iDSC+FSzxTlRyW12jcPtpPbJB7XdJUYuglGW5 0/6nwYggP2rCFTcfaI79I+f+/z6JvxavyUgtFirrePAfmGSpkleeCmFDlkoejg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6UNvMRc4c6XslDBGTDvUirNs4lonWMvMGJJ+03uFPtY=; b=uVeksto+PfCbzl5vxXqXVur5ZflpOoy2+T6lV6ZKZNwRthRiKGXgGPv8RDTBxaUli7QPNq zJW9Ym8VzC+ZAmOqGVTZPqONm2mgiQYWpwB6WmwEHPkcmueb4ihhF+wRcLcjmzFqbCFrzj dFiDe9Pl4vtUArZ2nEgjOCARRsW6hyGtB63Zl9vK2wNBfdskGyJlyu3H8YBvPU5YgDox0w aWVAw82DEPbYEC+/DTJRj7SVz7UI7/TgkUURI70cHvgJfGzmNNvMdNGIttLEQmkpRYoPkp qb5eL5UG1KnxJcZLJf0CF4wVNoiVpNQNQuW5rGdA6T0eHrGf2ggCXAbx3J4S4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197763; a=rsa-sha256; cv=none; b=fEeIT5Z/wvgxAzlopgS1nPVp27zyzpM/5hqrfPHcUMGuRcDgHejv3716txwK0wICgo9di6 DR7higqImqPcIPTrGj6SQHRmIpIClWa7X1IGWcqdsEBNDs3XlwL9coepK3kGS8Y/nVUNs1 fVxmKhPfXZHGcw8wAeZ5EQZzXBvc3R6cxPXL3uVWrrVYxWBIGeqVOAh5kQUq/ugkt4Tm+u y1ac/d2BpP+QaDBg5hL7oq+WN4u7lCyW7Dn0b6KiJt3pK6zCZMgcjAIqnoasXI7y3gxuLf zoSj8egloceYDZmqRmqeatVKSNBnoOS7sqvMjjGJtE//iYQsC59XOJ0VKxaXWw== 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 4Tcdwz1DLSzLJ1; Sat, 17 Feb 2024 19:22:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMhXK000843; Sat, 17 Feb 2024 19:22:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMhfu000840; Sat, 17 Feb 2024 19:22:43 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:43 GMT Message-Id: <202402171922.41HJMhfu000840@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: a669851b3516 - stable/13 - subr_bus: report DEVICE_SUSPEND failures 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a669851b35163a849ebcbae0c9c8048f86efde10 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=a669851b35163a849ebcbae0c9c8048f86efde10 commit a669851b35163a849ebcbae0c9c8048f86efde10 Author: Andriy Gapon AuthorDate: 2023-01-03 08:39:32 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 subr_bus: report DEVICE_SUSPEND failures This greatly aids with diagnosing system suspend failures when they are due to a device driver or hardware. (cherry picked from commit 4d1161f094dd90428847f7e5989767e9957055f4) --- sys/kern/subr_bus.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 8abf7fa83750..d34bcc3cca58 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -3881,8 +3881,12 @@ bus_generic_suspend_child(device_t dev, device_t child) error = DEVICE_SUSPEND(child); - if (error == 0) + if (error == 0) { child->flags |= DF_SUSPENDED; + } else { + printf("DEVICE_SUSPEND(%s) failed: %d\n", + device_get_nameunit(child), error); + } return (error); } From nobody Sat Feb 17 19:22: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 4Tcdwy3Q1Yz53xg9; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdwy1J0zz4Fsd; Sat, 17 Feb 2024 19:22:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XZdvPa+P0qKHphEx6j7017L1eIdvLQbcb8sWIOgF7d4=; b=w1lFuDqFJeO+cGPB5AQTuhZGk6s38mi1uMtnOpwQoiwvk5fO2Daop1t7q/xwcWjrjt5rAx X2Ifuv6ez1UjAmcm8xItZt4bBCFYrKNWEXESblp1WPNO0cmL3D2Fz/ssj97Y6EeL1eCatZ bCog6+yVvK7Mys0a4Xh/PXorEBG6czrg1iDgDXTsKLR/dNBouVu12jqg7/D0pgZ0jjGG4S 5kAyoi+k25WtjwTnQsFsFH6BD2eGw1IgzGKimlO6k3fKzTYRQgZ6sGJqcDIdJ0VLtmn66C JWKC9K2INP0GDrivPdmT7hGxVwjaiFGN299PzcCAx7uwFAav4Ydwve8YsLZoQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XZdvPa+P0qKHphEx6j7017L1eIdvLQbcb8sWIOgF7d4=; b=AT6d839UdshNyDyB4antARlcLoEsS04/nmvLpCpoEnHTkofn153mAQo+Cp+ATuBVnAlzYN UI0+QuTjrNe4zBI9Dz/bYXAxAW+Edtk09NgyIDf5BIdasmt3pteGLQky7pgQEtA+VokArf wuZ92Ip4cBDA9rY9xIXsfhUT3S95kqvHgRIQwT5V0URiTLKZbb+aTVPZiw96e/98StPvTo q3KWa2TEX61hAkVwC2rf5QkgotsK/5uuaTbh6xylyKEiSUYKZ4+nvzG0dpcWFaDQCIj+c8 3EkN0J8RJp3fpsVQqIxd/beaP1iO+stX5cl8QveZUVI49ANxDhcylvfAzwk8oA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197762; a=rsa-sha256; cv=none; b=uswjk6yE29hpXSzu5dH8gliZQON6EyflJuSSmI/mFI/N6tcGKs/tS38hnjZKRqjmXeyHvI 1TaNoOuTxJdeENTdDo4nabQS+D8iuJ9kyhi3qSDXH+3i73hUSrv912nfgZ5TAlbtLCfTVI o0qC9QHs4fiqAeiP3k1ZC+r60NxaYrz8koob10uS1t6ZuKiG9qs4W/gmVQkC4Jvr+q03U4 isf88nQJk12eaDyeAbw5llGIR7EYM5dq58p+88j0ggYPh/pXwM9ymdiaTIUT/MQ5bVJwyv zVJeOgJANwEsUK7cMrbL4JWkj5mM6J+pFt9ndljfzSpYwbboWWfS/6Bs9EUIIg== 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 4Tcdwx75ZVzKdT; Sat, 17 Feb 2024 19:22:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMfBH000799; Sat, 17 Feb 2024 19:22:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMf6v000796; Sat, 17 Feb 2024 19:22:41 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:41 GMT Message-Id: <202402171922.41HJMf6v000796@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 1b92999e67b6 - stable/13 - efibootmgr: fix potential endless loop with -v 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1b92999e67b6cbfa75a9def2a33464080ba33a05 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=1b92999e67b6cbfa75a9def2a33464080ba33a05 commit 1b92999e67b6cbfa75a9def2a33464080ba33a05 Author: Andriy Gapon AuthorDate: 2022-10-25 21:10:39 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:08 +0000 efibootmgr: fix potential endless loop with -v I observed the problem on a system with fairly old and, apparently, buggy EFI implementation. A list of boot devices had an invalid trailing entry. efidp_size() for that entry returned zero, which means that the code got stuck looping on that entry. (cherry picked from commit bf87d4a4bfaa86e97079754e93fe14595adf07c5) --- usr.sbin/efibootmgr/efibootmgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c index 8dcf9876486d..be1157b4aa84 100644 --- a/usr.sbin/efibootmgr/efibootmgr.c +++ b/usr.sbin/efibootmgr/efibootmgr.c @@ -784,6 +784,8 @@ print_loadopt_str(uint8_t *data, size_t datalen) */ indent = 1; while (dp < edp) { + if (efidp_size(dp) == 0) + break; efidp_format_device_path(buf, sizeof(buf), dp, (intptr_t)(void *)edp - (intptr_t)(void *)dp); printf("%*s%s\n", indent, "", buf); From nobody Sat Feb 17 19:22: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 4Tcdx06XLZz53xdB; Sat, 17 Feb 2024 19:22: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcdx03CWxz4Fmk; Sat, 17 Feb 2024 19:22:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oZ8wANPOa7un1fg5KI3bD/XSFMXt8IZjMrk06MmQ8Q8=; b=QYoiCNY/3XyZuz/q/xlS+CtxT52TMg52HBX5vRN/VVO9qtRAgMHGVIFFsQEveYHNSMdh5J 51d5dYxQVKRVk5DzCqqTGY8RLH5mXZqlrubP5ab1nopVSJYCshxZSxcSpskNLK6HRKAPWr SKuB+JNxfnmSQ+y14KCrM491t85+eqhdRmqWyaCYAzDSvBiVR+5CyuofhmGC7Pdq+fKvOt 5ntPTy0WA98yc8/esdbYMySt/7UuBIqaU1qUPtrhHGbeU/gI7pc5gPlXkLIhcyU8Y64jwP xqARmuuw1nQQqb8k68sLMpDowK7jk5nwGiwofKoLZqmS75RrWrviuTVysh7kdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708197764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oZ8wANPOa7un1fg5KI3bD/XSFMXt8IZjMrk06MmQ8Q8=; b=BcEWHx8pph0K1v5OuM+d05i5akruXLyBnxSaWN53bFI+IfolZ6lJw84I/TJpohb0Db7dHO sDUskb1hKYQ6R7peeE015QjwJI3Pceo/b9TlVLHtIh+cFsSIHSOWeypqr2RWghrZW1On7w IGZXpNbwWPKxy7nHsKvKgCQYcRuVLgh7w0Y03ln3NU2OpIDulZBGTyTUwSxOi40C0ojBbg 2aTWkBJpqXYWenj4QxdsMZ3HwbyI4wsjqB05eiQENgxfYxMD+jP40ijR0GVQ6yX4/HgRBu 6JJ05hQNy+2YvllhYcvF4hUlFHeoJfhhwTqH94o45SyfqyXm8WvcetGYX+yNYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708197764; a=rsa-sha256; cv=none; b=b7czsSShAHndFLVJP/VQbyxpmQ6arUfXHZ4D+i4bAbsGphwoVi08gzqGFK+741PkbhzOS9 3fA8dPSZlaYgvkCPxrxYDVv7n2PEp+FkX7NDe7t/Xsrn6DMiXnYuJCFwGyfmk/psdKYsaZ 90kH58RTHNyNgkRwZ2sIJK3qjTsZnWqSUCBJJ54R61W1KJhbi+P9XxcayM1x+iasXH6pVE /clxnYcYctwk7i2RweySeCH7qWbwJJ/NSq9kjNIsRxwBrXxiSZZmI6hvnPXv3TXPP7YDF6 Gp2K75FbGekR7colm5G1B9fuXBYiuuXNAAu43q22d7CnGgKVa8sHfiSTmWz0dQ== 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 4Tcdx02KVszKvX; Sat, 17 Feb 2024 19:22:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJMiS8000883; Sat, 17 Feb 2024 19:22:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJMist000880; Sat, 17 Feb 2024 19:22:44 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:22:44 GMT Message-Id: <202402171922.41HJMist000880@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 5d24ae53b622 - stable/13 - rdmsr_safe/wrmsr_safe: handle pcb_onfault nesting 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5d24ae53b622507410d6befc5e3b8a7911991175 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=5d24ae53b622507410d6befc5e3b8a7911991175 commit 5d24ae53b622507410d6befc5e3b8a7911991175 Author: Andriy Gapon AuthorDate: 2024-01-30 06:45:01 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:22:09 +0000 rdmsr_safe/wrmsr_safe: handle pcb_onfault nesting rdmsr_safe and wrmsr_safe can be called while pcb_onfault is already set, so the functions are modified to preserve the handler rather than resetting it before returning. One case where that happens is when AMD microcode update routine is executed on a stack where copyin / copyout was already active. Here is a sample panic message from a crash caused by resetting the handler: <118>Updating CPU Microcode... Fatal trap 12: page fault while in kernel mode cpuid = 3; apic id = 03 fault virtual address = 0x11ed0de6000 fault code = supervisor write data, page not present instruction pointer = 0x20:0xffffffff80c2df03 stack pointer = 0x28:0xfffffe01ce4a4c70 frame pointer = 0x28:0xfffffe01ce4a4c70 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 117 (logger) trap number = 12 panic: page fault cpuid = 3 time = 1681462027 KDB: stack backtrace: db_trace_self_wrapper() at 0xffffffff80615deb = db_trace_self_wrapper+0x2b/frame 0xfffffe01ce4a4830 kdb_backtrace() at 0xffffffff80943c77 = kdb_backtrace+0x37/frame 0xfffffe01ce4a48e0 vpanic() at 0xffffffff808f5fe5 = vpanic+0x185/frame 0xfffffe01ce4a4940 panic() at 0xffffffff808f5da3 = panic+0x43/frame 0xfffffe01ce4a49a0 trap_fatal() at 0xffffffff80c31849 = trap_fatal+0x379/frame 0xfffffe01ce4a4a00 trap_pfault() at 0xffffffff80c318b5 = trap_pfault+0x65/frame 0xfffffe01ce4a4a60 trap() at 0xffffffff80c30f5f = trap+0x29f/frame 0xfffffe01ce4a4b80 trap_check() at 0xffffffff80c31c29 = trap_check+0x29/frame 0xfffffe01ce4a4ba0 calltrap() at 0xffffffff80c07fd8 = calltrap+0x8/frame 0xfffffe01ce4a4ba0 --- trap 0xc, rip = 0xffffffff80c2df03, rsp = 0xfffffe01ce4a4c70, rbp = 0xfffffe01ce4a4c70 --- copyout_nosmap_std() at 0xffffffff80c2df03 = copyout_nosmap_std+0x63/frame 0xfffffe01ce4a4c70 uiomove_faultflag() at 0xffffffff8095f0d5 = uiomove_faultflag+0xe5/frame 0xfffffe01ce4a4cb0 uiomove() at 0xffffffff8095efeb = uiomove+0xb/frame 0xfffffe01ce4a4cc0 pipe_read() at 0xffffffff80968860 = pipe_read+0x230/frame 0xfffffe01ce4a4d30 dofileread() at 0xffffffff809653cb = dofileread+0x8b/frame 0xfffffe01ce4a4d80 sys_read() at 0xffffffff80964fa0 = sys_read+0xc0/frame 0xfffffe01ce4a4df0 amd64_syscall() at 0xffffffff80c3221a = amd64_syscall+0x18a/frame 0xfffffe01ce4a4f30 fast_syscall_common() at 0xffffffff80c088eb = fast_syscall_common+0xf8/frame 0xfffffe01ce4a4f30 --- syscall (3, FreeBSD ELF64, read), rip = 0x11ece41cfaa, rsp = 0x11ecbec4908, rbp = 0x11ecbec4920 --- Uptime: 41s And another one: Fatal trap 12: page fault while in kernel mode cpuid = 4; apic id = 04 fault virtual address = 0x800a22000 fault code = supervisor write data, page not present instruction pointer = 0x20:0xffffffff80b2c7ca stack pointer = 0x28:0xfffffe01c55b5480 frame pointer = 0x28:0xfffffe01c55b5480 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 68418 (pfctl) trap number = 12 panic: page fault cpuid = 4 time = 1625184463 KDB: stack backtrace: db_trace_self_wrapper() at 0xffffffff805c1e8b = db_trace_self_wrapper+0x2b/frame 0xfffffe01c55b5040 kdb_backtrace() at 0xffffffff808874b7 = kdb_backtrace+0x37/frame 0xfffffe01c55b50f0 vpanic() at 0xffffffff808449d8 = vpanic+0x188/frame 0xfffffe01c55b5150 panic() at 0xffffffff808445f3 = panic+0x43/frame 0xfffffe01c55b51b0 trap_fatal() at 0xffffffff80b300a5 = trap_fatal+0x375/frame 0xfffffe01c55b5210 trap_pfault() at 0xffffffff80b30180 = trap_pfault+0x80/frame 0xfffffe01c55b5280 trap() at 0xffffffff80b2f729 = trap+0x289/frame 0xfffffe01c55b5390 trap_check() at 0xffffffff80b304d9 = trap_check+0x29/frame 0xfffffe01c55b53b0 calltrap() at 0xffffffff80b0bb28 = calltrap+0x8/frame 0xfffffe01c55b53b0 --- trap 0xc, rip = 0xffffffff80b2c7ca, rsp = 0xfffffe01c55b5480, rbp = 0xfffffe01c55b5480 --- copyout_nosmap_std() at 0xffffffff80b2c7ca = copyout_nosmap_std+0x15a/frame 0xfffffe01c55b5480 pfioctl() at 0xffffffff85539358 = pfioctl+0x4d28/frame 0xfffffe01c55b5940 devfs_ioctl() at 0xffffffff807176cf = devfs_ioctl+0xcf/frame 0xfffffe01c55b59a0 VOP_IOCTL_APV() at 0xffffffff80bb26e2 = VOP_IOCTL_APV+0x92/frame 0xfffffe01c55b59c0 VOP_IOCTL() at 0xffffffff80928014 = VOP_IOCTL+0x34/frame 0xfffffe01c55b5a10 vn_ioctl() at 0xffffffff80923330 = vn_ioctl+0xc0/frame 0xfffffe01c55b5b00 devfs_ioctl_f() at 0xffffffff80717bbe = devfs_ioctl_f+0x1e/frame 0xfffffe01c55b5b20 fo_ioctl() at 0xffffffff808abc6b = fo_ioctl+0xb/frame 0xfffffe01c55b5b30 kern_ioctl() at 0xffffffff808abc01 = kern_ioctl+0x1d1/frame 0xfffffe01c55b5b80 sys_ioctl() at 0xffffffff808ab982 = sys_ioctl+0x132/frame 0xfffffe01c55b5c50 syscallenter() at 0xffffffff80b30cc9 = syscallenter+0x159/frame 0xfffffe01c55b5ca0 amd64_syscall() at 0xffffffff80b309a5 = amd64_syscall+0x15/frame 0xfffffe01c55b5d30 fast_syscall_common() at 0xffffffff80b0c44e = fast_syscall_common+0xf8/frame 0xfffffe01c55b5d30 PR: 276426 Reviewed by: kib, markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D43639 (cherry picked from commit 486b265a8fb6b2aad37f2819fa04feacf8184d53) --- sys/amd64/amd64/support.S | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index 936065a78879..dd269138c23f 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -1533,6 +1533,7 @@ ENTRY(rdmsr_safe) /* int rdmsr_safe(u_int msr, uint64_t *data) */ PUSH_FRAME_POINTER movq PCPU(CURPCB),%r8 + movq PCB_ONFAULT(%r8),%r9 movq $msr_onfault,PCB_ONFAULT(%r8) movl %edi,%ecx rdmsr /* Read MSR pointed by %ecx. Returns @@ -1541,8 +1542,8 @@ ENTRY(rdmsr_safe) movl %eax,%eax /* zero-extend %eax -> %rax */ orq %rdx,%rax movq %rax,(%rsi) - xorq %rax,%rax - movq %rax,PCB_ONFAULT(%r8) + movq %r9,PCB_ONFAULT(%r8) + xorl %eax,%eax POP_FRAME_POINTER ret @@ -1554,6 +1555,7 @@ ENTRY(wrmsr_safe) /* int wrmsr_safe(u_int msr, uint64_t data) */ PUSH_FRAME_POINTER movq PCPU(CURPCB),%r8 + movq PCB_ONFAULT(%r8),%r9 movq $msr_onfault,PCB_ONFAULT(%r8) movl %edi,%ecx movl %esi,%eax @@ -1561,8 +1563,8 @@ ENTRY(wrmsr_safe) movl %esi,%edx wrmsr /* Write MSR pointed by %ecx. Accepts hi byte in edx, lo in %eax. */ - xorq %rax,%rax - movq %rax,PCB_ONFAULT(%r8) + movq %r9,PCB_ONFAULT(%r8) + xorl %eax,%eax POP_FRAME_POINTER ret @@ -1571,7 +1573,7 @@ ENTRY(wrmsr_safe) */ ALIGN_TEXT msr_onfault: - movq $0,PCB_ONFAULT(%r8) + movq %r9,PCB_ONFAULT(%r8) movl $EFAULT,%eax POP_FRAME_POINTER ret From nobody Sat Feb 17 19:58: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 4Tcfkc2nPPz544Gb; Sat, 17 Feb 2024 19:58: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tcfkc1phFz4Mkt; Sat, 17 Feb 2024 19:58:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708199928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VsmMwZHEhvotY2c/eWnv4omqrQq5RzvzO2DJmP5OOrw=; b=ic+Xc5XGa3h9GKcMyZE1IkXFbPWcouZmq1mlqTdmT9DczZMmLOEPVPrqe0C7dZQZ7vD1Q2 O2H1GIOgzI7+dcLQV5Yicn/whTlVe8wY47YbGa2xjC570fyXbZP8tFjf/G2Xw+Ln3XBONp apHg2NJg0urC/Vh9TwjlVlvXFeNSDn/rfIkGHvRLshp4bL1QgZ0r+x0MzJ7MAN4P4MqF4k 3s2hWKvtr4dIGiQ4MLa9fQG6IeHfSXNasJs0zYHSRHdMw9XSlpUuH315SF5I5u6bfDWmtR UtQxg2MIjZ+O0xX5bgiuFYWe+3Txlk8HfB1mCXYva0PVqVSKmYvvdZiFnT5lMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708199928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VsmMwZHEhvotY2c/eWnv4omqrQq5RzvzO2DJmP5OOrw=; b=lzCtwwcfW1wulQvJqDpslkbN0D0FBb5ZM40Be9VkMmXzOiAPntxVAq6xRWf4MGAZ8lXQL4 QYK4MdCO4CrjRrTA2+xRlU1Q+y8syHajI1YPduSAQjum2dqdSdSeDjXEBllapfXKSacksl pImgTk1Ui+gLJQ0vnMdW3ZiBJJagq6J+tMb6Rl41xn0DQLmras3uiL2ZaOpXM03xNj40MZ 06rEKEYHhdvcMmEE4TnBrgqA3fLnX/X8dweKokOM+TohyxUWPXyrPfkaMpTJ6jnCSb/nZl CBdS+0COLvT8av70Ld/AZfXHezlHxgTra2EGT33MfRfyXa0AtDXieq9PHmWigg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708199928; a=rsa-sha256; cv=none; b=CBsJsKEo1v9h5DXGP4JsrqOfJTRbA7HaYUiSUGxMpTB/b4tiDxRp2JTRm3+IsWL0nlH/2m KB8XyxhFHW88OsZhjgfhMjKhBQDaHGGw1XGo2u7vO7275rnTil18DT7k3jgS1zsVTf7FNc dk9xUXeYVNKCbruSzv6yhtEbZpbdt1rN0VpbSZCC07JFzBBzdwJHXtfwbos97zupJScAht llQ8iBhbbu8dU9oUuPRV9+b/zD02oqqNGpfP/WOTUfq4YPln7YNZntcy7XgbVLQChafjdy c4RQngNpRT8JFZU5+WiTPcCKnvSWdBPJcbZoFrXrq65wTtLedZOvrqb3/MStvQ== 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 4Tcfkc0sndzM5G; Sat, 17 Feb 2024 19:58:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HJwmmM051442; Sat, 17 Feb 2024 19:58:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HJwmGw051438; Sat, 17 Feb 2024 19:58:48 GMT (envelope-from git) Date: Sat, 17 Feb 2024 19:58:48 GMT Message-Id: <202402171958.41HJwmGw051438@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 854db1db3f81 - stable/13 - run acpi_shutdown_final later to give other handlers a chance 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 854db1db3f81f5b840e7f238f627bc584224b311 Auto-Submitted: auto-generated The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=854db1db3f81f5b840e7f238f627bc584224b311 commit 854db1db3f81f5b840e7f238f627bc584224b311 Author: Andriy Gapon AuthorDate: 2021-12-20 11:01:56 +0000 Commit: Andriy Gapon CommitDate: 2024-02-17 19:58:10 +0000 run acpi_shutdown_final later to give other handlers a chance For example, shutdown_panic wants to produce some output and maybe take some input before a system is actually reset. The change should only make difference for the case of system reset (reboot), poweroff and halt should not be affected. The change makes difference only if hw.acpi.handle_reboot is set. It used to default to zero until r213755 / ac731af5670c7. Also, run shutdown_halt even later, after acpi_shutdown_final. The reason for that is that poweroff is requested by RB_POWEROFF | RB_HALT combination of flags. In my opinion, that command is a bit bipolar, but since we've been doing that forever, then so be it. Because of that flag combination, the order of shutdown_final handlers that check for either flag does matter. Some additional complexity comes from platform-specific shutdown_final handlers that aim to handle multiple reboot options at once. E.g., acpi_shutdown_final handles both poweroff and reboot / reset. As explained in 9cdf326b4f, such a handler must run after shutdown_panic to give it a chance. But as the change revealed, the handler must also run before shutdown_halt, so that the system can actually power off before entering the halt limbo. Previously, shutdown_panic and shutdown_halt had the same priority which appears to be incompatible with handlers that can do both poweroff and reset. The above also applies to power cycle handlers. (cherry picked from commit 9cdf326b4faef97f0d3314b5dd693308ac494d48) (cherry picked from commit e4ab361e53945a6c3e9d68c5e5ffc11de40a35f2) --- sys/dev/acpica/acpi.c | 2 +- sys/kern/kern_shutdown.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index fbb3c2bc7c1c..cd390ada512c 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -673,7 +673,7 @@ acpi_attach(device_t dev) /* Register our shutdown handler. */ EVENTHANDLER_REGISTER(shutdown_final, acpi_shutdown_final, sc, - SHUTDOWN_PRI_LAST); + SHUTDOWN_PRI_LAST + 150); /* * Register our acpi event handlers. diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 4e582d8c8bfa..4e168df25301 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -259,10 +259,10 @@ shutdown_conf(void *unused) EVENTHANDLER_REGISTER(shutdown_final, poweroff_wait, NULL, SHUTDOWN_PRI_FIRST); - EVENTHANDLER_REGISTER(shutdown_final, shutdown_halt, NULL, - SHUTDOWN_PRI_LAST + 100); EVENTHANDLER_REGISTER(shutdown_final, shutdown_panic, NULL, SHUTDOWN_PRI_LAST + 100); + EVENTHANDLER_REGISTER(shutdown_final, shutdown_halt, NULL, + SHUTDOWN_PRI_LAST + 200); } SYSINIT(shutdown_conf, SI_SUB_INTRINSIC, SI_ORDER_ANY, shutdown_conf, NULL); From nobody Sat Feb 17 20:30: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 4TcgRV4XTHz59ZrY; Sat, 17 Feb 2024 20:30: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcgRV45y8z4RQK; Sat, 17 Feb 2024 20:30:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708201846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7DgsvbSTrq/LSAXNDHXkjzFrP2EREj6jPy0EsINZrL0=; b=Fv7oX61J8bI7e5cbVmWqfQAD3xPelT6kdjeb83SVVHIoza0KLI6cz/1Bz4oSKb9YDAv3Pl hdz2uz2NNjCRevYVKrYeDZt/nrq9zS2VQNvrkkqwqdNsakaGo1ojfFDQgFwGwR8x4C03uY SKaYt2tO3723xtcOQk1vqgWDwXCRx5aQRrf2qi8wHRxvDu+iNlF6qjJC3tmsyVXQzw8SFZ jbMqTkNSQZ34ZHKWV0B0/Qj4WtDYxX+xtEUfHJrOqgoALdGXQqGy8Admi6b8EPCGVuyHd4 Pn58jIYvQ91dJtRd9W47N31okIoVMT2GVYk5wjEjboOkYQVTkGpgcvgarIBnpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708201846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7DgsvbSTrq/LSAXNDHXkjzFrP2EREj6jPy0EsINZrL0=; b=jgbpAOi6u8OtM+cYj9DB+7PEPuSSUQrjGREmxFG5Xgkvh7uvobdXDl8JufrTcf3pmc1e2Q cZScKHwEHanpzG1O1p637QF52kZNmWDdUA79GYlPH9F0tptW6NGvNzdEW8Z28IvhhBjTFj uM04vdKMcf/i+yQB/WJaehykh82cVcrTHMUwUo9AXZ3sHImLKlZex71yR+hkFAI+on8bJk yq4abC2AXCobjvQyvR5m1s2Vbg8UzTe8EvgMISNVg77iZl0OZ0qJ++/LcjU+7HwWwLe1gf miWWrmRapxjCJNSugZkYmL+GCR4zZ0O0qE6qijZG4jkco5Lr3C6+njLPDPS9sw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708201846; a=rsa-sha256; cv=none; b=gKmCshl93WrnoVFWZxL4UA73oOYqAjuB51NdDwECRq7xmNl7V65XykEeaKSon9KHlxLPQh yU7iB3G/IzFqetGB3bTfX/b21QrVMDsiH3NLXNE5hppLLeJW/+oUrVFKQo3e0i3i1pX1rp Z4Cm0tBqxWM8zcvvVRT2pwSA0Z4nZRME1QVHdtVE63+Vz3eKwpWdy7ykyOGlTJZPqEJPua D5ct158jAH6shICsnkGTL4DdD+tRu7PxQX6RAe4g9XKpIvVEHNFzATP/846v1xklbS+wE9 LG3LpsLiVBYReTNoBFlf/YpQ1tZULOUovr0w6i3njnX33ay+E6cjzxSL06XQqw== 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 4TcgRV39WhzM4k; Sat, 17 Feb 2024 20:30:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HKUk8j013281; Sat, 17 Feb 2024 20:30:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HKUkDS013278; Sat, 17 Feb 2024 20:30:46 GMT (envelope-from git) Date: Sat, 17 Feb 2024 20:30:46 GMT Message-Id: <202402172030.41HKUkDS013278@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Bergling Subject: git: adac86cd7be0 - stable/14 - if_eqos: Fix a typo in a kernel error 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gbe X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: adac86cd7be0347e8337ec32d81043e544c0a72b Auto-Submitted: auto-generated The branch stable/14 has been updated by gbe: URL: https://cgit.FreeBSD.org/src/commit/?id=adac86cd7be0347e8337ec32d81043e544c0a72b commit adac86cd7be0347e8337ec32d81043e544c0a72b Author: Gordon Bergling AuthorDate: 2024-01-28 15:42:12 +0000 Commit: Gordon Bergling CommitDate: 2024-02-17 20:30:23 +0000 if_eqos: Fix a typo in a kernel error message - s/errer/error/ (cherry picked from commit 551921a757758353af51cd0283e9e4bcee9a84d2) --- sys/dev/eqos/if_eqos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/eqos/if_eqos.c b/sys/dev/eqos/if_eqos.c index d969c019a9a5..3ee406f26def 100644 --- a/sys/dev/eqos/if_eqos.c +++ b/sys/dev/eqos/if_eqos.c @@ -687,7 +687,7 @@ eqos_rxintr(struct eqos_softc *sc) break; if (rdes3 & (EQOS_RDES3_OE | EQOS_RDES3_RE)) - printf("Receive errer rdes3=%08x\n", rdes3); + printf("Receive error rdes3=%08x\n", rdes3); bus_dmamap_sync(sc->rx.buf_tag, sc->rx.buf_map[sc->rx.head].map, BUS_DMASYNC_POSTREAD); From nobody Sat Feb 17 21:11: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 4TchL75xWCz59h33; Sat, 17 Feb 2024 21:11: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TchL74f84z4ZSK; Sat, 17 Feb 2024 21:11:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708204271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=89hBo54n5ppD7yWUCjpNeuB9llDg4YAhm6y2KxP//kI=; b=jMEz/A+3r34tTF9kOtrk79lK6tuzWeRepd1LsDjQ1fdWAy8Wc6ougsa+oVGEXg8SgnoK1e POKDGKhEWWssBuuojIlC2dvr3Cn5ImLM4mR8j1UF9NpKfdoBIDWWvM+ZRwEteOzngOVhfz jSO2HBZgQF88PvVXiQIFqNTu58BCTXlP9sjVGGSFLrYn2HAUJ2Xy7eavsqik2lP+AtFqab hTcT6agwWvi9R6I0fH1Phdj4b3VfelbVUfgpqzdYK9KRjJLwtWzJZlbdvpEz81AWCjlawx zTVHDVLnovN9bdjZGTC2UWyi33NOqj3KZrADm253KvnF3Kh/yaz8MdGwoMYftg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708204271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=89hBo54n5ppD7yWUCjpNeuB9llDg4YAhm6y2KxP//kI=; b=f4zlMa/qVq5gRQJOpN5Rf9mxM1Qw7wqSXcqc47xObMbh+sU3VCBlwpjPLd9nxhxO/qfXyc /eD6EMo/VKMyNABRTLl6lZyKkCWBHHPJKZDoZVoNqImxq7kxU9NS2T0BIDsOwqneW+PShS LO3a3WB5wqHnWLMqFs7vO2rqIfIwpnWWuPEb/ftcmQwL4HSg37CyVDTwQm5yTEo1hxLLC+ XzoES5hNKwc8adNdK2LHHMem4FqGgTt2oCQ7LGT1RsWzXS/K/Vm9SnZ6yAJLmoq8/+/c80 uHgcoQJb22NOpznjbXd3jTK3DS9OGeyfeopsquk1u+EK3GiGbsNuCF+Lrac5hA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708204271; a=rsa-sha256; cv=none; b=fjxSAfuK+7aaF9e4LX77w0ZD+6pOUCLgDyk85GmHl+sRAQAsAseJyQB+MIPFNrwirN6rbH GHk6zhBY7mOIHRvjbrxBAust8Tiol2G5muu2fy70b9yNkpFyhnhHXovhFbrQMLO7u9C4I4 nlLfWRPPUKK4eKJCaLYrpxQEC/kh3YEJFSdlEgdW/aDWmNEjlOZh1iLfVn/GTp9FvJEj1q 4AZre7oPL81XQyew63cBJgjX8vtRZ+yszUpyAKxb0stR/EgNMWYdIGoFqPNaFjhONIbwuy 8aNrQhOU3VianMZHOk3V1IxaBuTolN+EzSPAAIQkDx+Tk0Q2V0l6LOPr7kJxsQ== 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 4TchL73SH9zNfy; Sat, 17 Feb 2024 21:11:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLBB3x080100; Sat, 17 Feb 2024 21:11:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLBBiV080097; Sat, 17 Feb 2024 21:11:11 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:11:11 GMT Message-Id: <202402172111.41HLBBiV080097@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Stefan =?utf-8?Q?E=C3=9Fer?= Subject: git: 8b67c670a49b - main - msdosfs: fix directory corruption after rename operation 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8b67c670a49b4efe7e1557121b5bbae682ea3bc7 Auto-Submitted: auto-generated The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=8b67c670a49b4efe7e1557121b5bbae682ea3bc7 commit 8b67c670a49b4efe7e1557121b5bbae682ea3bc7 Author: Stefan Eßer AuthorDate: 2024-02-17 21:04:49 +0000 Commit: Stefan Eßer CommitDate: 2024-02-17 21:04:49 +0000 msdosfs: fix directory corruption after rename operation The is a bug in MSDOSFS that can be triggered when the target of a rename operation exists. It is caused by the lack of inodes in the FAT file system, which are substituted by the location of the DOS 8.3 directory entry in the file system. This causes the "inode" of a file to change when its directory entry is moved to a different location. The rename operation wants to re-use the existing directory entry position of an existing target file name (POS1). But the code does instead locate the first position in the directory that provides sufficient free directory slots (POS2) to hold the target file name and fills it with the directory data. The rename operation continues and at the end writes directory data to the initially retrieved location (POS1) of the old target directory. This leads to 2 directory entries for the target file, but with inconsistent data in the directory and in the cached file system state. The location that should have been re-used (POS1) is marked as deleted in the directory, and new directory data has been written to a different location (POS2). But the VFS cache has the newly written data stored under the inode number that corresponds to the initially planned position (POS1). If then a new file is written, it can allocate the deleted directory entries (POS1) and when it queries the cache, it retrieves data that is valid for the target of the prior rename operation, leading to a corrupt directory entry (at POS1) being written (DOS file name of the earlier rename target combined with the Windows long file name of the newly written file). PR: 268005 Reported by: wbe@psr.com Approved by: kib, mckusick Fixes: 2c9cbc2d45b94 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D43951 --- sys/fs/msdosfs/msdosfs_vnops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c index 31d9b003a6fa..078ea5e52312 100644 --- a/sys/fs/msdosfs/msdosfs_vnops.c +++ b/sys/fs/msdosfs/msdosfs_vnops.c @@ -1180,8 +1180,10 @@ relock: memcpy(oldname, fip->de_Name, 11); memcpy(fip->de_Name, toname, 11); /* update denode */ error = msdosfs_lookup_ino(tdvp, NULL, tcnp, &scn, &blkoff); - if (error == EJUSTRETURN) + if (error == EJUSTRETURN) { + tdip->de_fndoffset = to_diroffset; error = createde(fip, tdip, NULL, tcnp); + } if (error != 0) { memcpy(fip->de_Name, oldname, 11); goto unlock; From nobody Sat Feb 17 21:32: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 4Tchpg6Lnmz59kwK; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpg5wLJz4g87; Sat, 17 Feb 2024 21:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZSoQnVjL/BAr8yrsCAXq2dIE1XQpI6mE2el1n6avOlY=; b=Atotfb6nVm6ro2cFUP7sNZF6TomC3SVEpeiTlFnExadRKr1FLA9pgyRst72j4ulIOXb1Xf I50weBSH0Vvng9zMipQ4SHtKyJmqo6cgm81yAcP8kxlhSSTsuYuzn17eBAg4zalZtkFzmd UjPMGt4Szy6TTwIZDPoh70VS1ITAFdU8QHUzKfmD9t7lZNK4F3bwc8mJ2A9ZTPFVVw0jez aX2bD8QcPxG+t99BWFpJsDdiDBc8CV0wSGODw0a0ytKoIs6wWuMn+3KrBNTC2GGLioQCqw dfBhZxx7bRrZ+gVC4N0z3EBrW5kBm0TVnmG4UQ8vvSpYr5SRpVw0+m/XFmVjdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZSoQnVjL/BAr8yrsCAXq2dIE1XQpI6mE2el1n6avOlY=; b=m3jWZpLJMvQ5xoZUNLYOKpViAgZDSH3uME6jOxZ6zIqmAq5zZhZxntIaH2UPNp9119fW3d wLIQjLH42HfRrsR8iHUNfsMxh4hk0sDF5E9AWNcDI/+PKpiA9uT6a+PD8UAykREliw0gm0 vT6G7QwpyNjefS8qPsbaVTgPDNjT0Qf8omMRLIk2QnLSPaG/kRKp1rT2B3tjX6c5XROrk5 H6LS2/0kcyLtSPzq+GRNkDIjNZfttYLQJQvkKL+rHIOmUczNet7rjsTL7W1J6Y64jyu5uv eoRpeMIpiOh0sUdemKRCzPPetde4rtS9+qX9PbSWMCR2SbAFJdLTtPgyrktvJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205547; a=rsa-sha256; cv=none; b=NYvUyv3sDOYDnr5y83U1DO8SdGDhXRbPdAqcERNQQpJxPV56SZu2remAFGDZ0N5rvA1FXx HdsTGFdqgf0KKc8u8JEQaIFxhdGbLhgasPW2RSiTJzXxwF9m6Dkwpw7aS5uKdt/3ryWGlq nb76R39FWDPyB1RW8+4VAqJZgoexcoYX6crd1XBIEW5nB4rKsEt6lctDcT8JFPfoIFYLLE VeNI5bLwckjYcUZqzWmJZLT9V+71iBdtxSSy5aO6mO2gBSMd25fyghTJbFV0PNVbCMyH9I BtV8Sxx2+4mGsiiP/LdWHDia1KAZcXJhbcPna7eLZ1TkkSKZhIoB//+LDuiD0w== 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 4Tchpg4z2jzPM8; Sat, 17 Feb 2024 21:32:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWREs019443; Sat, 17 Feb 2024 21:32:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWRsS019440; Sat, 17 Feb 2024 21:32:27 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:27 GMT Message-Id: <202402172132.41HLWRsS019440@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: bb01efa6f87a - stable/14 - linuxkpi: Fix uses of `pmap_change_attr()` 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: bb01efa6f87a8588f0190fe778f2376736c93acc Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=bb01efa6f87a8588f0190fe778f2376736c93acc commit bb01efa6f87a8588f0190fe778f2376736c93acc Author: Jean-Sébastien Pédron AuthorDate: 2023-08-16 20:32:42 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:34 +0000 linuxkpi: Fix uses of `pmap_change_attr()` [Why] This function takes an offset and a length as argument, not a physical address and a number of pages. This misuse caused the `set_memory_*()` and `arch_io_reserve_memtype_wc()` functions to return EINVAL. Another problem was the fact that they returned errors as a positive integer, whereas Linux uses negative integers. [How] Physical addresses and number of pages are converted to offset+length in the `set_memory_*()` functions. `arch_io_reserve_memtype_wc()` now calls `pmap_change_attr()` directly instead of using `set_memory_wc()`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42053 (cherry picked from commit 1e99b2ee90956f275c3668e92a408400f2dada1c) --- .../linuxkpi/common/include/asm/set_memory.h | 24 +++++++++++++++++++--- sys/compat/linuxkpi/common/include/linux/io.h | 15 ++++++++++++-- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/asm/set_memory.h b/sys/compat/linuxkpi/common/include/asm/set_memory.h index ae50148f0314..69f659001c60 100644 --- a/sys/compat/linuxkpi/common/include/asm/set_memory.h +++ b/sys/compat/linuxkpi/common/include/asm/set_memory.h @@ -34,14 +34,26 @@ static inline int set_memory_uc(unsigned long addr, int numpages) { - return (pmap_change_attr(addr, numpages, VM_MEMATTR_UNCACHEABLE)); + vm_offset_t va; + vm_size_t len; + + va = PHYS_TO_DMAP(addr); + len = numpages << PAGE_SHIFT; + + return (-pmap_change_attr(va, len, VM_MEMATTR_UNCACHEABLE)); } static inline int set_memory_wc(unsigned long addr, int numpages) { #ifdef VM_MEMATTR_WRITE_COMBINING - return (pmap_change_attr(addr, numpages, VM_MEMATTR_WRITE_COMBINING)); + vm_offset_t va; + vm_size_t len; + + va = PHYS_TO_DMAP(addr); + len = numpages << PAGE_SHIFT; + + return (-pmap_change_attr(va, len, VM_MEMATTR_WRITE_COMBINING)); #else return (set_memory_uc(addr, numpages)); #endif @@ -50,7 +62,13 @@ set_memory_wc(unsigned long addr, int numpages) static inline int set_memory_wb(unsigned long addr, int numpages) { - return (pmap_change_attr(addr, numpages, VM_MEMATTR_WRITE_BACK)); + vm_offset_t va; + vm_size_t len; + + va = PHYS_TO_DMAP(addr); + len = numpages << PAGE_SHIFT; + + return (-pmap_change_attr(va, len, VM_MEMATTR_WRITE_BACK)); } static inline int diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h index ee46d354a5ae..2345967898e6 100644 --- a/sys/compat/linuxkpi/common/include/linux/io.h +++ b/sys/compat/linuxkpi/common/include/linux/io.h @@ -532,14 +532,25 @@ void lkpi_arch_phys_wc_del(int); static inline int arch_io_reserve_memtype_wc(resource_size_t start, resource_size_t size) { + vm_offset_t va; - return (set_memory_wc(start, size >> PAGE_SHIFT)); + va = PHYS_TO_DMAP(start); + +#ifdef VM_MEMATTR_WRITE_COMBINING + return (-pmap_change_attr(va, size, VM_MEMATTR_WRITE_COMBINING)); +#else + return (-pmap_change_attr(va, size, VM_MEMATTR_UNCACHEABLE)); +#endif } static inline void arch_io_free_memtype_wc(resource_size_t start, resource_size_t size) { - set_memory_wb(start, size >> PAGE_SHIFT); + vm_offset_t va; + + va = PHYS_TO_DMAP(start); + + pmap_change_attr(va, size, VM_MEMATTR_WRITE_BACK); } #endif From nobody Sat Feb 17 21:32: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 4Tchpj1Lz9z59kcj; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchph6lXKz4gK6; Sat, 17 Feb 2024 21:32:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=II6awvwuD6OTco1iXJ3QKXfCprPJqoSpFAZyRXHTA+4=; b=ndAMxkv6uRdXOmfCYjpIVV00aY29Px3wsWmmXOX7N4ImLI9qzWtAS5qi8SXUuLS9Y0Takf u2z6wCWRfNOmyFUQChANxjaETZ6WxiwOd2/XKb65cUyD5TuRZNhFyF+I5iWjwoD2trs0dW OdVfeAqBDsOaITpKio3MYrCRsGw2WGt6xRlpOE0yrkXUysvpYYZdU7cb9IVg2DK7wRjF7t aYU7byZnahzyBYpzQ22Xu7ZdeMTbzZrqviT1NS5FDcL20KHjdkgdQ3/VhMlhooBvAWNxr3 dX6OM9ck2bN5pMgusI5yzzd626u/g6yzo+ASwh/7b3y4ujrE5Oq5sbDobWT9CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=II6awvwuD6OTco1iXJ3QKXfCprPJqoSpFAZyRXHTA+4=; b=uiH9eR6MxmFuPYL5OiNu96TbP4bL3kP3ZSor37n0jSua9x5JxDlg+NUcmw0YoFptGNbn7S Tmcefcg/om663nyWtZkw8KGIJMFHvYzTzmWWqF+HpeTOHRXCdZzyNVAFPIx6m7cSoUrAji NyhNj/zzEHtxc9EF0q0mGJH1IbZmlSPosg9ubPox7XGMNnx3jJ1XX2aqrM3URou5E2r6hT 8Jf5e1Fb92OW+7ZA3tQ22bQe1Nqh8RolLWk26jxwyfRjWcYMlNcOy99F4vl/A/WcEWoWVq 7p0Sgu2NFeABXDQDcYnIqOreJXm7H3GR+9P6NkWehQpu0ApoT99rtxd+UGCYbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205548; a=rsa-sha256; cv=none; b=CepPEWxccQhUctMAkbvbwTmdoiN9kq8FAMI3VgGY/j/goUU78dllLVoRc96n9bJeFYXjn/ UVchyJ0gCVb57azps/C8b3ptP3LaX0Mzf7zsDyMYnwlTuBeqTKWsiw6WXJ4azE2hjCC4n1 YWjBr4ttNtDmqEoZiQRcAn032DZVbmNkkBjq1dhDjAmUK9A+jY9/ZwUi6V1oOPtN69gqup jlpnanLG/cjwEzNve2OA5l/BXJkAkaPDZKdqZ5E7eQXVSO4y+HPfeeXA3u5AcuINEgceha udEO7S1CvYeonnXOr2mCHntostqe0RmIXQjHu1N8w52UPAm0SVZR+fWz2kqHEQ== 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 4Tchph5s2FzPb8; Sat, 17 Feb 2024 21:32:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWSNg019488; Sat, 17 Feb 2024 21:32:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWSLQ019485; Sat, 17 Feb 2024 21:32:28 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:28 GMT Message-Id: <202402172132.41HLWSLQ019485@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 608b14876011 - stable/14 - vt(4): Skip vt_flush() for nested panics 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 608b1487601177817c27d9dbeec920cdb3a85fb7 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=608b1487601177817c27d9dbeec920cdb3a85fb7 commit 608b1487601177817c27d9dbeec920cdb3a85fb7 Author: Jean-Sébastien Pédron AuthorDate: 2023-11-24 17:30:33 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:34 +0000 vt(4): Skip vt_flush() for nested panics [Why] If there is a problem with DRM drivers or in their integration with vt(4) and displaying something on the console triggers a panic, there is a high chance that displaying that panic will trigger another one, recursively. [How] If vt_flush() is called and it detects is is called resursively from another panic, it return immediately, doing nothing, to avoid the risk of triggering another panic. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42056 (cherry picked from commit 049e3fba04e82f840cc43080edade0ed415fee72) --- sys/dev/vt/vt_core.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index c97cb80ca3f1..406472a8fbf6 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -274,6 +274,8 @@ SYSINIT(vt_update_static, SI_SUB_KMEM, SI_ORDER_ANY, vt_update_static, SYSINIT(vt_early_cons, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_ANY, vt_upgrade, &vt_consdev); +static bool inside_vt_flush = false; + /* Initialize locks/mem depended members. */ static void vt_update_static(void *dummy) @@ -1344,6 +1346,9 @@ vt_flush(struct vt_device *vd) int cursor_was_shown, cursor_moved; #endif + if (inside_vt_flush && KERNEL_PANICKED()) + return (0); + vw = vd->vd_curwindow; if (vw == NULL) return (0); @@ -1357,6 +1362,8 @@ vt_flush(struct vt_device *vd) vtbuf_lock(&vw->vw_buf); + inside_vt_flush = true; + #ifndef SC_NO_CUTPASTE cursor_was_shown = vd->vd_mshown; cursor_moved = (vd->vd_mx != vd->vd_mx_drawn || @@ -1414,10 +1421,12 @@ vt_flush(struct vt_device *vd) if (tarea.tr_begin.tp_col < tarea.tr_end.tp_col) { vd->vd_driver->vd_bitblt_text(vd, vw, &tarea); + inside_vt_flush = false; vtbuf_unlock(&vw->vw_buf); return (1); } + inside_vt_flush = false; vtbuf_unlock(&vw->vw_buf); return (0); } @@ -1444,6 +1453,9 @@ vtterm_pre_input(struct terminal *tm) { struct vt_window *vw = tm->tm_softc; + if (inside_vt_flush && KERNEL_PANICKED()) + return; + vtbuf_lock(&vw->vw_buf); } @@ -1452,6 +1464,9 @@ vtterm_post_input(struct terminal *tm) { struct vt_window *vw = tm->tm_softc; + if (inside_vt_flush && KERNEL_PANICKED()) + return; + vtbuf_unlock(&vw->vw_buf); vt_resume_flush_timer(vw, 0); } From nobody Sat Feb 17 21:32: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 4Tchpk3rHBz59lBV; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpk0jBnz4gbJ; Sat, 17 Feb 2024 21:32:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j017KCGGDo4vwnu8dq7CQyvDGK5glM6tvoASvTqTUkI=; b=pc+MzzRh9LIs6gV3bRQnebMqYb0Kr76jLfmZg2abqJcE05QfMKtU5svrv+LrEg6lUExj1i sX1wU2N9TrER+Fvr61Z5+cEF64CbHP3av8LCtYIkbHO511JQykvnjkQoJk7UaeLc6QcC2y QLWiLZNqrhp4XyG/1dRemrFBDVzHGRNrEyVOJO7ZPYqVch+U4234yY1obdH4yKlu+vU3NF 3e68XpT85nm5JGqXcouPsH/jQI3wta1XWTb7k6qR3YRq/y2aWQEmuxUubNH0Ue07TzbRpf +8AUaQWvEnruEY44Q69YmQQFxZYhMdbiQD9/lw1U1aIXvtp7/JXIv1soSs6avQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j017KCGGDo4vwnu8dq7CQyvDGK5glM6tvoASvTqTUkI=; b=b9yfxqSgdMK6wjZrJ9QtlXOeqRlZkdxaoboMiBOKTwRQkUYQvFWBluX0BQz80JMKCZ2N0j PhZMijIx3CxjqcaGYSiNIKGHBYjnCww5cpUETaw0Ie7IBAcnlvS540qyPzoDru+Ka8iD/z dL9R44bquZ7WIMkcEL2LGe2miDse+SQguPQf7AtNU4O6Ml9e3WUY/skaY+moifkSR3hoH9 xK7deDOMz+kq0KlX3P7vw/a+ApRo2STuT5FJdq75ti+Ya3xkX81hfqk515PiS0UVAxbzbQ udJltS47ww3ANzq8buwbfW7Zu/9bjbG/9lxen7/+SF5h4GQ5Ur/1MLe7wbfkyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205550; a=rsa-sha256; cv=none; b=inLHQJQ5BS3S+Ks1Sby5t3QhmgONGc4MzNMoGgEk5ZOD/iZTdMAT4jwaWhg78eyHXltCdj sy9WSORahyxDRIPc+9ziDdDTJHfL5kz3CqggHdJoykcrIhbvBkb20Q9PVqax6C6R7gvWfg Q5T7voSQAF5xYC8xbNI12Jv0KSGaZxvs+LCjiyRg9nGZ6U6Lleqn46alCrPkzuE3XtWtnA jxMtDnk976zSUku5fa4gK939v3fGIrJWXzVzsszQaT4Q6haAOKKv3F7O6gRGfUK05jlzNr /o40Slc/2Rc2tGkOCUKS7nFqUJ3586LV8L6QBXXQVXvHUUIPHHXOXr0kSWaz+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 4Tchpj6sVTzPb9; Sat, 17 Feb 2024 21:32:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWTZp019533; Sat, 17 Feb 2024 21:32:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWTNY019530; Sat, 17 Feb 2024 21:32:29 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:29 GMT Message-Id: <202402172132.41HLWTNY019530@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 95007bfd64c6 - stable/14 - vt(4): Skip vt_window_switch() for nested panics 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 95007bfd64c63f217c97210cd4cdf2d729f2f696 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=95007bfd64c63f217c97210cd4cdf2d729f2f696 commit 95007bfd64c63f217c97210cd4cdf2d729f2f696 Author: Jean-Sébastien Pédron AuthorDate: 2023-11-24 17:30:33 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:34 +0000 vt(4): Skip vt_window_switch() for nested panics [Why] The same protection was added to vt_flush() in the previous commit. We want the same one in vt_window_switch(): if e.g. the DRM driver panics while handling a call to vt_window_switch(), we don't want to recursively call vt_window_switch() again and trigger another panic. Reviewed by: imp, manu Approved by: imp, manu Differential Revision: https://reviews.freebsd.org/D42750 (cherry picked from commit 24d6f256f825e5d7f8ca6b5d16499f13614f9cdd) --- sys/dev/vt/vt_core.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 406472a8fbf6..6d44c81181a3 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -275,6 +275,7 @@ SYSINIT(vt_early_cons, SI_SUB_INT_CONFIG_HOOKS, SI_ORDER_ANY, vt_upgrade, &vt_consdev); static bool inside_vt_flush = false; +static bool inside_vt_window_switch = false; /* Initialize locks/mem depended members. */ static void @@ -564,6 +565,11 @@ vt_window_switch(struct vt_window *vw) struct vt_window *curvw = vd->vd_curwindow; keyboard_t *kbd; + if (inside_vt_window_switch && KERNEL_PANICKED()) + return (0); + + inside_vt_window_switch = true; + if (kdb_active) { /* * When grabbing the console for the debugger, avoid @@ -575,13 +581,16 @@ vt_window_switch(struct vt_window *vw) */ if (curvw == vw) return (0); - if (!(vw->vw_flags & (VWF_OPENED|VWF_CONSOLE))) + if (!(vw->vw_flags & (VWF_OPENED|VWF_CONSOLE))) { + inside_vt_window_switch = false; return (EINVAL); + } vd->vd_curwindow = vw; vd->vd_flags |= VDF_INVALID; if (vd->vd_driver->vd_postswitch) vd->vd_driver->vd_postswitch(vd); + inside_vt_window_switch = false; return (0); } @@ -595,10 +604,12 @@ vt_window_switch(struct vt_window *vw) if ((kdb_active || KERNEL_PANICKED()) && vd->vd_driver->vd_postswitch) vd->vd_driver->vd_postswitch(vd); + inside_vt_window_switch = false; VT_UNLOCK(vd); return (0); } if (!(vw->vw_flags & (VWF_OPENED|VWF_CONSOLE))) { + inside_vt_window_switch = false; VT_UNLOCK(vd); return (EINVAL); } @@ -627,6 +638,7 @@ vt_window_switch(struct vt_window *vw) mtx_unlock(&Giant); DPRINTF(10, "%s(ttyv%d) done\n", __func__, vw->vw_number); + inside_vt_window_switch = false; return (0); } From nobody Sat Feb 17 21:32: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 4Tchpl3MJRz59kyx; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpl1WnRz4gV3; Sat, 17 Feb 2024 21:32:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cS6MWyH6ZQVXMtW8bmhSTnOgmkRSGmMi/OKgr+UunF4=; b=RkQj64V26KXrZlDoCOU7lQv2da7VeImhDImweIz7Mtm0+OjfPcqyQvD/lguvyYizRqWa7L jmGcAW17NJzmhPmpDoLxaYnxH83wp7xO85GSCsC/NxLY7wE/u41R/Z2trlVNABRTh9xmKw WAQeCXZFDAQ2zsTBflZ6ZXaoSgftI7rOSlQbIG/Hj6E819VkfVszFqXz/m2jFMoO3lYLI6 fgRn6Od73bZhPZyzQ/UjNJiYns+BSzJoQZT2gb/H8LL7N6LrSWl1vnkR+BQw5XVgQtsJTd TZ1odx+qGGQp2OeXz2RMYOyhmer9Wg9Brd0lLaJTFUQADlpZ9A+NXqLgogc0Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cS6MWyH6ZQVXMtW8bmhSTnOgmkRSGmMi/OKgr+UunF4=; b=Ro76UuCWqvqBCwT4mB3cN/f5mOYcYMmN3d/a8Ix4JK1UaGjcpC/dNlGai4bazZoAAnETnf SZrqdKcDL4wfYIUvK0mGhJoQiQb+gxMJNq70Hk8x0I13DfNzK39ytzvrrvFOLwUYSOwATf aezQPgzTNMnKHJK1SdIav7YvbAZ91sx28VXxpHHj3xFsVryR5P7b7hAyWJbOUy3tDg77fD u9jx5YPoq+WPVp6bYYxYiVHS4ydkBsuy4AthKCnK66FfvxveP68Tx+bIKr6tGE+aK3yWW7 QxDF+ByXkzyQf9qVi88ZNoOEkZtotmS2yuy8eP8WVXI+1/CURCKjj+ZHTBj8dA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205551; a=rsa-sha256; cv=none; b=MdcAufJ8mTDpAKNIwpNKzYkkFvtvVTYoRA33tW2VItTQ0BpfY/6HlH4nxeJVxZcHixrLq0 V9bS8hPA7cVPpmt4FzcA9JJn1FQ6mnbAac3EqqZtjdJJGbZYP//Cr/3mM2g4bMlGOixkBP 5qA78tFMOQzWP8ByevVH221zEDnDwRZhU+QDmPnVnWahQ8MbQ5R6vPXlKmswwwfh2vQNKv Ff2LKUpuSm72HOFUGwxIF+U4HKFrP4gj/ZU/vwQxtGhakDQrgwK82kJIqCUGD0N8Qyoie3 Llz0flnoBMbIsdbr9zqN+OckN2V+8E3SrXHmxT1BiJ1LrPT2/8Kv68LCqG94/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 4Tchpl0X8WzP9M; Sat, 17 Feb 2024 21:32:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWUQC019597; Sat, 17 Feb 2024 21:32:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWUDq019594; Sat, 17 Feb 2024 21:32:30 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:30 GMT Message-Id: <202402172132.41HLWUDq019594@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 6b9da4e86ed9 - stable/14 - vt(4): New bitblt_text variant making a copy before unlocking vt_buf 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 6b9da4e86ed961f297040bb9a5355e6c941f161b Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=6b9da4e86ed961f297040bb9a5355e6c941f161b commit 6b9da4e86ed961f297040bb9a5355e6c941f161b Author: Jean-Sébastien Pédron AuthorDate: 2023-11-24 17:30:34 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:34 +0000 vt(4): New bitblt_text variant making a copy before unlocking vt_buf [Why] In the DRM drivers and the integration with vt(4), we need to execute DRM code outside of the vtbuf_lock. The reason is that this DRM code acquires locks which can't be acquired when vtbuf_lock, an MTX_SPIN mutex, is already held. [How] A vt(4) backend can now set the `vd_bitblt_after_vtbuf_unlock` flag to true if it wants to be called outside of vt_buf_lock. In this case, vt(4) uses an internal version of bitblt_text that uses the `vd_drawn` arrays, plus a new `vd_pos_to_flush` array, to track characters to draw/refresh. This internal version then uses the backend's bitblt_bmp callback to draw the characters after vt_buf has been unlocked. Drawing borders and CPU logos is also deferred after the vt_buf lock is released for the same reason. We introduce another lock (a default mutex), only used when the `vd_bitblt_after_vtbuf_unlock` flag is set, to replace part the role of the vt_buf lock and manage concurrent calls to vt_flush(). The `SC_NO_CONSDRAWN` define is dropped because we now always need the `vd_drawn` arrays. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42057 (cherry picked from commit 162a2b858854656ddd6b75d290be8a640ba8f324) --- sys/dev/vt/vt.h | 19 ++++++ sys/dev/vt/vt_core.c | 180 +++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 185 insertions(+), 14 deletions(-) diff --git a/sys/dev/vt/vt.h b/sys/dev/vt/vt.h index a21ecea999ec..56a28c0420c7 100644 --- a/sys/dev/vt/vt.h +++ b/sys/dev/vt/vt.h @@ -165,6 +165,9 @@ struct vt_device { term_char_t *vd_drawn; /* (?) Most recent char drawn. */ term_color_t *vd_drawnfg; /* (?) Most recent fg color drawn. */ term_color_t *vd_drawnbg; /* (?) Most recent bg color drawn. */ + + struct mtx vd_flush_lock; /* (?) vt_flush() lock. */ + bool *vd_pos_to_flush;/* (?) Positions to flush. */ }; #define VD_PASTEBUF(vd) ((vd)->vd_pastebuf.vpb_buf) @@ -175,6 +178,14 @@ struct vt_device { #define VT_UNLOCK(vd) mtx_unlock(&(vd)->vd_lock) #define VT_LOCK_ASSERT(vd, what) mtx_assert(&(vd)->vd_lock, what) +#define VT_FLUSH_LOCK(vd) \ + if ((vd)->vd_driver->vd_bitblt_after_vtbuf_unlock) \ + mtx_lock(&(vd)->vd_flush_lock) + +#define VT_FLUSH_UNLOCK(vd) \ + if ((vd)->vd_driver->vd_bitblt_after_vtbuf_unlock) \ + mtx_unlock(&(vd)->vd_flush_lock) + void vt_resume(struct vt_device *vd); void vt_resume_flush_timer(struct vt_window *vw, int ms); void vt_suspend(struct vt_device *vd); @@ -376,6 +387,14 @@ struct vt_driver { #define VD_PRIORITY_DUMB 10 #define VD_PRIORITY_GENERIC 100 #define VD_PRIORITY_SPECIFIC 1000 + + /* + * Should vd_bitblt_text() be called after unlocking vtbuf? If true, + * characters are copied before vd_bitblt_bmp() is called. + * + * This is only valid when the default bitblt_text callback is used. + */ + bool vd_bitblt_after_vtbuf_unlock; }; /* diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 6d44c81181a3..3e4db9a1ba30 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -202,11 +202,10 @@ SET_DECLARE(vt_drv_set, struct vt_driver); static struct terminal vt_consterm; static struct vt_window vt_conswindow; -#ifndef SC_NO_CONSDRAWN static term_char_t vt_consdrawn[PIXEL_HEIGHT(VT_FB_MAX_HEIGHT) * PIXEL_WIDTH(VT_FB_MAX_WIDTH)]; static term_color_t vt_consdrawnfg[PIXEL_HEIGHT(VT_FB_MAX_HEIGHT) * PIXEL_WIDTH(VT_FB_MAX_WIDTH)]; static term_color_t vt_consdrawnbg[PIXEL_HEIGHT(VT_FB_MAX_HEIGHT) * PIXEL_WIDTH(VT_FB_MAX_WIDTH)]; -#endif +static bool vt_cons_pos_to_flush[PIXEL_HEIGHT(VT_FB_MAX_HEIGHT) * PIXEL_WIDTH(VT_FB_MAX_WIDTH)]; struct vt_device vt_consdev = { .vd_driver = NULL, .vd_softc = NULL, @@ -228,11 +227,11 @@ struct vt_device vt_consdev = { .vd_mcursor_bg = TC_BLACK, #endif -#ifndef SC_NO_CONSDRAWN .vd_drawn = vt_consdrawn, .vd_drawnfg = vt_consdrawnfg, .vd_drawnbg = vt_consdrawnbg, -#endif + + .vd_pos_to_flush = vt_cons_pos_to_flush, }; static term_char_t vt_constextbuf[(_VTDEFW) * (VBF_DEFAULT_HISTORY_SIZE)]; static term_char_t *vt_constextbufrows[VBF_DEFAULT_HISTORY_SIZE]; @@ -292,6 +291,7 @@ vt_update_static(void *dummy) printf("VT: init without driver.\n"); mtx_init(&main_vd->vd_lock, "vtdev", NULL, MTX_DEF); + mtx_init(&main_vd->vd_flush_lock, "vtdev flush", NULL, MTX_DEF); cv_init(&main_vd->vd_winswitch, "vtwswt"); } @@ -1348,6 +1348,122 @@ vt_set_border(struct vt_device *vd, const term_rect_t *area, vd->vd_height - 1, 1, c); } +static void +vt_flush_to_buffer(struct vt_device *vd, + const struct vt_window *vw, const term_rect_t *area) +{ + unsigned int col, row; + term_char_t c; + term_color_t fg, bg; + size_t z; + + for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) { + for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; + ++col) { + z = row * PIXEL_WIDTH(VT_FB_MAX_WIDTH) + col; + if (z >= PIXEL_HEIGHT(VT_FB_MAX_HEIGHT) * + PIXEL_WIDTH(VT_FB_MAX_WIDTH)) + continue; + + c = VTBUF_GET_FIELD(&vw->vw_buf, row, col); + vt_determine_colors(c, + VTBUF_ISCURSOR(&vw->vw_buf, row, col), &fg, &bg); + + if (vd->vd_drawn && (vd->vd_drawn[z] == c) && + vd->vd_drawnfg && (vd->vd_drawnfg[z] == fg) && + vd->vd_drawnbg && (vd->vd_drawnbg[z] == bg)) { + vd->vd_pos_to_flush[z] = false; + continue; + } + + vd->vd_pos_to_flush[z] = true; + + if (vd->vd_drawn) + vd->vd_drawn[z] = c; + if (vd->vd_drawnfg) + vd->vd_drawnfg[z] = fg; + if (vd->vd_drawnbg) + vd->vd_drawnbg[z] = bg; + } + } +} + +static void +vt_bitblt_buffer(struct vt_device *vd, const struct vt_window *vw, + const term_rect_t *area) +{ + unsigned int col, row, x, y; + struct vt_font *vf; + term_char_t c; + term_color_t fg, bg; + const uint8_t *pattern; + size_t z; + + vf = vw->vw_font; + + for (row = area->tr_begin.tp_row; row < area->tr_end.tp_row; ++row) { + for (col = area->tr_begin.tp_col; col < area->tr_end.tp_col; + ++col) { + x = col * vf->vf_width + + vw->vw_draw_area.tr_begin.tp_col; + y = row * vf->vf_height + + vw->vw_draw_area.tr_begin.tp_row; + + z = row * PIXEL_WIDTH(VT_FB_MAX_WIDTH) + col; + if (z >= PIXEL_HEIGHT(VT_FB_MAX_HEIGHT) * + PIXEL_WIDTH(VT_FB_MAX_WIDTH)) + continue; + if (!vd->vd_pos_to_flush[z]) + continue; + + c = vd->vd_drawn[z]; + fg = vd->vd_drawnfg[z]; + bg = vd->vd_drawnbg[z]; + + pattern = vtfont_lookup(vf, c); + vd->vd_driver->vd_bitblt_bmp(vd, vw, + pattern, NULL, vf->vf_width, vf->vf_height, + x, y, fg, bg); + } + } + +#ifndef SC_NO_CUTPASTE + if (!vd->vd_mshown) + return; + + term_rect_t drawn_area; + + drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width; + drawn_area.tr_begin.tp_row = area->tr_begin.tp_row * vf->vf_height; + drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf->vf_width; + drawn_area.tr_end.tp_row = area->tr_end.tp_row * vf->vf_height; + + if (vt_is_cursor_in_area(vd, &drawn_area)) { + vd->vd_driver->vd_bitblt_bmp(vd, vw, + vd->vd_mcursor->map, vd->vd_mcursor->mask, + vd->vd_mcursor->width, vd->vd_mcursor->height, + vd->vd_mx_drawn + vw->vw_draw_area.tr_begin.tp_col, + vd->vd_my_drawn + vw->vw_draw_area.tr_begin.tp_row, + vd->vd_mcursor_fg, vd->vd_mcursor_bg); + } +#endif +} + +static void +vt_draw_decorations(struct vt_device *vd) +{ + struct vt_window *vw; + const teken_attr_t *a; + + vw = vd->vd_curwindow; + + a = teken_get_curattr(&vw->vw_terminal->tm_emulator); + vt_set_border(vd, &vw->vw_draw_area, a->ta_bgcolor); + + if (vt_draw_logo_cpus) + vtterm_draw_cpu_logos(vd); +} + static int vt_flush(struct vt_device *vd) { @@ -1357,6 +1473,7 @@ vt_flush(struct vt_device *vd) #ifndef SC_NO_CUTPASTE int cursor_was_shown, cursor_moved; #endif + bool needs_refresh; if (inside_vt_flush && KERNEL_PANICKED()) return (0); @@ -1372,8 +1489,9 @@ vt_flush(struct vt_device *vd) if (((vd->vd_flags & VDF_TEXTMODE) == 0) && (vf == NULL)) return (0); - vtbuf_lock(&vw->vw_buf); + VT_FLUSH_LOCK(vd); + vtbuf_lock(&vw->vw_buf); inside_vt_flush = true; #ifndef SC_NO_CUTPASTE @@ -1417,29 +1535,63 @@ vt_flush(struct vt_device *vd) vtbuf_undirty(&vw->vw_buf, &tarea); /* Force a full redraw when the screen contents might be invalid. */ + needs_refresh = false; if (vd->vd_flags & (VDF_INVALID | VDF_SUSPENDED)) { - const teken_attr_t *a; - + needs_refresh = true; vd->vd_flags &= ~VDF_INVALID; - a = teken_get_curattr(&vw->vw_terminal->tm_emulator); - vt_set_border(vd, &vw->vw_draw_area, a->ta_bgcolor); vt_termrect(vd, vf, &tarea); if (vd->vd_driver->vd_invalidate_text) vd->vd_driver->vd_invalidate_text(vd, &tarea); - if (vt_draw_logo_cpus) - vtterm_draw_cpu_logos(vd); } if (tarea.tr_begin.tp_col < tarea.tr_end.tp_col) { - vd->vd_driver->vd_bitblt_text(vd, vw, &tarea); - inside_vt_flush = false; - vtbuf_unlock(&vw->vw_buf); + if (vd->vd_driver->vd_bitblt_after_vtbuf_unlock) { + /* + * When `vd_bitblt_after_vtbuf_unlock` is set to true, + * we first remember the characters to redraw. They are + * already copied to the `vd_drawn` arrays. + * + * We then unlock vt_buf and proceed with the actual + * drawing using the backend driver. + */ + vt_flush_to_buffer(vd, vw, &tarea); + vtbuf_unlock(&vw->vw_buf); + vt_bitblt_buffer(vd, vw, &tarea); + + if (needs_refresh) + vt_draw_decorations(vd); + + /* + * We can reset `inside_vt_flush` after unlocking vtbuf + * here because we also hold vt_flush_lock in this code + * path. + */ + inside_vt_flush = false; + } else { + /* + * When `vd_bitblt_after_vtbuf_unlock` is false, we use + * the backend's `vd_bitblt_text` callback directly. + */ + vd->vd_driver->vd_bitblt_text(vd, vw, &tarea); + + if (needs_refresh) + vt_draw_decorations(vd); + + inside_vt_flush = false; + vtbuf_unlock(&vw->vw_buf); + } + + VT_FLUSH_UNLOCK(vd); + return (1); } inside_vt_flush = false; vtbuf_unlock(&vw->vw_buf); + + VT_FLUSH_UNLOCK(vd); + return (0); } From nobody Sat Feb 17 21:32: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 4Tchpm4rbRz59lBb; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpm1zlvz4gdq; Sat, 17 Feb 2024 21:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rYH01wfQRqxyOEwxW3tRyJW9qX5rHKx1ySfuvAyhdpo=; b=xI9atyTIdjm9R9WILyfrOk0nMaV7jOwigUxP4rZZP8Ap2BN06B4POG1Pdtc3zH2nmEXaYf a6h6nKDrZdaUl8UDeCJ4PX59OBdRkVCeeMn+JuFr9dlv1bt2REH73vypA9uR2DedeV15Uq 7Hs9lm+YHw76femGRd50uozA6RonIPgrlL9/eNVWNzHPFn69EmZsx4B/UGZ3JWbueMG474 UjKuXZwbXTMddhPdH7EW92Qq+uXHJP+fF4gAfTEU4UPJWcbD7pr5nlQSPTVADTeaHKe7wf m2C2qa6XtsjzQ0ZhbCswwiY+Em2WG3zeUtKX/Er/3fZVPvQkpc+lfNnViWwC1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rYH01wfQRqxyOEwxW3tRyJW9qX5rHKx1ySfuvAyhdpo=; b=TasiR8xicTD1mBE/tKFmP9z+6Pfc876rvctD6oeFIVJibuD04g/8frjPZtTZ7CLyPPe0Kv zju8H/v9MkrcuGFEJolU5b95T7QfY2z3VxIchP9w25frEDotU5VYn3bODiuu1LpzAByxVy pvg4kYobolsdCqnIOlSC5onbCx6QS2RpBKoeYsYmd5CjWAuSmoRBCBhNBgW65daneXaN0J pihrMahrlR+yRJUsFxV/H+oJHs2uYS+V5kqEDCRkUfrwL859OVfWflvBSIn7tbzvNWxbne TXiQ76ExP7jueepqNztB72GHIAN1/XdLJ6WLDheU8sDthHnz9vhdV+hAZrLbYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205552; a=rsa-sha256; cv=none; b=wWhXAey0Sjylwh53jOZOTKGdcG/oIXE4jKABlVT859+yL6zf9Ztb+9RVCcujmyg9CXoLPW RoTZLmwyuoueoPqzgPi5orgqgZ/TZpkrZB0xe5Qlp7H9IVCYlMC40UuKlUHdeLNmtmagkE oKSU6P6BeqWNWGDSLoN3CH98a42aEjXtIJW/yNh57M4Ld2lc+hRURjbuBmdWbdnIvW8iLO xLGaGFb3a5vH/GUF0sZYkLYYbSbK2y8/QJQT2O39GaW/JJyqhSapjEt+NY6MsNvifcb028 1n6gtYRZhdxmqurOvxZDqZO8QAsL5VpcnPMAYGCoOl8yGYrlnnixUWXRHRekxg== 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 4Tchpm159GzPJg; Sat, 17 Feb 2024 21:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWWv2019651; Sat, 17 Feb 2024 21:32:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWWY1019648; Sat, 17 Feb 2024 21:32:32 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:32 GMT Message-Id: <202402172132.41HLWWY1019648@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 2567cf1925bd - stable/14 - vt(4): Call vd_postswitch callback regardless of the current window 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 2567cf1925bdcde0230bddb8ed5ca75056d4afa7 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=2567cf1925bdcde0230bddb8ed5ca75056d4afa7 commit 2567cf1925bdcde0230bddb8ed5ca75056d4afa7 Author: Jean-Sébastien Pédron AuthorDate: 2023-11-24 17:30:34 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:34 +0000 vt(4): Call vd_postswitch callback regardless of the current window [Why] We want the same behavior at the backend level, regardless if we need to switch the current window or not. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42751 (cherry picked from commit 16b13bd3fd63be56653296ba54956f5526918445) --- sys/dev/vt/vt_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 3e4db9a1ba30..bfd99665be4a 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -579,8 +579,6 @@ vt_window_switch(struct vt_window *vw) * debugger entry/exit to be equivalent to * successfully try-locking here. */ - if (curvw == vw) - return (0); if (!(vw->vw_flags & (VWF_OPENED|VWF_CONSOLE))) { inside_vt_window_switch = false; return (EINVAL); From nobody Sat Feb 17 21: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 4Tchpp5q2pz59knf; Sat, 17 Feb 2024 21: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpp4JhCz4gFM; Sat, 17 Feb 2024 21: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=1708205554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HP5mXuES5hm69BC8SuM3C4ahaBhSschnL0F1NbKAT8A=; b=X/QcbopqyJ0TC1rGes3GBPhqFkq8CfEYiNq8KiAGgoYdtb+J2W6pPAk4HyTO0vPUH017YR xuNpeFOCpqAmjo7oyO1GKy4mm0eWOHQdRM7dZBw1tnI+PT4RnM+0nlWOawimjxuK2QJJAP FQ6UNBayOMeSOwG9SP/S3bGf6RL+3oa3Cn9iR8QmhXsWvOA7YLB9GNuWCgpH1f+OeXPG+0 bgXfN8C+DGvBO5u+7XWRMbn6RVlJEJ6sTcNFEZ/FSlQPq8sKzwEpTgZDDTQygZF/HDWKn2 15/Dz8N92cABNifUPFNGFE0RJEKqF6jcVkI40zMA/kURf+rt0iftUfMNscHarA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HP5mXuES5hm69BC8SuM3C4ahaBhSschnL0F1NbKAT8A=; b=nRgXksQWg+ZTn7pMc8m461oV05EDXIAyAqx5JPyjVYfGF/cyebZ9aac6eM7rxVaF/mfGDs VIsqaJHP2jmDXSrrpzeDGVerkcE3c7uCaFGlEilAcS3y7f2d1XL2qfphdmBazaqTwNb9Vi bzjdPmYoAB/ssMLPoAUtdTN3/P9q0iOjKbdpKSTa0IzARoQij2Hbs/nUp6dlPEeOzkmUJp 23iFdgLfo8QyOBtVYVIyNYJwi0OGII7hsLrmWIgZMFp3bhvhg/AXmAZQTQJfd0AvaUpGZw cyzX6Dd97fTPqFSrMr58RVzLM0isf33q5uiHQIwypQRxD7/BfuIf/tHih7fhww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205554; a=rsa-sha256; cv=none; b=QPW2Tv+UH3T38VbwI0hx5q6r/8LwJl68qgBr4kPKjFRX9P4pR5X1G4jhxVxPv3fgnOAObD Qri8u/d4Bg4rVDC8M6FNc9UrZrZhov2tKE7V2dS27U0g49SrQFiFAhBPe8iJ/D7aF8K3Px 2XBvYZmhMhkJJCVCbP4RBPKCMuqdbrQMG2FAsLUG+w+y4MGTcpQFb7uGGxbi2XHVznJ1qN V6i7e8gSS05GM8Og3eDToyUUfV3xQ44zLt+CCwvdczfPUevGAMaejbQyNdFbXa/biRiTv2 RENoWXbK8fCI1sqSQ7bsnHUW2E9BP8UkkpZMrzrMWHf5niz4miLh/qOKwER3Ng== 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 4Tchpp3QbGzPZR; Sat, 17 Feb 2024 21:32:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWYOx019747; Sat, 17 Feb 2024 21:32:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWYAB019744; Sat, 17 Feb 2024 21:32:34 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:34 GMT Message-Id: <202402172132.41HLWYAB019744@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: a06b366322fe - stable/14 - vt(4): Call post-switch callback after replacing the backend 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: a06b366322fe22b211c16c2b0977fac313dce4e7 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=a06b366322fe22b211c16c2b0977fac313dce4e7 commit a06b366322fe22b211c16c2b0977fac313dce4e7 Author: Jean-Sébastien Pédron AuthorDate: 2023-11-29 18:34:48 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 vt(4): Call post-switch callback after replacing the backend [Why] For instance, it gives a chance to the new backend to refresh the screen. This is needed by the vt_drmfb backend and `drm_fb_helper`. This change was lost when I posted changes to reviews.freebsd.org and it broken the amdgpu driver... Thanks to manu@ for reporting the problem and wulf@ to find out the missing change! Tested by: manu Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42834 (cherry picked from commit 40c20fc29cad4d38d9a565e9c7ba78612097308e) --- sys/dev/vt/vt_core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index 4a1031f1aa69..797af56e5e1d 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -3284,6 +3284,13 @@ vt_replace_backend(const struct vt_driver *drv, void *softc) /* Update windows sizes and initialize last items. */ vt_upgrade(vd); + /* + * Give a chance to the new backend to run the post-switch code, for + * instance to refresh the screen. + */ + if (vd->vd_driver->vd_postswitch) + vd->vd_driver->vd_postswitch(vd); + #ifdef DEV_SPLASH if (vd->vd_flags & VDF_SPLASH) vtterm_splash(vd); From nobody Sat Feb 17 21:32: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 4Tchpn5n2Rz59kcr; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpn4DYxz4ghg; Sat, 17 Feb 2024 21:32:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205553; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MzH0gT0tnqqOEGgE45bhS44Qa+P/oEEfKAmU8a4tHBY=; b=fq2XyuXCONOciCnRtrsPvWI+398pHmXINpZit/1x6dfqkRvJyLqBnlnbNvkPyARj1YJEHT Zlrzeb44sYmPRNv7ImRFLG6pVfZJ5BzZE/Oc6w3gV0TbODs3sCll97Zy/V9DBmwINF9hk4 sexHP/EcOD7oNW1jw1nPFWdXvBtygVlbvCJ3am6Tj0nI48ZV7DMjxVdFXxWjlmPgrJ4Ce9 cz8J2v2ZGHhdsZM1nIR61yyvWed8EFUt9Q2+5TMCfL2+xh6MZNevtz+4nvLrO8K7QzZB9H nKEhSSaiqPMRZXSHY6E26bVKdqmdFmfioaiC5NEc0mEsNVHHR/4Gq0E5/UTaiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205553; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MzH0gT0tnqqOEGgE45bhS44Qa+P/oEEfKAmU8a4tHBY=; b=cljFq4t6s6epUL1WrZ0hT1UARhHfqdCP73t0CwCuW6JZn10rP3C/w8jDt6R9bJ/oFl3VOA QHKDPZTi1WSJPBE24SsFkQPvoFVpNbg/8kAAX3yDcubOXM/JBuoO8/v7242y5sdUtBHXk7 DZyX+boIBGxW81zsX4grdq/y6ZHH0Wkjer/AOTilZ0wovGCWR4/qg2JnvgC7o6oOKdYpmB lBkhk7wP72ga0NGwPyfxLdqjoPKBuAxzXzfB51ldex7ycTybFHBQX3baG9Qssw9ki/+1OU siO4DZMf0nf92b6BckS3eBtgzeq0GchBPxJ5RnIVCBwjJlAVIaz4NLb5ABx2vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205553; a=rsa-sha256; cv=none; b=gDD2GICNLCgZdfP+0JRmUcJcj4NC8jyHxl71NEgHZiicgNSwxQfXWT6PJOrNYM1uaCi0eH 3Bl0Ie2NnGm5U/SvEq6oiCIOGCBEqcgGYq1ck/TnMsyGyIb/qzpqa4aTwewaFbne83cR0/ Ck40H+jhXB9oRz9l9qL1CJtEx2rbqnCiP4DbRFTpLQ1gJlNdaL9AC2FnulITheuKndq2L3 4IY2/bPbRCD1JCiPvkxAA1KAQNN6LcByBGQNjDIdl4Y0w/KglMYP8UM7uVBXTv3pKU3kE5 zwjQDWPMoOfscpZIEOWg7dpnunstkzuFW4akVzAi9fLuyy1E4joUjpbZ0RwI+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 4Tchpn2MB4zPbC; Sat, 17 Feb 2024 21:32:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWXnq019696; Sat, 17 Feb 2024 21:32:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWXTr019693; Sat, 17 Feb 2024 21:32:33 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:33 GMT Message-Id: <202402172132.41HLWXTr019693@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: fc00c0377974 - stable/14 - vt(4): Always call vt_window_switch() in vtterm_cnungrab() 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: fc00c037797457c4bf7e06c207297bf06cc92f33 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=fc00c037797457c4bf7e06c207297bf06cc92f33 commit fc00c037797457c4bf7e06c207297bf06cc92f33 Author: Jean-Sébastien Pédron AuthorDate: 2023-11-24 17:30:35 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:34 +0000 vt(4): Always call vt_window_switch() in vtterm_cnungrab() [Why] This ensures that vtterm_cnungrab() is the mirror of vtterm_cngrab(). And the latter always call vt_window_switch() and thus the backend's vd_postswitch(). This makes sure that whatever the backend did during vtterm_cngrab(), it can undo it during vtterm_cnungrab(). Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42752 (cherry picked from commit f18b3ce0b7be0b24a743ec59077ca8e7929a353c) --- sys/dev/vt/vt_core.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c index bfd99665be4a..4a1031f1aa69 100644 --- a/sys/dev/vt/vt_core.c +++ b/sys/dev/vt/vt_core.c @@ -2046,7 +2046,7 @@ static void vtterm_cnungrab(struct terminal *tm) { struct vt_device *vd; - struct vt_window *vw; + struct vt_window *vw, *grabwindow; vw = tm->tm_softc; vd = vw->vw_device; @@ -2055,10 +2055,19 @@ vtterm_cnungrab(struct terminal *tm) if (vtterm_cnungrab_noswitch(vd, vw) != 0) return; - if (!cold && vd->vd_grabwindow != vw) - vt_window_switch(vd->vd_grabwindow); - + /* + * We set `vd_grabwindow` to NULL before calling vt_window_switch() + * because it allows the underlying vt(4) backend to distinguish a + * "grab" from an "ungrab" of the console. + * + * This is used by `vt_drmfb` in drm-kmod to call either + * fb_debug_enter() or fb_debug_leave() appropriately. + */ + grabwindow = vd->vd_grabwindow; vd->vd_grabwindow = NULL; + + if (!cold) + vt_window_switch(grabwindow); } static void From nobody Sat Feb 17 21:32: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 4Tchpr1Rznz59klb; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpq5W45z4gfj; Sat, 17 Feb 2024 21:32:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205555; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z3IZoRfibo+kHor5hhUN66vkmKS5F8MbXc0CIG2bSlQ=; b=CzR3QKh0qsf3+jc5JImsxuL6JhnKO7tjmpP3PbbIAS0PKYIZDJCkWRgrKzukeFFqGyg5UQ PYN45Y4qlJh634xE9ii5h/cyk8Gzmn5acm5Zxexg+GRFevoFl4QRNfX0Jw52UdfKNayOuA +iog2xL5pMBwrOtceZtfGLZGo0dTs+iqqph5HLPL0JydcxRJHOAYv/NsmlAt0DcSrWMrwE wNot/+gYxapjapTdKSHuTdrvRfggHabe0h7SmBiGz2K/5Hm1sqWZJ5q1lCUBqIEzaroW9V yOOGQ+YOuI3kmkTew65edIyMTfyOv0fTDp7ribgujgLt05gzlpRsi6iTICy44Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205555; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z3IZoRfibo+kHor5hhUN66vkmKS5F8MbXc0CIG2bSlQ=; b=ljoUmvwHVS/RoQnZjY9fyS12q/4vsRidexIA/ZE7+2tMZf5sTmz+/WR84grW2su1intqR4 Bag9jSugM+gdAA1ofk48mP58VgGFlwwwPU5740HLtfjkvVsWoDZdwMPQG9VeNaP8Kwj+1S jKuSK6J3o/16V6pfDQanBNQ5CMXDGlbtCJTcTsDr9DxFzFNVGOYMfTx02LyiU/2sgm6DmR zGFLW4upTU0uqMidXoI9FI+1klZO5wpQeacea0f6HSaFJZQM40EQWYfQsnEwBsIdMrEWy6 Tt5S7AoCVqxLkwV2JDO+jYpavK+vw5/SaiQTSbxxxB41T3iruZhL65dex3rDvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205555; a=rsa-sha256; cv=none; b=QhDxt+/0OCBW5WA8gPcgKG4qeIIR8QtJG1Xiox9Fq5AMIwrZlXxnCMgpUmrPBVREXiBi8W I+62NI3RBYQzdO5qjcpqrSuI1h0e/UT6MXoKKCmmUJ4D3TQPX+diMCpVsm3z3fpYPpCQnV FEP/uG33oj0UBna7XVtrxKE+THeZqdYacjNoY9+wyQVvzgpXYL8xODLS74X08OydNH72nu S6hPS/IVqWHx2wAhxRThvqvrBDfTLSibn3ei006KJbx7uANV2P+G+k7kvt7tr3TKxaVbG0 nw5bAkErPlHxtG4FAzs7sqhS3xLhqKB8PDG5sGRl1DbrqoZvVHuWjPNXv+EPbA== 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 4Tchpq4YQXzPJh; Sat, 17 Feb 2024 21:32:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWZ7B019795; Sat, 17 Feb 2024 21:32:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWZrF019792; Sat, 17 Feb 2024 21:32:35 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:35 GMT Message-Id: <202402172132.41HLWZrF019792@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: f07f18ec2c9a - stable/14 - linuxkpi: Include from and 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: f07f18ec2c9abb3fabfe9f6f1ccbdfc25475167b Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=f07f18ec2c9abb3fabfe9f6f1ccbdfc25475167b commit f07f18ec2c9abb3fabfe9f6f1ccbdfc25475167b Author: Jean-Sébastien Pédron AuthorDate: 2023-11-29 18:38:54 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 linuxkpi: Include from and [Why] Some files in DRM rely on this indirect include to use `struct rb_*`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42835 (cherry picked from commit b292c995cfa88cc73d5d77b6b94ae1b78296793f) --- sys/compat/linuxkpi/common/include/linux/hrtimer.h | 1 + sys/compat/linuxkpi/common/include/linux/mm_types.h | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/hrtimer.h b/sys/compat/linuxkpi/common/include/linux/hrtimer.h index 38fc3ce4dc6a..88f9487d0b85 100644 --- a/sys/compat/linuxkpi/common/include/linux/hrtimer.h +++ b/sys/compat/linuxkpi/common/include/linux/hrtimer.h @@ -30,6 +30,7 @@ #include #include +#include #include enum hrtimer_mode { diff --git a/sys/compat/linuxkpi/common/include/linux/mm_types.h b/sys/compat/linuxkpi/common/include/linux/mm_types.h index 446231bd691f..c08e2511725b 100644 --- a/sys/compat/linuxkpi/common/include/linux/mm_types.h +++ b/sys/compat/linuxkpi/common/include/linux/mm_types.h @@ -29,6 +29,7 @@ #include #include +#include #include #include From nobody Sat Feb 17 21:32: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 4Tchps18QBz59kwQ; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpr6Rj7z4gjK; Sat, 17 Feb 2024 21:32:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JvcPeoAzQ3u/ATPnjoDlG0/qdtvEHQXrzQ/PKG7KQUY=; b=QPt6X81g7w1X5m+s9hLA3CbuZEPvb5vQhIeQxTIv9TUscQlrs/RKuHoqJHXglVNHDuABBk On8ErYjcOaLaT9E8Y8dX6fLMaACACUU54g923HyRE9W/wTQkYzg/+uKV6GtpxBUSOUKILG +fVvfChGbcKwdqt0RI15o7wTEgkpDWDj+UQfuEqT025ngDbMM6eTNqE8xfH2TMZNgxvbYt 3LMg+Av+a8gG8Hnlc2ith6H2fZqD7X5aPKGBgViBY+g/Gdx8AlLgWaPD+vKGqZsjcO9kSG ZVo8RLaFUqafXVHltJMu8onOMb7Zk3lkIvxJ3DtjNCBcz3+p3I8gCdzPndUU2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JvcPeoAzQ3u/ATPnjoDlG0/qdtvEHQXrzQ/PKG7KQUY=; b=dHz7mE5lQiZDLCfQwyrafhERY7WrtYspMuF2m8xIEr/81+0Dpkmdq4izjKbgJUVqvO9gyJ cLDWw6R2bw1+LG3SCcjRbh2xnUKQ+p5Ipsi9kvLBMiH0y+eXGV0FR6W1gjN4n5xFohSpoj epEfSANCqsJ5zgCHvliQNY1+mh34EOBtvi8svRQ3BZAqA3YGvzT45m+BjeeovwtaaR3m92 hjmDduKRAMEdCyXdXaA4MmwBWr0tPV8jO8MTk1nINzw7o7/6Yr1+yjhzeD4Kz9ZOyk1oe0 A6BUMJdteIOo0tz0Ow0qKNyF1BGHrhh+f7qA2xoyvy6kBqryGeZCjbZu7dTiEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205556; a=rsa-sha256; cv=none; b=cEg9GQb7LdB4WAe5iuN7aCpleZ6Eocd3GCv+bvbKsSktO0b2z3HtJBVyGPICyoToOYnV1H Hxq6L8KIJwgp/l4aizxC2wCqspg4mSIC1hSDlZ27gd8lhUEs0lv0HtI8Dln8k/6w9HipzB qrlNnjRPnztJ3R8lHwhRd/GIlu5Eox3BegYFv3Gd+ND4jYvtyJaVQ4+zEC1hA2OKVkVhQj 0JGHjF/UnwXajEYpsBCNu+gV3IhobwQaAdn0gfD5oUJHdHlOEnPxSkT9Bns3CKoKRwkpwi heF5uppWiwErqiUYn2+uZh6upQtF8Ve2i/+lZkF6Ic+s68RJDR/SJjDy9rMVwA== 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 4Tchpr5RcWzP9N; Sat, 17 Feb 2024 21:32:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWaov019847; Sat, 17 Feb 2024 21:32:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWaMb019844; Sat, 17 Feb 2024 21:32:36 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:36 GMT Message-Id: <202402172132.41HLWaMb019844@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 586c0e9676cf - stable/14 - linuxkpi: Include from 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 586c0e9676cf3036f8b6d3e4272f25fe52850555 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=586c0e9676cf3036f8b6d3e4272f25fe52850555 commit 586c0e9676cf3036f8b6d3e4272f25fe52850555 Author: Jean-Sébastien Pédron AuthorDate: 2023-12-04 22:02:02 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 linuxkpi: Include from [Why] We need this for the `bool` type. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43016 (cherry picked from commit 50a56453dadbd05eb1c43addaf2773a1ef417445) --- sys/compat/linuxkpi/common/include/linux/cc_platform.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/cc_platform.h b/sys/compat/linuxkpi/common/include/linux/cc_platform.h index 727dbc98dab2..01c0de17f7d2 100644 --- a/sys/compat/linuxkpi/common/include/linux/cc_platform.h +++ b/sys/compat/linuxkpi/common/include/linux/cc_platform.h @@ -3,6 +3,9 @@ #ifndef _LINUXKPI_LINUX_CC_PLATFORM_H_ #define _LINUXKPI_LINUX_CC_PLATFORM_H_ +#include +#include + enum cc_attr { CC_ATTR_MEM_ENCRYPT, }; From nobody Sat Feb 17 21:32: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 4Tchpt2lLjz59l05; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpt04fMz4gr4; Sat, 17 Feb 2024 21:32:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LURjz6jNUOIqwReGTTHfUj8HNP6w51t/rZSEWmXKS/Q=; b=cBzA89z94mzqIPzoWexaprM7M1s7dsbaGpi5baa4//V8VkEuyFT9t1GlT1SumjlyWWw53b 9LW9Q+d3b3DF+i9fQGzgrBE0M6tApQaJpL2T+pg59sd4xMKfkz1qczm+zL2kOMDwKlW7rq Ygu6Jp01eUOb8sqffCUmkB1YM75skfBxVQKNziLyE0hx6+SOSa95XbNvql+wGgOia9plua 2/PJIVYES9NC3+fkJU3eiX3x55VmGlioAQxJvapQiw3LKl81+doPXrRSMexu60pf9f5QI7 7kkNL0hnVt4B4UfBXGRcQaURawcMZqpdJsoVQGw99LBL9PH7U/EOwRo9xz5Vpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LURjz6jNUOIqwReGTTHfUj8HNP6w51t/rZSEWmXKS/Q=; b=JwBMtYZYTnh474zR6mfXsEdkXEAPtLVvlYaxLVFQ8aNIhsalRly/Ujaf/GNJfpN+GshOlD lmkBQ4s1T+hMQwZ9HCQntvJbFat4z9dTnKJnUiXMdAOPS3HgiqArE0yjjAteGkYutE0pC1 1t/WNMhFWj9pEFnd/3/DqDwrljEMKkkjCkaeckhSXOerVksMxCxcVVtVhwIiilMdlY6kwx M1VHBVuDaJYQ+fqDAv4uumAEF6yj4ZO6jk7J5RjlLpe5LaJ5HMC+wQvCi9OMhKUDPKf+kT 5pazJAAYXp6piFx4R8DPM5XVEdWxgy4JadLIdrcPZOYyqx+SC41uLdlvziY4Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205558; a=rsa-sha256; cv=none; b=HjpNEs/bycXj8WkTHwSnOOCFRFHJuuYxJzwfvYnmEPF7i1igPaGjg8sY/yBmheI0LsSFIh TpXnlTb5RBqEDbIn0Bj+ZeR9INwTDEpyXMtbcIwKFDZ0vESyLGf0YMv/qvwoufcsL3pCuX 6bPz67aIRbRludy3YbA/GrBN7F7ctrT8jAkVtwTd/sscd7/0Ncs/t0+jpKkXcLwfLQKc0C WgG+QCySJu9X2jmrO6k7HUaAK2zeD1vd4ClwSK/afNL9RmqSpDZHvEAgvcrvE0ayWHx51y XX0o2/Q50v/4/jOwHdxHdeOZ8TnoPu4aUJQA/Lrrhsio6o5BYwcgGnfN6ZzREw== 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 4Tchps61YKzP85; Sat, 17 Feb 2024 21:32:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWbv0019901; Sat, 17 Feb 2024 21:32:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWbaR019898; Sat, 17 Feb 2024 21:32:37 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:37 GMT Message-Id: <202402172132.41HLWbaR019898@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 843107faca66 - stable/14 - linuxkpi: Move `invalidate_mapping_pages()` to 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 843107faca6620565b2625e629e72884210172c6 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=843107faca6620565b2625e629e72884210172c6 commit 843107faca6620565b2625e629e72884210172c6 Author: Jean-Sébastien Pédron AuthorDate: 2023-12-08 17:07:00 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 linuxkpi: Move `invalidate_mapping_pages()` to [Why] This is consistent with Linux. [How] The definition is moved from to and the latter is included from the former. This is how it is done on Linux. Prototypes are also expanded with argument names. I got a build failure in the DRM 5.18 drivers because the compiler considered that the `pgoff_t` argument was there twice. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43018 (cherry picked from commit 4e0d3f7b3c3295e51ded2bab39f36842f405b4eb) --- sys/compat/linuxkpi/common/include/linux/pagemap.h | 6 ++++++ sys/compat/linuxkpi/common/include/linux/shmem_fs.h | 15 ++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/pagemap.h b/sys/compat/linuxkpi/common/include/linux/pagemap.h index aa2e2a4e3950..7244b61257dc 100644 --- a/sys/compat/linuxkpi/common/include/linux/pagemap.h +++ b/sys/compat/linuxkpi/common/include/linux/pagemap.h @@ -33,6 +33,12 @@ #include #include +#define invalidate_mapping_pages(...) \ + linux_invalidate_mapping_pages(__VA_ARGS__) + +unsigned long linux_invalidate_mapping_pages(vm_object_t obj, pgoff_t start, + pgoff_t end); + static inline void release_pages(struct page **pages, int nr) { diff --git a/sys/compat/linuxkpi/common/include/linux/shmem_fs.h b/sys/compat/linuxkpi/common/include/linux/shmem_fs.h index eb31c5ad827a..d373cfa1d611 100644 --- a/sys/compat/linuxkpi/common/include/linux/shmem_fs.h +++ b/sys/compat/linuxkpi/common/include/linux/shmem_fs.h @@ -29,14 +29,15 @@ #ifndef _LINUXKPI_LINUX_SHMEM_FS_H_ #define _LINUXKPI_LINUX_SHMEM_FS_H_ -/* Shared memory support */ -unsigned long linux_invalidate_mapping_pages(vm_object_t, pgoff_t, pgoff_t); -struct page *linux_shmem_read_mapping_page_gfp(vm_object_t, int, gfp_t); -struct linux_file *linux_shmem_file_setup(const char *, loff_t, unsigned long); -void linux_shmem_truncate_range(vm_object_t, loff_t, loff_t); +#include -#define invalidate_mapping_pages(...) \ - linux_invalidate_mapping_pages(__VA_ARGS__) +/* Shared memory support */ +struct page *linux_shmem_read_mapping_page_gfp(vm_object_t obj, int pindex, + gfp_t gfp); +struct linux_file *linux_shmem_file_setup(const char *name, loff_t size, + unsigned long flags); +void linux_shmem_truncate_range(vm_object_t obj, loff_t lstart, + loff_t lend); #define shmem_read_mapping_page(...) \ linux_shmem_read_mapping_page_gfp(__VA_ARGS__, 0) From nobody Sat Feb 17 21:32: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 4Tchpv3NZ2z59knx; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpv0vgJz4glg; Sat, 17 Feb 2024 21:32:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G5tw1k30XpKcj+rfkJuhorzvDU6geBdjTQKdvqT6pJk=; b=Rw1HZ9PQvObJmk9B82t+7aPGnKgPdNvbtd9u3j29liAbbk8U/2/0djcauc7mFjGwKrVetd XTHWHmYYbEtxfH5mGWkWpdPTFknBI6PHHQErJa2wymkX8PSxNmNnR5HCmvgjIqAaVjNFm1 iJIQUhC22nGiPkzcdFcEGYf09Qlncvp6BALGUhO1A0zGjDibgeWk7iwwbWF8RmOHND3SEO BbWRcDjZ8L40ZaF8Hg669JHBbAU2SqNnSD9yZsjcV06op5Ccsxbl/pIzPup/ofRPNxn1sy R3zzfxadOOaz5biUfamZYlldFjOux++lNolspqa2rpJWxnpLaLIC0qeGyDbXBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G5tw1k30XpKcj+rfkJuhorzvDU6geBdjTQKdvqT6pJk=; b=Iv3v5J+QtsrHxqvZZR/P1k5Cgz2VlIFmrmKQGeP+2xFtVt5psy/fU5n2Zl+lZ8VJTkl5sO +SbHZEm32MB1TugCcB6QLHuGX23b6frrVDD4mqL4v/KIIY8lhU0DtkSvuBR0TwoyePWMcz GxrHKm+3TdOLeQh1/+maYscQRIipwMU4R10EC3oKw5ROC+P/iU7LKbcOphrait8tytrKt2 PieLgN3D3/nzUkbL1wpwwcfYAolSM/jy7oncIFcjrjT08WkFOUSBU0T3D49bW+QoiuTWWJ i+/VIlS6hLFfM8+HgKFuK59WY5AdC9um8pOqOjYYERID4op2y8P5wWvVQdE7zw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205559; a=rsa-sha256; cv=none; b=utNAEhpTtsLv/uCI+MQ+gN0tteEYzslVpIMDpAPiumV8NzGlMWuTAe6psCFhG6KFp3V/Hq cwPyIVaMR/Gg8GtHMoagT2Yn8+jB0itKulUDz7/932Rm9rnhuHTeuBo73oX1/5Fv6K7Nzm dQROyo30J39M1oMtZvhQDMe3iOwujQ9ICk4J8av6P5ZVou8kgKrwABvZ9a3rzykJDeE4dw +b8mwTlTjByLHQJYqzyIUMP+TOpU21D3znCErUxgmW3UHhnxOEShM1R5X3LZKk5MtweFig VePgG3sc2cxhNMZJHgTgYLoTMXEG0rKxMA4z1LqwM73wpEF0F855EDhUl6OyUw== 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 4Tchpv00x1zPMB; Sat, 17 Feb 2024 21:32:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWcfP019953; Sat, 17 Feb 2024 21:32:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWcAh019950; Sat, 17 Feb 2024 21:32:38 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:38 GMT Message-Id: <202402172132.41HLWcAh019950@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 3b97bdb453d1 - stable/14 - linuxkpi: Move `struct kobject` code to `linux_kobject.c` 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 3b97bdb453d1d38b1ceed1f1ff0dfc38660a013b Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=3b97bdb453d1d38b1ceed1f1ff0dfc38660a013b commit 3b97bdb453d1d38b1ceed1f1ff0dfc38660a013b Author: Jean-Sébastien Pédron AuthorDate: 2023-12-08 17:58:03 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 linuxkpi: Move `struct kobject` code to `linux_kobject.c` [Why] `linux_compat.c` is already too long. I will need to add `struct kset` in a follow-up commit, so let's move the existing `struct kobject` code to its own file. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43019 (cherry picked from commit 80446fc7b5e5d22e2bac28bc0474dbe2fec83e43) --- sys/compat/linuxkpi/common/include/linux/kobject.h | 2 + sys/compat/linuxkpi/common/src/linux_compat.c | 190 ------------------ sys/compat/linuxkpi/common/src/linux_kobject.c | 221 +++++++++++++++++++++ sys/conf/files | 2 + sys/modules/linuxkpi/Makefile | 1 + 5 files changed, 226 insertions(+), 190 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/kobject.h b/sys/compat/linuxkpi/common/include/linux/kobject.h index 6e59e0952d62..06d71faaa873 100644 --- a/sys/compat/linuxkpi/common/include/linux/kobject.h +++ b/sys/compat/linuxkpi/common/include/linux/kobject.h @@ -154,4 +154,6 @@ kobject_uevent_env(struct kobject *kobj, int action, char *envp[]) */ } +void linux_kobject_kfree_name(struct kobject *kobj); + #endif /* _LINUXKPI_LINUX_KOBJECT_H_ */ diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c index 69a17ea1a4a4..59ab61a86ec7 100644 --- a/sys/compat/linuxkpi/common/src/linux_compat.c +++ b/sys/compat/linuxkpi/common/src/linux_compat.c @@ -159,176 +159,6 @@ RB_GENERATE(linux_root, rb_node, __entry, panic_cmp); INTERVAL_TREE_DEFINE(struct interval_tree_node, rb, unsigned long,, START, LAST,, lkpi_interval_tree) -struct kobject * -kobject_create(void) -{ - struct kobject *kobj; - - kobj = kzalloc(sizeof(*kobj), GFP_KERNEL); - if (kobj == NULL) - return (NULL); - kobject_init(kobj, &linux_kfree_type); - - return (kobj); -} - - -int -kobject_set_name_vargs(struct kobject *kobj, const char *fmt, va_list args) -{ - va_list tmp_va; - int len; - char *old; - char *name; - char dummy; - - old = kobj->name; - - if (old && fmt == NULL) - return (0); - - /* compute length of string */ - va_copy(tmp_va, args); - len = vsnprintf(&dummy, 0, fmt, tmp_va); - va_end(tmp_va); - - /* account for zero termination */ - len++; - - /* check for error */ - if (len < 1) - return (-EINVAL); - - /* allocate memory for string */ - name = kzalloc(len, GFP_KERNEL); - if (name == NULL) - return (-ENOMEM); - vsnprintf(name, len, fmt, args); - kobj->name = name; - - /* free old string */ - kfree(old); - - /* filter new string */ - for (; *name != '\0'; name++) - if (*name == '/') - *name = '!'; - return (0); -} - -int -kobject_set_name(struct kobject *kobj, const char *fmt, ...) -{ - va_list args; - int error; - - va_start(args, fmt); - error = kobject_set_name_vargs(kobj, fmt, args); - va_end(args); - - return (error); -} - -static int -kobject_add_complete(struct kobject *kobj, struct kobject *parent) -{ - const struct kobj_type *t; - int error; - - kobj->parent = parent; - error = sysfs_create_dir(kobj); - if (error == 0 && kobj->ktype && kobj->ktype->default_attrs) { - struct attribute **attr; - t = kobj->ktype; - - for (attr = t->default_attrs; *attr != NULL; attr++) { - error = sysfs_create_file(kobj, *attr); - if (error) - break; - } - if (error) - sysfs_remove_dir(kobj); - } - return (error); -} - -int -kobject_add(struct kobject *kobj, struct kobject *parent, const char *fmt, ...) -{ - va_list args; - int error; - - va_start(args, fmt); - error = kobject_set_name_vargs(kobj, fmt, args); - va_end(args); - if (error) - return (error); - - return kobject_add_complete(kobj, parent); -} - -void -linux_kobject_release(struct kref *kref) -{ - struct kobject *kobj; - char *name; - - kobj = container_of(kref, struct kobject, kref); - sysfs_remove_dir(kobj); - name = kobj->name; - if (kobj->ktype && kobj->ktype->release) - kobj->ktype->release(kobj); - kfree(name); -} - -static void -linux_kobject_kfree(struct kobject *kobj) -{ - kfree(kobj); -} - -static void -linux_kobject_kfree_name(struct kobject *kobj) -{ - if (kobj) { - kfree(kobj->name); - } -} - -const struct kobj_type linux_kfree_type = { - .release = linux_kobject_kfree -}; - -static ssize_t -lkpi_kobj_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) -{ - struct kobj_attribute *ka = - container_of(attr, struct kobj_attribute, attr); - - if (ka->show == NULL) - return (-EIO); - - return (ka->show(kobj, ka, buf)); -} - -static ssize_t -lkpi_kobj_attr_store(struct kobject *kobj, struct attribute *attr, - const char *buf, size_t count) -{ - struct kobj_attribute *ka = - container_of(attr, struct kobj_attribute, attr); - - if (ka->store == NULL) - return (-EIO); - - return (ka->store(kobj, ka, buf, count)); -} - -const struct sysfs_ops kobj_sysfs_ops = { - .show = lkpi_kobj_attr_show, - .store = lkpi_kobj_attr_store, -}; - static void linux_device_release(struct device *dev) { @@ -518,26 +348,6 @@ class_create(struct module *owner, const char *name) return (class); } -int -kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, - struct kobject *parent, const char *fmt, ...) -{ - va_list args; - int error; - - kobject_init(kobj, ktype); - kobj->ktype = ktype; - kobj->parent = parent; - kobj->name = NULL; - - va_start(args, fmt); - error = kobject_set_name_vargs(kobj, fmt, args); - va_end(args); - if (error) - return (error); - return kobject_add_complete(kobj, parent); -} - static void linux_kq_lock(void *arg) { diff --git a/sys/compat/linuxkpi/common/src/linux_kobject.c b/sys/compat/linuxkpi/common/src/linux_kobject.c new file mode 100644 index 000000000000..ddd0a58660f1 --- /dev/null +++ b/sys/compat/linuxkpi/common/src/linux_kobject.c @@ -0,0 +1,221 @@ +/*- + * Copyright (c) 2010 Isilon Systems, Inc. + * Copyright (c) 2010 iX Systems, Inc. + * Copyright (c) 2010 Panasas, Inc. + * Copyright (c) 2013-2021 Mellanox Technologies, Ltd. + * All rights reserved. + * + * 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 unmodified, 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 ``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 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 + +struct kobject * +kobject_create(void) +{ + struct kobject *kobj; + + kobj = kzalloc(sizeof(*kobj), GFP_KERNEL); + if (kobj == NULL) + return (NULL); + kobject_init(kobj, &linux_kfree_type); + + return (kobj); +} + + +int +kobject_set_name_vargs(struct kobject *kobj, const char *fmt, va_list args) +{ + va_list tmp_va; + int len; + char *old; + char *name; + char dummy; + + old = kobj->name; + + if (old && fmt == NULL) + return (0); + + /* compute length of string */ + va_copy(tmp_va, args); + len = vsnprintf(&dummy, 0, fmt, tmp_va); + va_end(tmp_va); + + /* account for zero termination */ + len++; + + /* check for error */ + if (len < 1) + return (-EINVAL); + + /* allocate memory for string */ + name = kzalloc(len, GFP_KERNEL); + if (name == NULL) + return (-ENOMEM); + vsnprintf(name, len, fmt, args); + kobj->name = name; + + /* free old string */ + kfree(old); + + /* filter new string */ + for (; *name != '\0'; name++) + if (*name == '/') + *name = '!'; + return (0); +} + +int +kobject_set_name(struct kobject *kobj, const char *fmt, ...) +{ + va_list args; + int error; + + va_start(args, fmt); + error = kobject_set_name_vargs(kobj, fmt, args); + va_end(args); + + return (error); +} + +static int +kobject_add_complete(struct kobject *kobj, struct kobject *parent) +{ + const struct kobj_type *t; + int error; + + kobj->parent = parent; + error = sysfs_create_dir(kobj); + if (error == 0 && kobj->ktype && kobj->ktype->default_attrs) { + struct attribute **attr; + t = kobj->ktype; + + for (attr = t->default_attrs; *attr != NULL; attr++) { + error = sysfs_create_file(kobj, *attr); + if (error) + break; + } + if (error) + sysfs_remove_dir(kobj); + } + return (error); +} + +int +kobject_add(struct kobject *kobj, struct kobject *parent, const char *fmt, ...) +{ + va_list args; + int error; + + va_start(args, fmt); + error = kobject_set_name_vargs(kobj, fmt, args); + va_end(args); + if (error) + return (error); + + return kobject_add_complete(kobj, parent); +} + +int +kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, + struct kobject *parent, const char *fmt, ...) +{ + va_list args; + int error; + + kobject_init(kobj, ktype); + kobj->ktype = ktype; + kobj->parent = parent; + kobj->name = NULL; + + va_start(args, fmt); + error = kobject_set_name_vargs(kobj, fmt, args); + va_end(args); + if (error) + return (error); + return kobject_add_complete(kobj, parent); +} + +void +linux_kobject_release(struct kref *kref) +{ + struct kobject *kobj; + char *name; + + kobj = container_of(kref, struct kobject, kref); + sysfs_remove_dir(kobj); + name = kobj->name; + if (kobj->ktype && kobj->ktype->release) + kobj->ktype->release(kobj); + kfree(name); +} + +static void +linux_kobject_kfree(struct kobject *kobj) +{ + kfree(kobj); +} + +const struct kobj_type linux_kfree_type = { + .release = linux_kobject_kfree +}; + +void +linux_kobject_kfree_name(struct kobject *kobj) +{ + if (kobj) { + kfree(kobj->name); + } +} + +static ssize_t +lkpi_kobj_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) +{ + struct kobj_attribute *ka = + container_of(attr, struct kobj_attribute, attr); + + if (ka->show == NULL) + return (-EIO); + + return (ka->show(kobj, ka, buf)); +} + +static ssize_t +lkpi_kobj_attr_store(struct kobject *kobj, struct attribute *attr, + const char *buf, size_t count) +{ + struct kobj_attribute *ka = + container_of(attr, struct kobj_attribute, attr); + + if (ka->store == NULL) + return (-EIO); + + return (ka->store(kobj, ka, buf, count)); +} + +const struct sysfs_ops kobj_sysfs_ops = { + .show = lkpi_kobj_attr_show, + .store = lkpi_kobj_attr_store, +}; diff --git a/sys/conf/files b/sys/conf/files index 366bbc9e43bb..4d5585b0bb79 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4564,6 +4564,8 @@ compat/linuxkpi/common/src/linux_i2cbb.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_interrupt.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" +compat/linuxkpi/common/src/linux_kobject.c optional compat_linuxkpi \ + compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_kthread.c optional compat_linuxkpi \ compile-with "${LINUXKPI_C}" compat/linuxkpi/common/src/linux_lock.c optional compat_linuxkpi \ diff --git a/sys/modules/linuxkpi/Makefile b/sys/modules/linuxkpi/Makefile index bf40d64de9df..692f69c1f4e1 100644 --- a/sys/modules/linuxkpi/Makefile +++ b/sys/modules/linuxkpi/Makefile @@ -14,6 +14,7 @@ SRCS= linux_compat.c \ linux_i2c.c \ linux_i2cbb.c \ linux_kmod.c \ + linux_kobject.c \ linux_kthread.c \ linux_lock.c \ linux_netdev.c \ From nobody Sat Feb 17 21:32: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 4Tchpw3zYyz59lD5; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpw1vnQz4gk1; Sat, 17 Feb 2024 21:32:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=54QwJ03fCgUlSXreMJDo8e6Osa/iqYgiUjqMFgmOeTc=; b=AhryF3LbmVpExs2SEEqYU5WBShsvIWOi/4l3B0Gr5LQIGEIWP5YNNg/M2ROXbSE45t7Ww+ xyJxX8QGLRP/hiAYkhgT7QQ9gk3llWAX2KpZVAYC179gx2BvNl9rz+KAPbZJuQJ05Uucad qb4+0WHgDI0ApImpwlsHJ28QERxMxe8gdGPvUgaSfxs0NF8Lwd5zTMEaX7BHdQoI58PFqU lQtbw/OG9AYIKKrNdTmM9NECblAbGGZUfxXuDl0VOkg4tmdVmZNiWHPZLw0JK+IWC0wXjN G9jpFyQfBwFYQzMeIUR5J/rwI4CL/8NgxfhWs6KDbCcocKMQrXyYCdC8C7fvxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=54QwJ03fCgUlSXreMJDo8e6Osa/iqYgiUjqMFgmOeTc=; b=TP1eyPI4mjyZeEC846mzsrrlVu4OD843NR9Tsn3EL2Og8zLwa3jA9z058rEAoJ+WvZbMkT yY6upgic6adXNs3EPP7xGW3e2EZOqGBDFHRmQL9ut5simxY8fiTuABBoCMCs/pX7CYCvg6 glor5ytYx9wJDCaRObPK4PvG4xQmKsBigjH1jrKFsLfCDPAiDXBa/t1yWghQGy6o9McfG8 /FAQCcMeIxIO/sS5jBrkJE6Wydms/TXsuiGhqkRKAnLwxBy2zWWbF+srGQ1w5yLV7WAvck SY1rFb1xkFJsOaLPgQ5NqYCspcAcAjKB0ipcuiKnDihwIVZDRwsdO0I4k4abBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205560; a=rsa-sha256; cv=none; b=jxMw4JbvNjb8ZPMKtdbN3soclHKqyFqfSEnpG+7ra7qKmVBVWhd5XYM6W/LPWeXQtNruix mAYWxuALlrnuwyCvAkdQ5DMalGPTPN2NaSsX+G7H1QL1XHgbamk+NImEFTMKHkKc5WosKz v2FEKtZj5OsW8c3JV8jYTojpODynbSaWsKbwqLuAPw+ZCqxIzyMirvNZyOP3zdR44XdBkj PZB0ATABX/Uo7EyXH2ZMZon9xHqeB6R6YDnGeQtV+q3mhQ7nnTVikuT2vgQu1ZFUVkhfBK ZrcKPqpMkcImH+3eLlX9Eo79mcvn1tjBjhOJmjJArPNolAWE85G1mju4Bp9TfA== 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 4Tchpw11rWzPZS; Sat, 17 Feb 2024 21:32:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWeon019995; Sat, 17 Feb 2024 21:32:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWeqm019992; Sat, 17 Feb 2024 21:32:40 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:40 GMT Message-Id: <202402172132.41HLWeqm019992@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 0fef6cb7299f - stable/14 - linuxkpi: Add `list_for_each_prev_safe()` in 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 0fef6cb7299f541e1b94b84d2b9a9225133b9672 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=0fef6cb7299f541e1b94b84d2b9a9225133b9672 commit 0fef6cb7299f541e1b94b84d2b9a9225133b9672 Author: Jean-Sébastien Pédron AuthorDate: 2023-12-08 21:53:21 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 linuxkpi: Add `list_for_each_prev_safe()` in [Why] The amdgpu DRM driver started to use it in Linux 5.18. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43021 (cherry picked from commit b723bcd05a991d446491e914f2b9f35e66227398) --- sys/compat/linuxkpi/common/include/linux/list.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h index a27abedc55b0..ca103a670109 100644 --- a/sys/compat/linuxkpi/common/include/linux/list.h +++ b/sys/compat/linuxkpi/common/include/linux/list.h @@ -225,6 +225,11 @@ list_del_init(struct list_head *entry) #define list_for_each_prev(p, h) for (p = (h)->prev; p != (h); p = (p)->prev) +#define list_for_each_prev_safe(p, n, h) \ + for (p = (h)->prev, n = (p)->prev; \ + p != (h); \ + p = n, n = (p)->prev) + #define list_for_each_entry_from_reverse(p, h, field) \ for (; &p->field != (h); \ p = list_prev_entry(p, field)) From nobody Sat Feb 17 21:32: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 4Tchpx52vJz59ktP; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpx2wbXz4ggt; Sat, 17 Feb 2024 21:32:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YHMibg6dCA664U1Y0EB5qqlB6DaD8gXwZx9nWBHPC3U=; b=acZhlCkF4He9IB3w1O0f8GBNbVQ/9wFaxU3M0ZGK5S9LdtUXH/5tcejxRKLAUeZQNQ6Jea wayOVMjEdIBS9UW2ArrM/c100QS1aYIdgEhQfZOqxs1PszqevYULOgC78d5yzn2echGn5w gNNhYe/nRDzFM8i0NKZGKPJgZZsztOiZscA11sQLdXvnzLpdiFdYXo7l6T58rPU089qxsU dR+w+WL4cGa/VCiQE8JUPiL3wl4R2ucaEOANic4V6rxd4bMV4v1F0OjXiiEhCwV9DmYzYt pivfu0Qgm/gvRPciHbXaxnkQiEaD0RRwW+C+CZyXAG6wTUyNwPN3ey2gVR/n/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205561; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YHMibg6dCA664U1Y0EB5qqlB6DaD8gXwZx9nWBHPC3U=; b=H9QtoySjfm6EsMGFBpn5JvudAahVLzttXWcFFk85bC/5tBxgnj7PwnCJCMiiwgr+fdMxrm ENVXbrC79aLuPg5ov3DVhqCU2ebRBoCMy2/ZxDXOStjIe/IOLzV2iRoDMjpOF+31wtOZW6 nOXQuBZCqAbYWnDYYuuYSpGByPjMZa+QaShPLBAKv5uPG12Ic3tWW40OXPoesy5fKtKRDu KgfCSFTX0x+01TC4nz9FDrJzOvj/Lwrxuv5mgVz5xhPMmEMTgKqL/MXaEU2OLDmTIUZP6J EuGYAnKYIEzkzME1W25nWeZEsDiogjir68Ne+d+3KC1taYYB2oQgfloQTOjKnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205561; a=rsa-sha256; cv=none; b=ffnD18owkfQYUpOrDTDdR5Dr5Rb/Xlm0GuBL/sTfcBnTP2vDaS3cAb6fsCP/HlatQHm06g MX14QylDbHSNoT19Cu0lTR7SvzAURgtlNkdED7irmk/FFGoSNmw1HCRIgL4anV7FvCHw1q mppTb03wFNvjBtuNLxMA3GOEmzfmGuFzQspakjdH8JhJ7Baf5Jk5Yp63D9/OE+enI3RB9x pc61f1aXOFPN4A8pLrTRfsbcDUksRBP5Nwl51sEfBqE6HtiPGM4PmXlr0leiRv9aRcenLg txlLr/g+X14tPvSWjuAl9L42nzM0/PFbnhYmmiWxBdlkFhmWtlAooLazJ0PlqQ== 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 4Tchpx1qbqzPJj; Sat, 17 Feb 2024 21:32:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWfjR020037; Sat, 17 Feb 2024 21:32:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWfPC020034; Sat, 17 Feb 2024 21:32:41 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:41 GMT Message-Id: <202402172132.41HLWfPC020034@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: af41c1bee4c6 - stable/14 - linuxkpi: Add `sysfs_create_link()` in 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: af41c1bee4c6b55fdbcb92294f62734b199d4402 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=af41c1bee4c6b55fdbcb92294f62734b199d4402 commit af41c1bee4c6b55fdbcb92294f62734b199d4402 Author: Jean-Sébastien Pédron AuthorDate: 2023-12-08 21:54:29 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 linuxkpi: Add `sysfs_create_link()` in [Why] The amdgpu DRM driver started to use it in Linux 5.18. [How] The function is a no-op as I'm not sure how to implement this with sysctls yet. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43022 (cherry picked from commit 509707e8b6b7326c7f4793b6e291f0a8e6939412) --- sys/compat/linuxkpi/common/include/linux/sysfs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h index 3dc1a18fdbd3..8b4160453a3a 100644 --- a/sys/compat/linuxkpi/common/include/linux/sysfs.h +++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h @@ -152,6 +152,15 @@ sysfs_remove_file(struct kobject *kobj, const struct attribute *attr) sysctl_remove_name(kobj->oidp, attr->name, 1, 1); } +static inline int +sysfs_create_link(struct kobject *kobj __unused, + struct kobject *target __unused, const char *name __unused) +{ + /* TODO */ + + return (0); +} + static inline int sysfs_create_files(struct kobject *kobj, const struct attribute * const *attrs) { From nobody Sat Feb 17 21:32: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 4Tchpy5rFgz59kqx; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpy3vy8z4gkV; Sat, 17 Feb 2024 21:32:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205562; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HhJNiZkOCdAFTl9WNE5bZPNBRvUlkaGX01UIQhpG5pk=; b=S7gl/dPXBRr37nBltCA32jG//GYrZBbm6lAqi4gQVyOOQv7qj7sJP6CO6+78HWDrrhSLCR 5pW9CMI8v8sKXGcFutUMYTHkLKd71gGTy9UcgCWVHIRjD1wBrZxJjwxiZ0tj5DTihjrVy5 ++WT9uVquOcK29DUprvMx22M30uvh0agXySMwY1bpSvIJSMPvjlebm14yVqab/DRGe1K+3 OaC0wtEYz0bmiuMsyiRPf9+9o4aL8e8fmLcdjnF5s2dezmOTmG0dGpm3gLP2ccwjIJA8fx 87JEA5N6sPL4OP0zfDAWny9ElLnqvLhl3LoKCoR5O4FeWHDdqhpp1DP4tiPXog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205562; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HhJNiZkOCdAFTl9WNE5bZPNBRvUlkaGX01UIQhpG5pk=; b=RfafxNIYOp4qzPZtnuJK0Ni05qUPFN3TRHUu+nNwZ53kp9bj34Ez/CKoFd/X0b0ASO/8DV gVtcBl2D140d9e6DXgEG9w1pgb+hZ1N5mtb/2COMBmg0MHbIMAk1v9ahTiM1oSeeDqBx7E YRfo7uyFuPxpcYFgM+vZUbJyEkzlYinqEPsZFUPg1+1UA41vGdVipWS6MmjrMELdgrC/MZ dTkYuS8C03sOUxpOE/jIP0XZjIeNJ5bdQOIyien5XX3IMDv14CtX0JbVVcK3eXdfWkc3Cp eox28N7LX4yH8BuyI0roqrWdCCfXyMvn/YrrfsYpayPbnKkdEMU//wjLgi6JsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205562; a=rsa-sha256; cv=none; b=Ga/ekARlS9l+vJGutpXT//LS5lws9tbcYy5ei4XucRJnnKso++KPKqnO38d4JgSPzQBNoP 5QZhtatf0qwo2dSFxfqvfpO3AJwua0NU/BDZ4ffBlO7AgDv4WoPZSHPNn3HskzUdnrWaZV fxuaMhwrMUdnjcvP7gtHuXUb+Yy+2z9my7fHYM+1jaIlrNCMeHgfggae36sneqOO++UtoH AOqu+V4QIaPAtgqYl5yPh9FyzDoc33TlXc9GfHxTjGgBHupFNVvqiuDliKNYb2Ofoh6kJO i0iZ5ha/ktm8KdF/01yfCCUbIy6e3dYsmts3BBzuUgDzwVK7UVaFkmnRfv6/lg== 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 4Tchpy31D8zPMC; Sat, 17 Feb 2024 21:32:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWgU6020085; Sat, 17 Feb 2024 21:32:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWgqS020082; Sat, 17 Feb 2024 21:32:42 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:42 GMT Message-Id: <202402172132.41HLWgqS020082@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 0b3e4b3cc9bf - stable/14 - linuxkpi: Fix `__ATTR_RO()` in 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 0b3e4b3cc9bf1dda9d86636da02e6f8f96282d6f Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=0b3e4b3cc9bf1dda9d86636da02e6f8f96282d6f commit 0b3e4b3cc9bf1dda9d86636da02e6f8f96282d6f Author: Jean-Sébastien Pédron AuthorDate: 2023-12-08 21:57:24 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:35 +0000 linuxkpi: Fix `__ATTR_RO()` in [Why] The passed structure may not have a `.store` field. This is the case in the amdgpu DRM driver starting with Linux 5.18. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43023 (cherry picked from commit d752a5e82ac92603fadf82e7de75878e1f5d054a) --- sys/compat/linuxkpi/common/include/linux/sysfs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h index 8b4160453a3a..4a65095d9eb1 100644 --- a/sys/compat/linuxkpi/common/include/linux/sysfs.h +++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h @@ -54,7 +54,10 @@ struct attribute_group { .attr = { .name = __stringify(_name), .mode = _mode }, \ .show = _show, .store = _store, \ } -#define __ATTR_RO(_name) __ATTR(_name, 0444, _name##_show, NULL) +#define __ATTR_RO(_name) { \ + .attr = { .name = __stringify(_name), .mode = 0444 }, \ + .show = _name##_show, \ +} #define __ATTR_WO(_name) __ATTR(_name, 0200, NULL, _name##_store) #define __ATTR_RW(_name) __ATTR(_name, 0644, _name##_show, _name##_store) #define __ATTR_NULL { .attr = { .name = NULL } } From nobody Sat Feb 17 21:32: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 4Tchq01xdnz59lDG; Sat, 17 Feb 2024 21:32: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpz4w8Zz4h5P; Sat, 17 Feb 2024 21:32:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sfbg8TwIZs6pqoQwtWVx/Jw9IFO4mF8xaZGlAlSxZ6c=; b=UC0Sv3Hdx3Wj4b6PrY9bZhtXkITOu2FgXfNlH6m60HGqlOMxyEytBgWlOsDKO7P7oGOMR0 A/va7uBBFkWSMYei5D8BxkPcqsMVXLQQpI5uRIop84Q9+bO/RORL/ITgPuJXoHvycyvcV9 oKfWQ3GiZs3DLgiu6NkcV/j/st0UjtNAE1DXqnnnQU54TQUhzmDGIH0alvb3lm3kq4tpIn M8Sd918kdbqpN+ted3H/ZrhutbJEYGkGdgLuuOk79PHaDv8JnxAIrm4D2nSgJLvZk6Grk9 pSHXF3SdTcaKG50dQSBLXnZ+jsD76lRCNnABvwpck1Wvse5W7RCO3si3JHkrqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sfbg8TwIZs6pqoQwtWVx/Jw9IFO4mF8xaZGlAlSxZ6c=; b=M/ZYS2pyG7A17taXo/RAQoUQ05a7n6ahKzi/Mk/oQYWmPdO5utGOiljwFzBshUDoKMpafE 0fAsPmIigFxy9kwCqy24XWLBCiTxLU36IE5HHkD5zGtjJ8gJPAeQYRt1EQ6UUGawQ/+ZXP CHHg8i92oyepuS23IPZhlfq7y7SJK0I8I5Jyb+1mhhTm2ap7Y3s3J9757WKWKX04Cg5nQe Kaxnh87zNM9f+MNlKZoH+q2UCPxIRykBxahGcQRl8GWzw6Pc4rxTtBEoS59Sg1lD6wsRpv THpQs+S4FSHLSqQ1BWqoWuBs7CRFliQbAdC5XqfQoMTYc+hTLWWgVSJ7DfWa1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205563; a=rsa-sha256; cv=none; b=F5SMlpL8DzSZRkYOn7eqdFTANqEhaiUTrQTB/dicuwM+GzFw0pHRt2G1Y4YIddUwYNonX0 k9B4Lerbyewhqb+6PzCkoQy2GjXlmVgsZ9hrjpLvyWoSCB230GcGvTzCrIdtIYljRXetW7 MTdwgP3GWrHKMJE5qq0NSBVrnlT2nnoBCqAuNHn8xQyBNXorR9QEhKT4JhQd4mTsjBittn ntrtnF7a2EoOnI9QA24NXjID9wb1p43YrVlh0/dOy6srNv/E5kDABobpVb6A9PfxQHsdEx VHaT4Fgk2aLn1hLJaOBcQqDXC64Uqc1cgfcN1+TcHj/WLrvKA6hVyGMDF9v0kw== 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 4Tchpz42GhzPbD; Sat, 17 Feb 2024 21:32:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWhYV020130; Sat, 17 Feb 2024 21:32:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWhIQ020127; Sat, 17 Feb 2024 21:32:43 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:43 GMT Message-Id: <202402172132.41HLWhIQ020127@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 2f27a0b34052 - stable/14 - linuxkpi: Add