HardenedBSD/src cb98590lib/libc/stdlib div.3 ldiv.3

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+63-23lib/libc/stdlib/div.3
+0-76lib/libc/stdlib/ldiv.3
+49-23lib/libc/stdlib/abs.3
+0-71lib/libc/stdlib/lldiv.3
+0-71lib/libc/stdlib/imaxdiv.3
+0-64lib/libc/stdlib/labs.3
+112-32826 files not shown
+206-47732 files

HardenedBSD/src 0e0b6adlib/libc/stdlib div.3 ldiv.3

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+63-23lib/libc/stdlib/div.3
+0-76lib/libc/stdlib/ldiv.3
+49-23lib/libc/stdlib/abs.3
+0-71lib/libc/stdlib/lldiv.3
+0-71lib/libc/stdlib/imaxdiv.3
+0-64lib/libc/stdlib/labs.3
+112-32826 files not shown
+206-47732 files

DragonFlyBSD/src d842a1esbin/gpt show.c Makefile

gpt(8): Improve "show" command to print a disk summary line

Before print the partition entries, print a disk summary line like:
"Disk /dev/da0: 50.0GB (104857600 512-byte sectors)".

In addition, add a blank line between disks.

Example new output:
```
$ sudo gpt show /dev/da0 ad0
Disk /dev/da0: 50.0GB (104857600 512-byte sectors)
      start       size  index  contents
          0          1      -  PMBR
          1          1      -  Pri GPT header
          2         32      -  Pri GPT table
         34       2014      -  Unused
       2048     262144      0  GPT part - EFI System
     264192  104591360      1  GPT part - DragonFly Label64
  104855552       2015      -  Unused

    [14 lines not shown]
DeltaFile
+12-6sbin/gpt/show.c
+3-1sbin/gpt/Makefile
+15-72 files

DragonFlyBSD/src ff803d9etc/defaults uuids

etc: Sync entries from <sys/gpt.h>

Some of the GPT type names are derived from FreeBSD's gpart(8) man page.
DeltaFile
+60-11etc/defaults/uuids
+60-111 files

DragonFlyBSD/src 9df0696sbin/gpt show.c

gpt(8): Improve "show" command to print humanized size of partitions

Before:
Disk da0: 50.0GB (104857600 512-byte sectors)
      start       size  index  contents
          0          1      -  PMBR
          1          1      -  Pri GPT header
          2         32      -  Pri GPT table
         34       2014      -  Unused
       2048     262144      0  GPT part - EFI System
     264192  104591360      1  GPT part - DragonFly Label64
  104855552       2015      -  Unused
  104857567         32      -  Sec GPT table
  104857599          1      -  Sec GPT header

After:
Disk da0: 50.0GB (104857600 512-byte sectors)
      Start    Sectors    Size  Index  Contents
          0          1    512B      -  PMBR

    [8 lines not shown]
DeltaFile
+8-3sbin/gpt/show.c
+8-31 files

HardenedBSD/src 78463b5sys/compat/freebsd32 freebsd32_misc.c freebsd32.h, sys/sys abi_types.h abi_compat.h

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+15-66sys/compat/freebsd32/freebsd32_misc.c
+12-29sys/compat/freebsd32/freebsd32.h
+35-0sys/sys/abi_types.h
+6-4sys/sys/abi_compat.h
+1-5usr.bin/kdump/kdump.c
+4-2sys/sys/event.h
+73-1065 files not shown
+87-11611 files

HardenedBSD/ports 84f7c1cmultimedia/ab-av1 distinfo Makefile.crates, security/wazuh-agent/files patch-src_Makefile

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+65-67multimedia/ab-av1/distinfo
+31-32multimedia/ab-av1/Makefile.crates
+11-0security/wazuh-agent/files/patch-src_Makefile
+3-3www/R-cran-shiny/distinfo
+2-2www/R-cran-shiny/Makefile
+1-1multimedia/ab-av1/Makefile
+113-1056 files

DragonFlyBSD/src 3ed4e32sbin/gpt gpt.c

gpt(8): Print a warning message when gpt_write() fails

gpt_write() is used in many places and all of them don't handle the
writing failure, so update gpt_write() to print a warning message when
it fails.
DeltaFile
+3-0sbin/gpt/gpt.c
+3-01 files

DragonFlyBSD/src 1460767sbin/gpt gpt.c

gpt(8): Refactor utf8_to_utf16() to be better understandable

Credit: ChatGPT (https://chatgpt.com/)
DeltaFile
+49-50sbin/gpt/gpt.c
+49-501 files

DragonFlyBSD/src c795974sbin/gpt gpt.c

gpt(8): Fix surrogate pair handling bug in utf16_to_utf8()

* The old code mishandled surrogate pairs and thus failed to recognize
  valid UTF-16 characters and would replace them with 0xFFFD.  Fix the
  code to correctly handle the surrogate pairs.

* Fix an out-of-bound access in the old code when it tried to handle the
  surrogate pairs.  Check `s16idx < s16len` before accessing it with
  `le16toh(s16[s16idx])`.

* Remove the `if (utfchar < 0x200000)` branch, because it's impossible
  for `utfchar` exceeding 0x200000.

* Tweak the `while` loop conditional to clean up the code.

Credit: ChatGPT (https://chatgpt.com/)
DeltaFile
+25-15sbin/gpt/gpt.c
+25-151 files

DragonFlyBSD/src b517f3fsbin/gpt gpt.c gpt.h

gpt(8): Change utf8_to_utf16/utf16_to_utf8() to use 'char *'

Use 'char *' instead of 'uint8_t *' for NUL-terminated UTF-8 strings,
making it easier for callers.
DeltaFile
+19-17sbin/gpt/gpt.c
+2-2sbin/gpt/gpt.h
+2-2sbin/gpt/show.c
+1-1sbin/gpt/label.c
+24-224 files

FreeBSD/src 235cb4b. Makefile.inc1

Makefile.inc1: Allow safe installkernel with pkgbase

Commit 74a6bb524e5b added a check to install{world,kernel} to avoid
people accidentally running this on pkgbase systems and leaving their
system broken.  This had two issues:

(1) The warning was not sufficiently scary, leading people to think
    this was safe to do as long as they set DESTDIR=/.

(2) The installkernel check was too strict, and prevented installing
    kernels that don't conflict with packaged kernels.

Fix (1) by rewording the warning to be scarier, and while here, add
two new variables (ALLOW_PKGBASE_INSTALL{WORLD,KERNEL}) which could
be set in /etc/make.conf for people who want to break their systems
by default.

Fix (2) by improving the installkernel check to see if the kernel(s)
we're actually installing are packaged.  This means a new kernel can

    [12 lines not shown]
DeltaFile
+61-22Makefile.inc1
+61-221 files

FreeBSD/src 03c9ad3. Makefile.inc1

Makefile.inc1: Fix INSTALLEXTRAKERNELS for one-kernel case

If BUILDKERNELS contains a single kernel, and NO_INSTALLEXTRAKERNELS=no,
then ${BUILDKERNELS:[2..-1]} returns the first kernel in the list and
that kernel ends up in both INSTALLKERNEL and INSTALLEXTRAKERNELS.

This breaks the package build because it means we generate that package
twice, once with an incorrect install path of /boot/kernel.NAME instead
of /boot/kernel.

Only set INSTALLEXTRAKERNELS if we're building at least two kernels.

Fixes:  2c0e9a76c1ce ("Makefile.inc1: Make NO_INSTALLKERNEL less of a hack")
Reviewed by:    jrtc27
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D54539

(cherry picked from commit 0b298e314a8b47c1f2bf8a9ff86c050accbd744d)
DeltaFile
+3-1Makefile.inc1
+3-11 files

FreeBSD/src 6c0c5c0. Makefile.inc1

Makefile.inc1: Make NO_INSTALLKERNEL less of a hack

Rather than adding a dummy entry which requires everyone to know to skip
it, introduce a new INSTALLEXTRAKERNELS which contains the set of
kernels to install as kernel.KERNCONF.

Reviewed by:    ivy
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54291

(cherry picked from commit 2c0e9a76c1cee8766245a0b5bdad73e995b790c6)
DeltaFile
+20-14Makefile.inc1
+20-141 files

DragonFlyBSD/src 184a102sbin/gpt gpt.c

gpt(8): Fix bugs in utf8_to_utf16()

- The 'utfchar' was incorrectly reinitialized to zero on every loop
  iteration and thus destroyed the decoding state of multi-byte UTF-8
  sequences.  Fix it.
- Fix the endianness by adding the missing htole16() calls.

Obtained-from: NetBSD
DeltaFile
+7-5sbin/gpt/gpt.c
+7-51 files

DragonFlyBSD/src 6320fd3sbin/gpt gpt.c

gpt(8): Improve utf8_to_utf16()

- No need to NUL-terminate the UTF-16 string when it needs truncation.
- Pad the remaining characters with zeros. (obtained from NetBSD)
DeltaFile
+12-8sbin/gpt/gpt.c
+12-81 files

DragonFlyBSD/src 0bfd094sbin/gpt gpt.c show.c

gpt(8): Improve utf16_to_utf8()

- Let caller pass the buffer and thus avoid memory allocation.
- Handle the case that there is no NUL termination, i.e., the partition
  name is exactly 36 characters, which is allowed by the specification.

Obtained-from: NetBSD
DeltaFile
+22-14sbin/gpt/gpt.c
+6-3sbin/gpt/show.c
+1-1sbin/gpt/gpt.h
+29-183 files

FreeBSD/ports bd480f0multimedia/ab-av1 distinfo Makefile.crates

multimedia/ab-av1: update to 0.11.0

Changes:        https://github.com/alexheretic/ab-av1/releases/tag/v0.11.0
Reported by:    GitHub (watch releases)
DeltaFile
+65-67multimedia/ab-av1/distinfo
+31-32multimedia/ab-av1/Makefile.crates
+1-1multimedia/ab-av1/Makefile
+97-1003 files

HardenedBSD/ports bd480f0multimedia/ab-av1 distinfo Makefile.crates

multimedia/ab-av1: update to 0.11.0

Changes:        https://github.com/alexheretic/ab-av1/releases/tag/v0.11.0
Reported by:    GitHub (watch releases)
DeltaFile
+65-67multimedia/ab-av1/distinfo
+31-32multimedia/ab-av1/Makefile.crates
+1-1multimedia/ab-av1/Makefile
+97-1003 files

DragonFlyBSD/src 176e90asbin/gpt gpt.c

gpt(8): Fix gpt_read() to report partial read error

A partial read() wouldn't touch 'errno', so the caller was unable to
know the error reason.  This caused the program to print an error
message like:
```
gpt show: unable to open device 'vn4': Undefined error: 0
```

Fix gpt_read() to return E2BIG (I couldn't find a better choice) for a
partial read(), so the above error becomes:
```
gpt show: unable to open device 'vn4': Argument list too long
```

Still a bit weird, but better, I guess.
DeltaFile
+12-5sbin/gpt/gpt.c
+12-51 files

DragonFlyBSD/src 94f4175sbin/gpt gpt.c

gpt(8): Clear errno before retrying open() in gpt_open()

Otherwise, the stale errno would go through gpt_read() when it failed
with a partial read, and the program would print a weird error message
like:
```
gpt show: unable to open device 'vn4': No such file or directory
```

Suggested-by: swildner
DeltaFile
+1-0sbin/gpt/gpt.c
+1-01 files

DragonFlyBSD/src d6a39f6sbin/gpt add.c gpt.8

gpt(8): Improve '-s size' parsing and add '-a alignment' for "add" cmd

* Improve the '-s' size parsing to accept the following suffixes:
  - s, S: sectors
  - b, B: bytes
  - k, K: KB
  - m, M: MB
  - g, G: GB
  - t, T: TB
  - p, P: PB
* Add the '-a' option to specify a custom alignment for partition size
  and position.

Referred-to: NetBSD
DeltaFile
+122-9sbin/gpt/add.c
+39-16sbin/gpt/gpt.8
+161-252 files

DragonFlyBSD/src f097125sbin/gpt map.c add.c

gpt(8): Extend map_alloc() to accept a custom alignment

This is required to extend the "add" command to specify a custom
alignment.
DeltaFile
+33-20sbin/gpt/map.c
+5-2sbin/gpt/add.c
+4-2sbin/gpt/boot.c
+1-1sbin/gpt/map.h
+43-254 files

FreeBSD/src 863e710share/examples/etc make.conf, share/mk bsd.cpu.mk

powerpc: Update CPUTYPE options in make.conf

Document the supported PPC/POWER CPUTYPEs in the example make.conf.

Update bsd.cpu.mk to handle CPUs newer than POWER9, and remove
32-bit CPUTYPEs since we no longer support those at all.

Reviewed by:    imp, jhibbits
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D54257

(cherry picked from commit 665ac052aa04c4dc240d67c3c2166ac63e7f86eb)
DeltaFile
+6-12share/mk/bsd.cpu.mk
+6-1share/examples/etc/make.conf
+12-132 files

FreeBSD/src 34565ddsys/net if_bridge.c

bridge: Allow BRDGSIFVLANSET without IFBRF_VLANFILTER

Currently, we disallow BRDGSIFVLANSET when IFBRF_VLANFILTER is disabled.
There's no particular reason to do this, and it causes some undesirable
behaviour such as not being able to remove the tagged config on a member
after disabling vlanfilter on the bridge.

Remove the restriction so BRDGSIFVLANSET is always accepted.

PR:     292019
MFC after:      1 week
Reviewed by:    zlei, p.mousavizadeh_protonmail.com
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D54435

(cherry picked from commit 2e92aeede85c8986bd6f4dde65d2ac2449eccf51)
DeltaFile
+0-3sys/net/if_bridge.c
+0-31 files

FreeBSD/src 4e7fed5share/man/man7 freebsd-base.7

freebsd-base.7: Document the optional set

MFC after:      3 days
Reviewed by:    ziaee, emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D54065

(cherry picked from commit ce8dc5b12451e9922ab827dfe3d10abcd6e85165)
DeltaFile
+29-1share/man/man7/freebsd-base.7
+29-11 files

LLVM/project c04b00dlld/ELF Relocations.cpp, lld/ELF/Arch ARM.cpp

[ELF] Add target-specific relocation scanning for ARM (#182440)

Implement ARM::scanSectionImpl, following the pattern established for
AArch64 and other targets. This merges the getRelExpr and TLS handling
for SHF_ALLOC sections into the target-specific scanner, enabling
devirtualization and eliminating abstraction overhead.

- Inline relocation classification into scanSectionImpl with a switch
  on relocation type, replacing the generic rs.scan() path.
- Use processR_PC/processR_PLT_PC for common PC-relative and PLT
  relocations.
- Handle TLS inline: checkTlsLe for TLS LE, handleTlsIe<false> for
  TLS IE (no IE-to-LE optimization for ARM), and direct flag/reloc
  emission for TLS GD/LD (no GD/LD optimization for ARM).
- Set hasGotOffRel for R_GOTREL/R_GOTONLY_PC relocations.
- Simplify getRelExpr to only handle relocations needed by
  relocateNonAlloc and preprocessRelocs.
DeltaFile
+157-82lld/ELF/Arch/ARM.cpp
+4-4lld/ELF/Relocations.cpp
+161-862 files

FreeBSD/src 6881fd2release/scripts pkg-stage.sh

pkg-stage.sh: Add ext2 and ntfs

Having these packages available on release media may help users who
need to sneakernet other packages (e.g. firmware) from systems running
Linux or Windows.

Suggested by:   vladlen, ziaee
MFC after:      3 days
DeltaFile
+2-0release/scripts/pkg-stage.sh
+2-01 files

HardenedBSD/src 6881fd2release/scripts pkg-stage.sh

pkg-stage.sh: Add ext2 and ntfs

Having these packages available on release media may help users who
need to sneakernet other packages (e.g. firmware) from systems running
Linux or Windows.

Suggested by:   vladlen, ziaee
MFC after:      3 days
DeltaFile
+2-0release/scripts/pkg-stage.sh
+2-01 files

NetBSD/pkgsrc Dvuxg2Jdoc pkg-vulnerabilities

   doc: Update pkg-vulnerabilities for libvpx
VersionDeltaFile
1.734+2-1doc/pkg-vulnerabilities
+2-11 files