From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753015AbcG2NBc (ORCPT ); Fri, 29 Jul 2016 09:01:32 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:51526 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752981AbcG2NB3 (ORCPT ); Fri, 29 Jul 2016 09:01:29 -0400 Date: Fri, 29 Jul 2016 14:59:09 +0200 (CEST) From: Thomas Gleixner To: Chen Yu cc: "Rafael J. Wysocki" , John Stultz , Xunlei Pang , Zhang Rui , Linux PM list , Linux Kernel Mail List Subject: Re: [PATCH][v2] timekeeping: Fix memory overwrite of sleep_time_bin array In-Reply-To: <20160729095015.GB8076@sharon> Message-ID: References: <1468903861-12487-1-git-send-email-yu.c.chen@intel.com> <578DEDBB.9030602@intel.com> <20160729095015.GB8076@sharon> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Jul 2016, Chen Yu wrote: > On Tue, Jul 19, 2016 at 12:40:14PM +0200, Thomas Gleixner wrote: > 1st is to bypass the sleep time if pm_trace is involved(a little complicated > because it needs to deal with historical pm_trace), or > > 2nd version is to introduce a sysfs interface to allow the > users to specify the threshold of sleep time, any delta > of tsc bigger than the threshold would be regarded as invalid. That one is really overkill. We provide a proper sanity measure for this and be done with it. Thanks, tglx