Skip to contentSkip to conversation

Linux user for 4.2 patches

GIT PULL Applied Laurent Vivier 2 participants 3 messages Nov 25, 2019 – Nov 26, 2019

lore
Share & tools
lore
#0 lore raw

The following changes since commit 2061735ff09f9d5e67c501a96227b470e7de69b1:

Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2019-11-21 17:18:40 +0000)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/linux-user-for-4.2-pull-request

for you to fetch changes up to d1e26707410067891ab5199f7e9d09afa2fbc0f6:

linux-user: fix translation of statx structures (2019-11-25 12:57:58 +0100)

----------------------------------------------------------------
fix translation of statx structures

----------------------------------------------------------------

Ariadne Conill (1):
linux-user: fix translation of statx structures

 linux-user/syscall.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.21.0
#1 lore raw

[PULL 1/1] linux-user: fix translation of statx structures

From: Ariadne Conill <[email protected]>

All timestamps were copied to atime instead of to their respective fields.

Fixes efa921845c03 ("linux-user: Add support for translation of statx() syscall")

Message-Id: <[email protected]>

---
 linux-user/syscall.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
linux-user/syscall.c +6 -6
index ce399a55f0db..171c0caef3a1 100644
@@ -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);
Signature · 1 line
2.21.0
#2 lore raw
In reply to Laurent Vivier
Quoted 16 lines · Laurent Vivier

The following changes since commit 2061735ff09f9d5e67c501a96227b470e7de69b1:

Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2019-11-21 17:18:40 +0000)

are available in the Git repository at:

git://github.com/vivier/qemu.git tags/linux-user-for-4.2-pull-request

for you to fetch changes up to d1e26707410067891ab5199f7e9d09afa2fbc0f6:

linux-user: fix translation of statx structures (2019-11-25 12:57:58 +0100)

----------------------------------------------------------------
fix translation of statx structures

Quoted 7 lines

----------------------------------------------------------------

Ariadne Conill (1):
linux-user: fix translation of statx structures

 linux-user/syscall.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.

-- PMM