freebsd-skq/sys/fs
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
..
autofs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cd9660 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cuse Prevent cuse4bsd.ko and cuse.ko from loading at the same time by 2016-09-23 07:41:23 +00:00
deadfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
devfs Simplify devfs_fsync() by removing it. This might also be a minor 2017-02-20 16:18:33 +00:00
ext2fs ext2fs: Initial support for Extended Attributes. 2017-04-01 01:00:36 +00:00
fdescfs Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
fifofs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fuse If a local (AF_LOCAL, AF_UNIX) socket creation (bind) is attempted 2016-05-18 22:23:20 +00:00
msdosfs Use buffer pager for msdosfs. 2016-10-28 11:46:15 +00:00
nandfs prefix UFS symbols with UFS_ to reduce namespace pollution 2017-02-15 19:50:26 +00:00
nfs Set initial values for nfsstatfs in the NFSv4 client. 2017-04-10 21:49:35 +00:00
nfsclient Fix the NFS client for "text file modified, process killed" mmap'd case. 2017-04-12 21:37:12 +00:00
nfsserver Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nullfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
procfs remove procfs ctl interface 2017-03-05 03:05:24 +00:00
pseudofs Forcibly remove the cached items from pseudofs vncache on module unload. 2017-01-09 20:14:18 +00:00
smbfs smbfs: Fix an indentation level 2017-04-06 17:31:58 +00:00
tmpfs Remove mistakenly merged field. 2017-01-19 20:03:26 +00:00
udf On error, bread(9) zeroes buffer pointer, do not dereference it. 2016-11-22 13:24:57 +00:00
unionfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00