Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5733195yba; Mon, 13 May 2019 16:39:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXKjb/+iMXwaDyRnT7Jv35JPujv2W6LGMsVJbWkN5YsC4aKgY2OORLHg4w7JLTrJ8Es0MW X-Received: by 2002:a62:e101:: with SMTP id q1mr37368068pfh.160.1557790764506; Mon, 13 May 2019 16:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557790764; cv=none; d=google.com; s=arc-20160816; b=vdG7/nncUG4eq1dHvB9439dIsfLFfbWk04gGIaAVTci6jqIkyqhWUHl2OeQ5gP1qPc jWqyCYCJ1V3cfHe6Hx3hqX7MzlNKsoKIlRLeUd3p/IL0VxiXRs3Yr2Z11bCXDkL5fxuY TXltzQXxVXAkulfqLo1CrfdW5oex5zNvo2xRVEEuYwcadYNcvT3vner5yY1tLvgczhe2 Jlp6inUnZJ5n0SlPwS0hQ5ZuXVcSJqcewfeO+NJNOPHWxz6pEYGHGOlhz/Dj9RQjhO1P rYcXw6xtvnUiATCY717oi39maH9QmpBwfBsQ1SEwu6inef3OlJMssnEsghfZR2uBi4XQ iKPg== 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; bh=8GOj/Ovp2WU+NZVYOeeHTKgWGkAuPTN3/xrCKuPptWw=; b=WvhGUCEpHEAjGIkpFAsqXAxTK/18S15DgZqOOOjyZd1YvOOQGqqoqEgCQ1l5N0JJiu 3nikBjV48ILXOqxrU7v8M+A1vK6agb4MOdz5Cfd17Th5XEz6phY387w5HzNx6hmiaAGF XeHb4cerzl+m9tkvpmL449EzTIoF3sbCblwe3VninkOAZ7wKt6Bw1A03jZPT1ruGUQH2 ZWQkXk7AnHWa51dwhXxJjRlX+pv4M5Web8fe89LCD79Hd6RErPAPI7NkJ3Y7L6HKpIrB PwghiE25l+UMwfq7PYEC3NFXEVO0Pb/hHK6YHzNUZv4XaSwsxqYJhp79qFoUuKxxKLww ievw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gBNHMtoC; 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 v22si18455230pff.62.2019.05.13.16.39.08; Mon, 13 May 2019 16:39:24 -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=gBNHMtoC; 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 S1726623AbfEMXiU (ORCPT + 99 others); Mon, 13 May 2019 19:38:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:51770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbfEMXiU (ORCPT ); Mon, 13 May 2019 19:38:20 -0400 Received: from localhost (unknown [104.132.1.68]) (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 34AA820879; Mon, 13 May 2019 23:38:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557790699; bh=KHo/8VO1q8PL3nZybC3R+kGEoBbsv8Y0Pf5QPxbCbzc=; h=Date:From:To:Cc:Subject:From; b=gBNHMtoCfSVHnVCV2d0qIt792RO4t/cNNMbhD2pP5rfMubxxghzk65jcy8rBUXY/h okAK8lDC6SiKq4pVzMhJS2SIsA4S+O7GQmbciN5EEWmU1dBWMu3Jrl7w472epO3fA/ HDXE9FOrJsZWoh4E+ea9BH3r/q5WuJf2uS7EsqLA= Date: Mon, 13 May 2019 16:38:18 -0700 From: Jaegeuk Kim To: Linus Torvalds Cc: Linux F2FS Dev Mailing List , Linux Kernel Mailing List Subject: [GIT PULL] f2fs-for-5.2 Message-ID: <20190513233818.GA33287@jaegeuk-macbookpro.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Could you please consider this pull request? Thanks as lways, The following changes since commit 8ed86627f715eacbd6db6862f9499d6d96ea4ad6: Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid (2019-04-03 06:11:12 -1000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git tags/f2fs-for-v5.2-rc1 for you to fetch changes up to 2777e654371dd4207a3a7f4fb5fa39550053a080: f2fs: fix to avoid accessing xattr across the boundary (2019-05-09 09:43:29 -0700) ---------------------------------------------------------------- f2fs-for-5.2-rc1 Another round of various bug fixes came in. Damien improved SMR drive support a bit, and Chao replaced BUG_ON() with reporting errors to user since we've not hit from users but did hit from crafted images. We've found a disk layout bug in large_nat_bits feature which supports very large NAT entries enabled at mkfs. If the feature is enabled, it will give a notice to run fsck to correct the on-disk layout. Enhancement: - reduce memory consumption for SMR drive - better discard handling for multiple partitions - tracepoints for f2fs_file_write_iter/f2fs_filemap_fault - allow to change CP_CHKSUM_OFFSET - detect wrong layout of large_nat_bitmap feature - enhance checking valid data indices Bug fix: - Multiple partition support for SMR drive - deadlock problem in f2fs_balance_fs_bg - add boundary checks to fix abnormal behaviors on fuzzed images - inline_xattr space calculations - replace f2fs_bug_on with errors In addition, this series contains various memory boundary check and sanity check of on-disk consistency. ---------------------------------------------------------------- Chao Yu (31): f2fs: fix potential recursive call when enabling data_flush f2fs: add comment for conditional compilation statement f2fs: add tracepoint for f2fs_file_write_iter() f2fs: fix to avoid deadloop in foreground GC f2fs: fix error path of recovery f2fs: fix to retrieve inline xattr space f2fs: fix to use inline space only if inline_xattr is enable f2fs: fix to avoid panic in dec_valid_block_count() f2fs: fix to avoid panic in dec_valid_node_count() f2fs: fix wrong __is_meta_io() macro f2fs: remove new blank line of f2fs kernel message f2fs: fix to clear dirty inode in error path of f2fs_iget() f2fs: fix to avoid panic in f2fs_remove_inode_page() f2fs: fix to do checksum even if inode page is uptodate f2fs: fix to do sanity check on free nid f2fs: fix to avoid panic in do_recover_data() f2fs: fix to do sanity check on valid node/block count f2fs: fix to do sanity check on valid block count of segment f2fs: fix to avoid panic in f2fs_inplace_write_data() f2fs: fix to set FI_UPDATE_WRITE correctly f2fs: introduce f2fs_read_single_page() for cleanup f2fs: allow address pointer number of dnode aligning to specified size f2fs: allow unfixed f2fs_checkpoint.checksum_offset f2fs: relocate chksum_offset for large_nat_bitmap feature f2fs: fix to consider multiple device for readonly check f2fs: fix to skip recovery on readonly device f2fs: fix to be aware of readonly device in write_checkpoint() f2fs: fix to handle error in f2fs_disable_checkpoint() f2fs: introduce DATA_GENERIC_ENHANCE f2fs: add tracepoint for f2fs_filemap_fault() f2fs: fix to avoid potential race on sbi->unusable_block_count access/update Chengguang Xu (1): f2fs: remove redundant check in f2fs_file_write_iter() Damien Le Moal (3): f2fs: Fix use of number of devices f2fs: Reduce zoned block device memory usage f2fs: improve discard handling with multi-device volumes Hariprasad Kelam (1): f2fs: data: fix warning Using plain integer as NULL pointer Park Ju Hyung (1): f2fs: mark is_extension_exist() inline Randall Huang (1): f2fs: fix to avoid accessing xattr across the boundary Youngjun Yoo (2): f2fs: insert space before the open parenthesis '(' f2fs: Replace spaces with tab fs/f2fs/acl.c | 4 +- fs/f2fs/checkpoint.c | 108 +++++++++++++---- fs/f2fs/data.c | 285 +++++++++++++++++++++++++------------------- fs/f2fs/f2fs.h | 127 +++++++++++++++----- fs/f2fs/file.c | 76 +++++++----- fs/f2fs/gc.c | 16 ++- fs/f2fs/inline.c | 17 +++ fs/f2fs/inode.c | 12 +- fs/f2fs/namei.c | 2 +- fs/f2fs/node.c | 43 +++++-- fs/f2fs/recovery.c | 37 +++++- fs/f2fs/segment.c | 71 ++++++----- fs/f2fs/segment.h | 16 +-- fs/f2fs/super.c | 70 ++++++++--- fs/f2fs/xattr.c | 36 ++++-- fs/f2fs/xattr.h | 2 + include/linux/f2fs_fs.h | 11 +- include/trace/events/f2fs.h | 57 +++++++++ 18 files changed, 688 insertions(+), 302 deletions(-)