Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1968355ybk; Mon, 11 May 2020 08:39:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlxYQtlm0auWiTnQ/nxzwrURKSCWq1j7vIsXhdemW2DPOjL99dxJ7kc1bYkIlAikyryHpX X-Received: by 2002:aa7:d850:: with SMTP id f16mr2252980eds.365.1589211547372; Mon, 11 May 2020 08:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589211547; cv=none; d=google.com; s=arc-20160816; b=J6TJkTKU3o4iF+EMT4c4hNASvsbHwZcsegHj3CrnUfeFKeXH3hbA36d6cCgwwSnldG SyrrG5X92EzqHDifT3v8034JFMX5jDesIOlf+WV/FoXIEspPOtBPVcEF8UjA8D3Prj8c yP6zRmFAj1FcMcNxBoEdZJFUtUcwewS1rnLHyS6/gqJBE8uGZgRtP+tw739iVCRk00KW ExfQK1v6wPQaBXrMihJpj3+/ePkn5V4c/x4tpVnkdMh2makE5kj+nm/PjRU0MUW9KDP4 lMCgGDMpL+1BSkcWujkORNz04kH0Q8M3znfzSAam/0Wv3TVMU+trL9Ewbq+9y3AHRMLH ZOeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=amgk2kJlCbYp1G7kuYGnL7Ih27zYi++B9lrM3oyQ2eI=; b=wXIKSvrQ2OUuwmIJ7t1b8UQmaaoXaT6OFDQ1DO/iYK7hqCwmpy0UEvVY/CIO4JVwUg 4X+07B3BxNteFCejy3vwYKzBiVd09fT+dwIkblizCmDABxZFCmos4DSuSdpHSWkWhn3s 9Ks/KsE3xgW/f2l5uDsD9Hn+heG3xJhUqr3V3M2UIKG8lUra4sR6XNJZ4Y8X0CDDP0gQ T6Fg0B9azvEiROsTy+fZy6owLfApe4i7QgH6EXvrg+Egp22v8ihuYRDbv/hmOkT+Wnac BsYr7LOmX/QNOBdFCj4PXK/es1V+MjyuFc9G8/S7t+QZqmqO6MsE6cd0mIVFlrLXhUrN cQwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=YQQ8JUaD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si6337359edr.391.2020.05.11.08.38.41; Mon, 11 May 2020 08:39:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=YQQ8JUaD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729810AbgEKPg4 (ORCPT + 99 others); Mon, 11 May 2020 11:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729207AbgEKPgz (ORCPT ); Mon, 11 May 2020 11:36:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5A0DC061A0C; Mon, 11 May 2020 08:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=amgk2kJlCbYp1G7kuYGnL7Ih27zYi++B9lrM3oyQ2eI=; b=YQQ8JUaDtgcYpTofYqCyLiD9b6 lieYTmBAmmqWEyEgpmyeqBxWCZHSyOAfqQ1HS5jHqbQc6Ib1ZoWZy6yAozq6YzvfEa86XUrgyeaCt /uvm0n2yfJQxbKAAlh5Uf/4RQX6fbN3EqQX8gnwcWzpYOtRs9i4Ql6dAEzTY1pzbBh4aljvIpmZKL 6n/8IrW38tR+AOUpl2kru4iU9Mtme9ahZvf7BaH+MyXdcKRMttZtwAcvQHYWBgKAva79Sb2A10GT+ em/jtrmjNxX5BCrD9xGDELFNw0/WXZQe2/2YozUJXUcVIMy7taWdHINHfrCaqutrgGqJJfDIk+v9g 7tPvHy9w==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYAU8-0001Rk-Mk; Mon, 11 May 2020 15:36:52 +0000 Subject: Re: [PATCH v7 09/18] pstore/blk: Introduce backend for block devices To: Kees Cook , 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 References: <20200510202436.63222-1-keescook@chromium.org> <20200510202436.63222-10-keescook@chromium.org> From: Randy Dunlap Message-ID: <2b4fec3e-53f7-b8d9-49f8-d24401f83363@infradead.org> Date: Mon, 11 May 2020 08:36:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200510202436.63222-10-keescook@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/10/20 1:24 PM, Kees Cook wrote: > diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig > index 98d2457bdd9f..92ba73bd0b62 100644 > --- a/fs/pstore/Kconfig > +++ b/fs/pstore/Kconfig > @@ -160,3 +160,67 @@ config PSTORE_ZONE > help > The common layer for pstore/blk (and pstore/ram in the future) > to manage storage in zones. > + > +config PSTORE_BLK > + tristate "Log panic/oops to a block device" > + depends on PSTORE > + depends on BLOCK > + select PSTORE_ZONE > + default n > + help > + This enables panic and oops message to be logged to a block dev > + where it can be read back at some later point. > + > + If unsure, say N. > + > +config PSTORE_BLK_BLKDEV > + string "block device identifier" > + depends on PSTORE_BLK > + default "" > + help > + Which block device should be used for pstore/blk. > + > + It accept the following variants: > + 1) device number in hexadecimal represents > + itself no leading 0x, for example b302. itself with no leading 0x, > + 2) /dev/ represents the device number of disk > + 3) /dev/ represents the device number > + of partition - device number of disk plus the partition number > + 4) /dev/p - same as the above, this form is > + used when disk name of partitioned disk ends with a digit. > + 5) PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF representing the > + unique id of a partition if the partition table provides it. > + The UUID may be either an EFI/GPT UUID, or refer to an MSDOS > + partition using the format SSSSSSSS-PP, where SSSSSSSS is a zero- > + filled hex representation of the 32-bit "NT disk signature", and PP > + is a zero-filled hex representation of the 1-based partition number. > + 6) PARTUUID=/PARTNROFF= to select a partition in relation > + to a partition with a known unique id. > + 7) : major and minor number of the device separated by > + a colon. -- ~Randy