All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] readahead01: pass on pidfd
@ 2024-04-23  7:06 Murphy Zhou
  2024-04-23 13:54 ` Petr Vorel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Murphy Zhou @ 2024-04-23  7:06 UTC (permalink / raw)
  To: ltp

Linux kernel added pidfs via commit b5683a37c881 in v6.9-rc1
release. This patchset ignores readahead request instead of
returning EINVAL, so mark the test pass.

https://lkml.iu.edu/hypermail/linux/kernel/2403.2/00762.html

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
---
 testcases/kernel/syscalls/readahead/readahead01.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/readahead/readahead01.c b/testcases/kernel/syscalls/readahead/readahead01.c
index d4b3f306f..aed8e7f31 100644
--- a/testcases/kernel/syscalls/readahead/readahead01.c
+++ b/testcases/kernel/syscalls/readahead/readahead01.c
@@ -53,6 +53,7 @@ static void test_invalid_fd(struct tst_fd *fd)
 	case TST_FD_MEMFD:
 	case TST_FD_MEMFD_SECRET:
 	case TST_FD_PROC_MAPS:
+	case TST_FD_PIDFD:
 		return;
 	default:
 		break;
-- 
2.31.1


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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [LTP] [PATCH] readahead01: pass on pidfd
  2024-04-23  7:06 [LTP] [PATCH] readahead01: pass on pidfd Murphy Zhou
@ 2024-04-23 13:54 ` Petr Vorel
  2024-04-24  0:28   ` Murphy Zhou
  2024-05-15 13:21 ` Lee Jones
  2024-05-15 13:52 ` Cyril Hrubis
  2 siblings, 1 reply; 8+ messages in thread
From: Petr Vorel @ 2024-04-23 13:54 UTC (permalink / raw)
  To: Murphy Zhou; +Cc: ltp

Hi Murphy,

> Linux kernel added pidfs via commit b5683a37c881 in v6.9-rc1
> release. This patchset ignores readahead request instead of
> returning EINVAL, so mark the test pass.

I know that Christian Brauner suggested it (he would deserve Suggested-by: ),
but I would still appreciate kernel maintainer opinion, thus not merging yet.

> https://lkml.iu.edu/hypermail/linux/kernel/2403.2/00762.html

FYI: lore is more permanent link:
https://lore.kernel.org/lkml/20240318-fegen-bezaubern-57b0a9c6f78b@brauner/

Kind regards,
Petr

> Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
> ---
>  testcases/kernel/syscalls/readahead/readahead01.c | 1 +
>  1 file changed, 1 insertion(+)

> diff --git a/testcases/kernel/syscalls/readahead/readahead01.c b/testcases/kernel/syscalls/readahead/readahead01.c
> index d4b3f306f..aed8e7f31 100644
> --- a/testcases/kernel/syscalls/readahead/readahead01.c
> +++ b/testcases/kernel/syscalls/readahead/readahead01.c
> @@ -53,6 +53,7 @@ static void test_invalid_fd(struct tst_fd *fd)
>  	case TST_FD_MEMFD:
>  	case TST_FD_MEMFD_SECRET:
>  	case TST_FD_PROC_MAPS:
> +	case TST_FD_PIDFD:
>  		return;
>  	default:
>  		break;

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [LTP] [PATCH] readahead01: pass on pidfd
  2024-04-23 13:54 ` Petr Vorel
@ 2024-04-24  0:28   ` Murphy Zhou
  0 siblings, 0 replies; 8+ messages in thread
From: Murphy Zhou @ 2024-04-24  0:28 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp

Hi,

On Tue, Apr 23, 2024 at 9:54 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Murphy,
>
> > Linux kernel added pidfs via commit b5683a37c881 in v6.9-rc1
> > release. This patchset ignores readahead request instead of
> > returning EINVAL, so mark the test pass.
>
> I know that Christian Brauner suggested it (he would deserve Suggested-by: ),
> but I would still appreciate kernel maintainer opinion, thus not merging yet.

Got it. Thanks!
>
> > https://lkml.iu.edu/hypermail/linux/kernel/2403.2/00762.html
>
> FYI: lore is more permanent link:
> https://lore.kernel.org/lkml/20240318-fegen-bezaubern-57b0a9c6f78b@brauner/
>
> Kind regards,
> Petr
>
> > Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
> > ---
> >  testcases/kernel/syscalls/readahead/readahead01.c | 1 +
> >  1 file changed, 1 insertion(+)
>
> > diff --git a/testcases/kernel/syscalls/readahead/readahead01.c b/testcases/kernel/syscalls/readahead/readahead01.c
> > index d4b3f306f..aed8e7f31 100644
> > --- a/testcases/kernel/syscalls/readahead/readahead01.c
> > +++ b/testcases/kernel/syscalls/readahead/readahead01.c
> > @@ -53,6 +53,7 @@ static void test_invalid_fd(struct tst_fd *fd)
> >       case TST_FD_MEMFD:
> >       case TST_FD_MEMFD_SECRET:
> >       case TST_FD_PROC_MAPS:
> > +     case TST_FD_PIDFD:
> >               return;
> >       default:
> >               break;

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [LTP] [PATCH] readahead01: pass on pidfd
  2024-04-23  7:06 [LTP] [PATCH] readahead01: pass on pidfd Murphy Zhou
  2024-04-23 13:54 ` Petr Vorel
@ 2024-05-15 13:21 ` Lee Jones
  2024-05-15 13:40     ` Petr Vorel
  2024-05-15 13:45   ` Cyril Hrubis
  2024-05-15 13:52 ` Cyril Hrubis
  2 siblings, 2 replies; 8+ messages in thread
From: Lee Jones @ 2024-05-15 13:21 UTC (permalink / raw)
  To: Murphy Zhou; +Cc: ltp

On Tue, 23 Apr 2024, Murphy Zhou wrote:

> Linux kernel added pidfs via commit b5683a37c881 in v6.9-rc1
> release. This patchset ignores readahead request instead of
> returning EINVAL, so mark the test pass.
> 
> https://lkml.iu.edu/hypermail/linux/kernel/2403.2/00762.html
> 
> Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
> ---
>  testcases/kernel/syscalls/readahead/readahead01.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/testcases/kernel/syscalls/readahead/readahead01.c b/testcases/kernel/syscalls/readahead/readahead01.c
> index d4b3f306f..aed8e7f31 100644
> --- a/testcases/kernel/syscalls/readahead/readahead01.c
> +++ b/testcases/kernel/syscalls/readahead/readahead01.c
> @@ -53,6 +53,7 @@ static void test_invalid_fd(struct tst_fd *fd)
>  	case TST_FD_MEMFD:
>  	case TST_FD_MEMFD_SECRET:
>  	case TST_FD_PROC_MAPS:
> +	case TST_FD_PIDFD:
>  		return;
>  	default:
>  		break;

Any movement on this?

Android pre-submit CI testing is failing due to the new unconditional
enable of PIDFD.  I believe this patch is required in order to bring it
back to a passing state.

-- 
Lee Jones [李琼斯]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [LTP] [PATCH] readahead01: pass on pidfd
  2024-05-15 13:21 ` Lee Jones
@ 2024-05-15 13:40     ` Petr Vorel
  2024-05-15 13:45   ` Cyril Hrubis
  1 sibling, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2024-05-15 13:40 UTC (permalink / raw)
  To: Lee Jones
  Cc: Matthew Wilcox (Oracle), linux-mm, linux-fsdevel, Andrew Morton,
	ltp

Hi Lee,

> On Tue, 23 Apr 2024, Murphy Zhou wrote:

> > Linux kernel added pidfs via commit b5683a37c881 in v6.9-rc1
> > release. This patchset ignores readahead request instead of
> > returning EINVAL, so mark the test pass.

> > https://lkml.iu.edu/hypermail/linux/kernel/2403.2/00762.html

> > Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
> > ---
> >  testcases/kernel/syscalls/readahead/readahead01.c | 1 +
> >  1 file changed, 1 insertion(+)

> > diff --git a/testcases/kernel/syscalls/readahead/readahead01.c b/testcases/kernel/syscalls/readahead/readahead01.c
> > index d4b3f306f..aed8e7f31 100644
> > --- a/testcases/kernel/syscalls/readahead/readahead01.c
> > +++ b/testcases/kernel/syscalls/readahead/readahead01.c
> > @@ -53,6 +53,7 @@ static void test_invalid_fd(struct tst_fd *fd)
> >  	case TST_FD_MEMFD:
> >  	case TST_FD_MEMFD_SECRET:
> >  	case TST_FD_PROC_MAPS:
> > +	case TST_FD_PIDFD:
> >  		return;
> >  	default:
> >  		break;

> Any movement on this?

Back to Christian Brauner discussing with Cyril Hrubis [1]

	> Wouldn't it make more sense to actually return EINVAL instead of
	> ignoring the request if readahead() is not implemented?

	It would change the return value for a whole bunch of stuff. I'm not
	sure that wouldn't cause regressions but is in any case a question for
	the readahead maintainers. For now I'd just remove that test for pidfds
	imho.

That's why I would like to get ack / oppinion of the readahead maintainers.
I already asked them under this patch.

@Andrew gently ping.

Kind regards,
Petr

[1] https://lore.kernel.org/lkml/20240318-fegen-bezaubern-57b0a9c6f78b@brauner/

Below the patch I have asked kernel maintainers to ack if 

> Android pre-submit CI testing is failing due to the new unconditional
> enable of PIDFD.  I believe this patch is required in order to bring it
> back to a passing state.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [LTP] [PATCH] readahead01: pass on pidfd
@ 2024-05-15 13:40     ` Petr Vorel
  0 siblings, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2024-05-15 13:40 UTC (permalink / raw)
  To: Lee Jones
  Cc: Murphy Zhou, ltp, Andrew Morton, linux-mm, linux-fsdevel,
	Matthew Wilcox (Oracle), Cyril Hrubis

Hi Lee,

> On Tue, 23 Apr 2024, Murphy Zhou wrote:

> > Linux kernel added pidfs via commit b5683a37c881 in v6.9-rc1
> > release. This patchset ignores readahead request instead of
> > returning EINVAL, so mark the test pass.

> > https://lkml.iu.edu/hypermail/linux/kernel/2403.2/00762.html

> > Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
> > ---
> >  testcases/kernel/syscalls/readahead/readahead01.c | 1 +
> >  1 file changed, 1 insertion(+)

> > diff --git a/testcases/kernel/syscalls/readahead/readahead01.c b/testcases/kernel/syscalls/readahead/readahead01.c
> > index d4b3f306f..aed8e7f31 100644
> > --- a/testcases/kernel/syscalls/readahead/readahead01.c
> > +++ b/testcases/kernel/syscalls/readahead/readahead01.c
> > @@ -53,6 +53,7 @@ static void test_invalid_fd(struct tst_fd *fd)
> >  	case TST_FD_MEMFD:
> >  	case TST_FD_MEMFD_SECRET:
> >  	case TST_FD_PROC_MAPS:
> > +	case TST_FD_PIDFD:
> >  		return;
> >  	default:
> >  		break;

> Any movement on this?

Back to Christian Brauner discussing with Cyril Hrubis [1]

	> Wouldn't it make more sense to actually return EINVAL instead of
	> ignoring the request if readahead() is not implemented?

	It would change the return value for a whole bunch of stuff. I'm not
	sure that wouldn't cause regressions but is in any case a question for
	the readahead maintainers. For now I'd just remove that test for pidfds
	imho.

That's why I would like to get ack / oppinion of the readahead maintainers.
I already asked them under this patch.

@Andrew gently ping.

Kind regards,
Petr

[1] https://lore.kernel.org/lkml/20240318-fegen-bezaubern-57b0a9c6f78b@brauner/

Below the patch I have asked kernel maintainers to ack if 

> Android pre-submit CI testing is failing due to the new unconditional
> enable of PIDFD.  I believe this patch is required in order to bring it
> back to a passing state.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [LTP] [PATCH] readahead01: pass on pidfd
  2024-05-15 13:21 ` Lee Jones
  2024-05-15 13:40     ` Petr Vorel
@ 2024-05-15 13:45   ` Cyril Hrubis
  1 sibling, 0 replies; 8+ messages in thread
From: Cyril Hrubis @ 2024-05-15 13:45 UTC (permalink / raw)
  To: Lee Jones; +Cc: ltp

Hi!
> Any movement on this?
> 
> Android pre-submit CI testing is failing due to the new unconditional
> enable of PIDFD.  I believe this patch is required in order to bring it
> back to a passing state.

I guess that it's time to accept that kernel will allow strange
operations on pidfs and apply this patch. Thanks for the reminder.

-- 
Cyril Hrubis
chrubis@suse.cz

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [LTP] [PATCH] readahead01: pass on pidfd
  2024-04-23  7:06 [LTP] [PATCH] readahead01: pass on pidfd Murphy Zhou
  2024-04-23 13:54 ` Petr Vorel
  2024-05-15 13:21 ` Lee Jones
@ 2024-05-15 13:52 ` Cyril Hrubis
  2 siblings, 0 replies; 8+ messages in thread
From: Cyril Hrubis @ 2024-05-15 13:52 UTC (permalink / raw)
  To: Murphy Zhou; +Cc: ltp


Hi!
Applied, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-15 13:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-23  7:06 [LTP] [PATCH] readahead01: pass on pidfd Murphy Zhou
2024-04-23 13:54 ` Petr Vorel
2024-04-24  0:28   ` Murphy Zhou
2024-05-15 13:21 ` Lee Jones
2024-05-15 13:40   ` Petr Vorel
2024-05-15 13:40     ` Petr Vorel
2024-05-15 13:45   ` Cyril Hrubis
2024-05-15 13:52 ` Cyril Hrubis

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.