size_add
return size_add(sizeof(struct cpu_sve_state),
return size_add(sizeof(struct pkvm_hyp_vm),
hyp_vm_sz = PAGE_ALIGN(size_add(PKVM_HYP_VM_SIZE,
return size_add(vsize, vmalloc_size);
size_add(doff, dlen) > PAGE_SIZE)
size_add(soff, slen) > PAGE_SIZE)
if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_WIRE_MSG_LENGTH)
if (size_add(msg_hdr_len, sizeof(*out_trans) + sizeof(struct wire_addr_size_pair)) >
if (size_add(msg_hdr_len, sizeof(*out_trans)) > QAIC_MANAGE_WIRE_MSG_LENGTH)
if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_WIRE_MSG_LENGTH)
size_add(user_len, trans_hdr->len) > user_msg->len) {
size_add(msg_len, hdr_len) > msg_hdr_len)
if (size_add(size, sizeof(*page)) > page->size)
if (size_add(data_offset, data_len) > context->firmware->size) {
size_add(uobj_chunk_num, sobj_chunk_num));
if (size_add(struct_size(cmd, in_buf, cmd->in_length), 4) > buf_len)
size_add(GUD_PROPERTIES_MAX_NUM, GUD_CONNECTOR_PROPERTIES_MAX_NUM));
(size_add(submit->cmd[i].size, submit->cmd[i].offset) > obj->size / 4)) {
muxc = devm_kzalloc(dev, size_add(mux_size, sizeof_priv), GFP_KERNEL);
size_add(rdma_end_port(device), 1));
sa_dev = kzalloc_flex(*sa_dev, port, size_add(size_sub(e, s), 1));
size_add(attr->gid_tbl_len, attr->pkey_tbl_len));
data = kzalloc_flex(*data, attrs, size_add(stats->num_counters, 1));
data = kzalloc_flex(*data, attrs, size_add(stats->num_counters, 1));
umad_dev = kzalloc_flex(*umad_dev, ports, size_add(size_sub(e, s), 1));
skb = alloc_skb(size_add(gl->tot_len,
if (size_add(offset, count) > m24lr->sss_len)
if (size_add(offset, count) > m24lr->sss_len)
mei_dev = kzalloc(size_add(sizeof(*mei_dev), sizeof(*hw)), GFP_KERNEL);
size_add(array->capacity, capacity_bump));
mux_chip = kzalloc(size_add(struct_size(mux_chip, mux, controllers),
priv = devm_kzalloc(dev, size_add(sizeof(*priv), var->chip_data_sz),
skb = alloc_skb(size_add(gl->tot_len,
size_add(tx_stats_num, rx_stats_num));
if (size_add(pkt_size, data_size) > INT_MAX ||
if (size_add(eth_pkt_ofs, eth_pat_len) < ETH_ALEN) {
} else if (size_add(eth_pkt_ofs, eth_pat_len) < prot_ofs) {
if (size_add(eth_pkt_ofs, eth_pat_len) < prot_ofs) {
error = kmalloc(size_add(struct_size(error, elem, elem_len),
if (size_add(sizeof(tlv_rxba->header), tlv_len) > tlv_buf_left) {
size_add(sizeof(tlv_rxba->header), tlv_len),
if (size_add(sizeof(*tlv_rxba), tlv_bitmap_len) > tlv_buf_left) {
size_add(sizeof(*tlv_rxba), tlv_bitmap_len),
if (size_add(cmd->in_offset, cmd->in_length) > LABEL_AREA_SIZE)
if (size_add(cmd->in_offset, cmd->in_length) > LABEL_AREA_SIZE)
fgroups = devm_kcalloc(dev, size_add(func->ngroups, npins),
*length = size_add(ALIGN(*length, alignment), size);
alloc_size = size_add(ALIGN(struct_size(chip, pwms, npwm), PWMCHIP_ALIGN),
if (size_add(rsc_size, rsc->config_len) > avail) {
if (size_add(offset, len) > fsp->data_len) {
phend = size_add(size_mul(sizeof(struct elf32_phdr), ehdr->e_phnum), ehdr->e_phoff);
shend = size_add(size_mul(sizeof(struct elf32_shdr), ehdr->e_shnum), ehdr->e_shoff);
alloc_sz = size_add(alloc_sz, array_size(n_channels, sizeof(struct ieee80211_channel)));
alloc_sz = size_add(alloc_sz, array_size(n_bitrates, sizeof(struct ieee80211_rate)));
size = size_add(size, qcomtee_msg_offset_align(u[i].b.size));
size = size_add(size, qcomtee_msg_offset_align(u[i].b.size));
if (size_add(sizeof(arg), TEE_IOCTL_PARAM_SIZE(arg.num_params)) != buf.buf_len)
if (size_add(sizeof(arg), TEE_IOCTL_PARAM_SIZE(arg.num_params)) != buf.buf_len)
if (size_add(sizeof(*uarg), TEE_IOCTL_PARAM_SIZE(num_params)) != buf.buf_len)
if (size_add(sizeof(*uarg), TEE_IOCTL_PARAM_SIZE(num_params)) > buf.buf_len)
size_add(num_rcv_urbs, num_snd_urbs));
size_add(lang_count, 1));
return size_add(struct_size(vq->avail, ring, num), event);
return size_add(struct_size(vq->used, ring, num), event);
char *p = svcxdr_tmpalloc(argp, size_add(len, 1));
size_add(off, sizeof(struct NTFS_DE)) > end) {
if (size_add(off, sizeof(struct NTFS_DE)) > end)
if (de_off >= used || size_add(de_off, sizeof(struct NTFS_DE)) > used)
return size_add(size, 1023) & ~(size_t)1023;
ea_p = kmalloc(size_add(size, add_bytes), GFP_NOFS);
size_add(sizeof(*(p)), flex_array_size(p, member, count)))
off = size_add(off, sq_array_size);
p = kmalloc(size_add(sizeof(*p), size), GFP_KERNEL);
check_one_size_helper(9, size_add, var++, 5);
check_one_size_helper(9, size_add, 4, var++);
check_one_size_helper(9, size_add, 9, 0);
check_one_size_helper(9, size_add, 0, 9);
check_one_size_helper(5, size_add, 2, 3);
check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1);
check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3);
check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3);
char *path = kmalloc_array(size_add(count, 1), sizeof(*path),
char *path = kmalloc_array(size_add(count, 1), sizeof(*path),
data_size = size_add(data_size,
data_size = size_add(data_size,
flt = kzalloc(size_add(sizeof(*flt), data_size), GFP_KERNEL);
key_off = size_add(priv_bytes, indir_bytes);
flex_len = size_add(key_off, key_max);
if (sz == struct_size(p, gacks, size_add(p->ugack_cnt, p->bgack_cnt))) {
len = struct_size(ga, gacks, size_add(ga->bgack_cnt, ga->ugack_cnt));
mem = kmalloc(aead_size + struct_size(dctx, sg, size_add(n_sgin, n_sgout)),
size = size_add(size, array_size(sizeof(*request->req.ssids), n_ssids));
size = size_add(size, ie_len);
size = size_add(size, array_size(sizeof(*request->ssids), n_ssids));
size = size_add(size, array_size(sizeof(*request->match_sets),
size = size_add(size, array_size(sizeof(*request->scan_plans),
size = size_add(size, ie_len);
pair = kzalloc(size_add(sizeof(*pair), asrc->pair_priv_size), GFP_KERNEL);
size_add(swidget->num_input_pins,