Skip to content

Backport to 4.14 - ext4: protect journal inode's blocks using block_validity

ashwin-h linux-ext4 lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ext4: avoid declaring fs inconsistent due to invalid file handlesfs/ext4/ext4.h fs/ext4/ialloc.c fs/ext4/inode.c +5 more+62 -390 replies
2/5ext4: protect journal inode's blocks using block_validityfs/ext4/block_validity.c fs/ext4/inode.c+52 -00 replies
3/5ext4: don't perform block validity checks on the journal inodefs/ext4/extents.c+8 -40 replies
4/5ext4: fix block validity checks for journal inodes using indirect blocksfs/ext4/block_validity.c+5 -00 replies
5/5ext4: unsigned int compared against zerofs/ext4/block_validity.c+2 -10 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchNaresh Kamboju
1/5
2/5
3/5T-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Backport to 4.14 - ext4: protect journal inode's blocks using block_validity

[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(-)
Signature · 1 line
2.7.4