KMALLOC_MAX_SIZE
if (pt_size > KMALLOC_MAX_SIZE) {
(unsigned long long)pt_size, KMALLOC_MAX_SIZE);
if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32))
hole_size = KMALLOC_MAX_SIZE / sizeof(u32);
if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32))
hole_size = KMALLOC_MAX_SIZE / sizeof(u32);
if (unlikely(cmd.optlen > KMALLOC_MAX_SIZE))
if (l2istsz > KMALLOC_MAX_SIZE) {
u8 lpi_id_cap = ilog2(KMALLOC_MAX_SIZE) - 2 + istsz;
l2istsz = KMALLOC_MAX_SIZE;
if (sz > KMALLOC_MAX_SIZE) {
u8 device_id_cap = ilog2(KMALLOC_MAX_SIZE/sizeof(*devtab));
if (l1_sz > KMALLOC_MAX_SIZE) {
l1_bits = ilog2(KMALLOC_MAX_SIZE/sizeof(*l1devtab));
l1_sz = KMALLOC_MAX_SIZE;
if (c->block_size <= KMALLOC_MAX_SIZE &&
if (block_size <= KMALLOC_MAX_SIZE && !is_power_of_2(block_size)) {
if (unlikely(tag_len > KMALLOC_MAX_SIZE))
{1, (KMALLOC_MAX_SIZE - sizeof(struct switch_ctx)) / sizeof(struct switch_path), "Invalid number of paths"},
if (queue_size + queue_page_size > KMALLOC_MAX_SIZE)
*size = min_t(size_t, *size, KMALLOC_MAX_SIZE);
#define PTP_MAX_VCLOCKS_LIMIT (KMALLOC_MAX_SIZE/(sizeof(int)))
vc->vc_screenbuf_size > KMALLOC_MAX_SIZE || !vc->vc_screenbuf_size)
if (new_screen_size > KMALLOC_MAX_SIZE || !new_screen_size)
#define USB_RAW_IO_LENGTH_MAX KMALLOC_MAX_SIZE
if (size < KMALLOC_MAX_SIZE)
if (count >= KMALLOC_MAX_SIZE)
if (plr->size > KMALLOC_MAX_SIZE) {
(KMALLOC_MAX_SIZE - MAX_BPF_STACK - \
if (size > KMALLOC_MAX_SIZE / sizeof(void *))
if (attr->value_size > KMALLOC_MAX_SIZE)
if ((u64)attr->key_size + attr->value_size >= KMALLOC_MAX_SIZE -
#define LPM_VAL_SIZE_MAX (KMALLOC_MAX_SIZE - LPM_DATA_SIZE_MAX - \
if (attr->value_size > KMALLOC_MAX_SIZE)
if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t))
if (count == 0 || count > KMALLOC_MAX_SIZE)
argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp);
if (*size > KMALLOC_MAX_SIZE) {
if (*size > KMALLOC_MAX_SIZE) {
if (optimal_size > KMALLOC_MAX_SIZE)
optimal_size = KMALLOC_MAX_SIZE;
if (!name || in_interrupt() || size > KMALLOC_MAX_SIZE) {
if (size && size <= KMALLOC_MAX_SIZE)
if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32))
#define MAX_DUMP_ALLOC_SIZE (KMALLOC_MAX_SIZE - SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
if (len > KMALLOC_MAX_SIZE)
if (extra_len > KMALLOC_MAX_SIZE - sizeof(struct rds_message))
LANDLOCK_PATH_MAX_SIZE) <= KMALLOC_MAX_SIZE);
if (len >= KMALLOC_MAX_SIZE)