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: <161132693560.45400.5805860404255875218.b4-ty@kernel.org>
Date:   Fri, 22 Jan 2021 14:48:55 +0000
From:   Mark Brown <broonie@...nel.org>
To:     Liam Girdwood <lgirdwood@...il.com>,
        Mark Brown <broonie@...nel.org>
Cc:     Marek Szyprowski <m.szyprowski@...sung.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regulator: Fix lockdep warning resolving supplies

On Fri, 22 Jan 2021 13:20:42 +0000, Mark Brown wrote:
> With commit eaa7995c529b54 (regulator: core: avoid
> regulator_resolve_supply() race condition) we started holding the rdev
> lock while resolving supplies, an operation that requires holding the
> regulator_list_mutex. This results in lockdep warnings since in other
> places we take the list mutex then the mutex on an individual rdev.
> 
> Since the goal is to make sure that we don't call set_supply() twice
> rather than a concern about the cost of resolution pull the rdev lock
> and check for duplicate resolution down to immediately before we do the
> set_supply() and drop it again once the allocation is done.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: Fix lockdep warning resolving supplies
      commit: 14a71d509ac809dcf56d7e3ca376b15d17bd0ddd

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