cannot apply additional memory protection after relocation #273

Open
opened 2025-12-29 00:22:20 +01:00 by adam · 1 comment
Owner

Originally created by @ghost on GitHub (Nov 10, 2021).

(that long script) Output

[sudo] password for me: 
1
NAME="Fedora Linux"
VERSION_CODENAME=""
PRETTY_NAME="Fedora Linux 35 (Workstation Edition)"
CPE_NAME="cpe:/o:fedoraproject:fedora:35"
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       432G  291G  119G  71% /home
QEMU emulator version 6.1.0 (qemu-6.1.0-9.fc35)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 7.6.0
               total        used        free      shared  buff/cache   available
Mem:            15Gi       3.9Gi       2.3Gi       116Mi       9.3Gi        10Gi
Swap:           11Gi       855Mi        10Gi
12
12
Permissions   Size User Date Modified Name
crw-rw-rw-@ 10,232 root 10 Nov 09:43  /dev/kvm
Permissions Size User Date Modified Name
srwxr-xr-x@    0 me   10 Nov 09:55  X0
srwxr-xr-x@    0 me   10 Nov 09:55  X1
srwxr-xr-x@    0 gdm  10 Nov 09:43  X1024
srwxr-xr-x@    0 gdm  10 Nov 09:43  X1025
root       10449 11.0  0.3 2346096 53172 ?       Ssl  10:57  16:44 /usr/bin/dockerd --host=fd:// --exec-opt native.cgroupdriver=systemd --selinux-enabled --log-driver=journald --live-restore --default-ulimit nofile=1024:1024 --init-path /usr/libexec/docker/docker-init --userland-proxy-path /usr/libexec/docker/docker-proxy
me         20482  0.0  0.0 221796  2320 pts/0    S+   13:28   0:00 grep --color=auto dockerd
kvm:x:36:qemu
libvirt:x:983:
docker:x:974:me

Error

(base) me@fedora:~$ docker run -it     --device /dev/kvm     -p 50922:10022     -v /tmp/.X11-unix:/tmp/.X11-unix     -e "DISPLAY=${DISPLAY:-:0.0}"     -e GENERATE_UNIQUE=true     sickcodes/docker-osx:auto
/bin/bash: error while loading shared libraries: /usr/lib/libc.so.6: cannot apply additional memory protection after relocation: Permission denied
Originally created by @ghost on GitHub (Nov 10, 2021). # (that long script) Output ``` [sudo] password for me: 1 NAME="Fedora Linux" VERSION_CODENAME="" PRETTY_NAME="Fedora Linux 35 (Workstation Edition)" CPE_NAME="cpe:/o:fedoraproject:fedora:35" Filesystem Size Used Avail Use% Mounted on /dev/sda3 432G 291G 119G 71% /home QEMU emulator version 6.1.0 (qemu-6.1.0-9.fc35) Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 7.6.0 total used free shared buff/cache available Mem: 15Gi 3.9Gi 2.3Gi 116Mi 9.3Gi 10Gi Swap: 11Gi 855Mi 10Gi 12 12 Permissions Size User Date Modified Name crw-rw-rw-@ 10,232 root 10 Nov 09:43 /dev/kvm Permissions Size User Date Modified Name srwxr-xr-x@ 0 me 10 Nov 09:55 X0 srwxr-xr-x@ 0 me 10 Nov 09:55 X1 srwxr-xr-x@ 0 gdm 10 Nov 09:43 X1024 srwxr-xr-x@ 0 gdm 10 Nov 09:43 X1025 root 10449 11.0 0.3 2346096 53172 ? Ssl 10:57 16:44 /usr/bin/dockerd --host=fd:// --exec-opt native.cgroupdriver=systemd --selinux-enabled --log-driver=journald --live-restore --default-ulimit nofile=1024:1024 --init-path /usr/libexec/docker/docker-init --userland-proxy-path /usr/libexec/docker/docker-proxy me 20482 0.0 0.0 221796 2320 pts/0 S+ 13:28 0:00 grep --color=auto dockerd kvm:x:36:qemu libvirt:x:983: docker:x:974:me ``` # Error ``` (base) me@fedora:~$ docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e GENERATE_UNIQUE=true sickcodes/docker-osx:auto /bin/bash: error while loading shared libraries: /usr/lib/libc.so.6: cannot apply additional memory protection after relocation: Permission denied ```
Author
Owner

@sickcodes commented on GitHub (Nov 14, 2021):

Test these I have had this experience before:

(as root)

To Clear PageCache, dentries and inodes:

$ sync; echo 3 > /proc/sys/vm/drop_caches

To Clear PageCache only:

$ sync; echo 1 > /proc/sys/vm/drop_caches

To Clear dentries and inodes:

$ sync; echo 2 > /proc/sys/vm/drop_caches

From https://linuxapt.com/tags/arch-linux-clear-ram-cache

@sickcodes commented on GitHub (Nov 14, 2021): Test these I have had this experience before: (as root) To Clear PageCache, dentries and inodes: `$ sync; echo 3 > /proc/sys/vm/drop_caches` To Clear PageCache only: `$ sync; echo 1 > /proc/sys/vm/drop_caches` To Clear dentries and inodes: `$ sync; echo 2 > /proc/sys/vm/drop_caches` From https://linuxapt.com/tags/arch-linux-clear-ram-cache
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#273