History

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

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.

Catalin Marinas committed 3 years ago

Commit 736eedc1 parent eb9a8521 file · +0 −1Browse files

Unified · Split

arch/arm64/kernel/elfcore.c+0−1
@@ -65,7 +65,6 @@ static int mte_dump_tag_range(struct coredump_params *cprm, · 64 unmodified lines
65 mte_save_page_tags(page_address(page), tags);65 mte_save_page_tags(page_address(page), tags);
66 put_page(page);66 put_page(page);
67 if (!dump_emit(cprm, tags, MTE_PAGE_TAG_STORAGE)) {67 if (!dump_emit(cprm, tags, MTE_PAGE_TAG_STORAGE)) {
68 mte_free_tag_storage(tags);
69 ret = 0;68 ret = 0;
70 break;69 break;
71 }70 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t