acrn-kernel/fs/ext4
Fabio M. De Francesco fa285d799d ext4: drop the call to ext4_error() from ext4_get_group_info()
[ Upstream commit f451fd97dd ]

A recent patch added a call to ext4_error() which is problematic since
some callers of the ext4_get_group_info() function may be holding a
spinlock, whereas ext4_error() must never be called in atomic context.

This triggered a report from Syzbot: "BUG: sleeping function called from
invalid context in ext4_update_super" (see the link below).

Therefore, drop the call to ext4_error() from ext4_get_group_info(). In
the meantime use eight characters tabs instead of nine characters ones.

Reported-by: syzbot+4acc7d910e617b360859@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/00000000000070575805fdc6cdb2@google.com/
Fixes: 5354b2af34 ("ext4: allow ext4_get_group_info() to fail")
Suggested-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20230614100446.14337-1-fmdefrancesco@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-21 16:01:01 +02:00
..
.kunitconfig
Kconfig
Makefile
acl.c
acl.h
balloc.c ext4: drop the call to ext4_error() from ext4_get_group_info() 2023-06-21 16:01:01 +02:00
bitmap.c
block_validity.c
crypto.c
dir.c
ext4.h ext4: add lockdep annotations for i_data_sem for ea_inode's 2023-06-09 10:34:26 +02:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
extents.c
extents_status.c ext4: fix data races when using cached status extents 2023-05-17 11:53:57 +02:00
extents_status.h
fast_commit.c
fast_commit.h
file.c
fsmap.c
fsmap.h
fsync.c
hash.c ext4: improve error handling from ext4_dirhash() 2023-05-17 11:53:58 +02:00
ialloc.c ext4: allow ext4_get_group_info() to fail 2023-05-24 17:32:33 +01:00
indirect.c
inline.c ext4: bail out of ext4_xattr_ibody_get() fails for any reason 2023-05-17 11:53:58 +02:00
inode-test.c
inode.c ext4: disallow ea_inodes with extended attributes 2023-06-09 10:34:26 +02:00
ioctl.c
mballoc.c ext4: Fix best extent lstart adjustment logic in ext4_mb_new_inode_pa() 2023-05-24 17:32:37 +01:00
mballoc.h
migrate.c
mmp.c ext4: reflect error codes from ext4_multi_mount_protect() to its callers 2023-05-24 17:32:33 +01:00
move_extent.c
namei.c ext4: improve error handling from ext4_dirhash() 2023-05-17 11:53:58 +02:00
orphan.c
page-io.c
readpage.c
resize.c
super.c Revert "ext4: don't clear SB_RDONLY when remounting r/w until quota is re-enabled" 2023-06-14 11:15:33 +02:00
symlink.c
sysfs.c
truncate.h
verity.c
xattr.c ext4: only check dquot_initialize_needed() when debugging 2023-06-14 11:15:33 +02:00
xattr.h
xattr_hurd.c
xattr_security.c
xattr_trusted.c
xattr_user.c