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]
Date:   Fri, 29 Mar 2019 13:42:40 -0700 (PDT)
From:   David Miller <>
Subject: Re: [PATCH][v2] net: ethtool: not call vzalloc for zero sized
 memory request

From: Li RongQing <>
Date: Fri, 29 Mar 2019 09:18:02 +0800

> NULL or ZERO_SIZE_PTR will be returned for zero sized memory
> request, and derefencing them will lead to a segfault
> so it is unnecessory to call vzalloc for zero sized memory
> request and not call functions which maybe derefence the
> NULL allocated memory
> this also fixes a possible memory leak if phy_ethtool_get_stats
> returns error, memory should be freed before exit
> Signed-off-by: Li RongQing <>
> Reviewed-by: Wang Li <>
> ---
> v1->v2: not call get_ethtool_stats if n_stats is 0 

Applied and queued up for -stable, thanks.

Powered by blists - more mailing lists