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:	Sun, 06 Jun 2010 22:19:18 +0900
From:	TAMUKI Shoichi <tamuki@...et.gr.jp>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	Ingo Molnar <mingo@...e.hu>, Anton Blanchard <anton@...ba.org>,
	Andi Kleen <andi@...stfloor.org>,
	Andy Green <andy@...mcat.com>,
	Randy Dunlap <randy.dunlap@...cle.com>,
	TAMUKI Shoichi <tamuki@...et.gr.jp>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] panic: keep blinking in spite of long spin timer mode

Hello,

Thank you for the review.

On Thu, 3 Jun 2010 15:30:16 -0700 Andrew Morton wrote:

> > +	panicblink=	[KNL] The speed of panic blink (default is 12 wpm)
> > +			The period of panic blink can be computed by the
> > +			formula T = 7200 / W, where T is the period in milli-
> > +			seconds, W is the speed in wpm (words per minute).
> > +			Should be 5 or less when running under a hypervisor
> 
> Nobody will know what "wpm" means.  What is a "word" in this context?
> Unclear.
> 
> How about "bpm": "blinks per minute".  That's nice and direct.

The current explanation of panicblink= still makes no sense, indeed.

"bpm" seems to be nice and direct, but the range at a practicable
blinking speed will be 8.33 to 833 bpm.  That is too wide and the step
size is too small for the speed of panic blink.  That will be hard to
deal with.

OTOH, the range at a practicable blinking speed in "wpm" fits in 1 to
100.  I think that will sit well with us.

Now, I need to explain what "wpm" means and what a "word" in the con-
text is:

The speed of morse code is measured in wpm, which defines the speed of
morse transmission as the timing needed to send the word "PARIS" a
given number of times per minute.

The time for one (minimum) unit can be computed by the formula T =
1200 / W, where T is the unit time in milliseconds, W is the speed in
wpm.  The panic blink here is assumed as a word of infinite length to
which "T" continues (i.e. "TTTTTTTT...").  The letter "T" represents
three units long and the short gap (between letters) also represents
three units long.  The period of panic blink thus can be computed by
the formula T = 7200 / W.

However, IMO, it is gauche to say such a explanation of panicblink=
in kernel-parameters.txt.

After all, I will just explain concisely the important matters (range
is 1 to 100, the lower the slower, the higher the faster, default is
12).

> > +	if (panic_blink_wpm <= 0 || panic_blink_wpm > 100)
> > +		panic_blink_wpm = 12;
> 
> hm, OK.  Or we could do
> 
> 	if (panic_blink_wpm <= 0)
> 		panic_blink_wpm = 1;
> 	if (panic_blink_wpm > 100)
> 		panic_blink_wpm = 100;
> 
> which is handily encapsulated in the clamp() macro which nobody uses.

OK, I will use the clamp() macro here.

> > +	if (!panic_blink)
> > +		panic_blink = no_blink;
> 
> Can we initialise panic_blink to no_blink at compile-time then remove this?

Perhaps, we cannot initialize panic_blink to no_blink at compile time
because panic_blink is dynamically set/unset the panic callback when
module_init()/module_exit() is called.

Since there are few changes this time, I will post the patch as PATCH
v2.1.  Andrew, would you please readd the patch to the -mm tree.

Regards,
TAMUKI Shoichi
--
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