nt_size
size = nt_size(PRSTATUS, struct elf_prstatus);
size += nt_size(PRFPREG, elf_fpregset_t);
size += nt_size(S390_TIMER, sa->timer);
size += nt_size(S390_TODCMP, sa->todcmp);
size += nt_size(S390_TODPREG, sa->todpreg);
size += nt_size(S390_CTRS, sa->ctrs);
size += nt_size(S390_PREFIX, sa->prefix);
size += nt_size(S390_VXRS_HIGH, sa->vxrs_high);
size += nt_size(S390_VXRS_LOW, sa->vxrs_low);
size += nt_size(PRPSINFO, struct elf_prpsinfo);
static int smb_append_inherited_ace(struct smb_ace **ace, int *nt_size,
if (check_add_overflow(*nt_size, ace_size, nt_size) ||
*nt_size > U16_MAX - (int)sizeof(struct smb_acl))
int inherited_flags = 0, flags = 0, i, nt_size = 0, pdacl_size;
rc = smb_append_inherited_ace(&aces, &nt_size, &ace_cnt,
rc = smb_append_inherited_ace(&aces, &nt_size, &ace_cnt, psid,
if (nt_size > 0) {
check_add_overflow(pntsd_alloc_size, (size_t)nt_size,
if ((u64)le32_to_cpu(pntsd->dacloffset) + sizeof(struct smb_acl) + nt_size >
pdacl->size = cpu_to_le16(sizeof(struct smb_acl) + nt_size);
memcpy(pace, aces_base, nt_size);
pntsd_size += sizeof(struct smb_acl) + nt_size;