Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 20 files:
- arch/arc/kernel/troubleshoot.c, line 97
- fs/bpf_fs_kfuncs.c, line 89
- fs/d_path.c, line 297
- fs/ext4/file.c, line 936
- fs/namespace.c, line 3319
- fs/nfsd/export.c
- fs/open.c, line 1087
- fs/overlayfs/params.c, line 480
- fs/proc/base.c, line 1824
- fs/proc/task_mmu.c, line 778
- fs/seq_file.c, line 477
- fs/smb/server/misc.c, line 182
- fs/smb/server/vfs_cache.c, line 1651
- include/uapi/linux/bpf.h, line 6124
- kernel/audit.c, line 2221
- kernel/events/core.c, line 9828
- kernel/trace/bpf_trace.c
- lib/seq_buf.c, line 322
- security/landlock/domain.c, line 61
- tools/include/uapi/linux/bpf.h, line 6124
Smatch caller information:
fs/overlayfs/params.c ovl_parse_layer() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 5487562561644511232 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/proc/base.c do_proc_readlink() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4935506243646550016 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 0 | path | $0 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
fs/proc/task_mmu.c do_procmap_query() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 1-4096 |
| BUF_SIZE | 1 | buf | 1-4096 |
| BUF_SIZE | 1 | buf | 1-4096 |
| CAPPED_DATA | 2 | buflen | 1 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| NOSPEC | 2 | buflen | |
| NOSPEC | 2 | buflen | |
| USER_DATA | 2 | buflen | 2-4096[c] |
| BYTE_COUNT | 1 | ==buf2 | 8050 |
fs/seq_file.c seq_path() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 0,4096-ptr_max |
| PARAM_VALUE | 1 | *buf | 0-255 |
| CAPPED_DATA | 2 | buflen | 1 |
| DATA_SOURCE | 0 | path | $1 |
| DATA_SOURCE | 2 | buflen | r seq_get_buf |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/smb/server/misc.c convert_to_nt_pathname() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 0 | path | $1 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| LOCK2 | &pool->lock |
kernel/audit.c audit_log_d_path() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4107 |
| BUF_SIZE | 1 | buf | 4107 |
| BUF_SIZE | 1 | buf | 4107 |
| DATA_SOURCE | 0 | path | $2 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
security/landlock/domain.c get_current_exe() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4107 |
| BUF_SIZE | 1 | buf | 4107 |
| BUF_SIZE | 1 | buf | 4107 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
fs/namespace.c mnt_warn_timestamp_expiry() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 23412673478135808,8303553355623030784 |
| PARAM_VALUE | 0 | path->mnt->mnt_sb->s_umount.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | path->mnt->mnt_sb->s_umount.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 0 | path | $0 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| STR_LEN | 0 | path | (-1),8 |
| STR_LEN | 0 | path | (-1),8 |
fs/smb/server/vfs_cache.c ksmbd_validate_name_reconnect() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
fs/nfsd/export.c nfsd_nl_svc_export_get_reqs_dumpit() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &nfsd_mutex | ||
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex |
fs/nfsd/export.c svc_export_request() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-18446744073709547521 |
| PARAM_VALUE | 2 | buflen | (-1)-s32max |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
kernel/events/core.c perf_event_mmap_event() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4088 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | buflen | unit_byte |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &vma->anon_vma->root->rwsem |
lib/seq_buf.c seq_buf_path() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 1 | *buf | 0-255 |
| DATA_SOURCE | 0 | path | $1 |
| DATA_SOURCE | 2 | buflen | r seq_buf_get_buf |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | global &tracepoint_iter_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
fs/ext4/file.c ext4_sample_last_mounted() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 5475767652941340672 |
| PARAM_VALUE | 0 | path->mnt | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 7034067759171596288 |
| PARAM_VALUE | 2 | buflen | 64 |
| BUF_SIZE | 1 | buf | 64 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | buflen | unit_byte |
fs/bpf_fs_kfuncs.c bpf_path_d_path() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | path | $0 |
| DATA_SOURCE | 1 | buf | $1 |
| DATA_SOURCE | 2 | buflen | $2 |
kernel/trace/bpf_trace.c ____bpf_d_path() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 292262068155486208 |
| PARAM_VALUE | 2 | buflen | s32min-(-1),1-s32max |
| DATA_SOURCE | 1 | buf | $1 |
| DATA_SOURCE | 2 | buflen | $2 |
kernel/trace/bpf_trace.c bpf_uprobe_multi_link_fill_link_info() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| BYTE_COUNT | 1 | ==buf2 | 8050 |
kernel/trace/bpf_trace.c bpf_uprobe_multi_show_fdinfo() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 4096-ptr_max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/open.c file_path() -> d_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| BUF_SIZE | 1 | buf | (-1),80,128,4096,4107 |
| BUF_SIZE | 1 | buf | (-1),80,128,4096,4107 |
| DATA_SOURCE | 1 | buf | $1 |
| DATA_SOURCE | 2 | buflen | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | buflen | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &lo->lo_lock | ||
| HALF_LOCKED2 | &mddev->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | filesem | ||
| HALF_LOCKED2 | irq |