Skip to content

[PW_SID:975256] riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives#570

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw975256
Closed

[PW_SID:975256] riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives#570
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw975256

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 975256 applied to workflow__riscv__fixes

Name: riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=975256
Version: 1

Linux RISC-V bot and others added 2 commits June 24, 2025 01:05
…ternatives

Under FTRACE=y, DYNAMIC_FTRACE=n, and RISCV_ALTERNATIVE_EARLY=n, the kernel
panics upon returning from _mcount() in the early boot path. This occurs
during _start_kernel() -> setup_vm() -> apply_early_boot_alternatives().

The CC_FLAGS_FTRACE is only removed from alternative.c when
CONFIG_RISCV_ALTERNATIVE_EARLY=y. Therefore, no function calls should be
made to alternative.c during early boot in this configuration.

Fixes: a35707c ("riscv: add memory-type errata for T-Head")
Signed-off-by: Changbin Du <changbin.du@huawei.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 103.41 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1996.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 2696.18 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.45 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.98 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 73.21 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
kdoc
Desc: Detects for kdoc errors
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: Prevent early kernel panic in instrumented apply_early_boot_alternatives"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch from b5ded79 to a7cb30d Compare June 27, 2025 17:47
@linux-riscv-bot linux-riscv-bot deleted the pw975256 branch July 2, 2025 01:06
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.

1 participant