dann frazier
226291aa46
ocfs2_connection_find() returns pointer to bad structure
...
If ocfs2_live_connection_list is empty, ocfs2_connection_find() will return
a pointer to the LIST_HEAD, cast as a ocfs2_live_connection. This can cause
an oops when ocfs2_control_send_down() dereferences c->oc_conn:
Call Trace:
[<ffffffffa00c2a3c>] ocfs2_control_message+0x28c/0x2b0 [ocfs2_stack_user]
[<ffffffffa00c2a95>] ocfs2_control_write+0x35/0xb0 [ocfs2_stack_user]
[<ffffffff81143a88>] vfs_write+0xb8/0x1a0
[<ffffffff8155cc13>] ? do_page_fault+0x153/0x3b0
[<ffffffff811442f1>] sys_write+0x51/0x80
[<ffffffff810121b2>] system_call_fastpath+0x16/0x1b
Fix by explicitly returning NULL if no match is found.
Signed-off-by: dann frazier <dann.frazier@canonical.com >
Signed-off-by: Joel Becker <joel.becker@oracle.com >
2010-11-18 15:41:41 -08:00
..
2010-11-18 14:10:56 -08:00
2010-11-18 14:10:55 -08:00
2010-10-29 04:16:31 -04:00
2010-09-23 14:16:21 -07:00
2009-10-28 23:05:57 -07:00
2010-09-08 14:25:57 +08:00
2010-05-18 16:40:42 -07:00
2010-10-25 21:18:20 -04:00
2010-10-25 21:18:20 -04:00
2010-09-08 14:25:53 +08:00
2009-06-03 19:15:36 -07:00
2010-04-30 13:37:29 -07:00
2009-09-04 16:07:48 -07:00
2010-11-18 14:10:56 -08:00
2010-09-10 09:18:15 -07:00
2010-09-10 09:19:11 -07:00
2009-04-03 11:39:16 -07:00
2010-09-10 09:18:15 -07:00
2010-09-10 09:19:06 -07:00
2010-01-25 19:20:51 -08:00
2007-10-22 08:13:21 -07:00
2010-03-30 22:02:32 +09:00
2009-09-22 20:09:39 -07:00
2010-10-25 21:18:20 -04:00
2010-07-08 13:25:35 -07:00
2010-03-30 22:02:32 +09:00
2008-04-18 08:56:04 -07:00
2010-09-10 09:18:15 -07:00
2010-09-10 09:18:15 -07:00
2010-09-10 08:35:41 -07:00
2010-03-02 14:10:20 -08:00
2010-09-10 08:40:18 -07:00
2010-09-10 08:39:27 -07:00
2009-10-28 23:05:57 -07:00
2010-06-15 16:50:43 -07:00
2010-05-05 18:18:07 -07:00
2010-03-17 12:07:16 -07:00
2008-10-13 13:57:57 -07:00
2010-05-05 18:17:30 -07:00
2010-09-10 08:41:04 -07:00
2006-01-03 11:45:47 -08:00
2010-10-25 21:26:11 -04:00
2009-09-22 20:09:48 -07:00
2008-02-03 17:33:42 +02:00
2010-10-15 13:03:09 -07:00
2010-10-15 13:03:09 -07:00
2009-09-22 20:09:28 -07:00
2010-02-26 15:41:18 -08:00
2010-11-18 14:10:56 -08:00
2010-07-08 13:25:35 -07:00
2010-07-08 13:25:35 -07:00
2010-05-21 19:30:48 +02:00
2010-10-15 13:03:09 -07:00
2010-09-10 08:41:04 -07:00
2010-09-23 14:16:47 -07:00
2010-05-05 18:18:09 -07:00
2010-05-05 18:17:29 -07:00
2008-01-25 15:04:24 -08:00
2010-10-11 13:45:52 -07:00
2008-04-18 08:56:03 -07:00
2010-10-06 17:55:29 -07:00
2010-11-18 15:41:41 -08:00
2010-02-26 15:41:18 -08:00
2010-02-26 15:41:18 -08:00
2010-10-15 13:03:09 -07:00
2010-09-08 14:25:59 +08:00
2010-11-17 08:59:32 -08:00
2010-05-10 11:50:10 -07:00
2010-09-29 17:33:05 -07:00
2007-02-12 09:48:46 -08:00
2010-09-10 08:56:24 -07:00
2006-01-03 11:45:47 -08:00
2010-01-25 19:20:51 -08:00
2009-09-04 16:07:50 -07:00
2008-01-25 15:05:46 -08:00
2006-01-03 11:45:47 -08:00
2010-10-15 13:03:43 -07:00
2010-05-21 18:31:20 -04:00