Skip to content

[CLK 6.18] spec: Enable Rocky 10 builds - #1526

Open
bmastbergen wants to merge 2 commits into
ciq-6.18.yfrom
ciq-6.18.y-rocky-10
Open

[CLK 6.18] spec: Enable Rocky 10 builds#1526
bmastbergen wants to merge 2 commits into
ciq-6.18.yfrom
ciq-6.18.y-rocky-10

Conversation

@bmastbergen

Copy link
Copy Markdown
Collaborator
  • spec: use %{rhel} for el version and conditionally use system bindgen
    Replace the hardcoded el_version with %{rhel} directly, which is set
    automatically by the buildroot. This allows the same branch to produce
    el9 packages in a Rocky 9 mock and el10 packages in a Rocky 10 mock.

    Update generate_tarball.sh to accept the el version as an optional CLI
    argument (e.g. ./generate_tarball.sh 10), falling back to rpm --eval
    '%{rhel}' when not specified.

    On Rocky 10, use the system bindgen-cli package (available in CRB)
    instead of building from the bundled source tarball.

    Extend the RPM Build CI workflow to validate builds for both Rocky 9
    and Rocky 10 by adding el_version as a matrix dimension.

  • crypto: rng: fix local_unlock() with non-percpu pointer for GCC 14
    GCC 14 enforces named address space checking for percpu pointers
    (__seg_gs on x86_64). local_unlock() expands through this_cpu_ptr(),
    which requires a __percpu pointer argument.

    The devrandom code in lock_default_rng() correctly acquires the
    local lock using the percpu pointer pcri, but the unlock paths used the
    already-dereferenced cri pointer instead.

    Fix by using the percpu pointer for all local_unlock() calls

Replace the hardcoded el_version with %{rhel} directly, which is set
automatically by the buildroot.  This allows the same branch to produce
el9 packages in a Rocky 9 mock and el10 packages in a Rocky 10 mock.

Update generate_tarball.sh to accept the el version as an optional CLI
argument (e.g. ./generate_tarball.sh 10), falling back to rpm --eval
'%{rhel}' when not specified.

On Rocky 10, use the system bindgen-cli package (available in CRB)
instead of building from the bundled source tarball.

Extend the RPM Build CI workflow to validate builds for both Rocky 9
and Rocky 10 by adding el_version as a matrix dimension.
GCC 14 enforces named address space checking for percpu pointers
(__seg_gs on x86_64). local_unlock() expands through this_cpu_ptr(),
which requires a __percpu pointer argument.

The devrandom code in lock_default_rng() correctly acquires the
local lock using the percpu pointer pcri, but the unlock paths used the
already-dereferenced cri pointer instead.

Fix by using the percpu pointer for all local_unlock() calls
@bmastbergen bmastbergen added the testing Label for marking PRs which are created for testing purposes and should not be reviewed. label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Label for marking PRs which are created for testing purposes and should not be reviewed.

Development

Successfully merging this pull request may close these issues.

1 participant