Commit 1a0fcd51 authored by Catalin Marinas's avatar Catalin Marinas Committed by Suren Baghdasaryan
Browse files

UPSTREAM: arm64: mte: Fix the stack frame size warning in mte_dump_tag_range()



With 64K page configurations, the tags array stored on the stack of the
mte_dump_tag_range() function is 2048 bytes, triggering a compiler
warning when CONFIG_FRAME_WARN is enabled. Switch to a kmalloc()
allocation via mte_allocate_tag_storage().

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Fixes: 6dd8b1a0 ("arm64: mte: Dump the MTE tags in the core file")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20220401151356.1674232-1-catalin.marinas@arm.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>

(cherry picked from commit 16decce2)
Bug: 236350065
Signed-off-by: default avatarYee <Lee&lt;yee.lee@mediatek.com>
Change-Id: I6691f25d4903c186677d57c586c866355f8bc40e
parent 29f69461
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment