s390/smp: __smp_rescan_cpus() - move cpumask away from stack
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 17 Feb 2021 06:13:02 +0000 (07:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 15:10:14 +0000 (16:10 +0100)
commit2597a7e20f98efc6f402b5c9959e76a50c44cc92
treed66023c3e9fda207c23048c4c37f56d0c8ebd5db
parenta3641e1cb8062ef05347ec79031b78487a679579
s390/smp: __smp_rescan_cpus() - move cpumask away from stack

[ Upstream commit 62c8dca9e194326802b43c60763f856d782b225c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/smp.c