LLVM/project 5d0b0bc — llvm/include/llvm/Transforms/Utils Cloning.h, llvm/lib/Transforms/Scalar JumpThreading.cpp

[Cloning] Move undeclared scopes into cloned disjoint domains

When a scope from a disjoint-scope domain is cloned (because its
llvm.experimental.noalias.scope.decl is in the code being duplicated),
the clone is placed into a clone of the domain. Scopes of that domain
without a declaration in the duplicated code, however, were left in the
original domain. InstCombine removes declarations of scopes it considers
unused, so this happens in practice: an !alias.scope list {b, c} where
only c is still declared became {b, c'} when copying for loop unrolling, with c' in
the new domain. ScopedNoAliasAA then only compared {c'} against a
!noalias {c'} list in that domain and concluded NoAlias, while the
original {b, c} list was not noalias with {c}.

Fix this by also cloning, into the cloned domain, any scope of that
domain used by the adapted instructions. Renaming a whole disjoint
domain consistently within the duplicated code preserves the relations
inside it. I don't expect the theoretical precision loss here to be an
issue in practice.


    [7 lines not shown]
DeltaFile
+41-19llvm/lib/Transforms/Utils/CloneFunction.cpp
+28-26llvm/test/Transforms/LoopUnroll/noalias-disjoint-domain.ll
+14-6llvm/include/llvm/Transforms/Utils/Cloning.h
+8-4llvm/lib/Transforms/Scalar/JumpThreading.cpp
+4-3llvm/test/Transforms/JumpThreading/noalias-scope-decl.ll
+95-585 files

LLVM/project 6ebbdbe — llvm/test/Transforms/JumpThreading noalias-scope-decl.ll, llvm/test/Transforms/LoopUnroll noalias-disjoint-domain.ll

[NFC][Transforms] Add tests with undeclared scopes in cloned disjoint domains

Pre-commit tests for fixing #241246. When scopes from a disjoint-scope domain
are cloned into a clone of that domain, scopes of the same domain that
have no llvm.experimental.noalias.scope.decl in the cloned region
currently stay in the original domain. An !alias.scope list that uses
both kinds of scope is then split across the two domains, which leads
ScopedNoAliasAA to report a false NoAlias.

AI disclosure: Claude wrote these (and `llvm-reduce`d them), and
mostly wrote this commit message (I tinkered with it a bit)

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+143-0llvm/test/Transforms/LoopUnroll/noalias-disjoint-domain.ll
+42-0llvm/test/Transforms/JumpThreading/noalias-scope-decl.ll
+185-02 files

FreeBSD/src 821f8ae — sys/amd64/vmm vmm_instruction_emul.c

vmm: Don't assert on device errors in MOVS emulation

emulate_movs() asserts that it fails only with EFAULT, but a device read
or write can fail with other errors, such as EINVAL from lapic_mmio_read()
for an access whose 4-byte-aligned offset is not 16-byte aligned, or from
lapic_mmio_write() for an unaligned or non-4-byte access.  A guest could
therefore panic a kernel with INVARIANTS using a MOVS from the local APIC.
Return the error, as the other emulation functions do.

Reviewed by:    markj
MFC after:      1 week
Sponsored by:   Alchemilla Ventures Private Limited
DeltaFile
+0-2sys/amd64/vmm/vmm_instruction_emul.c
+0-21 files

FreeBSD/doc 04f38fa — shared releases.adoc, website/content/en where.adoc

stable/15 is now 15.2-STABLE
DeltaFile
+13-0shared/releases.adoc
+3-3website/content/en/where.adoc
+1-1website/static/security/errata-template.txt
+1-1website/static/security/advisory-template.txt
+18-54 files

HardenedBSD/src 17ff6a3 — sbin/ifconfig ifgre.c, sys/dev/mii lan867xphy.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+455-3tests/sys/net/if_gre.sh
+173-3sys/dev/mii/lan867xphy.c
+92-32sys/netinet6/ip6_gre.c
+92-30sys/netinet/ip_gre.c
+78-32sys/net/if_gre.c
+83-4sbin/ifconfig/ifgre.c
+973-1047 files not shown
+1,023-12813 files

HardenedBSD/src bf0df31 — sys/compat/linux linux_xattr.c, sys/kern uipc_socket.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+43-0tests/sys/kern/ktls_test.c
+13-2sys/netinet/tcp_stacks/rack.c
+9-1sys/compat/linux/linux_xattr.c
+1-1sys/kern/uipc_socket.c
+66-44 files

HardenedBSD/src de6328a — tests/sys/kern ssl_sendfile.c

tests/sys/kern/ssl_sendfile: :eagain_vs_eof: improve failure messaging

Convert many raw `ATF_REQUIRE(..)` macro calls to `ATF_REQUIRE_MSG(..)`
and output the sbytes attached to the context in provide meaningful
information with failure messages.

While here, fix a typo in a comment and some indentation in another
testcase (:random).

PR:             299447
MFC after:      1 week
DeltaFile
+10-6tests/sys/kern/ssl_sendfile.c
+10-61 files

FreeBSD/src de6328a — tests/sys/kern ssl_sendfile.c

tests/sys/kern/ssl_sendfile: :eagain_vs_eof: improve failure messaging

Convert many raw `ATF_REQUIRE(..)` macro calls to `ATF_REQUIRE_MSG(..)`
and output the sbytes attached to the context in provide meaningful
information with failure messages.

While here, fix a typo in a comment and some indentation in another
testcase (:random).

PR:             299447
MFC after:      1 week
DeltaFile
+10-6tests/sys/kern/ssl_sendfile.c
+10-61 files

FreeBSD/src a5d3d97 — crypto/openssh servconf.c

ssh: use defaultkey sentinel for ML-DSA-44 default host key

servconf_add_hostkey() compares its file argument to defaultkey by
pointer to skip an unreadable default key; the ML-DSA-44 entry passed
the "[default]" literal, so the skip (and the "No host key files found"
fallback) never applied to it.

Approved by:    re (cperciva)
MFC after:      1 week
Reviewed by:    emaste
Fixes: bb5c77e9d281 ("OpenSSH: Update to 10.4p1")
Differential Revision:  https://reviews.freebsd.org/D60922

(cherry picked from commit 2d6f961164e4ab7e823972336dc9cfaae6a88ed8)
(cherry picked from commit 55ede03fc24aa8de58814563e82e72cf8b34d9cc)
DeltaFile
+1-1crypto/openssh/servconf.c
+1-11 files

FreeBSD/src b171736 — crypto/openssh myproposal.h channels.c, crypto/openssh/openbsd-compat readpassphrase.c port-uw.c

OpenSSH: Update to 10.6p2

Full release notes are available at
https://www.openssh.org/txt/release-10.6p2 .

Selected items from the upstream release notes:

Future deprecation notice
-------------------------

 * scp(1): begin deprecating the -R flag, which is used to perform a
   remote-to-remote copy by executing scp on a remote host. This
   option is a fragile optimisation that is difficult to use because
   it requires credentials on the remote host. It also creates
   security risks if the shell quoting rules on the remote system
   where the copy is performed differ from the client's expectations.

   From OpenSSH 10.6, this option will continue to work but will
   cause a deprecation warning to be emitted to standard error. In

    [10 lines not shown]
DeltaFile
+13-5crypto/openssh/openbsd-compat/xcrypt.c
+13-4crypto/openssh/auth-passwd.c
+8-8crypto/openssh/openbsd-compat/port-uw.c
+5-5crypto/openssh/openbsd-compat/readpassphrase.c
+3-4crypto/openssh/channels.c
+3-2crypto/openssh/myproposal.h
+45-2812 files not shown
+63-4018 files

FreeBSD/src fc00d6b — libexec/rc/rc.d sshd

rc: Generate ML-DSA44/Ed25519 host keys by default

Commit bd9d7cdd1420 ("OpenSSH: Update to 10.5p1") introduced support for
ML-DSA44/Ed25519 host keys.

Generate these keys by default when the sshd service is first started.

Approved by:    re (cperciva)
Reported by:    Herbert J. Skuhra
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D61433

(cherry picked from commit 74ae9accdc2f9be13c8dab27c94ed42f6a7c8360)
(cherry picked from commit bb3fe4a04aff26d6c240ef7b37eafcf3e65d27c7)
DeltaFile
+6-3libexec/rc/rc.d/sshd
+6-31 files

FreeBSD/src d8fa89d — crypto/openssh misc-agent.c ed25519.sh, crypto/openssh/openbsd-compat port-linux.c port-linux-selinux.c

OpenSSH: Update to 10.6p1

This release contains security fixes and small bugfixes.

Full release notes are available at
https://www.openssh.com/txt/release-10.6 .

Selected items from the upstream release notes:

Security
========

 * ssh-agent(1): fix an interaction between agent locking and the
   session-bind at openssh.com extension that is used to identify
   forwarded agents. These binding requests were refused when the
   agent was locked, with the result that operations that were
   intended to be limited to local use only could be performed
   remotely, including the ability to add PKCS#11 tokens and make
   use of keys that had destination restrictions applied.

    [37 lines not shown]
DeltaFile
+4,598-1,983crypto/openssh/ed25519.c
+1,277-1,052crypto/openssh/ChangeLog
+256-165crypto/openssh/ed25519.sh
+191-65crypto/openssh/misc-agent.c
+243-0crypto/openssh/openbsd-compat/port-linux-selinux.c
+2-209crypto/openssh/openbsd-compat/port-linux.c
+6,567-3,474118 files not shown
+8,551-4,641124 files

LLVM/project 9b3c1a2 — llvm/test/CodeGen/AMDGPU sdwa-peephole-instr-gfx10.mir fold-immediate-output-mods.mir

AMDGPU: Use inline register class syntax in MIR tests (#242042)

Move away from keeping a registers section just to state the register
class. Delete the registers section when the class was the only used
field.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+130-286llvm/test/CodeGen/AMDGPU/fold-imm-f16-f32.mir
+109-295llvm/test/CodeGen/AMDGPU/shrink-vop3-carry-out.mir
+116-287llvm/test/CodeGen/AMDGPU/clamp-omod-special-case.mir
+124-268llvm/test/CodeGen/AMDGPU/sdwa-peephole-instr.mir
+96-220llvm/test/CodeGen/AMDGPU/fold-immediate-output-mods.mir
+100-214llvm/test/CodeGen/AMDGPU/sdwa-peephole-instr-gfx10.mir
+675-1,57065 files not shown
+1,580-4,14571 files

FreeBSD/src b6795c2 — crypto/openssh README.tun configure.ac, crypto/openssh/regress sshfp-connect.sh

OpenSSH: Update to 10.5p1

This release contains security fixes and small bugfixes.

Full release notes are available at
https://www.openssh.com/txt/release-10.5.

Selected items from the release notes:

Security
========

 * ssh-agent(1): fix an interaction between agent locking and the
   session-bind at openssh.com extension that is used to identify
   forwarded agents. These binding requests were refused when the
   agent was locked, with the result that operations that were
   intended to be limited to local use only could be performed
   remotely, including the ability to add PKCS#11 tokens and make
   use of keys that had destination restrictions applied.

    [37 lines not shown]
DeltaFile
+696-111crypto/openssh/ChangeLog
+308-0crypto/openssh/kexmlkem768ecdh.c
+144-41crypto/openssh/regress/sshfp-connect.sh
+140-19crypto/openssh/sshconnect2.c
+41-102crypto/openssh/configure.ac
+0-132crypto/openssh/README.tun
+1,329-40591 files not shown
+2,174-1,18197 files

LLVM/project 4d6d382 — llvm/include/llvm/Analysis LibcallLoweringInfo.h, llvm/include/llvm/IR RuntimeLibcalls.td

CodeGen: Use RuntimeLibcallsInfo for memset_pattern16 (#241384)

CodeGen passes shouldn't be using TargetLibraryInfo for functions they will 
emit. Use RuntimeLibcallsInfo which knows how to insert the correctly typed
and annotated declaration. This is a slight behavior change since 
RuntimeLibcallsInfo respects the triple's libcall availability, but doesn't respect 
TargetLibraryInfo "no-builtins" attributes. This is consistent with how regular 
memset is treated.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+14-16llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
+9-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/darwin.ll
+7-3llvm/include/llvm/IR/RuntimeLibcalls.td
+4-0llvm/include/llvm/Analysis/LibcallLoweringInfo.h
+34-254 files

LLVM/project 660c801 — llvm/lib/Target/AMDGPU AMDGPUISelDAGToDAG.cpp AMDGPUInstructionSelector.cpp

apply review
DeltaFile
+3-3llvm/lib/Target/AMDGPU/SIInstructions.td
+1-4llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+1-2llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+5-93 files

LLVM/project 3b9974f — clang/lib/CIR/CodeGen CIRGenItaniumCXXABI.cpp CIRGenModule.cpp, clang/test/CIR/CodeGen constructor-destructor-return-this.cpp

Revert "[CIR] Implement 'ctor/dtor returns this'" (#242107)

Reverts llvm/llvm-project#240954

clang/test/CIR/CodeGen/constructor-destructor-return-this.cpp is
failing, blocking presubmits.
DeltaFile
+83-86clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
+0-145clang/test/CIR/CodeGen/constructor-destructor-return-this.cpp
+7-9clang/lib/CIR/CodeGen/CIRGenCall.cpp
+1-11clang/lib/CIR/CodeGen/CIRGenCXXABI.h
+0-9clang/lib/CIR/CodeGen/CIRGenModule.cpp
+4-3clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
+95-2631 files not shown
+96-2647 files

LLVM/project 73d5361 — clang/test/CIR/CodeGen constructor-destructor-return-this.cpp array-subscript-inbounds.c, clang/test/CodeGenCXX constructor-destructor-return-this.cpp

Rebase

Created using spr 2.0.0-beta.2
DeltaFile
+8-376libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
+232-0clang/test/CIR/CodeGen/array-subscript-inbounds.c
+151-67libc/utils/docgen/docgen.py
+150-66libc/utils/docgen/header.py
+86-83clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
+145-0clang/test/CIR/CodeGen/constructor-destructor-return-this.cpp
+772-592516 files not shown
+2,448-1,601522 files

LLVM/project 4a5e49c — clang/test/CIR/CodeGen constructor-destructor-return-this.cpp array-subscript-inbounds.c, clang/test/CodeGenCXX constructor-destructor-return-this.cpp

Rebase

Created using spr 2.0.0-beta.2
DeltaFile
+8-376libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
+232-0clang/test/CIR/CodeGen/array-subscript-inbounds.c
+151-67libc/utils/docgen/docgen.py
+150-66libc/utils/docgen/header.py
+86-83clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
+145-0clang/test/CIR/CodeGen/constructor-destructor-return-this.cpp
+772-592516 files not shown
+2,448-1,601522 files

LLVM/project a12dcef — clang/test/CIR/CodeGen constructor-destructor-return-this.cpp array-subscript-inbounds.c, clang/test/CodeGenCXX constructor-destructor-return-this.cpp

Rebase

Created using spr 2.0.0-beta.2
DeltaFile
+8-376libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
+232-0clang/test/CIR/CodeGen/array-subscript-inbounds.c
+151-67libc/utils/docgen/docgen.py
+150-66libc/utils/docgen/header.py
+86-83clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
+145-0clang/test/CIR/CodeGen/constructor-destructor-return-this.cpp
+772-592516 files not shown
+2,448-1,601522 files

LLVM/project 5a068e0 — clang/test/CIR/CodeGen constructor-destructor-return-this.cpp array-subscript-inbounds.c, clang/test/CodeGenCXX constructor-destructor-return-this.cpp

Rebase

Created using spr 2.0.0-beta.2
DeltaFile
+8-376libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
+232-0clang/test/CIR/CodeGen/array-subscript-inbounds.c
+151-67libc/utils/docgen/docgen.py
+150-66libc/utils/docgen/header.py
+86-83clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
+145-0clang/test/CIR/CodeGen/constructor-destructor-return-this.cpp
+772-592516 files not shown
+2,448-1,601522 files

LLVM/project ab53de8 — compiler-rt/test/cfi devirtualize-speculatively.cpp

Rebase

Created using spr 2.0.0-beta.2
DeltaFile
+0-3compiler-rt/test/cfi/devirtualize-speculatively.cpp
+0-31 files

OpenZFS/src 6806a45 — tests/zfs-tests/tests/functional/zvol/zvol_stress zvol_stress.ksh

ZTS: zvol_stress: no fio verify_async on FreeBSD

On FreeBSD 16.0-CURRENT since main-n290812 (CI image 20261109),
zvol_stress fails every run: each fio dies with "got signal=11",
"err= 4" and "file hash not empty on exit" once its verify pass is
done.  It isn't ZFS: the same fio command line crashes on a plain
file on UFS.

fio starts its verify_async threads with a 2 * PTHREAD_STACK_MIN
stack, which is 4 KiB on FreeBSD amd64.  freebsd-src 2734bbbcba3c
("libthr: Create landing pad in thr_once in C++ exception") made
libthr.so link libgcc_s, so the first pthread_exit() in a process
now finds _Unwind_ForcedUnwind and dlopen()s libgcc_s in
thread_uw_init().  On a verify thread that overflows the one-page
stack into its guard page:

  #0 object_match_name (name="/lib/libgcc_s.so.1") rtld.c:6056
  #1 load_object rtld.c:2928
  #2 dlopen_object rtld.c:4044

    [15 lines not shown]
DeltaFile
+10-1tests/zfs-tests/tests/functional/zvol/zvol_stress/zvol_stress.ksh
+10-11 files

FreeBSD/src fada8b7 — sys/netinet/tcp_stacks rack.c

TCP RACK: fix RSM computation for TCP fast open

When spitting an RSM containing the SYN and data, honor the
sequence number used by the SYN flag when computing the offset
in the socket buffer.

Approved by:    re (cperciva)
PR:                     297006
Reviewed by:            rrs, Peter Lei
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D61149

(cherry picked from commit ff066579fd7719a6361e7ce8cc9ade47517d242d)
(cherry picked from commit d40890ffbd8bcacfc4e24c37daad931db8f31804)
DeltaFile
+13-2sys/netinet/tcp_stacks/rack.c
+13-21 files

FreeBSD/src 81c09c2 — sys/amd64/vmm/io vioapic.c

vmm: Skip TMR rebuilds for edge-to-edge IOAPIC writes

IOAPIC redirection-table writes rendezvous all active vCPUs to
rebuild their vlapic trigger-mode registers when fields other than
mask or polarity change. Retargeting an edge-triggered pin incurs
this cost even though it does not contribute to the TMR.

vioapic_update_tmr() rebuilds the TMR from level-triggered entries
only. Skip the rendezvous when the modified entry is edge-triggered
both before and after the write. Check the old and new trigger modes
so that edge-to-level and level-to-edge transitions still rebuild
the TMR. Retain the existing all-vCPU rebuild path, mask/polarity
exclusions and remote-IRR handling.

Approved by:    re (cperciva)
Approved by:    markj, cperciva
Differential Revision:  https://reviews.freebsd.org/D60721
MFC to:         releng/15.2
Reported by:    Wanpeng Qian <wanpengqian at gmail.com>

    [4 lines not shown]
DeltaFile
+6-4sys/amd64/vmm/io/vioapic.c
+6-41 files

FreeBSD/src ac965c2 — sys/amd64/vmm/intel vmx.c, sys/amd64/vmm/io vlapic_priv.h vlapic.c

vmm: Add a bulk TMR reset hook for Intel APICv

vioapic_update_tmr() resets all 256 vectors before rebuilding the
level-triggered vector set. With Intel virtual interrupt delivery,
each per-vector reset loads the VMCS, reads and writes an EOI-exit
bitmap, and clears the VMCS.

Add an optional bulk-reset hook so VMX can clear the four EOI-exit
bitmaps with one VMCS load/clear pair. Clear the software TMR banks
directly when using the hook, and retain the per-vector fallback
for backends without it.

Approved by:    re (cperciva)
Approved by:    markj, cperciva
Differential Revision:  https://reviews.freebsd.org/D60692
MFC to:         releng/15.2
Reviewed by:    markj

(cherry picked from commit ee9205f068c7675cf4d23e51cc98238d95ba1950)
(cherry picked from commit 88d7efb9e4fa03c8d364f9aeb88b10075e1bf69c)
DeltaFile
+21-0sys/amd64/vmm/intel/vmx.c
+11-1sys/amd64/vmm/io/vlapic.c
+1-0sys/amd64/vmm/io/vlapic_priv.h
+33-13 files

FreeBSD/src 4cbde86 — sys/compat/linux linux_file.c

linux: Bound native getdents and getdents64 batches

linux_getdents() and linux_getdents64() round their native read size up
to DEV_BSIZE before converting entries. For an unaligned caller buffer,
the native batch can contain more entries than fit in the Linux buffer.
Conversion then returns EINVAL even after copying complete entries,
and the native read has already advanced the directory position.

For counts of at least DEV_BSIZE, use min(args->count, MAXBSIZE) instead.
A 768-byte request, such as rustix's initial directory read, now uses a
768-byte native buffer rather than 1024. The converted Linux dirent and
dirent64 records are no larger than their native counterparts, so the
whole translated batch fits. Returning a short batch is allowed, and
consuming the whole native batch avoids needing to rewind the directory
position.

Keep the existing sizing for counts below DEV_BSIZE. This fixes the
oversized-batch case in both getdents interfaces, including legacy
getdents for 32-bit and 64-bit callers. The remaining small-buffer,

    [10 lines not shown]
DeltaFile
+18-2sys/compat/linux/linux_file.c
+18-21 files

FreeBSD/src d3c0220 — usr.sbin/bsdinstall/scripts pkgbase.in

bsdinstall: Set TMPDIR in pkgbase install

The FreeBSD-base repository (aka "pkgbase") is now created using 'pkg
repo -l' in order to make 'pkg rwhich' work.  Unfortunately this makes
the data.pkg file considerably larger, and FreeBSD 15.2-BETA1 fails to
install using a remote repository since the installer has a small /tmp
(20 MB).

Run pkg commands with 'env TMPDIR=<chrootdir>/tmp' since the /tmp in
the system being installed is considerably larger than the tmpfs which
the installer runs with.  Create <chrootdir>/tmp first so we can ensure
it has 1777 permissions.

Approved by:    re (cperciva)
Reviewed by:    bapt
MFC after:      1 day
Differential Revision:  https://reviews.freebsd.org/D61380

(cherry picked from commit a7163bd76986282fdcb059b91301d3214da49642)
(cherry picked from commit f3555a0e240ae2b26fdf0db2e3f68ec6846bbb58)
DeltaFile
+6-1usr.sbin/bsdinstall/scripts/pkgbase.in
+6-11 files

FreeBSD/src 1c99a7d — sys/modules/usb/i2ctinyusb Makefile

i2ctinyusb: do not list i2ctinyusb.c twice in SRCS

The module Makefile named its only source file in both the SRCS= line
and the SRCS+= line that follows.  bsd.kmod.mk tolerates the duplicate
in a normal build, but when the kernel is built with -flto=thin the
linker sees the same bitcode object twice and refuses to link the
module ("Expected at most one ThinLTO module per bitcode file").

Approved by:    re (cperciva)
Fixes:          54e231b373ef

(cherry picked from commit b5cd411af6418986fa0da9c12d02b9f26c344a4a)
(cherry picked from commit cfd1aabac12fc239d1c9b8433b29c68a25a7e5b6)
DeltaFile
+1-2sys/modules/usb/i2ctinyusb/Makefile
+1-21 files

FreeBSD/src 908d6b2 — sys/kern uipc_mqueue.c

mqueuefs: set *a_eofflag in VOP_READDIR

mqfs_readdir() never reported end of directory.  Since 77b273d8f5f4
VOP_READDIR_APV() asserts that a readdir which returns no entries also
sets *a_eofflag, so with INVARIANTS the final zero-length
getdirentries(2) that ls(1) issues on a mounted mqueuefs panics:

    panic: VOP_READDIR: eofflag not set

Report end of directory when the child list was walked to its end;
leave the flag clear when the walk stopped because the buffer was full.

Approved by:    re (cperciva)

(cherry picked from commit fbac0abdc5ab1fe867ac85635662ef06b2ee9d10)
(cherry picked from commit 6df22096ddb27edb169cfb6758d1dab130f9f683)
DeltaFile
+2-0sys/kern/uipc_mqueue.c
+2-01 files