linux/fs/logfs
Prasad Joshi cd8bfa9c8a logfs: initialize the number of iovecs in bio
This fixes the following crash when a LogFS file system, created on a
encrypted LVM volume, was mounted

[  526.548034] BUG: unable to handle kernel NULL pointer dereference at
[  526.550106] IP: [<ffffffff8131ecab>] memcpy+0xb/0x120
[  526.551008] PGD bd60067 PUD 1778d067 PMD 0
[  526.551783] Oops: 0000 [#1] SMP

<d>Pid: 2043, comm: mount
<d>RIP: 0010:[<ffffffff8131ecab>]  [<ffffffff8131ecab>] memcpy+0xb/0x120
Call Trace:
	kcryptd_io_read+0xdb/0x100
	crypt_map+0xfd/0x190
	__map_bio+0x48/0x150
	__split_and_process_bio+0x51b/0x630
	dm_request+0x138/0x230
	generic_make_request+0xca/0x100
	submit_bio+0x87/0x110
	sync_request+0xdd/0x120 [logfs]
	bdev_readpage+0x2e/0x70 [logfs]
	do_read_cache_page+0x82/0x180
	logfs_mount+0x2ad/0x770 [logfs]
	mount_fs+0x47/0x1c0
	vfs_kern_mount+0x72/0x110
	do_kern_mount+0x54/0x110
	do_mount+0x520/0x7f0
	sys_mount+0x90/0xe0

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42292
Reported-by: Witold Baryluk <baryluk@smp.if.uj.edu.pl>
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
2012-04-02 18:04:00 +05:30
..
compr.c zlib: slim down zlib_deflate() workspace when possible 2011-03-22 17:44:17 -07:00
dev_bdev.c logfs: initialize the number of iovecs in bio 2012-04-02 18:04:00 +05:30
dev_mtd.c mtd: fix merge conflict resolution breakage 2012-02-01 11:10:24 -08:00
dir.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2012-03-21 13:36:41 -07:00
file.c logfs: take write mutex lock during fsync and sync 2012-01-28 11:36:06 +05:30
gc.c logfs: Prevent memory corruption 2012-01-28 11:24:21 +05:30
inode.c logfs: destroy the reserved inodes while unmounting 2012-04-02 09:20:33 +05:30
journal.c logfs: remove useless BUG_ON 2012-01-28 11:41:56 +05:30
Kconfig [LogFS] add new flash file system 2009-11-20 20:13:39 +01:00
logfs_abi.h fix "seperate" typos in comments 2010-05-10 11:56:30 +02:00
logfs.h Pull request from git://github.com/prasad-joshi/logfs_upstream.git 2012-01-31 09:23:59 -08:00
Makefile [LogFS] add new flash file system 2009-11-20 20:13:39 +01:00
readwrite.c logfs: destroy the reserved inodes while unmounting 2012-04-02 09:20:33 +05:30
segment.c logfs: destroy the reserved inodes while unmounting 2012-04-02 09:20:33 +05:30
super.c logfs: missing cleanup on register_filesystem() failure 2012-03-20 21:29:48 -04:00