※ リポジトリは、pm-diskd ブランチが https://github.com/linux-ha-japan/pm_diskd-1.0 へ、pm-diskd-2.0ブランチが https://github.com/linux-ha-japan/pm_diskd へ移行しました。
Pacemaker 対応ディスク故障監視機能。
Pacemaker-1.0公式リポジトリのクローンに対し、パッチ作成用のブランチを作成して管理する。
ブランチ名: pm-diskd
初回 hg clone 実行後は、hg update -r pm-diskd を実行すること。
Heartbeat-2.1.4 用 hb-diskd(*) のPacemaker対応版
(*) http://sourceforge.jp/projects/linux-ha/releases/?package_id=10555
Revision | 5675c90df72a53cac9f6e5f2a6dc5e39786f5210 (tree) |
---|---|
Time | 2010-05-10 21:16:05 |
Author | Andrew Beekhof <andrew@beek...> |
Commiter | Andrew Beekhof |
High: crmd: Bug lf#2414 - Prevent use-after-free of the PE connection after it dies
(transplanted from 46d99d4a6cccc1ae3516227f29b583ed743d674b)
@@ -50,6 +50,7 @@ | ||
50 | 50 | #include <crmd.h> |
51 | 51 | |
52 | 52 | |
53 | +static GCHSource *pe_source = NULL; | |
53 | 54 | struct crm_subsystem_s *pe_subsystem = NULL; |
54 | 55 | void do_pe_invoke_callback(xmlNode *msg, int call_id, int rc, |
55 | 56 | xmlNode *output, void *user_data); |
@@ -88,6 +89,7 @@ | ||
88 | 89 | static void |
89 | 90 | pe_connection_destroy(gpointer user_data) |
90 | 91 | { |
92 | + pe_source = NULL; | |
91 | 93 | clear_bit_inplace(fsa_input_register, pe_subsystem->flag_connected); |
92 | 94 | if(is_set(fsa_input_register, pe_subsystem->flag_required)) { |
93 | 95 | int rc = cib_ok; |
@@ -160,7 +162,6 @@ | ||
160 | 162 | enum crmd_fsa_input current_input, |
161 | 163 | fsa_data_t *msg_data) |
162 | 164 | { |
163 | - static GCHSource *pe_source = NULL; | |
164 | 165 | struct crm_subsystem_s *this_subsys = pe_subsystem; |
165 | 166 | |
166 | 167 | long long stop_actions = A_PE_STOP; |