Commit ee863e21 authored by Catalin Marinas's avatar Catalin Marinas Committed by Lee Jones
Browse files

UPSTREAM: arm64: mte: Fix double-freeing of the temporary tag storage during coredump



Commit 16decce2 ("arm64: mte: Fix the stack frame size warning in
mte_dump_tag_range()") moved the temporary tag storage array from the
stack to slab but it also introduced an error in double freeing this
object. Remove the in-loop freeing.

Bug: 254441685
Fixes: 16decce2 ("arm64: mte: Fix the stack frame size warning in mte_dump_tag_range()")
Cc: <stable@vger.kernel.org> # 5.18.x
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Reported-by: default avatarSeth Jenkins <sethjenkins@google.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20221222181251.1345752-2-catalin.marinas@arm.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
(cherry picked from commit 736eedc9)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ia5de6c7ff53a9981e37987c99c83f8b0a88ed240
parent 7dc85aba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment