From noreply at github.com  Thu Sep 19 10:34:28 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 07:34:28 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] e5b923: add nproc,
 a gnu coreutils clone utility.
Message-ID: <MidnightBSD/src/push/refs/heads/master/965fa7-e5b923@github.com>

  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: e5b923172c4932a672b43c50e1635cbba2cba015
      https://github.com/MidnightBSD/src/commit/e5b923172c4932a672b43c50e1635cbba2cba015
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M bin/Makefile
    A bin/nproc/Makefile
    A bin/nproc/nproc.1
    A bin/nproc/nproc.c

  Log Message:
  -----------
  add nproc, a gnu coreutils clone utility.

Obtained from: FreeBSD 14



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:42:08 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:42:08 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] f20194: add nproc,
 a gnu coreutils clone utility.
Message-ID: <MidnightBSD/src/push/refs/heads/stable/3.2/2a83e0-f20194@github.com>

  Branch: refs/heads/stable/3.2
  Home:   https://github.com/MidnightBSD/src
  Commit: f20194e7c9fa06eb4b687a91c1d7c40d5488f96b
      https://github.com/MidnightBSD/src/commit/f20194e7c9fa06eb4b687a91c1d7c40d5488f96b
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M bin/Makefile
    A bin/nproc/Makefile
    A bin/nproc/nproc.1
    A bin/nproc/nproc.c

  Log Message:
  -----------
  add nproc, a gnu coreutils clone utility.

Obtained from: FreeBSD 14



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:44:09 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:44:09 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] 61f33a: libalias: fix subtle
 racy problem in outside-insid...
Message-ID: <MidnightBSD/src/push/refs/heads/master/e5b923-61f33a@github.com>

  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 61f33ac08188dda11eff931b92067ccd718bd0c6
      https://github.com/MidnightBSD/src/commit/61f33ac08188dda11eff931b92067ccd718bd0c6
  Author: Eugene Grosbein <eugen at FreeBSD.org>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M sys/netinet/libalias/alias_db.c

  Log Message:
  -----------
  libalias: fix subtle racy problem in outside-inside forwarding

sys/netinet/libalias/alias_db.c has internal static function UseLink()
that passes a link to CleanupLink() to verify if the link has expired.
If so, UseLink() may return NULL.

_FindLinkIn()'s usage of UseLink() is not quite correct.

Assume there is "redirect_port udp" configured to forward incoming
traffic for specific port to some internal address.
Such a rule creates partially specified permanent link.

After first such incoming packet libalias creates new fully specified
temporary LINK_UDP with default timeout of 60 seconds.
Also, in case of low traffic libalias may assign "timestamp"
for this new temporary link way in the past because
LibAliasTime is updated seldom and can keep old value
for tens of seconds, and it will be used for the temporary link.

It may happen that next incoming packet for redirected port
passed to _FindLinkIn() results in a call to UseLink()
that returns NULL due to detected expiration.
Immediate return of NULL results in broken translation:
either a packet is dropped (deny_incoming mode) or delivered to
original destination address instead of internal one.

Fix it with additional check for NULL to proceed with a search
for original partially specified link. In case of UDP,
it also recreates temporary fully specified link
with a call to ReLink().

Practical examples are "redirect_port udp" rules for unidirectional
SYSLOG protocol (port 514) or some low volume VPN encapsulated in UDP.

Thanks to Peter Much for initial analysis and first version of a patch.

Reported by:	Peter Much <pmc at citylink.dinoex.sub.org>
PR:		269770

(cherry picked from commit 8132e959099f0c533f698d8fbc17386f9144432f)
(cherry picked from commit e5b85380836378c9e321a4e6d300591e6faf622a)



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:45:36 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:45:36 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] 0ecf21: libalias: fix subtle
 racy problem in outside-insid...
Message-ID: <MidnightBSD/src/push/refs/heads/stable/3.2/f20194-0ecf21@github.com>

  Branch: refs/heads/stable/3.2
  Home:   https://github.com/MidnightBSD/src
  Commit: 0ecf21937c53d016c7fa00284fa972015feb4909
      https://github.com/MidnightBSD/src/commit/0ecf21937c53d016c7fa00284fa972015feb4909
  Author: Eugene Grosbein <eugen at FreeBSD.org>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M sys/netinet/libalias/alias_db.c

  Log Message:
  -----------
  libalias: fix subtle racy problem in outside-inside forwarding

sys/netinet/libalias/alias_db.c has internal static function UseLink()
that passes a link to CleanupLink() to verify if the link has expired.
If so, UseLink() may return NULL.

_FindLinkIn()'s usage of UseLink() is not quite correct.

Assume there is "redirect_port udp" configured to forward incoming
traffic for specific port to some internal address.
Such a rule creates partially specified permanent link.

After first such incoming packet libalias creates new fully specified
temporary LINK_UDP with default timeout of 60 seconds.
Also, in case of low traffic libalias may assign "timestamp"
for this new temporary link way in the past because
LibAliasTime is updated seldom and can keep old value
for tens of seconds, and it will be used for the temporary link.

It may happen that next incoming packet for redirected port
passed to _FindLinkIn() results in a call to UseLink()
that returns NULL due to detected expiration.
Immediate return of NULL results in broken translation:
either a packet is dropped (deny_incoming mode) or delivered to
original destination address instead of internal one.

Fix it with additional check for NULL to proceed with a search
for original partially specified link. In case of UDP,
it also recreates temporary fully specified link
with a call to ReLink().

Practical examples are "redirect_port udp" rules for unidirectional
SYSLOG protocol (port 514) or some low volume VPN encapsulated in UDP.

Thanks to Peter Much for initial analysis and first version of a patch.

Reported by:	Peter Much <pmc at citylink.dinoex.sub.org>
PR:		269770

(cherry picked from commit 8132e959099f0c533f698d8fbc17386f9144432f)
(cherry picked from commit e5b85380836378c9e321a4e6d300591e6faf622a)



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:47:01 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:47:01 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/tzdata/2018e/633393-000000@github.com>

  Branch: refs/heads/vendor/tzdata/2018e
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:47:07 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:47:07 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/tzdata/2016f/3af156-000000@github.com>

  Branch: refs/heads/vendor/tzdata/2016f
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:47:12 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:47:12 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/tzdata/2015d/eacbd7-000000@github.com>

  Branch: refs/heads/vendor/tzdata/2015d
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:47:25 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:47:25 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/tzdata/2014i/52088b-000000@github.com>

  Branch: refs/heads/vendor/tzdata/2014i
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:47:30 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:47:30 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/tzdata/2012j/987a6b-000000@github.com>

  Branch: refs/heads/vendor/tzdata/2012j
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:48:56 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:48:56 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/xz/4.999.9/3e21e5-000000@github.com>

  Branch: refs/heads/vendor/xz/4.999.9
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:49:03 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:49:03 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/xz/5.0.1/439fd7-000000@github.com>

  Branch: refs/heads/vendor/xz/5.0.1
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:49:07 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:49:07 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/xz/5.0.3/8b399f-000000@github.com>

  Branch: refs/heads/vendor/xz/5.0.3
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:49:12 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:49:12 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/xz/5.0.4/ae7872-000000@github.com>

  Branch: refs/heads/vendor/xz/5.0.4
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:49:17 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:49:17 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/xz/5.0.7/d4982a-000000@github.com>

  Branch: refs/heads/vendor/xz/5.0.7
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:49:22 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:49:22 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/xz/5.0.8/e66284-000000@github.com>

  Branch: refs/heads/vendor/xz/5.0.8
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:49:50 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:49:50 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/xz/5.2.2/f17f13-000000@github.com>

  Branch: refs/heads/vendor/xz/5.2.2
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:49:55 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:49:55 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/xz/5.2.3/b42c64-000000@github.com>

  Branch: refs/heads/vendor/xz/5.2.3
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:52:37 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:52:37 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/perl/5.10.0/110241-000000@github.com>

  Branch: refs/heads/vendor/perl/5.10.0
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:52:41 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:52:41 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/perl/5.10.1/bc64eb-000000@github.com>

  Branch: refs/heads/vendor/perl/5.10.1
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:52:46 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:52:46 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/perl/5.14.0/83a314-000000@github.com>

  Branch: refs/heads/vendor/perl/5.14.0
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:52:51 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:52:51 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/perl/5.26.0/be00d8-000000@github.com>

  Branch: refs/heads/vendor/perl/5.26.0
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:59:12 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:59:12 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] 01ab70: ums(4): fix incorrect
 mouse button press using evdev.
Message-ID: <MidnightBSD/src/push/refs/heads/master/61f33a-01ab70@github.com>

  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 01ab70fcea9c91dd706a89f5fc1cb61498471fe3
      https://github.com/MidnightBSD/src/commit/01ab70fcea9c91dd706a89f5fc1cb61498471fe3
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M sys/dev/usb/input/ums.c

  Log Message:
  -----------
  ums(4): fix incorrect mouse button press using evdev.



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 21:59:47 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 18:59:47 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] f2c25c: ums(4): fix incorrect
 mouse button press using evdev.
Message-ID: <MidnightBSD/src/push/refs/heads/stable/3.2/0ecf21-f2c25c@github.com>

  Branch: refs/heads/stable/3.2
  Home:   https://github.com/MidnightBSD/src
  Commit: f2c25c9512a01a68a0438c380b7a1c2022a7f814
      https://github.com/MidnightBSD/src/commit/f2c25c9512a01a68a0438c380b7a1c2022a7f814
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M sys/dev/usb/input/ums.c

  Log Message:
  -----------
  ums(4): fix incorrect mouse button press using evdev.



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Thu Sep 19 22:07:59 2024
From: noreply at github.com (Lucas Holt)
Date: Thu, 19 Sep 2024 19:07:59 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] 3a6209: bhyve can be configured
 to emulate devices on a vi...
Message-ID: <MidnightBSD/src/push/refs/heads/feature/bhyvefix/000000-3a6209@github.com>

  Branch: refs/heads/feature/bhyvefix
  Home:   https://github.com/MidnightBSD/src
  Commit: 3a6209dee1473f6a389e06719e23a505246cc617
      https://github.com/MidnightBSD/src/commit/3a6209dee1473f6a389e06719e23a505246cc617
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

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

  Log Message:
  -----------
  bhyve can be configured to emulate devices on a virtual USB controller (XHCI),
such as USB tablet devices.  An insufficient boundary validation in the USB
code could lead to an out-of-bounds read on the heap, which could potentially
lead to an arbitrary write and remote code execution.

Obtained from: FreeBSD



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Fri Sep 20 11:07:40 2024
From: noreply at github.com (Lucas Holt)
Date: Fri, 20 Sep 2024 08:07:40 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src]
Message-ID: <MidnightBSD/src/push/refs/heads/vendor/tzcode/2012j/da1590-000000@github.com>

  Branch: refs/heads/vendor/tzcode/2012j
  Home:   https://github.com/MidnightBSD/src

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Fri Sep 20 11:13:51 2024
From: noreply at github.com (Lucas Holt)
Date: Fri, 20 Sep 2024 08:13:51 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] a8212d: bump version
Message-ID: <MidnightBSD/src/push/refs/heads/stable/3.2/f2c25c-a8212d@github.com>

  Branch: refs/heads/stable/3.2
  Home:   https://github.com/MidnightBSD/src
  Commit: a8212d6bacc407e08e12601db4ae1fe40fe03bb7
      https://github.com/MidnightBSD/src/commit/a8212d6bacc407e08e12601db4ae1fe40fe03bb7
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2024-09-20 (Fri, 20 Sep 2024)

  Changed paths:
    M sys/conf/newvers.sh

  Log Message:
  -----------
  bump version



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Fri Sep 20 11:16:06 2024
From: noreply at github.com (Lucas Holt)
Date: Fri, 20 Sep 2024 08:16:06 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] befb59: document recent changes.
Message-ID: <MidnightBSD/src/push/refs/heads/stable/3.2/a8212d-befb59@github.com>

  Branch: refs/heads/stable/3.2
  Home:   https://github.com/MidnightBSD/src
  Commit: befb591d184aa9586afd9e8fb1aed79747a10ce9
      https://github.com/MidnightBSD/src/commit/befb591d184aa9586afd9e8fb1aed79747a10ce9
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2024-09-20 (Fri, 20 Sep 2024)

  Changed paths:
    M UPDATING

  Log Message:
  -----------
  document recent changes.



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications

From noreply at github.com  Sun Sep 22 10:28:31 2024
From: noreply at github.com (Lucas Holt)
Date: Sun, 22 Sep 2024 07:28:31 -0700
Subject: [Midnightbsd-cvs] [MidnightBSD/src] ddab4f: A malicious value of
 size in a structure of packed...
Message-ID: <MidnightBSD/src/push/refs/heads/master/01ab70-ddab4f@github.com>

  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: ddab4ffce9ba63bfd31b7d0668c8d4671bcb60d7
      https://github.com/MidnightBSD/src/commit/ddab4ffce9ba63bfd31b7d0668c8d4671bcb60d7
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2024-09-22 (Sun, 22 Sep 2024)

  Changed paths:
    M sys/contrib/libnv/nvlist.c

  Log Message:
  -----------
  A malicious value of size in a structure of packed libnv can cause an integer
overflow, leading to the allocation of a smaller buffer than required for the
parsed data. The introduced check was incorrect, as it took into account the
size of the pointer, not the structure. This vulnerability affects both
kernel and userland.



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications