public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/5] LTP fanotify tests for v6.13
@ 2025-01-22 17:24 Amir Goldstein
  2025-01-22 17:24 ` [LTP] [PATCH 1/5] fanotify13: Verify that we did not get an extra event Amir Goldstein
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Amir Goldstein @ 2025-01-22 17:24 UTC (permalink / raw)
  To: Petr Vorel; +Cc: Jan Kara, ltp

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.

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(-)

-- 
2.34.1


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

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

end of thread, other threads:[~2025-01-31 16:42 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-22 17:24 [LTP] [PATCH 0/5] LTP fanotify tests for v6.13 Amir Goldstein
2025-01-22 17:24 ` [LTP] [PATCH 1/5] fanotify13: Verify that we did not get an extra event Amir Goldstein
2025-01-23 17:18   ` Petr Vorel
2025-01-24 10:11     ` Petr Vorel
2025-01-24 10:33       ` Amir Goldstein
2025-01-24 12:45         ` Petr Vorel
2025-01-22 17:24 ` [LTP] [PATCH 2/5] fanotify13: Add test case for FAN_DELETE_SELF Amir Goldstein
2025-01-22 17:24 ` [LTP] [PATCH 3/5] fanotify05: Test reporting overflow event with FAN_REPORT_FD_ERROR Amir Goldstein
2025-01-24  7:44   ` Petr Vorel
2025-01-22 17:24 ` [LTP] [PATCH 4/5] fanotify21: Test reporting event with RDWR fd on RO mount Amir Goldstein
2025-01-24  8:01   ` Petr Vorel
2025-01-22 17:24 ` [LTP] [PATCH 5/5] fanotify21: Test reporting fd open errors with FAN_REPORT_FD_ERROR Amir Goldstein
2025-01-24  8:09   ` Petr Vorel
2025-01-22 20:50 ` [LTP] [PATCH 0/5] LTP fanotify tests for v6.13 Petr Vorel
2025-01-23 13:09   ` Amir Goldstein
2025-01-23 13:31     ` Cyril Hrubis
2025-01-24 10:46   ` Cyril Hrubis
2025-01-24 11:32     ` Petr Vorel
2025-01-30 20:07     ` Petr Vorel
2025-01-31 14:16       ` Amir Goldstein
2025-01-31 16:42         ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox