LLVM/project de0410aclang/lib/CodeGen CGStmt.cpp

fix: LoopFalse should be used.
DeltaFile
+1-1clang/lib/CodeGen/CGStmt.cpp
+1-11 files

NetBSD/pkgsrc 78WC1vllang/php85 Makefile Makefile.php

   lang/php5: fix build problem of php85-fpm

   Move PHP_PKGSRC_README from Makefile.php to Makefile.
VersionDeltaFile
1.2+4-1lang/php85/Makefile
1.2+1-4lang/php85/Makefile.php
+5-52 files

LLVM/project 71a77dc.github/workflows release-sources.yml, llvm/utils/release export.sh

workflows/release-sources: Disable building sub-project tarballs by default (#173441)

Sub-project tarbball creation has been disabled in the export.sh script
by default. It can be enabled by passing the --sub-project option. This
will not be used for official releases, but the option will allow users
to generate the sub-project tarballs themseleves if they want to.


https://discourse.llvm.org/t/rfc-do-something-with-the-subproject-tarballs-in-the-release-page/75024/

---------

Co-authored-by: Cullen Rhodes <cullen.rhodes at arm.com>
DeltaFile
+15-7llvm/utils/release/export.sh
+1-0.github/workflows/release-sources.yml
+16-72 files

NetBSD/src k9x3cV5usr.sbin/makefs ffs.c makefs.8, usr.sbin/makefs/ffs mkfs.c ffs_alloc.c

   makefs: add ffs version=0 for "newfs -O 0" compatible FFSv1 images

   Allow "makefs -t ffs -o version=0" to create FFSv1 images in the
   old on-disk format compatible with "newfs -O 0" (FFSv1 level 1),
   intended for systems with ancient boot ROM requirements like LUNA.

   This changes the FFSv1/FFSv2 selection to treat version 0 as FFSv1
   and generates old-format directory entries (no d_type) when
   version=0 is selected. The FFS mkfs parameters are adjusted so
   that version 0 does not get overridden by the default FFSv1 settings.

   Tested by generating FFS images with version=0, 1, and 2, and
   verifying them with fsck_ffs(8).  It's also confirmed that
   LUNA's boot ROM can load a bootloader from FFSv1 images generated
   with version=0.
VersionDeltaFile
1.78+59-26usr.sbin/makefs/ffs.c
1.43+43-12usr.sbin/makefs/ffs/mkfs.c
1.34+26-2usr.sbin/makefs/ffs/ffs_alloc.c
1.74+9-4usr.sbin/makefs/makefs.8
+137-444 files

NetBSD/src tvOu74Msys/dev/usb uaudio.c

   Also use atomic operation to store pipe pointers, not just to clear them.

   Probably fixes PR 56194.
VersionDeltaFile
1.185+12-5sys/dev/usb/uaudio.c
+12-51 files

FreeBSD/ports bfebe93multimedia/ringrtc/files patch-src__webrtc_src_rtc__base_cpu__info.cc

multimedia/ringrtc: Fix build on aarch64
DeltaFile
+24-0multimedia/ringrtc/files/patch-src__webrtc_src_rtc__base_cpu__info.cc
+24-01 files

NetBSD/src hEJZqVetests/usr.bin/xlint/lint1 c11_generic_expression.c, usr.bin/xlint/lint1 tree.c

   lint: fix _Generic expression evaluation, once again
VersionDeltaFile
1.23+6-2tests/usr.bin/xlint/lint1/c11_generic_expression.c
1.699+3-3usr.bin/xlint/lint1/tree.c
+9-52 files

OPNSense/src 28f6788sys/sys cdefs.h, tools/build/cross-build/include/common/sys cdefs.h

cdefs.h: Introduce __nonstring attribute

This attribute can be used to annotate char arrays that are not supposed to
be terminated with a NUL char and is needed to silence clang's new
-Wunterminated-string-initialization warning. The name matches linuxkpi.

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

(cherry picked from commit 802c6d5d61d15494a54a386dc2ffbcfefc68c8ab)
DeltaFile
+8-0tools/build/cross-build/include/common/sys/cdefs.h
+7-0sys/sys/cdefs.h
+15-02 files

NetBSD/src mrEMqKYusr.bin/xlint/lint1 tree.c

   lint: extract unconst_cast into separate function
VersionDeltaFile
1.698+13-7usr.bin/xlint/lint1/tree.c
+13-71 files

FreeBSD/ports cdca210net/amnezia-kmod distinfo Makefile

net/amnezia-kmod: update to v2.0.9

PR:             292310
Reported by:    Vladimir Grebenschikov <vova at zote.me> (maintainer)
DeltaFile
+3-3net/amnezia-kmod/distinfo
+1-1net/amnezia-kmod/Makefile
+4-42 files

OPNSense/src 46f807csys/netinet6 in6.c nd6_rtr.c

in6: modify address prefix lifetimes when updating address lifetimes

Taken from: https://reviews.freebsd.org/D54561
            https://reviews.freebsd.org/D54562
DeltaFile
+35-10sys/netinet6/in6.c
+7-31sys/netinet6/nd6_rtr.c
+2-0sys/netinet6/in6.h
+44-413 files

OPNSense/src 7c00cbbsys/netinet6 in6.h

IPv6: fix off-by-one in pltime and vltime expiration checks

Previously, the macros used '>' instead of '>=' when comparing elapsed
time against the preferred and valid lifetimes. This caused any deprecated
address to become usable again for one extra second after receiving each
Router Advertisement. In that short window, the address could be
selected as a source for outgoing connections.

Update the checks to use '>=' so that addresses are deprecated or
invalid when their lifetime expires.

PR:             289177
Reported by:    Dmitry Nexus <fbsd.4f6a at nexus tel>
Reviewed by:    zlei
Submitted by:   Marek Zarychta
Differential Revision:  https://reviews.freebsd.org/D52323

(cherry picked from commit 588a5fad3e8b98955b60707e3e92b8b43566e3f7)
DeltaFile
+2-2sys/netinet6/in6.h
+2-21 files

OPNSense/src 82bfc57sys/netinet6 in6.c

ipv6: don't complain when deleting an address with prefix length of 128

Save prefix length in unused field in6_ifaddr->ia_plen, then on remove
check if an address has 128 prefix length, and if so, we don't need to
complain that there is none of related prefixes.

Reviewed by:    kp
Obtained from:  Yandex LLC
Sponsored by:   Yandex LLC
Differential Revision:  https://reviews.freebsd.org/D52952

(cherry picked from commit c4cce0a3e94e3b22f874508d1a9cd81442648238)
DeltaFile
+7-7sys/netinet6/in6.c
+7-71 files

NetBSD/src qYHRZh9usr.bin/rs rs.c

   Avoid coredump when calculated output array exceeds input data size.
   Fixes PR 59903

   While here, resist attempt to understand or fix traditional behaviour.
VersionDeltaFile
1.18+6-3usr.bin/rs/rs.c
+6-31 files

OPNSense/src 4cccd67sbin/ifconfig af_inet6.c

ifconfig: Fix the -L flag when using netlink

By default, when ifconfig shows a v6 address derived from a
router-advertised prefix, it shows the initial preferred and valid
lifetimes.  When -L is specified, it is supposed to show the remaining
lifetimes, but this was broken in the conversion to netlink.

Fix that, and add a regression test which validates ifconfig output
before and after a short-lived address expires.

Reported by:    Franco Fichtner <franco at opnsense.org>
Reviewed by:    melifaro, allanjude, Seyed Pouria Mousavizadeh Tehrani
Fixes:          4c91a5dfe483 ("ifconfig: make interface and address listing use Netlink as transport")
MFC after:      2 weeks
Sponsored by:   OPNsense
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54294

(cherry picked from commit df6861d755c8f72380ae7fb8df535b27eba8c0be)
DeltaFile
+4-2sbin/ifconfig/af_inet6.c
+4-21 files

OPNSense/src 3c7008csbin/ifconfig af_inet6.c

Revert "ifconfig: bring back -L for netlink"

This reverts commit dfaffde6f9744e11d2022851e09d2b5934d522e5.
DeltaFile
+2-2sbin/ifconfig/af_inet6.c
+2-21 files

OPNSense/src 8500bc7sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: Use IfAPI to get LLADDR

Reviewed by:    bz, emaste
Differential Revision: https://reviews.freebsd.org/D47525

(cherry picked from commit 57609cb2de149a3c99c43e98d37cfa4784958f73)
DeltaFile
+1-1sys/compat/linuxkpi/common/src/linux_80211.c
+1-11 files

OPNSense/src a34a18bsys/dev/bnxt/bnxt_re ib_verbs.c bnxt_re.h

bnxt: Use IfAPI accessors where able

Summary:
Don't directly access ifnet members, it's a private structure.

Sponsored by:   Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D47353

(cherry picked from commit 84d7ec4c657f406c6cbd29baf32c8e057b663d17)
DeltaFile
+3-3sys/dev/bnxt/bnxt_re/ib_verbs.c
+2-2sys/dev/bnxt/bnxt_re/bnxt_re.h
+2-2sys/dev/bnxt/bnxt_re/main.c
+7-73 files

OPNSense/src 0e8eaf3sys/netlink/route iface.c

netlink: Don't directly access ifnet members

Summary:
Remove the final direct access of struct ifnet members from netlink.
Since only the first address is used, create the iterator and then free,
without fully iterating.

Reviewed By:    kp
Sponsored by:   Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D42972

(cherry picked from commit b224af946a17b8e7a7b4942157556b5bc86dd6fb)
DeltaFile
+3-1sys/netlink/route/iface.c
+3-11 files

OPNSense/src 806f3b6sys/netlink netlink_snl.h

netlink: Don't overwrite existing data in a linear buffer in snl_writer

First, a bit of background on some of the data structures netlink uses
to manage data associated with a netlink connection.

- struct linear_buffer contains a single virtually-contiguous buffer
  of bytes.  Regions of this buffer are suballocated via lb_allocz()
  which uses a simple "bump" where the buffer is split into an
  allocated region at the start and a free region at the end.  Each
  allocation "bumps" the boundary (lb->offset) forward by the
  allocation size.

  Individual allocations are not freed.  Instead, the entire buffer is
  freed once all of the allocations are no longer in use.

  Linear buffers also contain an embedded link to permit chaining
  buffers together.

- snl_state contains various state for a netlink connection including

    [52 lines not shown]
DeltaFile
+9-11sys/netlink/netlink_snl.h
+9-111 files

OPNSense/src 53fff82tools/build/mk OptionalObsoleteFiles.inc, usr.sbin/bsdinstall/scripts mount_aux mount

bsdinstall: Mount /dev and /packages after using the shell to partition disks

Normally after partitions are created by the installer, the 'mount'
script is used to mount the target disk partitions under /mnt.  The
tail end of this script also mounts a couple of additional filesystems
under /mnt so that chrooted programs can work such as devfs and
/packages.

When the "Shell" option is used to permit the user to manually mount
the destination filesystem, the "mount" script is not used as the user
is instructed to mount the target filesystems and construct
/mnt/etc/fstab, etc.  However, this means that the user is responsible
for mounting devfs (which is not included in /etc/fstab) and /packages
as well.  The help message for the "Shell" option doesn't mention
these requirements, so users may not know to do so.  This can lead to
confusing errors as chrooted commands can fail to find needed /dev
entries.  For example, running fwget to fetch wireless firmware fails
because /dev/pci doesn't exist.


    [12 lines not shown]
DeltaFile
+39-0usr.sbin/bsdinstall/scripts/mount_aux
+1-9usr.sbin/bsdinstall/scripts/mount
+1-0usr.sbin/bsdinstall/scripts/auto
+1-0tools/build/mk/OptionalObsoleteFiles.inc
+1-0usr.sbin/bsdinstall/scripts/Makefile
+43-95 files

OPNSense/src 042e296sys/dev/ixgbe ixgbe_e610.c

ixgbe: Remove unused function ixgbe_is_media_cage_present

Remove the unused function ixgbe_is_media_cage_present that
generates a compiler warning.

Signed-off-by: Yogesh Bhosale yogesh.bhosale at intel.com

Reported by:    markj
Differential Revision:  https://reviews.freebsd.org/D52467

(cherry picked from commit 275f7d72ff6a71bbe46b4282a88f0ea9a24be22a)
DeltaFile
+0-34sys/dev/ixgbe/ixgbe_e610.c
+0-341 files

OPNSense/src 8a533ffsys/compat/linuxkpi/common/include/linux compiler.h, sys/sys cdefs.h

cdefs: Add __deprecated

Add __deprecated decorator. This is for a deprecated interface. copystr
is tagged with this today in copy(9), but don't actually provide it or
use it. copystr is a #define so adding it will have to wait.

LinuxKPI was defining this away completely in compiler.h. Since this is
shared between Linux KPI consumers and OpenZFS, if it's already defined,
use the FreeBSD sys/cdefs.h version, otherwise define it away. For
OpenZFS this will retain it, while for Linux KPI it will tend to drop it
(I think always, but I didn't look at everything).

Sponsored by:           Netflix
Reviewed by:            jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D46137

(cherry picked from commit 16672453f12586703f1c51d909bd1900691bf884)
DeltaFile
+2-0sys/compat/linuxkpi/common/include/linux/compiler.h
+1-0sys/sys/cdefs.h
+3-02 files

OPNSense/src e73a8ddcontrib/kyua/doc kyua-report.1.in kyua-db-exec.1.in

kyua manuals: Correct --results-file short form

PR:             290647
Ref:            kyua/cli/common.cpp#104
MFC after:      3 days
Reviewed by:    ziaee
Closes:         https://github.com/freebsd/kyua/issues/267

(cherry picked from commit bbaa7d628175ee484e31a054fb3cf7b7866cad13)
DeltaFile
+1-1contrib/kyua/doc/kyua-report.1.in
+1-1contrib/kyua/doc/kyua-db-exec.1.in
+1-1contrib/kyua/doc/kyua-db-migrate.1.in
+1-1contrib/kyua/doc/kyua-report-html.1.in
+1-1contrib/kyua/doc/kyua-report-junit.1.in
+1-1contrib/kyua/doc/kyua-test.1.in
+6-66 files

OPNSense/src b8efad0sbin/ipfw ipfw.8

ipfw.8: fix documentation bug for setmark

A mark set with "setmark" keyword is intended to be "sticky"
and documented as such but in fact it is not yet,
as current implementation lacks "sticky" feature
and its implementation will be not MFC'd, most probably.

Correct the manual page until the implementation improved.

Discussed with: Boris Lytochkin <lytboris at gmail.com> (author)

(cherry picked from commit a7b8a5d37bcb0009297962137bfb6c6570e5af12)
(cherry picked from commit 9fdf49e8a501047b61a615ab1b4b133159ad76e1)
DeltaFile
+6-2sbin/ipfw/ipfw.8
+6-21 files

OPNSense/src a325b21sbin/ipfw ipfw.8

MFC: ipfw.8: document how to delete nat configuration instance

(cherry picked from commit e51047118cb1d15abe8077a5b47b8063fa364ad9)
DeltaFile
+15-1sbin/ipfw/ipfw.8
+15-11 files

OPNSense/src 448eec1sys/crypto/chacha20 chacha.c

crypto: avoid warnings about too-long initializer strings

Mark `sigma` and `tau` as `__non_string`, to avoid warnings from clang
21 similar to:

    sys/crypto/chacha20/chacha.c:53:31: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       53 | static const char sigma[16] = "expand 32-byte k";
          |                               ^~~~~~~~~~~~~~~~~~
    sys/crypto/chacha20/chacha.c:54:29: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       54 | static const char tau[16] = "expand 16-byte k";
          |                             ^~~~~~~~~~~~~~~~~~

MFC after:      3 days
Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D54364

(cherry picked from commit 710ec409dffed3306ced253bba85dbdc7758510b)
DeltaFile
+2-2sys/crypto/chacha20/chacha.c
+2-21 files

OPNSense/src 8c06422sys/dev/netmap netmap_mem2.c

netmap: Let memory allocator parameters be settable via loader.conf

This is useful when dev.netmap.port_numa_affinity is set to 1.  When
interfaces attach, they get a memory allocator that is copied from
nm_mem.  Parameters in nm_mem can be set using sysctls, but this happens
after their values are copied.

To work around this, we can make it possible to set these memory
parameters as tunables.

Reviewed by:    vmaffione
MFC after:      1 week
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54178

(cherry picked from commit c694122f3cfb7d52b882fa79086d49f45a2c7fd2)
DeltaFile
+19-15sys/dev/netmap/netmap_mem2.c
+19-151 files

OPNSense/src fedc41csys/net pfvar.h, sys/netpfil/pf pf_ioctl.c if_pfsync.c

pfsync: Avoid zeroing the state export union

pfsync_state_export() takes a pointer to a union that is in reality a
pointer to one of the three state formats (1301, 1400, 1500), and zeros
the union.  The three formats do not have the same size, so zeroing is
wrong when the format isn't that which has the largest size.

Refactor a bit so that the zeroing happens at the layer where we know
which format we're dealing with.

Reported by:    CHERI
Reviewed by:    kp
MFC after:      1 week
Sponsored by:   CHERI Research Centre (EPSRC grant UKRI3001)
Differential Revision:  https://reviews.freebsd.org/D54163

(cherry picked from commit 796abca7e281f0d4b7f72f48da4f941e1c8b139c)
DeltaFile
+19-7sys/netpfil/pf/pf_ioctl.c
+6-4sys/netpfil/pf/if_pfsync.c
+4-2sys/net/pfvar.h
+29-133 files

NetBSD/pkgsrc PGBXyt9math/mtl Makefile

   mtl: comment out dead site
VersionDeltaFile
1.15+3-3math/mtl/Makefile
+3-31 files