From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DATE_IN_FUTURE_06_12, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92E4CC83000 for ; Wed, 29 Apr 2020 20:33:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7B9B7214AF for ; Wed, 29 Apr 2020 20:33:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726815AbgD2Uda (ORCPT ); Wed, 29 Apr 2020 16:33:30 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:46716 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgD2Ud3 (ORCPT ); Wed, 29 Apr 2020 16:33:29 -0400 Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Wed, 29 Apr 2020 13:33:26 -0700 Received: from localhost.localdomain (ashwinh-vm-1.vmware.com [10.110.19.225]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 5DEE540F73; Wed, 29 Apr 2020 13:33:26 -0700 (PDT) From: ashwin-h To: , CC: , , , , , , , , , ashwin-h Subject: [PATCH 0/5] Backport to 4.14 - ext4: protect journal inode's blocks using block_validity Date: Thu, 30 Apr 2020 09:52:02 +0530 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: None (EX13-EDG-OU-002.vmware.com: ashwinh@vmware.com does not designate permitted sender hosts) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org [PATCH 1/5] ext4: avoid declaring fs inconsistent due to invalid file handles This patch is backported as functionality in this commit is used by Patch 2 in this patchset. [PATCH 2/5] ext4: protect journal inode's blocks using block_validity Backport to 4.14 [PATCH 3/5] ext4: don't perform block validity checks on the journal [PATCH 4/5] ext4: fix block validity checks for journal inodes using [PATCH 5/5] ext4: unsigned int compared against zero Fixes issues found in Patch 2 in this patchset. These patches addresses CVE-2019-19319 Colin Ian King (1): ext4: unsigned int compared against zero Theodore Ts'o (4): ext4: avoid declaring fs inconsistent due to invalid file handles ext4: protect journal inode's blocks using block_validity ext4: don't perform block validity checks on the journal inode ext4: fix block validity checks for journal inodes using indirect blocks fs/ext4/block_validity.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ fs/ext4/ext4.h | 15 ++++++++++++-- fs/ext4/extents.c | 12 +++++++---- fs/ext4/ialloc.c | 2 +- fs/ext4/inode.c | 53 +++++++++++++++++++++++++++++++++-------------- fs/ext4/ioctl.c | 2 +- fs/ext4/namei.c | 4 ++-- fs/ext4/resize.c | 5 +++-- fs/ext4/super.c | 19 +++++------------ fs/ext4/xattr.c | 5 +++-- 10 files changed, 128 insertions(+), 43 deletions(-) -- 2.7.4