Comment 8 for bug 2041668

Revision history for this message
Matthew Ruffell (mruffell) wrote :

Hi Craig.

Excellent work tracking down the mailing list discussion. From what I can see is
that actual memory allocation and free still works as intended, it is just
accounting that becomes incorrect, making your system work correctly, just with
wrong numbers displayed in your metrics.

Regardless, this is currently queued up for 6.5.0-17-generic, and it contains
the commit:

commit 3cec50490969afd4a76ccee441f747d869ccff77
Author: Linus Torvalds <email address hidden>
Date: Sat Sep 16 12:31:42 2023 -0700
Subject: vm: fix move_vma() memory accounting being off
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3cec50490969afd4a76ccee441f747d869ccff77

In Mantic's kernel it is 1f48faf4d74ee05aafbf406d6274727afc62a61f.

$ git describe --contains 1f48faf4d74ee05aafbf406d6274727afc62a61f
Ubuntu-6.5.0-16.16~1071

6.5.0-17-generic is currently in -proposed. If you would like to test it you can follow the instructions below:

Instructions to install (On a Mantic system):
1) cat << EOF | sudo tee /etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list
# Enable Ubuntu proposed archive
deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed main universe
EOF
2) sudo apt update
3) sudo apt install linux-image-6.5.0-17-generic linux-modules-6.5.0-17-generic linux-modules-extra-6.5.0-17-generic linux-headers-6.5.0-17-generic
4) sudo reboot
5) uname -rv
6.5.0-17-generic #17-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 11 14:01:59 UTC 2024

You probably want to remove the -proposed repository afterward.
6) sudo rm ubuntu-$(lsb_release -cs)-proposed.list
7) sudo apt update

This should be released in the first week of February, somewhere around the 5th
give or take a couple days if any CVEs come up. https://kernel.ubuntu.com/

Thanks,
Matthew