Skip to content

[Deepin-Kernel-SIG] [linux 6.6.y] [KABI] apply kabi fixes for 6.6.152-6.6.155 - #2130

Open
opsiff wants to merge 3 commits into
deepin-community:linux-6.6.yfrom
opsiff:linux-6.6.y-2026-09-08-kabi
Open

[Deepin-Kernel-SIG] [linux 6.6.y] [KABI] apply kabi fixes for 6.6.152-6.6.155#2130
opsiff wants to merge 3 commits into
deepin-community:linux-6.6.yfrom
opsiff:linux-6.6.y-2026-09-08-kabi

Conversation

@opsiff

@opsiff opsiff commented Sep 8, 2026

Copy link
Copy Markdown
Member

Summary by Sourcery

Enhancements:

  • Apply Deepin KABI compatibility annotations to auxiliary vector sizing, CPU hotplug state enumeration, and per-CPU network statistics layouts for the 6.6.152–6.6.155 kernel updates.

deepin inclusion
category: kabi

Commit 305b667 ("binfmt_elf_fdpic: fix AUXV size calculation
for ELF_HWCAP3 and ELF_HWCAP4") increased AT_VECTOR_SIZE_BASE from 22
to 24, which enlarges the saved_auxv[] array in struct mm_struct and
changes the genksyms checksums of every exported symbol whose type
graph reaches struct mm_struct.

Keep the new value for the compiler but let genksyms keep seeing the
old value 22 via an __GENKSYMS__ conditional, so the checksums stay
identical to the previous release.

Fixes: 305b667 ("binfmt_elf_fdpic: fix AUXV size calculation for ELF_HWCAP3 and ELF_HWCAP4")
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
deepin inclusion
category: kabi

Commit 5ac8f0d ("LoongArch: Add cpuhotplug hooks to fix high
cpu usage of vCPU threads") inserted CPUHP_AP_LOONGARCH_ARCH_TIMER_STARTING
in the middle of enum cpuhp_state, changing the genksyms expansion of
the enum and the checksums of the exported cpuhp symbols.

Wrap the new enumerator with DEEPIN_KABI_EXTEND_ENUM so that genksyms
keeps seeing the old enum while the compiler still gets the new state.

Fixes: 5ac8f0d ("LoongArch: Add cpuhotplug hooks to fix high cpu usage of vCPU threads")
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
@sourcery-ai

sourcery-ai Bot commented Sep 8, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Applies 6.6.152–6.6.155 KABI fixes by controlling genksyms-only auxiliary-vector sizing, marking a CPU hotplug enum extension, and moving KCOV task_struct storage into stable Deepin KABI slots with disabled-configuration reservations.

Flow diagram for configuration-dependent KABI preservation

flowchart TD
    A[Build kernel headers] --> B{CONFIG_KCOV enabled?}
    B -->|Yes| C[Use KABI slots 2-5 for KCOV task storage]
    B -->|No| D[Reserve KABI slots 2-5]
    C --> E[Reserve slots 6-8]
    D --> E
Loading

Flow diagram for genksyms auxiliary-vector compatibility

flowchart TD
    A[Process auxvec.h] --> B{__GENKSYMS__ defined?}
    B -->|Yes| C[AT_VECTOR_SIZE_BASE = 22]
    B -->|No| D[AT_VECTOR_SIZE_BASE = 24]
Loading

File-Level Changes

Change Details Files
Adjust KABI-visible auxiliary-vector sizing for symbol generation while preserving the runtime size.
  • Use a reduced base count under GENKSYMS and retain the full count for normal builds.
  • Update the explanatory comment for the auxiliary-table entry count.
include/linux/auxvec.h
Make the CPU hotplug enum extension KABI-aware.
  • Wrap the LoongArch architecture timer enum entry with DEEPIN_KABI_EXTEND_ENUM.
  • Include the Deepin KABI macro definitions in the CPU hotplug header.
include/linux/cpuhotplug.h
Relocate KCOV task fields into Deepin KABI-managed slots to preserve struct task_struct compatibility.
  • Remove the original KCOV fields from their prior conditional block.
  • Use DEEPIN_KABI_USE_SPLIT for the five KCOV fields when CONFIG_KCOV is enabled.
  • Reserve the corresponding KABI slots when KCOV is disabled, while retaining later reserved slots.
include/linux/sched.h

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from opsiff. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@opsiff
opsiff force-pushed the linux-6.6.y-2026-09-08-kabi branch from 53dac14 to 3e47488 Compare September 8, 2026 09:01
deepin inclusion
category: kabi

Commit 7806ff0e8a4d9 ("net: core,vrf: Change pcpu_dstat fields to
u64_stats_t") changed the fields of struct pcpu_dstats from u64 to
u64_stats_t, and commit 171f95d662863 ("net: harmonize tstats and
dstats") moved rx_drops behind tx_bytes.  Both reached us through the
v6.6.153 stable update.  The struct is reachable from struct net_device,
so the change alters the genksyms checksums of every exported symbol
whose type graph contains it (netdev, skb, socket, netlink, tls, ...).

On x86_64 u64_stats_t has the same size as u64, so the binary layout is
unchanged; the struct is per-cpu data allocated and accessed only by the
core kernel through dedicated helpers.  Keep the new upstream layout for
the compiler but let genksyms keep seeing the old plain u64 members in
the old order with DEEPIN_KABI_BROKEN_REMOVE_BLOCK/INSERT_BLOCK.

Fixes: 7806ff0e8a4d9 ("net: core,vrf: Change pcpu_dstat fields to u64_stats_t")
Fixes: 171f95d662863 ("net: harmonize tstats and dstats")
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The CPU hotplug state uses an end-extension annotation for a middle enum insertion.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds Deepin KABI annotations for Linux 6.6.152–6.6.155 compatibility changes.

Changes:

  • Preserves auxiliary-vector sizing signatures.
  • Annotates a CPU hotplug enum addition.
  • Preserves historical network-stat structure signatures.
File summaries
File Description
include/linux/auxvec.h Retains the previous genksyms size.
include/linux/cpuhotplug.h Annotates the new LoongArch state.
include/linux/netdevice.h Masks the updated statistics layout from genksyms.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

CPUHP_AP_TEGRA_TIMER_STARTING,
CPUHP_AP_ARMADA_TIMER_STARTING,
CPUHP_AP_LOONGARCH_ARCH_TIMER_STARTING,
DEEPIN_KABI_EXTEND_ENUM(CPUHP_AP_LOONGARCH_ARCH_TIMER_STARTING)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants