From nobody Tue May 14 11:09:20 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 ARC-Seal: i=1; a=rsa-sha256; t=1574699548; cv=none; d=zohomail.com; s=zohoarc; b=Xn2/ObsqS9xMibYvuoEf1CJNNfcGARZlYqjBCquWcv7bGLXONyGaqxvDBlLn1YZTxPFVUqJrbZ1cXJOC/19GPOsnWpdpNLvFFnWVy0s6z7Ihc+m3t4syYVeOxScXipzLzf7m2dZQRVJdYVmhlkFMA5bIEuiUtsBkv1jtGSF9Wl4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574699548; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bGcZRW7NxVsJDhH77iS2rsYjynWqNFc+284/70B6tK0=; b=aYR7wmwnDlETLuDJJmWJqYrY4FnHb7W/z7QvSTQ+o/nK7OS9fC8MUFfp02yGUjg/fndOZTlZsP+o3mzFV+EgOKwYuc80NXH72RClxGmI/bmj+PBZY0jqyy0T2Zu1cexbZscW3cUH9jM/QGeoVwmnGk34OyxZwjGUREbswUnqGWc= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1574699548308152.0286555147011; Mon, 25 Nov 2019 08:32:28 -0800 (PST) Received: from localhost ([::1]:46298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZHHm-0006fC-4Y for importer@patchew.org; Mon, 25 Nov 2019 11:32:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40559) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZHGA-0005hH-9Y for qemu-devel@nongnu.org; Mon, 25 Nov 2019 11:30:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZHG9-0007xS-8S for qemu-devel@nongnu.org; Mon, 25 Nov 2019 11:30:46 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:55311) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZHG8-0007wr-VZ for qemu-devel@nongnu.org; Mon, 25 Nov 2019 11:30:45 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MeCxd-1hzwlr3lix-00bGpe; Mon, 25 Nov 2019 17:30:25 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 1/1] linux-user: fix translation of statx structures Date: Mon, 25 Nov 2019 17:30:14 +0100 Message-Id: <20191125163014.16789-2-laurent@vivier.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191125163014.16789-1-laurent@vivier.eu> References: <20191125163014.16789-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:g5ZWpo9OPUH5+ITwd/2wL7VDYH+dY1Eu47se5nnHjkHoyZLutof rrLiCGaB2g0Nop8S+dEP1sNFowwnlMuyMphWu6LaG1BZMXexQoJADLyG+6JxXIt05J6orv4 0EEdEF2awCHkdBoYwYqLeN4xenjTFli1n6rM51BtejrFIc359jL/TXcNmDZ6XVZbIfgmGZr kyjdOsKvTZv6eFmBmnAQQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:ayHm7Gp1fFI=:Xh6D8OWmnhQbOy0GY0thSP 16dVkxRKcsDF/fSI9dm5TxPXNC0H/Cg7WKVeVxHPJS6Zyy4jUVADgQWefet3n0Hk4O72o3xzt 2EMSHGWpOAdaFoHxSCIZub4pg+yU0ym+/nLgwdk2CqvxZxD4NZJukWv7SGJB5aEpUYWoDTfPK 80KmozCQyvUWs6iUeELTWD30Vvm5EUSjlmd3n5PcSm7uqI3p73O80Iie2DeaLFePFHytcbx7s du9AugALdbFn5G6+uiuzhVr0wdxHN3wgGjzpUl2/nCFl00pipQCgMLd4xUT6YUgeO9bpZHvVM X0BqgXsbDfKlahRvua4ZBTJThXv/VIziN2ZCrFsoJ/TgfyQvJEGGRiJxx26TfgJfQGSCAuwMH 2/tK1h7u/jX2btUaGM47AXENYRrzLaqu36yCj237fcgsOXGp3ROGVBebkKRT0Cqfn4j0agT+B eYyoftyTkyCKxFkVQE+NzWKEaGwWxGIlD478MNOueUmfwIIllWF6nlFcMkTZRNiZGL52qqyaY n+uCzKEpjAyEH5pokOMr11S4nUgsITF0434z/AwsDS04fT4WjsJiLsDCQ0hqjnEz7x10Nt29x wROYl3vGR8ItGs11rgurti/u+eVrJQLs5DMk20dggMiGpu3Ic1aM7gcELYv8kJHRWqCpGwwlg buMLjeE7139B+1C1C1Va30pAoW11+XMy48SScNZotAPmHs3GH+OoFnaW3GeV7f1kGAqAwpsa7 0iiHGwVrC/n2Omehj7WS6iA05uefB+T8N8rFgDKhHF54gWyS1dSHZlha4tMoujsn7hsLV9JFH VAzp0/eQ0qehWaMxGsOA3mFqz1hBf7DVaFAjy7DP/Rxi0Kam41fcs1/+YU7BoRe4OOsBGDPNA B1VW6zD2TVfeJSEIWbwQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.74 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: Aleksandar Markovic , Riku Voipio , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laurent Vivier , Ariadne Conill Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" From: Ariadne Conill All timestamps were copied to atime instead of to their respective fields. Fixes: efa921845c03 ("linux-user: Add support for translation of statx() sy= scall") Signed-off-by: Ariadne Conill Reviewed-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Laurent Vivier Message-Id: <20191122174040.569252-1-ariadne@dereferenced.org> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ce399a55f0db..171c0caef3a1 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6743,12 +6743,12 @@ static inline abi_long host_to_target_statx(struct = target_statx *host_stx, __put_user(host_stx->stx_attributes_mask, &target_stx->stx_attributes_= mask); __put_user(host_stx->stx_atime.tv_sec, &target_stx->stx_atime.tv_sec); __put_user(host_stx->stx_atime.tv_nsec, &target_stx->stx_atime.tv_nsec= ); - __put_user(host_stx->stx_btime.tv_sec, &target_stx->stx_atime.tv_sec); - __put_user(host_stx->stx_btime.tv_nsec, &target_stx->stx_atime.tv_nsec= ); - __put_user(host_stx->stx_ctime.tv_sec, &target_stx->stx_atime.tv_sec); - __put_user(host_stx->stx_ctime.tv_nsec, &target_stx->stx_atime.tv_nsec= ); - __put_user(host_stx->stx_mtime.tv_sec, &target_stx->stx_atime.tv_sec); - __put_user(host_stx->stx_mtime.tv_nsec, &target_stx->stx_atime.tv_nsec= ); + __put_user(host_stx->stx_btime.tv_sec, &target_stx->stx_btime.tv_sec); + __put_user(host_stx->stx_btime.tv_nsec, &target_stx->stx_btime.tv_nsec= ); + __put_user(host_stx->stx_ctime.tv_sec, &target_stx->stx_ctime.tv_sec); + __put_user(host_stx->stx_ctime.tv_nsec, &target_stx->stx_ctime.tv_nsec= ); + __put_user(host_stx->stx_mtime.tv_sec, &target_stx->stx_mtime.tv_sec); + __put_user(host_stx->stx_mtime.tv_nsec, &target_stx->stx_mtime.tv_nsec= ); __put_user(host_stx->stx_rdev_major, &target_stx->stx_rdev_major); __put_user(host_stx->stx_rdev_minor, &target_stx->stx_rdev_minor); __put_user(host_stx->stx_dev_major, &target_stx->stx_dev_major); --=20 2.21.0