projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
588a079
)
s390/smp: __smp_rescan_cpus() - move cpumask away from stack
author
Heiko Carstens
<hca@linux.ibm.com>
Wed, 17 Feb 2021 06:13:02 +0000
(07:13 +0100)
committer
Vasily Gorbik
<gor@linux.ibm.com>
Tue, 23 Feb 2021 23:31:22 +0000
(
00:31
+0100)
Avoid a potentially large stack frame and overflow by making
"cpumask_t avail" a static variable. There is no concurrent
access due to the existing locking.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/smp.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/smp.c
b/arch/s390/kernel/smp.c
index 9fa85c927a0ce02d5ad7913feab050b64e331225..3d838b7bbb3b6d57d881678c3fe71ec2c5e399cd 100644
(file)
--- a/
arch/s390/kernel/smp.c
+++ b/
arch/s390/kernel/smp.c
@@
-775,7
+775,7
@@
static int smp_add_core(struct sclp_core_entry *core, cpumask_t *avail,
static int __smp_rescan_cpus(struct sclp_core_info *info, bool early)
{
struct sclp_core_entry *core;
- cpumask_t avail;
+
static
cpumask_t avail;
bool configured;
u16 core_id;
int nr, i;