diff options
| author | Kees Cook <[email protected]> | 2014-01-23 15:54:38 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-01-23 16:36:57 -0800 |
| commit | 3e2a4c183ace8708c69f589505fb82bb63010ade (patch) | |
| tree | e201c3d60f39bbe3ba5026417d454553ad2fe073 /tools/perf/scripts/python/netdev-times.py | |
| parent | 93e9ef83f40603535ffe6b60498149e75f33aa8f (diff) | |
test: check copy_to/from_user boundary validation
To help avoid an architecture failing to correctly check kernel/user
boundaries when handling copy_to_user, copy_from_user, put_user, or
get_user, perform some simple tests and fail to load if any of them
behave unexpectedly.
Specifically, this is to make sure there is a way to notice if things
like what was fixed in commit 8404663f81d2 ("ARM: 7527/1: uaccess:
explicitly check __user pointer when !CPU_USE_DOMAINS") ever regresses
again, for any architecture.
Additionally, adds new "user" selftest target, which loads this module.
Signed-off-by: Kees Cook <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions