Skip to content

Add test for fanotify monitoring of tracefs

Martin Doucha ltp 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2tst_fs.h: Add TST_TRACEFS_MAGIC constantinclude/tst_fs.h+1 -02 replies
2/2Add test for fanotify monitoring of tracing filesystemruntest/syscalls runtest/tracing testcases/kernel/syscalls/fanotify/.gitignore +1 more+129 -07 replies

Reviews trailers per patch

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

PatchAmir GoldsteinPetr VorelAndrea CervesatoJan Kara
1/2R-b R-b
2/2R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [LTP] [PATCH 0/2] Add test for fanotify monitoring of tracefs

Add test for reading basic fanotify events from a tracefs mount. The test will activate monitoring of FAN_MODIFY events from the whole mountpoint, create a new kprobe, activate it, deactivate it and remove it again. This should generate exactly 4 FAN_MODIFY events.

On some kernels with badly backported tracefs fixes, this may trigger NULL pointer dereference. The testcase is intentionally simple but sufficient to trigger this kind of bug. More complex tracing subtests can be added later.

Martin Doucha (2):
tst_fs.h: Add TST_TRACEFS_MAGIC constant
Add test for fanotify monitoring of tracing filesystem

 include/tst_fs.h                              |   1 +
 runtest/syscalls                              |   1 +
 runtest/tracing                               |   1 +
 testcases/kernel/syscalls/fanotify/.gitignore |   1 +
 .../kernel/syscalls/fanotify/fanotify25.c     | 126 ++++++++++++++++++
 5 files changed, 130 insertions(+)
 create mode 100644 testcases/kernel/syscalls/fanotify/fanotify25.c
Signature · 5 lines
2.52.0


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