linux-stable/fs/ext4
Stephen Brennan 80f566c013 ext4: use ext4_grp_locked_error in mb_find_extent
commit cd84bbbac1 upstream.

Commit 5d1b1b3f49 ("ext4: fix BUG when calling ext4_error with locked
block group") introduces ext4_grp_locked_error to handle unlocking a
group in error cases. Otherwise, there is a possibility of a sleep while
atomic. However, since 43c73221b3 ("ext4: replace BUG_ON with WARN_ON
in mb_find_extent()"), mb_find_extent() has contained a ext4_error()
call while a group spinlock is held. Replace this with
ext4_grp_locked_error.

Fixes: 43c73221b3 ("ext4: replace BUG_ON with WARN_ON in mb_find_extent()")
Cc: <stable@vger.kernel.org> # 4.14+
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
Link: https://lore.kernel.org/r/20210623232114.34457-1-stephen.s.brennan@oracle.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-20 16:15:40 +02:00
..
acl.c
acl.h
balloc.c ext4: fix potential race between online resizing and write operations 2020-02-28 16:38:57 +01:00
bitmap.c
block_validity.c ext4: eliminate bogus error in ext4_data_block_valid_rcu() 2021-07-11 12:49:30 +02:00
dir.c ext4: fix checksum errors with indexed dirs 2020-02-19 19:51:55 +01:00
ext4.h ext4: check journal inode extents more carefully 2021-03-20 10:38:34 +01:00
ext4_extents.h ext4: fix EXT_MAX_EXTENT/INDEX to check for zeroed eh_max 2020-06-22 09:05:21 +02:00
ext4_jbd2.c
ext4_jbd2.h ext4: use jbd2_inode dirty range scoping 2019-07-28 08:29:29 +02:00
extents.c ext4: fix kernel infoleak via ext4_extent_header 2021-07-20 16:15:40 +02:00
extents_status.c ext4: remove check for zero nr_to_scan in ext4_es_scan() 2021-07-20 16:15:40 +02:00
extents_status.h
file.c ext4: fix ext4_dax_read/write inode locking sequence for IOCB_NOWAIT 2020-02-24 08:34:35 +01:00
fsmap.c ext4: limit entries returned when counting fsmap records 2020-10-30 10:38:22 +01:00
fsmap.h
fsync.c ext4: fix race between ext4_sync_parent() and rename() 2020-06-22 09:05:22 +02:00
hash.c
ialloc.c ext4: fix avefreec in find_group_orlov 2021-07-20 16:15:40 +02:00
indirect.c ext4: check journal inode extents more carefully 2021-03-20 10:38:34 +01:00
inline.c ext4: unlock xattr_sem properly in ext4_inline_data_truncate() 2020-11-18 19:18:48 +01:00
inode.c ext4: fix bh ref count on error paths 2021-04-07 12:48:47 +02:00
ioctl.c ext4: fix superblock checksum failure when setting password salt 2021-01-19 18:22:38 +01:00
Kconfig
Makefile
mballoc.c ext4: use ext4_grp_locked_error in mb_find_extent 2021-07-20 16:15:40 +02:00
mballoc.h
migrate.c ext4: fix race between writepages and enabling EXT4_EXTENTS_FL 2020-02-28 16:38:57 +01:00
mmp.c ext4: don't assume that mmp_nodename/bdevname have NUL 2020-02-19 19:51:55 +01:00
move_extent.c ext4: use jbd2_inode dirty range scoping 2019-07-28 08:29:29 +02:00
namei.c ext4: do not iput inode under running transaction in ext4_rename() 2021-04-07 12:48:48 +02:00
page-io.c ext4: fix deadlock allocating crypto bounce page from mempool 2020-02-11 04:34:16 -08:00
readpage.c
resize.c ext4: fix error handling code in add_new_gdb 2020-11-05 11:08:53 +01:00
super.c ext4: return error code when ext4_fill_flex_info() fails 2021-07-20 16:15:40 +02:00
symlink.c
sysfs.c
truncate.h
xattr.c ext4: add reclaim checks to xattr code 2021-03-30 14:37:03 +02:00
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c