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: <70f64a42-6adb-40cb-9db1-cca503f42466@tuxon.dev>
Date: Tue, 10 Feb 2026 14:54:19 +0200
From: Claudiu Beznea <claudiu.beznea@...on.dev>
To: p.zabel@...gutronix.de, biju.das.jz@...renesas.com
Cc: linux-kernel@...r.kernel.org,
 Claudiu Beznea <claudiu.beznea.uj@...renesas.com>
Subject: Re: [PATCH] reset: rzg2l-usbphy-ctrl: Check pwrrdy is valid before
 using it

Hi, Philipp,

On 2/4/26 15:34, Claudiu wrote:
> From: Claudiu Beznea <claudiu.beznea.uj@...renesas.com>
> 
> The pwrrdy regmap_filed is allocated in rzg2l_usbphy_ctrl_pwrrdy_init()
> only if the driver data is set to RZG2L_USBPHY_CTRL_PWRRDY. Check that
> pwrrdy is valid before using it to avoid "Unable to handle kernel NULL
> pointer dereference at virtual address" errors.
> 
> Fixes: c5b7cd9adefc ("reset: rzg2l-usbphy-ctrl: Add suspend/resume support")
> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@...renesas.com>

If all good for you in with this patch, could you please take it along with the 
suspend/resume support on this driver to avoid any regression?

Thank you,
Claudiu

> ---
>   drivers/reset/reset-rzg2l-usbphy-ctrl.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/reset/reset-rzg2l-usbphy-ctrl.c b/drivers/reset/reset-rzg2l-usbphy-ctrl.c
> index 32bc268c9149..05dd9b4a02df 100644
> --- a/drivers/reset/reset-rzg2l-usbphy-ctrl.c
> +++ b/drivers/reset/reset-rzg2l-usbphy-ctrl.c
> @@ -136,6 +136,9 @@ static int rzg2l_usbphy_ctrl_set_pwrrdy(struct regmap_field *pwrrdy,
>   {
>   	u32 val = power_on ? 0 : 1;
>   
> +	if (!pwrrdy)
> +		return 0;
> +
>   	/* The initialization path guarantees that the mask is 1 bit long. */
>   	return regmap_field_update_bits(pwrrdy, 1, val);
>   }


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ