Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8601910ybi; Thu, 6 Jun 2019 15:38:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsnDYxkg3z9qxuOsnp4v0m2luNU016aGiLHt1H3PFDaM/PkrqmXjS+dDq9k8P5Nbr2WX9z X-Received: by 2002:a17:90a:2627:: with SMTP id l36mr2235033pje.71.1559860700120; Thu, 06 Jun 2019 15:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559860700; cv=none; d=google.com; s=arc-20160816; b=u/vK9hbK2Zjvc8ZGcJUgwr1VtX8nGy9q1ijYkHaVuemJS+FoFHMhQT6sU3eXyDoj5u SYF6GSNQ8l+nPGdJeDPMmh9WLsK0pwkvETlziSmOKsj7gVbin8rw0erh2sUI+/5sPUef ecsgTDOCGU5/JUM447ZrI7Xvr0LHL0KEABELuFFsI3O0sD83L0Kqz9P5yo+Y/fXXQQmd lRdT9FA7HIUkU4Tw8DVo5t0Q4DRyrA9HBGZJLjLJOlKzCWNBG+NHee7r7qaaDZ0V4Ak5 kGunnalBmpuMsa2oOz+qlc209fWodoiSoqu60qJxf53f3GD+pnxjSaJImE08GzL2XIlo hK6w== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=z+anmWmudWvyw9xqAYjMHpOuv0JofI8BMS77rTcp5uo=; b=pEIYw6M6oU0EuCeObf/vtuKwKFakmRJxDV57A+W+dSYjqEBxHv7Rg8hY3I9tBkMFcn +S868v78SC+SomsItp5XaNjocR5xNV5JLGdOM/WZ65uFSGyWNIUNzqS7JKAVgDW1braI Lw76OlPPHF8Z8Rwc5B5sCRlNlauOw3g3U9YM/8UIrh1JZZDBX6gmkOIUzniCgKqwjcit XRC6aZRozuBD3scvcvtUkMx0FQE5qMsJXdxcy6sfa7V77Eet/+EJf436BG1eY29m5nWZ YEP97IXUHrkEg+ZNjl8zJ4w5EtPodV8XvtF6bXEpbAQXdFeVxJtDf8Gboa6VqyvPnbQU Ka1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dfZnA3Lo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16si263229plr.238.2019.06.06.15.38.03; Thu, 06 Jun 2019 15:38:20 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=dfZnA3Lo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728650AbfFFVqp (ORCPT + 99 others); Thu, 6 Jun 2019 17:46:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:40324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfFFVqp (ORCPT ); Thu, 6 Jun 2019 17:46:45 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 309C320673; Thu, 6 Jun 2019 21:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559857604; bh=e8zSxF2YstjZdXDoPM2QroSTxqWSMLpjdXaDzNM/bHM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dfZnA3LoZI3kcekTvMdg7vm4wyUFToyxp29Scm6Cs7omCJytnHlzwlMXFqlGds2ht tKZ/OehCLO9EzgtHqjvJGedCRwMgeIGQKU+kGulTg4LF9TrwyYbFy3R+yo1Vi1wg+x L5CEq0PQe3DdZ/43QWfXSG4GV8UOuKXGuJHoNWd0= Date: Thu, 6 Jun 2019 14:46:43 -0700 From: Andrew Morton To: Dan Williams Cc: stable@vger.kernel.org, linux-mm@kvack.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, osalvador@suse.de, mhocko@suse.com Subject: Re: [PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields Message-Id: <20190606144643.4f3363db9499ebbf8f76e62e@linux-foundation.org> In-Reply-To: <155977193862.2443951.10284714500308539570.stgit@dwillia2-desk3.amr.corp.intel.com> References: <155977186863.2443951.9036044808311959913.stgit@dwillia2-desk3.amr.corp.intel.com> <155977193862.2443951.10284714500308539570.stgit@dwillia2-desk3.amr.corp.intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 05 Jun 2019 14:58:58 -0700 Dan Williams wrote: > At namespace creation time there is the potential for the "expected to > be zero" fields of a 'pfn' info-block to be filled with indeterminate > data. While the kernel buffer is zeroed on allocation it is immediately > overwritten by nd_pfn_validate() filling it with the current contents of > the on-media info-block location. For fields like, 'flags' and the > 'padding' it potentially means that future implementations can not rely > on those fields being zero. > > In preparation to stop using the 'start_pad' and 'end_trunc' fields for > section alignment, arrange for fields that are not explicitly > initialized to be guaranteed zero. Bump the minor version to indicate it > is safe to assume the 'padding' and 'flags' are zero. Otherwise, this > corruption is expected to benign since all other critical fields are > explicitly initialized. > > Fixes: 32ab0a3f5170 ("libnvdimm, pmem: 'struct page' for pmem") > Cc: > Signed-off-by: Dan Williams The cc:stable in [11/12] seems odd. Is this independent of the other patches? If so, shouldn't it be a standalone thing which can be prioritized?