summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2022-11-07 15:22:55 +0100
committerJonathan Corbet <corbet@lwn.net>2022-11-09 13:32:24 -0700
commit6f777dcef7742c46eced01bdcfa9d6692989573e (patch)
tree92b4bc1fd4f347e30ba2b53f18a9851b2651170e
parentdc8ab0298028c44e3fb309031c1314e85178887a (diff)
downloadlinux-stable-6f777dcef7742c46eced01bdcfa9d6692989573e.tar.gz
linux-stable-6f777dcef7742c46eced01bdcfa9d6692989573e.tar.bz2
linux-stable-6f777dcef7742c46eced01bdcfa9d6692989573e.zip
docs: kmsan: fix formatting of "Example report"
Add a blank line to make the sentence before the list render as a separate paragraph, not a definition. Fixes: 93858ae70cf4 ("kmsan: add ReST documentation") Suggested-by: Bagas Sanjaya <bagasdotme@gmail.com> Signed-off-by: Alexander Potapenko <glider@google.com> Link: https://lore.kernel.org/r/20221107142255.4038811-1-glider@google.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rw-r--r--Documentation/dev-tools/kmsan.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/dev-tools/kmsan.rst b/Documentation/dev-tools/kmsan.rst
index 2a53a801198c..55fa82212eb2 100644
--- a/Documentation/dev-tools/kmsan.rst
+++ b/Documentation/dev-tools/kmsan.rst
@@ -67,6 +67,7 @@ uninitialized in the local variable, as well as the stack where the value was
copied to another memory location before use.
A use of uninitialized value ``v`` is reported by KMSAN in the following cases:
+
- in a condition, e.g. ``if (v) { ... }``;
- in an indexing or pointer dereferencing, e.g. ``array[v]`` or ``*v``;
- when it is copied to userspace or hardware, e.g. ``copy_to_user(..., &v, ...)``;