Skip to content

[PW_SID:1118739] riscv: alternative: Statically compute alternative section boundaries and patch compat vDSO#2170

Closed
linux-riscv-bot wants to merge 4 commits into
workflow__riscv__fixesfrom
pw1118739
Closed

[PW_SID:1118739] riscv: alternative: Statically compute alternative section boundaries and patch compat vDSO#2170
linux-riscv-bot wants to merge 4 commits into
workflow__riscv__fixesfrom
pw1118739

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1118739 applied to workflow__riscv__fixes

Name: riscv: alternative: Statically compute alternative section boundaries and patch compat vDSO
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1118739
Version: 1

Linux RISC-V bot and others added 4 commits June 25, 2026 20:36
Currently the alternative sections are extracted from the vDSO
binaries at runtime. This has runtime overhead and also doesn't
work for the compat vDSO.

Extract the offsets of the alternative section during the build with the
existing symbol extraction machinery.

Also add dummy symbols as fallback.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Currently the alternative sections are extracted from the vDSO
binaries at runtime. This has runtime overhead and also doesn't
work for the compat vDSO.

Use the offsets generated during the build instead, fixing both issues.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The vDSO for compat processes can also contain alternative entries.

Patch those, too.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 120.64 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1408.76 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1716.66 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 22.39 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 23.79 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.00 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 82.31 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.58 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
kdoc
Desc: Detects for kdoc errors
Duration: 0.96 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
module-param
Desc: Detect module_param changes
Duration: 0.47 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.44 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[1/3] riscv: vdso: Add symbols for the alternative section boundaries"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.55 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 119.45 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1391.36 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1717.46 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 22.15 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 23.80 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 79.00 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.42 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
kdoc
Desc: Detects for kdoc errors
Duration: 0.91 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
module-param
Desc: Detect module_param changes
Duration: 0.45 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.33 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[2/3] riscv: alternative: Use the statically extracted vDSO section offsets"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.44 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 119.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1381.07 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1688.65 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 22.54 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 23.70 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.82 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 78.44 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.48 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
kdoc
Desc: Detects for kdoc errors
Duration: 0.94 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
module-param
Desc: Detect module_param changes
Duration: 0.46 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.94 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[3/3] riscv: alternative: Also patch the compat vDSO"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.53 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch 2 times, most recently from 89be0ce to dc5ff20 Compare July 7, 2026 03:25
@linux-riscv-bot
linux-riscv-bot deleted the pw1118739 branch July 8, 2026 01:56
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.

2 participants