/kernel/linux/linux-5.10/arch/arc/kernel/ |
H A D | troubleshoot.c | 58 struct file *exe_file; in print_task_path_n_nm() local 65 exe_file = get_mm_exe_file(mm); in print_task_path_n_nm() 68 if (exe_file) { in print_task_path_n_nm() 69 path_nm = file_path(exe_file, buf, ARC_PATH_MAX-1); in print_task_path_n_nm() 70 fput(exe_file); in print_task_path_n_nm()
|
/kernel/linux/linux-6.6/arch/arc/kernel/ |
H A D | troubleshoot.c | 58 struct file *exe_file; in print_task_path_n_nm() local 65 exe_file = get_mm_exe_file(mm); in print_task_path_n_nm() 68 if (exe_file) { in print_task_path_n_nm() 69 path_nm = file_path(exe_file, buf, ARC_PATH_MAX-1); in print_task_path_n_nm() 70 fput(exe_file); in print_task_path_n_nm()
|
/kernel/linux/common_modules/xpm/core/ |
H A D | xpm_security_hooks.c | 120 struct file *exe_file = NULL; in xpm_get_process_cs_info() local 129 exe_file = get_task_exe_file(current); in xpm_get_process_cs_info() 130 if (!exe_file) { in xpm_get_process_cs_info() 131 xpm_log_error("xpm get exe_file failed"); in xpm_get_process_cs_info() 135 ret = get_exec_file_signature_info(exe_file, true, &info); in xpm_get_process_cs_info() 136 /* reduce exe_file reference count */ in xpm_get_process_cs_info() 137 fput(exe_file); in xpm_get_process_cs_info() 139 xpm_log_error("xpm get exe_file signature info failed"); in xpm_get_process_cs_info() 145 xpm_log_error("xpm get exe_file cs info failed"); in xpm_get_process_cs_info()
|
/kernel/linux/linux-5.10/drivers/oprofile/ |
H A D | buffer_sync.c | 222 /* Look up the dcookie for the task's mm->exe_file, 230 struct file *exe_file; in get_exec_dcookie() local 235 exe_file = get_mm_exe_file(mm); in get_exec_dcookie() 236 if (!exe_file) in get_exec_dcookie() 239 cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie() 240 fput(exe_file); in get_exec_dcookie()
|
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/ |
H A D | spu_task_sync.c | 304 /* Look up the dcookie for the task's mm->exe_file, 322 struct file *exe_file; in get_exec_dcookie_and_offset() local 328 exe_file = get_mm_exe_file(mm); in get_exec_dcookie_and_offset() 329 if (exe_file) { in get_exec_dcookie_and_offset() 330 app_cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie_and_offset() 331 pr_debug("got dcookie for %pD\n", exe_file); in get_exec_dcookie_and_offset() 332 fput(exe_file); in get_exec_dcookie_and_offset()
|
/kernel/linux/linux-5.10/kernel/ |
H A D | audit_watch.c | 526 struct file *exe_file; in audit_exe_compare() local 536 exe_file = get_mm_exe_file(current->mm); in audit_exe_compare() 537 if (!exe_file) in audit_exe_compare() 539 ino = file_inode(exe_file)->i_ino; in audit_exe_compare() 540 dev = file_inode(exe_file)->i_sb->s_dev; in audit_exe_compare() 541 fput(exe_file); in audit_exe_compare()
|
H A D | fork.c | 502 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); in dup_mmap() 650 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); in dup_mmap() 1062 RCU_INIT_POINTER(mm->exe_file, NULL); in mm_init() 1170 * mm->exe_file, but does so without using set_mm_exe_file() in order 1178 * It is safe to dereference the exe_file without RCU as in set_mm_exe_file() 1182 old_exe_file = rcu_dereference_raw(mm->exe_file); in set_mm_exe_file() 1186 rcu_assign_pointer(mm->exe_file, new_exe_file); in set_mm_exe_file() 1199 struct file *exe_file; in get_mm_exe_file() local 1202 exe_file = rcu_dereference(mm->exe_file); in get_mm_exe_file() 1219 struct file *exe_file = NULL; get_task_exe_file() local [all...] |
H A D | sys.c | 1845 struct file *old_exe, *exe_file; in prctl_set_mm_exe_file() local 1856 * Because the original mm->exe_file points to executable file, make in prctl_set_mm_exe_file() 1869 * Forbid mm->exe_file change if old file still mapped. in prctl_set_mm_exe_file() 1871 exe_file = get_mm_exe_file(mm); in prctl_set_mm_exe_file() 1873 if (exe_file) { in prctl_set_mm_exe_file() 1881 &exe_file->f_path)) in prctl_set_mm_exe_file() 1886 fput(exe_file); in prctl_set_mm_exe_file() 1892 old_exe = xchg(&mm->exe_file, exe.file); in prctl_set_mm_exe_file() 1900 fput(exe_file); in prctl_set_mm_exe_file()
|
H A D | audit.c | 2212 struct file *exe_file; in audit_log_d_path_exe() local 2217 exe_file = get_mm_exe_file(mm); in audit_log_d_path_exe() 2218 if (!exe_file) in audit_log_d_path_exe() 2221 audit_log_d_path(ab, " exe=", &exe_file->f_path); in audit_log_d_path_exe() 2222 fput(exe_file); in audit_log_d_path_exe()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | audit_watch.c | 526 struct file *exe_file; in audit_exe_compare() local 536 exe_file = get_mm_exe_file(current->mm); in audit_exe_compare() 537 if (!exe_file) in audit_exe_compare() 539 ino = file_inode(exe_file)->i_ino; in audit_exe_compare() 540 dev = file_inode(exe_file)->i_sb->s_dev; in audit_exe_compare() 541 fput(exe_file); in audit_exe_compare()
|
H A D | fork.c | 636 struct file *exe_file; in dup_mm_exe_file() local 638 exe_file = get_mm_exe_file(oldmm); in dup_mm_exe_file() 639 RCU_INIT_POINTER(mm->exe_file, exe_file); in dup_mm_exe_file() 642 * exe_file already. in dup_mm_exe_file() 644 if (exe_file && deny_write_access(exe_file)) in dup_mm_exe_file() 1295 RCU_INIT_POINTER(mm->exe_file, NULL); in mm_init() 1424 * It is safe to dereference the exe_file without RCU as in set_mm_exe_file() 1428 old_exe_file = rcu_dereference_raw(mm->exe_file); in set_mm_exe_file() 1506 struct file *exe_file; get_mm_exe_file() local 1525 struct file *exe_file = NULL; get_task_exe_file() local [all...] |
H A D | taskstats.c | 160 struct file *exe_file = get_task_exe_file(tsk); in exe_add_tsk() local 162 if (exe_file) { in exe_add_tsk() 165 huge_encode_dev(exe_file->f_inode->i_sb->s_dev); in exe_add_tsk() 166 stats->ac_exe_inode = exe_file->f_inode->i_ino; in exe_add_tsk() 167 fput(exe_file); in exe_add_tsk()
|
H A D | audit.c | 2212 struct file *exe_file; in audit_log_d_path_exe() local 2217 exe_file = get_mm_exe_file(mm); in audit_log_d_path_exe() 2218 if (!exe_file) in audit_log_d_path_exe() 2221 audit_log_d_path(ab, " exe=", &exe_file->f_path); in audit_log_d_path_exe() 2222 fput(exe_file); in audit_log_d_path_exe()
|
H A D | signal.c | 1264 struct file *exe_file; in print_fatal_signal() local 1266 exe_file = get_task_exe_file(current); in print_fatal_signal() 1267 if (exe_file) { in print_fatal_signal() 1269 exe_file, current->comm, signr); in print_fatal_signal() 1270 fput(exe_file); in print_fatal_signal()
|
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | util.c | 963 struct file *exe_file; in tomoyo_get_exe() local 969 exe_file = get_mm_exe_file(mm); in tomoyo_get_exe() 970 if (!exe_file) in tomoyo_get_exe() 973 cp = tomoyo_realpath_from_path(&exe_file->f_path); in tomoyo_get_exe() 974 fput(exe_file); in tomoyo_get_exe()
|
/kernel/linux/linux-6.6/security/tomoyo/ |
H A D | util.c | 968 struct file *exe_file; in tomoyo_get_exe() local 974 exe_file = get_mm_exe_file(mm); in tomoyo_get_exe() 975 if (!exe_file) in tomoyo_get_exe() 978 cp = tomoyo_realpath_from_path(&exe_file->f_path); in tomoyo_get_exe() 979 fput(exe_file); in tomoyo_get_exe()
|
/kernel/linux/common_modules/tzdriver/core/ |
H A D | agent.c | 92 if (!mm->exe_file) { in check_mm_struct() 138 struct file *exe_file = NULL; in get_proc_dpath() local 156 exe_file = mm->exe_file; in get_proc_dpath() 158 exe_file = get_mm_exe_file(mm); in get_proc_dpath() 160 if (!exe_file) { in get_proc_dpath() 165 base_path = exe_file->f_path; in get_proc_dpath() 170 fput(exe_file); in get_proc_dpath()
|
/kernel/linux/linux-5.10/fs/ |
H A D | coredump.c | 162 struct file *exe_file; in cn_print_exe_file() local 166 exe_file = get_mm_exe_file(current->mm); in cn_print_exe_file() 167 if (!exe_file) in cn_print_exe_file() 176 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file() 192 fput(exe_file); in cn_print_exe_file()
|
/kernel/linux/linux-6.6/fs/ |
H A D | coredump.c | 163 struct file *exe_file; in cn_print_exe_file() local 167 exe_file = get_mm_exe_file(current->mm); in cn_print_exe_file() 168 if (!exe_file) in cn_print_exe_file() 177 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file() 193 fput(exe_file); in cn_print_exe_file()
|
/kernel/linux/linux-5.10/mm/ |
H A D | debug.c | 239 "exe_file %px\n" in dump_mm() 271 mm->exe_file, in dump_mm()
|
/kernel/linux/linux-6.6/mm/ |
H A D | debug.c | 182 "exe_file %px\n" in dump_mm() 214 mm->exe_file, in dump_mm()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | mm_types.h | 567 struct file __rcu *exe_file; member
|
/kernel/linux/linux-5.10/fs/proc/ |
H A D | base.c | 1912 struct file *exe_file; in proc_exe_link() local 1917 exe_file = get_task_exe_file(task); in proc_exe_link() 1919 if (exe_file) { in proc_exe_link() 1920 *exe_path = exe_file->f_path; in proc_exe_link() 1921 path_get(&exe_file->f_path); in proc_exe_link() 1922 fput(exe_file); in proc_exe_link()
|
/kernel/linux/linux-6.6/fs/proc/ |
H A D | base.c | 1903 struct file *exe_file; in proc_exe_link() local 1908 exe_file = get_task_exe_file(task); in proc_exe_link() 1910 if (exe_file) { in proc_exe_link() 1911 *exe_path = exe_file->f_path; in proc_exe_link() 1912 path_get(&exe_file->f_path); in proc_exe_link() 1913 fput(exe_file); in proc_exe_link()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | mm_types.h | 849 struct file __rcu *exe_file; member
|