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:   Wed, 26 Oct 2016 03:08:47 -0700
From:   tip-bot for Michael Ellerman <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     tglx@...utronix.de, bp@...e.de, hpa@...or.com, mingo@...nel.org,
        linux-kernel@...r.kernel.org, mpe@...erman.id.au
Subject: [tip:core/smp] kernel/smp: Tell the user we're bringing up
 secondary CPUs

Commit-ID:  51111dce2509506d16efd321939895ff7ffe1dc2
Gitweb:     http://git.kernel.org/tip/51111dce2509506d16efd321939895ff7ffe1dc2
Author:     Michael Ellerman <mpe@...erman.id.au>
AuthorDate: Wed, 26 Oct 2016 16:37:55 +1100
Committer:  Thomas Gleixner <tglx@...utronix.de>
CommitDate: Wed, 26 Oct 2016 12:02:35 +0200

kernel/smp: Tell the user we're bringing up secondary CPUs

Currently we don't print anything before starting to bring up secondary
CPUs. This can be confusing if it takes a long time to bring up the
secondaries, or if the kernel crashes while doing so and produces no
further output.

On x86 they work around this by detecting when the first secondary CPU
comes up and printing a message (see announce_cpu()). But doing it in
smp_init() is simpler and works for all arches.

Signed-off-by: Michael Ellerman <mpe@...erman.id.au>
Reviewed-by: Borislav Petkov <bp@...e.de>
Cc: akpm@...l.org
Cc: jgross@...e.com
Cc: ak@...ux.intel.com
Cc: tim.c.chen@...ux.intel.com
Cc: len.brown@...el.com
Cc: peterz@...radead.org
Cc: richard@....at
Cc: jolsa@...hat.com
Cc: boris.ostrovsky@...cle.com
Cc: mgorman@...hsingularity.net
Link: http://lkml.kernel.org/r/1477460275-8266-3-git-send-email-mpe@ellerman.id.au
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>

---
 kernel/smp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/smp.c b/kernel/smp.c
index 4323c5d..77fcdb9 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -555,6 +555,8 @@ void __init smp_init(void)
 	idle_threads_init();
 	cpuhp_threads_init();
 
+	pr_info("Bringing up secondary CPUs ...\n");
+
 	/* FIXME: This should be done in userspace --RR */
 	for_each_present_cpu(cpu) {
 		if (num_online_cpus() >= setup_max_cpus)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ