Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/xfs/scrub/attr_repair.c xrep_xattr_want_salvage() -> xfs_attr_namecheck()

Type Parameter Key Value
PARAM_VALUE 2 length 1-255
DATA_SOURCE 0 attr_flags $1
DATA_SOURCE 1 name $2
DATA_SOURCE 2 length $3
BIT_INFO 0 attr_flags 0x0,0xffffff7f
UNITS 2 length unit_byte

fs/xfs/xfs_attr_list.c xfs_attr3_leaf_list_int() -> xfs_attr_namecheck()

Type Parameter Key Value
PARAM_VALUE 2 length 0-255
TASK_NOT_RUNNING
UNITS 2 length unit_byte

fs/xfs/xfs_attr_list.c xfs_attr_shortform_list() -> xfs_attr_namecheck()

Type Parameter Key Value
TASK_NOT_RUNNING
UNITS 2 length unit_byte

fs/xfs/xfs_attr_list.c xfs_attr_shortform_list() -> xfs_attr_namecheck()

Type Parameter Key Value
TASK_NOT_RUNNING
UNITS 2 length unit_byte

fs/xfs/scrub/attr.c xchk_xattr_actor() -> xfs_attr_namecheck()

Type Parameter Key Value
PARAM_VALUE 0 attr_flags 0-254
DATA_SOURCE 0 attr_flags $2
DATA_SOURCE 1 name $3
DATA_SOURCE 2 length $4
BIT_INFO 0 attr_flags 0x0,0xf
UNITS 2 length unit_byte
HALF_LOCKED2 &dl->lock

fs/xfs/xfs_attr_item.c xfs_attr_recover_work() -> xfs_attr_namecheck()

Type Parameter Key Value
PARAM_VALUE 0 attr_flags 0-254
BUF_SIZE 1 name s32min-(-2),1-s32max
UNITS 1 name unit_byte
UNITS 2 length unit_byte

fs/xfs/xfs_attr_item.c xfs_attri_validate_name_iovec() -> xfs_attr_namecheck()

Type Parameter Key Value
PARAM_VALUE 0 attr_flags 0-254
BUF_SIZE 1 name s32min-(-2),1-s32max
DATA_SOURCE 2 length $3
UNITS 1 name unit_byte
UNITS 2 length unit_byte