Skip to contentSkip to conversation

add-kunit-struct-to-current-task.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 14, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kasan/kunit: add KUnit Struct to Current Task
has been removed from the -mm tree. Its filename was
add-kunit-struct-to-current-task.patch

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

------------------------------------------------------
From: Patricia Alfonso <[email protected]>
Subject: kasan/kunit: add KUnit Struct to Current Task

Patch series "KASAN-KUnit Integration", v14.

This patchset contains everything needed to integrate KASAN and KUnit.

KUnit will be able to:
(1) Fail tests when an unexpected KASAN error occurs
(2) Pass tests when an expected KASAN error occurs

Convert KASAN tests to KUnit with the exception of copy_user_test because KUnit is unable to test those.

Add documentation on how to run the KASAN tests with KUnit and what to expect when running these tests.

This patch (of 5):

In order to integrate debugging tools like KASAN into the KUnit framework, add KUnit struct to the current task to keep track of the current KUnit test.

---

 include/linux/sched.h |    4 ++++
 1 file changed, 4 insertions(+)
include/linux/sched.h renamed from include/linux/sched.h~add-kunit-struct-to-current-task +4 -0
@@ -1208,6 +1208,10 @@ struct task_struct {
 #endif
 #endif
 
+#if IS_ENABLED(CONFIG_KUNIT)
+	struct kunit			*kunit_test;
+#endif
+
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
 	/* Index of current stored address in ret_stack: */
 	int				curr_ret_stack;

_

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