mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
kasan: fix and update KUNIT_EXPECT_KASAN_FAIL comment
Update the comment for KUNIT_EXPECT_KASAN_FAIL to describe the parameters this macro accepts. Also drop the mention of the "kasan_status" KUnit resource, as it no longer exists. Link: https://lkml.kernel.org/r/6fad6661e72c407450ae4b385c71bc4a7e1579cd.1696605143.git.andreyknvl@google.com Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202308171757.7V5YUcje-lkp@intel.com/ Reviewed-by: Marco Elver <elver@google.com> Cc: Alexander Potapenko <glider@google.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
01a5ad8163
commit
ff093a9632
1 changed files with 5 additions and 4 deletions
|
@ -91,10 +91,11 @@ static void kasan_test_exit(struct kunit *test)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* KUNIT_EXPECT_KASAN_FAIL() - check that the executed expression produces a
|
* KUNIT_EXPECT_KASAN_FAIL - check that the executed expression produces a
|
||||||
* KASAN report; causes a test failure otherwise. This relies on a KUnit
|
* KASAN report; causes a KUnit test failure otherwise.
|
||||||
* resource named "kasan_status". Do not use this name for KUnit resources
|
*
|
||||||
* outside of KASAN tests.
|
* @test: Currently executing KUnit test.
|
||||||
|
* @expression: Expression that must produce a KASAN report.
|
||||||
*
|
*
|
||||||
* For hardware tag-based KASAN, when a synchronous tag fault happens, tag
|
* For hardware tag-based KASAN, when a synchronous tag fault happens, tag
|
||||||
* checking is auto-disabled. When this happens, this test handler reenables
|
* checking is auto-disabled. When this happens, this test handler reenables
|
||||||
|
|
Loading…
Reference in a new issue