Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754178Ab3HQS0c (ORCPT ); Sat, 17 Aug 2013 14:26:32 -0400 Received: from mail-ie0-f175.google.com ([209.85.223.175]:34175 "EHLO mail-ie0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754025Ab3HQS0b (ORCPT ); Sat, 17 Aug 2013 14:26:31 -0400 MIME-Version: 1.0 In-Reply-To: <20130816131907.3338.76154.stgit@aruna-ThinkPad-T420> References: <20130816131403.3338.82330.stgit@aruna-ThinkPad-T420> <20130816131907.3338.76154.stgit@aruna-ThinkPad-T420> Date: Sat, 17 Aug 2013 11:26:30 -0700 X-Google-Sender-Auth: TcYsCHk4KYLnTvAiXudoHEM2NAM Message-ID: Subject: Re: [RFC PATCH v2 11/11] pstore/ram: Read and write to the 'compressed' flag of pstore From: Kees Cook To: Aruna Balakrishnaiah Cc: linuxppc-dev@ozlabs.org, Tony Luck , LKML , jkenisto@linux.vnet.ibm.com, ananth@in.ibm.com, benh@kernel.crashing.org, Anton Vorontsov , mahesh@linux.vnet.ibm.com, Colin Cross Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 697 Lines: 20 On Fri, Aug 16, 2013 at 6:19 AM, Aruna Balakrishnaiah wrote: > In pstore write, add character 'C'(compressed) or 'D'(decompressed) > in the header while writing to Ram persistent buffer. In pstore read, > read the header and update the 'compressed' flag accordingly. > > Signed-off-by: Aruna Balakrishnaiah Nice work! Acked-by: Kees Cook -- Kees Cook Chrome OS Security -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/