HardenedBSD/src e1986e8sys/compat/linuxkpi/common/include/linux dma-mapping.h, sys/compat/linuxkpi/common/src linux_pci.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+50-5sys/compat/linuxkpi/common/include/linux/dma-mapping.h
+7-7usr.sbin/pmc/view.cc
+11-0sys/compat/linuxkpi/common/src/linux_pci.c
+8-1usr.sbin/pciconf/pciconf.c
+0-5usr.sbin/pmc/headers.hh
+3-1usr.sbin/pciconf/pciconf.8
+79-191 files not shown
+81-217 files

HardenedBSD/src 2bcc4edsys/dev/e1000 if_em.h e1000_regs.h, sys/dev/ixgbe if_ix.c

Merge remote-tracking branch 'rad/hardened/15-stable/main' into hardened/15-stable/pledge
DeltaFile
+229-22sys/dev/e1000/if_em.c
+102-36sys/x86/iommu/amd_drv.c
+13-0sys/dev/e1000/e1000_defines.h
+12-0sys/dev/ixgbe/if_ix.c
+9-0sys/dev/e1000/e1000_regs.h
+3-0sys/dev/e1000/if_em.h
+368-586 files

HardenedBSD/src b191736sys/compat/linuxkpi/common/include/linux dma-mapping.h, sys/compat/linuxkpi/common/src linux_pci.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+50-5sys/compat/linuxkpi/common/include/linux/dma-mapping.h
+7-7usr.sbin/pmc/view.cc
+11-0sys/compat/linuxkpi/common/src/linux_pci.c
+8-1usr.sbin/pciconf/pciconf.c
+0-5usr.sbin/pmc/headers.hh
+3-1usr.sbin/pciconf/pciconf.8
+79-191 files not shown
+81-217 files

HardenedBSD/src b00eaaesys/dev/e1000 if_em.h e1000_regs.h, sys/dev/ixgbe if_ix.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+229-22sys/dev/e1000/if_em.c
+102-36sys/x86/iommu/amd_drv.c
+13-0sys/dev/e1000/e1000_defines.h
+12-0sys/dev/ixgbe/if_ix.c
+9-0sys/dev/e1000/e1000_regs.h
+3-0sys/dev/e1000/if_em.h
+368-586 files

LLVM/project 89b97e9llvm/lib/Target/RISCV RISCVInstrInfoXwch.td, llvm/test/MC/RISCV xwchc-valid.s

[RISC-V] Use an optional offset for Xwch instructions

Following up on the previous commits to remove unnecessary InstAlias.

This commit was prepared with the help of AI.

Reviewed By: lenary, ArcaneNibble

Pull Request: https://github.com/llvm/llvm-project/pull/215005
DeltaFile
+12-25llvm/lib/Target/RISCV/RISCVInstrInfoXwch.td
+24-0llvm/test/MC/RISCV/xwchc-valid.s
+36-252 files

LLVM/project 78bacccclang/include/clang/Basic AttrDocs.td, llvm/test/CodeGen/AArch64 vector-ldst-align-float.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.8-beta.1-arichardson

[skip ci]
DeltaFile
+17,286-3,454llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-sve-instructions.s
+13,787-6,856llvm/test/tools/llvm-mca/AArch64/Cortex/C1Nano-sve-instructions.s
+9,921-0llvm/test/CodeGen/AArch64/vector-ldst-align-float.ll
+7,985-1,589llvm/test/tools/llvm-mca/AArch64/Cortex/C1Premium-neon-instructions.s
+6,355-3,146llvm/test/tools/llvm-mca/AArch64/Cortex/C1Nano-neon-instructions.s
+4,430-4,297clang/include/clang/Basic/AttrDocs.td
+59,764-19,34214,551 files not shown
+868,878-452,11214,557 files

LLVM/project 8e7fa6fllvm/lib/Target/RISCV RISCVInstrInfo.td RISCVInstrInfoXqci.td, llvm/test/MC/RISCV xqciio-invalid.s xqcilo-pseudos-invalid.s

[RISC-V] Use an optional offset for Xqc* instructions

Following up on the previous commits to remove unnecessary InstAlias.

This commit was prepared with the help of AI.

Reviewed By: lenary

Pull Request: https://github.com/llvm/llvm-project/pull/215002
DeltaFile
+14-78llvm/lib/Target/RISCV/RISCVInstrInfoXqci.td
+37-25llvm/test/MC/RISCV/xqcilsm-invalid.s
+11-17llvm/test/MC/RISCV/xqciio-invalid.s
+14-14llvm/test/MC/RISCV/xqcilo-pseudos-invalid.s
+6-0llvm/lib/Target/RISCV/RISCVInstrInfo.td
+82-1345 files

NetBSD/src 9E0G2ubsbin/fsck_ffs utilities.c

   Don't try to interpret a cylinder group with a bad magic number.
VersionDeltaFile
1.72+5-3sbin/fsck_ffs/utilities.c
+5-31 files

NetBSD/src iWLZRvgsys/dev/ic wdc.c

   When IDENTIFY fails on a drive, don't force all drives on that
   channel into pre-ATA mode.
VersionDeltaFile
1.317+6-12sys/dev/ic/wdc.c
+6-121 files

LLVM/project e16901cclang/lib/AST/ByteCode Compiler.cpp

[clang][bytecode] Use IsNonNull opcode in CXXNewExpr (#221515)

Instead of emitting a null pointer and checking that for equality.
DeltaFile
+2-4clang/lib/AST/ByteCode/Compiler.cpp
+2-41 files

LLVM/project 03ff69fclang/lib/AST/ByteCode Compiler.cpp

[clang][bytecode] Do pointer-to-bool convesions without classify() (#221516)
DeltaFile
+6-5clang/lib/AST/ByteCode/Compiler.cpp
+6-51 files

NetBSD/src xgEWxmhsys/net if_llatbl.c

   Ensure that whole mbuf list is freed. Also ensures that assertion
   triggers when numheld value < list lenghth.
VersionDeltaFile
1.36+2-2sys/net/if_llatbl.c
+2-21 files

NetBSD/src 9q8uGQqsbin/dkctl dkctl.c

   Don't divide by zero when device doesn't return sector size.
VersionDeltaFile
1.28+7-4sbin/dkctl/dkctl.c
+7-41 files

HardenedBSD/ports 5e7bf40net/nmsg distinfo Makefile

net/nmsg: Upgrade to version 1.4.0

nmsg (1.4.0):

  * Removed nmsgtool support for presentation inputs.

  * Properly handle fragmented containers in zmq/kafka inputs.

  * Support single nmsg payload kafka in/out sources.

  * Clean-up temp files after failed start using -w.

  * Improved warning for mismatched CRC.

  * Require json-c build dependency.

  * Fix various small memory leaks and mismanagement issues.

  * Fix strict aliasing violations.

    [7 lines not shown]
DeltaFile
+5-6net/nmsg/Makefile
+3-3net/nmsg/distinfo
+8-92 files

FreeBSD/ports 5e7bf40net/nmsg distinfo Makefile

net/nmsg: Upgrade to version 1.4.0

nmsg (1.4.0):

  * Removed nmsgtool support for presentation inputs.

  * Properly handle fragmented containers in zmq/kafka inputs.

  * Support single nmsg payload kafka in/out sources.

  * Clean-up temp files after failed start using -w.

  * Improved warning for mismatched CRC.

  * Require json-c build dependency.

  * Fix various small memory leaks and mismanagement issues.

  * Fix strict aliasing violations.

    [7 lines not shown]
DeltaFile
+5-6net/nmsg/Makefile
+3-3net/nmsg/distinfo
+8-92 files

NetBSD/src lXo7NZwusr.bin/config gram.y

   Support quoted string for root filesystem type.
VersionDeltaFile
1.58+3-2usr.bin/config/gram.y
+3-21 files

LLVM/project ad426edclang-tools-extra/docs/clang-tidy/checks/readability else-after-return.md

Update clang-tools-extra/docs/clang-tidy/checks/readability/else-after-return.md

Co-authored-by: EugeneZelenko <eugene.zelenko at gmail.com>
DeltaFile
+1-1clang-tools-extra/docs/clang-tidy/checks/readability/else-after-return.md
+1-11 files

Linux/linux 1fc5a74drivers/block/drbd drbd_nl_gen.c, drivers/gpu/drm/amd/display/dc/resource/dcn42 dcn42_resource.c

Merge tag 'kmalloc_obj-v7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull kmalloc_obj conversions from Kees Cook:
 "Another run of the Coccinelle script for converting kmalloc()
  family of allocations to kmalloc_obj() via the existing rules
  in scripts/coccinelle/api/kmalloc_objs.cocci"

* tag 'kmalloc_obj-v7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
  treewide: refresh kmalloc_obj() conversions
  drm/amd/display: Fix harmless type mismatch in allocation
DeltaFile
+21-31drivers/scsi/leapraid/leapraid_func.c
+23-27drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c
+21-25drivers/gpu/drm/amd/display/dc/resource/dcn42b/dcn42b_resource.c
+20-22drivers/gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c
+22-18drivers/block/drbd/drbd_nl_gen.c
+10-20drivers/staging/media/atomisp/pci/sh_css.c
+117-143298 files not shown
+637-726304 files

LLVM/project 72417ebllvm/lib/Target/Xtensa CMakeLists.txt

[Xtensa] Depend on CodeGenTypes to fix BUILD_SHARED_LIBS=on build (#221511)
DeltaFile
+1-0llvm/lib/Target/Xtensa/CMakeLists.txt
+1-01 files

LLVM/project bf085faclang/lib/AST/ByteCode Record.h

[clang][bytecode] Cache Is(Unnamed)BitFields bools in `Record::Field` (#221392)

We need to query those a lot and we can save them in the padding bytes
of `Record::Field`.
DeltaFile
+8-3clang/lib/AST/ByteCode/Record.h
+8-31 files

LLVM/project ad9259cclang-tools-extra/include-cleaner/unittests WalkASTTest.cpp

[include-cleaner] Add WalkAST unit tests for Objective-C constructs (#220763)

Adds test coverage for walking AST nodes related to:
- Objective-C interface inheritance (`@interface Derived : Base`)
- Forward class and protocol declarations (`@class` and `@protocol`)
- Objective-C interface types used as function arguments

This is just to make sure that current code is covered. No new features.
DeltaFile
+48-0clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp
+48-01 files

FreeBSD/ports c811c6cdevel/py-ujson distinfo Makefile, devel/py-ujson/files patch-pyproject.toml

devel/py-ujson: update to 6.0.0
DeltaFile
+6-5devel/py-ujson/files/patch-pyproject.toml
+3-3devel/py-ujson/distinfo
+3-3devel/py-ujson/Makefile
+12-113 files

HardenedBSD/ports c811c6cdevel/py-ujson distinfo Makefile, devel/py-ujson/files patch-pyproject.toml

devel/py-ujson: update to 6.0.0
DeltaFile
+6-5devel/py-ujson/files/patch-pyproject.toml
+3-3devel/py-ujson/distinfo
+3-3devel/py-ujson/Makefile
+12-113 files

LLVM/project 012428cllvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 divrem-by-select.ll masked-urem.ll

[X86] Lower i64 vector division and remainder through float division (#215043)

Follow up to #205263 which handled i8/i16/i32.

i64 needs a different algorithm because f64 cannot hold a 64 bit
quotient exactly. Instead of one divide the quotient is built from a
reciprocal and two rounded down multiplies plus a correction for the off
by one (https://sneller.ai/blog/avx512-int-div/). That needs the
directed rounding forms which only exist as 512 bit AVX512DQ
instructions, so the whole i64 path is gated on DQ and 512 bit types
being legal.

Operands that are provably narrow enough to fit the f64 mantissa skip
the chain entirely and take the same convert divide convert path as the
<=i32 case.

strictfp i64 uses the SAE forms the same way the <=i32 path does.

combineIntDivRem is now a small dispatcher over two helpers since the

    [4 lines not shown]
DeltaFile
+414-0llvm/test/CodeGen/X86/vector-idiv-i64.ll
+310-87llvm/test/CodeGen/X86/vector-idiv-sdiv-512.ll
+298-48llvm/test/CodeGen/X86/masked-udiv.ll
+292-48llvm/test/CodeGen/X86/masked-urem.ll
+189-123llvm/test/CodeGen/X86/divrem-by-select.ll
+195-75llvm/lib/Target/X86/X86ISelLowering.cpp
+1,698-3815 files not shown
+2,374-48011 files

FreeBSD/src 5c45e22sys/dev/ixgbe if_ix.c

ixgbe: Probe additional controller variants

The shared base code already selects and configures the 82598 BX,
82599 KR, 82599 SFP Express Module, X552 XFI, X553 QSFP, and X553 N
QSFP device IDs, but the FreeBSD probe table omits them while DPDK lists
them.

Sponsored by:   BBOX.io

(cherry picked from commit 27f0491e3648722a892558416a768dda77850ad9)
DeltaFile
+12-0sys/dev/ixgbe/if_ix.c
+12-01 files

FreeBSD/src 4a5177esys/x86/iommu amd_drv.c

amd_iommu: Bound IVHD device-entry parsing

Validate the IVRS table and every subtable length before using either
to form iterator bounds. Reject truncated typed IVHD blocks instead of
passing them to a type-specific callback.

Within each IVHD payload, correct the lower-bound comparison for
extended range entries and validate fixed-size entries, paired range
terminators, the fixed HID body, and the variable HID UID before
dereferencing or advancing. Malformed firmware can no longer drive
either iterator beyond its enclosing object.

Reviewed by:    kib
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58724

(cherry picked from commit 4a2494d76ad03c755f2cb0ed5e1311b03bb2a8e2)
DeltaFile
+102-36sys/x86/iommu/amd_drv.c
+102-361 files

FreeBSD/src 792307dsys/x86/iommu amd_drv.c

amd_iommu: Bound IVHD device-entry parsing

Validate the IVRS table and every subtable length before using either
to form iterator bounds. Reject truncated typed IVHD blocks instead of
passing them to a type-specific callback.

Within each IVHD payload, correct the lower-bound comparison for
extended range entries and validate fixed-size entries, paired range
terminators, the fixed HID body, and the variable HID UID before
dereferencing or advancing. Malformed firmware can no longer drive
either iterator beyond its enclosing object.

Reviewed by:    kib
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58724

(cherry picked from commit 4a2494d76ad03c755f2cb0ed5e1311b03bb2a8e2)
DeltaFile
+102-36sys/x86/iommu/amd_drv.c
+102-361 files

HardenedBSD/src 792307dsys/x86/iommu amd_drv.c

amd_iommu: Bound IVHD device-entry parsing

Validate the IVRS table and every subtable length before using either
to form iterator bounds. Reject truncated typed IVHD blocks instead of
passing them to a type-specific callback.

Within each IVHD payload, correct the lower-bound comparison for
extended range entries and validate fixed-size entries, paired range
terminators, the fixed HID body, and the variable HID UID before
dereferencing or advancing. Malformed firmware can no longer drive
either iterator beyond its enclosing object.

Reviewed by:    kib
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58724

(cherry picked from commit 4a2494d76ad03c755f2cb0ed5e1311b03bb2a8e2)
DeltaFile
+102-36sys/x86/iommu/amd_drv.c
+102-361 files

FreeBSD/src 1b08c8asys/dev/ixgbe if_ix.c

ixgbe: Probe additional controller variants

The shared base code already selects and configures the 82598 BX,
82599 KR, 82599 SFP Express Module, X552 XFI, X553 QSFP, and X553 N
QSFP device IDs, but the FreeBSD probe table omits them while DPDK lists
them.

Sponsored by:   BBOX.io

(cherry picked from commit 27f0491e3648722a892558416a768dda77850ad9)
DeltaFile
+12-0sys/dev/ixgbe/if_ix.c
+12-01 files

HardenedBSD/src 1b08c8asys/dev/ixgbe if_ix.c

ixgbe: Probe additional controller variants

The shared base code already selects and configures the 82598 BX,
82599 KR, 82599 SFP Express Module, X552 XFI, X553 QSFP, and X553 N
QSFP device IDs, but the FreeBSD probe table omits them while DPDK lists
them.

Sponsored by:   BBOX.io

(cherry picked from commit 27f0491e3648722a892558416a768dda77850ad9)
DeltaFile
+12-0sys/dev/ixgbe/if_ix.c
+12-01 files