]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: proc: Make va_max 1MB
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 23 Oct 2019 04:57:40 +0000 (13:57 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 7 Nov 2019 21:52:57 +0000 (14:52 -0700)
commit2f7361945f9deaa4926e36206d0b77dbfa977348
treea81ff2e6826324c13c28ba2727114a625f12f7af
parentd6617e0096e0de7f2a03e4c7df2041890909bb9f
selftests: proc: Make va_max 1MB

Currently proc-self-map-files-002.c sets va_max (max test address
of user virtual address) to 4GB, but it is too big for 32bit
arch and 1UL << 32 is overflow on 32bit long.
Also since this value should be enough bigger than vm.mmap_min_addr
(64KB or 32KB by default), 1MB should be enough.

Make va_max 1MB unconditionally.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/proc/proc-self-map-files-002.c