There was an error fetching the commit references. Please try again later.
instrumented.h: allow instrumenting both sides of copy_from_user()
Introduce instrument_copy_from_user_before() and instrument_copy_from_user_after() hooks to be invoked before and after the call to copy_from_user(). KASAN and KCSAN will be only using instrument_copy_from_user_before(), but for KMSAN we'll need to insert code after copy_from_user(). Link: https://lkml.kernel.org/r/20220915150417.722975-4-glider@google.com Signed-off-by:Alexander Potapenko <glider@google.com> Reviewed-by:
Marco Elver <elver@google.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Andrey Konovalov <andreyknvl@google.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Borislav Petkov <bp@alien8.de> Cc: Christoph Hellwig <hch@lst.de> Cc: Christoph Lameter <cl@linux.com> Cc: David Rientjes <rientjes@google.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Eric Biggers <ebiggers@google.com> Cc: Eric Biggers <ebi...
Showing
- arch/s390/lib/uaccess.c 2 additions, 1 deletionarch/s390/lib/uaccess.c
- include/linux/instrumented.h 19 additions, 2 deletionsinclude/linux/instrumented.h
- include/linux/uaccess.h 14 additions, 5 deletionsinclude/linux/uaccess.h
- lib/iov_iter.c 6 additions, 3 deletionslib/iov_iter.c
- lib/usercopy.c 2 additions, 1 deletionlib/usercopy.c
Please register or sign in to comment