[Bug 212203] New: KASAN: use console tracepoints for tests

0 views
Skip to first unread message

bugzill...@bugzilla.kernel.org

unread,
Mar 9, 2021, 11:33:55 AM3/9/21
to kasa...@googlegroups.com
https://bugzilla.kernel.org/show_bug.cgi?id=212203

Bug ID: 212203
Summary: KASAN: use console tracepoints for tests
Product: Memory Management
Version: 2.5
Kernel Version: upstream
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Sanitizers
Assignee: mm_san...@kernel-bugs.kernel.org
Reporter: andre...@gmail.com
CC: kasa...@googlegroups.com
Regression: No

Currently, KASAN-KUnit tests check a per-task flag set in KASAN bug reporting
routines to make sure that KASAN can detect bugs as expected. Instead, KASAN
could use console tracepoints like KFENCE/KCSAN do.

This will allow to port more tests to KUnit, like ones that trigger a KASAN bug
report in a different task (see kasan_rcu_uaf test in lib/test_kasan_module.c).

This will also allow to be perform more checks on the content of reports.

--
You may reply to this email to add a comment.

You are receiving this mail because:
You are on the CC list for the bug.

bugzill...@kernel.org

unread,
Sep 24, 2022, 4:29:08 PM9/24/22
to kasa...@googlegroups.com
https://bugzilla.kernel.org/show_bug.cgi?id=212203

--- Comment #1 from Andrey Konovalov (andre...@gmail.com) ---
Mailed a patch series that makes KASAN tests use console tracepoints to check
whether a report has been printed and makes two more tests KUnit-compatible
[1]. Checking reports' contents for correctness is not implemented is this
series.

[1]
https://lore.kernel.org/linux-mm/653d43e9a6d9aad2ae148a941dab048cb...@google.com/

bugzill...@kernel.org

unread,
Dec 23, 2022, 8:33:23 PM12/23/22
to kasa...@googlegroups.com
https://bugzilla.kernel.org/show_bug.cgi?id=212203

Andrey Konovalov (andre...@gmail.com) changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX

--- Comment #2 from Andrey Konovalov (andre...@gmail.com) ---
Resolved with [1].

Checking reports' contents is tracked in [2].

[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7ce0ea19d50e4e97a8da69f616ffa8afbb532a93
[2] https://bugzilla.kernel.org/show_bug.cgi?id=198441
Reply all
Reply to author
Forward
0 new messages