Re: [PATCH v5 30/33] nvdimm acpi: support Set Namespace Label Data function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 28, 2015 at 10:26:28PM +0000, Xiao Guangrong wrote:
> +static void nvdimm_dsm_func_set_label_data(NVDIMMDevice *nvdimm,
> +                                           nvdimm_dsm_in *in, GArray *out)
> +{
> +    NVDIMMClass *nvc = NVDIMM_GET_CLASS(nvdimm);
> +    nvdimm_func_in_set_label_data *set_label_data = &in->func_set_label_data;
> +    uint32_t status;
> +
> +    le32_to_cpus(&set_label_data->offset);
> +    le32_to_cpus(&set_label_data->length);
> +
> +    nvdimm_debug("Write Label Data: offset %#x length %#x.\n",
> +                 set_label_data->offset, set_label_data->length);
> +
> +    if (nvdimm->label_size < set_label_data->offset + set_label_data->length) {

Integer overflow.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux