Defined in 1 files as a function:
Referenced in 6 files:
- fs/smb/server/mgmt/share_config.c, line 163
- fs/smb/server/mgmt/user_session.c, line 143
- fs/smb/server/oplock.c
- fs/smb/server/smb2pdu.c
- fs/smb/server/smbacl.c, line 1715
- fs/smb/server/vfs.c
Smatch caller information:
fs/smb/server/smbacl.c set_info_sec() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 8192 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/mgmt/user_session.c show_proc_session() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 256 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| LOCK2 | &sess->tree_conns_lock | ||
| TYPE_LOCK | (struct ksmbd_session)->tree_conns_lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/smb/server/smb2pdu.c fsctl_set_sparse() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 64 |
| LOCK2 | &pool->lock |
fs/smb/server/smb2pdu.c process_query_dir_entries() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 131072 |
| LOCK2 | &dir_fp->readdir_lock | ||
| LOCK2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_file)->readdir_lock |
fs/smb/server/smb2pdu.c set_file_basic_info() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 64 |
| DATA_SOURCE | 0 | share | $2 |
| LOCK2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_close() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 256 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_get_info_file() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 256 |
| LOCK2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_get_info_filesystem() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 2048 |
| LOCK2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_get_info_sec() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 8192 |
| LOCK2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_new_xattrs() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 64 |
fs/smb/server/smb2pdu.c smb2_query_dir() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 512 |
| LOCK2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_file)->readdir_lock |
fs/smb/server/smb2pdu.c smb2_read() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 256 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_tree_connect() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 256 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_tree_connect() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 65536 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_tree_connect() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 131072 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/smb2pdu.c smb2_update_xattrs() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 64 |
fs/smb/server/smb2pdu.c smb2_write() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 256 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/vfs.c ksmbd_vfs_fill_dentry_attrs() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 1 | flag | 64 |
| LOCK2 | &pool->lock | ||
| HALF_LOCKED2 | &dir->readdir_lock | ||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| TYPE_LOCK | (struct ksmbd_file)->readdir_lock |
fs/smb/server/vfs.c ksmbd_vfs_inherit_owner() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 1024 |
fs/smb/server/vfs.c ksmbd_vfs_path_lookup() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 32768 |
| DATA_SOURCE | 0 | share | $0 |
| HALF_LOCKED2 | &path->dentry->d_lockref.lock |
fs/smb/server/vfs.c ksmbd_vfs_set_compression() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 64 |
| LOCK2 | &pool->lock |
fs/smb/server/oplock.c __smb_break_all_levII_oplock() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 128 |
| HALF_LOCKED2 | &pool->lock |
fs/smb/server/oplock.c smb_break_all_oplock() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | flag | 128 |
fs/smb/server/mgmt/share_config.c share_config_request() -> test_share_config_flag()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | share | 4096-ptr_max |
| PARAM_VALUE | 0 | share->flags | 1-u32max |
| PARAM_VALUE | 1 | flag | 256 |
| BUF_SIZE | 0 | share | 96 |
| DATA_SOURCE | 0 | share | r _kzalloc_noprof |
| LOCK2 | &pool->lock |