Lines Matching refs:khdr
327 struct ima_kexec_hdr *khdr = buf; in ima_restore_measurement_list() local
333 void *bufp = buf + sizeof(*khdr); in ima_restore_measurement_list()
341 if (!buf || size < sizeof(*khdr)) in ima_restore_measurement_list()
345 khdr->version = le16_to_cpu(khdr->version); in ima_restore_measurement_list()
346 khdr->count = le64_to_cpu(khdr->count); in ima_restore_measurement_list()
347 khdr->buffer_size = le64_to_cpu(khdr->buffer_size); in ima_restore_measurement_list()
350 if (khdr->version != 1) { in ima_restore_measurement_list()
355 if (khdr->count > ULONG_MAX - 1) { in ima_restore_measurement_list()
369 bufendp = buf + khdr->buffer_size; in ima_restore_measurement_list()
370 while ((bufp < bufendp) && (count++ < khdr->count)) { in ima_restore_measurement_list()
373 enforce_mask |= (count == khdr->count) ? ENFORCE_BUFEND : 0; in ima_restore_measurement_list()