kmsan-introduce-memset_no_sanitize_memory.patch removed from -mm tree
The quilt patch titled
Subject: kmsan: introduce memset_no_sanitize_memory()
has been removed from the -mm tree. Its filename was
kmsan-introduce-memset_no_sanitize_memory.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: Ilya Leoshkevich <[email protected]>
Subject: kmsan: introduce memset_no_sanitize_memory()
Date: Fri, 21 Jun 2024 13:34:56 +0200
Add a wrapper for memset() that prevents unpoisoning. This is useful for filling memory allocator redzones.
Signed-off-by Ilya Leoshkevich <[email protected]>
Reviewed-by Alexander Potapenko <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc David Rientjes <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Hyeonggon Yoo <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc <[email protected]>
Cc Marco Elver <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Masami Hiramatsu (Google) <[email protected]>
Cc Pekka Enberg <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Steven Rostedt (Google) <[email protected]>
Cc Sven Schnelle <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Vlastimil Babka <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/kmsan.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
include/linux/kmsan.h renamed from include/linux/kmsan.h~kmsan-introduce-memset_no_sanitize_memory +18 -0
@@ -255,6 +255,19 @@ void kmsan_enable_current(void);*/ void kmsan_disable_current (void ); +/** +* memset_no_sanitize_memory(): Fill memory without KMSAN instrumentation. +* @s: address of kernel memory to fill. +* @c: constant byte to fill the memory with. +* @n: number of bytes to fill. +* +* This is like memset(), but without KMSAN instrumentation. +*/ +static inline void *memset_no_sanitize_memory (void *s,int c,size_t n) +{ +return __memset (s, c, n); +} +#else static inline void kmsan_init_shadow (void )
@@ -362,6 +375,11 @@ static inline void kmsan_disable_current { } +static inline void *memset_no_sanitize_memory (void *s,int c,size_t n) +{ +return memset (s, c, n); +} +#endif #endif /* _LINUX_KMSAN_H */
_
Patches currently in -mm which might be from [email protected] are