Defined in 1 files as a function:

Referenced in 12 files:

Smatch caller information:

mm/madvise.c can_do_file_pageout() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 mask 2
RX_PATH
TASK_NOT_RUNNING

fs/verity/enable.c fsverity_ioctl_enable() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 mask 2
DATA_SOURCE 0 file $0

mm/filemap.c can_do_cachestat() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 mask 2
DATA_SOURCE 0 file $0
BIT_INFO 0 file->f_mode 0x0,0xfffffffd

fs/udf/file.c udf_ioctl() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 mask 4
DATA_SOURCE 0 file $0

mm/mincore.c can_do_mincore() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 mask 2

kernel/sys.c prctl_set_mm_exe_file() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max
PARAM_VALUE 1 mask 1

fs/open.c __do_sys_fchdir() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max
PARAM_VALUE 1 mask 65

fs/open.c __do_sys_fchdir() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max
PARAM_VALUE 1 mask 65

fs/open.c __do_sys_fchroot() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max
PARAM_VALUE 1 mask 65

fs/open.c __do_sys_fchroot() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max
PARAM_VALUE 1 mask 65

mm/memcontrol-v1.c memcg_write_event_control() -> file_permission()

Type Parameter Key Value
PARAM_VALUE 0 file 0,4-u64max
PARAM_VALUE 1 mask 4
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex