Scott Mayhew a10a923307 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>
2024-01-04 10:47:56 -05:00
..
2023-08-24 13:24:15 -04:00
2021-04-05 09:04:20 -04:00
2023-03-06 09:57:12 +01:00
2023-03-06 09:57:12 +01:00
2023-11-08 13:39:16 -08:00
2023-11-08 13:39:16 -08:00
2023-10-09 16:24:20 +02:00
2023-11-08 13:39:16 -08:00
2022-05-09 16:36:48 -04:00
2023-08-19 10:26:29 -04:00
2022-11-27 22:10:00 -05:00