android_kernel_xiaomi_sm8350/fs/nfsd
NeilBrown aa577b51d5 nfsd: restore callback functionality for NFSv4.0
[ Upstream commit 7917f01a286ce01e9c085e24468421f596ee1a0c ]

A recent patch inadvertently broke callbacks for NFSv4.0.

In the 4.0 case we do not expect a session to be found but still need to
call setup_callback_client() which will not try to dereference it.

This patch moves the check for failure to find a session into the 4.1+
branch of setup_callback_client()

Fixes: 1e02c641c3a4 ("NFSD: Prevent NULL dereference in nfsd4_process_cb_update()")
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-01-09 13:23:30 +01:00
..
acl.h
auth.c
auth.h
blocklayout.c
blocklayoutxdr.c NFSD: da_addr_body field missing in some GETDEVICEINFO replies 2023-09-23 10:59:48 +02:00
blocklayoutxdr.h
cache.h
current_stateid.h
export.c nfsd: make sure exp active before svc_export_show 2024-12-14 19:44:44 +01:00
export.h
fault_inject.c
filecache.c
filecache.h
flexfilelayout.c
flexfilelayoutxdr.c NFSD: da_addr_body field missing in some GETDEVICEINFO replies 2023-09-23 10:59:48 +02:00
flexfilelayoutxdr.h
idmap.h
Kconfig
lockd.c
Makefile
netns.h nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted 2023-02-06 07:52:47 +01:00
nfs2acl.c
nfs3acl.c
nfs3proc.c
nfs3xdr.c new helper: lookup_positive_unlocked() 2023-09-23 10:59:40 +02:00
nfs4acl.c
nfs4callback.c nfsd: restore callback functionality for NFSv4.0 2025-01-09 13:23:30 +01:00
nfs4idmap.c nfsd: call cache_put if xdr_reserve_space returns NULL 2024-11-08 16:20:32 +01:00
nfs4layouts.c nfsd: fix race to check ls_layouts 2023-03-11 16:43:49 +01:00
nfs4proc.c NFSD: Fix nfsd4_shutdown_copy() 2024-12-14 19:44:32 +01:00
nfs4recover.c NFSD: Cap the number of bytes copied by nfs4_reset_recoverydir() 2024-12-14 19:44:32 +01:00
nfs4state.c nfsd: fix nfs4_openowner leak when concurrent nfsd4_open occur 2024-12-14 19:44:44 +01:00
nfs4xdr.c NFSD: Fix NFSv4's PUTPUBFH operation 2024-11-17 14:58:52 +01:00
nfscache.c
nfsctl.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
nfsd.h nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted 2023-02-06 07:52:47 +01:00
nfsfh.c
nfsfh.h
nfsproc.c
nfssvc.c nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted 2023-02-06 07:52:47 +01:00
nfsxdr.c
pnfs.h
state.h
stats.c
stats.h
trace.c
trace.h
vfs.c nfsd: lock_rename() needs both directories to live on the same fs 2023-11-08 11:23:38 +01:00
vfs.h
xdr.h
xdr3.h
xdr4.h
xdr4cb.h