From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:5509 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbfDBNyK (ORCPT ); Tue, 2 Apr 2019 09:54:10 -0400 Date: Tue, 2 Apr 2019 09:54:07 -0400 From: Brian Foster Subject: Re: [STABLE PATCH 0/2] Fix in-memory metadata corruption at xfs_attr3_leaf_write_verify() Message-ID: <20190402135407.GG2899@bfoster> References: <1554042273-3307-1-git-send-email-alex@zadara.com> <20190402114450.GB2899@bfoster> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Alex Lyakas Cc: linux-xfs@vger.kernel.org, stable@vger.kernel.org, "Darrick J. Wong" , hch@lst.de, Shyam Kaushik On Tue, Apr 02, 2019 at 04:33:38PM +0300, Alex Lyakas wrote: > Hi Brian, > > On Tue, Apr 2, 2019 at 2:44 PM Brian Foster wrote: > > > > On Sun, Mar 31, 2019 at 05:24:33PM +0300, Alex Lyakas wrote: > > > This is a partial backport of original Darrick's series "xfs: logging fixes" to kernel 4.14. > > > It fixes the in-memory metadata corruption error, which happens > > > when a partially initialized attribute buffer is attemped to be written to disk. > > > This issue is reproducible with kernel 4.14, when adding a 1-sec sleep in xfs_attr_set(), > > > between the call to xfs_attr_shortform_to_leaf() and the call to xfs_attr_leaf_addname(). > > > > > > > For future reference, you probably want to make sure the patch series is > > threaded when it's posted to the list. > I am not sure what you mean by this. I used "git-send-email" to send > all the patches one-by-one. Perhaps you mean that I should have sent > them in one "git-send-email" command? > Yeah, most likely. At least I don't do anything more than format a patch series to a directory, update the cover letter and whatnot and then 'git send-email ...' on the entire directory to achieve threading. > > That aside, this looks like a > > reasonable and straightforward backport to me: > > > > Acked-by: Brian Foster > I assume that I can treat your "Acked-by" as "Reviewed-by" (Dave asked > for this to pass a review). > Sure, either way is fine. I wasn't sure what tags are expected for the stable trees (if any) and just wanted to indicate that I think the backport looks fine. Brian > Thanks! > Alex. > > > > > > > Darrick J. Wong (2): > > > xfs: add the ability to join a held buffer to a defer_ops > > > xfs: hold xfs_buf locked between shortform->leaf conversion and the > > > addition of an attribute > > > > > > fs/xfs/libxfs/xfs_attr.c | 20 +++++++++++++++----- > > > fs/xfs/libxfs/xfs_attr_leaf.c | 9 ++++++--- > > > fs/xfs/libxfs/xfs_attr_leaf.h | 3 ++- > > > fs/xfs/libxfs/xfs_defer.c | 39 ++++++++++++++++++++++++++++++++++++--- > > > fs/xfs/libxfs/xfs_defer.h | 5 ++++- > > > 5 files changed, 63 insertions(+), 13 deletions(-) > > > > > > -- > > > 1.9.1 > > >