]> Git Repo - linux.git/commit
tools/testing/selftests/vm/map_fixed_noreplace.c: add test for MAP_FIXED_NOREPLACE
authorMichael Ellerman <[email protected]>
Fri, 26 Oct 2018 22:10:48 +0000 (15:10 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Oct 2018 23:38:15 +0000 (16:38 -0700)
commit91cbacc34512e37c9bb89125ca4b224ca6459245
tree50cc12ba385ea0b15a2f73dcbba93d50183eee51
parent7eef5f97c1f94c7b72520b42d372037e97a81b95
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]>
tools/testing/selftests/vm/.gitignore
tools/testing/selftests/vm/Makefile
tools/testing/selftests/vm/map_fixed_noreplace.c [new file with mode: 0644]
This page took 0.055716 seconds and 4 git commands to generate.