[PATCH 5.18 075/102] fanotify: refine the validation checks on non-dir inode mask