module-release-codetag-section-when-module-load-fails.patch removed from -mm tree
The quilt patch titled
Subject: module: release codetag section when module load fails
has been removed from the -mm tree. Its filename was
module-release-codetag-section-when-module-load-fails.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: David Wang <[email protected]>
Subject: module: release codetag section when module load fails
Date: Tue, 20 May 2025 00:38:23 +0800
When module load fails after memory for codetag section is ready, codetag section memory will not be properly released. This causes memory leak, and if next module load happens to get the same module address, codetag may pick the uninitialized section when manipulating tags during module unload, and leads to "unable to handle page fault" BUG.
---
kernel/module/main.c | 1 + 1 file changed, 1 insertion(+)
kernel/module/main.c renamed from kernel/module/main.c~module-release-codetag-section-when-module-load-fails +1 -0
@@ -2829,6 +2829,7 @@ static void module_deallocate(struct mod {percpu_modfree (mod);module_arch_freeing_init (mod); +codetag_free_module_sections (mod);free_mod_mem (mod); }
_
Patches currently in -mm which might be from [email protected] are