From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753686Ab2LQTcV (ORCPT ); Mon, 17 Dec 2012 14:32:21 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:62918 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142Ab2LQTcU (ORCPT ); Mon, 17 Dec 2012 14:32:20 -0500 Date: Mon, 17 Dec 2012 11:28:54 -0800 From: Anton Vorontsov To: John Stultz Cc: linux-kernel@vger.kernel.org, Kees Cook , Thomas Gleixner Subject: Re: [PATCH] time: create __getnstimeofday for WARNless calls Message-ID: <20121217192806.GA10376@lizard.gateway.2wire.net> References: <1355770314-9167-1-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1355770314-9167-1-git-send-email-john.stultz@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2012 at 01:51:54PM -0500, John Stultz wrote: > From: Kees Cook > > Hey Thomas, > Wanted to see if maybe there was still time for this for 3.8? > thanks > -john > > The pstore RAM backend can get called during resume, and must be defensive > against a suspended time source. Expose getnstimeofday logic that returns > an error instead of a WARN. This can be detected and the timestamp can > be zeroed out. > > Reported-by: Doug Anderson > Cc: Anton Vorontsov > Cc: Thomas Gleixner > Signed-off-by: Kees Cook > Signed-off-by: John Stultz > --- > fs/pstore/ram.c | 10 +++++++--- For pstore/ram part: Acked-by: Anton Vorontsov Thanks!