public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/2] Add test for fanotify monitoring of tracefs
@ 2026-02-20 15:47 Martin Doucha
  2026-02-20 15:47 ` [LTP] [PATCH 1/2] tst_fs.h: Add TST_TRACEFS_MAGIC constant Martin Doucha
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Martin Doucha @ 2026-02-20 15:47 UTC (permalink / raw)
  To: ppavlu, ltp

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

-- 
2.52.0


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

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

end of thread, other threads:[~2026-02-26 12:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 15:47 [LTP] [PATCH 0/2] Add test for fanotify monitoring of tracefs Martin Doucha
2026-02-20 15:47 ` [LTP] [PATCH 1/2] tst_fs.h: Add TST_TRACEFS_MAGIC constant Martin Doucha
2026-02-24 13:32   ` Petr Vorel
2026-02-24 14:41   ` Andrea Cervesato via ltp
2026-02-20 15:47 ` [LTP] [PATCH 2/2] Add test for fanotify monitoring of tracing filesystem Martin Doucha
2026-02-23 16:30   ` Cyril Hrubis
2026-02-23 16:54     ` Amir Goldstein
2026-02-26 11:33     ` Jan Kara
2026-02-24 13:40   ` Petr Vorel
2026-02-24 14:06     ` Martin Doucha
2026-02-24 14:31       ` Petr Vorel
2026-02-24 14:41   ` Andrea Cervesato via ltp
2026-02-26 12:00 ` [LTP] [PATCH 0/2] Add test for fanotify monitoring of tracefs Andrea Cervesato via ltp

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