public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Wei Gao <wegao@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3] mseal02: Handle multiple errnos for 32-bit compat mode
Date: Thu, 26 Mar 2026 11:43:26 +0100	[thread overview]
Message-ID: <20260326104326.GB144321@pevik> (raw)
In-Reply-To: <20260323060846.4675-1-wegao@suse.com>

Hi all,

> +++ b/testcases/kernel/syscalls/mseal/mseal02.c
> @@ -29,20 +29,22 @@ static struct tcase {
>  	size_t *len;
>  	unsigned long flags;
>  	int exp_err;
> +	int compat_err;
>  } tcases[] = {
> -	{&start_addr, &page_size, ULONG_MAX, EINVAL},
> -	{&unaligned_start_addr, &page_size, 0, EINVAL},
> -	{&start_addr, &overflow_size, 0, EINVAL},
> -	{&unallocated_start_addr, &twopages_size, 0, ENOMEM},
> -	{&unallocated_end_addr, &twopages_size, 0, ENOMEM},
> -	{&start_addr, &fourpages_size, 0, ENOMEM},
> +	{.addr = &start_addr, .len = &page_size, .flags = ULONG_MAX, .exp_err = EINVAL},
> +	{.addr = &unaligned_start_addr, .len = &page_size, .flags = 0, .exp_err = EINVAL},
> +	{.addr = &start_addr, .len = &overflow_size, .flags = 0, .exp_err = EINVAL, .compat_err = ENOMEM},
> +	{.addr = &unallocated_start_addr, .len = &twopages_size, .flags = 0, .exp_err = ENOMEM},
> +	{.addr = &unallocated_end_addr, .len = &twopages_size, .flags = 0, .exp_err = ENOMEM},
> +	{.addr = &start_addr, .len = &fourpages_size, .flags = 0, .exp_err = ENOMEM},

FYI I remove useless .flags = 0, in following commit.
55e16df13a ("mseal02: Remove useless zero initialization")
(The default zero initialization can shorten code in some cases.)

Kind regards,
Petr

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

      parent reply	other threads:[~2026-03-26 10:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-28  0:28 [LTP] [PATCH v1] mseal02: Handle multiple errnos for 32-bit compat mode Wei Gao via ltp
2026-02-18 13:34 ` Andrea Cervesato via ltp
2026-02-19 11:37   ` Cyril Hrubis
2026-02-26  2:25 ` [LTP] [PATCH v2] " Wei Gao via ltp
2026-03-20 14:35   ` Andrea Cervesato via ltp
2026-03-20 15:09   ` Petr Vorel
2026-03-20 17:27     ` Petr Vorel
2026-03-23  6:08   ` [LTP] [PATCH v3] " Wei Gao via ltp
2026-03-23 13:14     ` Cyril Hrubis
2026-03-26 10:07     ` Andrea Cervesato via ltp
2026-03-26 10:08     ` Andrea Cervesato via ltp
2026-03-26 10:43     ` Petr Vorel [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=20260326104326.GB144321@pevik \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox