summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2020-09-03 23:40:30 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-09-04 04:36:55 +0300
commit8891adc61dce2a8a41fc0c23262b681c3ec4b73a (patch)
treea68f908e7d4d9c2a752ad9db908ea3226deb0fe9 /mm
parent9fa2dd946743ae6f30dc4830da19147bf100a7f2 (diff)
downloadlinux-8891adc61dce2a8a41fc0c23262b681c3ec4b73a.tar.xz
selftests/x86/test_vsyscall: Improve the process_vm_readv() test
The existing code accepted process_vm_readv() success or failure as long as it didn't return garbage. This is too weak: if the vsyscall page is readable, then process_vm_readv() should succeed and, if the page is not readable, then it should fail. Signed-off-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Cc: x86@kernel.org Cc: Peter Zijlstra <peterz@infradead.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: Jann Horn <jannh@google.com> Cc: John Hubbard <jhubbard@nvidia.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions