Files
linux/fs/nfs
Benjamin Coddington 26fd9ac212 NFS4: Only set creation opendata if O_CREAT
[ Upstream commit 909105199a ]

We can end up in nfs4_opendata_alloc during task exit, in which case
current->fs has already been cleaned up.  This leads to a crash in
current_umask().

Fix this by only setting creation opendata if we are actually doing an open
with O_CREAT.  We can drop the check for NULL nfs4_open_createattrs, since
O_CREAT will never be set for the recovery path.

Suggested-by: Trond Myklebust <trondmy@hammerspace.com>
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-14 08:09:46 +02:00
..
2018-08-09 12:56:38 -04:00
2019-02-20 15:14:21 -05:00
2019-02-20 15:14:21 -05:00
2019-02-20 15:14:21 -05:00
2012-07-30 19:06:41 -04:00
2019-02-20 17:33:55 -05:00
2015-04-23 15:16:14 -04:00
2015-04-23 15:16:14 -04:00
2019-02-20 15:14:21 -05:00
2019-03-12 16:04:51 -04:00
2019-02-20 15:14:21 -05:00
2019-02-20 15:14:21 -05:00