FreeBSD/src 86c8cbesys/net if_epair.c

if_epair: Remove unneeded NULL check for the allocated ifnet

This follows the recent MFC [1]. No functional change intended.

This is a direct commit to stable/13.

1. f500e5c6c99b net: Remove unneeded NULL check for the allocated ifnet
DeltaFile
+0-12sys/net/if_epair.c
+0-121 files

FreeBSD/src 38518fdcontrib/capsicum-test capsicum-freebsd.h

capsicum-test: rights are propagated on sctp_peeloff(2)

As of commit 91a9e4e01dab ("capsicum: propagate rights on sctp_peeloff")
a capability is generated from sctp_peeloff(cap_fd,...).  Enable the
corresponding test code.

PR:             201052
Reviewed by:    oshogbo, tuexen
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47000
DeltaFile
+3-4contrib/capsicum-test/capsicum-freebsd.h
+3-41 files

FreeBSD/src 91a9e4esys/netinet sctp_syscalls.c

sctp: propagate cap rights on sctp_peeloff

PR:             201052
Reviewed by:    oshogbo, tuexen
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46884
DeltaFile
+4-3sys/netinet/sctp_syscalls.c
+4-31 files

FreeBSD/src e4550c9contrib/capsicum-test sctp.cc

capsicum-test: include SCTP tests

HAVE_SCTP is #defined in syscalls.h, so move the #ifdef after the
inclusion of the header that #defines it.

Issue https://github.com/google/capsicum-test/issues/60 is open upstream
in case a slightly different version is needed for Linux.

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46995
DeltaFile
+1-1contrib/capsicum-test/sctp.cc
+1-11 files

FreeBSD/src 1d83090contrib/capsicum-test sctp.cc

capsicum-test: skip SCTP tests if SCTP not available

Skip the test rather than failing if SCTP is not available (e.g., if
sctp.ko is not loaded).

Also submitted upstream as
https://github.com/google/capsicum-test/pull/61

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46999
DeltaFile
+3-0contrib/capsicum-test/sctp.cc
+3-01 files

FreeBSD/src 50c64dflib/libkldelf elf.c ef.c, usr.sbin/kldxref elf.c ef.c

Revert "libkldelf: add a private library for kernel/kld-related ELF parsing"

This reverts commit 0a2cfd653e86ac41c4e6e32a449d133c0ee6d677.
DeltaFile
+0-688lib/libkldelf/elf.c
+688-0usr.sbin/kldxref/elf.c
+648-0usr.sbin/kldxref/ef.c
+0-648lib/libkldelf/ef.c
+0-469lib/libkldelf/ef_obj.c
+469-0usr.sbin/kldxref/ef_obj.c
+1,805-1,80523 files not shown
+2,815-2,85729 files

FreeBSD/src 7007de7lib/libkldelf kldelf.h elf.c

Revert "libkldelf: add elf_lookup_symbol function"

This reverts commit 2c7d84795628cb9c7a266718b99b6bca68e0a135.
DeltaFile
+0-13lib/libkldelf/kldelf.h
+0-6lib/libkldelf/elf.c
+0-1lib/libkldelf/ef.c
+0-1lib/libkldelf/ef_obj.c
+0-214 files

FreeBSD/src 6df3a2dlib/libkldelf ef_obj.c

Revert "libkldelf: use warnx instead of printf"

This reverts commit 550ee2d03c5b88bc5d74b257ffcb3ed2c06a60bb.
DeltaFile
+6-6lib/libkldelf/ef_obj.c
+6-61 files

FreeBSD/src 9fd66e4share/man/man9 mbuf.9 vmem.9, usr.bin/bintrans bintrans.1

manuals: Fix syntax of list width

Signed-off-by:  Graham Percival <gperciva at tarsnap.com>
Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   Tarsnap Backup Inc.
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1455
DeltaFile
+4-4usr.bin/bintrans/bintrans.1
+1-1share/man/man9/mbuf.9
+1-1share/man/man9/vmem.9
+1-1usr.bin/genl/genl.1
+1-1usr.sbin/dconschat/dconschat.8
+8-85 files

FreeBSD/src 643fc69share/man/man9 cdefs.9, stand/man loader_simp.8 loader_lua.8

manuals: Fix "missing end of block" errors

These were reported by `mandoc -T lint ...` as errors.

The rendered output (in ascii and html) is not affected by this commit.

Signed-off-by:  Graham Percival <gperciva at tarsnap.com>
Reviewed by:    mhorne, Alexander Ziaee <concussious.bugzilla at runbox.com>
MFC after:      3 days
Sponsored by:   Tarsnap Backup Inc.
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1454
DeltaFile
+2-0stand/man/loader_simp.8
+1-0usr.bin/bintrans/bintrans.1
+1-0stand/man/loader_lua.8
+1-0share/man/man9/cdefs.9
+5-04 files

FreeBSD/src 8b92fa1lib/librss librss.3, share/man/man4 bpf.4

manuals: Misc syntax fixes

These were reported by `mandoc -T lint ...` as errors.

Signed-off-by:  Graham Percival <gperciva at tarsnap.com>
Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   Tarsnap Backup Inc.
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1453
DeltaFile
+2-2share/man/man7/orders.7
+2-2lib/librss/librss.3
+1-1share/man/man9/zone.9
+1-1share/man/man4/bpf.4
+1-1share/man/man8/rc.subr.8
+1-1share/man/man9/cdefs.9
+8-86 files

FreeBSD/src c2d93a8usr.bin/env env.c, usr.bin/env/tests env_test.sh

env: Check the status of stdout.

MFC after:      3 days
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D47009
DeltaFile
+17-0usr.bin/env/tests/env_test.sh
+2-0usr.bin/env/env.c
+19-02 files

FreeBSD/src 6f6166eusr.bin/env env.c env.1, usr.bin/env/tests env_test.sh

env: Add an option to change the directory.

This mirrors the equivalent option in GNU coreutils env, but does not
add support for long options.

MFC after:      3 days
Relnotes:       yes
Sponsored by:   Klara, Inc.
Reviewed by:    0mp, bcr
Differential Revision:  https://reviews.freebsd.org/D47008
DeltaFile
+24-1usr.bin/env/tests/env_test.sh
+17-5usr.bin/env/env.c
+13-2usr.bin/env/env.1
+54-83 files

FreeBSD/src e3ebc5flib/libsys procctl.2

procctl(2): Clarify the ESRCH error code case

Approved by: kib
Differential Revision: https://reviews.freebsd.org/D47010
DeltaFile
+4-0lib/libsys/procctl.2
+4-01 files

FreeBSD/src 0370629clang/lib/CodeGen CGExprScalar.cpp, clang/lib/Driver/ToolChains Clang.cpp

Vendor import of llvm-project branch release/19.x llvmorg-19.1.1-0-gd401987fe349, a.k.a. 19.1.1 release.
DeltaFile
+51-32llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+71-0clang/lib/Tooling/LocateToolCompilationDatabase.cpp
+26-0clang/lib/Driver/ToolChains/Clang.cpp
+24-2clang/lib/Sema/SemaConcept.cpp
+15-11clang/lib/CodeGen/CGExprScalar.cpp
+16-4llvm/lib/Transforms/Utils/InlineFunction.cpp
+203-4927 files not shown
+315-7733 files

FreeBSD/src 72f5e98share/misc committers-doc.dot committers-src.dot

committers-*.dot: Fix typos
DeltaFile
+4-4share/misc/committers-doc.dot
+1-1share/misc/committers-src.dot
+5-52 files

FreeBSD/src 9cf2efbshare/misc committers-src.dot

committers-src: Add myself (0mp)

Approved by:    bnovkov (mentor), christos (mentor), markj (mentor)
Differential Revision:  https://reviews.freebsd.org/D47007
DeltaFile
+6-0share/misc/committers-src.dot
+6-01 files

FreeBSD/src ba40b2busr.bin/vmstat vmstat.c

vmstat -o: report objects backing posix shm segments

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D46970
DeltaFile
+2-0usr.bin/vmstat/vmstat.c
+2-01 files

FreeBSD/src a125819usr.bin/procstat procstat_vm.c

procstat vm: report posix shm segment mapping

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D46970
DeltaFile
+2-0usr.bin/procstat/procstat_vm.c
+2-01 files

FreeBSD/src b0b18b5sys/sys user.h, sys/vm vm_object.c

sysctl vm.objects: report objects backing posix shm segments

Add the KVMO_FLAG_POSIXSHM flag.  Fill the path.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D46970
DeltaFile
+5-0sys/vm/vm_object.c
+1-0sys/sys/user.h
+6-02 files

FreeBSD/src a8c641bsys/kern kern_proc.c, sys/sys user.h

sys/user.h: report posix shm mappings

Add flag KVME_FLAG_POSIXSHM.  Fill kve_path with the path of the
segment.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D46970
DeltaFile
+5-0sys/kern/kern_proc.c
+1-0sys/sys/user.h
+6-02 files

FreeBSD/src bda73e4sys/kern uipc_shm.c, sys/sys mman.h

posix shm: add shm_get_path(9)

to calculate the posix shm path from the vm_object backing shm segment.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D46970
DeltaFile
+31-0sys/kern/uipc_shm.c
+1-0sys/sys/mman.h
+32-02 files

FreeBSD/src a10870esys/kern uipc_shm.c, sys/vm vm_object.h

posix shm: mark backing objects with SHM_POSIXSHM flag

and consistently store the pointer to shmfd into pager priv data space.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D46970
DeltaFile
+11-5sys/kern/uipc_shm.c
+2-0sys/vm/vm_object.h
+13-52 files

FreeBSD/src 71a6688sys/kern kern_proc.c, sys/vm vm_object.c

kinfo_{vmobject,vmentry}: move copy of pathes into the vnode handling scope

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D46970
DeltaFile
+3-4sys/kern/kern_proc.c
+2-3sys/vm/vm_object.c
+5-72 files

FreeBSD/src a31a4ddsys/net if_enc.c

if_enc(4): Make enc_add_hhooks() void

As for the consumer `enc_add_hhooks()`, `hhook_add_hook()` will never
fail for the given parameters. Meanwhile, to build the module if_enc(4),
at least option INET or INET6 is required, so no need for the error
EPFNOSUPPORT.

No functional change intended.

Reviewed by:    ae
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D46770

(cherry picked from commit 7643141e9314f1eac0d9ac08457410509e6829ad)
(cherry picked from commit d6374ee0517f8d991eafe022e2027dd1e64a2ad1)
DeltaFile
+8-15sys/net/if_enc.c
+8-151 files

FreeBSD/src d92fc5dshare/man/man9 khelp.9, sys/kern kern_khelp.c

khelp: Sprinkle const qualifiers where appropriate

No functional change intended.

MFC after:      1 week

(cherry picked from commit 89937323bddd41fd8b92430c3ece48d3e32c2c23)
(cherry picked from commit 54c79d3ae419c81a7e6bbc8c60f0959462bf0b4d)
DeltaFile
+3-3share/man/man9/khelp.9
+2-2sys/sys/khelp.h
+2-2sys/kern/kern_khelp.c
+7-73 files

FreeBSD/src 36fe826sys/kern kern_hhook.c, sys/sys hhook.h

hhook: Sprinkle const qualifiers where appropriate

No functional change intended.

MFC after:      1 week

(cherry picked from commit 941f8aceac1b6c16ca4d96b52e60ab437c4f9207)
(cherry picked from commit 18aa2a81c4651be2c7705f26f98175efa4f7a859)
DeltaFile
+4-4sys/sys/hhook.h
+4-4sys/kern/kern_hhook.c
+8-82 files

FreeBSD/src f500e5csys/dev/cxgbe t4_main.c, sys/dev/ena ena.c

net: Remove unneeded NULL check for the allocated ifnet

Change 4787572d0580 made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

No functional change intended.

Reviewed by:    kp, imp, glebius, stevek
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D45740

MFC note: This is only a partial MFC, as some drivers do not exist in
stable/13 branch. The if_epair(4) drifts too much from stable/14 so not
included in this MFC.

(cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
(cherry picked from commit 6b1f530935c5f84ec65dad87b7c20c6b7a72a6d3)
DeltaFile
+5-16sys/dev/cxgbe/t4_main.c
+3-14sys/dev/vnic/nicvf_main.c
+3-14sys/dev/ena/ena.c
+3-14sys/dev/sbni/if_sbni_pci.c
+3-13sys/dev/virtio/network/if_vtnet.c
+3-13sys/dev/sume/if_sume.c
+20-8499 files not shown
+33-582105 files

FreeBSD/src 342240clib/clang/include/lld/Common Version.inc, stand/efi/loader Makefile

Bump lld LINKER_FREEBSD_VERSION for reproducibility fix

The upstream fix to make lld output for our EFI loaders reproducible
again was committed in 54521a2ff93a. Bump lld's LINKER_FREEBSD_VERSION
to be able to check this in the EFI loader Makefile.

MFC after:      3 days

(cherry picked from commit f97c7fdc59d252cc8611968ffac541d4b8342b8b)
DeltaFile
+8-1stand/efi/loader/Makefile
+1-1lib/clang/include/lld/Common/Version.inc
+9-22 files

FreeBSD/src 789f0f3contrib/llvm-project/lld/ELF Relocations.cpp, contrib/llvm-project/llvm/include/llvm/Support Parallel.h

Merge commit b84d773fd004 from llvm git (by Fangrui Song):

  [Parallel] Revert sequential task changes

  https://reviews.llvm.org/D148728 introduced `bool Sequential` to unify
  `execute` and the old `spawn` without argument. However, sequential
  tasks might be executed by any worker thread (non-deterministic),
  leading to non-determinism output for ld.lld -z nocombreloc (see
  https://reviews.llvm.org/D133003).

  In addition, the extra member variables have overhead.
  This sequential task has only been used for lld parallel relocation
  scanning.

  This patch restores the behavior before https://reviews.llvm.org/D148728 .

  Fix #105958

  Pull Request: https://github.com/llvm/llvm-project/pull/109084

    [7 lines not shown]
DeltaFile
+35-21contrib/llvm-project/lld/ELF/Relocations.cpp
+12-37contrib/llvm-project/llvm/lib/Support/Parallel.cpp
+1-3contrib/llvm-project/llvm/include/llvm/Support/Parallel.h
+48-613 files