From: David Hildenbrand <david@redhat.com>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: kernel test robot <oliver.sang@intel.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>,
Ryan Roberts <ryan.roberts@arm.com>,
lkp@intel.com, Vasily Gorbik <gor@linux.ibm.com>,
Jonathan Corbet <corbet@lwn.net>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Matthew Wilcox <willy@infradead.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Sven Schnelle <svens@linux.ibm.com>, Zi Yan <ziy@nvidia.com>,
Gerald Schaefer <gerald.schaefer@linux.ibm.com>,
oe-lkp@lists.linux.dev, Andrew Morton <akpm@linux-foundation.org>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
ltp@lists.linux.it, Janosch Frank <frankja@linux.ibm.com>
Subject: Re: [LTP] [linux-next:master] [mm/migrate] b28dd7507f: ltp.move_pages04.fail
Date: Thu, 29 Aug 2024 16:38:01 +0200 [thread overview]
Message-ID: <f657523e-440f-4862-8497-a2fe99ad7bf5@redhat.com> (raw)
In-Reply-To: <ZtCGVr8l_Eq5uVlu@yuki.lan>
On 29.08.24 16:31, Cyril Hrubis wrote:
> Hi!
>>>>> Also I think there is a third case that we do not cover either, what
>>>>> happens when we pass an address that is not mapped at all, e.g. NULL? Do
>>>>> we get EFAULT as well?
>>>>
>>>> Yes, that's documented as EFAULT and should behave that way. I can
>>>> extend the test to handle that as well.
>>>
>>> Ideally the test should be ported to the new test API as well, but I can
>>> do that later on the top of your work.
>>
>> I tried, and it all looked easy, until I realized that these tests use a
>> share code-base:
>> testcases/kernel/syscalls/move_pages/move_pages_support.c
>>
>> That is also written using the old API. I assume mixing APIs might not
>> work as expected ...
>
> The tst_resm() and tst_brkm() calls are redirected proplery in the case
> that the test runs with a new API so generally it should work fine as
> long as the cleanup callback is set to NULL for the tst_brkm(). That
> was one of the design decision we took years ago, because we knew that
> we are not going to reimplement thousands of tests instantly and that
> the old and new API would have to live alongside for a decade.
Ah, the "NULL" is the magic bit.
>
> I glanced over the code and I do not see anything in the
> move_paves_support.c or in the kernel/lib/numa_helper.c that would break
> when executed under the new library test.
Okay, good. I can send a follow up to convert that file once the
fix/extension was reviewed.
--
Cheers,
David / dhildenb
prev parent reply other threads:[~2024-08-29 14:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-21 4:44 kernel test robot
2024-08-21 8:44 ` David Hildenbrand
2024-08-21 9:15 ` David Hildenbrand
2024-08-28 10:37 ` [LTP] " Cyril Hrubis
2024-08-28 10:51 ` David Hildenbrand
2024-08-28 12:23 ` Cyril Hrubis
2024-08-28 12:28 ` David Hildenbrand
2024-08-28 12:30 ` Cyril Hrubis
2024-08-29 13:49 ` David Hildenbrand
2024-08-29 14:31 ` Cyril Hrubis
2024-08-29 14:38 ` David Hildenbrand [this message]
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=f657523e-440f-4862-8497-a2fe99ad7bf5@redhat.com \
--to=david@redhat.com \
--cc=agordeev@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=borntraeger@linux.ibm.com \
--cc=chrubis@suse.cz \
--cc=corbet@lwn.net \
--cc=frankja@linux.ibm.com \
--cc=gerald.schaefer@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=ltp@lists.linux.it \
--cc=oe-lkp@lists.linux.dev \
--cc=oliver.sang@intel.com \
--cc=ryan.roberts@arm.com \
--cc=svens@linux.ibm.com \
--cc=willy@infradead.org \
--cc=ziy@nvidia.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox