Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- fs/nfsd/auth.c, line 65
- fs/smb/server/smb_common.c, line 813
- kernel/groups.c
- kernel/uid16.c, line 196
- net/sunrpc/auth_gss/gss_rpc_xdr.c, line 221
- net/sunrpc/auth_gss/svcauth_gss.c, line 541
- net/sunrpc/svcauth_unix.c
Smatch caller information:
fs/nfsd/auth.c nfsd_setuser() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/smb/server/smb_common.c __ksmbd_override_fsids() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
net/sunrpc/auth_gss/svcauth_gss.c rsc_parse() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->ngroups | 0-65536 |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| NOCHECK_CALL | |||
| USER_DATA | 0 | group_info->ngroups | 0-65536 |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
kernel/uid16.c __do_sys_setgroups16() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->ngroups | 0-65536 |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| PARAM_VALUE | 0 | *group_info->gid | s32min-s32max |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| CAPPED_DATA | 0 | group_info->ngroups | 1 |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| NOCHECK_CALL | |||
| USER_DATA | 0 | group_info->ngroups | 0-65536[c] |
kernel/uid16.c __do_sys_setgroups16() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->ngroups | 0-65536 |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| PARAM_VALUE | 0 | *group_info->gid | s32min-s32max |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| CAPPED_DATA | 0 | group_info->ngroups | 1 |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| NOCHECK_CALL | |||
| USER_DATA | 0 | group_info->ngroups | 0-65536[c] |
net/sunrpc/svcauth_unix.c sunrpc_nl_parse_one_unix_gid() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->ngroups | 0-8192 |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/sunrpc/svcauth_unix.c svcauth_unix_accept() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->ngroups | 0-16 |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| FUZZY_MAX | 0 | group_info->ngroups | 16 |
| NOCHECK_CALL | |||
| USER_DATA | 0 | group_info->ngroups | 0-16 |
net/sunrpc/svcauth_unix.c unix_gid_parse() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->ngroups | 0-8192 |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| NOCHECK_CALL | |||
| USER_DATA | 0 | group_info->ngroups | 0-8192 |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
net/sunrpc/auth_gss/gss_rpc_xdr.c gssx_dec_linux_creds() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | group_info->ngroups | s32min-s32max |
kernel/groups.c __do_sys_setgroups() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->ngroups | 0-65536 |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| PARAM_VALUE | 0 | *group_info->gid | s32min-s32max |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| CAPPED_DATA | 0 | group_info->ngroups | 1 |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| NOCHECK_CALL | |||
| USER_DATA | 0 | group_info->ngroups | 0-65536[c] |
kernel/groups.c __do_sys_setgroups() -> groups_sort()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | group_info->ngroups | 0-65536 |
| PARAM_VALUE | 0 | group_info->usage.refs.counter | 1 |
| PARAM_VALUE | 0 | *group_info->gid | s32min-s32max |
| BUF_SIZE | 0 | group_info | s32min-s32max |
| CAPPED_DATA | 0 | group_info->ngroups | 1 |
| DATA_SOURCE | 0 | group_info | r groups_alloc |
| NOCHECK_CALL | |||
| USER_DATA | 0 | group_info->ngroups | 0-65536[c] |