Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

security/integrity/digsig.c integrity_load_x509() -> kernel_read_file_from_path()

Type Parameter Key Value
PARAM_VALUE 0 path 1578271747388854272,5180274555505422336
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 buf 6107977436341252096
PARAM_VALUE 2 *buf 0
PARAM_VALUE 2 *(*buf) 0
PARAM_VALUE 3 buf_size s32max
PARAM_VALUE 4 file_size 0
PARAM_VALUE 5 id 6
BUF_SIZE 0 path 23
BUF_SIZE 0 path 23
DATA_SOURCE 0 path $1
TERMINATED 0 path 1

security/integrity/ima/ima_fs.c ima_read_policy() -> kernel_read_file_from_path()

Type Parameter Key Value
PARAM_VALUE 0 path 4096-ptr_max
PARAM_VALUE 0 *path 0-255
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 buf 159007658335195136
PARAM_VALUE 2 *buf 0
PARAM_VALUE 2 *(*buf) 0
PARAM_VALUE 3 buf_size s32max
PARAM_VALUE 4 file_size 0
PARAM_VALUE 5 id 5
BUF_SIZE 0 path 1-1000000001,2147479553
BUF_SIZE 0 path 1-1000000001,2147479553
DATA_SOURCE 0 path $0
STR_LEN 0 path 0-2147479552
TERMINATED 0 path 1
USER_DATA 0 *path 0-255
USER_PTR 0 path
LOCK2 global &ima_write_mutex

drivers/block/zram/zram_drv.c comp_params_store() -> kernel_read_file_from_path()

Type Parameter Key Value
PARAM_VALUE 0 path 4096-ptr_max
PARAM_VALUE 0 *path 1-255
PARAM_VALUE 1 offset 0
PARAM_VALUE 2 buf 4096-ptr_max
PARAM_VALUE 3 buf_size s32max
PARAM_VALUE 4 file_size 0
PARAM_VALUE 5 id 5
DATA_SOURCE 0 path $3
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex