Defined in 1 files as a prototype:
Defined in 4 files as a member:
- drivers/firmware/efi/libstub/efistub.h, line 617 (as a member)
- drivers/firmware/efi/libstub/efistub.h, line 632 (as a member)
- tools/perf/util/ordered-events.h, line 12 (as a member)
- tools/perf/util/session.h, line 101 (as a member)
Defined in 1 files as a function:
Referenced in 30 files:
- arch/arc/kernel/troubleshoot.c, line 69
- drivers/block/loop.c, line 669
- drivers/block/zram/zram_drv.c, line 708
- drivers/md/md.c, line 7412
- drivers/usb/gadget/function/f_mass_storage.c, line 2937
- drivers/usb/gadget/function/storage_common.c, line 341
- fs/binfmt_elf.c, line 1633
- fs/coredump.c, line 214
- fs/erofs/super.c, line 461
- fs/ext4/super.c, line 889
- fs/iomap/swapfile.c, line 83
- fs/open.c, line 1089
- fs/smb/server/smb2pdu.c, line 6759
- lib/string_helpers.c, line 725
- lib/test_lockup.c
- mm/filemap.c, line 4270
- mm/huge_memory.c
- tools/perf/util/ordered-events.c
- tools/perf/util/ordered-events.h, line 57
- tools/perf/util/session.c
- tools/perf/util/session.h, line 140
- tools/perf/util/tool.c
- tools/testing/selftests/bpf/cgroup_helpers.c
- tools/testing/selftests/filesystems/fuse/fuse_acl_cache_test.c
- tools/testing/selftests/landlock/fs_test.c
- tools/testing/selftests/membarrier/membarrier_rseq_stress.c
- tools/testing/selftests/mm/ksm_tests.c
- tools/testing/selftests/mm/vm_util.c
- tools/testing/selftests/mm/vm_util.h
- tools/testing/selftests/resctrl/resctrlfs.c
Smatch caller information:
fs/coredump.c cn_print_exe_file() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 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 | filp | r get_mm_exe_file |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/function/f_mass_storage.c fsg_common_create_lun() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| 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 | &fsg_opts->lock | ||
| HALF_LOCKED2 | &subsys->su_mutex | ||
| HALF_LOCKED2 | global &func_lock |
drivers/md/md.c get_bitmap_file() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 1-u64max |
| PARAM_VALUE | 2 | buflen | 4096 |
| BUF_SIZE | 1 | buf | 4096 |
| PREEMPT_ADD | <- disables preempt | ||
| UNITS | 2 | buflen | unit_byte |
| LOCK2 | &mddev->lock | ||
| TYPE_LOCK | (struct mddev)->lock |
fs/binfmt_elf.c fill_files_note() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | buflen | unit_byte |
fs/erofs/super.c erofs_fc_parse_source() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 0,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 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
drivers/block/loop.c loop_attr_backing_file_show() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 1-u64max |
| PARAM_VALUE | 1 | buf | 1-u64max |
| PARAM_VALUE | 2 | buflen | 4095 |
| DATA_SOURCE | 1 | buf | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | buflen | unit_byte |
| LOCK2 | &lo->lo_lock | ||
| LOCK2 | &of->mutex | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct loop_device)->lo_lock |
mm/filemap.c dio_warn_stale_pagecache() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_inode->i_data.host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 0 | filp->f_inode->i_data.host->i_sb->s_export_op->fh_to_dentry | 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max |
| PARAM_VALUE | 0 | filp->f_inode->i_data.host->i_sb->s_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max |
| PARAM_VALUE | 0 | filp->f_inode->i_data.host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 0 | filp->f_inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | filp->f_inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 0 | filp->f_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry | 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max |
| PARAM_VALUE | 0 | filp->f_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max |
| PARAM_VALUE | 0 | filp->f_inode->i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 0 | filp->f_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_inode->i_op->readlink | 0,1728600404483375104,2832489546165891072,2874824064778891264,3069732422725099520,4516337085607264256 |
| PARAM_VALUE | 0 | filp->f_inode->i_sb->s_cop->empty_dir | 0,86,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | filp->f_inode->i_sb->s_cop->get_context | 0,706,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | filp->f_inode->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | filp->f_inode->i_sb->s_cop->set_context | 0,67,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| PARAM_VALUE | 0 | filp->f_inode->i_sb->s_export_op->encode_fh | 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max |
| PARAM_VALUE | 0 | filp->f_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_mapping->host->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_mapping->host->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_mapping->i_mmap_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->f_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | filp->f_mapping->i_mmap_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | filp->f_mapping->i_mmap_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | filp->f_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | filp->f_mapping->i_pages.xa_head | 1-u64max |
| PARAM_VALUE | 0 | filp->f_path.dentry->d_inode->i_op->readlink | 0,1728600404483375104,2832489546165891072,2874824064778891264,3069732422725099520,4516337085607264256 |
| PARAM_VALUE | 1 | buf | 8342581351357132800 |
| PARAM_VALUE | 2 | buflen | 128 |
| BUF_SIZE | 1 | buf | 128 |
| DATA_SOURCE | 0 | filp | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | buflen | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/iomap/swapfile.c iomap_swapfile_fail() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 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 |
| CAPABLE | 0 | 21 | |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
lib/string_helpers.c kstrdup_quotable_file() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 1-u64max |
| 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 | filp | $0 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
drivers/block/zram/zram_drv.c backing_dev_show() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 1-u64max |
| PARAM_VALUE | 1 | buf | 1-u64max |
| PARAM_VALUE | 2 | buflen | 4095 |
| CAPPED_DATA | 1 | buf | 1 |
| DATA_SOURCE | 1 | buf | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | buflen | unit_byte |
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/usb/gadget/function/storage_common.c fsg_show_file() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 1-u64max |
| PARAM_VALUE | 1 | buf | 1-u64max |
| PARAM_VALUE | 2 | buflen | 4095 |
| BUF_SIZE | 1 | buf | (-1),4096 |
| BUF_SIZE | 1 | buf | (-1),4096 |
| DATA_SOURCE | 1 | buf | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | buflen | unit_byte |
| LOCK2 | filesem | ||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_create_link() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 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 | filp | $4 |
| DATA_SOURCE | 1 | buf | r _kmalloc_noprof |
| LOCK2 | &pool->lock |
fs/compat_binfmt_elf.c fill_files_note() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | buf | unit_byte |
| UNITS | 2 | buflen | unit_byte |
fs/ext4/super.c __ext4_error_file() -> file_path()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_mode | 33554432-u32max |
| PARAM_VALUE | 0 | filp->f_op | 4096-ptr_max |
| PARAM_VALUE | 1 | buf | 5464776269600542720 |
| PARAM_VALUE | 2 | buflen | 80 |
| BUF_SIZE | 0 | filp | (-1)-s32max |
| BUF_SIZE | 0 | filp | (-1)-s32max |
| BUF_SIZE | 1 | buf | 80 |
| DATA_SOURCE | 0 | filp | $0 |
| STR_LEN | 0 | filp | 39,48,77 |
| STR_LEN | 0 | filp | 39,48,77 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | filp->f_ra.prev_pos | s64min-(-4096),0,4096-s64max[c] |
| UNITS | 2 | buflen | unit_byte |
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |