diff mbox series

[Bug,1823790] Re: QEMU mishandling of SO_PEERSEC forces systemd into tight loop

Message ID 156594630847.26323.16834800497865740159.malone@soybean.canonical.com (mailing list archive)
State New, archived
Headers show
Series [Bug,1823790] Re: QEMU mishandling of SO_PEERSEC forces systemd into tight loop | expand

Commit Message

Fritz Katze Aug. 16, 2019, 9:05 a.m. UTC
I patched linux-user/syscall.c (see below, branch stable-2.11) which works around my problem.
So far so good, but the qemu-arm that i compiled is terribly slow compared to the one that came with Ubuntu 18.04. Any hints?
I configured as this:
./configure --static --enable-kvm --target-list=arm-linux-user
diff mbox series

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 74d56e2ee6..4fa9a09b12 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3185,6 +3185,8 @@  static abi_long do_getsockopt(int sockfd, int level, int optname,
         case TARGET_SO_SNDTIMEO:
         case TARGET_SO_PEERNAME:
             goto unimplemented;
+        case TARGET_SO_PEERSEC: /* added to escape infinite loop */
+            goto unimplemented;
         case TARGET_SO_PEERCRED: {
             struct ucred cr;
             socklen_t crlen;