summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2023-12-21 21:04:47 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-29 11:58:44 -0800
commit1a55836a1b002298714dc84032b3d19d9bbc2d66 (patch)
treef622f1c19ebb0e2da31fb662e67ed5eae1c56e40 /mm
parent3067b919ed81e17b8b8fb932c43f200775b1d545 (diff)
downloadlinux-stable-1a55836a1b002298714dc84032b3d19d9bbc2d66.tar.gz
linux-stable-1a55836a1b002298714dc84032b3d19d9bbc2d66.tar.bz2
linux-stable-1a55836a1b002298714dc84032b3d19d9bbc2d66.zip
kasan: update kasan_poison documentation comment
The comment for kasan_poison says that the size argument gets aligned by the function to KASAN_GRANULE_SIZE, which is wrong: the argument must be already aligned when it is passed to the function. Remove the invalid part of the comment. Link: https://lkml.kernel.org/r/992a302542059fc40d86ea560eac413ecb31b6a1.1703188911.git.andreyknvl@google.com Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Cc: Alexander Potapenko <glider@google.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Marco Elver <elver@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/kasan/kasan.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/kasan/kasan.h b/mm/kasan/kasan.h
index 38af25b9c89c..1c34511090d7 100644
--- a/mm/kasan/kasan.h
+++ b/mm/kasan/kasan.h
@@ -513,8 +513,6 @@ static inline bool kasan_byte_accessible(const void *addr)
* @size - range size, must be aligned to KASAN_GRANULE_SIZE
* @value - value that's written to metadata for the range
* @init - whether to initialize the memory range (only for hardware tag-based)
- *
- * The size gets aligned to KASAN_GRANULE_SIZE before marking the range.
*/
void kasan_poison(const void *addr, size_t size, u8 value, bool init);