From nobody Tue Nov 4 21:21:58 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1531486875702720.3590939045612; Fri, 13 Jul 2018 06:01:15 -0700 (PDT) Received: from localhost ([::1]:37184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdxh7-0000oR-TU for importer@patchew.org; Fri, 13 Jul 2018 09:01:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdxfc-0000BE-O6 for qemu-devel@nongnu.org; Fri, 13 Jul 2018 08:59:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdxfY-0005AZ-So for qemu-devel@nongnu.org; Fri, 13 Jul 2018 08:59:36 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:33887) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdxfY-00057v-IG for qemu-devel@nongnu.org; Fri, 13 Jul 2018 08:59:32 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LyDzx-1gA3Ra16OL-015c8t; Fri, 13 Jul 2018 14:59:11 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Fri, 13 Jul 2018 14:58:05 +0200 Message-Id: <20180713125805.10749-1-laurent@vivier.eu> X-Mailer: git-send-email 2.17.1 X-Provags-ID: V03:K1:qEqpol4Gq/nEnajQ5F2zYurMXDPArSYhUzbaCvhtJNIc4uLEYRh RHn2TPFqT6FI2Ao4WvrgPrz2rVZAjRyTjjIHpDeWCJryB2htl4z2zC6C4OIs9skxcse1/Pc Xt1eXmfxKv0ewbpympEfOn30p0fbetvE3tO6OeI+o9glRNSLyBslRUX2svnvLZ9k6qfGFqu pFrwHWyfEDJ83IH9SNSbg== X-UI-Out-Filterresults: notjunk:1;V01:K0:M7cL27F1wnw=:smxjh1ay0DMVh/F1+AcWV6 jUi/1+T+MRUpNCORJVb+7Sr6cMWL7GVSS12k9q9aNmTgGfcZ9dPtxcMV4uLs1z9nsHI+ttlec gsw8ePgxIKTIrunFPAmmMuaWJSl13K2ibVJba4a7+zHxWs6xi/eI9/rZeBzXsm/TTrktOf0SU cmaJ3/00pg2KN6PGafP3CehX58WVM3+5K5yW+BEzPtUuvdl+vqOLC/yqtvPpoGCL8ycXvjapE C9N3HfMjjjptRGpyZH+MYC1HfUg1j/op7B1dQuAYSYG4z9B11uWUZQhPD460DGUfyAog493f+ vzaw2Qf2CJDMIiI2ANksRTDTwpwoSqDchJGiLUCT+KfHXOOpzgxj+qQl96hR3+SGVYaCjq/4p xQiQbF1NeAGfObn3Y+yc1agHCEfS/BkUvbbZk02sfQ71yrcuExDWk5aUC1j+hassZr0BHT+bx qhICVDzF0bxhLYRWVFvHCyDS8VkGV5V/5oH08DZ4Ja7Z3vzIwEy3zfDf8fZ8K/QHvwo671lmq xie9EaOVUSL9BKWrcXxXduebNR0tioBolHJ9vGc4JK82d76hH6kb6i5yqZfx1wauimtc2wjDJ lccLhSQub/4sdgsDLW5hYffygYzoe+ZjvuRVecfkFLXOsX1nlR1nJIGJOz3k8Q+7eRt1DbVOg BZTaN8/1RYHuNusplxQ4guj6r0gFfTwTM4EqxtB1RcX/T4/uKgkHkL+Y3Hs9nzUjkLkg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.73 Subject: [Qemu-devel] [PATCH] linux-user: convert remaining fcntl() to safe_fcntl() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Commit 435da5e709 didn't convert a fcntl() call to safe_fcntl() for TARGET_NR_fcntl64 case. There is no reason to not use it in this case. Fixes: 435da5e709 linux-user: Use safe_syscall wrapper for fcntl Signed-off-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 e4b1b7d7da..a997ba914f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11730,7 +11730,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_lon= g arg1, if (ret) { break; } - ret =3D get_errno(fcntl(arg1, cmd, &fl)); + ret =3D get_errno(safe_fcntl(arg1, cmd, &fl)); if (ret =3D=3D 0) { ret =3D copyto(arg3, &fl); } --=20 2.17.1