Re: stat64 wrong on sparc64 user

2023-03-30 Thread Luca Bonissi
On 29/03/23 18:22, Laurent Vivier wrote: Le 28/03/2023 à 14:22, Luca Bonissi a écrit : On 28/03/23 13:55, Thomas Huth wrote: On 28/03/2023 13.48, Luca Bonissi wrote: --- qemu-20230327/linux-user/syscall_defs.h    2023-03-27 15:41:42.0 +0200 +++ qemu-20230327/linux-user/syscall_defs.h.n

Re: stat64 wrong on sparc64 user

2023-03-29 Thread Laurent Vivier
Le 28/03/2023 à 14:22, Luca Bonissi a écrit : On 28/03/23 13:55, Thomas Huth wrote: On 28/03/2023 13.48, Luca Bonissi wrote: --- qemu-20230327/linux-user/syscall_defs.h    2023-03-27 15:41:42.0 +0200 +++ qemu-20230327/linux-user/syscall_defs.h.new    2023-03-27 21:43:25.615115126 +020

Re: stat64 wrong on sparc64 user

2023-03-28 Thread Richard Henderson
On 3/28/23 04:48, Luca Bonissi wrote: On qemu-sparc64 (userspace) the struct "target_stat64" is not correctly padded, so the field st_rdev is not correctly aligned and will report wrong major/minor (e.g. for /dev/zero it reports 0,0x1050 instead of 1,5). Here patch to solve the issue (it a

Re: stat64 wrong on sparc64 user

2023-03-28 Thread Thomas Huth
On 28/03/2023 14.22, Luca Bonissi wrote: On 28/03/23 13:55, Thomas Huth wrote: On 28/03/2023 13.48, Luca Bonissi wrote: --- qemu-20230327/linux-user/syscall_defs.h    2023-03-27 15:41:42.0 +0200 +++ qemu-20230327/linux-user/syscall_defs.h.new    2023-03-27 21:43:25.615115126 +0200 @@

Re: stat64 wrong on sparc64 user

2023-03-28 Thread Luca Bonissi
On 28/03/23 13:55, Thomas Huth wrote: On 28/03/2023 13.48, Luca Bonissi wrote: --- qemu-20230327/linux-user/syscall_defs.h    2023-03-27 15:41:42.0 +0200 +++ qemu-20230327/linux-user/syscall_defs.h.new    2023-03-27 21:43:25.615115126 +0200 @@ -1450,7 +1450,7 @@ struct target_stat {   

Re: stat64 wrong on sparc64 user

2023-03-28 Thread Thomas Huth
On 28/03/2023 13.48, Luca Bonissi wrote: On qemu-sparc64 (userspace) the struct "target_stat64" is not correctly padded, so the field st_rdev is not correctly aligned and will report wrong major/minor (e.g. for /dev/zero it reports 0,0x1050 instead of 1,5). Here patch to solve the issue (i

stat64 wrong on sparc64 user

2023-03-28 Thread Luca Bonissi
On qemu-sparc64 (userspace) the struct "target_stat64" is not correctly padded, so the field st_rdev is not correctly aligned and will report wrong major/minor (e.g. for /dev/zero it reports 0,0x1050 instead of 1,5). Here patch to solve the issue (it also fixes incorrect size on some field