Michael Ellerman
|
91cbacc345
|
tools/testing/selftests/vm/map_fixed_noreplace.c: add test for MAP_FIXED_NOREPLACE
Add a test for MAP_FIXED_NOREPLACE, based on some code originally by Jann
Horn. This would have caught the overlap bug reported by Daniel Micay.
I originally suggested to Michal that we create MAP_FIXED_NOREPLACE, but
instead of writing a selftest I spent my time bike-shedding whether it
should be called MAP_FIXED_SAFE/NOCLOBBER/WEAK/NEW .. mea culpa.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Michael Ellerman <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Khalid Aziz <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Florian Weimer <[email protected]>
Cc: John Hubbard <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Abdul Haleem <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Jason Evans <[email protected]>
Cc: David Goldblatt <[email protected]>
Cc: Daniel Micay <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|
2018-10-26 16:38:15 -07:00 |
|
Dmitry Safonov
|
1caed86022
|
tools/testing/selftests/vm/: add MAP_POPULATE test
As with many other projects, we use some shmalloc allocator. At some
point we need to make a part of allocated pages back private to process.
And it should be populated straight away. Check that (MAP_PRIVATE |
MAP_POPULATE) actually copies the private page.
[[email protected]: change message, per review discussion]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Dmitry Safonov <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Dmitry Safonov <[email protected]>
Cc: Hua Zhong <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Stuart Ritchie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|
2018-08-22 10:52:45 -07:00 |
|
Shuah Khan
|
f6869826de
|
selftests: vm: update .gitignore with new test
Update .gitignore with new test.
Signed-off-by: Shuah Khan <[email protected]>
|
2018-02-26 16:09:50 -07:00 |
|
Shuah Khan
|
0e9e327d16
|
selftests: vm: update .gitignore with missing generated file
Add missing generated file to .gitignore.
Signed-off-by: Shuah Khan <[email protected]>
|
2018-01-23 07:47:06 -07:00 |
|
Shuah Khan
|
b5b657acc4
|
selftests: vm: Update .gitignore with newly added tests
Update .gitignore with newly added tests.
Signed-off-by: Shuah Khan <[email protected]>
|
2017-11-15 08:01:42 -07:00 |
|
Simon Guo
|
1448d4d893
|
selftests/vm: add test for mlock() when areas are intersected
This patch adds mlock() test for multiple invocation on the same address
area, and verify it doesn't mess the rlimit mlock limitation.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Simon Guo <[email protected]>
Cc: Alexey Klimov <[email protected]>
Cc: Eric B Munson <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Simon Guo <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|
2016-10-07 18:46:28 -07:00 |
|
Yuan Sun
|
27f87a8775
|
update .gitignore in selftests/vm
Signed-off-by: Yuan Sun <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
|
2016-01-07 13:37:41 -07:00 |
|
Ramkumar Ramachandra
|
c7fed9cf61
|
selftests: add .gitignore for vm
Signed-off-by: Ramkumar Ramachandra <[email protected]>
Cc: Dave Young <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|
2013-07-03 16:08:07 -07:00 |
|