asm-generic-instrument-usercopy-in-cacheflushh.patch removed from -mm tree
The quilt patch titled
Subject: asm-generic: instrument usercopy in cacheflush.h
has been removed from the -mm tree. Its filename was
asm-generic-instrument-usercopy-in-cacheflushh.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: Alexander Potapenko <[email protected]>
Subject: asm-generic: instrument usercopy in cacheflush.h
Date: Thu, 15 Sep 2022 17:03:39 +0200
Notify memory tools about usercopy events in copy_to_user_page() and copy_from_user_page().
Signed-off-by Alexander Potapenko <[email protected]>
Reviewed-by Marco Elver <[email protected]>
Cc Alexander Viro <[email protected]>
Cc Alexei Starovoitov <[email protected]>
Cc Andrey Konovalov <[email protected]>
Cc Andrey Konovalov <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc David Rientjes <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Eric Biggers <[email protected]>
Cc Eric Biggers <[email protected]>
Cc Eric Dumazet <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Herbert Xu <[email protected]>
Cc Ilya Leoshkevich <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc Kees Cook <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Michael S. Tsirkin <[email protected]>
Cc Pekka Enberg <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Petr Mladek <[email protected]>
Cc Stephen Rothwell <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Vegard Nossum <[email protected]>
Cc Vlastimil Babka <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/asm-generic/cacheflush.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
include/asm-generic/cacheflush.h renamed from include/asm-generic/cacheflush.h~asm-generic-instrument-usercopy-in-cacheflushh +12 -2
@@ -2,6 +2,8 @@#ifndef _ASM_GENERIC_CACHEFLUSH_H#define _ASM_GENERIC_CACHEFLUSH_H +#include <linux/instrumented.h> +struct mm_struct ;struct vm_area_struct ;struct page ;
@@ -105,14 +107,22 @@ static inline void flush_cache_vunmap(un#ifndef copy_to_user_page#define copy_to_user_page (vma, page, vaddr, dst, src, len) \ do { \ + instrument_copy_to_user((void __user *)dst, src, len); \ memcpy(dst, src, len); \ flush_icache_user_page(vma, page, vaddr, len); \ } while (0)#endif +#ifndef copy_from_user_page -#define copy_from_user_page (vma, page, vaddr, dst, src, len) \ - memcpy(dst, src, len) +#define copy_from_user_page (vma, page, vaddr, dst, src, len) \ + do { \ + instrument_copy_from_user_before(dst, (void __user *)src, \ + len); \ + memcpy(dst, src, len); \ + instrument_copy_from_user_after(dst, (void __user *)src, len, \ + 0); \ + } while (0)#endif #endif /* _ASM_GENERIC_CACHEFLUSH_H */
_
Patches currently in -mm which might be from [email protected] are