Skip to content

[PW_SID:1097108] [v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB#1972

Closed
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__for-nextfrom
pw1097108
Closed

[PW_SID:1097108] [v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB#1972
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__for-nextfrom
pw1097108

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 1097108 applied to workflow__riscv__for-next

Name: [v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1097108
Version: 5

Rationale:

1. Shadow stacks only store return addresses (8 bytes per entry), not
   local variables, function parameters, or saved registers. A 512MB
   shadow stack is far more than sufficient for any practical
   application, even with extremely deep recursion. This size
   maintains adequate while being more resource-efficient margin

2. On memory-constrained systems (e.g., platforms with only 4GB of
   physical memory, which is a common configuration), allocating 4GB
   of virtual address space for shadow stack per process/thread can
   lead to virtual memory allocation failures when the overcommit mode
   is set to OVERCOMMIT_GUESS or OVERCOMMIT_NEVER:
   Error: "__vm_enough_memory: not enough memory for the allocation"

Suggested-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 114.93 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1014.50 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1374.75 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 19.39 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 20.88 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.63 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 76.76 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.31 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
kdoc
Desc: Detects for kdoc errors
Duration: 0.71 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v5] riscv: cif: reduce shadow stack size limit from 4GB to 512MB"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot deleted the pw1097108 branch May 19, 2026 21:20
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