freebsd-skq/sys/fs/nfsclient
Rick Macklem 0649fcaea5 Fix the NFS client for "text file modified, process killed" mmap'd case.
When an mmap'd text file is written and then executed immediately
afterwards, it was possible that the modify time would change after the
text file was executing, resulting in the process executing the file
being killed. This was usually only observed when the file system's
times were set to higher resolution, but could have occurred for any
time resolution.
This was reported on a recent email list discussion.
This patch adds a VOP_SET_TEXT() to the NFS client which flushed all
dirty pages to the NFS server and then makes sure that n_mtime is up
to date to avoid this from occurring.
Thanks go to kib@ and pho@ for their help with developing this patch.

Tested by:	pho
Reviewed by:	kib
MFC after:	2 weeks
2017-04-12 21:37:12 +00:00
..
nfs_clbio.c Remove spl*() calls from the nfsclient code. Style adjustments in the 2017-04-06 12:44:34 +00:00
nfs_clcomsubs.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_clkdtrace.c NFS: spelling fixes on comments. 2016-04-29 16:07:25 +00:00
nfs_clkrpc.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_clnfsiod.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_clnode.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_clport.c Fix the NFSv4 client hndling of a stale write verifier in the Commit operation. 2017-04-09 21:50:21 +00:00
nfs_clrpcops.c Fix parsing failure for NFSv4 Setattr operation for failed case. 2017-04-09 12:32:22 +00:00
nfs_clstate.c Don't throw away Open state when a NFSv4.1 client recovery fails. 2017-04-11 22:47:02 +00:00
nfs_clsubs.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfs_clvfsops.c Remove spl*() calls from the nfsclient code. Style adjustments in the 2017-04-06 12:44:34 +00:00
nfs_clvnops.c Fix the NFS client for "text file modified, process killed" mmap'd case. 2017-04-12 21:37:12 +00:00
nfs_kdtrace.h
nfs.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsmount.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsnode.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlminfo.h