Linus Torvalds
ff2ae607c6
Merge tag 'spdx-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/spdx
...
Pull SPDX updates from Greg KH:
"Here are three SPDX patches for 5.7-rc1.
One fixes up the SPDX tag for a single driver, while the other two go
through the tree and add SPDX tags for all of the .gitignore files as
needed.
Nothing too complex, but you will get a merge conflict with your
current tree, that should be trivial to handle (one file modified by
two things, one file deleted.)
All three of these have been in linux-next for a while, with no
reported issues other than the merge conflict"
* tag 'spdx-5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/spdx:
ASoC: MT6660: make spdxcheck.py happy
.gitignore: add SPDX License Identifier
.gitignore: remove too obvious comments
2020-04-03 13:12:26 -07:00
Mina Almasry
29750f71a9
hugetlb_cgroup: add hugetlb_cgroup reservation tests
...
The tests use both shared and private mapped hugetlb memory, and monitors
the hugetlb usage counter as well as the hugetlb reservation counter.
They test different configurations such as hugetlb memory usage via
hugetlbfs, or MAP_HUGETLB, or shmget/shmat, and with and without
MAP_POPULATE.
Also add test for hugetlb reservation reparenting, since this is a subtle
issue.
Signed-off-by: Mina Almasry <almasrymina@google.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Tested-by: Sandipan Das <sandipan@linux.ibm.com > [powerpc64]
Acked-by: Mike Kravetz <mike.kravetz@oracle.com >
Cc: Sandipan Das <sandipan@linux.ibm.com >
Cc: David Rientjes <rientjes@google.com >
Cc: Greg Thelen <gthelen@google.com >
Cc: Shakeel Butt <shakeelb@google.com >
Cc: Shuah Khan <shuah@kernel.org >
Link: http://lkml.kernel.org/r/20200211213128.73302-8-almasrymina@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2020-04-02 09:35:32 -07:00
Masahiro Yamada
d198b34f38
.gitignore: add SPDX License Identifier
...
Add SPDX License Identifier to all .gitignore files.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-03-25 11:50:48 +01:00
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/20181013133929.28653-1-mpe@ellerman.id.au
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au >
Reviewed-by: Kees Cook <keescook@chromium.org >
Reviewed-by: Khalid Aziz <khalid.aziz@oracle.com >
Acked-by: Michal Hocko <mhocko@suse.com >
Cc: Jann Horn <jannh@google.com >
Cc: Andrea Arcangeli <aarcange@redhat.com >
Cc: Florian Weimer <fweimer@redhat.com >
Cc: John Hubbard <jhubbard@nvidia.com >
Cc: Matthew Wilcox <willy@infradead.org >
Cc: Abdul Haleem <abdhalee@linux.vnet.ibm.com >
Cc: Joel Stanley <joel@jms.id.au >
Cc: Jason Evans <jasone@google.com >
Cc: David Goldblatt <davidtgoldblatt@gmail.com >
Cc: Daniel Micay <danielmicay@gmail.com >
Cc: Shuah Khan <shuah@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
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.
[akpm@linux-foundation.org: change message, per review discussion]
Link: http://lkml.kernel.org/r/20180801233636.29354-1-dima@arista.com
Signed-off-by: Dmitry Safonov <dima@arista.com >
Reviewed-by: Andrew Morton <akpm@linux-foundation.org >
Cc: Dmitry Safonov <0x7f454c46@gmail.com >
Cc: Hua Zhong <hzhong@arista.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Stuart Ritchie <sritchie@arista.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
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 <shuahkh@osg.samsung.com >
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 <shuahkh@osg.samsung.com >
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 <shuahkh@osg.samsung.com >
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/1472554781-9835-5-git-send-email-wei.guo.simon@gmail.com
Signed-off-by: Simon Guo <wei.guo.simon@gmail.com >
Cc: Alexey Klimov <klimov.linux@gmail.com >
Cc: Eric B Munson <emunson@akamai.com >
Cc: Geert Uytterhoeven <geert@linux-m68k.org >
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com >
Cc: Mel Gorman <mgorman@techsingularity.net >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Simon Guo <wei.guo.simon@gmail.com >
Cc: Thierry Reding <treding@nvidia.com >
Cc: Vlastimil Babka <vbabka@suse.cz >
Cc: David Rientjes <rientjes@google.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-10-07 18:46:28 -07:00
Yuan Sun
27f87a8775
update .gitignore in selftests/vm
...
Signed-off-by: Yuan Sun <sunyuan3@huawei.com >
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com >
2016-01-07 13:37:41 -07:00
Ramkumar Ramachandra
c7fed9cf61
selftests: add .gitignore for vm
...
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com >
Cc: Dave Young <dyoung@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2013-07-03 16:08:07 -07:00