WSL2-Linux-Kernel/tools/testing/selftests/proc
Masami Hiramatsu 2f3571ea71 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>
2019-11-07 14:52:57 -07:00
..
.gitignore proc: test /proc/sysvipc vs setns(CLONE_NEWIPC) 2019-07-16 19:23:21 -07:00
Makefile proc: test /proc/sysvipc vs setns(CLONE_NEWIPC) 2019-07-16 19:23:21 -07:00
config proc: test /proc/self/wchan 2018-04-11 10:28:34 -07:00
fd-001-lookup.c selftests: fix warning: "_GNU_SOURCE" redefined 2018-10-24 14:49:37 -06:00
fd-002-posix-eq.c tools/testing/selftests/proc: test /proc/*/fd a bit (+ PF_KTHREAD is ABI!) 2018-06-07 17:34:38 -07:00
fd-003-kthread.c selftests: fix warning: "_GNU_SOURCE" redefined 2018-10-24 14:49:37 -06:00
proc-loadavg-001.c proc: return exit code 4 for skipped tests 2019-03-05 21:07:21 -08:00
proc-pid-vm.c tools/testing/selftests/proc/proc-pid-vm.c: hide "segfault at ffffffffff600000" dmesg spam 2019-07-16 19:23:21 -07:00
proc-self-map-files-001.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-self-map-files-002.c selftests: proc: Make va_max 1MB 2019-11-07 14:52:57 -07:00
proc-self-syscall.c tools/testing/selftests/proc/proc-self-syscall.c: remove duplicate include 2019-03-05 21:07:22 -08:00
proc-self-wchan.c proc: return exit code 4 for skipped tests 2019-03-05 21:07:21 -08:00
proc-uptime-001.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-uptime-002.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-uptime.h tools/testing/selftests/proc: test /proc/*/fd a bit (+ PF_KTHREAD is ABI!) 2018-06-07 17:34:38 -07:00
proc.h proc: test /proc/thread-self symlink 2018-08-22 10:52:45 -07:00
read.c proc: more robust bulk read test 2019-03-05 21:07:22 -08:00
self.c proc: test /proc/self symlink 2018-08-22 10:52:45 -07:00
setns-dcache.c proc: fix /proc/net/* after setns(2) 2019-02-01 15:46:22 -08:00
setns-sysvipc.c proc: test /proc/sysvipc vs setns(CLONE_NEWIPC) 2019-07-16 19:23:21 -07:00
thread-self.c proc: test /proc/thread-self symlink 2018-08-22 10:52:45 -07:00