linux-IllusionX/fs/ext4
Jan Kara a361293f5f jbd2: Fix oops in jbd2_journal_file_inode()
Commit 0713ed0cde added
jbd2_journal_file_inode() call into ext4_block_zero_page_range().
However that function gets called from truncate path and thus inode
needn't have jinode attached - that happens in ext4_file_open() but
the file needn't be ever open since mount. Calling
jbd2_journal_file_inode() without jinode attached results in the oops.

We fix the problem by attaching jinode to inode also in ext4_truncate()
and ext4_punch_hole() when we are going to zero out partial blocks.

Reported-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2013-08-16 21:19:41 -04:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c
ext4.h jbd2: Fix oops in jbd2_journal_file_inode() 2013-08-16 21:19:41 -04:00
ext4_extents.h
ext4_jbd2.c jbd2: Fix use after free after error in jbd2_journal_dirty_metadata() 2013-08-12 09:53:28 -04:00
ext4_jbd2.h
extents.c ext4: fix retry handling in ext4_ext_truncate() 2013-07-29 12:12:56 -04:00
extents_status.c
extents_status.h
file.c jbd2: Fix oops in jbd2_journal_file_inode() 2013-08-16 21:19:41 -04:00
fsync.c
hash.c
ialloc.c
indirect.c
inline.c
inode.c jbd2: Fix oops in jbd2_journal_file_inode() 2013-08-16 21:19:41 -04:00
ioctl.c ext4: flush the extent status cache during EXT4_IOC_SWAP_BOOT 2013-08-12 09:29:30 -04:00
Kconfig
Makefile
mballoc.c
mballoc.h
migrate.c
mmp.c
move_extent.c
namei.c
page-io.c
resize.c
super.c ext4: fix mount/remount error messages for incompatible mount options 2013-08-08 23:02:24 -04:00
symlink.c
truncate.h
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c