View Issue Details

IDProjectCategoryView StatusLast Update
0008450Rocky-Linux-9Generalpublic2024-12-05 23:42
ReporterRyan Plaster Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSRockyOS Version9
Summary0008450: FANotify FAN_ATTRIB event error
DescriptionWhen watching for FAN_ATTRIB events on the 5.14.0-503.15.1 kernel, an endless loop of FAN_ATTRIB events are reported. This did not occur on the previous kernel release (5.14.0-427.13.1) .

I am not sure how else to test this as far as I am aware fanotify is provided with the kernel.
Steps To ReproduceWatch an XFS filesystem for FAN_ATTRIB events. I attached a test program that can be compiled in C to monitor a filesystem. I tested this on the previous kernel and on the latest Ubuntu release and it works as expected, but on the latest kernel the FAN_ATTRIB event continuously reports.
Additional InformationExample output after a file is moved into the watched filesystem. I had to kill the program since it continuously output the FAN_ATTRIB log.


Kernel: 5.14.0-427.13.1

$ sudo ./fanotify_monitor
Listening for events on /test1.
Event info_type: 2
Directory: "/test1" FAN_CREATE "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_CLOSE_WRITE "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
 

 Kernel 5.14.0-503.15.1:

$ sudo ./fanotify_monitor
Listening for events on /test1.
Event info_type: 2
Directory: "/test1" FAN_CREATE "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Directory: "/test1" FAN_CLOSE_WRITE "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
Event info_type: 2
Directory: "/test1" FAN_ATTRIB "testfile_001" (file)
^C
Tagskernel
Attached Files
FANotify_test_program.txt (4,434 bytes)   

Activities

Ryan Plaster

Ryan Plaster

2024-12-05 23:42

reporter   ~0009026

This ticket can be deleted/closed. User error. My program was modifying the atime.

Issue History

Date Modified Username Field Change
2024-12-03 06:21 Ryan Plaster New Issue
2024-12-03 06:21 Ryan Plaster Tag Attached: kernel
2024-12-03 06:21 Ryan Plaster File Added: FANotify_test_program.txt
2024-12-05 23:42 Ryan Plaster Note Added: 0009026