From: Laurent Vivier <laurent@vivier.eu>
To: Ariadne Conill <ariadne@dereferenced.org>, riku.voipio@iki.fi
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH] linux-user: fix translation of statx structures
Date: Mon, 25 Nov 2019 09:42:35 +0100 [thread overview]
Message-ID: <e3fe46c7-d02e-a896-b06e-d4570f40b5fc@vivier.eu> (raw)
In-Reply-To: <20191122174040.569252-1-ariadne@dereferenced.org>
Le 22/11/2019 à 18:40, Ariadne Conill a écrit :
> All timestamps were copied to atime instead of to their respective
> fields.
>
> Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
> ---
> 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 ce399a55f0..171c0caef3 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);
>
Applied to my linux-user branch for 4.2.
Thanks,
Laurent
prev parent reply other threads:[~2019-11-25 8:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-22 17:40 [PATCH] linux-user: fix translation of statx structures Ariadne Conill
2019-11-22 18:27 ` Aleksandar Markovic
2019-11-22 19:41 ` Philippe Mathieu-Daudé
2019-11-22 21:26 ` Ariadne Conill
2019-11-22 20:30 ` Laurent Vivier
2019-11-25 8:42 ` Laurent Vivier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e3fe46c7-d02e-a896-b06e-d4570f40b5fc@vivier.eu \
--to=laurent@vivier.eu \
--cc=ariadne@dereferenced.org \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).