Control: tags -1 patch fixed-upstream

On Fri, 01 Apr 2016 23:28:35 +0200 Luca Falavigna <dktrkr...@debian.org> wrote:
> Package: qemu-user-static
> Version: 1:2.5+dfsg-5
> Severity: important
> 
> Dear Maintainer,
> 
> I just created a fresh mips schroot using qemu-debootstrap to emulate mips
> architecture.
> 
> Unfortunately, I cannot resolve any name because it seems DNS resolution is 
> not
> working anymore. Attached is strace log of a simple ping against 
> ftp.debian.org
> 
> This behaviour happens at least under mips, mipsel and s390x.

For mips, this has been fixed by upstream commit
2e6eeb67429a7e0683d3d1a75ca497dd67c751e4 which I have attached. It's
present in the master branch, but not in any stable branches (note I am
not that familiar with upstream qemu development).

glibc in stretch uses the sendmmsg syscall when doing DNS lookups which
was not wired up correctly in qemu.

Thanks,
James
From 2e6eeb67429a7e0683d3d1a75ca497dd67c751e4 Mon Sep 17 00:00:00 2001
From: Aleksandar Markovic <aleksandar.marko...@imgtec.com>
Date: Wed, 12 Oct 2016 14:30:22 +0200
Subject: [PATCH] linux-user: Update mips_syscall_args[] array in main.c

Array mips_syscall_args[] determines number of arguments for each
syscall on Mips32. It wasn't updated with newer syscalls. Also,
preadv and pwritev have 5 arguments, not 6.

Signed-off-by: Aleksandar Markovic <aleksandar.marko...@imgtec.com>
Signed-off-by: Riku Voipio <riku.voi...@linaro.org>
---
 linux-user/main.c | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/linux-user/main.c b/linux-user/main.c
index 0e31dad..18d5a62 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2295,8 +2295,8 @@ static const uint8_t mips_syscall_args[] = {
         MIPS_SYS(sys_dup3, 3)
         MIPS_SYS(sys_pipe2, 2)
         MIPS_SYS(sys_inotify_init1, 1)
-        MIPS_SYS(sys_preadv, 6)         /* 4330 */
-        MIPS_SYS(sys_pwritev, 6)
+        MIPS_SYS(sys_preadv, 5)         /* 4330 */
+        MIPS_SYS(sys_pwritev, 5)
         MIPS_SYS(sys_rt_tgsigqueueinfo, 4)
         MIPS_SYS(sys_perf_event_open, 5)
         MIPS_SYS(sys_accept4, 4)
@@ -2308,6 +2308,26 @@ static const uint8_t mips_syscall_args[] = {
         MIPS_SYS(sys_open_by_handle_at, 3) /* 4340 */
         MIPS_SYS(sys_clock_adjtime, 2)
         MIPS_SYS(sys_syncfs, 1)
+        MIPS_SYS(sys_sendmmsg, 4)
+        MIPS_SYS(sys_setns, 2)
+        MIPS_SYS(sys_process_vm_readv, 6) /* 345 */
+        MIPS_SYS(sys_process_vm_writev, 6)
+        MIPS_SYS(sys_kcmp, 5)
+        MIPS_SYS(sys_finit_module, 3)
+        MIPS_SYS(sys_sched_setattr, 2)
+        MIPS_SYS(sys_sched_getattr, 3)  /* 350 */
+        MIPS_SYS(sys_renameat2, 5)
+        MIPS_SYS(sys_seccomp, 3)
+        MIPS_SYS(sys_getrandom, 3)
+        MIPS_SYS(sys_memfd_create, 2)
+        MIPS_SYS(sys_bpf, 3)            /* 355 */
+        MIPS_SYS(sys_execveat, 5)
+        MIPS_SYS(sys_userfaultfd, 1)
+        MIPS_SYS(sys_membarrier, 2)
+        MIPS_SYS(sys_mlock2, 3)
+        MIPS_SYS(sys_copy_file_range, 6) /* 360 */
+        MIPS_SYS(sys_preadv2, 6)
+        MIPS_SYS(sys_pwritev2, 6)
 };
 #  undef MIPS_SYS
 # endif /* O32 */
-- 
2.10.2

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to