[PW_SID:1097107] [v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB#1971
[PW_SID:1097107] [v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB#1971linux-riscv-bot wants to merge 1 commit into
Conversation
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>
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
|
Patch 1: "[v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB" |
PR for series 1097107 applied to workflow__riscv__for-next
Name: [v4] riscv: cif: reduce shadow stack size limit from 4GB to 2GB
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1097107
Version: 4