All of lore.kernel.org
 help / color / mirror / Atom feed
From: Punit Agrawal <punit.agrawal@arm.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 07/18] vma03: accept ENOMEM return value from mremap
Date: Tue, 14 Nov 2017 13:10:47 +0000	[thread overview]
Message-ID: <87wp2tt38o.fsf@e105922-lin.cambridge.arm.com> (raw)
In-Reply-To: <20171031111144.GG14550@rei.lan> (Cyril Hrubis's message of "Tue,  31 Oct 2017 12:11:44 +0100")

Hi Cyril,

Picking up where I'd left off after the previous posting.

Cyril Hrubis <chrubis@suse.cz> writes:

> Hi!
>> Attempting to map a wrapping region with mremap should fail (that's the
>> whole point of this test). Accept ENOMEM as well as EINVAL.
>
> I'm missing any background info here about the specific conditions where
> this happens. The test is supposed to run only on 32bit kernel, so I
> suppose that there is some older board with 32bit ARM that is able to
> execute this test and that we get a different errno there, but that is
> only speculation. Can you, pretty please, elaborate more on that?

After digging into the patch history I've failed to find an explanation
for why we are carrying the patch. Looks like the details of the issue
it was fixing have been lost.

The unpatched version of the test passes on TC2 (a 32bit big.LITTLE ARM
Platform).

I'll drop this patch from the next version.

Thanks,
Punit

>
>> Signed-off-by: Will Deacon <will.deacon@arm.com>
>> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
>> ---
>>  testcases/kernel/mem/vma/vma03.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/testcases/kernel/mem/vma/vma03.c b/testcases/kernel/mem/vma/vma03.c
>> index 4b34ab0a0..5f231e5bb 100644
>> --- a/testcases/kernel/mem/vma/vma03.c
>> +++ b/testcases/kernel/mem/vma/vma03.c
>> @@ -100,7 +100,7 @@ int main(int argc, char *argv[])
>>  
>>  		remap = mremap(map, pgsz, 2 * pgsz, 0);
>>  		if (remap == MAP_FAILED) {
>> -			if (errno == EINVAL)
>> +			if (errno == EINVAL || errno == ENOMEM)
>>  				tst_resm(TPASS, "mremap failed as expected.");
>>  			else
>>  				tst_resm(TFAIL | TERRNO, "mremap");
>> -- 
>> 2.14.2
>> 
>> 
>> -- 
>> Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2017-11-14 13:10 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26 14:14 [LTP] [PATCH 00/18] Collection of fixes Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 01/18] Move check_hugepage() helper to mem/lib Punit Agrawal
2017-10-31 10:53   ` Cyril Hrubis
2017-10-31 12:45     ` Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 02/18] thp: ensure THP/hugetlbfs is available Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 03/18] hugeshmctl01: Fix synchronisation with child processes Punit Agrawal
2017-10-31 11:04   ` Cyril Hrubis
2017-10-26 14:14 ` [LTP] [PATCH 04/18] hugeshmctl01: Fix synchronization issue in parent process Punit Agrawal
2017-10-31 11:05   ` Cyril Hrubis
2017-10-26 14:14 ` [LTP] [PATCH 05/18] hugeshmctl02: Fix allocation size for odd number of hugepages Punit Agrawal
2017-10-31 11:05   ` Cyril Hrubis
2017-10-26 14:14 ` [LTP] [PATCH 06/18] hugeshmget02: add missing SHM_HUGETLB flag on segment creation Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 07/18] vma03: accept ENOMEM return value from mremap Punit Agrawal
2017-10-31 11:11   ` Cyril Hrubis
2017-11-14 13:10     ` Punit Agrawal [this message]
2017-10-26 14:14 ` [LTP] [PATCH 08/18] creat08: ensure test directories are created in /tmp/ Punit Agrawal
2017-10-31 11:07   ` Cyril Hrubis
2017-10-31 12:46     ` Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 09/18] kill05: fix race on getpwnam Punit Agrawal
2017-10-31 12:01   ` Cyril Hrubis
2017-11-14 13:11     ` Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 10/18] sigwaitinfo01: fix race between sending and dequeueing RT signals Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 11/18] sigwaitinfo: catch SEGV and report success for bad_address2 testcase Punit Agrawal
2017-10-31 12:12   ` Cyril Hrubis
2017-10-26 14:14 ` [LTP] [PATCH 12/18] inotify: fix inotify.h breakage Punit Agrawal
2017-10-31 11:16   ` Cyril Hrubis
2017-10-26 14:14 ` [LTP] [PATCH 13/18] syscalls/mount03: Copy setuid_test to execute instead of 'TEST FILE' Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 14/18] ioctl: fix stty usage for busybox Punit Agrawal
2017-10-31 12:36   ` Cyril Hrubis
2017-10-26 14:14 ` [LTP] [PATCH 15/18] getdtablesize01: Handle ENFILE errno Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 16/18] perf_event_open: Handle absence of PMU gracefully Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 17/18] hotplug/cpu_hotplug: Repopulate cgroup:cpusets after testing hotplug Punit Agrawal
2017-10-26 14:14 ` [LTP] [PATCH 18/18] hotplug/cpu_hotplug: Remove bashism disown from kill_pid() Punit Agrawal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wp2tt38o.fsf@e105922-lin.cambridge.arm.com \
    --to=punit.agrawal@arm.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.