Documented in 1 files:
Defined in 1 files as a function:
Referenced in 4 files:
- fs/notify/mark.c, line 947
- net/ipv4/fib_trie.c, line 1162
- net/ipv6/addrlabel.c, line 219
- net/xfrm/xfrm_state.c, line 114
Smatch caller information:
net/xfrm/xfrm_state.c __find_acq_core() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 0 | n->next | 0 |
| PARAM_VALUE | 0 | n->pprev | 0 |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c __find_acq_core() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 0 | n->next | 0 |
| PARAM_VALUE | 0 | n->pprev | 0 |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c __xfrm_state_insert() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c __xfrm_state_insert() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c __xfrm_state_insert() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c __xfrm_state_insert() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c xfrm_alloc_spi() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | &x->lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock | ||
| TYPE_LOCK | (struct xfrm_state)->lock |
net/xfrm/xfrm_state.c xfrm_hash_transfer() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 8,4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c xfrm_hash_transfer() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 24,4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c xfrm_hash_transfer() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 40,4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c xfrm_hash_transfer() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 56,4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/xfrm/xfrm_state.c xfrm_state_find() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 0 | n->next | 0 |
| PARAM_VALUE | 0 | n->pprev | 0 |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->xfrm.xfrm_state_lock | ||
| LOCK2 | bh | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct netns_xfrm)->xfrm_state_lock |
net/ipv6/addrlabel.c __ip6addrlbl_add() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 0 | n->next | 0 |
| PARAM_VALUE | 0 | n->pprev | 0 |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &net->ipv6.ip6addrlbl_table.lock | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| TYPE_LOCK | (struct netns_ipv6)->ip6addrlbl_table.lock |
fs/notify/mark.c fsnotify_add_mark_list() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 0 | n->next | 0 |
| PARAM_VALUE | 0 | n->pprev | 0 |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &(*connp)->lock | ||
| LOCK2 | &mark->lock | ||
| HALF_LOCKED2 | &group->mark_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &audit_tree_group->mark_mutex | ||
| HALF_LOCKED2 | global &dnotify_group->mark_mutex | ||
| TYPE_LOCK | (struct fsnotify_group)->mark_mutex | ||
| TYPE_LOCK | (struct fsnotify_mark)->lock |
net/ipv4/fib_trie.c fib_insert_alias() -> hlist_add_before_rcu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |