summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <krisman@collabora.com>2021-10-25 22:27:40 +0300
committerJan Kara <jack@suse.cz>2021-10-27 13:37:20 +0300
commit572c28f27a269f88e2d8d7b6b1507f114d637337 (patch)
tree83358931f5b2eb71f928daa2f4ebb582197a9168 /samples
parent4bd5a5c8e6e5cd964e9738e6ef87f6c2cb453edf (diff)
downloadlinux-572c28f27a269f88e2d8d7b6b1507f114d637337.tar.xz
fanotify: WARN_ON against too large file handles
struct fanotify_error_event, at least, is preallocated and isn't able to to handle arbitrarily large file handles. Future-proof the code by complaining loudly if a handle larger than MAX_HANDLE_SZ is ever found. Link: https://lore.kernel.org/r/20211025192746.66445-26-krisman@collabora.com Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions