summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>2026-09-25 05:55:45 -0700
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-09-25 15:42:19 +0200
commit112a666bd82e96e4a01e0cd8a0fb9c88dd0bce38 (patch)
tree0d42525dbfac58d89593d1e663f8d048acd5e9fa /scripts/Makefile.thinlto
parent532caaa2f445b22b74b88b4023a810426772db54 (diff)
downloadlinux-112a666bd82e96e4a01e0cd8a0fb9c88dd0bce38.tar.gz
linux-112a666bd82e96e4a01e0cd8a0fb9c88dd0bce38.zip
mtd: virt-concat: unlink discarded items before freeing
mtd_virt_concat_destroy_items() frees each item without removing it from concat_node_list. list_for_each_entry_safe() protects the current traversal, but concat_node_list still points to the freed items afterward. The function also unwinds errors from mtd_virt_concat_node_create(). A later initialization can traverse a freed item in mtd_is_part_concat(), causing a use-after-free. Unlink each item before freeing it. Fixes: 43db6366fc2d ("mtd: Add driver for concatenating devices") Cc: stable@vger.kernel.org Assisted-by: Codex:gpt-5.6, smatch Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions