]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext2: convert to mbcache2
authorJan Kara <jack@suse.cz>
Mon, 22 Feb 2016 16:56:38 +0000 (11:56 -0500)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 01:19:25 +0000 (20:19 -0500)
commit282f4de61543d84d95e3e44f208cb3c3842a6855
tree60b69f91fef265918b7615f1bc6457be5e3c80f4
parent47c8e862c3a650760a74ccf7e4009074a74c8032
ext2: convert to mbcache2

Orabug: 24521483
CVE: CVE-2015-8952

The conversion is generally straightforward. We convert filesystem from
a global cache to per-fs one. Similarly to ext4 the tricky part is that
xattr block corresponding to found mbcache entry can get freed before we
get buffer lock for that block. So we have to check whether the entry is
still valid after getting the buffer lock.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit be0726d33cb8f411945884664924bed3cb8c70ee)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
fs/ext2/ext2.h
fs/ext2/super.c
fs/ext2/xattr.c
fs/ext2/xattr.h