]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix scheduling in atomic on group checksum failure
authorJan Kara <jack@suse.cz>
Fri, 12 Feb 2016 04:15:12 +0000 (23:15 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Feb 2016 04:15:12 +0000 (23:15 -0500)
commit537de57b23fecaab48b47fe990a28b5cefbf43b8
treeabcedec57a068d5f586ac4c6d16c7629ffca07db
parent30a65257bc843e476321e7edb2e8dad49aeccac8
ext4: fix scheduling in atomic on group checksum failure

When block group checksum is wrong, we call ext4_error() while holding
group spinlock from ext4_init_block_bitmap() or
ext4_init_inode_bitmap() which results in scheduling while in atomic.
Fix the issue by calling ext4_error() later after dropping the spinlock.

CC: stable@vger.kernel.org
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/ext4/balloc.c
fs/ext4/ialloc.c