From: Wei Gao via ltp <ltp@lists.linux.it>
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v4] mmap22.c: Test for new MAP_DROPPABLE flag for mmap
Date: Tue, 13 May 2025 11:44:07 -0400 [thread overview]
Message-ID: <aCNox5FGkPsLWGf2@MiWiFi-CR6608-srv> (raw)
In-Reply-To: <CAASaF6y+e6eKMONT2FdgsLJyhGzZPswQNqthQpneEqpte+-6pQ@mail.gmail.com>
On Mon, May 12, 2025 at 10:43:55AM +0200, Jan Stancek wrote:
> Is anyone else seeing this test failing on recent 6.15-rc5 kernels?
>
> ==== mmap22 ====
> command: mmap22
> tst_tmpdir.c:316: TINFO: Using /tmp/LTP_mmazCULNN as tmpdir (tmpfs filesystem)
> tst_test.c:1938: TINFO: LTP version: 20250130-253-g4a0e3a8fa
> tst_test.c:1942: TINFO: Tested kernel:
> 6.15.0-0.rc5.250509g9c69f8884904.47.eln148.x86_64 #1 SMP
> PREEMPT_DYNAMIC Fri May 9 15:17:31 UTC 2025 x86_64
> tst_kconfig.c:88: TINFO: Parsing kernel config
> '/lib/modules/6.15.0-0.rc5.250509g9c69f8884904.47.eln148.x86_64/build/.config'
> tst_test.c:1758: TINFO: Overall timeout per run is 0h 05m 54s
> mmap22.c:55: TFAIL: MAP_DROPPABLE did not drop memory within the timeout period.
>
I have tested rc5/6 and both give pass result.
uname -r
6.15.0-rc6-g627277ba7c23
./mmap22
tst_tmpdir.c:316: TINFO: Using /tmp/LTP_mmaLHJK4T as tmpdir (tmpfs filesystem)
tst_test.c:1941: TINFO: LTP version: 20250130-256-gb987b8ac5
tst_test.c:1945: TINFO: Tested kernel: 6.15.0-rc6-g627277ba7c23 #3 SMP PREEMPT_DYNAMIC Tue May 13 11:15:39 EDT 2025 x86_64
tst_kconfig.c:71: TINFO: Couldn't locate kernel config!
tst_test.c:1761: TINFO: Overall timeout per run is 0h 01m 00s
mmap22.c:59: TPASS: MAP_DROPPABLE test pass.
Summary:
passed 1
failed 0
broken 0
skipped 0
warnings 0
uname -r
6.15.0-rc5
./mmap22
tst_tmpdir.c:316: TINFO: Using /tmp/LTP_mmauLlsmi as tmpdir (tmpfs filesystem)
tst_test.c:1941: TINFO: LTP version: 20250130-256-gb987b8ac5
tst_test.c:1945: TINFO: Tested kernel: 6.15.0-rc5 #4 SMP PREEMPT_DYNAMIC Tue May 13 11:38:14 EDT 2025 x86_64
tst_kconfig.c:71: TINFO: Couldn't locate kernel config!
tst_test.c:1761: TINFO: Overall timeout per run is 0h 01m 00s
mmap22.c:59: TPASS: MAP_DROPPABLE test pass.
>
>
> On Wed, May 7, 2025 at 5:25 PM Cyril Hrubis <chrubis@suse.cz> wrote:
> >
> > Hi!
> > Pushed with a minor change, thanks.
> >
> > We should check if the addr is valid before we attemp to unmap it in the
> > setup() so I've added:
> >
> > diff --git a/testcases/kernel/syscalls/mmap/mmap22.c b/testcases/kernel/syscalls/mmap/mmap22.c
> > index bfef559e4..0e589dfab 100644
> > --- a/testcases/kernel/syscalls/mmap/mmap22.c
> > +++ b/testcases/kernel/syscalls/mmap/mmap22.c
> > @@ -72,8 +72,13 @@ static void setup(void)
> > {
> > void *addr = mmap(0, 1, PROT_READ | PROT_WRITE,
> > MAP_ANONYMOUS | MAP_DROPPABLE, -1, 0);
> > +
> > if (addr == MAP_FAILED && errno == EINVAL)
> > - tst_brk(TCONF, "MAP_DROPPABLE not support");
> > + tst_brk(TCONF, "MAP_DROPPABLE not supported");
> > +
> > + if (addr == MAP_FAILED)
> > + tst_brk(TBROK | TERRNO, "mmap() MAP_DROPPABLE failed");
> > +
> > SAFE_MUNMAP(addr, 1);
> > }
> >
> >
> > --
> > Cyril Hrubis
> > chrubis@suse.cz
> >
> > --
> > Mailing list info: https://lists.linux.it/listinfo/ltp
> >
>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-05-13 3:44 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-28 13:32 [LTP] [PATCH v1] mmap21.c: Test for new MAP_DROPPABLE flag for mmap Wei Gao via ltp
2024-12-31 10:04 ` Li Wang
2025-01-02 9:38 ` Cyril Hrubis
2025-01-03 1:42 ` Wei Gao via ltp
2025-01-03 13:54 ` Wei Gao via ltp
2025-01-03 13:56 ` [LTP] [PATCH v2] " Wei Gao via ltp
2025-03-10 16:18 ` Cyril Hrubis
2025-04-16 19:16 ` [LTP] [PATCH v3] mmap22.c: " Wei Gao via ltp
2025-04-25 11:40 ` Cyril Hrubis
2025-04-28 16:04 ` [LTP] [PATCH v4] " Wei Gao via ltp
2025-05-07 15:25 ` Cyril Hrubis
2025-05-12 8:43 ` Jan Stancek via ltp
2025-05-13 15:44 ` Wei Gao via ltp [this message]
2025-05-14 8:51 ` Jan Stancek via ltp
2025-05-14 9:04 ` Li Wang via ltp
2025-05-14 9:10 ` Jan Stancek via ltp
2025-05-14 9:14 ` Li Wang via ltp
2025-05-14 11:15 ` Jan Stancek via ltp
2025-05-14 12:44 ` Li Wang via ltp
2025-05-14 12:54 ` Jan Stancek via ltp
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=aCNox5FGkPsLWGf2@MiWiFi-CR6608-srv \
--to=ltp@lists.linux.it \
--cc=jstancek@redhat.com \
--cc=wegao@suse.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 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.