All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] pkey: remove the ltp_ prefix from pkey functions
Date: Tue, 6 Aug 2024 11:21:51 +0200	[thread overview]
Message-ID: <20240806092151.GB108596@pevik> (raw)
In-Reply-To: <CAEemH2ewdg-D-OvAYk31qaLOpteubBDfpHZ2oB1quVK7fbjuTw@mail.gmail.com>

> On Tue, Aug 6, 2024 at 3:37 PM Li Wang <liwang@redhat.com> wrote:

> > Hi Petr

> > On Tue, Aug 6, 2024 at 2:19 PM Petr Vorel <pvorel@suse.cz> wrote:

> >> Hi Li,

> >> Reviewed-by: Petr Vorel <pvorel@suse.cz>
> >> Thanks!

> >> Other thing which should follow is to use .test_variants.


> > As I pointed out in the last email, mseal() is too new to libc, there is
> > no wrapper in Glibc so far.
> > Should we add .test_variants now?

> Anyway, I boldly pushed the patches and added a TODO in the comments.
> @Petr, I would be happy to review if you plan to write more to cover libc
> wrapper.

I'm sorry this was meant only for functions in lapi/pkey.h, which have
their fallback variants guarded by #ifndef HAVE_PKEY_MPROTECT.
I'll send a patch for it.

Also, once mseal() gets to any libc, it might need to be guarded (depending if
we load header where will be added).

Kind regards,
Petr

> --- a/testcases/kernel/syscalls/mseal/mseal01.c
> +++ b/testcases/kernel/syscalls/mseal/mseal01.c
> @@ -19,12 +19,15 @@
>   *   when users don’t have write permission to the memory
>   *
>   * Any of the described actions is recognized via EPERM errno.
> + *
> + * TODO: support both raw syscall and libc wrapper via .test_variants.
>   */

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

  reply	other threads:[~2024-08-06  9:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05  6:52 [LTP] [PATCH v2 1/2] lapi: move pkey.h declarations inside the lapi/ folder Li Wang
2024-08-05  6:52 ` [LTP] [PATCH v2 2/2] mseal01: handle more possible errnos when pkey_alloc gets fail Li Wang
2024-08-05 13:59   ` Petr Vorel
2024-08-06  1:30     ` Li Wang
2024-08-06  2:31       ` [LTP] [PATCH] pkey: remove the ltp_ prefix from pkey functions Li Wang
2024-08-06  6:19         ` Petr Vorel
2024-08-06  7:37           ` Li Wang
2024-08-06  9:04             ` Li Wang
2024-08-06  9:21               ` Petr Vorel [this message]
2024-08-05 13:55 ` [LTP] [PATCH v2 1/2] lapi: move pkey.h declarations inside the lapi/ folder Petr Vorel
2024-08-06  0:58   ` Li Wang

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=20240806092151.GB108596@pevik \
    --to=pvorel@suse.cz \
    --cc=liwang@redhat.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 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.