RHEL-kernel-ark/fs/nfs
Stephen Smalley 9084ed79dd lsm,nfs: fix memory leak of lsm_context
commit b530104f50 ("lsm: lsm_context in security_dentry_init_security")
did not preserve the lsm id for subsequent release calls, which results
in a memory leak. Fix it by saving the lsm id in the nfs4_label and
providing it on the subsequent release call.

Fixes: b530104f50 ("lsm: lsm_context in security_dentry_init_security")
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
2025-02-25 15:07:24 -05:00
..
blocklayout nfs/blocklayout: Limit repeat device registration on failure 2024-11-28 12:55:32 -05:00
filelayout
flexfilelayout pnfs/flexfiles: retry getting layout segment for reads 2025-01-22 14:26:46 -05:00
Kconfig nfs: Make NFS_FSCACHE select NETFS_SUPPORT instead of depending on it 2025-01-21 11:34:50 -05:00
Makefile
cache_lib.c
cache_lib.h
callback.c nfsd: don't use sv_nrthreads in connection limiting calculations. 2025-01-06 09:37:36 -05:00
callback.h
callback_proc.c NFS: CB_OFFLOAD can return NFS4ERR_DELAY 2025-01-21 11:34:50 -05:00
callback_xdr.c nfsd: don't use sv_nrthreads in connection limiting calculations. 2025-01-06 09:37:36 -05:00
client.c nfs: probe for LOCALIO when v4 client reconnects to server 2025-01-14 17:05:10 -05:00
delegation.c NFSv4: Fix a deadlock when recovering state on a sillyrenamed file 2025-02-19 16:45:24 -05:00
delegation.h NFSv4: Fix a deadlock when recovering state on a sillyrenamed file 2025-02-19 16:45:24 -05:00
dir.c nfs: fix ->d_revalidate() UAF on ->d_name accesses 2025-01-27 19:25:24 -05:00
direct.c NFS: Adjust delegated timestamps for O_DIRECT reads and writes 2025-02-19 16:45:24 -05:00
dns_resolve.c
dns_resolve.h
export.c
file.c fs/nfs/io: make nfs_start_io_*() killable 2024-11-28 12:55:33 -05:00
fs_context.c NFS: Implement get_nfs_version() 2024-11-08 14:17:37 -05:00
fscache.c netfs: Drop the was_async arg from netfs_read_subreq_terminated() 2024-12-20 22:34:03 +01:00
fscache.h netfs: Drop the was_async arg from netfs_read_subreq_terminated() 2024-12-20 22:34:03 +01:00
getroot.c
inode.c nfs: cache all open LOCALIO nfsd_file(s) in client 2025-01-14 17:04:05 -05:00
internal.h nfs: probe for LOCALIO when v4 client reconnects to server 2025-01-14 17:05:10 -05:00
io.c fs/nfs/io: make nfs_start_io_*() killable 2024-11-28 12:55:33 -05:00
iostat.h
localio.c nfs: fix incorrect error handling in LOCALIO 2025-01-21 11:34:43 -05:00
mount_clnt.c
namespace.c nfs: fix ->d_revalidate() UAF on ->d_name accesses 2025-01-27 19:25:24 -05:00
netns.h
nfs.h NFS: Implement get_nfs_version() 2024-11-08 14:17:37 -05:00
nfs2super.c
nfs2xdr.c
nfs3_fs.h
nfs3acl.c
nfs3client.c
nfs3proc.c Provide stable parent and name to ->d_revalidate() instances 2025-01-30 09:13:35 -08:00
nfs3super.c
nfs3xdr.c
nfs4_fs.h
nfs4client.c
nfs4file.c
nfs4getroot.c
nfs4idmap.c
nfs4idmap.h
nfs4namespace.c
nfs4proc.c lsm,nfs: fix memory leak of lsm_context 2025-02-25 15:07:24 -05:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c nfs: probe for LOCALIO when v4 client reconnects to server 2025-01-14 17:05:10 -05:00
nfs4super.c
nfs4sysctl.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
nfs4trace.c
nfs4trace.h
nfs4xdr.c
nfs42.h
nfs42proc.c NFSv4.2: make LAYOUTSTATS and LAYOUTERROR MOVEABLE 2025-01-21 11:34:50 -05:00
nfs42xattr.c mm/list_lru: simplify the list_lru walk callback function 2024-11-11 17:22:26 -08:00
nfs42xdr.c NFSv4.2: fix COPY_NOTIFY xdr buf size calculation 2025-01-21 11:34:50 -05:00
nfsroot.c
nfstrace.c
nfstrace.h nfs/localio: remove redundant code and simplify LOCALIO enablement 2025-01-14 17:05:10 -05:00
pagelist.c nfs: cache all open LOCALIO nfsd_file(s) in client 2025-01-14 17:04:05 -05:00
pnfs.c NFS/pnfs: Fix a live lock between recalled layouts and layoutget 2024-12-17 11:10:55 -05:00
pnfs.h
pnfs_dev.c
pnfs_nfs.c
proc.c nfs: fix ->d_revalidate() UAF on ->d_name accesses 2025-01-27 19:25:24 -05:00
read.c
super.c fs/nfs: fix missing declaration of nfs_idmap_cache_timeout 2024-12-17 11:14:20 -05:00
symlink.c
sysctl.c treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
sysfs.c NFS: Fix potential buffer overflowin nfs_sysfs_link_rpc_client() 2025-01-13 13:27:25 -05:00
sysfs.h
unlink.c
write.c nfs: cache all open LOCALIO nfsd_file(s) in client 2025-01-14 17:04:05 -05:00