Skip to content

Commit 736eedc

Browse files
ctmarinaswilldeacon
authored andcommitted
arm64: mte: Fix double-freeing of the temporary tag storage during coredump
Commit 16decce ("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: 16decce ("arm64: mte: Fix the stack frame size warning in mte_dump_tag_range()") Cc: <[email protected]> # 5.18.x Signed-off-by: Catalin Marinas <[email protected]> Reported-by: Seth Jenkins <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent eb9a852 commit 736eedc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/arm64/kernel/elfcore.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ static int mte_dump_tag_range(struct coredump_params *cprm,
6565
mte_save_page_tags(page_address(page), tags);
6666
put_page(page);
6767
if (!dump_emit(cprm, tags, MTE_PAGE_TAG_STORAGE)) {
68-
mte_free_tag_storage(tags);
6968
ret = 0;
7069
break;
7170
}

0 commit comments

Comments
 (0)