[SPARC][IAS] Adjust bounds check in %rX name parsing (#218301)
Fix an off-by-one error that results in %r31 being incorrectly rejected.
This was reported by the folks at OpenBSD.
EC2: Enable autogrowing filesystems post-boot
Enable the new growfs_postboot mechanism. Note that this also implies
disabling automatic allocation of swap space on the root disk, since we
cannot grow the root filesystem if swap space is allocated after it.
This will not be MFCed since it is a significant behavioural change.
Sponsored by: Amazon
Relnotes: yes
rc+devd: Add growfs_postboot
In VM and cloud environments it is often possible to enlarge virtual
disks; this can be useful, for example, if a system is launched with a
small root disk and it later becomes clear that more space is needed.
On kernels which support run-time resizing of disks (for NVMe, this was
added in November 2025; some other disk types have supported this for
longer) a SIZECHANGE notification is sent to userland via devd.
Add a "nostart" rc.d script (runnable manually but not automatically at
boot time) and a devd script which invokes it when a notification
arrives. The rc.d script enlarges the "final partition" on partitioned
geoms, or the UFS filesystem or zpool device when triggered on a disk
containing either of those.
Reviewed by: imp, ziaee
MFC after: 2 weeks
Relnotes: Disk partitions and filesystems can be enlarged
[4 lines not shown]
[BOLT] Add option --merge-text-sections (#217732)
With BOLT optimization enabled the output carries the new hot code in
.text and the cold code in .text.cold, allocated back to back in the
same segment. Some consumers may prefer a single .text covering both.
The two text sections are already in one contiguous address range, so
only the section header table separates them. Under this new option
"--merge-text-sections" the lowest addressed code section keeps the
header, reports the extent of the whole run under the name .text, and
the rest are marked anonymous so no header is written for them. Their
contents and addresses are untouched, which keeps the emitted code byte
for byte identical to the one built without the option.
Symbols defined in a folded section, such as cold fragments, take the
index of the merged section so they won't end up referencing SHN_UNDEF.
Each folded section also gets a local marker symbol, named as
".bolt.pre_merge<original_section_name>", recording the name and start
address it had before the merge, so the previous layout stays
[9 lines not shown]
[VectorCombine] Support simplification to scalar store for multiple insertelt (#132820)
VectorCombine already folds a load–insertelement–store sequence
containing
a single insertion into a scalar store. Extend this fold to chains of
insertelement instructions:
V0 = load vector from p
V1 = insertelement V0, x1, i1
...
Vn = insertelement V(n-1), xn, in
store Vn to p
=>
store x1 to element i1 of the vector at p
...
store xn to element in of the vector at p
[4 lines not shown]
devel/semver: Update to 1.0.1
Port changes:
- Include an upstreamed patch to unbreak the tests.
- Add DOCS and EXAMPLES options to install documentation and examples.
- Disable separate install of the license file.
Changelog: https://github.com/Neargye/semver/releases/tag/v1.0.1
PR: 297705
[flang] Do not branch to a FORMAT statement from an assigned GO TO
Label analysis already classifies which labeled statements may be named by
a statement that branches. Record the positions of those statements in the
semantics context and consult it when lowering records the targets of an
assigned GO TO, so that a FORMAT statement is not given a target block.
A GO TO whose variable holds only a format label now reaches the run-time
error instead of branching into the FORMAT statement.
The label analysis is built once and shared: AnalyzeLabels() runs the
constraint checks first and records the branch targets only if they pass,
since a program with fatal errors is not lowered.
Co-Authored-By: Claude Opus 5 (1M context) <noreply at anthropic.com>
[flang] Record the position of a labeled program-unit END statement (#217842)
The END statement of a program unit is visited in advance, before the
statement visitor has moved its current position onto it, so the
position recorded for a label on that statement was whatever statement
came last -- a null source position for the first program unit in a
file, and the preceding unit's position for the others. Pass the
statement position to AddTargetLabelDefinition explicitly instead of
reading it from the visitor.
A diagnostic anchored on such a label had no location to report:
```fortran
subroutine s(j)
integer :: j
write(*,fmt=40)
go to j
40 end subroutine
```
before:
[16 lines not shown]
drm/client: Move dumb-buffer handling to drm_client_framebuffer_create()
From Thomas Zimmermann
60f1a2ecdf8b958f0bec81e1b9886ec9d8d85ff3 in linux-6.18.y/6.18.46
2d262a483c7a128e50cdb64a0ec20c6d78df66cc in mainline linux
drm/client: Remove pitch from struct drm_client_buffer
From Thomas Zimmermann
841bc853a2b115457d980891a44e64c5122f7bca in linux-6.18.y/6.18.46
dce4657ff526b65007fe8d5c92968a933cc7c9da in mainline linux
drm/log: Fix out-of-bounds read on empty message length
From Shixiong Ou
16a2716910ecf7d31bf3c033ee7c506a0b00b2ee in linux-6.18.y/6.18.46
60baa179ed1333535f6e2da4133511db55278ee4 in mainline linux
drm/amd/pm: fix pptable use-after-free
From Yang Wang
8c685df5c3b261c42505110965b42f9a754eb9b7 in linux-6.18.y/6.18.46
bb493058c35c8676e48269ab6732688ea733d23c in mainline linux
drm/amd/pm: adjust the visibility of pp_table sysfs node
From Yang Wang
2895aeb4327c9f3452ad705f9f303a5b8697934b in linux-6.18.y/6.18.46
5de8ce0f3709ad93ca5a579aa45cf1b52d72bc90 in mainline linux
drm/amdgpu: disallow multiple FENCE chunks in one submit
From Junrui Luo
71aa45f7bfe46fbc6f51e7832573ff49b6005fea in linux-6.18.y/6.18.46
931cd1d1baeae68e8eb2c23bc1f3d8934dca6241 in mainline linux
drm/amdgpu: Fix UVD decode image min size calculation
From David Rosca
25ee120f3803ad9e416ef9f76f4c3234cc4d645b in linux-6.18.y/6.18.46
b8bb9ba3f101a1b0011f785a577a4a0a38371174 in mainline linux
drm/amdgpu: Fix UVD dpb min size calculation for H264
From David Rosca
38914cb2c6afb5fe00241ea3438e655822196378 in linux-6.18.y/6.18.46
21a8084cd76223a13493237e04d45f5226d7cee6 in mainline linux
drm/amdgpu: Fix UVD min buffer sizes
From David Rosca
c76e5cca0675b83d3a7bf69282c3cf5754c336c6 in linux-6.18.y/6.18.46
18727670b44753865b81c56a9338c0d7bd102c54 in mainline linux
drm/amdgpu: Implement insert_end for VCE 3
From David Rosca
86a5cb020322156b188b16ddec94872dbdbfc5ba in linux-6.18.y/6.18.46
d5ab4c6a64efef2d143a96df5357f59703cd703d in mainline linux
drm/amdgpu: Reject UVD message with dimensions above 4096
From David Rosca
339deb76ee4859ea973e435c9a9a4a4fefc29338 in linux-6.18.y/6.18.46
8c9aebcdd9f46f7a14b98d6ab18574b7a48fbb08 in mainline linux
drm/amdgpu: validate GEM_CREATE domain combinations
From Candice Li
220aa2589d7321fb68d2e8597862711b5f22ae0b in linux-6.18.y/6.18.46
5e9d136ad74df4edec67e502ce267597064d8f86 in mainline linux
drm/amdgpu: check ASPM on the dGPU host link
From Yang Wang
a082bd76c5f255ff825276f168b1143bc2fc2816 in linux-6.18.y/6.18.46
2a9c5154a5650c09ad44ff5e1dff74754e15a3c6 in mainline linux
drm/amdgpu: fix nbif 6.3.1 l1 low power not functional
From Yang Wang
916e8a1550be1a96f5af2f12bd3e78ffbcd96e9b in linux-6.18.y/6.18.4
cd688a3cb342b9f56399aa076157f1c324c15c5a in mainline linux
drm/amdgpu: Reject UVD message with invalid number of h265 refs
From David Rosca
e304c3e0d9ce251887be1f274aa0ed52219d5fd7 in linux-6.18.y/6.18.46
9fca434208f1f9ab977feac62df8ebb1cc7ce893 in mainline linux
drm/amd/display: fix BT.2020 YCbCr output CSC matrices for DCE
From Nathan Lucas
e3e6a631dcb1c32bd12c602fe51364ed5f5c3d27 in linux-6.18.y/6.18.46
cd22349e86faf6e15e6c622d70c0efc57d43201e in mainline linux
drm/amd/display: fix BT.2020 YCbCr limited output CSC matrix
From Nathan Lucas
cd99fa1cbaf5a5d745b90aacc39442d10fce71d1 in linux-6.18.y/6.18.46
2f9a5c0f018d4a1586ee892f81f1383219676415 in mainline linux
drm/amd/display: Fix NULL pointer dereference in amdgpu_dm_crtc_set_vblank()
From Samuel Pitoiset
5045fb4c70bfde36a05e0f41cf35ddfb6d85d3af in linux-6.18.y/6.18.46
f2a1c4c6fe0a6fcde02e59dde546dba28d283635 in mainline linux