Hide Forgot
Installing or removing a bunch of packages with yum is enough to trigger several 'mmap: Invalid argument' messages, eg: [...] Transaction test succeeded Running transaction mmap: Invalid argument Installing : libvirt-client-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-driver-network-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-driver-nwfilter-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-driver-storage-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-driver-qemu-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-config-nwfilter-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-driver-lxc-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-config-network-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-driver-interface-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-driver-secret-2.0.0-8.el7.ppc64le Installing : libvirt-daemon-driver-nodedev-2.0.0-8.el7.ppc64le Installing : libvirt-2.0.0-8.el7.ppc64le Installing : 10:qemu-kvm-rhev-2.6.0-23.el7.ppc64le mmap: Invalid argument Verifying : libvirt-daemon-driver-nwfilter-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-driver-lxc-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-config-nwfilter-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-driver-interface-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-config-network-2.0.0-8.el7.ppc64le Verifying : 10:qemu-kvm-rhev-2.6.0-23.el7.ppc64le Verifying : libvirt-daemon-driver-secret-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-driver-nodedev-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-driver-network-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-driver-storage-2.0.0-8.el7.ppc64le Verifying : libvirt-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-driver-qemu-2.0.0-8.el7.ppc64le Verifying : libvirt-daemon-2.0.0-8.el7.ppc64le Verifying : libvirt-client-2.0.0-8.el7.ppc64le [...] This is with SELinux in Enforcing mode. If SELinux is disabled, none of the 'mmap: Invalid argument' messages is displayed even after several installations / removals. The same behavior can be observed on ppc64le and aarch64. I didn't try to reproduce it on x86_64. This looks related to Bug 1372200 and Bug 1374104, but it's my understanding that at least the first one should have been fixed as of 3.13.1-97.el7... Installed packages: selinux-policy-3.13.1-97.el7.noarch libselinux-2.5-6.el7.ppc64le selinux-policy-targeted-3.13.1-97.el7.noarch libselinux-utils-2.5-6.el7.ppc64le
*** This bug has been marked as a duplicate of bug 1372200 ***
I was too fast. This is definitely a duplicate of #1372200. However, you need to remove /etc/selinux/targeted/contexts/files/file_contexts.local.bin manually to fix it. I'm not sure if we want to provide an rpm scriptlet to do that. I'd say that it happened only during internal testing but the bug is probably in rhel-7.3 beta external available as well.
I agree with Petr about providing rpm scriptlet to remove /etc/selinux/targeted/contexts/files/file_contexts.local.bin.