Skip to content

Tests for fanotify on anonymous pipe

Amir Goldstein ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 4 repliesIn review

Changes in v2 from the cover letter

- Fix build warnings of uninitialized struct members

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fanotify14: Use FAN_MARK_INODE semantic flagtestcases/kernel/syscalls/fanotify/fanotify14.c+6 -61 reply
2/3fanotify14: Use named initializerstestcases/kernel/syscalls/fanotify/fanotify14.c+114 -461 reply
3/3fanotify14: Test disallow sb/mount mark on anonymous pipetestcases/kernel/syscalls/fanotify/fanotify14.c+36 -21 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPetr Vorel
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [LTP] [PATCH v2 0/3] Tests for fanotify on anonymous pipe

Petr,

This tests for a behavior that we consider broken since the dawn of fanotify.

The fix was merged to v6.5-rc1.
I've already posted backport patches for kernels > v5.0 [1]. I am not planning to post backport patches for older kernels.

Even though the two new test cases do not use FAN_REPORT_FID, fanotify14 requires FAN_REPORT_FID, so it is not going to run these test cases on kernel < v5.1 anyway.

You suggested to wait for stable tree to apply the backports [2], but this seems to be taking time. Since I am going on vacation next week, I am posting these tests, so you can merge them whenever you like.

Thanks,
Amir.

[1] https://lore.kernel.org/stable/[email protected]/
[2] https://lore.kernel.org/ltp/20230710155006.GA659329@pevik/

Changes since v1:
- Fix build warnings of uninitialized struct members

Amir Goldstein (3):
fanotify14: Use FAN_MARK_INODE semantic flag
fanotify14: Use named initializers
fanotify14: Test disallow sb/mount mark on anonymous pipe

 .../kernel/syscalls/fanotify/fanotify14.c     | 198 +++++++++++++-----
 1 file changed, 150 insertions(+), 48 deletions(-)
Signature · 5 lines
2.34.1


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