]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mte: Fix double-freeing of the temporary tag storage during coredump
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 22 Dec 2022 18:12:49 +0000 (18:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:10 +0000 (11:58 +0100)
commit86ba576d17dfa51924fe8beb71914980f9438456
tree4baa17f9f259c2175f937c77014a187d35fcc8ee
parentbd7a91674d830c12aaa773167ed827262737447e
arm64: mte: Fix double-freeing of the temporary tag storage during coredump

commit 736eedc974eaafbf4360e0ea85fc892cea72a223 upstream.

Commit 4e0d1d87622f ("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.

Fixes: 4e0d1d87622f ("arm64: mte: Fix the stack frame size warning in mte_dump_tag_range()")
Cc: <stable@vger.kernel.org> # 5.18.x
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Seth 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: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/elfcore.c