diff options
author | Scott Mayhew <smayhew@redhat.com> | 2023-12-05 17:10:54 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2024-01-04 18:47:56 +0300 |
commit | a10a9233073d984b239e22358ba21825e27e2e88 (patch) | |
tree | 5060630c36d2d8dd9d50131823ca9ece57ef3ec9 /tools/perf/scripts/python/gecko.py | |
parent | b4d4fd60f884e75d52bf9254bc56b3ea41ea2686 (diff) | |
download | linux-a10a9233073d984b239e22358ba21825e27e2e88.tar.xz |
NFS: Use parent's objective cred in nfs_access_login_time()
The subjective cred (task->cred) can potentially be overridden and
subsquently freed in non-RCU context, which could lead to a panic if we
try to use it in cred_fscmp(). Use __task_cred(), which returns the
objective cred (task->real_cred) instead.
Fixes: 0eb43812c027 ("NFS: Clear the file access cache upon login")
Fixes: 5e9a7b9c2ea1 ("NFS: Fix up a sparse warning")
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions