Skip to contentSkip to conversation

test_kmod-avoid-potential-double-free-in-trigger_config_run_type.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 12, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: test_kmod: avoid potential double free in trigger_config_run_type()
has been removed from the -mm tree. Its filename was
test_kmod-avoid-potential-double-free-in-trigger_config_run_type.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Tiezhu Yang <[email protected]>
Subject: test_kmod: avoid potential double free in trigger_config_run_type()

Reset the member "test_fs" of the test configuration after a call of the function "kfree_const" to a null pointer so that a double memory release will not be performed.

Fixes d9c6a72d6fa2 ("kmod: add test driver to stress test the module loader")
Cc Alexei Starovoitov <[email protected]>
Cc Al Viro <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Chuck Lever <[email protected]>
Cc David Howells <[email protected]>
Cc David S. Miller <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc James Morris <[email protected]>
Cc Jarkko Sakkinen <[email protected]>
Cc J. Bruce Fields <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Josh Triplett <[email protected]>
Cc Kees Cook <[email protected]>
Cc Lars Ellenberg <[email protected]>
Cc Nikolay Aleksandrov <[email protected]>
Cc Philipp Reisner <[email protected]>
Cc Roopa Prabhu <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>
Cc Sergei Trofimovich <[email protected]>
Cc Sergey Kvachonok <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Tony Vroon <[email protected]>
Cc Christoph Hellwig <[email protected]>

---

 lib/test_kmod.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/test_kmod.c renamed from lib/test_kmod.c~test_kmod-avoid-potential-double-free-in-trigger_config_run_type +1 -1
@@ -745,7 +745,7 @@ static int trigger_config_run_type(struc
 		break;
 	case TEST_KMOD_FS_TYPE:
 		kfree_const(config->test_fs);
-		config->test_driver = NULL;
+		config->test_fs = NULL;
 		copied = config_copy_test_fs(config, test_str,
 					     strlen(test_str));
 		break;

_

Patches currently in -mm which might be from [email protected] are