LLVM/project 02e615dllvm/docs NVPTXUsage.rst

[NFC] Fix some issues in NVPTX Usage document (#176289)

- Fix RST syntax for links.
- Fix names for 2 fence proxy intrinsics.
DeltaFile
+4-4llvm/docs/NVPTXUsage.rst
+4-41 files

FreeBSD/ports 6b9a971. MOVED, graphics/ufraw Makefile

graphics/ufraw: deprecate this port

Ufraw is unmaintained since 2015, user shoud move to
graphics/rawtherapee.
DeltaFile
+3-0graphics/ufraw/Makefile
+1-0MOVED
+4-02 files

FreeNAS/freenas 3a862bbsrc/middlewared/middlewared/plugins/iscsi_ alua.py

Optimize removal of ALUA HA LUN in removed_target_extent
DeltaFile
+26-5src/middlewared/middlewared/plugins/iscsi_/alua.py
+26-51 files

LLVM/project f3f982dllvm/lib/Target/X86 X86TargetMachine.cpp X86CodeGenPassBuilder.cpp

Fix build breakage caused by #176061 (#176283)

https://github.com/llvm/llvm-project/pull/176061 added an extern
declaration of `EnableMachineCombinerPass`, which is `static`, causing
missing symbol errors in the debug build. This PR fixes this by making
that symbol non-static. Furthermore, this PR renames that symbol to
`X86EnableMachineCombinerPass` as `EnableMachineCombinerPass` exists in
other places.
DeltaFile
+5-4llvm/lib/Target/X86/X86TargetMachine.cpp
+2-2llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+7-62 files

Illumos/gate ca31524usr/src/tools/svc/svccfg Makefile

17211 Tools svccfg build missing LIBSCF
Reviewed by: Bill Sommerfeld <sommerfeld at hamachi.org>
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Approved by: Gordon Ross <gordon.w.ross at gmail.com>
DeltaFile
+2-0usr/src/tools/svc/svccfg/Makefile
+2-01 files

HardenedBSD/src d3306c9contrib/libarchive/libarchive archive_read_support_filter_lz4.c, contrib/libarchive/libarchive/test test_compat_lz4_skippable_frames_B4.tar.lz4.uu

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+6,739-0contrib/libarchive/libarchive/test/test_compat_lz4_skippable_frames_B4.tar.lz4.uu
+64-114usr.sbin/makefs/tests/makefs_cd9660_tests.sh
+52-51usr.sbin/makefs/tests/makefs_zfs_tests.sh
+70-14contrib/libarchive/libarchive/archive_read_support_filter_lz4.c
+33-49usr.sbin/makefs/tests/makefs_ffs_tests.sh
+43-39usr.sbin/makefs/tests/makefs_tests_common.sh
+7,001-26755 files not shown
+7,438-44161 files

Linux/linux 983d014kernel/module kmod.c

kernel: modules: Add SPDX license identifier to kmod.c

Add a GPL-2.0 license identifier line for this file.

kmod.c was originally introduced in the kernel in February
of 1998 by Linus Torvalds - who was familiar with kernel
licensing at the time this was introduced.

Signed-off-by: Tim Bird <tim.bird at sony.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+1-0kernel/module/kmod.c
+1-01 files

FreeBSD/ports 3500e98net-im/p5-Protocol-XMPP Makefile distinfo

net-im/p5-Protocol-XMPP: update 0.006 -> 0.007

Changelog: https://metacpan.org/dist/Protocol-XMPP/changes

Fix test target by adding missing dependencies
DeltaFile
+6-2net-im/p5-Protocol-XMPP/Makefile
+3-2net-im/p5-Protocol-XMPP/distinfo
+9-42 files

FreeBSD/ports e669ba5misc/p5-Business-ISBN-Data distinfo Makefile

misc/p5-Business-ISBN-Data: update 20251223.001 -> 20260109.001

Changelog: https://metacpan.org/dist/Business-ISBN-Data/changes
DeltaFile
+3-3misc/p5-Business-ISBN-Data/distinfo
+1-1misc/p5-Business-ISBN-Data/Makefile
+4-42 files

LLVM/project f2038d1mlir/lib/Conversion/ArithAndMathToAPFloat MathToAPFloat.cpp, mlir/test/Integration/Dialect/Arith/CPU test-apfloat-emulation-vector.mlir

add/fix tests
DeltaFile
+41-0mlir/test/Integration/Dialect/Math/CPU/test-apfloat-emulation-vector.mlir
+19-13mlir/lib/Conversion/ArithAndMathToAPFloat/MathToAPFloat.cpp
+10-4mlir/test/Integration/Dialect/Math/CPU/test-apfloat-emulation.mlir
+0-2mlir/test/Integration/Dialect/Arith/CPU/test-apfloat-emulation-vector.mlir
+70-194 files

LLVM/project 7f2eb31llvm/docs/CommandGuide llvm-readobj.rst llvm-readelf.rst

[NFC][llvm][docs] Fix alphabetical order of commands (#176280)

Fix the order of commands for llvm-readelf and llvm-readobj docs.
DeltaFile
+18-18llvm/docs/CommandGuide/llvm-readobj.rst
+4-4llvm/docs/CommandGuide/llvm-readelf.rst
+22-222 files

LLVM/project a3aa038lldb/source/DataFormatters ValueObjectPrinter.cpp, lldb/test/API/lang/objc/failing-description TestObjCFailingDescription.py

[lldb] Add missing newline to po warning (#176257)

Follow up fix to #175847
DeltaFile
+2-2lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py
+2-2lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py
+1-1lldb/source/DataFormatters/ValueObjectPrinter.cpp
+5-53 files

FreeBSD/src 1e8c287share/man/man4 mac.4, usr.sbin/jail jail.8

jail: document the mac.label parameter

In particular, we should provide a hint about mac.conf(5), since libjail
will just use the mac_prepare_type(3) API to provide a reasonably sane
interface for system administrators.  Progammers wanting to fetch an
arbitrary MAC label would need to bypass libjail and use jail_get(2)
directly with their own prepared `struct mac`.

Differential Revision:  https://reviews.freebsd.org/D54067
DeltaFile
+12-1usr.sbin/jail/jail.8
+3-1share/man/man4/mac.4
+15-22 files

HardenedBSD/src db3b39flib/libjail jail.c

libjail: extend struct handlers to included MAC labels

MAC label handling is a little special; to avoid being too disruptive,
we allocate a `mac_t *` here for the value so that we can mac_prepare()
or mac_from_text() into.  As a result, we need:

 - A custom free() handler to avoid leaking the *jp_value
 - A custom jailparam_get() handler to mac_prepare() the mac_t and
    populate the iove properly, so that the kernel doesn't have to
    do something funky like copyin, dereference, copyin again.
 - A custom jailparam_set() handler to similarly populate the iovec
    properly.

Reviewed by:    jamie
Differential Revision:  https://reviews.freebsd.org/D53960
DeltaFile
+189-3lib/libjail/jail.c
+189-31 files

HardenedBSD/src 1af8d56lib/libjail jail.c

libjail: start refactoring struct ioctl support

Instead of ad-hoc comparisons against the struct type in a few places,
start to abstract out an interface for dealing with struct types.  For
now, this just means that we have some special jailparam_import and
jailparam_export handling for the ip addr types, but in the next commit
we'll extend it further to support MAC labels.

Reviewed by:    jamie
Differential Revision:  https://reviews.freebsd.org/D53959
DeltaFile
+149-57lib/libjail/jail.c
+149-571 files

FreeBSD/src db3b39flib/libjail jail.c

libjail: extend struct handlers to included MAC labels

MAC label handling is a little special; to avoid being too disruptive,
we allocate a `mac_t *` here for the value so that we can mac_prepare()
or mac_from_text() into.  As a result, we need:

 - A custom free() handler to avoid leaking the *jp_value
 - A custom jailparam_get() handler to mac_prepare() the mac_t and
    populate the iove properly, so that the kernel doesn't have to
    do something funky like copyin, dereference, copyin again.
 - A custom jailparam_set() handler to similarly populate the iovec
    properly.

Reviewed by:    jamie
Differential Revision:  https://reviews.freebsd.org/D53960
DeltaFile
+189-3lib/libjail/jail.c
+189-31 files

FreeBSD/src 1af8d56lib/libjail jail.c

libjail: start refactoring struct ioctl support

Instead of ad-hoc comparisons against the struct type in a few places,
start to abstract out an interface for dealing with struct types.  For
now, this just means that we have some special jailparam_import and
jailparam_export handling for the ip addr types, but in the next commit
we'll extend it further to support MAC labels.

Reviewed by:    jamie
Differential Revision:  https://reviews.freebsd.org/D53959
DeltaFile
+149-57lib/libjail/jail.c
+149-571 files

HardenedBSD/src 1e8c287share/man/man4 mac.4, usr.sbin/jail jail.8

jail: document the mac.label parameter

In particular, we should provide a hint about mac.conf(5), since libjail
will just use the mac_prepare_type(3) API to provide a reasonably sane
interface for system administrators.  Progammers wanting to fetch an
arbitrary MAC label would need to bypass libjail and use jail_get(2)
directly with their own prepared `struct mac`.

Differential Revision:  https://reviews.freebsd.org/D54067
DeltaFile
+12-1usr.sbin/jail/jail.8
+3-1share/man/man4/mac.4
+15-22 files

HardenedBSD/src 31c2728sys/security/mac mac_syscalls.c mac_prison.c, sys/security/mac_stub mac_stub.c

mac_set_fd(3): add support for jail descriptors

We'll still add an old-fashioned jail param to configure jail MAC
labels, but for testing it's really easy to grab a jaildesc and use
that.

Reviewed by:    jamie, olce
Differential Revision:  https://reviews.freebsd.org/D53956
DeltaFile
+44-0sys/security/mac/mac_syscalls.c
+26-2sys/security/mac/mac_prison.c
+11-0sys/security/mac_test/mac_test.c
+5-0sys/security/mac/mac_internal.h
+3-0sys/security/mac/mac_policy.h
+1-0sys/security/mac_stub/mac_stub.c
+90-26 files

HardenedBSD/src 8254b0dsys/kern kern_jail.c, sys/security/mac mac_prison.c mac_policy.h

kern: mac: add various jail MAC hooks

This adds the following hooks:
 - mpo_prison_check_attach: check for subject capability to attach to
    a given jail
 - mpo_prison_check_create: check for subject capability to create a
    jail with the given option set
 - mpo_prison_check_get: check for subject capability to fetch the
    given parameters for a jail
 - mpo_prison_check_set: check for subject capability to set the
    given parameters for a jail
 - mpo_prison_check_remove: check for subject capability to remove the
    jail

check_get wouldn't typically be a privileged operation, but is included
to give MAC policies a wider range of capabilities at a relatively low
cost.  We also add two more for the purpose of label propagation:
 - mpo_prison_created: surface the creation of a jail so that one can
    do propagation to, e.g., the root vnode or any mounts

    [28 lines not shown]
DeltaFile
+161-0sys/security/mac_test/mac_test.c
+104-22sys/kern/kern_jail.c
+87-0sys/security/mac/mac_prison.c
+83-0sys/security/mac_stub/mac_stub.c
+25-0sys/security/mac/mac_policy.h
+12-0sys/security/mac/mac_framework.h
+472-221 files not shown
+474-227 files

HardenedBSD/src 11d6ea4sys/kern kern_jail.c, sys/security/mac mac_prison.c mac_policy.h

kern: mac: add a MAC label to struct prison

Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D53953
DeltaFile
+144-0sys/security/mac/mac_prison.c
+26-0sys/kern/kern_jail.c
+20-0sys/security/mac/mac_policy.h
+9-0sys/security/mac/mac_internal.h
+6-0sys/security/mac/mac_framework.h
+1-0sys/security/mac/mac_framework.c
+206-02 files not shown
+208-08 files

HardenedBSD/src 626fe12sys/security/mac mac_syscalls.c

kern: mac: pull mac_label_copyin_string out

A future commit to the area will further our jail integration and add
a use for this: the struct mac itself was already copied in as part of
vfs_buildopts(), so we only need to copyin the strings.

We add an explicit flag argument because the jail operation will need to
do it while holding the prison lock.

Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D53957
DeltaFile
+30-18sys/security/mac/mac_syscalls.c
+30-181 files

HardenedBSD/src bd55cbbsys/kern kern_jail.c, sys/security/mac mac_syscalls.c mac_syscalls.h

kern: add a mac.label jail parameter

Have it take a `struct mac` and we'll paper over the difference for
jail(8)/jls(8) in libjail(3).  The mac_syscalls.h model is taken from
mac_set_proc_*() that were previously done.

Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D53958
DeltaFile
+154-0sys/security/mac/mac_syscalls.c
+51-1sys/kern/kern_jail.c
+10-0sys/security/mac/mac_syscalls.h
+215-13 files

FreeBSD/src bd55cbbsys/kern kern_jail.c, sys/security/mac mac_syscalls.c mac_syscalls.h

kern: add a mac.label jail parameter

Have it take a `struct mac` and we'll paper over the difference for
jail(8)/jls(8) in libjail(3).  The mac_syscalls.h model is taken from
mac_set_proc_*() that were previously done.

Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D53958
DeltaFile
+154-0sys/security/mac/mac_syscalls.c
+51-1sys/kern/kern_jail.c
+10-0sys/security/mac/mac_syscalls.h
+215-13 files

FreeBSD/src 92b7366sys/security/mac mac_internal.h

mac: add macros for 5-argument SDT probes

A last-minute change to the jail MAC entry points in D53954 is going to
pass the jail_[gs]et(2) flags to mac_prison_check_[gs]et() so that a
policy can, e.g., reject or allow a change if the intent is to
immediately attach, or disallow some fetching of dying jails.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D54658
DeltaFile
+13-5sys/security/mac/mac_internal.h
+13-51 files

FreeBSD/src 626fe12sys/security/mac mac_syscalls.c

kern: mac: pull mac_label_copyin_string out

A future commit to the area will further our jail integration and add
a use for this: the struct mac itself was already copied in as part of
vfs_buildopts(), so we only need to copyin the strings.

We add an explicit flag argument because the jail operation will need to
do it while holding the prison lock.

Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D53957
DeltaFile
+30-18sys/security/mac/mac_syscalls.c
+30-181 files

FreeBSD/src 11d6ea4sys/kern kern_jail.c, sys/security/mac mac_prison.c mac_policy.h

kern: mac: add a MAC label to struct prison

Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D53953
DeltaFile
+144-0sys/security/mac/mac_prison.c
+26-0sys/kern/kern_jail.c
+20-0sys/security/mac/mac_policy.h
+9-0sys/security/mac/mac_internal.h
+6-0sys/security/mac/mac_framework.h
+1-0sys/security/mac/mac_framework.c
+206-02 files not shown
+208-08 files

HardenedBSD/src 92b7366sys/security/mac mac_internal.h

mac: add macros for 5-argument SDT probes

A last-minute change to the jail MAC entry points in D53954 is going to
pass the jail_[gs]et(2) flags to mac_prison_check_[gs]et() so that a
policy can, e.g., reject or allow a change if the intent is to
immediately attach, or disallow some fetching of dying jails.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D54658
DeltaFile
+13-5sys/security/mac/mac_internal.h
+13-51 files

FreeBSD/src 31c2728sys/security/mac mac_syscalls.c mac_prison.c, sys/security/mac_stub mac_stub.c

mac_set_fd(3): add support for jail descriptors

We'll still add an old-fashioned jail param to configure jail MAC
labels, but for testing it's really easy to grab a jaildesc and use
that.

Reviewed by:    jamie, olce
Differential Revision:  https://reviews.freebsd.org/D53956
DeltaFile
+44-0sys/security/mac/mac_syscalls.c
+26-2sys/security/mac/mac_prison.c
+11-0sys/security/mac_test/mac_test.c
+5-0sys/security/mac/mac_internal.h
+3-0sys/security/mac/mac_policy.h
+1-0sys/security/mac_stub/mac_stub.c
+90-26 files

FreeBSD/src d7a517esys/kern kern_jaildesc.c, sys/sys jaildesc.h

jaildesc: add an accessor for the struct prison in a jaildesc

We'll subsequently use this in the MAC framework to get a struct prison
when we already have the struct file in question, rather than an fd.

Reviewed by:    jamie, olce
Differential Revision:  https://reviews.freebsd.org/D53955
DeltaFile
+56-21sys/kern/kern_jaildesc.c
+1-0sys/sys/jaildesc.h
+57-212 files