Documented in 1 files:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

security/apparmor/apparmorfs.c __aa_fs_remove_rawdata() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 1-u64max
NOCHECK_CALL
HALF_LOCKED2 &ns->lock

security/apparmor/apparmorfs.c aa_put_common_ref() -> aa_put_ns()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

security/apparmor/apparmorfs.c ns_mkdir_op() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 0,4096-ptr_max
PARAM_VALUE 0 ns->base.list.next 4096-ptr_max
PARAM_VALUE 0 ns->base.list.prev 4096-ptr_max
PARAM_VALUE 0 ns->level (-2147483647)-33
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.magic 4096-ptr_max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->parent 4096-ptr_max
PARAM_VALUE 0 ns->rawdata_list.next 4096-ptr_max
PARAM_VALUE 0 ns->rawdata_list.next->next 4096-ptr_max
PARAM_VALUE 0 ns->rawdata_list.prev 4096-ptr_max
PARAM_VALUE 0 ns->rawdata_list.prev->next 4096-ptr_max
PARAM_VALUE 0 ns->rawdata_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 ns->sub_ns.next 4096-ptr_max
PARAM_VALUE 0 ns->sub_ns.next->next 4096-ptr_max
PARAM_VALUE 0 ns->sub_ns.prev 4096-ptr_max
PARAM_VALUE 0 ns->sub_ns.prev->next 4096-ptr_max
PARAM_VALUE 0 ns->sub_ns.prev->prev 4096-ptr_max
PARAM_VALUE 0 ns->unconfined 4096-ptr_max
PARAM_VALUE 0 ns->unconfined->label.flags 0,2-s64max
PARAM_VALUE 0 ns->unconfined->mode 3
PARAM_VALUE 0 ns->unconfined->ns 4096-ptr_max
PARAM_VALUE 0 ns->unconfined->ns->lock.magic 4096-ptr_max
PARAM_VALUE 0 ns->unconfined->ns->sub_ns.next 4096-ptr_max
PARAM_VALUE 0 ns->unconfined->ns->sub_ns.prev 4096-ptr_max
PARAM_VALUE 0 ns->unconfined->ns->unconfined 4096-ptr_max
PARAM_VALUE 0 ns->wait.head.next 4096-ptr_max
PARAM_VALUE 0 ns->wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 ns->wait.head.prev 4096-ptr_max
PARAM_VALUE 0 ns->wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 ns->wait.head.prev->prev 4096-ptr_max
BUF_SIZE 0 ns 0,568
BUF_SIZE 0 ns 0,568
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dir->i_rwsem
LOCK2 &parent->lock
HALF_LOCKED2 &dentry->d_lockref.lock
TYPE_LOCK (struct aa_ns)->lock
TYPE_LOCK (struct inode)->i_rwsem

security/apparmor/apparmorfs.c ns_mkdir_op() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->dents 4096-ptr_max
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->lock.wait_lock.dep_map->name 0-255
CAPPED_DATA 0 &ns->lock 1
DATA_SOURCE 0 ns r get_ns_common_ref
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dir->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
TYPE_LOCK (struct inode)->i_rwsem

security/apparmor/apparmorfs.c ns_revision_release() -> aa_put_ns()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

security/apparmor/apparmorfs.c ns_rmdir_op() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->base.list.next->prev 4096-ptr_max
PARAM_VALUE 0 ns->dents 4096-ptr_max
PARAM_VALUE 0 ns->labels.lock.dep_map->name 0-255
PARAM_VALUE 0 ns->labels.lock.owner (-1)
PARAM_VALUE 0 ns->labels.lock.owner_cpu u32max
PARAM_VALUE 0 ns->labels.lock.raw_lock.wlocked 0
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->parent 0,4096-ptr_max
PARAM_VALUE 0 ns->unconfined->label.count.rcu.next 0
PARAM_VALUE 0 ns->unconfined->label.flags 0,2048-s64max
PARAM_VALUE 0 *ns->dents 0
DATA_SOURCE 0 ns r aa_get_ns
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &parent->lock
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &dentry->d_sb->s_vfs_rename_mutex
HALF_LOCKED2 &dir->d_inode->i_rwsem
TYPE_LOCK (struct aa_ns)->lock

security/apparmor/apparmorfs.c ns_rmdir_op() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->lock.wait_lock.dep_map->name 0-255
CAPPED_DATA 0 &ns->lock 1
CAPPED_DATA 0 &ns->sub_ns 1
DATA_SOURCE 0 ns r get_ns_common_ref
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dentry->d_inode->i_rwsem
LOCK2 &dir->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &dentry->d_sb->s_vfs_rename_mutex
HALF_LOCKED2 &dir->d_inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

security/apparmor/apparmorfs.c p_stop() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.wait_lock.owner (-1)
PARAM_VALUE 0 ns->lock.wait_lock.owner_cpu u32max
BUF_SIZE 0 ns s32min-(-2),1-s32max
BUF_SIZE 0 ns s32min-(-2),1-s32max
CAPPED_DATA 0 &ns->lock 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 ns unit_array_size
LOCK2 &f->lock
TYPE_LOCK (struct seq_file)->lock

security/apparmor/apparmorfs.c policy_get_link() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->dents 4096-ptr_max
DATA_SOURCE 0 ns r aa_get_current_ns
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

security/apparmor/apparmorfs.c profile_load() -> aa_put_ns()

Type Parameter Key Value
DATA_SOURCE 0 ns r get_ns_common_ref
NOCHECK_CALL

security/apparmor/apparmorfs.c profile_remove() -> aa_put_ns()

Type Parameter Key Value
DATA_SOURCE 0 ns r get_ns_common_ref
NOCHECK_CALL

security/apparmor/apparmorfs.c profile_replace() -> aa_put_ns()

Type Parameter Key Value
DATA_SOURCE 0 ns r get_ns_common_ref
NOCHECK_CALL

security/apparmor/policy.c aa_fqlookupn_profile() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns->unconfined 4096-ptr_max
PARAM_VALUE 0 ns->unconfined->label.count.count.refcount.refs.counter (-1073741824)
PARAM_VALUE 0 ns->unconfined->label.proxy->label->count.count.refcount.refs.counter (-1073741824)
NOCHECK_CALL

security/apparmor/policy.c aa_free_profile() -> aa_put_ns()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 0 &ns->lock

security/apparmor/policy.c aa_remove_profiles() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->labels.lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->lock.wait_lock.dep_map->name 0-255
CAPPED_DATA 0 &ns->lock 1
NOCHECK_CALL

security/apparmor/policy.c aa_remove_profiles() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->lock.wait_lock.dep_map->name 0-255
CAPPED_DATA 0 &ns->lock 1
NOCHECK_CALL

security/apparmor/policy.c aa_replace_profiles() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 0,4096-ptr_max
PARAM_VALUE 0 ns->labels.lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->rawdata_list.next 4096-ptr_max
BUF_SIZE 0 ns (-1)-0,568
BUF_SIZE 0 ns (-1)-0,568
NOCHECK_CALL

security/apparmor/label.c aa_label_printk() -> aa_put_ns()

Type Parameter Key Value
DATA_SOURCE 0 ns r aa_get_current_ns
NOCHECK_CALL

security/apparmor/policy_ns.c __aa_remove_ns() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->base.list.next->prev 4096-ptr_max
PARAM_VALUE 0 ns->labels.lock.dep_map->name 0-255
PARAM_VALUE 0 ns->labels.lock.owner (-1)
PARAM_VALUE 0 ns->labels.lock.owner_cpu u32max
PARAM_VALUE 0 ns->labels.lock.raw_lock.wlocked 0
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->parent 0,4096-ptr_max
PARAM_VALUE 0 ns->unconfined->label.flags 0,2048-s64max
PARAM_VALUE 0 ns->unconfined->label.proxy->label 1-u64max
PARAM_VALUE 0 *ns->dents 0
DATA_SOURCE 0 ns $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &ns->lock
HALF_LOCKED2 &parent->lock
HALF_LOCKED2 0 &ns->parent->lock
TYPE_LOCK (struct aa_ns)->lock

security/apparmor/policy_ns.c aa_free_ns() -> aa_put_ns()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 ns unit_array_size
HALF_LOCKED2 &parent->lock

security/apparmor/policy_ns.c aa_free_root_ns() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 0,4096-ptr_max
PARAM_VALUE 0 ns->labels.lock.dep_map->name 0-255
PARAM_VALUE 0 ns->labels.lock.owner (-1)
PARAM_VALUE 0 ns->labels.lock.owner_cpu u32max
PARAM_VALUE 0 ns->labels.lock.raw_lock.wlocked 0
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->parent 0,4096-ptr_max
PARAM_VALUE 0 ns->unconfined->label.flags 0,2048-s64max
PARAM_VALUE 0 ns->unconfined->label.proxy->label 1-u64max
NOCHECK_CALL
HALF_LOCKED2 irq

security/apparmor/procattr.c aa_getprocattr() -> aa_put_ns()

Type Parameter Key Value
DATA_SOURCE 0 ns r aa_get_current_ns
NOCHECK_CALL

security/apparmor/procattr.c aa_getprocattr() -> aa_put_ns()

Type Parameter Key Value
CAPPED_DATA 0 ns 1
DATA_SOURCE 0 ns r aa_get_current_ns
NOCHECK_CALL
UNITS 0 ns unit_array_size

security/apparmor/procattr.c aa_getprocattr() -> aa_put_ns()

Type Parameter Key Value
CAPPED_DATA 0 ns 1
DATA_SOURCE 0 ns r aa_get_current_ns
NOCHECK_CALL
UNITS 0 ns unit_array_size

security/apparmor/procattr.c aa_getprocattr() -> aa_put_ns()

Type Parameter Key Value
CAPPED_DATA 0 ns 1
DATA_SOURCE 0 ns r aa_get_current_ns
NOCHECK_CALL
UNITS 0 ns unit_array_size

security/apparmor/policy_unpack.c do_ploaddata_rmfs() -> aa_put_ns()

Type Parameter Key Value
PARAM_VALUE 0 ns 4096-ptr_max
PARAM_VALUE 0 ns->lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ns->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ns->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ns->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ns->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ns->lock.wait_lock.dep_map->name 0-255
CAPPED_DATA 0 &ns->lock 1
DATA_SOURCE 0 ns r aa_get_ns
NOCHECK_CALL
HALF_LOCKED2 &pool->lock