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=-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 539E3C49EA5 for ; Wed, 16 Jun 2021 16:40:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 34F0061359 for ; Wed, 16 Jun 2021 16:40:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230393AbhFPQm4 (ORCPT ); Wed, 16 Jun 2021 12:42:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbhFPQmy (ORCPT ); Wed, 16 Jun 2021 12:42:54 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7C3FC0617A8 for ; Wed, 16 Jun 2021 09:40:47 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id h12so2675941pfe.2 for ; Wed, 16 Jun 2021 09:40:47 -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=epXDcsa+iB2IdU4Gd981bdI+VgdMiEH3uS5c66pfdMk=; b=GkLCmFh/vzfPIF7v1q7mJc1wazpBYwrpHlrK8VamLK/tdnFXUDt3Jqpo/4zhnIgkB8 w2Pa4tHYHF/iTjxBxw7knQzMcGPxxObyF5+9fqOM24ruxemJU2JYyJ4aKfJ6/wO0ElHe T6vfoZDbGX45mQjwQTttWWusehKNnlTA3+E6Y= 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=epXDcsa+iB2IdU4Gd981bdI+VgdMiEH3uS5c66pfdMk=; b=EozimCbGGfO9PwT/yo1tnss9dH57mmoMT5GzzwTSBj83WBAguYyP0A9wZUn+35TFqV nDsnrnAjbcTUEw94IA3vmVkbMG2W4dFno6oT0HLf5gv2DFWSrUqza+FKEa0UsooolquM HENHu0N0pXaqodVZMOxS35OiE6GrFv10XtJbHUtVKMYsOAXhlDzJmqvmZGXaZ6enS+8f WS9GjFr1KCk2Z5uJ5PZgZ6+aQjzkjVnLgYTJMT6M0ViY1C115GrN0pVr8e524a4v4kXL 9qK9ElzuvE80+JT3wDbaMjdm+syowVKDMAupGuNobYWpKUvzaBJV0FVRPyI/KBouiSQn e0mw== X-Gm-Message-State: AOAM5335hwboU1lV4Tb9oK0qtXjg03M/c4sgZtTVCjzUlv5evOoPbZVf PC9Cmg0UiZgs5D6/LGCXQgDEMA== X-Google-Smtp-Source: ABdhPJwSppm5irPLhD/8UhbktXBLwwAA5AGV8driRal8NYsxUQyf0Pz+CGSw19WrD/+6GFIZo7Qt8Q== X-Received: by 2002:a63:5c04:: with SMTP id q4mr453285pgb.127.1623861647276; Wed, 16 Jun 2021 09:40:47 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id c5sm2840547pfn.144.2021.06.16.09.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 09:40:46 -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 v3 0/5] Use the normal block device I/O path Date: Wed, 16 Jun 2021 09:40:38 -0700 Message-Id: <20210616164043.1221861-1-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This fixes up pstore/blk to avoid touching block internals, and includes additional fixes and clean-ups. -Kees v3: - split verify_size move into a separate patch - several changes suggested by hch from the v2 thread - add reviewed-bys v2: https://lore.kernel.org/lkml/20210615212121.1200820-1-keescook@chromium.org v1: https://lore.kernel.org/lkml/20210614200421.2702002-1-keescook@chromium.org Kees Cook (5): pstore/blk: Improve failure reporting pstore/blk: Move verify_size() macro out of function pstore/blk: Use the normal block device I/O path pstore/blk: Fix kerndoc and redundancy on blkdev param pstore/blk: Include zone in pstore_device_info Documentation/admin-guide/pstore-blk.rst | 14 +- drivers/mtd/mtdpstore.c | 10 +- fs/pstore/blk.c | 403 +++++++++-------------- include/linux/pstore_blk.h | 27 +- 4 files changed, 171 insertions(+), 283 deletions(-) -- 2.25.1