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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170712100250.kjbedwzdfuiq7ycs@sirena.org.uk>
Date:   Wed, 12 Jul 2017 11:02:50 +0100
From:   Mark Brown <broonie@...nel.org>
To:     Tirupathi Reddy <tirupath@...eaurora.org>
Cc:     lgirdwood@...il.com, linux-arm-msm@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] regulator: core: fix a possible race in disable_work
 handling

On Wed, Jul 12, 2017 at 02:59:47PM +0530, Tirupathi Reddy wrote:

> regulator_disable_deferred: 		regulator_disable_work:
>    mutex_lock(&rdev->mutex);			     .....
>    rdev->deferred_disables++;		    mutex_lock(&rdev->mutex);
>    mutex_unlock(&rdev->mutex);			     .....
>    queue_delayed_work(...)		    count =rdev->deferred_disables;
> 	.....				    rdev->deferred_disables = 0;

This shows two things simultaneously holding rdev->mutex...

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ