Merge ~michal-maloszewski99/ubuntu/+source/pacemaker:pacemaker-jammy-lp2012740-pacemaker-controld-crash into ubuntu/+source/pacemaker:ubuntu/jammy-devel

Proposed by Michał Małoszewski
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: ac538f035a6602591aef9318ae1789d63c543783
Proposed branch: ~michal-maloszewski99/ubuntu/+source/pacemaker:pacemaker-jammy-lp2012740-pacemaker-controld-crash
Merge into: ubuntu/+source/pacemaker:ubuntu/jammy-devel
Diff against target: 68 lines (+46/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/jammy-avoid-double-free-during-notify-operation.patch (+37/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Christian Ehrhardt  (community) Approve
Canonical Server Reporter Pending
Review via email: mp+440191@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Michał Małoszewski (michal-maloszewski99) wrote :

Results: (from http://autopkgtest.ubuntu.com/results/autopkgtest-jammy-michal-maloszewski99-pacemaker-ppa-jammy-lp2012740/?format=plain)
  pacemaker @ amd64:
    http://autopkgtest.ubuntu.com/results/autopkgtest-jammy-michal-maloszewski99-pacemaker-ppa-jammy-lp2012740/jammy/amd64/p/pacemaker/20230403_143002_06adf@/log.gz
    03.04.23 14:30:02 ✅ Triggers: pacemaker/2.1.2-1ubuntu4~ppa1
  pacemaker @ arm64:
    http://autopkgtest.ubuntu.com/results/autopkgtest-jammy-michal-maloszewski99-pacemaker-ppa-jammy-lp2012740/jammy/arm64/p/pacemaker/20230403_142842_df7de@/log.gz
    03.04.23 14:28:42 ✅ Triggers: pacemaker/2.1.2-1ubuntu4~ppa1
  pacemaker @ armhf:
    http://autopkgtest.ubuntu.com/results/autopkgtest-jammy-michal-maloszewski99-pacemaker-ppa-jammy-lp2012740/jammy/armhf/p/pacemaker/20230403_142341_a9c72@/log.gz
    03.04.23 14:23:41 ⚪ Triggers: pacemaker/2.1.2-1ubuntu4~ppa1
      No valid results
  pacemaker @ ppc64el:
    http://autopkgtest.ubuntu.com/results/autopkgtest-jammy-michal-maloszewski99-pacemaker-ppa-jammy-lp2012740/jammy/ppc64el/p/pacemaker/20230403_142534_9e548@/log.gz
    03.04.23 14:25:34 ✅ Triggers: pacemaker/2.1.2-1ubuntu4~ppa1
  pacemaker @ s390x:
    http://autopkgtest.ubuntu.com/results/autopkgtest-jammy-michal-maloszewski99-pacemaker-ppa-jammy-lp2012740/jammy/s390x/p/pacemaker/20230403_142240_06adf@/log.gz
    03.04.23 14:22:40 ✅ Triggers: pacemaker/2.1.2-1ubuntu4~ppa1
Running: (none)
Waiting: (none)

Revision history for this message
Michał Małoszewski (michal-maloszewski99) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

There are build warnings in a similar named area:
/<<PKGBUILDDIR>>/lib/lrmd/lrmd_client.c:239: warning: argument 'Executor' of command @param is not found in the argument list of lrmd_free_event(lrmd_event_data_t *event)
/<<PKGBUILDDIR>>/lib/lrmd/lrmd_client.c:242: warning: The following parameter of lrmd_free_event(lrmd_event_data_t *event) is not documented:

But on check they have nothing to do with it, fine in that regard.

---

The dep-3 header says backport, should say upstream as there are no changes.

---

The SRU template section about "where error occur" is again a rather generic blurb.
Point to where issues would occur, in this case we only change the lmrd, so tell people that issues - if any - should be in the behavior of local resource management daemon.
And further, maybe mention that it is about even dispatching and memory allocation.

---

Version number for SRU - really?

review: Needs Fixing
Revision history for this message
Michał Małoszewski (michal-maloszewski99) wrote :

Fixed, please re-review.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Done, small things fixed now (in SRU text) good to go

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: paelzer, michal-maloszewski99
Uploaders: paelzer
MP auto-approved

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Uploading pacemaker_2.1.2-1ubuntu3.1.dsc
Uploading pacemaker_2.1.2-1ubuntu3.1.debian.tar.xz
Uploading pacemaker_2.1.2-1ubuntu3.1_source.buildinfo
Uploading pacemaker_2.1.2-1ubuntu3.1_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index cf9ca1e..1066d51 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+pacemaker (2.1.2-1ubuntu3.1) jammy; urgency=medium
7+
8+ * d/p/jammy-avoid-double-free-during-notify-operation.patch:
9+ Fix a regression introduced by 31c7fa8, causing a double-free in
10+ notify operations (LP: #2012740)
11+
12+ -- Michal Maloszewski <michal.maloszewski@canonical.com> Fri, 31 Mar 2023 20:55:24 +0200
13+
14 pacemaker (2.1.2-1ubuntu3) jammy; urgency=medium
15
16 * d/control: make pacemaker-cli-utils depend on resource-agents-base.
17diff --git a/debian/patches/jammy-avoid-double-free-during-notify-operation.patch b/debian/patches/jammy-avoid-double-free-during-notify-operation.patch
18new file mode 100644
19index 0000000..c05c2fe
20--- /dev/null
21+++ b/debian/patches/jammy-avoid-double-free-during-notify-operation.patch
22@@ -0,0 +1,37 @@
23+From ed8b2c86ab77aaa3d7fd688c049ad5e1b922a9c6 Mon Sep 17 00:00:00 2001
24+From: Reid Wahl <nrwahl@protonmail.com>
25+Date: Thu, 13 Jan 2022 02:56:55 -0800
26+Subject: [PATCH] Fix: liblrmd: Avoid double-free during notify operation
27+Description: Avoid double-free during notify operation
28+Origin: upstream, https://github.com/ClusterLabs/pacemaker/commit/ed8b2c86ab77aaa3d7fd688c049ad5e1b922a9c6
29+Bug: https://bugzilla.redhat.com/show_bug.cgi?id=2039675
30+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pacemaker/+bug/2012740
31+Last-Update: 2023-03-31
32+---
33+ lib/lrmd/lrmd_client.c | 8 +++++---
34+ 1 file changed, 5 insertions(+), 3 deletions(-)
35+
36+--- a/lib/lrmd/lrmd_client.c
37++++ b/lib/lrmd/lrmd_client.c
38+@@ -306,9 +306,10 @@
39+ event.user_data = crm_element_value(msg, F_LRMD_RSC_USERDATA_STR);
40+ event.type = lrmd_event_exec_complete;
41+
42+- // No need to duplicate the memory, so don't use setter functions
43+- event.output = crm_element_value(msg, F_LRMD_RSC_OUTPUT);
44+- event.exit_reason = crm_element_value(msg, F_LRMD_RSC_EXIT_REASON);
45++ /* output and exit_reason may be freed by a callback */
46++ event.output = crm_element_value_copy(msg, F_LRMD_RSC_OUTPUT);
47++ lrmd__set_result(&event, event.rc, event.op_status,
48++ crm_element_value(msg, F_LRMD_RSC_EXIT_REASON));
49+
50+ event.params = xml2list(msg);
51+ } else if (pcmk__str_eq(type, LRMD_OP_NEW_CLIENT, pcmk__str_none)) {
52+@@ -325,6 +326,7 @@
53+ if (event.params) {
54+ g_hash_table_destroy(event.params);
55+ }
56++ lrmd__reset_result(&event);
57+ }
58+
59+ // \return Always 0, to indicate that IPC mainloop source should be kept
60diff --git a/debian/patches/series b/debian/patches/series
61index 5e13446..d15b73d 100644
62--- a/debian/patches/series
63+++ b/debian/patches/series
64@@ -5,3 +5,4 @@ alerts-make-the-scripts-executable.patch
65 Shipping-the-CTS-is-not-useful.patch
66 libpacemaker-calls-into-libstonithd-directly.patch
67 Always-run-Inkscape-under-the-C.UTF-8-locale.patch
68+jammy-avoid-double-free-during-notify-operation.patch

Subscribers

People subscribed via source and target branches