kasan-x86-dont-rename-memintrinsics-in-uninstrumented-files.patch removed from -mm tree
The quilt patch titled
Subject: kasan, x86: don't rename memintrinsics in uninstrumented files
has been removed from the -mm tree. Its filename was
kasan-x86-dont-rename-memintrinsics-in-uninstrumented-files.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Marco Elver <[email protected]>
Subject: kasan, x86: don't rename memintrinsics in uninstrumented files
Date: Fri, 24 Feb 2023 09:59:42 +0100
Now that memcpy/memset/memmove are no longer overridden by KASAN, we can just use the normal symbol names in uninstrumented files.
Drop the preprocessor redefinitions.
---
arch/x86/include/asm/string_64.h renamed from arch/x86/include/asm/string_64.h~kasan-x86-dont-rename-memintrinsics-in-uninstrumented-files +0 -19
@@ -85,25 +85,6 @@ char *strcpy(char *dest, const char *srcchar *strcat (char *dest,const char *src);int strcmp (const char *cs,const char *ct); -#if (defined(CONFIG_KASAN ) && !defined(__SANITIZE_ADDRESS__)) -/* -* For files that not instrumented (e.g. mm/slub.c) we -* should use not instrumented version of mem* functions. -*/ - -#undef memcpy -#define memcpy (dst, src, len) __memcpy(dst, src, len) -#undef memmove -#define memmove (dst, src, len) __memmove(dst, src, len) -#undef memset -#define memset (s, c, n) __memset(s, c, n) - -#ifndef __NO_FORTIFY -#define __NO_FORTIFY/* FORTIFY_SOURCE uses __builtin_memcpy, etc. */ -#endif - -#endif -#ifdef CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE #define __HAVE_ARCH_MEMCPY_FLUSHCACHE 1void __memcpy_flushcache (void *dst,const void *src,size_t cnt);
_
Patches currently in -mm which might be from [email protected] are