kernel-fxtec-pro1x/fs/hfs
Ernesto A. Fernández ea54dce206 hfs: prevent btree data loss on root split
[ Upstream commit d057c036672f33d43a5f7344acbb08cf3a8a0c09 ]

This bug is triggered whenever hfs_brec_update_parent() needs to split
the root node.  The height of the btree is not increased, which leaves
the new node orphaned and its records lost.  It is not possible for this
to happen on a valid hfs filesystem because the index nodes have fixed
length keys.

For reasons I ignore, the hfs module does have support for a number of
hfsplus features.  A corrupt btree header may report variable length
keys and trigger this bug, so it's better to fix it.

Link: http://lkml.kernel.org/r/9750b1415685c4adca10766895f6d5ef12babdb0.1535682463.git.ernesto.mnd.fernandez@gmail.com
Signed-off-by: Ernesto A. Fernández <ernesto.mnd.fernandez@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-27 16:12:59 +01:00
..
attr.c
bfind.c
bitmap.c
bnode.c
brec.c hfs: prevent btree data loss on root split 2018-11-27 16:12:59 +01:00
btree.c
btree.h
catalog.c
dir.c hfs: use d_splice_alias() 2018-05-22 14:27:59 -04:00
extent.c
hfs.h
hfs_fs.h
inode.c new helper: inode_fake_hash() 2018-08-03 16:03:32 -04:00
Kconfig
Makefile
mdb.c Rename superblock flags (MS_xyz -> SB_xyz) 2017-11-27 13:05:09 -08:00
part_tbl.c
string.c
super.c Rename superblock flags (MS_xyz -> SB_xyz) 2017-11-27 13:05:09 -08:00
sysdep.c
trans.c