diff options
| author | 2021-11-03 06:24:40 -0400 | |
|---|---|---|
| committer | 2021-11-03 08:47:51 -0400 | |
| commit | 576acc259146af848cec0940f573f7125a116b9f (patch) | |
| tree | fbc8c76b6b3c63888bc8457725da1506da41af11 /tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com | |
| parent | NFS: Add offset to nfs_aop_readahead tracepoint (diff) | |
| download | linux-dev-576acc259146af848cec0940f573f7125a116b9f.tar.xz linux-dev-576acc259146af848cec0940f573f7125a116b9f.zip | |
nfs4: take a reference on the nfs_client when running FREE_STATEID
During umount, the session slot tables are freed. If there are
outstanding FREE_STATEID tasks, a use-after-free and slab corruption can
occur when rpc_exit_task calls rpc_call_done -> nfs41_sequence_done ->
nfs4_sequence_process/nfs41_sequence_free_slot.
Prevent that from happening by taking a reference on the nfs_client in
nfs41_free_stateid and putting it in nfs41_free_stateid_release.
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
