[ELF] .note.gnu.property: Require padding for the last piece (#240238)
parseGnuPropertyNote skips pr_datasz rounded up to the alignment but
checks only pr_datasz, reading out of bounds when the padding is
missing. GNU ld reports such a note as corrupt.
Fix #235225
[lldb] Skip TestScriptedFrameProvider expression test on non-x86 Linux (#240233)
`test_expression_at_frame_without_variables` still fails on aarch64
Linux after 58b0fd59e5fb with "Couldn't allocate space for materialized
struct".
The IR interpreter evaluates `1 + 1`, so no code runs in the inferior,
but LLDB still needs to allocate memory there for the expression's
arguments and result. On macOS, debugserver does that itself when it
gets the `_M` packet, using `mach_vm_allocate()`. On x86 Linux,
lldb-server does it by running the `mmap` syscall on the thread's real
registers. Neither path goes through LLDB's frames, so the scripted
frame 0 never matters there.
lldb-server doesn't implement `_M` on other Linux architectures, so on
aarch64 LLDB falls back to calling `mmap` in the inferior. Before making
that call, `Thread::CheckpointThreadState()` saves the registers of
frame 0, which is the scripted frame. Its `RegisterContextMemory` has no
backing address, so `ReadAllRegisterValues()` fails and the call is
[6 lines not shown]
devel/got: Cherry-pick patches for shared locking
When operating on a worktree, got locks the tree in order to avoid
problems with concurrent operations. Until now, got always used
exclusive locks, which caused problems when e.g. two separate parts
of the FreeBSD release build ran 'got tree' at once.
This has been fixed upstream but the 15.2 release cycle needs the
changes urgently and can't wait for the next got-portable release,
so cherry-pick those patches.
Reviewed by: naddy
Sponsored by: Amazon
MFC after: 1 minute
Differential Revision: https://reviews.freebsd.org/D61327
[SLP][NFC] Add tests for dependent seeds in rejected windows (#240208)
Precommit tests for the once-used seeds that depend on each other, such
as x * x and x * (x * x), whose window is rejected and whose users are
bypassed by the window walk.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[libc] Make a stream unbuffered when setvbuf is given a size of zero (#236517)
`setvbuf(f, nullptr, _IOFBF, 0)` and `setlinebuf(f)`, which is
`setvbuf(f, nullptr, _IOLBF, 0)`, take the branch that stores the
caller's buffer. That buffer is null, but the requested mode is kept, so
the stream is left fully or line buffered with no buffer. A buffer of no
size holds nothing, so this sets the mode to `_IONBF` to match.
Where it came from: with my libc `setlinebuf(stdout)` followed by
another write crashed `bluetoothctl --help` when stdout was a pipe,
through a null buffer in a line buffered stream. I could not reproduce
that crash in a unit test on current main, so the tests added here pass
with and without the change. They pin the behaviour a program can see: a
zero sized stream shows its writes without a flush, and a sized one
still waits for `fflush`. Nothing public reports the buffering mode, so
I can't test the mode directly.
AI disclosure: this patch was written with Claude Code. I reviewed the
change and ran the new tests.
Assisted-by: Claude
drm/amdgpu: Add checks to vbios fetch through ATRM
From Lijo Lazar
66b095839f0b3e1bfe75559fdbc6f6f2ac7c0330 in linux-6.18.y/6.18.61
8c3fcfc14fc1320a1155acb2dd7656fce7003bc0 in mainline linux
drm/amdgpu: add bounds check to prevent array overflow
From YiPeng Chai
e0f1d03b9a648bcbc47216332676c4f450aa8061 in linux-6.18.y/6.18.61
db15c49a17b8fab9ada38f3a548e5353d7d6b1a8 in mainline linux
[ELF] -r: Create kept SHT_GROUP sections as InputSection (#240234)
* If it has the SHF_MERGE flag, the group becomes a MergeInputSection
and finalizeShtGroup crashes reading symbols from the internal file.
* If it is named .note.GNU-stack, it is incorrectly discarded.
Fix #235240
drm/amdgpu: add buf length check
From Gangliang Xie
9614f912f9aec21bd1a6b70c6871e437b1fc302d in linux-6.18.y/6.18.61
473f99e4a262776141366f7fb10f101d0f22b019 in mainline linux
drm/radeon: avoid double free in r600 DPM cleanup
From Ruoyu Wang
d09f84813b4a67e1c2ca734335569fc61739cd7c in linux-6.18.y/6.18.61
d3f30034f861a585f8e487ae1555d9f288a96f87 in mainline linux
drm/amd/display: fix max dispclk_khz/dppclk_khz double 1000
From Charlene Liu
95437a99037738e926aeb38bd645f792dc88ab71 in linux-6.18.y/6.18.61
f48124ff35357d05a98d9cd5cb7982e7e5509003 in mainline linux
drm/amdgpu: Gate debugfs MMIO access on kernel lockdown
From Asad Kamal
7a8c7e9212c35e69a8c385d79fdcd7c403f1cf37 in linux-6.18.y/6.18.61
17ac73b24006700f50972d37e297dec1f523c14a in mainline linux
drm/amd/pm: Validate OD DPM triples before mutating tables
From Asad Kamal
29000475b125d1c8dda42d704b7d6bfa293a658c in linux-6.18.y/6.18.61
b390cb9d776039fc4f0be13b2649299079227d12 in mainline linux
drm/amdgpu/mes_v12_0: use mes schedule pipe for legacy queues on unified MES
From Jesse Zhang
86229fb465756fda6bc8b200a1c59bbc55959742 in linux-6.18.y/6.18.61
5ec4cc91708370847772f2a2397316dbd8d8f066 in mainline linux
[LoongArch] Regenerate checks for fptosi-sat.ll (#240230)
From #233004, presumably a mid-air collision somewhere given the commit
was pushed ~3 weeks ago.
image -t zsnapshot: Remove stale files from the previous image
With -i, files removed from the world were left behind in the new image.
Fixes: dd61d5134c ("do_clone: Stop overwriting - move that to do_clone_del")
(cherry picked from commit c10dc9a7fc71d6049254c39a5ad71b91886cb1c0)
Conflicts:
src/share/poudriere/image_zsnapshot.sh
jail -u -m src=: Remove stale files from the /usr/src copy
Files removed from the src tree were left behind in the jail's /usr/src.
Issue #1299
Fixes: dd61d5134c ("do_clone: Stop overwriting - move that to do_clone_del")
(cherry picked from commit 0ceb8092c18377bd45e69baa581e2a214b9cae2b)
Conflicts:
src/share/poudriere/jail.sh
[LoongArch] Extract FP vector element 0 as a subregister (#233004)
Element 0 of an LSX/LASX floating-point vector is the aliased FPR, so
extractelement with index 0 needs no [x]vreplvei/xvpickve.