Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp528301ybz; Wed, 29 Apr 2020 04:49:59 -0700 (PDT) X-Google-Smtp-Source: APiQypIsejewbuxYjW5FJ+UqJNI95CTKum5OZ4jo5jUfOeCb+FHCfpbKmJCPg2fmc1dHLE4azfmx X-Received: by 2002:a17:906:9442:: with SMTP id z2mr2057481ejx.249.1588160999325; Wed, 29 Apr 2020 04:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588160999; cv=none; d=google.com; s=arc-20160816; b=vmEzi/htlJvgbcjvSYcR9MxVYSruplCPMi5rwfJAfHPWNib8Bl6nctG/m8C9L50bRE hpkcMsLQKHOipBlNvUWojRKTzaAL1Bjwt925iEbpYbeFFcLHENiwWojC3QrWN2RBB3vA 6jjK4v+9cdICyF2i3ZE0PdF0kA37+GoYp7YPbI8yGgDTFZx33Lq23Aor8Og9HiiRopB5 YTwmNhB4gRM2Z9CiN74LcKL1hb4skY7nEyf3yVVaNeNQVAVdO+6VPcDqyopxCPv6zOh/ bqBSoVTfnUjTO8ywMVraH4+M1dwSTK3p0qMN5C6/GO8gLQC8GY74cdnIjoQTeYyB9CAj B/RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=uNojdPLsmctiby8KwWFQRlLXiuRzVNNzaRv/Vj3l57Q=; b=z2ypmnMPtV8QLJfvw4HL3mpEOjAIvxuVeXIfNr0n4xH3WDj9bZICouMDYDLVL6cIwp 2115DEChLTfm/j5Do37spRBFlOhltQ4Yqi2V4wk2bjFm59nBvOhsvuoBLH3T35BmTrHB qfKrVvD8BrfrFFni+qT2BrHGtzxYcGdPAqxSESSu0ar9+yhlQfzftn9nJB4uWn7k4X2Z RkJgF3CJJaiO1Pvus4eyMyM4XY0RwT6NPeVs0wCdM3KUSVxzBK/y1Y/7nJSeeXJ02k7h GGF+aM7MDm26B1utiktp3hU877AYRcqI0eWiyrCIST6zBtMHjdlEdG9qNzoOAW4i2pIq mGQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si3212117edm.75.2020.04.29.04.49.29; Wed, 29 Apr 2020 04:49:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726854AbgD2LsF (ORCPT + 99 others); Wed, 29 Apr 2020 07:48:05 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:20545 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbgD2LsE (ORCPT ); Wed, 29 Apr 2020 07:48:04 -0400 X-Greylist: delayed 903 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Apr 2020 07:48:04 EDT Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Wed, 29 Apr 2020 04:32:57 -0700 Received: from localhost.localdomain (ashwinh-vm-1.vmware.com [10.110.19.225]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 5FD23B1F56; Wed, 29 Apr 2020 07:32:57 -0400 (EDT) From: ashwin-h To: , CC: , , , , , , , , , ashwin-h Subject: [PATCH 0/5] Backport to 4.9- ext4: protect journal inode's blocks using block_validity Date: Thu, 30 Apr 2020 00:51:34 +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.9 [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 | 48 ++++++++++++++++++++++++++++++------------ fs/ext4/ioctl.c | 2 +- fs/ext4/namei.c | 4 ++-- fs/ext4/resize.c | 5 +++-- fs/ext4/super.c | 19 +++++------------ 9 files changed, 122 insertions(+), 39 deletions(-) -- 2.7.4