From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCC7CC54E8D for ; Mon, 11 May 2020 23:02:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AAEE620752 for ; Mon, 11 May 2020 23:02:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="lXD9fCZ7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727067AbgEKXCZ (ORCPT ); Mon, 11 May 2020 19:02:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725836AbgEKXCZ (ORCPT ); Mon, 11 May 2020 19:02:25 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E983C061A0E for ; Mon, 11 May 2020 16:02:25 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id s20so4552351plp.6 for ; Mon, 11 May 2020 16:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=04jfofQ0OxPjQjdmjcz7p2pCwiPU88bfh4Zyk7/WIes=; b=lXD9fCZ7vgAYqGcB0bReYiqjnJvrU48Dwt5nV1haDxmNlCOfiEYm0GrsD3fP9oM5Nv uVrt/x1RiDWtnCa/hzO/cE5U9xEz3YMrU7cfKUThQG4BF9Hu1X1WQ7wkeX4ZZpgPaWQn 9di+/IKptsoPR84Cu8M590OKNEt3dPjlKYRuk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=04jfofQ0OxPjQjdmjcz7p2pCwiPU88bfh4Zyk7/WIes=; b=GUtny+bivAZadvKEf3+AgC7BieGHdH4NTjsy9eIfpBlrha/QRGm+zp3mi59Kpy6z81 Np2+l10Wzb69T7qsbJZATqSVJm37lK8xySLpJPvhr7x7TUrxZfftjAEOP7w9TjpH+bCr w7rnqjrjEky4m+36CAShjM4tfDgwJr+K9wVxu/CAyE5xh2Hxfyk8fjrkRe2zM5H+6oPS RI16XNGFYLP4aKgPteRuYaGVOQbHo7bDUPwm18SePnA/6pvCAaIaX54yAxxRdh6nbfo7 Yn8GWsQk2ZM1NkOvAHAYo1VUs1ANL1/FYeqGSz5BWuxOfl7VN/01EroXn6NpO/nTTVAT kYyA== X-Gm-Message-State: AGi0PuZ9ktOfAhXUu06/wskqwkdq1PU0cka6mrMtRgGI7t8d/a+6GR1i Mm7a3SdErL6ZPRrFWWOweSIn7g== X-Google-Smtp-Source: APiQypIwNmw12IH8JOCrn9V+M/ELfF4Ie+RV3w6bNqR2TouERqOStRwtYZiQB61+8jxfB5DqlmBd2g== X-Received: by 2002:a17:902:ec04:: with SMTP id l4mr17438394pld.6.1589238144381; Mon, 11 May 2020 16:02:24 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a2sm10027736pfg.106.2020.05.11.16.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 16:02:23 -0700 (PDT) Date: Mon, 11 May 2020 16:02:21 -0700 From: Kees Cook To: WeiXiong Liao Cc: Anton Vorontsov , Colin Cross , Tony Luck , Jonathan Corbet , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Rob Herring , Pavel Tatashin , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH v7 08/18] pstore/zone: Introduce common layer to manage storage zones Message-ID: <202005111559.711BDC6@keescook> References: <20200510202436.63222-1-keescook@chromium.org> <20200510202436.63222-9-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Mon, May 11, 2020 at 04:36:21PM +0800, WeiXiong Liao wrote: > On 2020/5/11 AM 4:24, Kees Cook wrote: > > [...] > > + * @time: oops/panic trigger time > > The above comment should be corrected since it is not only oops/panic > any more. Ah yes, thanks! I'll clean these all up. > > [...] > > + if (hdr->reason == KMSG_DUMP_OOPS) > > + hdr->counter = ++cxt->oops_counter; > > + else > > + hdr->counter = ++cxt->panic_counter; > > Here should be: > > if (hdr->reason == KMSG_DUMP_OOPS) > hdr->counter = ++cxt->oops_counter; > else if (hdr->reason == KMSG_DUMP_PANIC) > hdr->counter = ++cxt->panic_counter; > else > hdr->counter = 0; Good catch; thanks! I'll move the lost later hunk to here. > > [...] > > +MODULE_DESCRIPTION("Storage Manager for pstore/blk"); I'm going to leave this as-is for now since it's accurate for the moment. :) -- Kees Cook