From patchwork Tue Jun 15 21:21:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 12323027 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=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 14D74C49361 for ; Tue, 15 Jun 2021 21:21:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0073E60FEB for ; Tue, 15 Jun 2021 21:21:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231465AbhFOVXg (ORCPT ); Tue, 15 Jun 2021 17:23:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbhFOVXa (ORCPT ); Tue, 15 Jun 2021 17:23:30 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B5ECC0613A3 for ; Tue, 15 Jun 2021 14:21:25 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id x21-20020a17090aa395b029016e25313bfcso472302pjp.2 for ; Tue, 15 Jun 2021 14:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PfwRUU7eVNZsvc9b0Pp6xofj5lHce4If1zuLClVqHds=; b=k41872DXg9wkp86KhOxBvcu0Ci6VIoYHAyuQo8qqIykaP05jTvRdRw2iM4HROlZWB9 v/xBFRgNloNRzQQcKx3HdBPMzLzERLP/q43nxD2Z3VGshkG8KI6qgVYIawdS4aeRCUUN QY+xm4+6E8MDYk5JQid0hjit2pFbHdVbRZWXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PfwRUU7eVNZsvc9b0Pp6xofj5lHce4If1zuLClVqHds=; b=EMotPv4q0U7Fd/ulubB37ymjjb7PTarrYPNuzIwWK4km4lp2W8rnRaIAtmcpWYnnjo nBx56eeGpzS0d5lNozmkaoqIpCHR+zWfV5xyZlqMQsVoiAqpuIDNuoppYhB9zh9qFuMy u/cWM+Dek7Y1GfAD4Ur1Fko5605EY6K92mtiWpHh7kg162VcyC3HLi0alXAbifPqMOQV ZmsZrC3Lf9qe9fRstCIxvomXehxUIxYJ8xJ+GhxOeUCbwJXjB/HYsrxqHZ0/doIzYHhN T6UO3mHDAbFxsIZxuXWdS3JuLTmRMbuSWFWHPaMOL9vNxfxs17PFII7rQvoGh9cSBahE 8L6A== X-Gm-Message-State: AOAM531UiOYXBUuu1pzp/OLK9G607qLjAkrLFp5az74zc3O3+oQguEmW JCheOvvAbx07Abb2IJPKM2aANg== X-Google-Smtp-Source: ABdhPJxpvHbLjArJ3owM3JpRLH76Noir2n39FVfDmLx1tALshgWOs9Zy3GRdpG3sW+GGql2IjG+4vA== X-Received: by 2002:a17:902:7c05:b029:11c:1e7d:c633 with SMTP id x5-20020a1709027c05b029011c1e7dc633mr4646731pll.48.1623792085105; Tue, 15 Jun 2021 14:21:25 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id v9sm96686pfn.22.2021.06.15.14.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 14:21:24 -0700 (PDT) From: Kees Cook To: linux-kernel@vger.kernel.org Cc: Kees Cook , Christoph Hellwig , Al Viro , gmpy.liaowx@gmail.com, Anton Vorontsov , Colin Cross , Tony Luck , Jonathan Corbet , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-doc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v2 0/4] Include zone in pstore_device_info Date: Tue, 15 Jun 2021 14:21:17 -0700 Message-Id: <20210615212121.1200820-1-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Hi, This fixes up pstore/blk to avoid touching block internals, and includes additional fixes. -Kees v1: https://lore.kernel.org/lkml/20210614200421.2702002-1-keescook@chromium.org Kees Cook (4): pstore/blk: Improve failure reporting pstore/blk: Use the normal block device I/O path pstore/blk: Include zone in pstore_device_info pstore/blk: Fix kerndoc and redundancy on blkdev param Documentation/admin-guide/pstore-blk.rst | 14 +- drivers/mtd/mtdpstore.c | 10 +- fs/pstore/blk.c | 371 ++++++++--------------- include/linux/pstore_blk.h | 27 +- 4 files changed, 141 insertions(+), 281 deletions(-)