From nobody Wed May 15 07:29:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gentoo.org ARC-Seal: i=1; a=rsa-sha256; t=1586988374; cv=none; d=zohomail.com; s=zohoarc; b=cPNkwDRtwVK4Blz+PmggEoO2qxJEzN8Alm4wpzY7AKKpBpmlGzT1DQDWOIOrNb4TvMqd2KPGUoQswB4ltz4pBuGkkaf3WRtfKhGyfh3iu98RahE01q0H75UrgdrsGD0/gV6426Be/a3QVetyXFQHPhCulz+YUFjUK3VCbUaCsSA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586988374; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=kzxjKCXnibASfSIDPnznwLIzybOBkY0ECHa4XC9Un2Q=; b=IomASyQ9lXVDuBY3u3tHOhITcyUNu1bZ++TJM3xILcnlWblMAQuKSpEF5ww9DIoghc1rHwBLc8eqcequXk761SyBuFAQB20F2U8IAoUfOkGEY63IT/+a69EHFTS4PJ0ElMA8+fpuYy18MG2o+dn12M8mhkenGtsad+8qfUTFQWc= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1586988372082267.4820928695194; Wed, 15 Apr 2020 15:06:12 -0700 (PDT) Received: from localhost ([::1]:55396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOqAc-0004gW-8l for importer@patchew.org; Wed, 15 Apr 2020 18:06:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47055) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOq9p-0004CX-DI for qemu-devel@nongnu.org; Wed, 15 Apr 2020 18:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOq9n-00085a-S9 for qemu-devel@nongnu.org; Wed, 15 Apr 2020 18:05:20 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:52682) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOq9n-00085F-Mv for qemu-devel@nongnu.org; Wed, 15 Apr 2020 18:05:19 -0400 Received: from sf.home (tunnel547699-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:3e6::2]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: slyfox) by smtp.gentoo.org (Postfix) with ESMTPSA id EA05834F04D; Wed, 15 Apr 2020 22:05:16 +0000 (UTC) Received: by sf.home (Postfix, from userid 1000) id 4A5805A22061; Wed, 15 Apr 2020 23:05:13 +0100 (BST) From: Sergei Trofimovich To: qemu-devel@nongnu.org Subject: [PATCH] linux-user/syscall.c: add target-to-host mapping for epoll_create1() Date: Wed, 15 Apr 2020 23:05:08 +0100 Message-Id: <20200415220508.5044-1-slyfox@gentoo.org> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 140.211.166.183 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier , Sergei Trofimovich Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Noticed by Barnab=C3=A1s Vir=C3=A1gh as a python-3.7 failue on qemu-alpha. The bug shows up on alpha as it's one of the targets where EPOLL_CLOEXEC differs from other targets: sysdeps/unix/sysv/linux/alpha/bits/epoll.h: EPOLL_CLOEXEC =3D 01000000 sysdeps/unix/sysv/linux/bits/epoll.h: EPOLL_CLOEXEC =3D 02000000 Bug: https://bugs.gentoo.org/717548 Reported-by: Barnab=C3=A1s Vir=C3=A1gh Signed-off-by: Sergei Trofimovich CC: Riku Voipio CC: Laurent Vivier Reviewed-by: Laurent Vivier --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 674f70e70a..05f03919ff 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -12012,7 +12012,7 @@ static abi_long do_syscall1(void *cpu_env, int num,= abi_long arg1, #endif #if defined(TARGET_NR_epoll_create1) && defined(CONFIG_EPOLL_CREATE1) case TARGET_NR_epoll_create1: - return get_errno(epoll_create1(arg1)); + return get_errno(epoll_create1(target_to_host_bitmask(arg1, fcntl_= flags_tbl))); #endif #if defined(TARGET_NR_epoll_ctl) case TARGET_NR_epoll_ctl: --=20 2.26.1