Article View: linux.debian.devel.release
Article #970Bug#1147124: marked as done (trixie-pu: package mdadm/4.4-11+deb13u1)
From: Debian Bug Tracking System
Date: Sat, 21 Nov 2026 09:40
Date: Sat, 21 Nov 2026 09:40
271 lines
13109 bytes
13109 bytes
This is a multi-part message in MIME format...
------------=_1795253358-3308615-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your message dated Sat, 21 Nov 2026 09:28:03 +0000
with message-id <E1xUhO7-00000008t0g-1H1F@coccia.debian.org>
and subject line Released in 13.8
has caused the Debian Bug report #1147124,
regarding trixie-pu: package mdadm/4.4-11+deb13u1
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--=20
1147124: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1147124
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
------------=_1795253358-3308615-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by bugs.debian.org; 7 Sep 2026 21:37:22 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-128.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
BODY_INCLUDES_CONTROL_AFFECTS,BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
FROMDEVELOPER,HAS_PACKAGE,SPF_HELO_NONE,SPF_PASS,
USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 12; hammy, 150; neutral, 242; spammy,
0. spammytokens:
hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <sthibault@debian.org>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:41176)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <sthibault@debian.org>)
id 1x3h1m-007SFQ-0S
for submit@bugs.debian.org;
Mon, 07 Sep 2026 21:37:22 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
s=smtpauto.stravinsky; h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
Content-Description:In-Reply-To:References;
bh=1t6U4/fBIU2yUd2jGrNcRtb0uWeEP+WRGjoZ8IVpmq8=; b=USNbb+9OU0ZmB9h8DuylNuSOgB
2x0QiS+XXGeudBhB4LeJvg2RpsaW7mAoJObu4b8nXQ5QNQ2yZMu1J25JKXBZi4EbqrnNJtgyNwPsO
BjKclGtrL6YLYJCylvXNXqpCPYCtBYet2ztINoxPVuFtLKt+QObZNj84pb1X7sjts6hlfHHTxb9sy
im5CNI10tAJVTXDjZZPK/YREhQd3naJcrDJQFc3KA1QHL5YhHqSSVPgWFqu6AQStz6fVFQkJw+Atj
oczkwcjzgyiCdm+WRQlxDqp2PU1yknAe9ZUbXLz6h4RpWh8F2NDHIl2O169A1T+q0LmGBH5DWR0M9
QLyysJdg==;
Received: from authenticated-user
by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <sthibault@debian.org>)
id 1x3h1k-001nfk-1o
for submit@bugs.debian.org;
Mon, 07 Sep 2026 21:37:20 +0000
Received: from samy by end with local (Exim 4.100)
(envelope-from <sthibault@debian.org>)
id 1x3h1j-0000000EAwP-215n
for submit@bugs.debian.org;
Mon, 07 Sep 2026 23:37:19 +0200
Date: Mon, 7 Sep 2026 23:37:19 +0200
From: Samuel Thibault <sthibault@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: trixie-pu: package mdadm/4.4-11+deb13u1
Message-ID: <ap8uj1vRufy1v2T5@end>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="deXA15AQ5a0tOWKW"
Content-Disposition: inline
X-Reportbug-Version: 13.2.0+nmu1
Organization: I am not organized
X-Debian-User: sthibault
Delivered-To: submit@bugs.debian.org
--deXA15AQ5a0tOWKW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: mdadm@packages.debian.org
Control: affects -1 + src:mdadm
User: release.debian.org@packages.debian.org
Usertags: pu
Hello,
I have uploaded mdadm 4.4-11+deb13u1 for proposal to trixie
[ Reason ]
As reported on #1115497, there is a memory leak in the mdmonitor daemon.
After a few weeks of operation, this can eat a few gigabytes. This is a
regression over oldstable.
[ Impact ]
Administrators of servers using mdmonitor have to restart the service
from times to times to drop the memory consumption.
[ Tests ]
This is commited upstream, and confirmed on the three servers where I
noticed the issue.
[ Risks ]
The code is a mere added unref, and commited upstream.
[ Checklist ]
[X] *all* changes are documented in the d/changelog
[X] I reviewed all changes and I approve them
[X] attach debdiff against the package in (old)stable
[X] the issue is verified as fixed in unstable
[ Changes ]
This adds an unref call corresponding to the udev_monitor_receive_device
call whose returned pointer is not stored.
Samuel
--deXA15AQ5a0tOWKW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch
diff -Nru mdadm-4.4/debian/changelog mdadm-4.4/debian/changelog
--- mdadm-4.4/debian/changelog 2025-04-25 18:24:19.000000000 +0200
+++ mdadm-4.4/debian/changelog 2026-08-23 21:40:00.000000000 +0200
@@ -1,3 +1,11 @@
+mdadm (4.4-11+deb13u1) trixie; urgency=medium
+
+ * Non-Maintainer Upload.
+ * Adding patch from Peter Mann <peter.mann@sh.cz> to fix memory leak in
+ mdadm --monitor --scan (Closes: #1115497).
+
+ -- Samuel Thibault <sthibault@debian.org> Sun, 23 Aug 2026 21:40:00 +0200
+
mdadm (4.4-11) sid; urgency=medium
[ Daniel Baumann ]
diff -Nru mdadm-4.4/debian/patches/debian/0015-monitor-memory-leak.patch mdadm-4.4/debian/patches/debian/0015-monitor-memory-leak.patch
--- mdadm-4.4/debian/patches/debian/0015-monitor-memory-leak.patch 1970-01-01 01:00:00.000000000 +0100
+++ mdadm-4.4/debian/patches/debian/0015-monitor-memory-leak.patch 2026-08-23 21:40:00.000000000 +0200
@@ -0,0 +1,39 @@
+Author: Peter Mann <peter.mann@sh.cz>
+Description: Memory leak in mdadm --monitor --scan (Closes: #1115497).
+ At mdadm/udev.c:153:
+ ...
+ if (udev_monitor_receive_device(udev_monitor))
+ return UDEV_STATUS_SUCCESS; /* event detected */
+ ...
+ .
+ According to libudev docs:
+ On success, udev_monitor_receive_device() returns a pointer to a newly referenced device that was received via the monitor. The caller is responsible to drop this reference when done.
+ .
+ As you can see, the reference to the device never gets dropped.
+ We put together a quick patch, which seems to have fixed the issue or at least substantially reduced the amount of leaks.
+ .
+ Since we have no experience with the codebase, we have no idea about the implications of these changes.
+ We would appreciate if someone took a closer look.
+ .
+ Additionaly as a workaround, passing MDADM_NO_UDEV=1 env to mdadm stops the leaks as well, since it bypasses the leaking codepath.
+Forwarded: https://github.com/md-raid-utilities/mdadm/pull/197
+
+diff -Naurp mdadm.orig/udev.c mdadm/udev.c
+--- mdadm.orig/udev.c
++++ mdadm/udev.c
+@@ -149,9 +149,13 @@ enum udev_status udev_wait_for_events(in
+ tv.tv_sec = seconds;
+ tv.tv_usec = 0;
+
+- if (select(fd + 1, &readfds, NULL, NULL, &tv) > 0 && FD_ISSET(fd, &readfds))
+- if (udev_monitor_receive_device(udev_monitor))
++ if (select(fd + 1, &readfds, NULL, NULL, &tv) > 0 && FD_ISSET(fd, &readfds)) {
++ struct udev_device *dev = udev_monitor_receive_device(udev_monitor);
++ if (dev) {
++ udev_device_unref(dev);
+ return UDEV_STATUS_SUCCESS; /* event detected */
++ }
++ }
+ return UDEV_STATUS_TIMEOUT;
+ }
+ #endif
diff -Nru mdadm-4.4/debian/patches/series mdadm-4.4/debian/patches/series
--- mdadm-4.4/debian/patches/series 2025-03-09 18:03:14.000000000 +0100
+++ mdadm-4.4/debian/patches/series 2026-08-23 21:40:00.000000000 +0200
@@ -10,4 +10,5 @@
debian/0011-systemd-directory.patch
debian/0012-bin-directory.patch
debian/0013-xmalloc-ftbfs.patch
+debian/0015-monitor-memory-leak.patch
upstream/0001-manpage-remove-bitmap.patch
--deXA15AQ5a0tOWKW--
------------=_1795253358-3308615-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 1147124-done) by bugs.debian.org; 21 Nov 2026 09:28:04 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
(2024-03-25) on buxtehude.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-106.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
USER_IN_DKIM_WELCOMELIST,VERSION autolearn=ham autolearn_force=no
version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 6; hammy, 66; neutral, 16; spammy, 0.
spammytokens: hammytokens:0.000-+--H*r:sk:coccia., 0.000-+--H*m:coccia,
0.000-+--H*MI:coccia, 0.000-+--H*r:submission, 0.000-+--H*F:U*jmw
Return-path: <jmw@coccia.debian.org>
Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:38746)
by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <jmw@coccia.debian.org>)
id 1xUhO8-00Drgd-2B
for 1147124-done@bugs.debian.org;
Sat, 21 Nov 2026 09:28:03 +0000
Received: via submission
from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=coccia.debian.org,EMAIL=hostmaster@coccia.debian.org (verified)
by muffat.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
(Exim 4.96)
(envelope-from <jmw@coccia.debian.org>)
id 1xUhO8-004ohX-2J
for 1147124-done@bugs.debian.org;
Sat, 21 Nov 2026 09:28:03 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=coccia.debian.org; s=smtpauto.coccia; h=Date:From:Message-Id:
Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To:Reply-To:Cc:
Content-ID:Content-Description:In-Reply-To:References;
bh=j3C+QfqZhEAyGCz+F5Nny7uVPSJTnuL2JF6zBnHyDlM=; b=EylJNvKBp6Q/Trp2syNfTyV4Ak
PhB0wpMQstxWJW2JFS9yc3oJWYRTTZi3oEiTwZcLshQo8UuxiiV0LAwd1S74TBX8OxNX+Nvm7oRw/
pr+QTG55WovTu+/L/Ipx/EOnNt9yZJVF+jfFBXkP+9rydXiEhiXNtdlcsH4SKlo8bYjy1QrlGrEni
TZNwHKMBUzGNMDaoDd8WKEAXlllVC0JW3f8/1UUdnjKtvpjzLGUaV1PYmSeRHYsBsSuiF5oqm3BbN
TcFPmtWDS/yz5XCCzTCb2ORqlrE0yk9GcIn2HmQS+JP5++gqM/hDTJv+YWV508rmO4Dh6nhfHVGxW
aheZg/Jg==;
Received: from jmw by coccia.debian.org with local (Exim 4.98.2)
(envelope-from <jmw@coccia.debian.org>)
id 1xUhO7-00000008t0g-1H1F
for 1147124-done@bugs.debian.org;
Sat, 21 Nov 2026 09:28:03 +0000
To: 1147124-done@bugs.debian.org
Subject: Released in 13.8
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Message-Id: <E1xUhO7-00000008t0g-1H1F@coccia.debian.org>
From: Jonathan Wiltshire <jmw@coccia.debian.org>
Date: Sat, 21 Nov 2026 09:28:03 +0000
X-CrossAssassin-Score: 7
Version: 13.8
This update was released as part of 13.8.
------------=_1795253358-3308615-0--
Technical Details
Message-ID:
<O1PJD-dfjm-25@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<O1PJD-dfjm-27@gated-at.bofh.it> <NAPeh-fPMX-5@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: "Debian Bug Tracking System" <owner@bugs.debian.org> Newsgroups: linux.debian.devel.release Subject: Bug#1147124: marked as done (trixie-pu: package mdadm/4.4-11+deb13u1) Date: Sat, 21 Nov 2026 10:40:01 +0100 Message-ID: <O1PJD-dfjm-25@gated-at.bofh.it> References: <O1PJD-dfjm-27@gated-at.bofh.it> <NAPeh-fPMX-5@gated-at.bofh.it> X-Mailbox-Line: From debian-release-request@lists.debian.org Sat Nov 21 09:37:59 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Amavis-Spam-Status: No, score=-2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no MIME-Version: 1.0 X-Mailer: MIME-tools 5.510 (Entity 5.510) X-Debian-Pr-Message: closed 1147124 X-Debian-Pr-Package: release.debian.org X-Debian-Pr-Keywords: trixie Reply-To: 1147124@bugs.debian.org Content-Type: multipart/mixed; boundary="----------=_1795253358-3308615-0" X-Mailing-List: <debian-release@lists.debian.org> archive/latest/189317 List-ID: <debian-release.lists.debian.org> List-URL: <https://lists.debian.org/debian-release/> List-Archive: https://lists.debian.org/msgid-search/handler.1147124.D1147124.17952532843304933.ackdone@bugs.debian.org Approved: robomod@news.nic.it Lines: 271 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 21 Nov 2026 09:29:18 +0000 X-Original-Message-ID: <handler.1147124.D1147124.17952532843304933.ackdone@bugs.debian.org> X-Original-References: <E1xUhO7-00000008t0g-1H1F@coccia.debian.org> <ap8uj1vRufy1v2T5@end>