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: <1234622474.4698.25.camel@laptop>
Date:	Sat, 14 Feb 2009 15:41:14 +0100
From:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
To:	Linus Torvalds <torvalds@...ux-foundation.org>
Cc:	Nick Piggin <npiggin@...e.de>, Jens Axboe <jens.axboe@...cle.com>,
	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	Ingo Molnar <mingo@...e.hu>,
	Rusty Russell <rusty@...tcorp.com.au>,
	linux-kernel@...r.kernel.org, Oleg Nesterov <oleg@...hat.com>
Subject: [PATCH 1.5/2] generic-smp: fix initial quiesent count.

Subject: generic-smp: fix initial quiesent count.
From: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Date: Sat Feb 14 15:36:07 CET 2009

If we start with a quiesent sequence count of 0, we'll match the initial stamp
values of the cfd_data, and never make any progress.

To avoid getting stuck in this situation, start out with an increased quiesent
sequence count.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
---
 kernel/smp.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6/kernel/smp.c
===================================================================
--- linux-2.6.orig/kernel/smp.c
+++ linux-2.6/kernel/smp.c
@@ -27,6 +27,7 @@ static struct {
 } call_function __cacheline_aligned_in_smp = {
 	.queue = LIST_HEAD_INIT(call_function.queue),
 	.lock  = __SPIN_LOCK_UNLOCKED(call_function.lock),
+	.quiesent = 1;
 };
 
 enum {


--
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