https://sourceware.org/bugzilla/show_bug.cgi?id=32048

Claudio Luck <c.luck at datact dot ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |c.luck at datact dot ch

--- Comment #5 from Claudio Luck <c.luck at datact dot ch> ---
I'm interested in seeing this regression fixed. There are many NAS appliances
from QNAP, ZyXEL, Western Digital etc which support Docker to add
functionality; some of them are based on 32bit ARM CPUs like Annapurna Alpine.
These vendors have chosen to ship Linux built with 32k pagesize usermode for
performance reasons and ability to address >=16TB of storage. On all of them,
recent Docker Base images from Alpine Linux, Debian etc have stopped working
because their binaries aren't aligned to 32k anymore.

Note that on embedded platforms, the system images are usually compressed:
wasted space, as mentioned in the commit as sole reason for this change, is
purely virtual.

An easy reproducer was mentioned in the bug linked by OP. Adapted to Debian it
is as follows:

apt-get install qemu-system-arm binfmt-support qemu-user-static

# This legacy Debian image works (compiled before this change) for both 4k and
32k pagesize:
docker run -e "QEMU_CPU=cortex-a15" -e "QEMU_PAGESIZE=4096" --rm --platform
linux/arm/v7 \
  -it debian:bullseye /bin/sh -c "getconf PAGESIZE"
docker run -e "QEMU_CPU=cortex-a15" -e "QEMU_PAGESIZE=32768" --rm --platform
linux/arm/v7 \
  -it debian:bullseye /bin/sh -c "getconf PAGESIZE"

# While this current Debian image, compiled including this change...
# ... fails on 32k pages with '/bin/sh: error while loading shared libraries':
docker run -e "QEMU_CPU=cortex-a15" -e "QEMU_PAGESIZE=32768" --rm --platform
linux/arm/v7 \
  -it debian:bookworm /bin/sh -c "getconf PAGESIZE"
# ... but works with 4k pages:
docker run -e "QEMU_CPU=cortex-a15" -e "QEMU_PAGESIZE=4096" --rm --platform
linux/arm/v7 \
  -it debian:bookworm /bin/sh -c "getconf PAGESIZE"

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to