diff options
| author | Xuanqiang Luo <luoxuanqiang@kylinos.cn> | 2026-07-03 11:13:45 +0800 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2026-07-03 17:11:30 +0200 |
| commit | a3aa899823dda059ab88a58254f9a605e03ec275 (patch) | |
| tree | 279ed3a7a312b5dfa64a301ce562dcf0711ce858 /tools/perf/scripts/python/netdev-times.py | |
| parent | 4a50a141f05a8d1737661b19ee22ff8455b94409 (diff) | |
fanotify: initialize permission event watchdog state
fanotify permission events are allocated with kmem_cache_alloc(), but
fanotify_alloc_perm_event() does not initialize watchdog_cnt.
The watchdog reads watchdog_cnt after the event is moved to access_list.
A stale value can make it warn too early or skip the warning.
Initialize watchdog_cnt when allocating a permission event.
Fixes: b8cf8fda522d ("fanotify: add watchdog for permission events")
Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Link: https://patch.msgid.link/20260703031345.9354-1-xuanqiang.luo@linux.dev
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
