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] [day] [month] [year] [list]
Message-ID: <20251209185918.GA3477210@bhelgaas>
Date: Tue, 9 Dec 2025 12:59:18 -0600
From: Bjorn Helgaas <helgaas@...nel.org>
To: Claudiu <claudiu.beznea@...on.dev>
Cc: lpieralisi@...nel.org, kwilczynski@...nel.org, mani@...nel.org,
	robh@...nel.org, bhelgaas@...gle.com, linux-pci@...r.kernel.org,
	linux-renesas-soc@...r.kernel.org, linux-kernel@...r.kernel.org,
	Claudiu Beznea <claudiu.beznea.uj@...renesas.com>,
	kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] PCI: rzg3s-host: Fix compilation warning

On Tue, Dec 09, 2025 at 02:51:22PM +0200, Claudiu wrote:
> From: Claudiu Beznea <claudiu.beznea.uj@...renesas.com>
> 
> Fix "bitmap is used uninitialized" compilation warning.
> 
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/all/202512070218.XVMUQCl7-lkp@intel.com
> Closes: https://lore.kernel.org/all/202512061812.Xbqmd2Gn-lkp@intel.com
> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@...renesas.com>

Updated commit log as below (the problem is the use of initialized
data, not the warning itself) and applied to pci/for-linus for v6.19,
thanks!

  PCI: rzg3s-host: Initialize MSI status bitmap before use

  Initialize rzg3s_pcie_msi_irq() MSI status bitmap before use.

  Fixes: 7ef502fb35b2 ("PCI: Add Renesas RZ/G3S host controller driver")

> ---
>  drivers/pci/controller/pcie-rzg3s-host.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/controller/pcie-rzg3s-host.c b/drivers/pci/controller/pcie-rzg3s-host.c
> index 667e6d629474..83ec66a70823 100644
> --- a/drivers/pci/controller/pcie-rzg3s-host.c
> +++ b/drivers/pci/controller/pcie-rzg3s-host.c
> @@ -479,7 +479,7 @@ static void rzg3s_pcie_intx_irq_handler(struct irq_desc *desc)
>  static irqreturn_t rzg3s_pcie_msi_irq(int irq, void *data)
>  {
>  	u8 regs = RZG3S_PCI_MSI_INT_NR / RZG3S_PCI_MSI_INT_PER_REG;
> -	DECLARE_BITMAP(bitmap, RZG3S_PCI_MSI_INT_NR);
> +	DECLARE_BITMAP(bitmap, RZG3S_PCI_MSI_INT_NR) = {0};
>  	struct rzg3s_pcie_host *host = data;
>  	struct rzg3s_pcie_msi *msi = &host->msi;
>  	unsigned long bit;
> -- 
> 2.43.0
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ