From: Breno Leitao <leitao@debian.org>
To: Guillaume Morin <guillaume@morinfr.org>
Cc: linux-mm@kvack.org, rppt@kernel.org
Subject: Re: [PATCH v4] selftests/mm: hugetlb_madv_vs_map: add underflow test
Date: Thu, 10 Sep 2026 05:04:39 -0700 [thread overview]
Message-ID: <aqKcVgak031LU1Bw@gmail.com> (raw)
In-Reply-To: <apsdO-IK6p-IDb-a@bender.morinfr.org>
On Fri, Sep 04, 2026 at 09:34:19PM +0200, Guillaume Morin wrote:
> Add a test that checks for underflows when a parent unmaps the page
> first. Also check that when the child exits the reserve count is
> correct.
>
> Link: https://lore.kernel.org/all/alEJkwn5VlTTH_ZX@bender.morinfr.org/
> Signed-off-by: Guillaume Morin <guillaume@morinfr.org
it seems you are missing a > at the end of your email.
> Cc: Breno Leitao <leitao@debian.org>
> Cc: Mike Rapoport <rppt@kernel.org>
Reviewed-by: Breno Leitao <leitao@debian.org>
> diff --git a/tools/testing/selftests/mm/hugetlb_madv_vs_map.c b/tools/testing/selftests/mm/hugetlb_madv_vs_map.c
> index f94549efcc6f..d89b2c27c2ae 100644
> --- a/tools/testing/selftests/mm/hugetlb_madv_vs_map.c
> +++ b/tools/testing/selftests/mm/hugetlb_madv_vs_map.c
> @@ -3,25 +3,16 @@
> * A test case that must run on a system with one and only one huge page available.
> * # echo 1 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
> *
> - * During setup, the test allocates the only available page, and starts three threads:
> - * - thread1:
> - * * madvise(MADV_DONTNEED) on the allocated huge page
> - * - thread 2:
> - * * Write to the allocated huge page
> - * - thread 3:
> - * * Try to allocated an extra huge page (which must not available)
> - *
> - * The test fails if thread3 is able to allocate a page.
> - *
> - * Touching the first page after thread3's allocation will raise a SIGBUS
> - *
> * Author: Breno Leitao <leitao@debian.org>
> */
> +#include <limits.h>
> #include <pthread.h>
> +#include <signal.h>
nit: Are limits.h and signal.h ever used by yor new code?
prev parent reply other threads:[~2026-09-10 12:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 19:34 [PATCH v4] selftests/mm: hugetlb_madv_vs_map: add underflow test Guillaume Morin
2026-09-10 6:49 ` Mike Rapoport
2026-09-10 12:04 ` Breno Leitao [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=aqKcVgak031LU1Bw@gmail.com \
--to=leitao@debian.org \
--cc=guillaume@morinfr.org \
--cc=linux-mm@kvack.org \
--cc=rppt@kernel.org \
/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