Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- fs/notify/fanotify/fanotify_user.c, line 1441
- fs/notify/mark.c, line 1022
- include/linux/fsnotify_backend.h, line 913
Smatch caller information:
fs/notify/dnotify/dnotify.c fsnotify_add_inode_mark_locked() -> fsnotify_add_mark_locked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mark | 4096-ptr_max |
| PARAM_VALUE | 0 | mark->connector | 0 |
| PARAM_VALUE | 0 | mark->flags | 0 |
| PARAM_VALUE | 0 | mark->g_list.next | 0 |
| PARAM_VALUE | 0 | mark->g_list.prev | 0 |
| PARAM_VALUE | 0 | mark->group | 4096-ptr_max |
| PARAM_VALUE | 0 | mark->group->fanotify_data.f_flags | 0,32768-2129918 |
| PARAM_VALUE | 0 | mark->group->fanotify_data.flags | s32min-(-2147450882),0-32766 |
| PARAM_VALUE | 0 | mark->ignore_mask | 0 |
| PARAM_VALUE | 0 | mark->mask | 134217728-134217735,134218112-939525063 |
| PARAM_VALUE | 0 | mark->obj_list.next | 0 |
| PARAM_VALUE | 0 | mark->obj_list.pprev | 0 |
| PARAM_VALUE | 0 | mark->refcnt.refs.counter | 1 |
| PARAM_VALUE | 1 | obj | 4096-ptr_max |
| PARAM_VALUE | 2 | obj_type | 0 |
| PARAM_VALUE | 3 | add_flags | 0 |
| BUF_SIZE | 0 | mark | 136 |
| DATA_SOURCE | 0 | mark | $0 |
| DATA_SOURCE | 1 | obj | $1 |
| DATA_SOURCE | 3 | add_flags | $2 |
| MEM_ZERO | 0 | mark | |
| LOCK2 | global &dnotify_group->mark_mutex | ||
| TYPE_LOCK | (struct fsnotify_group)->mark_mutex |
fs/notify/inotify/inotify_user.c fsnotify_add_inode_mark_locked() -> fsnotify_add_mark_locked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mark | 1-u64max |
| PARAM_VALUE | 0 | mark->connector | 0 |
| PARAM_VALUE | 0 | mark->flags | 0,16,32,48 |
| PARAM_VALUE | 0 | mark->g_list.next | 0 |
| PARAM_VALUE | 0 | mark->g_list.prev | 0 |
| PARAM_VALUE | 0 | mark->group | 4096-ptr_max |
| PARAM_VALUE | 0 | mark->mask | 8192-12287,134225920-134230015 |
| PARAM_VALUE | 0 | mark->obj_list.next | 0 |
| PARAM_VALUE | 0 | mark->obj_list.pprev | 0 |
| PARAM_VALUE | 1 | obj | 4096-ptr_max |
| PARAM_VALUE | 2 | obj_type | 0 |
| PARAM_VALUE | 3 | add_flags | 0 |
| DATA_SOURCE | 0 | mark | $0 |
| DATA_SOURCE | 1 | obj | $1 |
| DATA_SOURCE | 3 | add_flags | $2 |
| MEM_ZERO | 0 | mark | |
| USER_DATA | 0 | mark->mask | 8192-12287,134225920-134230015[c][u] |
| LOCK2 | &group->mark_mutex | ||
| TYPE_LOCK | (struct fsnotify_group)->mark_mutex |
kernel/audit_tree.c fsnotify_add_inode_mark_locked() -> fsnotify_add_mark_locked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mark | 1-u64max |
| PARAM_VALUE | 0 | mark->connector | 0 |
| PARAM_VALUE | 0 | mark->flags | 0 |
| PARAM_VALUE | 0 | mark->g_list.next | 0 |
| PARAM_VALUE | 0 | mark->g_list.prev | 0 |
| PARAM_VALUE | 0 | mark->group | 4096-ptr_max |
| PARAM_VALUE | 0 | mark->ignore_mask | 0 |
| PARAM_VALUE | 0 | mark->mask | 32768 |
| PARAM_VALUE | 0 | mark->obj_list.next | 0 |
| PARAM_VALUE | 0 | mark->obj_list.pprev | 0 |
| PARAM_VALUE | 0 | mark->refcnt.refs.counter | 1 |
| PARAM_VALUE | 2 | obj_type | 0 |
| PARAM_VALUE | 3 | add_flags | 0 |
| BUF_SIZE | 0 | mark | 136 |
| DATA_SOURCE | 0 | mark | $0 |
| DATA_SOURCE | 1 | obj | $1 |
| DATA_SOURCE | 3 | add_flags | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &audit_cmd_mutex.lock | ||
| LOCK2 | global &audit_tree_group->mark_mutex | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct fsnotify_group)->mark_mutex |
fs/notify/mark.c fsnotify_add_mark() -> fsnotify_add_mark_locked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mark | 4096-ptr_max |
| PARAM_VALUE | 0 | mark->connector | 0 |
| PARAM_VALUE | 0 | mark->flags | 0 |
| PARAM_VALUE | 0 | mark->g_list.next | 0 |
| PARAM_VALUE | 0 | mark->g_list.prev | 0 |
| PARAM_VALUE | 0 | mark->group | 4096-ptr_max |
| PARAM_VALUE | 0 | mark->group->mark_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | mark->group->mark_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | mark->group->mark_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | mark->group->mark_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | mark->group->owner_flags | 0,262144 |
| PARAM_VALUE | 0 | mark->mask | 1028,4032,12224 |
| PARAM_VALUE | 0 | mark->obj_list.next | 0 |
| PARAM_VALUE | 0 | mark->obj_list.pprev | 0 |
| PARAM_VALUE | 0 | mark->refcnt.refs.counter | 1 |
| PARAM_VALUE | 2 | obj_type | 0 |
| PARAM_VALUE | 3 | add_flags | 0-1 |
| DATA_SOURCE | 0 | mark | $0 |
| DATA_SOURCE | 1 | obj | $1 |
| DATA_SOURCE | 2 | obj_type | $2 |
| DATA_SOURCE | 3 | add_flags | $3 |
| FUZZY_MAX | 3 | add_flags | 1 |
| HARD_MAX | 0 | mark->mask | 12224 |
| HARD_MAX | 3 | add_flags | 1 |
| MEM_ZERO | 0 | mark | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &group->mark_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &audit_filter_mutex | ||
| TYPE_LOCK | (struct fsnotify_group)->mark_mutex |
fs/notify/fanotify/fanotify_user.c fanotify_add_new_mark() -> fsnotify_add_mark_locked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mark | 4096-ptr_max |
| PARAM_VALUE | 0 | mark->connector | 0 |
| PARAM_VALUE | 0 | mark->flags | 0,512,2048,2560,6144,6656 |
| PARAM_VALUE | 0 | mark->g_list.next | 0 |
| PARAM_VALUE | 0 | mark->g_list.prev | 0 |
| PARAM_VALUE | 0 | mark->group | 4096-ptr_max |
| PARAM_VALUE | 0 | mark->ignore_mask | 0 |
| PARAM_VALUE | 0 | mark->mask | 0 |
| PARAM_VALUE | 0 | mark->obj_list.next | 0 |
| PARAM_VALUE | 0 | mark->obj_list.pprev | 0 |
| PARAM_VALUE | 0 | mark->refcnt.refs.counter | 1 |
| PARAM_VALUE | 1 | obj | 1-u64max |
| PARAM_VALUE | 2 | obj_type | 1-3 |
| PARAM_VALUE | 3 | add_flags | 0 |
| BUF_SIZE | 0 | mark | 136 |
| DATA_SOURCE | 1 | obj | $1 |
| DATA_SOURCE | 2 | obj_type | $2 |
| FUZZY_MAX | 2 | obj_type | 3 |
| NS_CAPABLE | 0 | 21 | |
| HARD_MAX | 2 | obj_type | 3 |
| MEM_ZERO | 0 | mark | |
| UNITS | 1 | obj | unit_byte |
| LOCK2 | &group->mark_mutex | ||
| TYPE_LOCK | (struct fsnotify_group)->mark_mutex |