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]
Date:	Thu, 30 Nov 2006 15:35:22 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Gautham R Shenoy <ego@...ibm.com>
Cc:	Andrew Morton <akpm@...l.org>, linux-kernel@...r.kernel.org,
	torvalds@...l.org, davej@...hat.com, dipankar@...ibm.com,
	vatsa@...ibm.com
Subject: Re: CPUFREQ-CPUHOTPLUG: Possible circular locking dependency


* Gautham R Shenoy <ego@...ibm.com> wrote:

> In process context preemptible code, 
> Lets say we are currently running on processor i.
> 
> cpu_hotplug_lock() ; /* does mutex_lock(&percpu(hotplug_lock, i)) */
> 
> /* do some operation, which might sleep */
> /* migrates to cpu j */
> 
> cpu_hotplug_unlock(); /* does mutex_unlock(&percpu(hotplug_lock, i)
> 			 while running on cpu j */
> 
> This would cause cacheline ping pong, no?

that would be attached to a very cache-inefficient thing: migrating a 
task from one CPU to another. This is not the kind of ping-pong we are 
normally worried about. (nor does it happen all that often)

	Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ