<div dir="ltr">Hi Mauricio<div><br></div><div>I have just played for a few hours with the linux-image-6.2.0-32-generic package for jammy, and I think it works well:</div><div>I was able to compile several different AOSP versions that were all problematic with the 6.2.0-26 provided with 22.04.3, si I would say the -32 clearly fixes my issue :)</div><div><br></div><div>So, I guess I should just wait for -32 to come into the jammy-updates...</div><div>Thanks for the prompt answer and support!<br></div><div><br></div><div>Kind Regards,</div><div>Mathieu</div><div><br></div><div>PS: One thing that might be worth noticing so, is that when I installed the <span style="color:rgb(80,0,80)">linux-image-6.2.0-32-generic, the headers and modules-extra packages were not automatically installed, and I needed to instal them manually for my nvidia driver module to get re-compiled.</span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 22, 2023 at 9:35 PM Mauricio Faria de Oliveira <<a href="mailto:mfo@canonical.com">mfo@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Aug 22, 2023 at 4:30 PM Mauricio Faria de Oliveira<br>
<<a href="mailto:mfo@canonical.com" target="_blank">mfo@canonical.com</a>> wrote:<br>
><br>
> Hi Mathieu,<br>
><br>
> On Tue, Aug 22, 2023 at 11:20 AM Mathieu Fluhr <<a href="mailto:mathieu.fluhr@gmail.com" target="_blank">mathieu.fluhr@gmail.com</a>> wrote:<br>
> ><br>
> > Hello,<br>
> ><br>
> > First of all, I apologize if this is not the right place to report a bug, but for some obscure reason, I cannot login to launchpad with my Ubuntu One account (I always end up on the "Ooops" page...).<br>
><br>
> No worries, thanks for reporting an issue in some way.<br>
> (For the login issue, see <a href="http://login.ubuntu.com" rel="noreferrer" target="_blank">login.ubuntu.com</a> > Support > Other > "When I<br>
> try to log in, I get an "OOPS" message. What should I do?")<br>
><br>
> If this helps, please know that in the future, you can reach out to<br>
> our kernel team specifically, <a href="mailto:kernel-team@lists.ubuntu.com" target="_blank">kernel-team@lists.ubuntu.com</a> [2].<br>
><br>
> ><br>
> > I am compiling (daily) the Android OS (AOSP) which makes a heavy use of hardware resources and several parts of it relies on the mmap() system call. Updating to 22.04.3 last Thursday started to trigger several (non-consistent) build errors, all related to mmap(), claiming that it can't allocate memory.... which is not consistent with the fact that my workstation still had 50GB+ free RAM at that time.<br>
> ><br>
> > Digging a bit into the issue, I found out that it was a known issue, and that the fix has been merged in the 6.1 LTS kernel [1] but unfortunately not in 6.2, since the patch appeared after the last 6.2.16 release.<br>
> ><br>
> > I applied it locally and rebuilt a new kernel, and I can confirm this fixes the issue.<br>
> > Could it be possible to think about applying it to the official 6.2 ubuntu package so that I don't have to always "downgrade" to the old 5.19 coming from 22.04.2 ?<br>
> ><br>
> > Kind Regards,<br>
> > Mathieu<br>
> ><br>
> > [1] <a href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/lib/maple_tree.c?h=v6.1.45&id=254ee530286aeb6d6de93d05b2247153df590af1" rel="noreferrer" target="_blank">https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/lib/maple_tree.c?h=v6.1.45&id=254ee530286aeb6d6de93d05b2247153df590af1</a><br>
><br>
> Looking at the patch [1] ...<br>
> """<br>
> maple_tree: make maple state reusable after mas_empty_area()<br>
> commit 0257d9908d38c0b1669af4bb1bc4dbca1f273fe6 upstream.<br>
> """<br>
> ... and the lunar/6.2-based kernel package git repo, it should be<br>
> available in lunar-proposed.<br>
<br>
Sorry, you're on jammy (22.04.x) with the 6.2 HWE kernel from lunar,<br>
not on lunar.<br>
It's also available in jammy-proposed; see below.<br>
<br>
><br>
> Could you please test it?<br>
><br>
> $ git remote get-url origin<br>
> git://<a href="http://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/lunar" rel="noreferrer" target="_blank">git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/lunar</a><br>
><br>
> $ git log --oneline origin/master-next -- lib/maple_tree.c | head -n1<br>
> a08052779ad6 maple_tree: make maple state reusable after mas_empty_area()<br>
><br>
> $ git show a08052779ad6 | grep 'commit .* upstream'<br>
> commit 0257d9908d38c0b1669af4bb1bc4dbca1f273fe6 upstream.<br>
><br>
> $ git describe --contains a08052779ad6<br>
> Ubuntu-6.2.0-30.30~288<br>
><br>
> $ rmadison -a source linux | grep lunar<br>
> linux | 6.2.0-20.20 | lunar | source<br>
> linux | 6.2.0-27.28 | lunar-security | source<br>
> linux | 6.2.0-27.28 | lunar-updates | source<br>
> linux | 6.2.0-32.32 | lunar-proposed | source<br>
><br>
> $ sudo add-apt-repository -yp proposed<br>
><br>
> ubuntu@lunar:~$ apt policy linux-image-6.2.0-32-generic<br>
> ...<br>
> 100 <a href="http://archive.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://archive.ubuntu.com/ubuntu</a> lunar-proposed/main amd64 Packages<br>
> 100 <a href="http://security.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://security.ubuntu.com/ubuntu</a> lunar-proposed/main amd64 Packages<br>
><br>
> $ sudo apt install linux-image-6.2.0-32-generic<br>
> $ ... reboot<br>
><br>
<br>
$ rmadison -a source linux-hwe-6.2<br>
linux-hwe-6.2 | 6.2.0-26.26~22.04.1 | jammy-security | source<br>
linux-hwe-6.2 | 6.2.0-26.26~22.04.1 | jammy-updates | source<br>
linux-hwe-6.2 | 6.2.0-32.32~22.04.1 | jammy-proposed | source<br>
<br>
$ rmadison -a amd64 linux-image-6.2.0-32-generic<br>
linux-image-6.2.0-32-generic | 6.2.0-32.32~22.04.1 | jammy-proposed | amd64<br>
linux-image-6.2.0-32-generic | 6.2.0-32.32 | lunar-proposed | amd64<br>
<br>
So, the steps above should work on jammy too.<br>
<br>
> cheers,<br>
><br>
> [2] <a href="https://lists.ubuntu.com/mailman/listinfo/kernel-team" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/kernel-team</a><br>
><br>
> > --<br>
> > Ubuntu-devel-discuss mailing list<br>
> > <a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com" target="_blank">Ubuntu-devel-discuss@lists.ubuntu.com</a><br>
> > Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br>
><br>
><br>
> --<br>
> Mauricio Faria de Oliveira<br>
<br>
<br>
<br>
-- <br>
Mauricio Faria de Oliveira<br>
</blockquote></div>