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] [day] [month] [year] [list]
Message-ID: <20091013103703.GC3915@elte.hu>
Date:	Tue, 13 Oct 2009 12:37:03 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Jia Zhang <jia.zhang2008@...il.com>,
	Thomas Gleixner <tglx@...utronix.de>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] softlockup: keep current softlockup period before
	touching timestamp


* Jia Zhang <jia.zhang2008@...il.com> wrote:

> From: Jia Zhang <jia.zhang2008@...il.com>
> 
> Imaging such a scenario, softlockup deadline is 60s and a softirq runs 
> at most 65s. Assume that currently that softirq runs 50s. At this 
> moment, issue a "echo 40 > /proc/sys/kernel/softlockup_thresh" and 
> thus lead to recounting the timeout. The remaining time for that 
> softirq is 15s less than new threshold 40s, which means the warning 
> will be depressed after 15s. It is not what we expected because 
> softlockup actually feeds 100s(old+new) for that softirq. To fix this 
> problem, softlockup should keep current softlockup period before 
> touching timestamp.
> 
> Signed-off-by: Jia Zhang <jia.zhang2008@...il.com>
> ---
>  include/linux/sched.h |    5 +----
>  kernel/softlockup.c   |   26 ++++++++++++++------------
>  kernel/sysctl.c       |    2 +-
>  3 files changed, 16 insertions(+), 17 deletions(-)

your patch does not apply to the latest kernel - mind redoing it against 
latest -tip:

  http://people.redhat.com/mingo/tip.git/README

also please re-post the other patch of yours as well, the "allow 
checking for remote CPUs" - that too looks like a worthwile improvement.

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