Re: [PATCH 6.8.y] NFSD: fix endianness issue in nfsd4_encode_fattr4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 23, 2024 at 12:37:02PM -0400, cel@xxxxxxxxxx wrote:
> From: Vasily Gorbik <gor@xxxxxxxxxxxxx>
> 
> [ Upstream commit f488138b526715c6d2568d7329c4477911be4210 ]
> 
> The nfs4 mount fails with EIO on 64-bit big endian architectures since
> v6.7. The issue arises from employing a union in the nfsd4_encode_fattr4()
> function to overlay a 32-bit array with a 64-bit values based bitmap,
> which does not function as intended. Address the endianness issue by
> utilizing bitmap_from_arr32() to copy 32-bit attribute masks into a
> bitmap in an endianness-agnostic manner.
> 
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: fce7913b13d0 ("NFSD: Use a bitmask loop to encode FATTR4 results")
> Link: https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/2060217
> Signed-off-by: Vasily Gorbik <gor@xxxxxxxxxxxxx>
> Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx>
> [ cel: adjusted to apply on 6.8.y ]

This is already in the queue for 6.8.y, perhaps you missed the email
saying that.

Anyway, thanks for the patch, all should be good now.

greg k-h




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux