Ryusuke Konishi
468f3e11a8
nilfs2: fix crash after one superblock became unavailable
...
commit 0ca7a5b9ac5d301845dd6382ff25a699b6263a81 upstream.
Fixes the following kernel oops in nilfs_setup_super() which could
arise if one of two super-blocks is unavailable.
> BUG: unable to handle kernel NULL pointer dereference at (null)
> Pid: 3529, comm: mount.nilfs2 Not tainted 2.6.37 #1 /
> EIP: 0060:[<c03196bc>] EFLAGS: 00010202 CPU: 3
> EIP is at memcpy+0xc/0x1b
> Call Trace:
> [<f953720e>] ? nilfs_setup_super+0x6c/0xa5 [nilfs2]
> [<f95369e9>] ? nilfs_get_root_dentry+0x81/0xcb [nilfs2]
> [<f9537a08>] ? nilfs_mount+0x4f9/0x62c [nilfs2]
> [<c02745cf>] ? kstrdup+0x36/0x3f
> [<f953750f>] ? nilfs_mount+0x0/0x62c [nilfs2]
> [<c0293940>] ? vfs_kern_mount+0x4d/0x12c
> [<c02a5100>] ? get_fs_type+0x76/0x8f
> [<c0293a68>] ? do_kern_mount+0x33/0xbf
> [<c02a784a>] ? do_mount+0x2ed/0x714
> [<c02a6171>] ? copy_mount_options+0x28/0xfc
> [<c02a7ce3>] ? sys_mount+0x72/0xaf
> [<c0473085>] ? syscall_call+0x7/0xb
Reported-by: Wakko Warner <wakko@animx.eu.org>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tested-by: Wakko Warner <wakko@animx.eu.org>
LKML-Reference: <20110121024918.GA29598@animx.eu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-02-17 15:14:59 -08:00
..
2010-10-29 04:16:38 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:17:13 -04:00
2010-12-07 07:45:44 -08:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-12-20 09:09:57 -08:00
2010-10-15 15:53:27 +02:00
2010-12-17 09:54:40 -08:00
2011-02-17 15:14:44 -08:00
2010-10-29 04:16:31 -04:00
2010-10-29 04:16:28 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:28 -04:00
2010-10-29 04:16:28 -04:00
2010-10-22 17:33:16 -07:00
2010-11-17 08:59:32 -08:00
2010-10-29 04:16:13 -04:00
2011-02-17 15:14:36 -08:00
2010-10-25 21:26:13 -04:00
2010-10-29 04:16:13 -04:00
2010-11-17 08:59:32 -08:00
2011-02-17 15:14:21 -08:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-08-12 09:51:35 -07:00
2010-11-30 16:39:27 +01:00
2010-11-19 11:20:29 +00:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:31 -04:00
2010-10-31 20:40:24 -04:00
2010-10-29 04:16:31 -04:00
2010-11-12 07:55:32 -08:00
2010-10-29 04:16:13 -04:00
2010-10-27 20:13:18 -07:00
2010-11-17 21:46:26 -05:00
2010-10-30 08:31:35 -07:00
2010-10-29 04:16:13 -04:00
2010-11-17 08:59:32 -08:00
2010-12-22 19:43:33 -08:00
2010-10-29 04:16:13 -04:00
2010-11-17 08:59:32 -08:00
2011-02-17 15:14:14 -08:00
2011-02-17 15:14:14 -08:00
2011-02-17 15:14:59 -08:00
2010-12-15 13:58:18 -05:00
2010-10-29 04:16:13 -04:00
2010-12-23 16:36:48 -08:00
2010-10-29 04:16:13 -04:00
2010-11-08 14:29:39 -08:00
2011-02-17 15:14:17 -08:00
2011-02-17 15:14:16 -08:00
2010-10-29 04:16:13 -04:00
2010-10-28 01:30:06 +02:00
2010-10-29 04:16:31 -04:00
2010-12-02 14:51:15 -08:00
2010-10-29 04:16:26 -04:00
2010-10-29 08:48:58 -07:00
2010-10-29 04:17:08 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:36 -04:00
2010-10-29 04:16:13 -04:00
2010-10-29 04:16:13 -04:00
2010-12-09 17:07:02 -06:00
2010-10-25 21:26:11 -04:00
2010-10-29 04:16:33 -04:00
2010-08-09 16:47:39 -04:00
2010-08-14 00:24:24 +02:00
2010-10-14 10:57:40 -07:00
2010-10-08 10:02:53 +01:00
2010-10-29 04:16:28 -04:00
2010-08-17 18:07:43 -07:00
2010-08-23 13:36:59 +02:00
2010-11-10 14:40:43 +01:00
2010-11-17 08:59:32 -08:00
2010-10-26 17:58:44 -07:00
2010-10-22 10:52:56 -07:00
2010-11-17 08:59:32 -08:00
2010-11-30 17:56:38 -08:00
2010-10-25 21:26:13 -04:00
2011-02-17 15:14:51 -08:00
2010-08-09 16:47:44 -04:00
2010-10-15 15:53:27 +02:00
2011-02-17 15:14:39 -08:00
2010-12-15 12:30:36 -08:00
2010-10-27 18:17:02 -07:00
2010-10-15 15:53:27 +02:00
2010-10-26 16:52:15 -07:00
2010-08-11 08:59:02 -07:00
2010-08-18 08:35:46 -04:00
2011-02-17 15:14:19 -08:00
2010-08-18 01:04:22 -04:00
2010-10-26 17:58:44 -07:00
2010-10-29 05:49:13 -04:00
2010-11-19 19:46:45 -08:00
2010-11-15 10:23:31 +01:00
2010-10-28 09:44:56 -07:00
2010-10-27 18:03:12 -07:00
2010-10-29 04:16:33 -04:00
2010-11-17 08:59:32 -08:00
2010-10-28 09:44:56 -07:00
2010-08-18 06:24:41 -04:00
2010-12-07 16:14:21 -05:00
2010-11-17 08:59:32 -08:00
2010-10-15 15:53:27 +02:00
2010-10-29 04:14:56 -04:00
2010-11-28 16:27:19 -08:00
2010-08-18 08:35:48 -04:00
2010-11-17 08:59:32 -08:00
2010-08-09 20:45:05 -07:00
2010-10-27 18:03:18 -07:00
2010-10-25 21:26:12 -04:00
2010-10-26 10:13:10 -07:00
2010-11-28 14:09:57 -08:00
2010-08-13 16:53:13 -07:00
2010-08-09 16:48:44 -04:00
2010-10-29 04:17:03 -04:00
2010-08-09 16:47:43 -04:00
2010-10-15 15:53:27 +02:00
2010-08-13 16:53:13 -07:00