linux-stable/fs/nfsd
Mahmoud Adam cd0e9f475a nfsd: fix file memleak on client_opens_release
commit bc1b5acb40 upstream.

seq_release should be called to free the allocated seq_file

Cc: stable@vger.kernel.org # v5.3+
Signed-off-by: Mahmoud Adam <mngyadam@amazon.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Fixes: 78599c42ae ("nfsd4: add file to display list of client's opens")
Reviewed-by: NeilBrown <neilb@suse.de>
Tested-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 16:56:34 +00:00
..
Kconfig
Makefile
acl.h
auth.c
auth.h
blocklayout.c
blocklayoutxdr.c NFSD: da_addr_body field missing in some GETDEVICEINFO replies 2023-09-19 12:22:43 +02:00
blocklayoutxdr.h
cache.h
current_stateid.h
export.c fs: add is_idmapped_mnt() helper 2022-07-02 16:41:14 +02:00
export.h
fault_inject.c
filecache.c nfsd: eliminate the NFSD_FILE_BREAK_* flags 2022-08-17 14:22:45 +02:00
filecache.h nfsd: eliminate the NFSD_FILE_BREAK_* flags 2022-08-17 14:22:45 +02:00
flexfilelayout.c
flexfilelayoutxdr.c NFSD: da_addr_body field missing in some GETDEVICEINFO replies 2023-09-19 12:22:43 +02:00
flexfilelayoutxdr.h
idmap.h
lockd.c
netns.h
nfs2acl.c NFSD: Finish converting the NFSv2 GETACL result encoder 2022-12-31 13:14:03 +01:00
nfs3acl.c
nfs3proc.c NFSD: Protect against send buffer overflow in NFSv3 READ 2022-10-26 12:34:25 +02:00
nfs3xdr.c Revert "nfsd: skip some unnecessary stats in the v4 case" 2022-03-08 19:12:36 +01:00
nfs4acl.c
nfs4callback.c NFSD: callback request does not use correct credential for AUTH_SYS 2023-04-13 16:48:19 +02:00
nfs4idmap.c
nfs4layouts.c nfsd: fix race to check ls_layouts 2023-03-10 09:39:31 +01:00
nfs4proc.c nfsd: fix change_info in NFSv4 RENAME replies 2023-09-23 11:10:02 +02:00
nfs4recover.c nfsd: Fix a memory leak in an error handling path 2022-10-26 12:34:37 +02:00
nfs4state.c nfsd: fix file memleak on client_opens_release 2023-11-28 16:56:34 +00:00
nfs4xdr.c NFSD: da_addr_body field missing in some GETDEVICEINFO replies 2023-09-19 12:22:43 +02:00
nfscache.c nfsd: destroy percpu stats counters after reply cache shutdown 2022-06-09 10:23:12 +02:00
nfsctl.c fsnotify: fix fsnotify hooks in pseudo filesystems 2022-02-01 17:27:01 +01:00
nfsd.h
nfsfh.c
nfsfh.h
nfsproc.c NFSD: Protect against send buffer overflow in NFSv2 READDIR 2022-10-26 12:34:38 +02:00
nfssvc.c nfsd: shut down the NFSv4 state objects before the filecache 2023-01-12 11:59:09 +01:00
nfsxdr.c NFSD: Have legacy NFSD WRITE decoders use xdr_stream_subsegment() 2022-03-08 19:12:33 +01:00
pnfs.h
state.h
stats.c
stats.h
trace.c
trace.h nfsd: eliminate the NFSD_FILE_BREAK_* flags 2022-08-17 14:22:45 +02:00
vfs.c nfsd: lock_rename() needs both directories to live on the same fs 2023-11-08 17:26:36 +01:00
vfs.h NFSD: COMMIT operations must not return NFS?ERR_INVAL 2022-07-12 16:35:01 +02:00
xdr.h NFSD: prevent underflow in nfssvc_decode_writeargs() 2022-04-08 14:22:52 +02:00
xdr3.h NFSD: Have legacy NFSD WRITE decoders use xdr_stream_subsegment() 2022-03-08 19:12:33 +01:00
xdr4.h NFSD: Fix handling of oversized NFSv4 COMPOUND requests 2022-10-26 12:34:38 +02:00
xdr4cb.h