lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKT61h8DfWHy2sbAx7JZ=Wj1QVw5oDZfiB--8cO9ii+6ZbioHQ@mail.gmail.com>
Date:	Mon, 27 Jun 2016 10:16:16 +0800
From:	Wan ZongShun <mcuos.com@...il.com>
To:	Nicolas Iooss <nicolas.iooss_linux@....org>
Cc:	Joerg Roedel <joro@...tes.org>, iommu@...ts.linux-foundation.org,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/1] iommu/amd: initialize devid variable before using it

2016-06-26 16:33 GMT+08:00 Nicolas Iooss <nicolas.iooss_linux@....org>:
> Commit 2a0cb4e2d423 ("iommu/amd: Add new map for storing IVHD dev entry
> type HID") added a call to DUMP_printk in init_iommu_from_acpi() which
> used the value of devid before this variable was initialized.
>
> Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@....org>
> ---
>  drivers/iommu/amd_iommu_init.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
> index 9e0034196e10..d091defc3426 100644
> --- a/drivers/iommu/amd_iommu_init.c
> +++ b/drivers/iommu/amd_iommu_init.c
> @@ -1107,13 +1107,13 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
>                                 break;
>                         }
>
> +                       devid = e->devid;
>                         DUMP_printk("  DEV_ACPI_HID(%s[%s])\t\tdevid: %02x:%02x.%x\n",
>                                     hid, uid,
>                                     PCI_BUS_NUM(devid),
>                                     PCI_SLOT(devid),
>                                     PCI_FUNC(devid));
>
> -                       devid  = e->devid;
>                         flags = e->flags;
>

Sure, thanks for your patch.
This is my fault.

>                         ret = add_acpi_hid_device(hid, uid, &devid, false);
> --
> 2.9.0
>



-- 
---
Vincent Wan(Zongshun)
www.mcuos.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ