LLVM/project 5dd2b06clang-tools-extra/clang-tidy/utils FormatStringConverter.cpp, clang-tools-extra/docs ReleaseNotes.rst

[clang-tidy] Fix OOB access in `FormatStringConverter` with signed chars (#169215)

`FormatStringConverter::appendFormatText` incorrectly treated non-ASCII
characters (e.g. UTF-8) as negative values when using signed chars. This
caused them to pass the `< 32` check for control characters.

The negative values were passed to `llvm::hexdigit`, resulting in an OOB
access and a crash.

This closes
[#169198](https://github.com/llvm/llvm-project/issues/169198)
DeltaFile
+12-0clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print.cpp
+4-3clang-tools-extra/docs/ReleaseNotes.rst
+4-3clang-tools-extra/clang-tidy/utils/FormatStringConverter.cpp
+2-0clang-tools-extra/test/clang-tidy/check_clang_tidy.py
+22-64 files

NetBSD/src VkF1392sys/arch/x86/x86 consinit.c, sys/dev/usb ucom.c ucomvar.h

   console support for ucom(4)

   console over ucom(4) is enabled by using "kconsdev ucom0" in boot prompt
   or in boot.cfg. Speed defaults to 115200, but can be specified like this:
   "kconsdev uom0,19200"

   Early boot is silent, until ucom(4) gets attached.
   boot -a and DDB are supported and work well on real hardware
   In Qemu, DDB works, but boot -a randomly hangs on prompts

   This contribution sticks to existing USB stack practice of skipping
   locks when polling. riastradh@ asked for improvement here, but adressing
   this requires a larger rework than just ucom(4) console code.
VersionDeltaFile
1.150+820-44sys/dev/usb/ucom.c
1.44+19-2sys/arch/x86/x86/consinit.c
1.27+2-1sys/dev/usb/ucomvar.h
+841-473 files

NetBSD/src ASTNdhvdistrib/sets/lists/tests mi, etc/mtree NetBSD.dist.tests

   Update set lists for new diff tests.
VersionDeltaFile
1.1402+41-1distrib/sets/lists/tests/mi
1.212+2-1etc/mtree/NetBSD.dist.tests
+43-22 files

HardenedBSD/src 409913eetc/mtree BSD.usr.dist BSD.lib32.dist, share/man/man3 unreachable.3

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+23-2share/man/man4/umass.4
+2-2etc/mtree/BSD.usr.dist
+2-2etc/mtree/BSD.lib32.dist
+1-1sys/sys/_types.h
+1-0share/man/man3/unreachable.3
+29-75 files

HardenedBSD/src 488a29dshare/man/man4 ix.4, sys/dev/e1000 if_em.c

Merge branch 'freebsd/14-stable/main' into hardened/14-stable/master
DeltaFile
+521-0sys/dev/ixgbe/if_ix.c
+29-26usr.bin/beep/beep.1
+52-0sys/dev/ixgbe/ixgbe.h
+20-14sys/dev/e1000/if_em.c
+32-1share/man/man4/ix.4
+11-10usr.bin/beep/beep.c
+665-511 files not shown
+666-517 files

HardenedBSD/src 5cfa2d2share/man/man4 ix.4, sys/dev/e1000 if_em.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+521-0sys/dev/ixgbe/if_ix.c
+29-26usr.bin/beep/beep.1
+52-0sys/dev/ixgbe/ixgbe.h
+20-14sys/dev/e1000/if_em.c
+30-0tests/sys/netpfil/pf/nat.sh
+29-0share/man/man4/ix.4
+681-403 files not shown
+705-549 files

HardenedBSD/ports b980163audio/ncspot distinfo Makefile.crates, audio/spotifyd distinfo Makefile.crates

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+559-549audio/spotifyd/distinfo
+389-389audio/ncspot/distinfo
+278-273audio/spotifyd/Makefile.crates
+287-181devel/git-graph/distinfo
+217-227www/hurl/distinfo
+194-194audio/ncspot/Makefile.crates
+1,924-1,81324 files not shown
+2,657-2,48130 files

Linux/linux 19eef1dfs/afs security.c

afs: Fix uninit var in afs_alloc_anon_key()

Fix an uninitialised variable (key) in afs_alloc_anon_key() by setting it
to cell->anonymous_key.  Without this change, the error check may return a
false failure with a bad error number.

Most of the time this is unlikely to happen because the first encounter
with afs_alloc_anon_key() will usually be from (auto)mount, for which all
subsequent operations must wait - apart from other (auto)mounts.  Once the
call->anonymous_key is allocated, all further calls to afs_request_key()
will skip the call to afs_alloc_anon_key() for that cell.

Fixes: d27c71257825 ("afs: Fix delayed allocation of a cell's anonymous key")
Reported-by: Paulo Alcantra <pc at manguebit.org>
Signed-off-by: David Howells <dhowells at redhat.com>
Reviewed-by: Paulo Alcantara <pc at manguebit.org>
cc: Marc Dionne <marc.dionne at auristor.com>
cc: syzbot+41c68824eefb67cdf00c at syzkaller.appspotmail.com
cc: linux-afs at lists.infradead.org

    [2 lines not shown]
DeltaFile
+2-1fs/afs/security.c
+2-11 files

FreeBSD/src 8d338f9usr.bin/beep beep.1 beep.c

beep: Sort usage and man page options

Sort usage and man page options, mention possible minimum and maximum
values, fix punctuation marks, and cleanup the man page.

PR:             291092
Reviewed by:    pauamma_gundo.com, christos
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53827

(cherry picked from commit 55d98b024f25403f60efe04f90a391014b6bc388)
DeltaFile
+29-26usr.bin/beep/beep.1
+11-10usr.bin/beep/beep.c
+40-362 files

FreeBSD/src 4c10ec9usr.bin/beep beep.1 beep.c

beep: Sort usage and man page options

Sort usage and man page options, mention possible minimum and maximum
values, fix punctuation marks, and cleanup the man page.

PR:             291092
Reviewed by:    pauamma_gundo.com, christos
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53827

(cherry picked from commit 55d98b024f25403f60efe04f90a391014b6bc388)
DeltaFile
+29-26usr.bin/beep/beep.1
+11-10usr.bin/beep/beep.c
+40-362 files

HardenedBSD/src 4c10ec9usr.bin/beep beep.1 beep.c

beep: Sort usage and man page options

Sort usage and man page options, mention possible minimum and maximum
values, fix punctuation marks, and cleanup the man page.

PR:             291092
Reviewed by:    pauamma_gundo.com, christos
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53827

(cherry picked from commit 55d98b024f25403f60efe04f90a391014b6bc388)
DeltaFile
+29-26usr.bin/beep/beep.1
+11-10usr.bin/beep/beep.c
+40-362 files

FreeBSD/src 6bda365usr.bin/beep beep.1 beep.c

beep: Sort usage and man page options

Sort usage and man page options, mention possible minimum and maximum
values, fix punctuation marks, and cleanup the man page.

PR:             291092
Reviewed by:    pauamma_gundo.com, christos
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53827

(cherry picked from commit 55d98b024f25403f60efe04f90a391014b6bc388)
DeltaFile
+29-26usr.bin/beep/beep.1
+11-10usr.bin/beep/beep.c
+40-362 files

HardenedBSD/src 6bda365usr.bin/beep beep.1 beep.c

beep: Sort usage and man page options

Sort usage and man page options, mention possible minimum and maximum
values, fix punctuation marks, and cleanup the man page.

PR:             291092
Reviewed by:    pauamma_gundo.com, christos
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53827

(cherry picked from commit 55d98b024f25403f60efe04f90a391014b6bc388)
DeltaFile
+29-26usr.bin/beep/beep.1
+11-10usr.bin/beep/beep.c
+40-362 files

FreeBSD/src 3d91a74etc/mtree BSD.lib32.dist BSD.usr.dist

mtree: Keep mtree files indented with spaces

The mtree tool indents directory entries with 4 spaces.

Reviewed by:    imp
Fixes:          9cab9fde5eda ("virtual_oss: Port to base")
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53979
DeltaFile
+2-2etc/mtree/BSD.lib32.dist
+2-2etc/mtree/BSD.usr.dist
+4-42 files

HardenedBSD/src 3d91a74etc/mtree BSD.usr.dist BSD.lib32.dist

mtree: Keep mtree files indented with spaces

The mtree tool indents directory entries with 4 spaces.

Reviewed by:    imp
Fixes:          9cab9fde5eda ("virtual_oss: Port to base")
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53979
DeltaFile
+2-2etc/mtree/BSD.usr.dist
+2-2etc/mtree/BSD.lib32.dist
+4-42 files

NetBSD/src WW5gxSBtests/usr.bin/diff3 Makefile

   Add new test files to FILES.

   PR bin/59798 We are still using GNU diffutils
VersionDeltaFile
1.2+18-1tests/usr.bin/diff3/Makefile
+18-11 files

NetBSD/src ZoA9Xbqtests/usr.bin/diff3 t_diff3.sh long-merge.out

   Import diff3 test cases from FreeBSD.

   PR bin/59798 We are still using GNU diffutils
VersionDeltaFile
1.1+59-0tests/usr.bin/diff3/t_diff3.sh
1.1+35-0tests/usr.bin/diff3/long-merge.out
1.1+27-0tests/usr.bin/diff3/long-o.txt
1.1+26-0tests/usr.bin/diff3/long-m.txt
1.1+26-0tests/usr.bin/diff3/long-y.txt
1.1+22-0tests/usr.bin/diff3/long-A.out
+195-014 files not shown
+321-620 files

LLVM/project b1dfd8cllvm/lib/Target/SystemZ/MCTargetDesc SystemZMCAsmInfo.cpp SystemZHLASMAsmStreamer.cpp, llvm/test/CodeGen/SystemZ llvm.sincos.ll zos-intrinsics.ll

Use correct type extension for relocations

D means 8 byte.
DeltaFile
+12-12llvm/test/CodeGen/SystemZ/llvm.sincos.ll
+11-10llvm/test/CodeGen/SystemZ/zos-intrinsics.ll
+9-9llvm/test/CodeGen/SystemZ/zos-hlasm-out.ll
+7-7llvm/test/CodeGen/SystemZ/zos-ada-relocations.ll
+4-4llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
+2-2llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+45-446 files

HardenedBSD/ports 66c619asecurity/kanidm distinfo Makefile.crates

security/kanidm: Update to 1.8.3

ChangeLogs:

- https://github.com/kanidm/kanidm/releases/tag/v1.8.2
- https://github.com/kanidm/kanidm/releases/tag/v1.8.3

PR:             291274
Reported by:    brad at facefault.org
Approved by:    bofh@ (implicit)
DeltaFile
+71-71security/kanidm/distinfo
+34-34security/kanidm/Makefile.crates
+1-1security/kanidm/Makefile
+106-1063 files

FreeBSD/ports 66c619asecurity/kanidm distinfo Makefile.crates

security/kanidm: Update to 1.8.3

ChangeLogs:

- https://github.com/kanidm/kanidm/releases/tag/v1.8.2
- https://github.com/kanidm/kanidm/releases/tag/v1.8.3

PR:             291274
Reported by:    brad at facefault.org
Approved by:    bofh@ (implicit)
DeltaFile
+71-71security/kanidm/distinfo
+34-34security/kanidm/Makefile.crates
+1-1security/kanidm/Makefile
+106-1063 files

LLVM/project 58a8e1eclang-tools-extra/clang-doc JSONGenerator.cpp, clang-tools-extra/test/clang-doc basic-project.mustache.test

Address review feedback, handle extraction better
DeltaFile
+0-97clang-tools-extra/test/clang-doc/basic-project.mustache.test
+44-3clang-tools-extra/clang-doc/JSONGenerator.cpp
+0-3clang-tools-extra/test/clang-doc/json/class.cpp
+44-1033 files

NetBSD/src O0QGxZKtests/usr.bin/diff Makefile

   Add new test files to FILES.

   PR bin/59798 We are still using GNU diffutils
VersionDeltaFile
1.2+20-1tests/usr.bin/diff/Makefile
+20-11 files

LLVM/project 9bae84bllvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll spill-scavenge-offset.ll, llvm/test/CodeGen/X86 2008-04-17-CoalescerBug.ll

[RegAlloc] Relax the split constrain on MBB prolog (#168259)

https://reviews.llvm.org/D52052 is to prevent register split on the MBB
which have prolog instructions defining the exec register (or mask register
that activate the threads of a warp in GPU). The constrain seems too
strict, because 1) If the split is allowed, it may fit the free live range
of a physical register, and no spill will happen; 2) The register class of
register that is under splitting may not be the same to the register that
is defined in prolog, so there is no interference with the register being
defined in prolog. 
The current code has another small issue. The MBB->getFirstNonDebugInstr()
just skip debug instructions, but SA->getFirstSplitPoint(Number) would skip
label and phi instructions. This cause some MBB with label instruction
being taken as prolog.
This patch is to relax the split constrain on MMB with prolog by checking
if the register defined in prolog has the common register class with the
register being split. It allow the split if the register defined in prolog
is physical register or there is no common register class.


    [2 lines not shown]
DeltaFile
+2,867-2,822llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+282-281llvm/test/CodeGen/AMDGPU/spill-scavenge-offset.ll
+159-152llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+99-102llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+167-0llvm/test/CodeGen/AMDGPU/spill-before-exec2.mir
+40-38llvm/test/CodeGen/X86/2008-04-17-CoalescerBug.ll
+3,614-3,3955 files not shown
+3,708-3,43311 files

HardenedBSD/ports bb7b774www/hurl distinfo Makefile.crates

www/hurl: update 7.0.0 -> 7.1.0

Changelog: https://github.com/Orange-OpenSource/hurl/releases/tag/7.1.0
DeltaFile
+217-227www/hurl/distinfo
+107-112www/hurl/Makefile.crates
+1-2www/hurl/Makefile
+325-3413 files

FreeBSD/ports bb7b774www/hurl distinfo Makefile.crates

www/hurl: update 7.0.0 -> 7.1.0

Changelog: https://github.com/Orange-OpenSource/hurl/releases/tag/7.1.0
DeltaFile
+217-227www/hurl/distinfo
+107-112www/hurl/Makefile.crates
+1-2www/hurl/Makefile
+325-3413 files

NetBSD/src Hhy3ApWtests/usr.bin/diff t_diff.sh simple_p.out

   Import some of the diff tests from FreeBSD that cover features either
   specified by POSIX or commonly used for NetBSD development.

   PR bin/59798 We are still using GNU diffutils
VersionDeltaFile
1.4+101-1tests/usr.bin/diff/t_diff.sh
1.1+34-0tests/usr.bin/diff/simple_p.out
1.1+29-0tests/usr.bin/diff/functionname_c.in
1.1+29-0tests/usr.bin/diff/functionname.in
1.1+21-0tests/usr.bin/diff/unified_9999.out
1.1+20-0tests/usr.bin/diff/unified_p.out
+234-114 files not shown
+327-120 files

HardenedBSD/ports f7c0684devel/git-graph distinfo Makefile.crates

devel/git-graph: update 0.6.0 -> v0.7.0

Changelog: https://github.com/mlange-42/git-graph/releases/tag/v0.7.0
DeltaFile
+287-181devel/git-graph/distinfo
+143-90devel/git-graph/Makefile.crates
+2-2devel/git-graph/Makefile
+432-2733 files

FreeBSD/ports f7c0684devel/git-graph distinfo Makefile.crates

devel/git-graph: update 0.6.0 -> v0.7.0

Changelog: https://github.com/mlange-42/git-graph/releases/tag/v0.7.0
DeltaFile
+287-181devel/git-graph/distinfo
+143-90devel/git-graph/Makefile.crates
+2-2devel/git-graph/Makefile
+432-2733 files

LLVM/project b634514llvm/lib/Target/SystemZ/MCTargetDesc SystemZMCAsmInfo.h

Fix formatting.
DeltaFile
+3-3llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.h
+3-31 files

OpenBSD/src kICSYojsys/net pf.c pf_ioctl.c

   start moving some global pf counters to per cpu counters.

   this moves the pfctl_status.fcounters, which includes the state
   search counter which is bumped every time the state table is searched.

   the places that get a copy of these counters now have to read the
   per cpu counters and fold them into a struct pf_status rather than
   just copy the global now.

   ok sashan@
VersionDeltaFile
1.1220+45-6sys/net/pf.c
1.427+6-27sys/net/pf_ioctl.c
1.40+5-1sys/net/pfvar_priv.h
+56-343 files