Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/binfmt_elf.c load_elf_binary() -> setup_new_exec()

Type Parameter Key Value
PARAM_VALUE 0 bprm 4096-ptr_max
PARAM_VALUE 0 bprm->buf->e_machine 62
PARAM_VALUE 0 bprm->buf->e_phentsize 56
PARAM_VALUE 0 bprm->buf->e_type 2-3
PARAM_VALUE 0 bprm->cred 0
PARAM_VALUE 0 bprm->execfd 0-s32max
PARAM_VALUE 0 bprm->executable 0
PARAM_VALUE 0 bprm->executable->f_inode->i_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bprm->file 4096-ptr_max
PARAM_VALUE 0 bprm->file->f_inode->i_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bprm->file->f_op 4096-ptr_max
PARAM_VALUE 0 bprm->file->f_path->dentry->d_parent->d_fsdata->d_fsdata (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 bprm->file->f_path->dentry->d_parent->d_inode->i_wb->dwork.timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->active.counter s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_flags 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->__i_nlink 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_atime_nsec 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_blkbits 0-255
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_bytes 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_ctime_nsec 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_dir_seq 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_flags 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_fsnotify_mask 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_generation 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_linklen s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_mode 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_mtime_nsec 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_nlink 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_opflags 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_rdev 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_wb_frn_avg_time 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_wb_frn_history 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_wb_frn_winner s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_write_hint 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_lockref.count s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->data->ref.refs.counter s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->kref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.flags 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.is_hard 0-1
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.is_lazy 0-1
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.is_queued 0-1
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.is_soft 0-1
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->owner->refcnt.counter 0-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->ref.refs.counter s32min-s32max
PARAM_VALUE 0 bprm->loader 0
PARAM_VALUE 0 bprm->mm 0
PARAM_VALUE 0 bprm->old_mm 4096-ptr_max
PARAM_VALUE 0 bprm->per_clear 0,262144-u32max
PARAM_VALUE 0 bprm->point_of_no_return 1
PARAM_VALUE 0 bprm->rlim_stack.rlim_cur 8388608
PARAM_VALUE 0 bprm->user_ns 4096-ptr_max
PARAM_VALUE 0 bprm->user_ns->work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 bprm->vma->anon_name 0
PARAM_VALUE 0 bprm->vma->anon_vma 0
PARAM_VALUE 0 bprm->vma->numab_state 0
PARAM_VALUE 0 bprm->vma->pfnmap_track_ctx 0
PARAM_VALUE 0 bprm->vma->swap_readahead_info.counter 0
PARAM_VALUE 0 bprm->vma->vm_file 0
PARAM_VALUE 0 bprm->vma->vm_flags 0
PARAM_VALUE 0 bprm->vma->vm_freeptr.v 0
PARAM_VALUE 0 bprm->vma->vm_mm 0
PARAM_VALUE 0 bprm->vma->vm_ops 0
PARAM_VALUE 0 bprm->vma->vm_pgoff 0-4503599627370495
PARAM_VALUE 0 bprm->vma->vm_policy 0
PARAM_VALUE 0 bprm->vma->vm_private_data 0
PARAM_VALUE 0 bprm->vma->vm_refcnt.refs.counter 1
PARAM_VALUE 0 bprm->vma->vm_userfaultfd_ctx.ctx 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.cpu 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.ip 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.key 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.lock_type 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.name 0
PARAM_VALUE 0 bprm->vma_pages 0
PARAM_VALUE 0 *bprm->buf 0-255
PARAM_VALUE 0 *bprm->mm->exe_file->f_cred->user->uidhash_node.next->pprev 1-u64max
DATA_SOURCE 0 bprm $0
MEM_ZERO 0 bprm->buf
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 bprm->envc
NO_OVERFLOW_SIMPLE 0 bprm->exec
NO_OVERFLOW_SIMPLE 0 bprm->p
LOCK2 &tsk->signal->exec_update_lock

fs/compat_binfmt_elf.c load_elf_binary() -> setup_new_exec()

Type Parameter Key Value
PARAM_VALUE 0 bprm 4096-ptr_max
PARAM_VALUE 0 bprm->buf->e_phentsize 32
PARAM_VALUE 0 bprm->buf->e_type 2-3
PARAM_VALUE 0 bprm->cred 0
PARAM_VALUE 0 bprm->execfd 0-s32max
PARAM_VALUE 0 bprm->executable 0
PARAM_VALUE 0 bprm->executable->f_inode->i_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bprm->file 4096-ptr_max
PARAM_VALUE 0 bprm->file->f_inode->i_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 bprm->file->f_op 4096-ptr_max
PARAM_VALUE 0 bprm->file->f_path->dentry->d_parent->d_fsdata->d_fsdata (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 bprm->file->f_path->dentry->d_parent->d_inode->i_wb->dwork.timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->active.counter s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_flags 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->__i_nlink 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_atime_nsec 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_blkbits 0-255
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_bytes 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_ctime_nsec 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_dir_seq 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_flags 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_fsnotify_mask 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_generation 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_linklen s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_mode 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_mtime_nsec 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_nlink 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_opflags 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_rdev 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_wb_frn_avg_time 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_wb_frn_history 0-u16max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_wb_frn_winner s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_inode->i_write_hint 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->d_lockref.count s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->data->ref.refs.counter s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->kref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.flags 0-4294967295
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.is_hard 0-1
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.is_lazy 0-1
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.is_queued 0-1
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->management_timer.is_soft 0-1
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->owner->refcnt.counter 0-s32max
PARAM_VALUE 0 bprm->file->f_path.dentry->d_parent->d_fsdata->ref.refs.counter s32min-s32max
PARAM_VALUE 0 bprm->loader 0
PARAM_VALUE 0 bprm->mm 0
PARAM_VALUE 0 bprm->old_mm 4096-ptr_max
PARAM_VALUE 0 bprm->per_clear 0,262144-u32max
PARAM_VALUE 0 bprm->point_of_no_return 1
PARAM_VALUE 0 bprm->rlim_stack.rlim_cur 8388608
PARAM_VALUE 0 bprm->user_ns 4096-ptr_max
PARAM_VALUE 0 bprm->user_ns->work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 bprm->vma->anon_name 0
PARAM_VALUE 0 bprm->vma->anon_vma 0
PARAM_VALUE 0 bprm->vma->numab_state 0
PARAM_VALUE 0 bprm->vma->pfnmap_track_ctx 0
PARAM_VALUE 0 bprm->vma->swap_readahead_info.counter 0
PARAM_VALUE 0 bprm->vma->vm_file 0
PARAM_VALUE 0 bprm->vma->vm_flags 0
PARAM_VALUE 0 bprm->vma->vm_freeptr.v 0
PARAM_VALUE 0 bprm->vma->vm_mm 0
PARAM_VALUE 0 bprm->vma->vm_ops 0
PARAM_VALUE 0 bprm->vma->vm_pgoff 0-4503599627370495
PARAM_VALUE 0 bprm->vma->vm_policy 0
PARAM_VALUE 0 bprm->vma->vm_private_data 0
PARAM_VALUE 0 bprm->vma->vm_refcnt.refs.counter 1
PARAM_VALUE 0 bprm->vma->vm_userfaultfd_ctx.ctx 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.cpu 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.ip 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.key 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.lock_type 0
PARAM_VALUE 0 bprm->vma->vmlock_dep_map.name 0
PARAM_VALUE 0 bprm->vma_pages 0
PARAM_VALUE 0 *bprm->buf 0-255
PARAM_VALUE 0 *bprm->mm->exe_file->f_cred->user->uidhash_node.next->pprev 1-u64max
DATA_SOURCE 0 bprm $0
MEM_ZERO 0 bprm->buf
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 bprm->envc
NO_OVERFLOW_SIMPLE 0 bprm->exec
NO_OVERFLOW_SIMPLE 0 bprm->p
LOCK2 &tsk->signal->exec_update_lock