[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200821104926.828511-1-alinde@google.com>
Date: Fri, 21 Aug 2020 10:49:22 +0000
From: albert.linde@...il.com
To: akpm@...ux-foundation.org, bp@...en8.de, mingo@...hat.com,
corbet@....net, tglx@...utronix.de, arnd@...db.de
Cc: akinobu.mita@...il.com, hpa@...or.com, viro@...iv.linux.org.uk,
glider@...gle.com, andreyknvl@...gle.com, dvyukov@...gle.com,
elver@...gle.com, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
x86@...nel.org, Albert van der Linde <alinde@...gle.com>
Subject: [PATCH 0/3] add fault injection to user memory access functions
From: Albert van der Linde <alinde@...gle.com>
The goal of this series is to improve testing of fault-tolerance in
usages of user memory access functions, by adding support for fault
injection.
The first patch adds failure injection capability for usercopy
functions. The second changes usercopy functions to use this new failure
capability (copy_from_user, ...). The third patch adds
get/put/clear_user failures to x86.
Albert van der Linde (3):
lib, include/linux: add usercopy failure capability
lib, uaccess: add failure injection to usercopy functions
x86: add failure injection to get/put/clear_user
.../fault-injection/fault-injection.rst | 64 +++++++++++++++++
arch/x86/include/asm/uaccess.h | 70 +++++++++++--------
arch/x86/lib/usercopy_64.c | 9 ++-
include/linux/fault-inject-usercopy.h | 20 ++++++
include/linux/uaccess.h | 31 ++++++--
lib/Kconfig.debug | 7 ++
lib/Makefile | 1 +
lib/fault-inject-usercopy.c | 66 +++++++++++++++++
lib/iov_iter.c | 20 +++++-
lib/strncpy_from_user.c | 3 +
lib/usercopy.c | 13 +++-
11 files changed, 263 insertions(+), 41 deletions(-)
create mode 100644 include/linux/fault-inject-usercopy.h
create mode 100644 lib/fault-inject-usercopy.c
--
2.28.0.297.g1956fa8f8d-goog
Powered by blists - more mailing lists