From patchwork Mon Apr 15 23:30:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 10901695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2FBF214DB for ; Mon, 15 Apr 2019 23:30:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 139B72876D for ; Mon, 15 Apr 2019 23:30:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07E34287AF; Mon, 15 Apr 2019 23:30:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 870D62876D for ; Mon, 15 Apr 2019 23:30:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5541A21A09130; Mon, 15 Apr 2019 16:30:17 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::243; helo=mail-oi1-x243.google.com; envelope-from=dan.j.williams@intel.com; receiver=linux-nvdimm@lists.01.org Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A8B42211EB809 for ; Mon, 15 Apr 2019 16:30:15 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id f196so4605118oib.7 for ; Mon, 15 Apr 2019 16:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=+g42Wfc/GIpu/WqaAZv5aGm8UOBgJOaJrKqeL0UmA3I=; b=Y9vZHysk7NDou5NigfbE9/49GeiH5xUrUA0pIHMLZ8e+twIdSpuVGD3X7hFmgmmY8u sM3ariCE+BbpEJXvuzzfSiYSDaMdmqFkysOZwrnDRZcFhjOqCLWustkvIACg89yOKCUk /N7qlW20ydBKvXAuUmZ+vQUGmdjB33LZOUfUQnVPz5LZ3YohuHnkfpa9YbMn3UAJqYUZ N6GHC6rUCFVHir9a3cka9lXnWiWe98OeogIx+K3p2I22I7L2//A48wGZx7LZWVYj6tS6 r/IU8vAISmMrEVonkxlp2ROdO3tcjV8tuUMrsMDsFzAlu4EdAeAdHaVY+0A3qgb7f9SU ZGiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=+g42Wfc/GIpu/WqaAZv5aGm8UOBgJOaJrKqeL0UmA3I=; b=c7NYe5DZL+uN0X4DjXHe4rNkK3F78pkBlud2Qku91zD0i6bwzGMCcmfu25IK1CvvBj HXy6PjRmiXFmw2gEvE792VVgsQWaEhDoHmPI1zH3IcgAXQgaZ2hRm2/wlod7L8sLu1O7 R9m7AChY2wyuO2LBmeUwckDc4raXsw4OPtriYN3wtYAtTOK/ujEjvXVZPX20VgbhjS4P xarCreGv2TveZgBl619hESIvbbMm7BiyXDkf5CYHc3NjvGjIS2nmh/mIJNwiUKuJKybK QHUzmYXtzV6plZbQ/eUp+m0isrY5rJVENza+OWNpp2Q45GLN3tAR4MHXvInYS+eBTLiH SMpA== X-Gm-Message-State: APjAAAXdF/q1nv17tWZjvhx+GF30iLy9MdhVck2ecLcl+Mzf9HwKudgV dulgnr1QvWVQwlTEwOl+iO/hXn7878d4+Xx80lZTvQ== X-Google-Smtp-Source: APXvYqy30mCVV43vy/d3+9bdDfAecASlTu6fwf4ASF6LFKnqvBIqTpWEEzfYfP2HjHilChhtIXON6Vin/7tUjCTOOFo= X-Received: by 2002:aca:f581:: with SMTP id t123mr22437267oih.0.1555371014333; Mon, 15 Apr 2019 16:30:14 -0700 (PDT) MIME-Version: 1.0 From: Dan Williams Date: Mon, 15 Apr 2019 16:30:02 -0700 Message-ID: Subject: [GIT PULL] libnvdimm fixes for 5.1-rc6 To: Linus Torvalds X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux Kernel Mailing List , linux-nvdimm Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-fixes-5.1-rc6 ...to receive an optional libnvdimm update for v5.1-rc6. I debated holding this back for the v5.2 merge window due to the size of the "zero-key" changes, but affected users would benefit from having the fixes sooner. It did not make sense to change the zero-key semantic in isolation for the "secure-erase" command, but instead include it for all security commands. The short background on the need for these changes is that some NVDIMM platforms enable security with a default zero-key rather than let the OS specify the initial key. This makes the security enabling that landed in v5.0 unusable for some users. --- The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b: Linux 5.1-rc1 (2019-03-17 14:22:26 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-fixes-5.1-rc6 for you to fetch changes up to 2170a0d53bee1a6c1a4ebd042f99d85aafc6c0ea: tools/testing/nvdimm: Retain security state after overwrite (2019-04-08 09:39:32 -0700) ---------------------------------------------------------------- libnvdimm fixes v5.1-rc6 - Compatibility fix for nvdimm-security implementations with a default zero-key. - Miscellaneous small fixes for out-of-bound accesses, cleanup after initialization failures, and missing debug messages. ---------------------------------------------------------------- Aditya Pakki (1): libnvdimm/btt: Fix a kmemdup failure check Dan Williams (1): acpi/nfit: Always dump _DSM output payload Dave Jiang (3): libnvdimm/security: provide fix for secure-erase to use zero-key libnvdimm/security, acpi/nfit: unify zero-key for all security commands tools/testing/nvdimm: Retain security state after overwrite Kangjie Lu (1): libnvdimm/namespace: Fix a potential NULL pointer dereference Li RongQing (1): libnvdimm/pmem: fix a possible OOB access when read and write pmem drivers/acpi/nfit/core.c | 12 ++-- drivers/acpi/nfit/intel.c | 10 ++-- drivers/nvdimm/btt_devs.c | 18 ++++-- drivers/nvdimm/namespace_devs.c | 5 +- drivers/nvdimm/pmem.c | 8 +-- drivers/nvdimm/security.c | 118 ++++++++++++++++++++++++--------------- tools/testing/nvdimm/test/nfit.c | 17 ++++-- 7 files changed, 117 insertions(+), 71 deletions(-)