Re: [PATCH 2/4] linux-user: Always use flexible arrays for dirent d_name

2021-11-09 Thread Warner Losh
> On Nov 7, 2021, at 5:48 AM, Richard Henderson > wrote: > > We currently use a flexible array member for target_dirent, > but use incorrectly fixed length arrays for target_dirent64, > linux_dirent and linux_dirent64. > > This requires that we adjust the definition of the VFAT READDIR > ioc

Re: [PATCH 2/4] linux-user: Always use flexible arrays for dirent d_name

2021-11-07 Thread Philippe Mathieu-Daudé
On 11/7/21 13:48, Richard Henderson wrote: > We currently use a flexible array member for target_dirent, > but use incorrectly fixed length arrays for target_dirent64, > linux_dirent and linux_dirent64. > > This requires that we adjust the definition of the VFAT READDIR > ioctls which hard-code th

[PATCH 2/4] linux-user: Always use flexible arrays for dirent d_name

2021-11-07 Thread Richard Henderson
We currently use a flexible array member for target_dirent, but use incorrectly fixed length arrays for target_dirent64, linux_dirent and linux_dirent64. This requires that we adjust the definition of the VFAT READDIR ioctls which hard-code the 256 namelen size into the ioctl constant. Signed-off