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: <20160725.105130.1337790235000032163.davem@davemloft.net>
Date:	Mon, 25 Jul 2016 10:51:30 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	sathya.perla@...adcom.com
Cc:	netdev@...r.kernel.org
Subject: Re: [net-next PATCH 4/4] be2net: replace polling with sleeping in
 the FW completion path

From: Sathya Perla <sathya.perla@...adcom.com>
Date: Fri, 22 Jul 2016 06:55:46 -0400

> @@ -4477,6 +4551,22 @@ static int be_if_create(struct be_adapter *adapter)
>  	u32 cap_flags = be_if_cap_flags(adapter);
>  	int status;
>  
> +	/* alloc required memory for other filtering fields */
> +	adapter->pmac_id = kcalloc(be_max_uc(adapter),
> +				   sizeof(*adapter->pmac_id), GFP_KERNEL);
> +	if (!adapter->pmac_id)
> +		return -ENOMEM;
> +
> +	adapter->mc_list = kcalloc(be_max_mc(adapter),
> +				   sizeof(*adapter->mc_list), GFP_KERNEL);
> +	if (!adapter->mc_list)
> +		return -ENOMEM;
> +
> +	adapter->uc_list = kcalloc(be_max_uc(adapter),
> +				   sizeof(*adapter->uc_list), GFP_KERNEL);
> +	if (!adapter->uc_list)
> +		return -ENOMEM;

These error paths are leaking memory, please audit this in the rest of your
change as well.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ