[Midnightbsd-cvs] [MidnightBSD/src] a6e280: OpenBSM: fix free() in au_read_rec error case

Cy Schubert noreply at github.com
Tue Jun 27 10:18:01 EDT 2023


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: a6e28098905f95b81b9ca2aba5d6e69425b50a4a
      https://github.com/MidnightBSD/src/commit/a6e28098905f95b81b9ca2aba5d6e69425b50a4a
  Author: Ed Maste <emaste at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M contrib/openbsm/libbsm/bsm_io.c

  Log Message:
  -----------
  OpenBSM: fix free() in au_read_rec error case

buf is a char ** and *buf is the allocated buffer.

PR:		267050
Reported by:	Robert Morris <rtm at lcs.mit.edu>
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit c61b3f7de9a0a39d2bc78e3e78d148c369e706a5)
(cherry picked from commit 889dcb5e9b2ff4160c313b31cfa53106af2a5b0c)


  Commit: 887697d61eae5d21b0bb693a6981f833f6431acb
      https://github.com/MidnightBSD/src/commit/887697d61eae5d21b0bb693a6981f833f6431acb
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/dev/arcmsr/arcmsr.h

  Log Message:
  -----------
  arcmsr(4): Fix a typo in a source code comment

- s/faild/failed/

(cherry picked from commit 24a630de81007a2fcb6a78739b08b5e000501894)


  Commit: 0ce3f389894e0062df3e66b98a5e292fe3a6ee0e
      https://github.com/MidnightBSD/src/commit/0ce3f389894e0062df3e66b98a5e292fe3a6ee0e
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/net/netmap.h

  Log Message:
  -----------
  netmap(4): Fix a typo in a source code comment

- s/microsconds/microseconds/

(cherry picked from commit 8ba2beacfd7c5d8d5a0f590aa9c628c2bbf23761)


  Commit: b365db7dbc73aeec75dc90067e455d9375dc534d
      https://github.com/MidnightBSD/src/commit/b365db7dbc73aeec75dc90067e455d9375dc534d
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man3/CMSG_DATA.3

  Log Message:
  -----------
  CMSG_DATA.3: Fix a typo in the EXAMPLES section

- s/faild/failed/

(cherry picked from commit 31c472b8a6e403e26110c9a379af45fccd6b4177)


  Commit: 426194df185afa01d23847a54c23a1ac5e5f54ac
      https://github.com/MidnightBSD/src/commit/426194df185afa01d23847a54c23a1ac5e5f54ac
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/netpfil/pf/pf_ioctl.c

  Log Message:
  -----------
  netpfil: Fix two typos in source code comments

- s/missmatch/mismatch/

(cherry picked from commit 558ec54da33c6cbd321cceb8f035425c4c73a356)


  Commit: cd969b57c8324832bff9fd8e99e0183083f7bb22
      https://github.com/MidnightBSD/src/commit/cd969b57c8324832bff9fd8e99e0183083f7bb22
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man4/run.4

  Log Message:
  -----------
  run.4: Fix a typo in the DIAGNOSTICS section

- s/faild/failed/

(cherry picked from commit 1cc4c2f90f40abcec810adfa4673240c7bc71119)


  Commit: 66c0947697498e1f19d6f1dd49733cbfe5cdbb26
      https://github.com/MidnightBSD/src/commit/66c0947697498e1f19d6f1dd49733cbfe5cdbb26
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/dev/qlnx/qlnxe/ecore_dev_api.h

  Log Message:
  -----------
  qlnxe(4): Fix a typo in a source code comment

- s/defult/default/

(cherry picked from commit 5daf88ea5efe6af916e71000fd6c2d81c22c8f43)


  Commit: 9646632d296949462b39b00ddd7bacf56d3ee095
      https://github.com/MidnightBSD/src/commit/9646632d296949462b39b00ddd7bacf56d3ee095
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/dev/firewire/sbp_targ.c

  Log Message:
  -----------
  firewire(4): Fix a typo in an error message

- s/faild/failed/

(cherry picked from commit c03e35accc46a397d4a166545ae57bfc668c7e7f)


  Commit: f66d55bb1856ab4e93013cede91ab7f416c30138
      https://github.com/MidnightBSD/src/commit/f66d55bb1856ab4e93013cede91ab7f416c30138
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/dev/ocs_fc/sli4.c

  Log Message:
  -----------
  ocs_fc(4): Fix a typo in an error message

- s/faild/failed/

(cherry picked from commit dabebd0ba251db53ab38db20a5bcfac65cc05f31)


  Commit: da66d9c019976b528615a93c80425f939b882150
      https://github.com/MidnightBSD/src/commit/da66d9c019976b528615a93c80425f939b882150
  Author: Xin LI <delphij at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M contrib/file/tests/gpkg-1-zst.result

  Log Message:
  -----------
  file: fix test case for gpkg by removing the extra \n.

(cherry picked from commit c5e957ad4fe63c90fccc7051ba2a4cb1fe140a75)


  Commit: 9b8b3b9b2f521547b52cf95ee34d1871960b3018
      https://github.com/MidnightBSD/src/commit/9b8b3b9b2f521547b52cf95ee34d1871960b3018
  Author: Kirk McKusick <mckusick at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sbin/tunefs/tunefs.8

  Log Message:
  -----------
  Add a description of soft updates journaling to tunefs(8).

Requested by: Graham Perrin
PR:           261944
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 82493ff7007abb5a2d059c74748d2907dafc5395)


  Commit: 51c794355c8cd04ada67effe5ca80ba8aa2c4464
      https://github.com/MidnightBSD/src/commit/51c794355c8cd04ada67effe5ca80ba8aa2c4464
  Author: Kirk McKusick <mckusick at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sbin/tunefs/tunefs.8

  Log Message:
  -----------
  Update date in tunefs(8) manual page.

PR:           261944
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 128b0398a1d420e3cb6ab3a535558ae0a55df04b)


  Commit: e986e9b7b9e589a1701775b25596a49cde5153ba
      https://github.com/MidnightBSD/src/commit/e986e9b7b9e589a1701775b25596a49cde5153ba
  Author: Kirk McKusick <mckusick at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sbin/newfs/newfs.8

  Log Message:
  -----------
  Add a description of soft updates journaling to newfs(8).

Requested by: Graham Perrin
PR:           261944
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 0929a153fc5cfe35f7390ab5870a36daed19b0ce)


  Commit: 945fa8df9e18bb98173166a574d9da4d0cbb8d65
      https://github.com/MidnightBSD/src/commit/945fa8df9e18bb98173166a574d9da4d0cbb8d65
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M cddl/usr.sbin/zfsd/zfsd.cc

  Log Message:
  -----------
  zfsd(8): Fix a typo in an error message

- s/faild/failed/

(cherry picked from commit 4bd5e6221ed11ba6e584eae9e511bd8a1c18031c)


  Commit: e0144c880776670d6692a1ebebc8c3bb53dec9c0
      https://github.com/MidnightBSD/src/commit/e0144c880776670d6692a1ebebc8c3bb53dec9c0
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.sbin/dconschat/dconschat.c

  Log Message:
  -----------
  dconschat(8): Fix a typo in an error message

- s/faild/failed/

(cherry picked from commit 7bef61eef3a88a79e9047335812bb683d043b477)


  Commit: 6aae4d8646791b3a7cba99ead2ae7cf9da599565
      https://github.com/MidnightBSD/src/commit/6aae4d8646791b3a7cba99ead2ae7cf9da599565
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/net80211/ieee80211_mesh.c

  Log Message:
  -----------
  net8021: Fix a typo in a kernel error message

- s/missmatch/mismatch/

(cherry picked from commit 156ce1e51ce9c092dcc8cc4d7f80a8c63974beea)


  Commit: 34520a9ad47e03c58d4ec362c1be219b6b09dcc5
      https://github.com/MidnightBSD/src/commit/34520a9ad47e03c58d4ec362c1be219b6b09dcc5
  Author: Dag-Erling Smørgrav <des at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M bin/sh/profile
    M etc/mtree/BSD.root.dist

  Log Message:
  -----------
  sh: read more profile files.

Differential Revision: https://reviews.freebsd.org/D36505
MFC after:	1 month

(cherry picked from commit 497cdf9673ec53d59634bb78862cd8dea3d5c155)

sh: when loading profile, skip obvious scratch files.

Differential Revision: https://reviews.freebsd.org/D36856

(cherry picked from commit d3890a547d201d1f5043e51baa406ac9d5d3a60a)

sh: when loading profile, read only .sh files.

Reviewers: jilles, eugen_grosbein.net, cy

Subscribers: imp

Differential Revision: https://reviews.freebsd.org/D37034

(cherry picked from commit 8d7221ca2dd5e0b6c633761b314cffed82ddca72)


  Commit: bc4db7ca48207cddbdbbf492795f93fbebba350c
      https://github.com/MidnightBSD/src/commit/bc4db7ca48207cddbdbbf492795f93fbebba350c
  Author: Piotr Kubaj <pkubaj at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M contrib/ofed/libibverbs/examples/rc_pingpong.c
    M contrib/ofed/libibverbs/examples/srq_pingpong.c
    M contrib/ofed/libibverbs/examples/uc_pingpong.c
    M contrib/ofed/libibverbs/examples/ud_pingpong.c
    M contrib/ofed/libibverbs/examples/xsrq_pingpong.c

  Log Message:
  -----------
  ofed: allow using IPv6 address in rc_pingpong server

Summary:
The current OFED code allows binding server to IPv6 address. It was added back in https://github.com/linux-rdma/rdma-core/commit/91fc39561d04903cd5b1665d9215a184baa66ba9

Sponsored by:	Intel Corporation
MFC after:	3 days

Reviewers: hselasky

Subscribers: imp

Differential Revision: https://reviews.freebsd.org/D37196

(cherry picked from commit 35c87c070a2d04f06c56578b0a4b2e9c13f62be5)
(cherry picked from commit a8c06a9de066902599e93b857ecf4d70c007e3c9)


  Commit: 30a500eb7ee43fcba2bc0fbbd679437d1436e492
      https://github.com/MidnightBSD/src/commit/30a500eb7ee43fcba2bc0fbbd679437d1436e492
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/dev/bxe/bxe.c

  Log Message:
  -----------
  bxe(4): Fix a typo in a source code comment

- s/interrutps/interrupts/

(cherry picked from commit e902e62644eebea1ae9b0679ab71a669f3596004)


  Commit: 6df0c90d381ac957c91b482b1ed6ec3307771fa6
      https://github.com/MidnightBSD/src/commit/6df0c90d381ac957c91b482b1ed6ec3307771fa6
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/dev/isci/scil/scic_sds_controller.c
    M sys/dev/isci/scil/scic_sds_port.c
    M sys/dev/isci/scil/scic_sds_port_configuration_agent.c
    M sys/dev/isci/scil/scic_sds_remote_device.h

  Log Message:
  -----------
  isci(4): Fix common typos in source code comments

- s/assinged/assigned/

(cherry picked from commit 816d5c1e98ffb71b20edce010050e0803b150e02)


  Commit: 066ffa595660c19d74cc4b446dd7fd10a8d5b59e
      https://github.com/MidnightBSD/src/commit/066ffa595660c19d74cc4b446dd7fd10a8d5b59e
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/dev/isci/scil/scic_controller.h

  Log Message:
  -----------
  isci(4): Fix a typo in a source code comment

- s/interrutp/interrupt/

(cherry picked from commit 5014dc958f0f3b7ba0c0a6ff84faa45151af51ac)


  Commit: e9fec5c53136418f083792ba623954b9e280f650
      https://github.com/MidnightBSD/src/commit/e9fec5c53136418f083792ba623954b9e280f650
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/arm/xilinx/uart_dev_cdnc.c

  Log Message:
  -----------
  xilinx: Fix a typo in a source code comment

- s/interrut/interrupt/

(cherry picked from commit 34fcce0087f394e869c4bf097552398a01da580e)


  Commit: 6fee2ad78bca0f5173ed03ed15ae2be0bc25cb0e
      https://github.com/MidnightBSD/src/commit/6fee2ad78bca0f5173ed03ed15ae2be0bc25cb0e
  Author: Zhenlei Huang <zlei.huang at gmail.com>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/net/if_vxlan.c

  Log Message:
  -----------
  if_vxlan(4): Check the size of data available in mbuf before using them

PR:		261711
Reviewed by:	kp
Tested by:	Alfa (burak.sn at outlook.com)
Approved by:	kp (mentor)
Differential Revision:	https://reviews.freebsd.org/D36794

(cherry picked from commit 8707cb19e68128c181477d87f960182c14e15f12)


  Commit: 874298ffa72f400a2ce0d87d6b4cf315b88def93
      https://github.com/MidnightBSD/src/commit/874298ffa72f400a2ce0d87d6b4cf315b88def93
  Author: Fernando Apesteguía <fernape at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.bin/tee/tee.1

  Log Message:
  -----------
  tee(1): Add EXAMPLES section

Probably the simplest one ever.

Approved by:	gbe@, 0mp@
Differential Revision:	https://reviews.freebsd.org/D25206

(cherry picked from commit d70bfedd087056716cbdb088c09709cea9251061)


  Commit: d7ebe9d1f39bfe430104e070c49bf341c91ba56a
      https://github.com/MidnightBSD/src/commit/d7ebe9d1f39bfe430104e070c49bf341c91ba56a
  Author: Fernando Apesteguía <fernape at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.bin/tee/tee.1

  Log Message:
  -----------
  tee(1): Add EXAMPLES section

Add one simple example

Approved by:	bcr@
Differential Revision:	https://reviews.freebsd.org/D25337

(cherry picked from commit fcc879ad25caaeed3ef9d461d3ed798b51312062)


  Commit: 1450c9d4041d6501e944825afb49211efe737db4
      https://github.com/MidnightBSD/src/commit/1450c9d4041d6501e944825afb49211efe737db4
  Author: Mateusz Piotrowski <0mp at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.bin/tee/tee.1

  Log Message:
  -----------
  tee.1: Add a missing article

(cherry picked from commit 9ec571021d73d53bac53aa6db7886ecb8dd09ed3)


  Commit: 163e8a9bddaaa1b5f7528c2db55163e1da50d903
      https://github.com/MidnightBSD/src/commit/163e8a9bddaaa1b5f7528c2db55163e1da50d903
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.bin/tee/tee.1

  Log Message:
  -----------
  tee.1: Add a HISTORY section

The most accurate information I have found is that
tee(1) first appeared in Version 7 AT&T UNIX.

Reviewed by:	pauamma
Differential Revision:	https://reviews.freebsd.org/D37206

(cherry picked from commit 514df63539db57d356e81f63369ca1a894c253e1)


  Commit: a146b9ced863dde27883186283ea1c6e2b2514ec
      https://github.com/MidnightBSD/src/commit/a146b9ced863dde27883186283ea1c6e2b2514ec
  Author: Pau Amma <pauamma at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sbin/devmatch/devmatch.8

  Log Message:
  -----------
  Make SYNOPSIS match DESCRIPTION.

While there, fix nits reported by igor and mandoc -T lint.

Differential Revision: https://reviews.freebsd.org/D35405

Reviewed by:	debdrup, gbe, gjb

Approved by:	gjb (mentor)

MFC after:	3 days

(cherry picked from commit 5cc5c9254da048dae5c5ade622405e51dc8a3862)


  Commit: a7d6195bae9f42df6cea0c2762deb2a60845637e
      https://github.com/MidnightBSD/src/commit/a7d6195bae9f42df6cea0c2762deb2a60845637e
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/dev/smartpqi/smartpqi_init.c

  Log Message:
  -----------
  smartpqi(4): Fix two typos in kernel error messages

- s/runnning/running/

(cherry picked from commit d53e97bb5490cdedb37bd4e25646c5379b196c93)


  Commit: a1c8390726dd30efe68056da759726c981013700
      https://github.com/MidnightBSD/src/commit/a1c8390726dd30efe68056da759726c981013700
  Author: Kristof Provost <kp at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/netgraph/ng_bridge.h

  Log Message:
  -----------
  netgraph/ng_bridge: add missing array terminator

PR:		267457
Reported by:	Robert Morris <rtm at lcs.mit.edu>
MFC after:	1 week

(cherry picked from commit 23559c9d0dc2fb81115bc02c33a0103219f3fb55)


  Commit: 090a093e3125878b534a1b74bcd88bcdf60b084e
      https://github.com/MidnightBSD/src/commit/090a093e3125878b534a1b74bcd88bcdf60b084e
  Author: Kristof Provost <kp at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M tests/sys/netpfil/common/sniffer.py

  Log Message:
  -----------
  tests: make sniffer more robust

The Sniffer class is often used by test tools such as pft_ping to verify
that packets actually get sent where they're expected.

It starts a background thread to capture packets, but this thread needs
some time to start, leading to intermittent test failures when the
capture doesn't start before the relevant packet is sent.

Add a semaphore to ensure the Sniffer constructor doesn't return until
the capture is actually running.

PR:		260461
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 67557372dfef87eb94681a97a4157198efe21992)


  Commit: d6c3e37e96f6b2c73835055ce23557158f051403
      https://github.com/MidnightBSD/src/commit/d6c3e37e96f6b2c73835055ce23557158f051403
  Author: Kristof Provost <kp at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M tests/sys/net/if_bridge_test.sh

  Log Message:
  -----------
  bridge tests: re-enable span test

The root cause of the intermittent span test failures has been
identified as a race between sending the packet and starting the bpf
capture.
This is now resolved, so the test can be re-enabled.

PR:		260461
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit e1274b5b2646a49c1e3efce6c9918c99716d3c07)


  Commit: 49d62ad7c6be954e18a936670e9d34d35581acbb
      https://github.com/MidnightBSD/src/commit/49d62ad7c6be954e18a936670e9d34d35581acbb
  Author: Richard Scheffenegger <rscheff at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/netinet/libalias/alias_ftp.c
    M sys/netinet/libalias/alias_irc.c
    M sys/netinet/libalias/alias_proxy.c
    M sys/netinet/libalias/alias_skinny.c
    M sys/netinet/libalias/alias_smedia.c
    M sys/netinet/tcp.h
    M sys/netpfil/ipfw/ip_fw_nat.c

  Log Message:
  -----------
  ipfw: Have NAT steal the TH_RES1 bit, instead of the TH_AE bit

The NAT module use of the tcphdr.th_x2 field now collides with the
use of this TCP header flag as AccECN (AE) bit. Use the topmost
bit instead to allow negotiation of AccECN across a NAT device.

Event:			IETF 115 Hackathon
Reviewed By:		#transport, tuexen
MFC after:		3 days
Approved by:		re (gjb, early-MFC)
Sponsored by:		NetApp, Inc.
Differential Revision:	https://reviews.freebsd.org/D37300

(cherry picked from commit 0b00b801493aa1d4996b0891ea58fbef343f85df)


  Commit: 2f03044dd7c5d98be8a5e4f954d9666c133858bf
      https://github.com/MidnightBSD/src/commit/2f03044dd7c5d98be8a5e4f954d9666c133858bf
  Author: Johannes Totz <jo at bruelltuete.com>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man4/re.4

  Log Message:
  -----------
  re.4: Mention vendor driver for if_re(4)

If this if_re(4) is causing problems then an updated driver from
the vendor can be found in the ports tree under net/realtek-re-kmod.

Reviewed by:	debdrup, koobs, emaste
Differential Revision:	https://reviews.freebsd.org/D33677

(cherry picked from commit a9a35c9e35370d09be5cbcd32f287b12f40812a5)


  Commit: 327c8260ee89d704276afb718ac7c3c21c0a496a
      https://github.com/MidnightBSD/src/commit/327c8260ee89d704276afb718ac7c3c21c0a496a
  Author: Edward Tomasz Napierala <trasz at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man3/intro.3

  Log Message:
  -----------
  intro(3): Fix formatting

This makes the left column narrower, leaving more space for the text.

Reviewed By:	debdrup, 0mp
Differential Revision:	https://reviews.freebsd.org/D33385

(cherry picked from commit e522571b7948fd64f2652258a73f6588f1fa43f0)


  Commit: 9c2e4e8e4a138a1a7754c07fa8a1db23ddc74a4c
      https://github.com/MidnightBSD/src/commit/9c2e4e8e4a138a1a7754c07fa8a1db23ddc74a4c
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man3/intro.3

  Log Message:
  -----------
  intro.3: Document 'libstdthreads' (the ISO C11 '<threads.h>' library).

It's still relatively uncommon to see C11 '<threads.h>' being used,
but it's worth documenting, especially since FreeBSD requires a
different library for C11 threads  compared to glibc (part of '-lpthread')
or musl libc  (included by default).

PR:	267551
Submitted by:	Alois Klink <alois plus freebsd at aloisklink dot com>
Reviewed by:	pauamma
Differential Revision:	https://reviews.freebsd.org/D37284

(cherry picked from commit 8a220816c72261efce304568498279fdda6b57cb)


  Commit: 66d820750689abf51f9ab55c411a3847cdd2eb3d
      https://github.com/MidnightBSD/src/commit/66d820750689abf51f9ab55c411a3847cdd2eb3d
  Author: liu-du <duliujimmy at hotmail.com>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.bin/xargs/tests/regress.sh
    M usr.bin/xargs/xargs.c

  Log Message:
  -----------
  xargs: fix exit code when using -P

currently when xargs runs in parallel mode (e.g. -P2), it somtimes
incorrectly returns zero exit code.  this commit fix it and also adds
tests.

Reviewed by:	mjg
PR:	267110

(cherry picked from commit 0ca740d9a639ab635f5a28be9051d0124a9544a1)


  Commit: 993e32ae93272b5fdebb7f47576fe78fd29d4eb6
      https://github.com/MidnightBSD/src/commit/993e32ae93272b5fdebb7f47576fe78fd29d4eb6
  Author: John Baldwin <jhb at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.sbin/bhyve/pci_e82545.c

  Log Message:
  -----------
  bhyve e1000: Sanitize transmit ring indices.

When preparing to transmit pending packets, ensure that the head (TDH)
and tail (TDT) indices are in bounds.  Note that validating values
when they are written is not sufficient along as the transmit length
(TDLEN) could be changed turning a value that was valid when written
into an out of bounds value.

While here, add further restrictions to the head register (TDH).  The
manual states that writing to this value while transmit is enabled can
cause unexpected behavior and that it should only be written after a
reset.  As such, ignore attempts to write while transmit is active,
and also ignore writes of non-zero values.  Later e1000 chipsets have
this register as read-only.

Also ignore any attempts to transmit packets if the transmit ring's
size is zero.

PR:		264567
Reported by:	Robert Morris <rtm at lcs.mit.edu>
Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36269

(cherry picked from commit 7afe342dcb38b624488009bb6bdfa5337e628ffc)


  Commit: 63a1b8c5f23e3b4b55a42173b37fc8d69440c9d3
      https://github.com/MidnightBSD/src/commit/63a1b8c5f23e3b4b55a42173b37fc8d69440c9d3
  Author: John Baldwin <jhb at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.sbin/bhyve/pci_virtio_scsi.c

  Log Message:
  -----------
  bhyve virtio-scsi: Tidy warning and debug prints.

Use a consistent prefix ("virtio-scsi: ") similar to the e1000 device
model.

Reviewed by:	mav, emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36270

(cherry picked from commit 62806a7f31e3b4813c4e6b70534c41f91bfe4e12)


  Commit: 30a6897b1c5947d6ff89894b2b66ab9b972f3c8f
      https://github.com/MidnightBSD/src/commit/30a6897b1c5947d6ff89894b2b66ab9b972f3c8f
  Author: Vitaliy Gusev <gusev.vitaliy at gmail.com>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/amd64/vmm/x86.c
    M sys/amd64/vmm/x86.h

  Log Message:
  -----------
  vmm: Cherry pick illumos commit '13361 bhyve should mask RDT cpuid info'

Summary:
    commit  1a5f1879be09d3de900b2510692dd12003784d84
    Author: Patrick Mooney <pmooney at pfmooney.com>
    Date:   2020-12-16T20:02:23.000Z

        13361 bhyve should mask RDT cpuid info
        Reviewed by: Andy Fiddaman <andy at omnios.org>
        Reviewed by: Toomas Soome <tsoome at me.com>
        Approved by: Robert Mustacchi <rm at fingolfin.org>

    https://github.com/illumos/illumos-gate/commit/1a5f1879be09d3de900b2510692dd12003784d8

----

We saw similar warning of GP (on Intel Xeon CPU E5-2630 v4 and VM with Ubuntu 20.04 5.4.0-113-generic)  until this commit is applied:

```
[    1.658880] kernel: unchecked MSR access error: WRMSR to 0xc8f (tried to write 0x0000000000000000) at rIP: 0xffffffffacc735b4 (native_write_msr+0x4/0x30)
[    1.662734] kernel: Call Trace:
[    1.663885] kernel:  ? clear_closid_rmid.isra.0+0x36/0x40
[    1.665501] kernel:  resctrl_online_cpu+0xdc/0x3f0
[    1.666952] kernel:  ? __switch_to_asm+0x40/0x70
[    1.668358] kernel:  ? __switch_to+0x7f/0x480
[    1.669693] kernel:  ? cat_wrmsr+0x70/0x70
[    1.670970] kernel:  cpuhp_invoke_callback+0x9b/0x580
[    1.672541] kernel:  ? __schedule+0x2eb/0x740
[    1.673893] kernel:  cpuhp_thread_fun+0xb8/0x120
[    1.675304] kernel:  smpboot_thread_fn+0xd0/0x170
[    1.676685] kernel:  kthread+0x104/0x140
[    1.677948] kernel:  ? sort_range+0x30/0x30
[    1.679299] kernel:  ? kthread_park+0x90/0x90
[    1.680570] kernel:  ret_from_fork+0x35/0x40
[    1.682000] kernel: *** VALIDATE rdt ***
[    1.683454] kernel: resctrl: L3 monitoring detected
```

Reviewed by:	markj, jhb
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D35442

(cherry picked from commit 5afcca138f6b1f9d6413de586a0cf2baf16da764)


  Commit: d415c4380cf90f8bfd0f971d925554c235dc14c2
      https://github.com/MidnightBSD/src/commit/d415c4380cf90f8bfd0f971d925554c235dc14c2
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/fs/nfs/nfs_commonsubs.c
    M sys/fs/nfsserver/nfs_nfsdserv.c

  Log Message:
  -----------
  nfs: Fix common typos in source code comments

- s/attrbute/attribute/

(cherry picked from commit bf312482870fb663fac4446955ca6c3090d1e7f3)


  Commit: 5e5f224e700489b7b1a5f0e5fa0cf72870a249af
      https://github.com/MidnightBSD/src/commit/5e5f224e700489b7b1a5f0e5fa0cf72870a249af
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.sbin/nfsd/pnfs.4

  Log Message:
  -----------
  pnfs.4: Fix a typo

- s/attrbute/attribute/

(cherry picked from commit 40b245af0f496f75a0396a88747474ced909fef5)


  Commit: eecd61c2154670f3b4605ac95c2e9bf60e500022
      https://github.com/MidnightBSD/src/commit/eecd61c2154670f3b4605ac95c2e9bf60e500022
  Author: John Baldwin <jhb at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M lib/libc/sys/ktrace.2

  Log Message:
  -----------
  ktrace.2: Document KTRFAC_STRUCT_ARRAY.

Sponsored by:	DARPA

(cherry picked from commit c9c9057c772f8fc8a0c768383597f4b92db0cd74)


  Commit: d3e0ba363784d78e3c69a9390290bb4def96bed0
      https://github.com/MidnightBSD/src/commit/d3e0ba363784d78e3c69a9390290bb4def96bed0
  Author: Oskar Holmlund <oh at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/gnu/dts/arm/am335x-baltos.dtsi
    M sys/gnu/dts/arm/am335x-bone-common.dtsi
    M sys/gnu/dts/arm/am335x-boneblack-common.dtsi
    M sys/gnu/dts/arm/am335x-boneblue.dts
    M sys/gnu/dts/arm/am335x-chiliboard.dts
    M sys/gnu/dts/arm/am335x-cm-t335.dts
    M sys/gnu/dts/arm/am335x-evm.dts
    M sys/gnu/dts/arm/am335x-evmsk.dts
    M sys/gnu/dts/arm/am335x-guardian.dts
    M sys/gnu/dts/arm/am335x-icev2.dts
    M sys/gnu/dts/arm/am335x-igep0033.dtsi
    M sys/gnu/dts/arm/am335x-lxm.dts
    M sys/gnu/dts/arm/am335x-moxa-uc-2100-common.dtsi
    M sys/gnu/dts/arm/am335x-moxa-uc-8100-me-t.dts
    M sys/gnu/dts/arm/am335x-netcan-plus-1xx.dts
    M sys/gnu/dts/arm/am335x-netcom-plus-2xx.dts
    M sys/gnu/dts/arm/am335x-netcom-plus-8xx.dts
    M sys/gnu/dts/arm/am335x-osd3358-sm-red.dts
    M sys/gnu/dts/arm/am335x-pcm-953.dtsi
    M sys/gnu/dts/arm/am335x-pdu001.dts
    M sys/gnu/dts/arm/am335x-pepper.dts
    M sys/gnu/dts/arm/am335x-pocketbeagle.dts
    M sys/gnu/dts/arm/am335x-regor.dtsi
    M sys/gnu/dts/arm/am335x-sancloud-bbe.dts
    M sys/gnu/dts/arm/am335x-shc.dts
    M sys/gnu/dts/arm/am335x-sl50.dts
    M sys/gnu/dts/arm/am335x-wega.dtsi
    M sys/gnu/dts/arm/am33xx-l4.dtsi
    M sys/gnu/dts/arm/am33xx.dtsi
    M sys/gnu/dts/arm/am3517.dtsi
    M sys/gnu/dts/arm/am3517_mt_ventoux.dts
    M sys/gnu/dts/arm/am3703.dtsi
    M sys/gnu/dts/arm/am3715.dtsi
    M sys/gnu/dts/arm/am4372.dtsi
    M sys/gnu/dts/arm/am437x-gp-evm.dts
    M sys/gnu/dts/arm/am437x-idk-evm.dts
    M sys/gnu/dts/arm/am437x-l4.dtsi
    M sys/gnu/dts/arm/am437x-sk-evm.dts
    M sys/gnu/dts/arm/am43x-epos-evm.dts
    M sys/gnu/dts/arm/am43xx-clocks.dtsi
    M sys/gnu/dts/arm/am571x-idk.dts
    M sys/gnu/dts/arm/am572x-idk-common.dtsi
    M sys/gnu/dts/arm/am572x-idk.dts
    M sys/gnu/dts/arm/am574x-idk.dts
    M sys/gnu/dts/arm/am57xx-beagle-x15-common.dtsi
    M sys/gnu/dts/arm/am57xx-beagle-x15-revb1.dts
    M sys/gnu/dts/arm/am57xx-beagle-x15-revc.dts
    M sys/gnu/dts/arm/am57xx-idk-common.dtsi
    M sys/gnu/dts/arm/dm3725.dtsi
    M sys/gnu/dts/arm/dra62x-j5eco-evm.dts
    M sys/gnu/dts/arm/dra7-evm-common.dtsi
    M sys/gnu/dts/arm/dra7-evm.dts
    M sys/gnu/dts/arm/dra7-l4.dtsi
    M sys/gnu/dts/arm/dra7.dtsi
    M sys/gnu/dts/arm/dra72-evm-common.dtsi
    M sys/gnu/dts/arm/dra72x.dtsi
    M sys/gnu/dts/arm/dra74x.dtsi
    M sys/gnu/dts/arm/dra76-evm.dts
    M sys/gnu/dts/arm/dra76x.dtsi
    M sys/gnu/dts/arm/dra7xx-clocks.dtsi
    M sys/gnu/dts/arm/omap2.dtsi
    M sys/gnu/dts/arm/omap2430.dtsi
    M sys/gnu/dts/arm/omap3-beagle-xm.dts
    M sys/gnu/dts/arm/omap3-beagle.dts
    M sys/gnu/dts/arm/omap3-cm-t3530.dts
    M sys/gnu/dts/arm/omap3-cm-t3730.dts
    M sys/gnu/dts/arm/omap3-devkit8000-lcd43.dts
    M sys/gnu/dts/arm/omap3-devkit8000-lcd70.dts
    M sys/gnu/dts/arm/omap3-devkit8000.dts
    M sys/gnu/dts/arm/omap3-echo.dts
    M sys/gnu/dts/arm/omap3-gta04.dtsi
    M sys/gnu/dts/arm/omap3-ha-lcd.dts
    M sys/gnu/dts/arm/omap3-ha.dts
    M sys/gnu/dts/arm/omap3-igep0020-rev-f.dts
    M sys/gnu/dts/arm/omap3-igep0020.dts
    M sys/gnu/dts/arm/omap3-igep0030-rev-g.dts
    M sys/gnu/dts/arm/omap3-igep0030.dts
    M sys/gnu/dts/arm/omap3-ldp.dts
    M sys/gnu/dts/arm/omap3-lilly-a83x.dtsi
    M sys/gnu/dts/arm/omap3-lilly-dbb056.dts
    M sys/gnu/dts/arm/omap3-n9.dts
    M sys/gnu/dts/arm/omap3-n900.dts
    M sys/gnu/dts/arm/omap3-n950-n9.dtsi
    M sys/gnu/dts/arm/omap3-n950.dts
    M sys/gnu/dts/arm/omap3-overo-storm-alto35.dts
    M sys/gnu/dts/arm/omap3-overo-storm-chestnut43.dts
    M sys/gnu/dts/arm/omap3-overo-storm-gallop43.dts
    M sys/gnu/dts/arm/omap3-overo-storm-palo35.dts
    M sys/gnu/dts/arm/omap3-overo-storm-palo43.dts
    M sys/gnu/dts/arm/omap3-overo-storm-summit.dts
    M sys/gnu/dts/arm/omap3-overo-storm-tobi.dts
    M sys/gnu/dts/arm/omap3-overo-storm-tobiduo.dts
    M sys/gnu/dts/arm/omap3-pandora-1ghz.dts
    M sys/gnu/dts/arm/omap3-pandora-common.dtsi
    M sys/gnu/dts/arm/omap3-sbc-t3530.dts
    M sys/gnu/dts/arm/omap3-sbc-t3730.dts
    M sys/gnu/dts/arm/omap3-sniper.dts
    M sys/gnu/dts/arm/omap3-tao3530.dtsi
    M sys/gnu/dts/arm/omap3-thunder.dts
    M sys/gnu/dts/arm/omap3-zoom3.dts
    M sys/gnu/dts/arm/omap3.dtsi
    M sys/gnu/dts/arm/omap3430-sdp.dts
    M sys/gnu/dts/arm/omap34xx-omap36xx-clocks.dtsi
    M sys/gnu/dts/arm/omap34xx.dtsi
    M sys/gnu/dts/arm/omap36xx-clocks.dtsi
    M sys/gnu/dts/arm/omap36xx.dtsi
    M sys/gnu/dts/arm/omap3xxx-clocks.dtsi
    M sys/gnu/dts/arm/omap4-droid-bionic-xt875.dts
    M sys/gnu/dts/arm/omap4-droid4-xt894.dts
    M sys/gnu/dts/arm/omap4-l4-abe.dtsi
    M sys/gnu/dts/arm/omap4-l4.dtsi
    M sys/gnu/dts/arm/omap4.dtsi
    M sys/gnu/dts/arm/omap44xx-clocks.dtsi
    M sys/gnu/dts/arm/omap5-l4-abe.dtsi
    M sys/gnu/dts/arm/omap5-l4.dtsi
    M sys/gnu/dts/arm/omap5.dtsi
    M sys/gnu/dts/arm/omap54xx-clocks.dtsi
    M sys/gnu/dts/include/dt-bindings/clock/dra7.h
    M sys/gnu/dts/include/dt-bindings/clock/omap4.h
    M sys/gnu/dts/include/dt-bindings/clock/omap5.h
    M sys/gnu/dts/include/dt-bindings/clock/ti-dra7-atl.h

  Log Message:
  -----------
  dts: Revert DTS for OMAP family
In DTS import from Linux 5.5 the ti,hwmods were deprecated in favor of
using ti-sysc interconnect target module to identify the IP blocks.

Direct commit to stable/12, since stable/13 and later have an updated
ti-sysc driver.

Approved by: manu (mentor)
Differential revision: https://reviews.freebsd.org/D26552


  Commit: ef59772154d8b8c81f739d54fc96c18752c5fccb
      https://github.com/MidnightBSD/src/commit/ef59772154d8b8c81f739d54fc96c18752c5fccb
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.bin/cut/cut.1
    M usr.bin/paste/paste.1

  Log Message:
  -----------
  Update HISTORY and AUTHORS sections for cut(1) and paste(1)

In an e-mail Brian Walden wrote that:

"GWRL stands for Gottfried W. R. Luderer, the author of cut(1) and
paste(1), probably around 1978. Those came either from PWB or USG,
as he worked with, or for, Berkley Tague. Thus they made their way
into AT&T commercial UNIX, first into System III and the into System
V, and that's why they are missing from early BSD releases as they
didn't get into Research UNIX until the 8th Edition."

So update the HISTORY and AUTHORS sections for cut(1) and paste(1).

[1] https://minnie.tuhs.org/pipermail/tuhs/2020-January/019955.html

Reviewed by:	pauamma, imp
Obtained from:	OpenBSD (in partial)
Differential Revision:	https://reviews.freebsd.org/D36048

(cherry picked from commit 9bdb5158d6016798187e4d7eb943791a64809194)


  Commit: 1dd1d805b025d7fcdc613ac898214ae285bf3417
      https://github.com/MidnightBSD/src/commit/1dd1d805b025d7fcdc613ac898214ae285bf3417
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sbin/shutdown/shutdown.8

  Log Message:
  -----------
  shutdown.8: Add a note about needed priviledges to run the command

In order to use the shutdown command, the user must
have root privileges or be a member of the operator group.

PR:		266525
Reported by:	Zsolt Udvari <uzsolt at uzsolt hu>
Reviewed by:	pauamma
Differential Revision:	https://reviews.freebsd.org/D36688

(cherry picked from commit e0dfa1c4c45ec1b787020c99310c36aec9d9007b)


  Commit: 6700ffb3729ced8175976677de8c0fe0bf0ec1ef
      https://github.com/MidnightBSD/src/commit/6700ffb3729ced8175976677de8c0fe0bf0ec1ef
  Author: Warner Losh <imp at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man5/hosts.5

  Log Message:
  -----------
  man: Remove obsolete info from hosts man page

The NIC no longer provides a host database, and hasn't for quite some
time. Remove that paragraph, it's not been relevant for many years. Also, hosts
appeared in 4.1c, not 4.2, so correct that too.

Noticed by: Henry Bent

(cherry picked from commit c22076b5283970908e74b3abece53efc4670e87d)


  Commit: ad19919cc970d7303912879b0c8f1c748f2b9245
      https://github.com/MidnightBSD/src/commit/ad19919cc970d7303912879b0c8f1c748f2b9245
  Author: Ceri Davies <ceri at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man5/hosts.5
    M share/man/man5/resolver.5

  Log Message:
  -----------
  man5/{hosts,resolver}.5: note that IPv6 addresses are allowed.

The patch in the PR largely no longer applied due to age, but
thanks to Evgeniy Khramtsov for the patches in the PR.

PR:		120024
Reported by:	bcran
Approved by:	blackend (mentor)
Obtained from:	Evgeniy Khramtsov <evgeniy at khramtsov.org> (partly)

(cherry picked from commit a23b08cf98d92ff82adeebc84673e9bd3cd0a6da)


  Commit: fb2544797000737cf3d69013f628e6426e21e451
      https://github.com/MidnightBSD/src/commit/fb2544797000737cf3d69013f628e6426e21e451
  Author: Mike Karels <karels at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M lib/libc/net/inet.3
    M lib/libc/net/inet_net.3
    M share/man/man5/resolver.5

  Log Message:
  -----------
  man pages: deprecate Internet Class A/B/C

Mark functions inet_netof(), inet_lnaof(), and inet_makeaddr() as
deprecated, as they assume Class A/B/C.  inet_makeaddr() mostly works
when networks are a multiple of 8 bits, but warn for anything other
than historical classes.  Reduce other mentions of network classes.

Reviewed by:	bcr, #manpages
Differential Revision: https://reviews.freebsd.org/D32711

(cherry picked from commit 12bd931d8c64ad2d5e78c7ab917efbff326152ca)


  Commit: e88efc5a50e270c644a2a121841fa05b952e2a97
      https://github.com/MidnightBSD/src/commit/e88efc5a50e270c644a2a121841fa05b952e2a97
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M lib/libc/net/resolver.3
    M share/man/man5/hosts.5
    M share/man/man5/resolver.5

  Log Message:
  -----------
  Update SEE ALSO sections for resolver.{3,5} and hosts.5

The mentioned document "Name Server Operations Guide for BIND" is
outdated, so remove it from the SEE ALSO section of hosts.5
and resolver.{3,5}.

PR:		266360
Reported by:	Graham Perrin <grahamperrin at FreeBSD dot org>
Reviewed by:	karels
Differential Revision:	https://reviews.freebsd.org/D36557

(cherry picked from commit 0090d18235269cc5f9582712a42fb5641d5b6f71)


  Commit: 2f52c4c7d0f73c97856e8cb9c1eac338734ed79a
      https://github.com/MidnightBSD/src/commit/2f52c4c7d0f73c97856e8cb9c1eac338734ed79a
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man5/resolver.5

  Log Message:
  -----------
  resolver.5: Add an EXAMPLES section

In case local-unbound(8) fails for some reason, it could be useful
to have a basic resolv.conf(5) example in the manual page.

Reviewed by:	karels, pauamma
Differential Revision:	https://reviews.freebsd.org/D37183

(cherry picked from commit 4d00d772e9aa995f93da41883a1fea5e2e43f818)


  Commit: e33bc87e7b1f52b31f9961e95db7ee9207e899c6
      https://github.com/MidnightBSD/src/commit/e33bc87e7b1f52b31f9961e95db7ee9207e899c6
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.sbin/vipw/vipw.8

  Log Message:
  -----------
  vipw.8: Add a FILES section

Mention passwd related files in the FILES section
of vipw(8).

Obtained from:	OpenBSD

(cherry picked from commit 30a6c8a3a8a65074e531010f4adc8c1559f954ac)


  Commit: fe0ad737f1b4bfb8f0a588b67a1ec2423ceda6eb
      https://github.com/MidnightBSD/src/commit/fe0ad737f1b4bfb8f0a588b67a1ec2423ceda6eb
  Author: Gordon Bergling <gbe at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man7/ascii.7

  Log Message:
  -----------
  ascii.7: Add full names of the control character set

Extent the manual page by the full names of the
control character set.

Obtained from:	NetBSD

(cherry picked from commit b6d1ac7f01f35ff3c44f65d197414f92356e932b)


  Commit: 44f2851b79ecc02dee069490ab8d05a1b99a8850
      https://github.com/MidnightBSD/src/commit/44f2851b79ecc02dee069490ab8d05a1b99a8850
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/asn1/gen_free.c

  Log Message:
  -----------
  heimdal: Fix multiple security vulnerabilities

The following issues are patched:

 - CVE-2022-42898 PAC parse integer overflows
 - CVE-2022-3437 Overflows and non-constant time leaks in DES{,3} and arcfour
 - CVE-2021-44758 NULL dereference DoS in SPNEGO acceptors
 - CVE-2022-44640 Heimdal KDC: invalid free in ASN.1 codec

    Note that CVE-2022-44640 is a severe vulnerability, possibly a 10.0
    on the Common Vulnerability Scoring System (CVSS) v3, as we believe
    it should be possible to get an RCE on a KDC, which means that
    credentials can be compromised that can be used to impersonate
    anyone in a realm or forest of realms.

    Heimdal's ASN.1 compiler generates code that allows specially
    crafted DER encodings of CHOICEs to invoke the wrong free function
    on the decoded structure upon decode error.  This is known to impact
    the Heimdal KDC, leading to an invalid free() of an address partly
    or wholly under the control of the attacker, in turn leading to a
    potential remote code execution (RCE) vulnerability.

    This error affects the DER codec for all extensible CHOICE types
    used in Heimdal, though not all cases will be exploitable.  We have
    not completed a thorough analysis of all the Heimdal components
    affected, thus the Kerberos client, the X.509 library, and other
    parts, may be affected as well.

    This bug has been in Heimdal's ASN.1 compiler since 2005, but it may
    only affect Heimdal 1.6 and up.  It was first reported by Douglas
    Bagnall, though it had been found independently by the Heimdal
    maintainers via fuzzing a few weeks earlier.

    While no zero-day exploit is known, such an exploit will likely be
    available soon after public disclosure.

 - CVE-2019-14870: Validate client attributes in protocol-transition
 - CVE-2019-14870: Apply forwardable policy in protocol-transition
 - CVE-2019-14870: Always lookup impersonate client in DB

Sponsored by:	so (philip)
Obtained from:	so (philip)
Tested by:	philip, cy

(cherry picked from commit ed549cb0c53f8438c52593ce811f6fcc812248e9)


  Commit: ca7b4d8b746325c18bfeb975cf8045bfc6ba461a
      https://github.com/MidnightBSD/src/commit/ca7b4d8b746325c18bfeb975cf8045bfc6ba461a
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/asn1/gen_free.c

  Log Message:
  -----------
  heimdal: Fix: Too large time skew, client time 1970-01-01T01:00:00

Part of ed549cb0c53f zeroed out a data structure in the resulting code-file
when a TUTCTime type was freed. This part of the patch applies to Heimdal
7.1+ and not our Heimdal 1.5.2.

PR:		267827
Reported by:	Peter Much <pmc at citylink.dinoex.sub.org>
Tested by:	Peter Much <pmc at citylink.dinoex.sub.org>
Fixes:		ed549cb0c53f

(cherry picked from commit f556a05c49261af3d373c599d05fa250f3563b59)


  Commit: ba427cbe4d48865ece38e56655f498e796cd9367
      https://github.com/MidnightBSD/src/commit/ba427cbe4d48865ece38e56655f498e796cd9367
  Author: Michal Meloun <mmel at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/arm/arm/undefined.c

  Log Message:
  -----------
  arm: Fix handling of undefined instruction aborts in THUMB2 mode.

Correctly recognize NEON/SIMD and VFP instructions in THUMB2 mode and pass
these to the appropriate handler. Note that it is not necessary to filter
all undefined instruction variant or register combinations, this is a job
for given handler.

Reported by:	Robert Clausecker <fuz at fuz.su>
PR:		259187
MFC after:	2 weks

(cherry picked from commit a670e1c13a522df4fb8c63bb023b88b1d65de797)
Signed-off-by: Olivier Houchard <cognet at FreeBSD.org>


  Commit: f4a06c2bcf30d2240991736085a4fb7e37c53247
      https://github.com/MidnightBSD/src/commit/f4a06c2bcf30d2240991736085a4fb7e37c53247
  Author: Ed Maste <emaste at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M contrib/dma/mail.c

  Log Message:
  -----------
  dma: use canonical getline() loop

getline() returns -1 on erorr or EOF, so use that condition instead of
feof() and check that there was no error after the loop exits.

Reviewed by:	bapt, kevans (both earlier)
MFC after:	3 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34159

(cherry picked from commit d21e71efce3963b068ccaa807a099b591dc220e9)
(cherry picked from commit 2e8403e0215868a13e2bdd1c979fc351971b8d91)


  Commit: fa39c9aff3e7febd38829f52c6d2bdd7d5fb6278
      https://github.com/MidnightBSD/src/commit/fa39c9aff3e7febd38829f52c6d2bdd7d5fb6278
  Author: Ed Maste <emaste at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M contrib/dma/mail.c

  Log Message:
  -----------
  dma: restore addition of newline when missing from input

If input mail does not have a newline on the last line dma must add
one.  This was broken by the addition of long-line splitting, with the
switch from strlen(line) to linelen returned by getline().

PR:		266629
Reviewed by:	bapt, Mikko Lehto
Tested by:	Mikko Lehto
MFC after:	1 week
Fixes:		b0b2d05fd060 ("Split body of mails not respecting...")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D36763

(cherry picked from commit 169487223143b1232ec4686b720b028af8d6d42b)
(cherry picked from commit bd3d597a6bc0e35273669cfd7a99b3a5b437d92a)


  Commit: 953129ec791884b1981b06f1cb648a1481abf89b
      https://github.com/MidnightBSD/src/commit/953129ec791884b1981b06f1cb648a1481abf89b
  Author: Hans Petter Selasky <hselasky at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sbin/dhclient/dhclient.c

  Log Message:
  -----------
  dhclient(8): Verify lease-, renewal- and rebinding-time option sizes.

Else out-of-bound reads and undefined behaviour may happen.
The current code only checked for the presence of the first of four bytes.
Make sure the fields in question have the minium size required.

No functional change intended.

Reviewed by:	rrs@
Sponsored by:	NVIDIA Networking

(cherry picked from commit 3492caf512ae090816b4ffa275be43b2f5cfc460)


  Commit: 5608de1417851110ece3334e82ddc5843e20f185
      https://github.com/MidnightBSD/src/commit/5608de1417851110ece3334e82ddc5843e20f185
  Author: Vladimir Kondratyev <wulf at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c

  Log Message:
  -----------
  ng_ubt: Do not clear stall before receiving of HCI command response.

Unconditional execution of "clear feature" request at SETUP stage was
workaround for probe failures on ng_ubt.ko re-kldloading which is
unnecessary now.

Reviewed by:	hselasky
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D29775

(cherry picked from commit 52489f2a55e625ea35bccc3749ca3adad6ce0c54)


  Commit: 91918936c07feec5347c0bea9f4fcc483043d91f
      https://github.com/MidnightBSD/src/commit/91918936c07feec5347c0bea9f4fcc483043d91f
  Author: Vladimir Kondratyev <wulf at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c

  Log Message:
  -----------
  ng_ubt: Use DEFINE_CLASS_1 macro for kobj inheritance.

MFC after:	2 weeks

(cherry picked from commit d605d72948431d352455fc22b79a32a56ce00aaf)


  Commit: 86946301d46ab508f1b1310249e1b642314260ce
      https://github.com/MidnightBSD/src/commit/86946301d46ab508f1b1310249e1b642314260ce
  Author: Vladimir Kondratyev <wulf at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
    M sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c
    M sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h

  Log Message:
  -----------
  ng_ubt: Block attachment of uninitialized Intel Wireless 7265

As this controller requires firmware patch downloading to operate.
"Intel Wireless 7265" support in iwmbtfw(8) is yet to be done.

Tested by:	arrowd et al
PR:		228787
MFC after:	2 weeks

(cherry picked from commit 788a171c77760c2847b6433c5a914a304d0aa184)


  Commit: 823d7babd9ba1620c3c8e4e4bf108955fe754a1b
      https://github.com/MidnightBSD/src/commit/823d7babd9ba1620c3c8e4e4bf108955fe754a1b
  Author: Philippe Michaud-Boudreault <pitwuu at gmail.com>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c
    M usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c
    M usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h
    M usr.sbin/bluetooth/iwmbtfw/iwmbtfw.8
    M usr.sbin/bluetooth/iwmbtfw/iwmbtfw.conf
    M usr.sbin/bluetooth/iwmbtfw/main.c

  Log Message:
  -----------
  iwmbtfw(8): Add support for Intel 7260/7265 bluetooth adapter firmwares

To use it comms/iwmbt-firmware port should be updated to 20210315 version.

Submitted by:	Philippe Michaud-Boudreault <pitwuu at gmail.com>
Tested by:	Helge Oldach <freebsd at oldach.net>
Reviewed by:	wulf
PR:		228787
MFC after:	2 weeks

(cherry picked from commit fe70d7b26d7a98b17e315bc3455bee267c618b4e)


  Commit: ce74feee48d7d50dad21cf491a1ce44782a58bc4
      https://github.com/MidnightBSD/src/commit/ce74feee48d7d50dad21cf491a1ce44782a58bc4
  Author: Vladimir Kondratyev <wulf at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c
    M usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c
    M usr.sbin/bluetooth/iwmbtfw/main.c

  Log Message:
  -----------
  iwmbtfw(8): Improve Intel 7260/7265 adaptors handling

- Allow firmware downloading for hw_variant #8;
- Enter manufacturer mode for setting of event mask;
- Handle multi-event response on HCI commands for 7260;
  This allows to remove kludge with skipping of 0xfc2f opcode.
- Disable patch and exit manufacturer mode on downloading failure;
- Use default firmware if correct firmware file is not found;

Reviewed by:	Philippe Michaud-Boudreault <pitwuu_AT_gmail_DOT_com>
MFC after:	1 week
Tested by:	arrowd
Differential revision:	https://reviews.freebsd.org/D30543

(cherry picked from commit da93a73f834612b659b37b513c8296e1178d249b)


  Commit: 8ffb70a103a8a2590c27d98c22e2953bc96d6a93
      https://github.com/MidnightBSD/src/commit/8ffb70a103a8a2590c27d98c22e2953bc96d6a93
  Author: Pau Amma <pauamma at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man7/hier.7

  Log Message:
  -----------
  Remove disused /cdrom toplevel dir from hier(7).

While here, fix igor and mandoc -T lint low-hanging fruit in hier(7)

Reviewed by:	danfe (D37473), gjb (mentor)
Approved by:	gjb (mentor)
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D37472
Differential Revision:	https://reviews.freebsd.org/D37473

(cherry picked from commit 720e0e0ff1d3d47bd8a5a7bb23353e4b5da71048)
(cherry picked from commit 88be8b8e54797db2fc0c3134890d1918aea2c087)


  Commit: d3b6e1f8746622b523d19984b32c3052b23fdcca
      https://github.com/MidnightBSD/src/commit/d3b6e1f8746622b523d19984b32c3052b23fdcca
  Author: Pau Amma <pauamma at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M share/man/man5/resolver.5

  Log Message:
  -----------
  Update resolv.conf(5) "not necessary" language.

While there, fix mandoc -T lint warnings.

PR:		262492
Differential Revision:	https://reviews.freebsd.org/D37449
MFC after:	1 week
Reviewed by:	gjb
Approved by:	gjb (mentor)

(cherry picked from commit e8261bba4e18ab95fe958e195b07a66df1b8d855)

Clarify what's normally not required.

Reported by:	karels
Reviewed by:	carlavilla, karels (informally)
Approved by:	carlavilla (mentor), gjb (mentor, implicitly)
Differential Revision: https://reviews.freebsd.org/D37483

(cherry picked from commit 06703946d0be0baaf0f2a88f85e2dd5354e861da)


  Commit: 242c9c437774c4cac1c3ae0730e89422f7d502f6
      https://github.com/MidnightBSD/src/commit/242c9c437774c4cac1c3ae0730e89422f7d502f6
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/krb5/recvauth.c

  Log Message:
  -----------
  heimdal: The version string must always contain a terminating NUL

Should the sender send a string without a terminating NUL, ensure that
the NUL terminates the string regardless.

And while at it only process the version string when bytes are returned.

PR:		267884
Reported by:	Robert Morris <rtm at lcs.mit.edu>
Differential Revision:	https://reviews.freebsd.org/D37471

(cherry picked from commit d7e8666ffb9967a92709a2d2ded4d31568ab1473)


  Commit: 44b59dd1b15b838d765e8e61edb90144b24d1ab3
      https://github.com/MidnightBSD/src/commit/44b59dd1b15b838d765e8e61edb90144b24d1ab3
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/kadmin/server.c
    M crypto/heimdal/lib/kadm5/marshall.c

  Log Message:
  -----------
  heimdal: Fix NULL dereference when mangled realm message

Fix a NULL dereference in _kadm5_s_init_context() when the client
sends a mangled realm message.

PR:		267912
Reported by:	Robert Morris <rtm at lcs.mit.edu>

(cherry picked from commit 05bc50bdb1c1ddbbeb853ea4b184aced0eca9b3f)


  Commit: b83f8f25acc110e874a913e4e607fc29925c2928
      https://github.com/MidnightBSD/src/commit/b83f8f25acc110e874a913e4e607fc29925c2928
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/kadm5/marshall.c

  Log Message:
  -----------
  heimdal: Handle other types of garbage data

In addition to garbage realm data, also handle garbage dbname, acl_file,
stash_file, and invalid bitmask garbage data.

PR:		267912
Reported by:	Robert Morris <rtm at lcs.mit.edu>

(cherry picked from commit 91db848212e3b95cc689a1e8133a1d550b524919)


  Commit: 27927a2d69e67c7be235ffceffb1f0eb63f78f1b
      https://github.com/MidnightBSD/src/commit/27927a2d69e67c7be235ffceffb1f0eb63f78f1b
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/kadm5/marshall.c

  Log Message:
  -----------
  heimdal: Fix uninitialized pointer dereference

krb5_ret_preincipal() returns a non-zero return code when
a garbage principal is passed to it. Unfortunately ret_principal_ent()
does not check the return code, with garbage pointing to what would
have been the principal. This results in a segfault when free() is
called.

PR:		267944, 267972
Reported by:	Robert Morris <rtm at lcs.mit.edu>

(cherry picked from commit e13150e28c93d9e74f419dcd17d2e2bad41715ad)


  Commit: d26d9603e6c149b9bb0f382be0544cc319a1caa7
      https://github.com/MidnightBSD/src/commit/d26d9603e6c149b9bb0f382be0544cc319a1caa7
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/kadm5/marshall.c

  Log Message:
  -----------
  heimdal: Add missing kadm5 error checks

Generally obtained from upstream 655c057769f56bd8cdb7d16e93f1e7a7cb260342.

PR:		267944, 267972
Obtained from:	Heimdal commit 655c057769f56bd8cdb7d16e93f1e7a7cb260342

(cherry picked from commit 780f663df3a0fc30da5f0680c128087b1a05ea40)


  Commit: 682a4a56d57d4fce3124853c1fd2aca527477333
      https://github.com/MidnightBSD/src/commit/682a4a56d57d4fce3124853c1fd2aca527477333
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/kadm5/get_princs_s.c
    M crypto/heimdal/lib/kadm5/get_s.c
    M crypto/heimdal/lib/kadm5/rename_s.c

  Log Message:
  -----------
  heimdal: Add missing kadm5 error checks

Obtained from:	Heimdal commit 4a0e01f9edabe36d0f2cab188078dd29fa5aaf02

(cherry picked from commit 879b0e9cd2ada8f815e208d31feb4b7c05ba7e4a)


  Commit: 79b9904b45244c1e50c605335131e5a4c6907a2b
      https://github.com/MidnightBSD/src/commit/79b9904b45244c1e50c605335131e5a4c6907a2b
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/kadmin/server.c

  Log Message:
  -----------
  heimdal: Add missing kadmind error checks

Inspired by:	Heimdal commmit 1b213c1082be4ef5a1c23928d614c762f837dbe7

(cherry picked from commit 80999dcd5bdebd0beb2591a1de3f6db9767c0066)


  Commit: a1bd13dec018d47a22fca22a85b37ce233f3521a
      https://github.com/MidnightBSD/src/commit/a1bd13dec018d47a22fca22a85b37ce233f3521a
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/kadm5/iprop-log.c

  Log Message:
  -----------
  heimdal: Add missing iprop error checks.

Inspired by upstream 9d6dd21256f87988605fa75172be9cc92535064c.

Obtained from:	Heimdal 9d6dd21256f87988605fa75172be9cc92535064c

(cherry picked from commit 5040a7a9aa67861a095bae6edfbc67572cd24457)


  Commit: 0d64a2088d280f577bd54bf75e720e0d60e41f2c
      https://github.com/MidnightBSD/src/commit/0d64a2088d280f577bd54bf75e720e0d60e41f2c
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M crypto/heimdal/lib/kadm5/chpass_s.c
    M crypto/heimdal/lib/kadm5/delete_s.c

  Log Message:
  -----------
  heimdal: Check return code from _hdb_fetch_kvno()

A malformed principal will cause kadmind to segfault. The PR
addresses only when chpass is requested but delete is also affected.
Fix both.

PR:		268002
Reported by:	Robert Morris <rtm at lcs.mit.edu>

(cherry picked from commit 671f55828d038e17fb29fd115b88e7cdf53500c3)


Compare: https://github.com/MidnightBSD/src/compare/e0f44f242e97...0d64a2088d28



More information about the Midnightbsd-cvs mailing list