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:   Fri, 02 Dec 2022 13:05:48 +0000
From:   Mark Brown <broonie@...nel.org>
To:     christian@...lschutter.com, mirq-linux@...e.qmqm.pl,
        Yang Yingliang <yangyingliang@...wei.com>, lgirdwood@...il.com
Cc:     linux-kernel@...r.kernel.org
Subject: Re: [PATCH resend] regulator: core: fix resource leak in regulator_register()

On Fri, 2 Dec 2022 10:51:11 +0800, Yang Yingliang wrote:
> I got some resource leak reports while doing fault injection test:
> 
>   OF: ERROR: memory leak, expected refcount 1 instead of 100,
>   of_node_get()/of_node_put() unbalanced - destroy cset entry:
>   attach overlay node /i2c/pmic@...regulators/buck1
> 
> unreferenced object 0xffff88810deea000 (size 512):
>   comm "490-i2c-rt5190a", pid 253, jiffies 4294859840 (age 5061.046s)
>   hex dump (first 32 bytes):
>     00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00  .....N..........
>     ff ff ff ff ff ff ff ff a0 1e 00 a1 ff ff ff ff  ................
>   backtrace:
>     [<00000000d78541e2>] kmalloc_trace+0x21/0x110
>     [<00000000b343d153>] device_private_init+0x32/0xd0
>     [<00000000be1f0c70>] device_add+0xb2d/0x1030
>     [<00000000e3e6344d>] regulator_register+0xaf2/0x12a0
>     [<00000000e2f5e754>] devm_regulator_register+0x57/0xb0
>     [<000000008b898197>] rt5190a_probe+0x52a/0x861 [rt5190a_regulator]
> 
> [...]

Applied to

   broonie/regulator.git for-next

Thanks!

[1/1] regulator: core: fix resource leak in regulator_register()
      commit: ba62319a42c50e6254e98b3f316464fac8e77968

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ