public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Ricardo Branco <rbranco@suse.de>
To: Andrea Cervesato <andrea.cervesato@suse.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v4] userfaultfd: Add test using UFFDIO_POISON
Date: Fri, 20 Feb 2026 16:43:09 +0100	[thread overview]
Message-ID: <1a05954d-e6b9-4e43-85f2-90ea94e8b68a@suse.de> (raw)
In-Reply-To: <DGJWBYPFA8X4.O6DWVQQLRNGT@suse.com>



On 2/20/26 4:32 PM, Andrea Cervesato wrote:
>> +
>> +	sa.sa_handler = sigbus_handler;
>> +	sigemptyset(&sa.sa_mask);
>> +	SAFE_SIGACTION(SIGBUS, &sa, NULL);
>> +
>> +	set_pages();
> This is done every cycle of -i > 1, but memory is never released and
> done once in cleanup().
I'm moving sigaction to setup but set_pages() is called in run() on the 
rest of the tests.

>> +
>> +	uffd = SAFE_USERFAULTFD(O_CLOEXEC | O_NONBLOCK, false);
> Maybe this one should be closed inside run(), or even remove it from
> static variables and passed to the thread, so we keep it inside run().

But then we'd also have to fix the other tests.
>> +
>> +static struct tst_test test = {
>> +	.test_all = run,
>> +	.cleanup = cleanup,
>> +};
> You ar missing the runtest entry.

There's no runtest function.  For now I'm using the other tests as template.

Best,
R

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-02-20 15:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-19 22:50 [LTP] [PATCH v4] userfaultfd: Add test using UFFDIO_POISON Ricardo Branco
2026-02-20 10:41 ` Cyril Hrubis
2026-02-20 15:32 ` Andrea Cervesato via ltp
2026-02-20 15:43   ` Ricardo Branco [this message]
2026-02-20 15:47     ` Andrea Cervesato via ltp
2026-02-20 16:45       ` Ricardo Branco
2026-02-23 10:59     ` Cyril Hrubis
2026-02-23 13:16       ` Ricardo Branco

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=1a05954d-e6b9-4e43-85f2-90ea94e8b68a@suse.de \
    --to=rbranco@suse.de \
    --cc=andrea.cervesato@suse.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox