Symbol: KMALLOC_MAX_SIZE
block/partitions/efi.c
423
if (pt_size > KMALLOC_MAX_SIZE) {
block/partitions/efi.c
425
(unsigned long long)pt_size, KMALLOC_MAX_SIZE);
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
267
if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32))
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
268
hole_size = KMALLOC_MAX_SIZE / sizeof(u32);
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
818
if (hole_size > KMALLOC_MAX_SIZE / sizeof(u32))
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
819
hole_size = KMALLOC_MAX_SIZE / sizeof(u32);
drivers/infiniband/core/ucma.c
1458
if (unlikely(cmd.optlen > KMALLOC_MAX_SIZE))
drivers/irqchip/irq-gic-v5-irs.c
84
if (l2istsz > KMALLOC_MAX_SIZE) {
drivers/irqchip/irq-gic-v5-irs.c
85
u8 lpi_id_cap = ilog2(KMALLOC_MAX_SIZE) - 2 + istsz;
drivers/irqchip/irq-gic-v5-irs.c
90
l2istsz = KMALLOC_MAX_SIZE;
drivers/irqchip/irq-gic-v5-its.c
588
if (sz > KMALLOC_MAX_SIZE) {
drivers/irqchip/irq-gic-v5-its.c
589
u8 device_id_cap = ilog2(KMALLOC_MAX_SIZE/sizeof(*devtab));
drivers/irqchip/irq-gic-v5-its.c
643
if (l1_sz > KMALLOC_MAX_SIZE) {
drivers/irqchip/irq-gic-v5-its.c
644
l1_bits = ilog2(KMALLOC_MAX_SIZE/sizeof(*l1devtab));
drivers/irqchip/irq-gic-v5-its.c
649
l1_sz = KMALLOC_MAX_SIZE;
drivers/md/dm-bufio.c
1186
if (c->block_size <= KMALLOC_MAX_SIZE &&
drivers/md/dm-bufio.c
2552
if (block_size <= KMALLOC_MAX_SIZE && !is_power_of_2(block_size)) {
drivers/md/dm-crypt.c
3509
if (unlikely(tag_len > KMALLOC_MAX_SIZE))
drivers/md/dm-switch.c
256
{1, (KMALLOC_MAX_SIZE - sizeof(struct switch_ctx)) / sizeof(struct switch_path), "Invalid number of paths"},
drivers/misc/vmw_vmci/vmci_queue_pair.c
542
if (queue_size + queue_page_size > KMALLOC_MAX_SIZE)
drivers/mtd/mtdcore.c
2517
*size = min_t(size_t, *size, KMALLOC_MAX_SIZE);
drivers/ptp/ptp_private.h
25
#define PTP_MAX_VCLOCKS_LIMIT (KMALLOC_MAX_SIZE/(sizeof(int)))
drivers/tty/vt/vt.c
1084
vc->vc_screenbuf_size > KMALLOC_MAX_SIZE || !vc->vc_screenbuf_size)
drivers/tty/vt/vt.c
1175
if (new_screen_size > KMALLOC_MAX_SIZE || !new_screen_size)
drivers/usb/gadget/legacy/raw_gadget.c
43
#define USB_RAW_IO_LENGTH_MAX KMALLOC_MAX_SIZE
fs/gfs2/dir.c
1326
if (size < KMALLOC_MAX_SIZE)
fs/proc/proc_sysctl.c
581
if (count >= KMALLOC_MAX_SIZE)
fs/resctrl/pseudo_lock.c
305
if (plr->size > KMALLOC_MAX_SIZE) {
include/linux/bpf_local_storage.h
115
(KMALLOC_MAX_SIZE - MAX_BPF_STACK - \
include/linux/ptr_ring.h
479
if (size > KMALLOC_MAX_SIZE / sizeof(void *))
kernel/bpf/bloom_filter.c
86
if (attr->value_size > KMALLOC_MAX_SIZE)
kernel/bpf/hashtab.c
450
if ((u64)attr->key_size + attr->value_size >= KMALLOC_MAX_SIZE -
kernel/bpf/lpm_trie.c
560
#define LPM_VAL_SIZE_MAX (KMALLOC_MAX_SIZE - LPM_DATA_SIZE_MAX - \
kernel/bpf/queue_stack_maps.c
56
if (attr->value_size > KMALLOC_MAX_SIZE)
kernel/relay.c
150
if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t))
kernel/trace/trace.c
4388
if (count == 0 || count > KMALLOC_MAX_SIZE)
lib/argv_split.c
67
argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp);
mm/kasan/generic.c
391
if (*size > KMALLOC_MAX_SIZE) {
mm/kasan/generic.c
451
if (*size > KMALLOC_MAX_SIZE) {
mm/kasan/generic.c
460
if (optimal_size > KMALLOC_MAX_SIZE)
mm/kasan/generic.c
461
optimal_size = KMALLOC_MAX_SIZE;
mm/slab_common.c
105
if (!name || in_interrupt() || size > KMALLOC_MAX_SIZE) {
mm/slab_common.c
794
if (size && size <= KMALLOC_MAX_SIZE)
net/ethtool/ioctl.c
1252
if (info.rule_cnt <= KMALLOC_MAX_SIZE / sizeof(u32))
net/ipv4/inet_diag.c
207
#define MAX_DUMP_ALLOC_SIZE (KMALLOC_MAX_SIZE - SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
net/qrtr/tun.c
96
if (len > KMALLOC_MAX_SIZE)
net/rds/message.c
328
if (extra_len > KMALLOC_MAX_SIZE - sizeof(struct rds_message))
security/landlock/domain.h
70
LANDLOCK_PATH_MAX_SIZE) <= KMALLOC_MAX_SIZE);
security/safesetid/securityfs.c
146
if (len >= KMALLOC_MAX_SIZE)