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]
Date:   Thu, 27 Jul 2023 11:04:09 -0600
From:   Rob Herring <robh@...nel.org>
To:     Ruan Jinjie <ruanjinjie@...wei.com>
Cc:     frowand.list@...il.com, devicetree@...r.kernel.org,
        robh+dt@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 -next] of: unittest: fix null pointer dereferencing in
 of_unittest_find_node_by_name()


On Thu, 27 Jul 2023 16:02:46 +0800, Ruan Jinjie wrote:
> when kmalloc() fail to allocate memory in kasprintf(), name
> or full_name will be NULL, strcmp() will cause
> null pointer dereference.
> 
> Fixes: 0d638a07d3a1 ("of: Convert to using %pOF instead of full_name")
> Signed-off-by: Ruan Jinjie <ruanjinjie@...wei.com>
> ---
> v2:
> - add fixes tag
> ---
>  drivers/of/unittest.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 

Applied, thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ