Skip to contentSkip to conversation

kasan-update-kasan_poison-documentation-comment.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 29, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kasan: update kasan_poison documentation comment
has been removed from the -mm tree. Its filename was
kasan-update-kasan_poison-documentation-comment.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Andrey Konovalov <[email protected]>
Subject: kasan: update kasan_poison documentation comment
Date: Thu, 21 Dec 2023 21:04:47 +0100

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.

---

 mm/kasan/kasan.h |    2 --
 1 file changed, 2 deletions(-)
mm/kasan/kasan.h renamed from mm/kasan/kasan.h~kasan-update-kasan_poison-documentation-comment +0 -2
@@ -513,8 +513,6 @@ static inline bool kasan_byte_accessible
  * @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);
 

_

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

kasan-stop-leaking-stack-trace-handles.patch