]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
reiserfs: don't preallocate blocks for extended attributes
authorJeff Mahoney <jeffm@suse.com>
Thu, 22 Jun 2017 20:35:04 +0000 (16:35 -0400)
committerJan Kara <jack@suse.cz>
Fri, 23 Jun 2017 07:40:24 +0000 (09:40 +0200)
commit54930dfeb46e978b447af0fb8ab4e181c1bf9d7a
treea806487d2847781850f772ec7edaeaea2148da5a
parentfd3cfad374d452ebe0a2f87f37c2ceeea7e0d134
reiserfs: don't preallocate blocks for extended attributes

Most extended attributes will fit in a single block.  More importantly,
we drop the reference to the inode while holding the transaction open
so the preallocated blocks aren't released.  As a result, the inode
may be evicted before it's removed from the transaction's prealloc list
which can cause memory corruption.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/reiserfs/bitmap.c