Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6813981imm; Wed, 27 Jun 2018 13:59:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK00LuMAIXMRn9sLh3gpNlsYinjBcMglmibVjW5y7V9kARZGcCOs1ZuktbZcKEBTNTgoK6n X-Received: by 2002:a17:902:b60c:: with SMTP id b12-v6mr7731605pls.44.1530133188796; Wed, 27 Jun 2018 13:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530133188; cv=none; d=google.com; s=arc-20160816; b=wK28syN42ps48x8HfSBjtQ6aWi19uyGJTI0m7AhBgOUwPcxlPMaF7y938b5DsuN/sj MrpzXH1qJkiNH0+9KDS/7KnW0mE7RJHi1ViFCyb/z0sy9br1dYemKcFViq1t7M60KlhC TN+w3VAMqVNvvunoA1FHEABx5k/Ewolzfk8Uhykgq/au5jiKuYEsFznlt88gIRUZZy0u Cv6/KKMd5VazzNHidiI/kKsMqKdNRjQ8DF9U75OYoFluvqYOrxfjLetKVYkqFAztgyma fLscEeKSxZU+AzCko/xGXpIwkCmvtZ3T3eebwY3OTEgRMayF7kdDI+j9WR+bmNT1fSza fW0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=lPGmMn/ORjJalqldpRhi8hD9GZd9hFnHMYc3X+/yEJ4=; b=oW+4MgLVL1DTD2IEMV9tuqs6kZAOtvg88/iVYIpa1cmrtDVTZz0cK2sEqsAHQBSflL CTU3N7KjDB2EKfJG7DrikCPCvOrZQQJ29RxkNTWIJNMjStPjWXm+quMCOZz6OHWJB4pF EooGo2caTy3RU5AIJLxnf7hVhGfPohEImz36Mjo4pYOBOvXHnfneY55rRLwTO/nf2sC7 0bttCv6o/KSOWwfXTcFDTqY32d+SmFUs0CjWC1Cpfc744631G6LNXZnm+VwdLo6i4MLR xGTes4uu8aHDYEQJkdIq8ojxEsQngD1DrAdDlAiG6UcmAQ6pWQScml+HswypORFbj2G4 9AdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SJlaiL+g; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14-v6si3248587pgm.502.2018.06.27.13.59.33; Wed, 27 Jun 2018 13:59:48 -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=SJlaiL+g; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965840AbeF0SYX (ORCPT + 99 others); Wed, 27 Jun 2018 14:24:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:60456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964840AbeF0SYW (ORCPT ); Wed, 27 Jun 2018 14:24:22 -0400 Received: from localhost (c-67-169-218-210.hsd1.or.comcast.net [67.169.218.210]) (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 1FAF723C1C; Wed, 27 Jun 2018 18:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530123862; bh=REFOXNFVD8tOeq56nJbS74ttADuSLgHKND15JSufscM=; h=Date:From:To:Cc:Subject:From; b=SJlaiL+g2MyrN2KeJu+U3Vk0YxjhJw/ORW93K5ADuVDNDA9XCDJ/HMetZI7cSaNH+ 7zvIc72eLp7jUtdl3/ppHku8wpIaUP/xzpYY7yRM73ohGAuwPrN5GNQUSg8A/fSukl yslb2wkV9W7qfpXqw1zcpRHhuXIa+ySNqEOlFIuc= Date: Wed, 27 Jun 2018 11:24:21 -0700 From: "Darrick J. Wong" To: Linus Torvalds Cc: "Darrick J. Wong" , Linux Kernel Mailing List , linux-xfs , Eric Sandeen Subject: [GIT PULL] xfs: 4.18 fixes, part 1 Message-ID: <20180627182421.GE5711@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Here are some patches for 4.18 to fix regressions, accounting problems, overflow problems, and to strengthen metadata validation to prevent corruption. This series has been run through a full xfstests run over the weekend and through a quick xfstests run against this morning's master, with no major failures reported. --D The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-4.18-fixes-2 for you to fetch changes up to d8cb5e42378918e00eda58792f3ab86dd1e7d214: xfs: fix fdblocks accounting w/ RMAPBT per-AG reservation (2018-06-24 12:00:12 -0700) ---------------------------------------------------------------- Changes since last update: - More metadata validation strengthening to prevent crashes. - Fix extent offset overflow problem when insert_range on a 512b block fs - Fix some off-by-one errors in the realtime fsmap code - Fix some math errors in the default resblks calculation when free space is low - Fix a problem where stale page contents are exposed via mmap read after a zero_range at eof - Fix accounting problems with per-ag reservations causing statfs reports to vary incorrectly ---------------------------------------------------------------- Christoph Hellwig (1): xfs: simplify xfs_bmap_punch_delalloc_range Darrick J. Wong (8): xfs: allow empty transactions while frozen xfs: don't trip over negative free space in xfs_reserve_blocks xfs: don't allow insert-range to shift extents past the maximum offset xfs: recheck reflink state after grabbing ILOCK_SHARED for a write xfs: fix uninitialized field in rtbitmap fsmap backend xfs: fix off-by-one error in xfs_rtalloc_query_range xfs: ensure post-EOF zeroing happens after zeroing part of a file xfs: fix fdblocks accounting w/ RMAPBT per-AG reservation Dave Chinner (2): xfs: More robust inode extent count validation xfs: xfs_iflush_abort() can be called twice on cluster writeback failure fs/xfs/libxfs/xfs_ag_resv.c | 31 ++++++++++-- fs/xfs/libxfs/xfs_bmap.c | 26 +++++++++++ fs/xfs/libxfs/xfs_bmap.h | 2 + fs/xfs/libxfs/xfs_format.h | 5 ++ fs/xfs/libxfs/xfs_inode_buf.c | 76 ++++++++++++++++++------------ fs/xfs/libxfs/xfs_rtbitmap.c | 4 +- fs/xfs/xfs_bmap_util.c | 106 +++++++++++++++++++++--------------------- fs/xfs/xfs_fsmap.c | 4 +- fs/xfs/xfs_fsops.c | 2 +- fs/xfs/xfs_inode.c | 57 +++++++++-------------- fs/xfs/xfs_iomap.c | 15 +++++- fs/xfs/xfs_trans.c | 7 ++- 12 files changed, 205 insertions(+), 130 deletions(-)