Patch "arm64: mte: Fix double-freeing of the temporary tag storage during coredump" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm64-mte-fix-double-freeing-of-the-temporary-tag-storage-during-coredump.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 736eedc974eaafbf4360e0ea85fc892cea72a223 Mon Sep 17 00:00:00 2001
From: Catalin Marinas <catalin.marinas@xxxxxxx>
Date: Thu, 22 Dec 2022 18:12:49 +0000
Subject: arm64: mte: Fix double-freeing of the temporary tag storage during coredump

From: Catalin Marinas <catalin.marinas@xxxxxxx>

commit 736eedc974eaafbf4360e0ea85fc892cea72a223 upstream.

Commit 16decce22efa ("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: 16decce22efa ("arm64: mte: Fix the stack frame size warning in mte_dump_tag_range()")
Cc: <stable@xxxxxxxxxxxxxxx> # 5.18.x
Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx>
Reported-by: Seth Jenkins <sethjenkins@xxxxxxxxxx>
Cc: Will Deacon <will@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20221222181251.1345752-2-catalin.marinas@xxxxxxx
Signed-off-by: Will Deacon <will@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 arch/arm64/kernel/elfcore.c |    1 -
 1 file changed, 1 deletion(-)

--- a/arch/arm64/kernel/elfcore.c
+++ b/arch/arm64/kernel/elfcore.c
@@ -65,7 +65,6 @@ static int mte_dump_tag_range(struct cor
 		mte_save_page_tags(page_address(page), tags);
 		put_page(page);
 		if (!dump_emit(cprm, tags, MTE_PAGE_TAG_STORAGE)) {
-			mte_free_tag_storage(tags);
 			ret = 0;
 			break;
 		}


Patches currently in stable-queue which might be from catalin.marinas@xxxxxxx are

queue-6.1/elfcore-add-a-cprm-parameter-to-elf_core_extra_-phdrs-data_size.patch
queue-6.1/arm64-mte-fix-double-freeing-of-the-temporary-tag-storage-during-coredump.patch
queue-6.1/arm64-cmpxchg_double-hazard-against-entire-exchange-variable.patch
queue-6.1/arm64-mte-avoid-the-racy-walk-of-the-vma-list-during-core-dump.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux