[LTP] [PATCH 0/5] LTP fanotify tests for v6.13

Petr Vorel pvorel@suse.cz
Wed Jan 22 21:50:23 CET 2025


Hi Amir,

> Hi all,

> Following tests for fanotify code in v6.13.

> 1. The new test case in fanotify13 fails as follows on kernels v6.6..v6.12:

> fanotify13.c:282: TFAIL: handle_bytes (0) returned in event does not equal to handle_bytes (24) returned in name_to_handle_at(2)
> fanotify13.c:282: TFAIL: handle_bytes (0) returned in event does not equal to handle_bytes (24) returned in name_to_handle_at(2)
> fanotify13.c:282: TFAIL: handle_bytes (180003) returned in event does not equal to handle_bytes (24) returned in name_to_handle_at(2)

> The fix was already backported to v6.12.10.
> It was also backported to v6.6.72,
> but then reverted due to a backport bug in v6.6.73
> and it now staged again for v6.6.74.


> 2. The new variant of fanotify21 is skipped on kernels <= v6.12

> This variant tests the new feature flag FAN_REPORT_FD_ERROR, which is
> not effectively a bug fix.

> Because this feature was added as a consequence of a bug report,
> it was auto backported to v6.12.5 and to v6.6.66, but I do not
> feel comfortable with adding a fix tag to force distros to backport
> this feature.

We have git freeze before new release. But IMHO this should go in.
It works well on v6.13, I'll retest it on SLES kernels.

Kind regards,
Petr

> Thanks,
> Amir.

> Amir Goldstein (5):
>   fanotify13: Verify that we did not get an extra event
>   fanotify13: Add test case for FAN_DELETE_SELF
>   fanotify05: Test reporting overflow event with FAN_REPORT_FD_ERROR
>   fanotify21: Test reporting event with RDWR fd on RO mount
>   fanotify21: Test reporting fd open errors with FAN_REPORT_FD_ERROR

>  include/lapi/fanotify.h                       |  4 +
>  testcases/kernel/syscalls/fanotify/fanotify.h |  1 +
>  .../kernel/syscalls/fanotify/fanotify05.c     | 18 +++-
>  .../kernel/syscalls/fanotify/fanotify13.c     | 90 ++++++++++++++++---
>  .../kernel/syscalls/fanotify/fanotify21.c     | 89 ++++++++++++++++--
>  5 files changed, 177 insertions(+), 25 deletions(-)


More information about the ltp mailing list