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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130311082851.GC12742@gmail.com>
Date:	Mon, 11 Mar 2013 09:28:51 +0100
From:	Ingo Molnar <mingo@...nel.org>
To:	Seiji Aguchi <seiji.aguchi@....com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"x86@...nel.org" <x86@...nel.org>,
	"Thomas Gleixner (tglx@...utronix.de)" <tglx@...utronix.de>,
	"'mingo@...e.hu' (mingo@...e.hu)" <mingo@...e.hu>,
	"H. Peter Anvin (hpa@...or.com)" <hpa@...or.com>,
	"dzickus@...hat.com" <dzickus@...hat.com>,
	"dle-develop@...ts.sourceforge.net" 
	<dle-develop@...ts.sourceforge.net>,
	Satoru Moriya <satoru.moriya@....com>
Subject: Re: [PATCH]Skip unnecessary WARN_ON in panic case


* Seiji Aguchi <seiji.aguchi@....com> wrote:

> [Problem]
> 
> When kernel panics, unnecessary WARN_ON() may be printed after panic messages in a following scenario.
>  - A panicked cpu stops other cpus via smp_send_stop().
>  - Other cpus turn to be offline in stop_this_cpu().
>  - The panicked cpu enables interrupt.
>  - native_smp_send_reschedule() is called via a timer interrupt on the panicked cpu.
>  - The panicked cpu tries to send a reschedule IPI to other cpus
>  - The panicked cpu hits WARN_ON() because other cpus have already been offlined.
> 
> If an user has just a VGA console, panic messages may be missed because 
> they are floated outside a screen due to messages of the WARN_ON(). In 
> this case, it could be difficult to investigate the reason why a kernel 
> panicked.

So it appears the problem occurs because the other CPUs are not offlined 
correctly, and still have pending work which may generate wakeup IPIs to 
them?

The fix would be to either offline them properly - or, if we don't want to 
do that to keep panicking simple, why do we mark them offline? They aren't 
really offline in a proper way.

Thanks,

	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