aboutsummaryrefslogtreecommitdiffstats
path: root/tools/debugging/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorSergey Bashirov <sergeybashirov@gmail.com>2025-10-20 08:52:22 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-23 16:24:38 +0200
commitf874ddbeff8f115d021722678da59dfb7f55ab2d (patch)
treefc9c8e11cdca7ee014f45e4dad681ad13912d2dc /tools/debugging/git:/ssh:/git@git.zx2c4.com
parentxfs: fix log CRC mismatches between i386 and other architectures (diff)
downloadlaptop-kernel-f874ddbeff8f115d021722678da59dfb7f55ab2d.tar.xz
laptop-kernel-f874ddbeff8f115d021722678da59dfb7f55ab2d.zip
NFSD: Rework encoding and decoding of nfsd4_deviceid
[ Upstream commit 832738e4b325b742940761e10487403f9aad13e8 ] Compilers may optimize the layout of C structures, so we should not rely on sizeof struct and memcpy to encode and decode XDR structures. The byte order of the fields should also be taken into account. This patch adds the correct functions to handle the deviceid4 structure and removes the pad field, which is currently not used by NFSD, from the runtime state. The server's byte order is preserved because the deviceid4 blob on the wire is only used as a cookie by the client. Signed-off-by: Sergey Bashirov <sergeybashirov@gmail.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Stable-dep-of: d68886bae76a ("NFSD: Fix last write offset handling in layoutcommit") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/debugging/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions