XATTR_SIZE_MAX
blocks = XATTR_SIZE_MAX >> sb->s_blocksize_bits;
ret = min_t(size_t, outarg.size, XATTR_SIZE_MAX);
XATTR_SIZE_MAX);
XATTR_SIZE_MAX);
#define NFS4XATTR_MAXPAGES DIV_ROUND_UP(XATTR_SIZE_MAX, PAGE_SIZE)
np = nfs_page_array_len(0, buflen ?: XATTR_SIZE_MAX);
#define NFS4ACL_MAXPAGES DIV_ROUND_UP(XATTR_SIZE_MAX, PAGE_SIZE)
u32 rlen = min_t(u32, XATTR_SIZE_MAX, nfsd4_max_payload(rqstp));
maxcount = min_t(u32, XATTR_SIZE_MAX, maxcount);
maxcount = min_t(u32, XATTR_SIZE_MAX, maxcount);
XATTR_SIZE_MAX);
if (current_byte_offset > XATTR_SIZE_MAX)
current_byte_offset = XATTR_SIZE_MAX;
if (*pos >= XATTR_SIZE_MAX) {
if (size > XATTR_SIZE_MAX) {
size = XATTR_SIZE_MAX;
count = XATTR_SIZE_MAX - *pos;
if (ctx->size > XATTR_SIZE_MAX)
if (ctx->size > XATTR_SIZE_MAX)
ctx->size = XATTR_SIZE_MAX;
} else if (error == -ERANGE && ctx->size >= XATTR_SIZE_MAX) {
error = xchk_setup_xattr_buf(sc, XATTR_SIZE_MAX);
if (valuelen > XATTR_SIZE_MAX || valuelen < 0)
max_len = XATTR_SIZE_MAX;
if (attrp->alfi_value_len > XATTR_SIZE_MAX)
for (i = 0; i < len && i < XATTR_SIZE_MAX; i++) {
return i == XATTR_SIZE_MAX ? -E2BIG : 0;
return __bpf_strncasecmp(s1__ign, s2__ign, false, XATTR_SIZE_MAX);
return __bpf_strncasecmp(s1__ign, s2__ign, true, XATTR_SIZE_MAX);
for (i = 0; i < count && i < XATTR_SIZE_MAX; i++) {
return i == XATTR_SIZE_MAX ? -E2BIG : -ENOENT;
return bpf_strnchr(s__ign, XATTR_SIZE_MAX, c);
for (i = 0; i < XATTR_SIZE_MAX; i++) {
for (i = 0; i < XATTR_SIZE_MAX; i++) {
for (i = 0; i < count && i < XATTR_SIZE_MAX; i++) {
return i == XATTR_SIZE_MAX ? -E2BIG : i;
return bpf_strnlen(s__ign, XATTR_SIZE_MAX);
for (i = 0; i < XATTR_SIZE_MAX; i++) {
for (j = 0; j < XATTR_SIZE_MAX; j++) {
if (j == XATTR_SIZE_MAX)
for (i = 0; i < XATTR_SIZE_MAX; i++) {
for (j = 0; j < XATTR_SIZE_MAX; j++) {
if (j == XATTR_SIZE_MAX)
for (i = 0; i < XATTR_SIZE_MAX; i++) {
for (j = 0; i + j <= len && j < XATTR_SIZE_MAX; j++) {
if (j == XATTR_SIZE_MAX)
return __bpf_strnstr(s1__ign, s2__ign, XATTR_SIZE_MAX, false);
return __bpf_strnstr(s1__ign, s2__ign, XATTR_SIZE_MAX, true);
char long_str[XATTR_SIZE_MAX + 1];