android_kernel_motorola_sm6375/fs/ext4
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Theodore Ts'o d8b7689a62 ext4: fix potential htree index checksum corruption
[ Upstream commit b5776e7524afbd4569978ff790864755c438bba7 ]

In the case where we need to do an interior node split, and
immediately afterwards, we are unable to allocate a new directory leaf
block due to ENOSPC, the directory index checksum's will not be filled
in correctly (and indeed, will not be correctly journalled).

This looks like a bug that was introduced when we added largedir
support.  The original code doesn't make any sense (and should have
been caught in code review), but it was hidden because most of the
time, the index node checksum will be set by do_split().  But if
do_split bails out due to ENOSPC, then ext4_handle_dirty_dx_node()
won't get called, and so the directory index checksum field will not
get set, leading to:

EXT4-fs error (device sdb): dx_probe:858: inode #6635543: block 4022: comm nfsd: Directory index failed checksum

Google-Bug-Id: 176345532
Fixes: e08ac99fa2 ("ext4: add largedir feature")
Cc: Artem Blagodarenko <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2021-03-04 10:26:37 +01:00
..
acl.c
acl.h
balloc.c ext4: fix potential race between online resizing and write operations 2020-02-28 17:22:22 +01:00
bitmap.c
block_validity.c ext4: correctly restore system zone info when remount fails 2020-09-03 11:26:57 +02:00
dir.c ext4: avoid utf8_strncasecmp() with unstable name 2020-06-24 17:50:48 +02:00
ext4.h ext4: fix bogus warning in ext4_update_dx_flag() 2020-11-24 13:29:21 +01:00
ext4_extents.h ext4: fix EXT_MAX_EXTENT/INDEX to check for zeroed eh_max 2020-06-22 09:31:15 +02:00
ext4_jbd2.c
ext4_jbd2.h
extents.c ext4: fix partial cluster initialization when splitting extent 2020-06-24 17:50:47 +02:00
extents_status.c
extents_status.h
file.c ext4: don't leak old mountpoint samples 2021-01-19 18:26:13 +01:00
fsmap.c ext4: limit entries returned when counting fsmap records 2020-10-29 09:57:55 +01:00
fsmap.h
fsync.c ext4: fix race between ext4_sync_parent() and rename() 2020-06-22 09:31:16 +02:00
hash.c
ialloc.c ext4: increase wait time needed before reuse of deleted inode numbers 2020-05-02 08:48:59 +02:00
indirect.c
inline.c ext4: unlock xattr_sem properly in ext4_inline_data_truncate() 2020-11-18 19:20:28 +01:00
inode.c writeback: Drop I_DIRTY_TIME_EXPIRE 2021-01-30 13:54:11 +01:00
ioctl.c ext4: fix superblock checksum failure when setting password salt 2021-01-19 18:26:17 +01:00
Kconfig
Makefile
mballoc.c ext4: fix a memory leak of ext4_free_data 2020-12-30 11:51:37 +01:00
mballoc.h
migrate.c ext4: fix race between writepages and enabling EXT4_EXTENTS_FL 2020-02-28 17:22:23 +01:00
mmp.c ext4: don't assume that mmp_nodename/bdevname have NUL 2020-02-19 19:52:58 +01:00
move_extent.c
namei.c ext4: fix potential htree index checksum corruption 2021-03-04 10:26:37 +01:00
page-io.c ext4: fix deadlock allocating crypto bounce page from mempool 2020-02-11 04:35:32 -08:00
readpage.c ext4: fix deadlock allocating bio_post_read_ctx from mempool 2020-02-24 08:36:29 +01:00
resize.c ext4: fix error handling code in add_new_gdb 2020-11-05 11:43:35 +01:00
super.c ext4: don't remount read-only with errors=continue on reboot 2021-01-06 14:48:36 +01:00
symlink.c
sysfs.c
truncate.h
verity.c
xattr.c ext4: fix error pointer dereference 2020-06-22 09:31:15 +02:00
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c