diff options
author | Michael Ellerman <[email protected]> | 2022-06-02 00:31:14 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2022-06-02 22:56:47 +1000 |
commit | 3e8635fb2e072672cbc650989ffedf8300ad67fb (patch) | |
tree | 107baaf2dc0b2959aeaca60ca9d0bb6a50af255f /tools/perf/scripts/python/task-analyzer.py | |
parent | 07bf9431b1590d1cd7a8d62075d0b50b073f0495 (diff) |
powerpc/kasan: Force thread size increase with KASAN
KASAN causes increased stack usage, which can lead to stack overflows.
The logic in Kconfig to suggest a larger default doesn't work if a user
has CONFIG_EXPERT enabled and has an existing .config with a smaller
value.
Follow the lead of x86 and arm64, and force the thread size to be
increased when KASAN is enabled.
That also has the effect of enlarging the stack for 64-bit KASAN builds,
which is also desirable.
Fixes: edbadaf06710 ("powerpc/kasan: Fix stack overflow by increasing THREAD_SHIFT")
Reported-by: Erhard Furtner <[email protected]>
Reported-by: Christophe Leroy <[email protected]>
[mpe: Use MIN_THREAD_SHIFT as suggested by Christophe]
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions