Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1076706imu; Wed, 23 Jan 2019 10:20:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ZOtbioF29JlC+hULphsDcPgoZQB/pJ/M5SYETwCMGXqIcjCe2q5zZYrYhIzTLnNB1utdc X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr3123737plb.70.1548267627408; Wed, 23 Jan 2019 10:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548267627; cv=none; d=google.com; s=arc-20160816; b=RrTB9lOsGcZFtu47oMBHHeiZe6+sjPDfk/fGmDx2s3bMnsd3UA7vo8FrQOc4xZOm4B juaeOXMtep6W2ndFP8vKHs6Wu9jyNFI/zltd70MGY4l3x8FvNP7lFEedea/zyFpJy2lx Ti+/uffdqJp5fr3//wj7fRkHl/DKGMyPDzZfEL+SlhuerCimShJIUBjYQVDk1K5tIUEm Lf8egD13Yk1zXfB0Udben661N4Zvk1QwCDlZlX2NysD0lAQy+vP1OG65Tq30aDb2/Njh LnBMUtoNl90stq8cBj3S0H5yF30KqiZj+Qz1u77C1jL5DTv/Jifq5+PUYFa3m5q5VjYo VkWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Rrmeklw449xiAR0Fl0Ri8qLuURbz/dBYy8eV78otqsM=; b=iK8U5+LFFVZQ110HuqDgZ6izG35Gxt0jDEYQkF4q1m8rbpgLmrm0fLREizg2bsvsgt aNeGcvO5dcClk0t7BOYceFJ7xuE+/tnum3MH74L3g8SVjpAQ/fhINRDx0u6x8MAmQSLb BtESd+VQ4Fn3R7ADV61WLAeieCPAMyRBof5Qr5H9Tx1pJTNfRpMh6mDsyb+o2nNTG8dE YzCHK3NFUDZgKw9XknhDLnWVlfddYtNb7MUUMNZIix6rJH/51HwA3CuDcdGtT7X9Sdn/ HeS6UnhWm701vVIrjGNCvgKuOBvfg1IGDSLF0TrHuJFh2fPSMSeem/qQ8dlcEwbdS1Og PRHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si16329693pgc.85.2019.01.23.10.20.12; Wed, 23 Jan 2019 10:20:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726329AbfAWSTy (ORCPT + 99 others); Wed, 23 Jan 2019 13:19:54 -0500 Received: from emh04.mail.saunalahti.fi ([62.142.5.110]:36522 "EHLO emh04.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbfAWSTx (ORCPT ); Wed, 23 Jan 2019 13:19:53 -0500 Received: from darkstar.musicnaut.iki.fi (85-76-66-19-nat.elisa-mobile.fi [85.76.66.19]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id DD6DC30118; Wed, 23 Jan 2019 20:19:49 +0200 (EET) Date: Wed, 23 Jan 2019 20:19:49 +0200 From: Aaro Koskinen To: liaoweixiong , Kees Cook Cc: Anton Vorontsov , Colin Cross , Tony Luck , Jonathan Corbet , Mauro Carvalho Chehab , Greg Kroah-Hartman , "David S. Miller" , Andrew Morton , Nicolas Ferre , Arnd Bergmann , "open list:DOCUMENTATION" , LKML Subject: Re: [RFC v5 1/4] pstore/blk: new support logger for block devices Message-ID: <20190123181949.GC2792@darkstar.musicnaut.iki.fi> References: <1546862462-19640-1-git-send-email-liaoweixiong@allwinnertech.com> <1546862462-19640-2-git-send-email-liaoweixiong@allwinnertech.com> <1497804b-f921-b0cf-1327-3b17beaf9ce7@allwinnertech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1497804b-f921-b0cf-1327-3b17beaf9ce7@allwinnertech.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, Jan 19, 2019 at 04:53:48PM +0800, liaoweixiong wrote: > On 2019-01-18 08:12, Kees Cook wrote: > >> MTD (drivers/mtd/mtdoops.c). > > > > Would mtdoops get dropped in favor of pstore/blk, or do they not share > > features? > > We can show them what pstore/blk do. I think they will be interested in it. > They should do a little work, including make a function for panic read, > then they gain enhanced features, including present logs as a file, > record multiple logs. mtdoops has been in use over a decade and known working. What benefits this new framework would offer? (BTW I don't see MTD as "block device".) Why should there be a panic read? That adds complexity. This codes runs on panic path, so it should be as simple and fast as possible. Also compatibility has to be there. E.g. user upgrades an old system (with mtdoops and related userspace) to a new kernel. Upgrade fails, so the old software must be able to read the panic dumps properly to tell the user why. A.