[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1036755: linux: 6.1.26 <= x < 6.1.30 breaks applications using mmap(MAP_32BIT)



Source: linux
Version: 6.1.27-1
Severity: critical
Tags: upstream
Affects: ganeti
Justification: breaks unrelated software

Dear Kernel Maintainers,

A regression was introduced with upstream commit 58c5d0d6d5,  
subsequently backported to 6.1 as 7e6631f7 and released with 6.1.26.  
These commits break MAP_32BIT and affect applications relying on it. In 
particular, we are seeing failures in ganeti's autopkgtests[1], where a 
daemon written in Haskell (the GHC linker uses MAP_32BIT) segfaults with 
a null pointer dereference. From the build artifacts:

 ganeti-luxid: mmap 4096 bytes at (nil): Cannot allocate memory
 ganeti-luxid: Try specifying an address with +RTS -xm<addr> -RTS

This has already been discussed on GHC's discourse[2] and has been fixed 
upstream, with the fix queued for 6.1.30[3]. Please consider upgrading 
to 6.1.30 or cherry-picking the fix for Bookworm.

Thanks,
Apollon

[1] https://ci.debian.net/packages/g/ganeti/testing/amd64/, notably the 
    run at 2023-05-14 15:13:51 UTC, the first one running on 6.1.27.
[2] https://discourse.haskell.org/t/facing-mmap-4096-bytes-at-nil-cannot-allocate-memory-youre-not-alone/6259/9
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/diff/releases/6.1.30/maple_tree-make-maple-state-reusable-after-mas_empty_area.patch?id=5e2b871e17ca1d2f1f88c4dc6b6995b72e5fc8f2


Reply to: