]> code.ossystems Code Review - openembedded-core.git/commit
ltp: fix mmap15 failed on qemumips64
authorDengke Du <dengke.du@windriver.com>
Wed, 12 Sep 2018 08:55:56 +0000 (16:55 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Sep 2018 23:27:10 +0000 (00:27 +0100)
commitcbc026227fb9bafe71665a673104272e191bdef9
tree637d0f080cbcbf9a06097778bbcf8209b240f9e6
parent51638edaa00befaed58e2def255d46ae44d9234f
ltp: fix mmap15 failed on qemumips64

Actually, this is not a bug, mmap15 only run on 64bit system.
On qemumips64, mmap15 return EINVAL, x86-64 and arm64 return
ENOMEM. This is because mips system check the addr that passed
to the syscall mmap15:

    https://github.com/torvalds/linux/blob/master/arch/mips/mm/mmap.c#L71

If the addr larger than (TASK_SIZE - page_size), mips think it is invalid.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/ltp/ltp/0001-mmap15-mips64-return-EINVAL.patch [new file with mode: 0644]
meta/recipes-extended/ltp/ltp_20180515.bb