Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 26 files:
- drivers/block/zloop.c, line 1030
- drivers/block/zram/zram_drv.c, line 748
- drivers/char/misc_minor_kunit.c, line 172
- drivers/crypto/ccp/sev-dev.c, line 272
- drivers/mtd/nand/raw/nandsim.c, line 542
- drivers/nvme/target/io-cmd-file.c, line 41
- drivers/nvme/target/passthru.c, line 596
- drivers/target/target_core_alua.c
- drivers/target/target_core_configfs.c, line 3728
- drivers/target/target_core_file.c
- drivers/target/target_core_pr.c, line 1974
- drivers/usb/gadget/function/storage_common.c
- drivers/usb/gadget/function/u_uac1_legacy.c
- fs/coredump.c
- fs/erofs/super.c
- fs/kernel_read_file.c
- fs/nfsd/nfs4recover.c, line 450
- fs/open.c, line 1394
- fs/proc/root.c, line 130
- fs/pstore/blk.c, line 212
- init/do_mounts_rd.c
- init/initramfs.c
- init/initramfs_test.c
- init/main.c, line 1631
- lib/test_lockup.c, line 534
- lib/test_workqueue.c, line 120
Smatch caller information:
fs/coredump.c coredump_file() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 164033 |
| PARAM_VALUE | 2 | mode | 384 |
| BUF_SIZE | 0 | filename | s32min-(-2),1-s32max |
| TERMINATED | 0 | filename | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/coredump.c coredump_file() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 164033 |
| PARAM_VALUE | 2 | mode | 384 |
| BUF_SIZE | 0 | filename | s32min-(-2),1-s32max |
| TERMINATED | 0 | filename | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
init/do_mounts_rd.c rd_load_image() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 7509050187828596736 |
| PARAM_VALUE | 1 | flags | 2 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 9 |
| STR_LEN | 0 | filename | 8 |
| TERMINATED | 0 | filename | 1 |
init/do_mounts_rd.c rd_load_image() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 2388659849871233024 |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 14 |
| STR_LEN | 0 | filename | 13 |
| TERMINATED | 0 | filename | 1 |
drivers/block/zloop.c zloop_filp_open_fmt() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 1-u64max |
| PARAM_VALUE | 1 | flags | 0,2,66,16386,16450,65536 |
| PARAM_VALUE | 2 | mode | 0,384 |
| BUF_SIZE | 0 | filename | 0-s32max |
| BUF_SIZE | 0 | filename | 0-s32max |
| CAPPED_DATA | 0 | filename | 1 |
| DATA_SOURCE | 0 | filename | r kvasprintf |
| DATA_SOURCE | 1 | flags | $0 |
| DATA_SOURCE | 2 | mode | $1 |
| FUZZY_MAX | 1 | flags | 2 |
| STR_LEN | 0 | filename | 5,14 |
| BIT_INFO | 1 | flags | 0x0,0x14042 |
| HARD_MAX | 2 | mode | 384 |
init/initramfs.c do_name() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 32833,33345 |
| FUZZY_MAX | 1 | flags | 32833 |
| BIT_INFO | 1 | flags | 0x8041,0x8241 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
init/initramfs.c populate_initrd_image() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 2388659849871233024 |
| PARAM_VALUE | 1 | flags | 32833 |
| PARAM_VALUE | 2 | mode | 448 |
| BUF_SIZE | 0 | filename | 14 |
| STR_LEN | 0 | filename | 13 |
| TERMINATED | 0 | filename | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
fs/erofs/super.c erofs_fc_get_tree() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 32768 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 3-4004097 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/erofs/super.c erofs_init_device() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 1-u64max |
| PARAM_VALUE | 1 | flags | 32768 |
| PARAM_VALUE | 2 | mode | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &sbi->devs->rwsem | ||
| HALF_LOCKED2 | &fc->uapi_mutex | ||
| HALF_LOCKED2 | &sb->s_umount | ||
| TYPE_LOCK | (struct erofs_dev_context)->rwsem |
fs/pstore/blk.c __register_pstore_blk() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 3011419193253191680,5099992205358735360 |
| PARAM_VALUE | 1 | flags | 266370 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 16,80 |
| BUF_SIZE | 0 | filename | 16,80 |
| DATA_SOURCE | 0 | filename | $1 |
| LOCK2 | global &pstore_blk_lock |
fs/proc/root.c proc_parse_pidns_param() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 0,4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| CAPPED_DATA | 0 | filename | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 0 | filename | |
| HALF_LOCKED2 | &fc->uapi_mutex |
init/main.c console_on_rootfs() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 5636940633709051904 |
| PARAM_VALUE | 1 | flags | 2 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 13 |
| STR_LEN | 0 | filename | 12 |
| TERMINATED | 0 | filename | 1 |
drivers/char/misc_minor_kunit.c miscdev_test_can_open() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | (-1)-s32max |
| BUF_SIZE | 0 | filename | (-1)-s32max |
| CAPPED_DATA | 0 | filename | 1 |
| DATA_SOURCE | 0 | filename | r kasprintf |
drivers/target/target_core_configfs.c target_init_dbroot() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4794382738068688896 |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 4096 |
| STR_LEN | 0 | filename | 4095 |
drivers/mtd/nand/raw/nandsim.c ns_alloc_device() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 1-u64max |
| PARAM_VALUE | 1 | flags | 32834 |
| PARAM_VALUE | 2 | mode | 384 |
lib/test_workqueue.c set_affn_scope() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 5205184822262185984 |
| PARAM_VALUE | 1 | flags | 1 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 51 |
| STR_LEN | 0 | filename | 50 |
| TERMINATED | 0 | filename | 1 |
drivers/target/target_core_alua.c core_alua_write_tpg_metadata() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 1-u64max |
| PARAM_VALUE | 1 | flags | 578 |
| PARAM_VALUE | 2 | mode | 384 |
| BUF_SIZE | 0 | filename | 0-s32max |
| BUF_SIZE | 0 | filename | 0-s32max |
| CAPPED_DATA | 0 | filename | 1 |
| DATA_SOURCE | 0 | filename | $0 |
| STR_LEN | 0 | filename | 1023 |
| STR_LEN | 0 | filename | 1023 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| HALF_LOCKED2 | &lun->lun_tg_pt_md_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tg_pt_gp->tg_pt_gp_transition_mutex |
drivers/target/target_core_alua.c core_alua_write_tpg_metadata() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 1-u64max |
| PARAM_VALUE | 1 | flags | 578 |
| PARAM_VALUE | 2 | mode | 384 |
| BUF_SIZE | 0 | filename | 0-s32max |
| BUF_SIZE | 0 | filename | 0-s32max |
| CAPPED_DATA | 0 | filename | 1 |
| DATA_SOURCE | 0 | filename | $0 |
| STR_LEN | 0 | filename | 1023 |
| STR_LEN | 0 | filename | 1023 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| HALF_LOCKED2 | &lun->lun_tg_pt_md_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tg_pt_gp->tg_pt_gp_transition_mutex |
lib/test_lockup.c test_lockup_init() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 256 |
init/initramfs_test.c initramfs_test_data() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 8499224490497466368 |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 11,20,23-27,29,3986,4096-4097 |
init/initramfs_test.c initramfs_test_fname_pad() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 11,20,23-27,29,3986,4096-4097 |
drivers/block/zram/zram_drv.c backing_dev_store() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 1 | flags | 32898 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 4096 |
| BUF_SIZE | 0 | filename | 4096 |
| DATA_SOURCE | 0 | filename | r _kmalloc_noprof |
| STR_LEN | 0 | filename | 0-4095 |
| 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 |
drivers/usb/gadget/function/storage_common.c fsg_lun_open() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 32770 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | (-1),4096 |
| BUF_SIZE | 0 | filename | (-1),4096 |
| DATA_SOURCE | 0 | filename | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | filesem |
drivers/usb/gadget/function/storage_common.c fsg_lun_open() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 32768 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | (-1),4096 |
| BUF_SIZE | 0 | filename | (-1),4096 |
| DATA_SOURCE | 0 | filename | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | filesem |
drivers/usb/gadget/function/u_uac1_legacy.c gaudio_open_snd_dev() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 2 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 19 |
| BUF_SIZE | 0 | filename | 19 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/function/u_uac1_legacy.c gaudio_open_snd_dev() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 1 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 18 |
| BUF_SIZE | 0 | filename | 18 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/usb/gadget/function/u_uac1_legacy.c gaudio_open_snd_dev() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 18 |
| BUF_SIZE | 0 | filename | 18 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/crypto/ccp/sev-dev.c open_file_as_root() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 0,65 |
| PARAM_VALUE | 2 | mode | 0,384 |
| DATA_SOURCE | 0 | filename | $0 |
| DATA_SOURCE | 1 | flags | $1 |
| DATA_SOURCE | 2 | mode | $2 |
| HARD_MAX | 1 | flags | 65 |
| HARD_MAX | 2 | mode | 384 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &sev_cmd_mutex |
fs/kernel_read_file.c kernel_read_file_from_path() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 0 | *filename | 1-255 |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | (-1),1-1000000001,2147479553 |
| BUF_SIZE | 0 | filename | (-1),1-1000000001,2147479553 |
| DATA_SOURCE | 0 | filename | $0 |
| STR_LEN | 0 | filename | (-1)-2147479552 |
| STR_LEN | 0 | filename | (-1)-2147479552 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *filename | 1-255 |
| USER_PTR | 0 | filename | |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &ima_write_mutex |
fs/kernel_read_file.c kernel_read_file_from_path_initns() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 4096-ptr_max |
| PARAM_VALUE | 0 | *filename | 1-255 |
| PARAM_VALUE | 1 | flags | 0 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 4096 |
| BUF_SIZE | 0 | filename | 4096 |
| DATA_SOURCE | 0 | filename | $0 |
| STR_LEN | 0 | filename | 4095 |
| STR_LEN | 0 | filename | 4095 |
| RX_PATH |
drivers/target/target_core_file.c fd_configure_device() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 32834,36930 |
| PARAM_VALUE | 2 | mode | 384 |
| BUF_SIZE | 0 | filename | 256 |
| FUZZY_MAX | 1 | flags | 36930 |
| BIT_INFO | 1 | flags | 0x8042,0x9042 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem |
drivers/target/target_core_file.c fd_init_prot() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 327542005086584832 |
| PARAM_VALUE | 1 | flags | 32834,36930 |
| PARAM_VALUE | 2 | mode | 384 |
| BUF_SIZE | 0 | filename | 272 |
| FUZZY_MAX | 1 | flags | 36930 |
| STR_LEN | 0 | filename | 271 |
| BIT_INFO | 1 | flags | 0x8042,0x9042 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem |
drivers/nvme/target/io-cmd-file.c nvmet_file_ns_enable() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flags | 32770,49154 |
| PARAM_VALUE | 2 | mode | 0 |
| FUZZY_MAX | 1 | flags | 32770 |
| BIT_INFO | 1 | flags | 0x8002,0xc002 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| LOCK2 | &subsys->lock | ||
| LOCK2 | global &nvmet_config_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem | ||
| TYPE_LOCK | (struct nvmet_subsys)->lock |
fs/nfsd/nfs4recover.c nfsd4_init_recdir() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 2102302591179710464 |
| PARAM_VALUE | 1 | flags | 65536 |
| PARAM_VALUE | 2 | mode | 0 |
| BUF_SIZE | 0 | filename | 4096 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &nfsd_mutex |
drivers/target/target_core_pr.c __core_scsi3_write_aptpl_to_file() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 1-u64max |
| PARAM_VALUE | 1 | flags | 578 |
| PARAM_VALUE | 2 | mode | 384 |
| BUF_SIZE | 0 | filename | 0-s32max |
| BUF_SIZE | 0 | filename | 0-s32max |
| CAPPED_DATA | 0 | filename | 1 |
| DATA_SOURCE | 0 | filename | r kasprintf |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/nvme/target/passthru.c nvmet_passthru_ctrl_enable() -> filp_open()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filename | 1-u64max |
| PARAM_VALUE | 1 | flags | 2 |
| PARAM_VALUE | 2 | mode | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| LOCK2 | &subsys->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem | ||
| TYPE_LOCK | (struct nvmet_subsys)->lock |