linux/fs/notify/fanotify
Jan Kara 1f5eaa9001 fanotify: Avoid lost events due to ENOMEM for unlimited queues
Fanotify queues of unlimited length do not expect events can be lost.
Since these queues are used for system auditing and other security
related tasks, loosing events can even have security implications.
Currently, since the allocation is small (32-bytes), it cannot fail
however when we start accounting events in memcgs, allocation can start
failing. So avoid loosing events due to failure to allocate memory by
making event allocation use __GFP_NOFAIL.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2018-02-27 10:25:33 +01:00
..
fanotify_user.c fanotify: Avoid lost events due to ENOMEM for unlimited queues 2018-02-27 10:25:33 +01:00
fanotify.c fanotify: Avoid lost events due to ENOMEM for unlimited queues 2018-02-27 10:25:33 +01:00
fanotify.h fanotify: Avoid lost events due to ENOMEM for unlimited queues 2018-02-27 10:25:33 +01:00
Kconfig treewide: Fix typos in Kconfig 2017-10-12 15:42:00 +02:00
Makefile fanotify: fanotify_init syscall declaration 2010-07-28 09:58:55 -04:00