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
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 }

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