2024-05-20 17:36:10

by Masahiro Yamada

[permalink] [raw]
Subject: ftrace/test_ownership kselftest fails in the second run

Hi Steven,



If I execute test.d/00basic/test_ownership.tc in a row,
it passes in the first run, and fails in the second run.


I observe this on the Ubuntu 24.04 (6.8 kernel),
and also on the latest linux-next (next-20240520).


Is this a limitation of the test or a kernel bug?



vagrant@debian:~/linux/tools/testing/selftests/ftrace$ sudo
/ftracetest test.d/00basic/test_ownership.tc
unlink: cannot unlink
'/home/vagrant/linux/tools/testing/selftests/ftrace/logs/latest': No
such file or directory
=== Ftrace unit tests ===
[1] Test file and directory ownership changes for eventfs [PASS]


# of passed: 1
# of failed: 0
# of unresolved: 0
# of untested: 0
# of unsupported: 0
# of xfailed: 0
# of undefined(test bug): 0
vagrant@debian:~/linux/tools/testing/selftests/ftrace$ sudo
/ftracetest test.d/00basic/test_ownership.tc
=== Ftrace unit tests ===
[1] Test file and directory ownership changes for eventfs [FAIL]


# of passed: 0
# of failed: 1
# of unresolved: 0
# of untested: 0
# of unsupported: 0
# of xfailed: 0
# of undefined(test bug): 0
vagrant@debian:~/linux/tools/testing/selftests/ftrace$ uname -r
6.9.0-next-20240520





--
Best Regards
Masahiro Yamada


2024-05-20 17:53:07

by Steven Rostedt

[permalink] [raw]
Subject: Re: ftrace/test_ownership kselftest fails in the second run

On Tue, 21 May 2024 02:34:50 +0900
Masahiro Yamada <[email protected]> wrote:

> Hi Steven,
>
>
>
> If I execute test.d/00basic/test_ownership.tc in a row,
> it passes in the first run, and fails in the second run.
>
>
> I observe this on the Ubuntu 24.04 (6.8 kernel),
> and also on the latest linux-next (next-20240520).
>
>
> Is this a limitation of the test or a kernel bug?

Hmm, that should have been fixed with this pull request:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e92b99ae8216dec2566711dae0a9b7b47591e315

Let me know if you have that, and if so, please send me your config.

Oh, and make sure that you have the latest selftests running too.

Thanks,

-- Steve

2024-05-20 18:44:06

by Masahiro Yamada

[permalink] [raw]
Subject: Re: ftrace/test_ownership kselftest fails in the second run

On Tue, May 21, 2024 at 2:52 AM Steven Rostedt <[email protected]> wrote:
>
> On Tue, 21 May 2024 02:34:50 +0900
> Masahiro Yamada <[email protected]> wrote:
>
> > Hi Steven,
> >
> >
> >
> > If I execute test.d/00basic/test_ownership.tc in a row,
> > it passes in the first run, and fails in the second run.
> >
> >
> > I observe this on the Ubuntu 24.04 (6.8 kernel),
> > and also on the latest linux-next (next-20240520).
> >
> >
> > Is this a limitation of the test or a kernel bug?
>
> Hmm, that should have been fixed with this pull request:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e92b99ae8216dec2566711dae0a9b7b47591e315
>
> Let me know if you have that,


Yes, I do.

I said I reproduced this issue with next-20240520



> and if so, please send me your config.

Sure, attached.



>
> Oh, and make sure that you have the latest selftests running too.


I used the kselftest in the latest tree.





>
> Thanks,
>
> -- Steve




--
Best Regards
Masahiro Yamada


Attachments:
config (267.04 kB)