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:	Thu, 21 Dec 2006 14:00:12 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Linus Torvalds <torvalds@...l.org>
Cc:	Fernando Lopez-Lezcano <nando@...ma.Stanford.EDU>,
	Andrew Morton <akpm@...l.org>, linux-kernel@...r.kernel.org,
	Andi Kleen <ak@...e.de>, Len Brown <len.brown@...el.com>
Subject: Re: [patch] sched: fix bad missed wakeups in the i386, x86_64, ia64, ACPI and APM idle code


* Ingo Molnar <mingo@...e.hu> wrote:

> CPU idle wakeup very much depends on ordered memory ops, the clearing 
> of the TS_POLLING flag must always be done before we test 
> need_resched() and hit the idle instruction(s). [Symmetrically, the 
> wakeup code needs to set NEED_RESCHED before it tests the TS_POLLING 
> flag, so memory ordering is paramount.]

Btw., this means that an smp_rmb() ought to be enough too. (I sent such 
a test-patch to Fernando.) Also, i'd like the change to smp_rmb() be 
done separately from the fix so that we have the most-conservative 
variant in and thus it becomes bisectable. I'd like to avoid another few 
months of latency for fixing yet another bug in this area...

	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