Bug 11911

Summary: systemd v240 memory leak in systemd-journald (buildroot 2019.02 LTS affected)
Product: buildroot Reporter: Jonah <jonah>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: buildroot, jonah
Priority: P5    
Version: 2019.02.2   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Jonah 2019-05-24 18:48:11 UTC
There has been a fix to a large memory leak in systemd-journald v240.  I believe that the buildroot LTS versions is affected.  Should the patch provided in the bug report be applied to the LTS branch?

Bug report: https://github.com/systemd/systemd/issues/11502
Accepted patch: https://github.com/systemd/systemd/pull/11527

Alternatively, this fix has been incorporated into systemd v241, which has been incorporated into buildroot's master branch already.  So another solution would be to move buildroot LTS to use systemd v241.
Comment 1 Peter Korsgaard 2019-05-27 13:17:52 UTC
Thanks for the report, can you please send a git formatted patch to the mailing list with the upstream fix?
Comment 2 Jonah 2019-05-27 22:23:42 UTC
The upstream patch didn't apply cleanly to v240.  I'm happy to look into it more, but it wasn't as trivial as "git cherry-pick" and I was not sure whether anyone has a preference for v241 verses an unofficial patch on v240.
Comment 3 Arnout Vandecappelle 2019-05-27 22:38:22 UTC
There are way too many changes between v240 and v241 to just bump the version in the stable branch. So please backport the patch, thanks.

Actually, I think it's sufficient to take commit 2d5d2e0cc5 in addition to eb1ec489ee.
Comment 4 Jonah 2019-05-28 17:32:21 UTC
Thanks, I submitted a patch to the list covering the addition of commit 2d5d2e0cc5 in addition to eb1ec489ee.
Comment 5 Peter Korsgaard 2019-05-30 12:58:33 UTC
Fixed in git by https://git.buildroot.org/buildroot/commit/?id=ae43e724e84dde358320775ba7423619b78d1839, thanks!